Repository navigation
chore: Preserve declared Codex event fields through archive reads - #4881
Merged
Sinity merged 4 commits intoSep 12, 2026
Merged
Conversation
…w' into batch/polylogue-20260912-064103-ae6af779/integration
…e' into batch/polylogue-20260912-064103-ae6af779/integration
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced 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 |
Sinity
deleted the
batch/polylogue-20260912-064103-ae6af779/integration
branch
September 12, 2026 07:11
Sinity
added a commit
that referenced
this pull request
Sep 14, 2026
…batch (#5040) Triage of the sources/ingest/schema share of the 58 failures from the first complete full-corpus run (job 650). **All 16 classified and fixed: 602 passed, 0 failed** across the owned files. ## Two campaign-blocking product defects Both would have damaged the final archive build silently. Filed as `polylogue-gjfsx` and `polylogue-0zhhc`. ### 1. Ingest admitted Hermes SQLite page images that replay refuses `test_binary_payload_parse_parity.py` ×2, `test_revision_backfill.py` ×2. Replay refuses anything that is not the declared logical export; the daemon's per-raw ingest route still parsed page images into sessions. **Would corrupt a from-scratch build:** a reindex mints a *second* source authority for content the archive already holds under its logical revision. CLAUDE.md states the rule directly — *"A mutable SQLite source is the one material that is not its own bytes… that export's blob hash is the member's logical revision. A page image cannot be proven against a live database and re-snapshots on every commit."* Fixed by gating `_hermes_sqlite_marker_payload` on `is_declared_logical_export`. The fixtures were retargeted to real logical exports rather than relaxing the production check — the check is what makes the revision provable. ### 2. One excised file aborted an entire reingest batch `test_excision.py::test_reingest_batch_skips_excised_file_without_aborting`. Two acquire-time excision gates raised different exception classes. The orchestrators catch only `ContentExcisedError`, so the policy gate's bare `ExcisionPolicyError` escaped, rolled back the in-flight batch and re-raised. **Would silently truncate a from-scratch build:** excision markers survive an `index.db` rebuild by design, so a rebuild over a tree containing one excised file drops every unrelated session in that batch and every file after it — and reports success. Fixed at the raise site; refusal semantics unchanged. ## A verification hole, restored The retryable-SQLite-lock guard has been **vacuous since #4924** (`polylogue-6e9d5`). A drifted stub raised `TypeError` instead of the injected lock, so the two tests proving *"a lock must not advance or poison a cursor"* never exercised it. Production was never wrong — but cursor-advance-past-unwritten-data was unverified, and the rebuild runs heavy concurrent writers, which is exactly the condition the guard exists for. The stub is now signature-agnostic and cannot drift. ## No parse, conservation, or identity defect exists Two tempting wrong conclusions were checked and rejected: - `Provider.GEMINI == Provider.UNKNOWN` is documented **forward** provider-wire normalization, not an Origin reversed into a guessed Provider. The test hand-maintained a token list that omitted most real aliases. - The claude-code "duplication" was a **measurement artifact** — the parser emits each wire value exactly once, proven by counterfactual; the planted side was blind to `text`/`thinking`/tool-argument positions the observed side counted. Fixed by **symmetry rather than suppression**, which strengthened the check: claude-code checked bodies 42 → 221, with no generated bytes changed. ## Remaining classifications **STALE-TEST ×6** — convergence-debt rows deliberately retired by #5027 (pending is now `required − valid` derived from the durable relation, so the backlog is not lost), Codex envelope support landed by #4881, the provider-token list. **TEST-INFRA ×5** — drifted stub, measurement asymmetry. **ORDER-DEPENDENT ×0** — the one candidate was Hypothesis nondeterminism, disproved rather than assumed. None carry rebuild risk. ## Verification ``` devtools test <11 owned files> 602 passed, 0 failed devtools verify --quick exit 0 ``` ## Residual, flagged not fixed `ConservationResult.to_dict()` emits findings as strings while `tests/infra/wire_support.py` deserializes them as objects — latently broken for any non-conserved cached receipt. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DYUNBGoE652b3nfmq3CtqK <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved archive ingestion and replay consistency by validating logical exports and rejecting unsupported raw database images. * Preserved conservation failures and detailed findings when restoring saved support data. * Improved handling of content-excision violations with clearer error details, including the affected content and source path. * Enhanced recovery and retry behavior for deferred indexing and sidecar ingestion. * Improved recognition of common provider aliases during data processing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Batch
polylogue-20260912-064103-ae6af779on base3901323aeb81.polylogue-q0vka Preserve Codex response phase and turn identity
polylogue-z1rdw Preserve declared Codex event fields through archive reads
polylogue-ooufe Bind schema sampling and verification to the selected archive