Skip to content

Issue #246: research and review register

Reviewed 2026-10-08 against fetched Anvil main f7d9f265fd2061da3e1b50f8e80b0e76de237298. Companion: delivery plan.

Initial review scope: issue bodies and comments for the parent, six workstreams, direct historical references, and relevant linked background issues; current source tracing; a disposable evidence-reader reproduction; the cited OpenAI guidance. No live proof repair or state mutation was performed during the initial review. The authorized build and disposable-project qualification below are subsequent work. Incident timings and historical delivery claims below are source-reported unless explicitly identified as reproduced.

Issue inventory

GitHub state observed during this review:

Issue State Reviewed role / disposition
#246 Open Parent outcome and cross-project pilot acceptance. Keep the existing six-way scope.
#247 Open High-priority complete-import defect. Reproduced in the pinned code.
#248 Open High-risk accepted-attempt invalidation. Depends on #247; no ordinary terminal-task rejection workaround.
#249 Open Frozen repository verification profiles. Contract/materialization work, with runner ownership retained by the repository.
#250 Open Attempt-aware bounded composition, extending existing reads.
#251 Open Shipped-command cleanup first, later integration with delivered features.
#252 Open Derived timing with explicit measurement gaps. Not a prerequisite for correctness.
#108 Closed Historical branch naming, literal proof matching, and workspace ergonomics. Do not reopen those concerns as import completeness.
#153 Closed Semantic evidence contracts; closeout reports 11 tasks delivered in v0.5.0. Reuse current assertions, categories, and claim bindings.
#171 Closed Execution bundles and throughput policy. Existing implementation is the foundation, not a new orchestrator proposal.
#178 Closed Bounded versioned provider reads. Closeout records merged PR #204; reusable contracts and privacy restrictions.
#177 Closed Background linked by #178: persisted PRD titles, explicit reparse for legacy rows. Reads must not silently repair source/state.
#242 Open Optional Jev measurement. Its September pilot comment reports a missed benefit target and disabled automatic consumption. Keep independent.
anvil-serving#191 Closed Historical #171 motivating regression: advertised confirmation flags disagreed with real parsers. Supports testing installed commands, not changing Serving here.

The parent and six new workstreams had no comments when reviewed. Their latest edits were 2026-10-08T07:00:07Z through 2026-10-08T07:00:26Z; #242's latest comment was 2026-09-26T20:42:13Z. Historical PRs and external incident artifacts are background references, not additional implementation workstreams or independently revalidated releases. This is a bounded linked-issue review, not a recursive audit of every historical PR.

Findings grounded in the initial pinned source

F1: the reader returns an incomplete success-shaped prefix

The shared reader stops when len(proofs) == 16, without establishing EOF. Existing oversized, unreadable, symlink, or nonregular input returns []. Its return type cannot distinguish a missing optional buffer from a failed import. Malformed, historical unattributed, and cross-claim records are skipped. Attribution and semantic digests are checked; output hashes remain trusted hook observations rather than reread output verification.

All three submission consumers call that reader: ordinary CLI, MCP, and root-set evidence. A correction only in one caller would leave the other two affected. The existing bounded-reader regression explicitly expects 17 input records to produce 16 proofs and an oversized file to produce an empty list, so passing today's tests does not demonstrate completeness.

Review conclusion: #247 accurately identifies a shared defect. Change the common result/error contract and its callers together; replace tests that codify silent truncation. Keep permissive historical-record skipping distinct from inability to inspect the complete bounded input.

F2: recovery must be an explicit guarded operation

SQLite apply validation checks current review/evidence binding and rejects live rejection outside needs_review; workflow apply also enters the same task.applied boundary. A new CLI flag alone cannot establish safe recovery. Append locking, typed payload validation, replay, latest-attempt identity, idempotency, and dependent/custody checks all matter.

Acceptance proof export signs a historical receipt. Append-only invalidation can remove prospective reliance in native state without making that old signature cryptographically invalid. The operator/read-view contract must explain both facts.

Review conclusion: keep #248 separate in behavior and validation even if the existing coordinator implements it alongside #247. Do not broaden ordinary rejection or edit signed history. Resolve offline-consumer and dependent-enumeration limits before describing invalidation as universally effective.

F3: profile materialization has existing seams, but the runner is not interchangeable

Verification already holds commands, required proofs, and artifact assertions. Packet rendering emits those contracts. Project config has no named verification-profile contract at this revision. The workflow executor runs trusted proof strings with shell=True and uses workflow-specific proof types; it is not automatically a portable, shell-free verification-profile runner.

Review conclusion: materialize into existing verification fields, adding only necessary profile/source bindings. Test runner portability and command identity explicitly; do not document run-workflow as a drop-in profile implementation. Environment preflight, evidence preflight, and successful tests are three different results.

F4: lightweight presentation is not proof of complete resume context

Lightweight packet rendering truncates free-text required_evidence for display, while leaving the authoritative verification object unchanged. Reusing that mode wholesale could hide a requirement from an agent even though enforcement still requires it. Provider snapshots already offer a query-only consistent read and bounded contracts, providing a better foundation for freshness and overflow semantics.

Packet metrics use whitespace splitting. Those counts are a proxy and cannot be reported as billed-token savings. “Thousands of historical references” also requires a bounded scan/retrieval design, not merely a short serialized answer after an unbounded history read.

Review conclusion: #250 needs a required-fact coverage test as well as a size test. Carry mandatory facts or stable retrievable references, explicit overflow, and a state frontier. Avoid a second summary database.

F5: instruction contradictions are concrete

Claim guidance asks for acknowledgement before ordinary submission, then says immutable approval is the only mandatory confirmation in that lifecycle leg. Its blanket auto-release wording also needs qualification for retained root custody. Finish guidance offers an advisory light tier, while repository policy requires three independent adversarial reviews before acceptance.

Review conclusion: #251 should align guidance with authorization and the applicable repository policy. Preserve the three-angle floor here, capability checks, reviewer independence, and the human acceptance gate. A generic skill's lighter example must not override project rules. Current-command cleanup can precede any new API.

F6: timing data is incomplete in an asymmetric way

Hook CommandProof records captured_at but has no start/end duration. Explicit claim-command evidence has UTC started_at/ended_at, but validates exit_code == 0. Thus explicit proofs can describe successful command intervals, while that artifact type alone cannot represent timed nonzero failures. Progress notes can be free-form and do not require an active claim; they are not automatically trustworthy per-generation interval boundaries. Existing metrics cover acceptance/review debt rather than all proposed phases.

Review conclusion: #252 must expose unknown historical durations and separate observed from inferred intervals. Research the smallest attributable failure/timing receipt only if existing retained records cannot satisfy the pilot. Do not weaken completion-proof success rules to store failures, or reinterpret notes as qualifying renewal progress.

F7: current native work overlaps the critical path

Read-only status and anvil show native-evidence-correction:T001 --json resolved an existing claimed implementation task covering bounded import refusal and exact acceptance invalidation. It reserves the shared reader, root/MCP entry points, state/payload/workflow paths, tests, and CLI reference. The task's frozen description is narrower than the full epic; in particular, preflight discovery and later packet/profile/metrics integration still need coverage mapping.

Review conclusion: preserve that task's owner and active contract. Do not create a second #247/#248 implementation claim from this research. “Claimed” is native state, not proof that its runner is currently computing or its implementation is complete.

Disposable reproduction

At the pinned source, ran the existing focused test command recorded in the plan: 6 passed, 32 deselected, 5.31 seconds on Linux/Python 3.14.7. These are baseline behavior tests, not future acceptance tests.

A separate temporary-directory probe reused tests/test_proof_gate.py helpers _command_record and _write_buffer to construct distinct valid attributed records. Record zero had exit code 1; subsequent records had exit code 0. It called _read_command_proofs for each size and checked the buffer SHA-256 before/after.

Valid records Returned proofs Last input record included Original bytes unchanged
0 0 Not applicable Yes
15 15 Yes Yes
16 16 Yes Yes
17 16 No Yes
39 16 No Yes

The initial failed result remained visible in every nonempty returned prefix. This reproduces truncation without dropping failures or modifying a real project. It does not reproduce a live acceptance incident, establish full caller atomicity, or test all #247 boundary cases. Those remain implementation acceptance work.

Documentation validation also passed: git diff --check, the strict MkDocs build with the repository's declared documentation dependencies, and checks that pinned source links/line ranges exist and the new documents contain no local home/workspace or private network paths. Full product, Windows, replay, and end-to-end acceptance suites were not run for this documentation-only review.

Research items and decision gates

The table preserves the initial questions and proposed owner boundaries. The selected decisions and observed qualification are recorded below; native task state remains authoritative for execution.

ID / issue Question and current recommendation Bounded investigation and required output Owner / blocks
R1 / #247–#248 What does the already claimed correction task deliver? Reuse its ownership; do not amend its frozen contract implicitly. Compare its current packet, implementation/PR if available, and final evidence with both issue checklists. Record covered behavior and residual preflight/discovery work. Existing correction coordinator; before another claim or overlapping edit.
R2 / #247 What exactly constitutes complete input at item/byte limits and under concurrent append/replace? Prefer one typed shared result/refusal and bounded diagnostics. Specify absent/complete/skipped/incomplete states; EOF at 16, malformed suffixes, byte boundary, replacement/append race, no-follow behavior, and generation/source drift. Trace hook writer synchronization and submission append boundary; demonstrate no success from an advisory preflight after drift. Evidence owner; blocks reader/preflight contract.
R3 / #247 What supported action follows overflow without losing old captures? Safe refusal may ship first, but remediation must be honest. Exercise existing stop/release/readiness/fresh-generation path in a disposable project. Determine where it is available and where custody requires owner action. If insufficient, record a separate bounded design decision. No trimming, last-16 selection, passing-only filtering, limit increase, or historical relabeling. Evidence and lifecycle owners; blocks claims of end-to-end overflow recovery.
R4 / #248 How are exact invalidation retries, dependent consumers, and historical proof authenticity represented? Prefer narrow append-only semantics and fail-closed unknowns. Design CAS tuple and idempotency identity; inspect task/bundle/root/cross-project consumer visibility. Test duplicate and changed requests, later accepted generation, concurrent dependent claim, active custody, unauthorized reviewer, missing confirmation, crash/replay. State what offline proof verification cannot determine. State/review owner; blocks recovery mutation design.
R5 / #249 Where is profile/source identity frozen, and how does it map to exact proof commands across platforms? Prefer expanding existing Verification. Prototype schema/materialization on Python and shell-free executable fixtures. Test config/profile edits mid-claim, path escape/root mismatch, unsupported platform, separate author/reviewer fixtures, resource refusal, preflight failure and interrupted execution. Produce a short runner command and non-secret config example. Contract owner plus consuming repository runner owner; blocks profile implementation.
R6 / #250 What is the smallest versioned attempt view with complete required-fact coverage? Prefer existing packet/read entry points. Freeze DTO, identity/frontier, size and scan limits, stable artifact references/retrieval, unknowns and overflow behavior. Compare full/lite/resume views with many historical attempts and same-numbered cross-PRD tasks. Record mandatory-fact recall and bytes; label whitespace proxy correctly. Read-contract owner; blocks compact surface.
R7 / #251 Which confirmations and repeated checks are redundant, and which are mandatory? Prefer one shared policy explanation. Audit four skills plus installed/package copies, AGENTS and command manifests. Separate routine authorization from immutable acceptance, retained custody and forced-ownership cases. Test actual CLI/MCP and built artifacts, ordinary/bundle paths, and an interrupted/rejected/reworked scenario. Keep model choices optional and harness-owned. Plugin/harness owner; blocks claiming workflow consistency.
R8 / #252 Which phase and failed-run intervals are actually derivable? Prefer explicit unknowns over fabricated history. Map each requested duration/count to event/proof fields and attribution. Cover hook single timestamps, explicit success-only proof intervals, free-form notes, overlapping commands and clock skew. Add a minimal typed observational receipt only for a demonstrated gap; preserve completion and renewal semantics. Metrics/state owner; blocks complete timing claims.
R9 / #246 What makes the pilot comparable and worth shipping? Keep the same required checks and review policy. Predeclare two comparable future cycles, source/environment/runner and reviewer configuration, packet/evidence budgets, cold/warm conditions, retries and external waits. Record raw sanitized receipts, required-fact coverage, handoff size, redundant reads, dispatch delay, failures and total elapsed time. Report limitations; no invented percentage target or model speedup. Pilot coordinator and independent outcome reviewer; blocks efficiency claims/epic closeout.

Selected decisions and observed qualification

Updated 2026-10-09 UTC. The integrated source milestone 3952ee2fdb02f0b9ccd7626eee7952624f9626a6 passed 6,219 Linux tests (65 skipped), 751 native Windows tests (25 skipped), and 775 native Darwin tests (1 skipped). These are separate runs with different platform coverage. Ruff, the required mypy checks, strict documentation builds, wheel and sdist-wheel checks passed. The isolated installed 0.6.16 candidate exposed API 19, 88 CLI leaves, 100 CLI contracts and 38 MCP tools (26 on the default execution surface). Three independent whole-task reviews passed before intermediate disposition. Final package/CI additions require fresh checks at their own candidate source; these milestone results do not substitute for that final qualification.

Item Selected decision and observed result
R1 Adopt the existing correction's reviewed source after its owner released custody. Preserve its original task and acceptance history; qualify residual preflight, caller and discovery work separately. No competing writer was introduced.
R2 Use one complete bounded inspection contract with typed refusals, the unchanged 16-record/1-MiB limits, EOF/file-identity/no-follow checks and preserved failures. CLI, MCP and root-set submission revalidate at their append boundary. Preflight remains advisory. Boundary, race and caller regressions pass.
R3 Stop the actual runner, release the rejected generation through the supported surface, then claim and verify a fresh generation. The Python pilot captured 17 real passing commands; inspection and submission refused the complete oversized buffer without appending submission or changing its bytes. All subprocesses stopped, the old claim released, and the fresh generation began without inherited proof coverage.
R4 Append exact acceptance invalidation under explicit authority and an independent review, using the frozen acceptance/evidence/revision/claim context. In the controlled pilot, wrong-context refusal appended nothing, exact invalidation retained historical signed bytes, and retries appended nothing. Retrying after fresh acceptance left the newer accepted generation intact. Both historical and current signatures still verified; signature authenticity alone does not establish current native acceptance validity. Custody, dependent-consumer and replay guards are covered by the native suites, not an omniscient cross-project revocation service.
R5 Extend existing optional Verification metadata with a repository-owned profile and frozen manifest/declared-source digests. Preserve literal commands and legacy no-profile serialization. Two installed-candidate pilots used different Python JSON and Node CSV runners. Source/profile drift, platform boundaries, compensation and replay tests pass. Declared wrapper hashes do not transitively freeze every program input; fresh evidence remains necessary.
R6 Reuse query-only packet/attempt and preflight entry points, with one State frontier and supported artifact references. Responses are bounded to 64 KiB, scanning to 32 MiB/20,000 events; missing facts and overflow remain explicit. Ordinary and bundle pilot reads preserved all required command outcomes, including failures, without mutating their journals. No extra summary store or causal token-saving claim was added.
R7 Reuse standing routine authorization, preserve three independent whole-task reviews and protected disposition/custody gates, and leave final project validation with the user. Shipped and installed instructions, manifests and CLI/MCP contracts agree at the qualified milestone. Real ordinary rejection/rework and bundle completion refusal/review/integration/release cycles exercised those boundaries.
R8 Add a bounded schema-1 observational timing receipt using exact claim attribution, UTC and monotonic measurements. It grants no proof, renewal or ownership. The Python pilot ingested 22 ordinary observations. Its seventeenth overflow-run timing and the Node bundle timings remain private measurements because those native ingestion paths were not supported. Unknown review, coordination and external-wait intervals are not zero.
R9 Qualify two useful source cycles in distinct disposable projects using the same installed candidate and required review policy. Root observed 26 command executions, including two genuine failing test runs, and a separate controlled Python recovery acceptance. Summed monotonic execution was 17.929740 seconds; the observed UTC execution-interval union was 17.935859 seconds. These different measurements include deliberate overflow qualification. Cache conditions were uncontrolled and no matched model/policy comparison was performed, so there is no percentage, engineer-day or model-speedup claim.

The Python project completed independent rejection, normal rework, signed acceptance, controlled exact invalidation, overflow refusal and fresh acceptance. The Node project completed a real failed test, useful rework, refused unproven bundle completion, three reviews, strict member acceptance, actual local Git integration, and terminal reconciliation releasing its owner. Both projects are clean and have no active claims. Reviewer reruns remain separately attributable; they are not extra coordinator executions or replacement native proofs.

Raw sanitized receipts, proof and buffer hashes, exact current task contracts, review verdicts, source identities, timing limits and delivery status are retained in the existing shared Anvil research workspace. Final candidate verification and exact-head CI results are attached to native evidence and the delivery PR so that recording CI outcomes does not change the source they qualify. Final user project validation remains pending; local acceptance and integration are not GitHub merge, release publication, installation into live clients or deployment.

External guidance and limits

These are supporting principles, not additional authority to alter Anvil governance:

  • OpenAI: long-horizon Codex work supports durable plans with milestones, validation, decisions, and retained status. Application here: linked repository documents for research and existing Anvil records for task execution.
  • OpenAI: memory and compaction separates continuing a run from carrying reusable lessons across runs; cited facts remain in reviewable artifacts. Application here: compact attempt views reference authoritative evidence rather than replacing it with prose memory.
  • OpenAI: skills/instruction audit recommends narrow skill triggers, progressive disclosure, and removing stale/redundant instruction scaffolding. Application here: reduce repetitive orientation without deleting project-specific evidence, ownership, and review requirements.
  • OpenAI: model prompting and verification recommends checks proportional to the change and repetition when changes, failures, or unresolved concerns justify it. Application here: meet declared checks once at final source, preserve independently required reviewer runs, and investigate repeated failures.
  • The deployment checklist linked by #251 is broader production guidance, not evidence that a particular model assignment or delegation policy improves Anvil throughput. This review makes no model comparison; capability examples should be refreshed when implemented.

The #242 pilot report reports that semantic selection missed its target and retained the deterministic baseline. No new Jev/model call is needed to settle deterministic completeness, identity, arithmetic, or ownership questions in this plan.

Evidence boundaries

  • Main revision and clean checkout equality were verified by fetch plus rev-parse / rev-list; the review did not inspect another runner's private working edits.
  • The reported 39-capture incident, roughly 192 KB handoff, and environment-failure timings in the issues were not independently reconstructed. Only the synthetic reader behavior was reproduced here.
  • Initial proposed contracts are resolved by the selected decisions above. Milestone tests, final candidate checks, GitHub delivery and final user validation remain distinct facts.
  • This register stores only product-level conclusions and identifiers. Raw issue exports containing incidental operational details and local state snapshots are not added to product documentation.