Repository navigation
fix: Account for Codex database tables before excluding useful evidence - #4925
Conversation
…s' into batch/polylogue-20260912-113639-8d9f1ea3/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: 00be09ab5f
ℹ️ 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. |
Batch
polylogue-20260912-113639-8d9f1ea3on basee21f2bc8a264.polylogue-2fr8s Account for Codex database tables before excluding useful evidence