Skip to content

fix: Account for Codex database tables before excluding useful evidence - #4925

Merged
Sinity merged 2 commits into
masterfrom
batch/polylogue-20260912-113639-8d9f1ea3/integration
Sep 12, 2026
Merged

Sinity merged 2 commits into
masterfrom
batch/polylogue-20260912-113639-8d9f1ea3/integration

Conversation

@Sinity

@Sinity Sinity commented Sep 12, 2026

Copy link
Copy Markdown
Owner

Batch polylogue-20260912-113639-8d9f1ea3 on base e21f2bc8a264.

polylogue-2fr8s Account for Codex database tables before excluding useful evidence

  • Every observed Codex database/table is classified as retained-and-consumed, retained-for-later-consumption, or deliberately excluded, with source evidence for the choice; new/unrecognized structure is
  • Nonempty synthetic artifact and dynamic-tool rows pass through ordinary acquisition to retained evidence, or a specific demonstrated redundancy/product exclusion explains why they should not. Empty li
  • Compare any declared duplicate representation with its claimed retained replacement, including missing original rollouts; unique wanted records are preserved through an existing source route.
  • New declared content survives original-database disappearance, is not minted as a phantom session, and follows polylogue-0qbdh supersession rules.
  • Run devtools test tests/unit/sources/parsers/test_codex_state.py tests/unit/sources/parsers/test_codex_state_schema_canary.py tests/unit/sources/test_sqlite_export_replay_parity.py with new table/colu

@coderabbitai

coderabbitai Bot commented Sep 12, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d47cf090-01b2-4bbd-97dc-556f2ff9a4e0


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T12:05:24.885965Z 00be09a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread polylogue/sources/origin_specs.py Resolved
@Sinity
Sinity merged commit 911b81c into master Sep 12, 2026
3 checks passed
@Sinity
Sinity deleted the batch/polylogue-20260912-113639-8d9f1ea3/integration branch September 12, 2026 12:05
Sinity added a commit that referenced this pull request Sep 22, 2026
…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]>
@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at bf68918):

  • P1 polylogue/sources/origin_specs.py:2082: Not a defect (checked at bf68918): The remedy targets cursors recorded under the earlier two-table declaration; a fresh-format archive first observes state_5.sqlite with the expanded logical table set already declared (polylogue/sources/origin_specs.py:2452-2461), and earlier archive state is moved aside rather than migrated (AGENTS.md:74-77, AGENTS.md:192-194).

Resolving every thread listed; confirmed defects are fixed under the named bead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant