Repository navigation
chore: Schedule exact append authenticity proof without weakening rewri… - #4663
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5fb103ed7f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…on path (#5403) ## Summary Triage of **85 likely-live P1 review findings** anchored in `polylogue/sources/`, from the 2,599-item backlog where **zero review threads have ever been resolved**. **33 STALE (39%) · 1 WONTFIX · 51 LIVE** — 14 fixed here, 37 reported unfixed with reasons. ## How much to trust the filter — the answer for the other 322 **39% stale.** Treat it as a shortlist, not a verdict. Two failure modes dominate and are predictable: 1. **Wholesale refactor.** All seven `watcher.py` findings are stale for *one* reason: the `_flush_pending` / `_pending_paths` / `_debounced_batch` / `_plan_catch_up` machinery no longer exists. **If a cluster names one mechanism, check the mechanism exists before triaging individually.** 2. **Silent follow-up fix.** The `#4520`/`#4662`/`#4663` append-proof cluster was fixed by later PRs that rewrote neighbouring lines and left the anchor byte-identical — several carry comments restating the reviewer's own words, so **grepping HEAD for the finding's key phrase is a fast stale test**. The filter was reliable where the anchor is a self-contained expression: `antigravity.py`, `codex.py`, `origin_specs.py` findings were nearly all still exactly as reviewed. **And LIVE does not mean the reviewer's consequence is right.** `batch.py:2488` reproduces, but the claimed batch abort does *not* happen — a group-level handler catches it. Measured: `failed=2 succeeded=0` → `failed=1 succeeded=1`. **Verify the consequence, not just the code shape.** ## A pre-existing test refuted as vacuous The lane first claimed `test_sqlite_acquisition_failure_is_a_failed_file_not_a_batch_abort` covered the Hermes fix. Removing the fix and running it: **`PASSED exit=0`**. The test offers a *single* file, so chunk and file coincide — it cannot distinguish the defect. Replaced with `test_sqlite_acquisition_failure_does_not_fail_its_healthy_siblings`, which measures the real difference. ## The fourteen, in one line each `batch_support.py:443` an unterminated final line was reported malformed, recording TERMINAL_CORRUPT_INPUT for an ordinary mid-write snapshot · `watcher.py:867` EACCES/EIO escaped with no cursor or debt row · `watcher.py:1222` `excluded=True` alongside the new stat made a path report no-work **forever** · `batch.py:722` a symlink-spelled violation admitted the identical blocked file after restart · `batch.py:4180` two independent opens now bound to one `_file_observation` · `antigravity.py:586` ID-less steps keyed by message count **renamed `step:1` → `step:0`** when an earlier step became malformed · `antigravity.py:985` conflicting `parent_references` asserted an arbitrary durable topology edge · `antigravity.py:830` a null-key trajectory returned zero steps *and* a denominator of 0 · `dispatch.py:1463` GEMINI_CLI resolved sidecars path-independently · `source_acquisition.py:86` a foreign archive root was admitted instead of refused — plus four more. ## Anti-vacuity — all fourteen, one executed reversion `git checkout <base> -- polylogue/`, re-run the reproduction script, restore. Verbatim base → fixed: ``` 1 malformed_record: True -> False 1b terminated: True -> True (opposite pinned) 2 RAISED PermissionError -> recorded, no exception 3 excluded: True -> False; needs_work: False -> True 5 admitted under symlinked block: ['session.jsonl','healthy.jsonl'] -> ['healthy.jsonl'] 9 ['trajectory:step:0'] -> ['trajectory:step:1'] 11 null-key messages: [] -> ['hello'] 11b foreign-key: [] -> [] (opposite pinned) 12 conflicting parents: parent-1 -> None 12b single parent: -> parent-1 (opposite pinned) ``` Three opposite-direction pins are unchanged across the mutation, so a blanket refusal cannot pass. ## Verification ``` devtools test <6 modules> exit 0, 253 passed, git_dirty false devtools test <final sha> exit 0, 43 passed devtools verify --quick exit 0, 25/25 devtools render all --check exit 0, 'out of sync' 0 git merge-tree vs master 0 conflict markers ``` Closure: six `sources/` files **IN**, two `pipeline/services/` **out**. INDEX `ce86c236… → 0936e4a9…`. **Self-corrected**: the commit message quotes an intermediate identity measured before the Drive guard was relocated — the landed value is `0936e4a9…`, and it must be re-measured after rebase. The lane also *moved* its Drive guard rather than grow the closure: placing it in `sources/drive/__init__.py` (IN) added a baseline member for no semantic gain, so it went to `acquisition_streams.py` (OUT) — which is also the reviewer's own preferred site and covers both branches. ## Highest-severity unfixed, filed separately `revision_backfill.py:3668` — a pre-logical-export Codex `state_5.sqlite` **page image** is not in `frozen_codex_state_raw_ids`, reaches the JSON parser, and its exception is promoted to `FrozenSourceRemediationRequiredError`, **aborting the entire index rebuild**. Needs a terminal non-session receipt; naive rejection doesn't provide one. Also reported unfixed with reasons: the parser fingerprint was **never bumped** for two admission-law changes (`#4704`, `#4925`), so unchanged files are skipped forever; sidecar/assembly inputs never re-enrich their owner; the write-hold budget is unenforced outside the full-ingest route. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ToWqpkXotr573DiQex5vcy --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
|
Closing out open Codex review threads on this PR (evidence checked against master at bf68918):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
## Summary Fix all 25 confirmed Codex P1 findings of polylogue-ez5b9 (sources-live and sources-parsers) in one change. This PR now carries the coordinator's seven fixes plus everything from AgentCTL batch run `polylogue-20260929-115511-f46562fd` (workers ez5b9.1 parsers/artifacts/rendering, ez5b9.2 prepared acquisition, ez5b9.3 baseline/watcher). That run was abandoned once its content was carried here, so this is the only vehicle. The branch is rebased onto current `master`. ## Problem The findings (threads linked in the table) share one theme: intake decided an outcome from evidence other than the bytes it published. Examples: a vendor conversion was published against later protobuf bytes; provider detection sampled a different revision than the one sealed; a cursor was authorized from source evidence read before another writer ran. Others: whole cohorts ran past the writer budget; a torn JSONL record was skipped on the way to the frontier; growth hid behind the cursor; the baseline could not recognise retained growth or staged SQLite coordinates. Several parser shapes were also lost or mis-keyed before storage: project documents, ID-less tool steps, argument-less commands, relocated cwds, bare usage records, OTel identity. ## Solution | Finding | Thread | Fix | Production-route regression | | --- | --- | --- | --- | | 11.F006 | [#4330](#4330 (comment)) | The converter's verified SHA-256 is carried to capture (`AntigravityExportOutcome.source_sha256`). A capture that hashes differently is released and refused with `source_changed_after_conversion`. | `test_antigravity_conversation_acquisition.py::test_vendor_conversion_cannot_publish_a_later_protobuf_revision` | | 11.F007 | [#4330](#4330 (comment)) | One `admit_acquisition` item boundary covers ordinary files and each vendor conversion (`admit_path`). The vendor server starts only for an admitted item. | `::test_vendor_cohort_checks_the_pass_budget_between_conversations`, `::test_vendor_admission_refusal_happens_before_server_start` | | 11.F023 | [#4809](#4809 (comment)) | The same per-item checkpoint raises a typed `WriteHoldBudgetError` between conversions without poisoning items. | `::test_vendor_cohort_propagates_writer_budget_refusal_without_poisoning_items` | | 11.F016 | [#4663](#4663 (comment)) | The append cursor's observed size is bounded by the plan, including Claude's mutable-header delta, so unprobed growth stays visible. | `test_live_batch_support.py::test_append_publication_does_not_hide_growth_after_planning[codex,claude-code]` | | 11.F019 | [#4694](#4694 (comment)) | Hook publication queues `hook_paste_enrichment` debt for the affected old sessions before the hook rows are written, under the same lease. Re-matching is idempotent. | `test_hook_paste_enrichment.py::test_late_hook_publication_schedules_its_old_session_not_the_next_batch[debt_write_fails]`, `::test_replaying_paste_evidence_does_not_move_it_to_a_nearby_prompt` | | 11.F021 | [#4809](#4809 (comment)) | Append ingest checks the write-hold budget at start, per plan, parse, replay, materialize and completion. The typed refusal propagates, and the retained raw stays retryable. | `test_live_batch_support.py::test_append_budget_refusal_retains_retryable_raw_without_poisoning_source` | | 11.F030 | [#5428](#5428 (comment)) | Pinned source-tier evidence is read inside the cursor writer admission, not across the preceding await. | `test_live_sidecar_evidence_cost.py::test_cursor_evidence_is_pinned_after_writer_admission` | | 11.F033, 11.F036 | [#5546](#5546 (comment)), [#5557](#5557 (comment)) | The carrier names its decode failure (`DecodeFailure`). The writer re-raises `PreparedDecodeError`, and `classify_decode_failure` is the single classifier; `_is_json_stream_decode_error` is deleted. | `test_live_watcher_parse_stage_equivalence.py::test_path_worker_decode_failure_reaches_terminal_unknown_evidence` | | 11.F035 | [#5546](#5546 (comment)) | `source_snapshot` copies the source once. Sampling, frontier, parse and seal read that copy, and the seal carries its digest. | `::test_path_worker_binds_provider_parse_and_seal_to_one_snapshot` | | 11.F037 | [#5557](#5557 (comment)) | A stage-owned JSON document without a carrier for its captured bytes is released and deferred (`live.ingest.json_capture_deferred`). It is never decoded under the writer hold, even when preparation raised. | `::test_changed_json_after_preparation_defers_without_writer_decode[both]`, `::test_preparation_exception_does_not_restore_whole_json_writer_decode[discovery,preparation]` | | 11.F039 | [#5250](#5250 (comment)) | Live full intake (writer, prewarm, path worker) and append decode JSONL strictly for every provider. A malformed complete record is `terminal_corrupt_input`, with the raw retained. | `::test_known_provider_jsonl_with_a_malformed_middle_record_is_terminal[in-writer,worker]`, `test_live_batch_support.py::test_append_refuses_a_malformed_middle_record` | | 11.F051 | [#5546](#5546 (comment)) | A `BrokenProcessPool` at submit collects finished futures, replaces an idle broken pool once, and retries the submission. A second break leaves the path deferred. | `::test_a_pool_broken_while_idle_is_replaced_at_the_next_submission[pending_completion]` | | 11.F053 | [#5542](#5542 (comment)) | Every baseline decision uses `_retained_source_path`, which is the provenance sidecar's original path for a staged SQLite snapshot, the same coordinate acquisition retains. | `test_production_baseline.py::test_a_staged_sqlite_import_is_baselined_at_the_path_acquisition_retains` | | 11.F055 | [#5542](#5542 (comment)) | Retention of a grown file is proven by streaming and hashing the baselined prefix of a larger full capture, or of a byte-proven contiguous append chain rooted at one. A blob read fault is retryable. | `::test_a_revision_that_grew_before_intake_is_proven_by_the_larger_retained_capture`, `::test_baselined_and_earlier_accepted_revisions_are_proven_through_an_ordered_append_chain`, `::test_a_chain_that_does_not_reproduce_the_revision_leaves_it_unretained[5 defects]`, `::test_a_retained_blob_read_fault_is_retryable_not_unretained` | | 11.F065 | [#4801](#4801 (comment)) | Cursor reconciliation takes the newest of the newest materialized and the newest decided-unresolved raw, ordered by `(acquired_at_ms, raw_id)`. | `test_live_watcher.py::test_cursor_reconciliation_restores_the_newest_archived_outcome[3 cases]` | | 11.F069 | [#5020](#5020 (comment)) | `WatchSource.path_artifact_kinds` replaces `allow_path_scoped_artifacts`. `codex-state` admits exactly its `session_index` and `prompt_history_log` sidecars. | `test_production_baseline.py::test_the_default_codex_state_source_baselines_only_its_declared_jsonl_sidecars`, `test_ingest_worker_assembly.py::test_codex_retained_root_sidecar_titles_survive_without_a_live_tree` (now via `default_sources()`) | | 12.F001 | [#4883](#4883 (comment)) | An ID-less trajectory call gets the step-keyed id `<message id>:tool`. An ID-less result pairs only with a sole adjacent ID-less call whose declared name agrees. | `tests/unit/sources/parsers/test_antigravity.py::test_trajectory_id_less_tool_steps_persist_their_pairing_and_file_edit`, `::test_trajectory_id_less_result_pairs_only_an_unambiguous_adjacent_call[5]` | | 12.F011 | [#4803](#4803 (comment)) | An assistant text node with `metadata.command` and empty or absent args is a `TOOL_USE` with input `{}`. Its non-JSON text stays on the block. | `test_parsers_chatgpt.py::test_chatgpt_zero_argument_command_is_a_tool_call_its_result_pairs_with[empty,absent]` | | 12.F012 | [#4721](#4721 (comment)) | The project filename is stored as `metadata["name"]`, projected to the derived column `blocks.name`. Markdown, HTML and plaintext media renderers render the carried body (fenced or escaped). | `test_parsers_claude_ai_catalog.py::test_claude_project_documents_render_body_and_file_name_after_persistence` | | 12.F013 | [#4721](#4721 (comment)) | `looks_like_session_document` admits the parser's own project and account-memory detectors. | `test_ingest_shape_admission.py::test_claude_project_export_reaches_parse_project_through_ingest`, `::test_claude_account_memory_export_reaches_its_parser_through_ingest` | | 12.F014 | [#4717](#4717 (comment)) | Relocated cwds lead `working_directories`, latest first. Chunk merge applies the same rule from relocation events. | `test_claude_code_sidecar_evidence.py::test_resume_route_opens_the_relocated_cwd_after_persistence`, `::test_chunk_merge_keeps_the_relocated_cwd_first_across_revisions` | | 12.F018 | [#4870](#4870 (comment)) | An event counts as a replacement only when neither its message link nor a same-session message with its native id exists. The provider id is compared byte for byte. The evidence key is renamed `replacement_events`. | `test_corpus_fidelity.py::test_revision_gate_counts_only_events_that_replace_a_missing_message[4]` | | 12.F020 | [#4886](#4886 (comment)) | A bare `token_usage_record` stating a known counter joins either stream shape without marking it. | `test_ingest_shape_admission.py::test_codex_rollout_with_bare_token_usage_record_ingests_its_usage`, `::test_codex_bare_token_usage_record_needs_a_known_counter` | | 12.F026 | [#5530](#5530 (comment)) | Each OTel identity component escapes `%` and `:` before the join. | `test_otel_genai.py::test_session_identity_components_cannot_run_into_each_other` | The parser and membership changes alter values derived from bytes already observed, so both manual invalidation tokens are bumped: `_PARSER_FINGERPRINT` goes to `live-batched-v4` and `RAW_AUTHORITY_PARSER_FINGERPRINT` to `revision-membership-v5`. **Derived-identity closure.** `devtools schema closure` puts these changed files inside the closure: `archive/artifact_taxonomy/support.py`, `archive/hydration.py`, `archive/revision_authority.py`, `sources/dispatch.py`, `sources/live/{append_ingest,batch,hook_paste_enrichment,parse_prefetch,production_baseline,watcher}.py`, `sources/parsers/{antigravity,codex,otel_genai}.py`, `sources/parsers/claude/{ai_parser,code_parser}.py`, `sources/prepared_jsonl.py`, `sources/source_parsing.py`, `storage/runtime/archive/records.py`, `storage/sqlite/archive_tiers/{archive_tiers_specs,write}.py` and `storage/sqlite/queries/attachment_blocks.py`. This PR must land before a rebuild starts. The only schema change is additive-derived: the `blocks.name` index.db column. It has no durable-tier migration. ## Verification Candidate `4313bff197b1b0420ede997247d9843195c81e69`, on `master` 5d56c3a. - `agentctl job start polylogue pytest_focused --workspace <worktree> -- <64 affected files>` (the selection is every test file the diff touches, plus the route and sibling suites): job 3396: `8 failed, 2569 passed`. All 8 failures are inherited (listed below). An earlier attempt, job 3387, was OOM-killed by systemd-oomd under host memory pressure and was retried unchanged. - `agentctl job start polylogue verify_quick --workspace <worktree>`: job 3388: succeeded, all 12 gates passed. - Inherited failures, classified on a detached `master` worktree with `--on-default-branch` (jobs 3335 and 3356 on 749f608, job 3384 on c950478, job 3401 on 5d56c3a), fail identically on master. They are filed as polylogue-ouv5f: - `test_import_preflight.py::test_unidentified_trajectory_rows_keep_distinct_identities` - `test_retained_tool_output_convergence.py::test_gemini_full_tool_output_survives_the_loss_of_its_source_tree` - `test_artifact_taxonomy.py::test_antigravity_brain_metadata_sidecar_is_rejected_from_live_and_schema_routes` - `test_tool_result_unknown_reason_contract.py` (3 Antigravity cases) - `test_source_laws.py::test_parse_payload_dispatches_claude_code_messages_and_single_records` - `test_revision_replay.py::test_chain_replay_supersedes_equal_frontier_quarantined_membership_head` - All fixtures are synthetic. No operator archive was read or mutated. ## Self-review Checklists re-read: `docs/review/codex-review-guide.md` (including "Do not flag" and the `polylogue/sources/AGENTS.md` review rules) and the generic list in `orchestrate/references/worker-contract.md`. It took four passes over `git diff origin/master...HEAD`: - Pass 1 found the two manual invalidation tokens left unbumped, which the guide names as a finding. They are now bumped. - Pass 1 also found retained routes that still decoded JSONL leniently. Making them strict was tried; pass 2 showed it livelocked the parser census, so it was reverted and filed as polylogue-3p8p7. Pass 2 also found the canonical-ingest vendor stub missing master's `excised` keyword; it now accepts it. - Pass 3 was driven by a focused run, where `test_live_route_interpretation.py::test_a_later_index_revision_re_derives_the_titled_session` failed on the branch but passed on master. A per-file bisection in probe worktrees traced it to `revision_backfill.py`, which had been restored from a newer master than the branch base. Restoring it to the base fixed the failure; the file is now unchanged against master. - Pass 4, on the rebased head, found nothing new. Final pass: 1. ✓ **Siblings and owners.** The ordinary-file and vendor acquisition routes share one item-admission closure (`admit_acquisition`). `classify_decode_failure` is the only decode classifier: grep for `_is_json_stream_decode_error` finds 0 hits. Strict decode covers all four writer sites, both prewarm sites, the path worker and append. The retained replay sites stay lenient on purpose (see Residuals and polylogue-3p8p7), and the ingest-worker validation-mode contract (#1745) is unchanged. Relocated-cwd order has one owner, `order_working_directories`, which serves both the parser and chunk merge. Baseline coordinates have one owner, `_retained_source_path`, which delegates to acquisition's `original_sqlite_source_path`. 2. ✓ **The fix itself.** The new `AntigravitySourceMutationError` is caught per item in `iter_antigravity_language_server_sessions` and becomes a failed path. `WriteHoldBudgetError` is re-raised ahead of the broad `except Exception` in the append and vendor paths. `PreparedDecodeError` subclasses `ValueError`, so existing `ValueError` handlers keep working. The census livelock that strict replay would have introduced is not shipped. 3. ✓ **Memory and limits.** `source_snapshot` and `_prefix_digest` stream in 1 MiB chunks. The baseline prefix proof reads one path's raw rows only for revisions with no exact match. No cap or truncation was added. 4. ✓ **Cost per unit.** Pinned cursor evidence is still one batched read per page. Chain roots are memoized, and identical blob sequences are hashed once. Hook debt targets only the sessions in the carrier. 5. ✓ **Interruption.** Write-hold checkpoints cover every append stage and each vendor item. Paste debt commits before the hook rows under one lease. A refused capture is released and the raw stays retryable, as the budget-refusal tests show. 6. ✓ **Ordering and races.** The protobuf is bound by digest from conversion to capture, and the JSON carrier is bound to one snapshot's digest. Cursor evidence is read under the admitting writer. A growth test grows the file after planning. 7. ✓ **Failure classification.** Blob read faults in the baseline proof raise `ProductionBaselineReadUnavailableError`, which is retryable. Mutation after conversion is a retryable item failure. A deterministic append decode failure goes through `_record_failed_cursor` and its 5-failure exclusion cap, not an unbounded retry. 8. ✓ **Silent outcomes.** Unattempted vendor items carry `REFUSED_UNATTEMPTED_TIME_BUDGET`. A deferred JSON capture emits `live.ingest.json_capture_deferred` and records deferral debt. A malformed live record gets terminal raw evidence instead of a silent skip. 9. ✓ **Cleanup on failure.** A mismatched capture calls `release_refused_capture`. A deferred JSON capture calls `discard_pending_receipt` and discards its carrier. Budget exhaustion calls `blob_store.discard_pending()`. The snapshot directory is removed in `finally`. 10. ✓ **Identity and keys.** OTel components are escaped injectively, and plain spellings are unchanged. The ID-less Antigravity tool id is step-keyed (`<message id>:tool`), not positional. The corpus-fidelity anti-join compares raw provider ids byte for byte (the whitespace case is tested). The `pipeline/ids.py` hash partition is untouched. 11. ✓ **Lossless transforms.** Chunk merge keeps relocation order across revisions. Re-matching paste evidence does not move it to another prompt. The ChatGPT call block keeps its non-JSON text. 12. ✓ **Degenerate inputs.** An empty or fully refused vendor cohort starts no server. A bare usage record without a counter stays refused. A document without a body renders its header alone. 13. ✓ **Consumers.** `allow_path_scoped_artifacts`, `indexed_events` and `_is_json_stream_decode_error` have 0 remaining references (`grep -rn` across `polylogue`, `devtools`, `tests` and `docs`). Every stub of `iter_antigravity_language_server_sessions` and `_antigravity_raw_snapshot` matches the new signatures. `docs/daemon.md` and `docs/maintenance.md` describe the new behaviour. The layering baseline digest for `production_baseline.py` is re-anchored, with an unchanged site count. 14. ✓ **Tests and stubs.** Each finding has a test on its production route (table above), driving `LiveBatchProcessor`, `ingest_append_plans`, `ingest_record`, archive persistence and read-back, or the watcher reconciliation, not a helper. Removing the named fix turns the listed test red: for example, drop `admit_path` and the pass-budget test converts all three items. Clock-driven tests use `frozen_clock`. Stubs follow the changed signatures (item 13). 15. ✓ **Trust boundaries.** No secrets or operator data. The pre-commit secret-scan candidates are pre-existing spans in `revision_backfill.py` and `test_live_batch_support.py`, not lines of this diff. Generic list: (1) every criterion is met on the production path, per the table; (2) siblings are covered in item 1; (3) consumers are covered in item 13; (4) failures are typed, per items 7 and 8; (5) each new test fails without its fix (item 14); (6) the diff carries no private data. ## Residuals - Retained replay still decodes known-provider JSONL leniently, so a rebuild can publish a session without a malformed record that live intake refused. Strict replay decoding was tried in this branch and reverted: the parser census records the parse exception as a `failed` receipt, re-selects it on every pass, and replay planning then never completes. Filed as polylogue-3p8p7, which needs a typed terminal census outcome. - A JSONL record over SQLite's value bound fails as `terminal_corrupt_input`, not under a size-specific reason. - A stage-level preparation exception now defers the page's JSON documents instead of decoding them under the writer (F037). A prefetch that failed deterministically would keep them deferred, with visible debt. - `canonical_archive_ingest` builds its `WatchSource`s with every path rule admitted, as before this change. The `codex-state` sidecar boundary is a daemon-default property. - The Codex hosted review is usage-limited on this PR (its gate reports "not required"), so no hosted code review covered this head. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Summary
Make append cursor publication bind to one unchanged source observation.
Problem
Claude proof mismatches could escape as exceptions, cursor state could retain plan-time Claude offsets after a mutable-header rewrite, failed semantic reads were not fully metered, and growth during a proof could still publish a cursor.
Solution
Re-prove Claude append bytes at the current header boundary, meter every semantic-frontier read, publish the current observation, and invalidate any source changed after proof starts. Preserve the established handoff when a source is already absent after append admission.
Verification
nix develop --command devtools test tests/unit/sources/test_live_batch_support.py -k 'disappears_after_admission or claude_payload_mismatch or claude_header_boundary or failed_claude_frontier or grows_during_proof'reported5 passed.nix develop --command devtools test tests/unit/sources tests/unit/pipeline -k append_prefixreported3 passed.nix develop --command devtools gate oracle-integrityreportedTest hermeticity intact.lane verifyreportedjob 935 polylogue:verify_quick succeeded.Residual risk
The repository has no declared provider-shaped 77 MiB or 442 MiB benchmark command. The complete corpus is delegated to the PR workflow by the lane contract.