Repository navigation
chore: Measure cold-build index deferral against equivalent finished ar… - #4924
Conversation
…n.7' into batch/polylogue-20260912-113845-85b4c3f6/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 |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98fd495cc1
ℹ️ 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".
…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]>
|
Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
|
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. |
Batch
polylogue-20260912-113845-85b4c3f6on basee21f2bc8a264.polylogue-bp12n.7 Measure cold-build index deferral against equivalent finished archives