Repository navigation
chore: Delete already-unneeded historical source control planes - #4618
Conversation
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. |
|
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 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21238db45c
ℹ️ 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".
|
Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):
Resolving these threads. |
) ## Summary Works the 15 unrecorded Codex P1 findings on `polylogue/maintenance` (bead polylogue-1tyq5.196). One real defect is fixed here; 13 are already fixed on master or cite deleted code; one is real but needs a durable owner-resolution reason and is tracked in its own bead. ## Problem `_source_exists` only understood the snapshot's `archive!member` coordinate. The ZIP readers (`decoder_zip.py:304-380`, `import_explain.py:648`) record `archive:member`, so a raw whose blob reference was absent was typed blocking `source_lost` while its archive and member were still on disk. ## Solution Resolve the colon form through `polylogue.core.raw_coordinates.zip_member_coordinate`, which tries each colon and accepts only a prefix that is a real ZIP, so a loose file with a colon in its name still resolves literally. ## Verification AgentCTL: `verify_quick` job 2727, `pytest_focused` job 2728 (passed). ## Self-review - **Sibling sites:** The other consumer of member coordinates in this module is the frontier join, which already builds `root:member` (source_conservation.py:895); `_source_exists` was the only `!`-only parser. - **Fail closed:** A colon prefix counts only when it is a real ZIP; a missing ZIP or member returns False, and an unreadable ZIP keeps the existing container-existence rule. - **Tests prove the production route:** The tests call `_source_exists`, the function `audit_source_conservation` uses; the first fails on master because the colon form returned False. - **Unbounded work / compatibility / identity:** No new I/O beyond one namelist per container (cached); no shim or dual path; no hashed or derived-identity file touched. ## Findings | Finding | Disposition | Evidence | Test | |---|---|---|---| | F001 | fixed-already | Already fixed on master: the blob-integrity owner passes `active_index_context` through to `_check_blob_integrity` (polylogue/maintenance/archive_verification.py:1047), introduced in #4149. | | | F002 | stale | The browser-capture export-denominator branch and `_iter_chatgpt_conversations` were removed when #4188 rebased ChatGPT conservation on the real denominator; nothing on master still runs this code. | | | F003 | stale | `polylogue/maintenance/assertion_transition.py` was deleted in #5079 (9d5a020, the durable-reference transition actuator). | | | F004 | stale | `polylogue/maintenance/assertion_transition.py` was deleted in #5079 (9d5a020), including the successor-manifest holdout path. | | | F005 | stale | The closure repair planner (`plan_blob_reference_closure`, `_acquired_attachment_ids`) was deleted with the generic repair product in #4698 (cfc4c73); blob_reference_closure.py is now a read-only law whose predicate excludes ref_count 0. | | | F006 | stale | `polylogue/maintenance/cursor_authority_reconcile.py` was deleted in #4618 (63f2043) with the historical source control planes. | | | F007 | fixed-already | Already fixed on master: a present parent with unresolved references is classified `materialized_unresolved` (parent_session_accounting.py:397-402) and those references count in `unresolved_reference_total`, which is part of `blocking_count` (:144, :493-498). | | | F008 | tracked | Still real: the writer stores a metadata-only attachment whose named owner message is absent with ref_count 0 and no ref, and conservation classifies every such row as the non-blocking `attachment_unowned`; the owner-resolution reason (`MESSAGE_MISSING` vs `OWNER_AMBIGUOUS`) is not durable, so the check cannot tell them apart. | polylogue-3ezec | | F009 | fixed-already | Already fixed on master: `acquired_attachment_missing_ref_predicate` requires `ref_count != 0` (polylogue/storage/blob_liveness.py:27-34), so typed-unowned rows (ref_count 0) no longer trip attachment-coverage or blob-reference-closure. | | | F010 | fixed-already | Already fixed on master: a raw at a configured path whose digest is not the member's current one is skipped as an ordinary historical revision (source_conservation.py:930-943). | | | F011 | fixed-already | Already fixed on master: the content witness is per membership, matched against any session the raw materialized, so sibling sessions of a grouped raw no longer report `content_mismatch` (source_conservation.py:947-970). | | | F012 | fixed-already | Already fixed on master: mutable-SQLite members compare the logical-revision digest; the path-only disjunct is gone (source_conservation.py:899-913). | | | F013 | fixed-already | Already fixed on master: raws are indexed by canonical source path once, making the member loop linear (source_conservation.py:863-872). | | | F014 | fixed | `_source_exists` now also resolves the `<container>:<member>` coordinate the ZIP readers record, through the shared `zip_member_coordinate` parser, so a present member of a present ZIP is conserved instead of reported `source_lost`. | tests/unit/maintenance/test_source_conservation_zip_coordinates.py::test_colon_member_coordinate_of_a_present_zip_is_conserved | | F015 | fixed-already | Already fixed on master: `build_wanted_source_receipt` raises when no source is declared (source_manifest_continuity.py:508-513). | | ## Residuals F008 stays open in its own bead: telling a missing owner message apart from an ambiguous owner needs the writer to persist the owner-resolution reason. 🤖 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]>
|
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 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Summary
Completed the source-tier fresh-DDL parity fix for the historical source-control-plane deletion. Migrated historical source tiers may retain the seven retired artifact-census schema objects, while fresh source generations omit them.
Problem
The deletion removed artifact-census objects from fresh source DDL, but durable fresh-DDL parity still treated those migrated-only historical objects as unexpected. Valid historical source migrations therefore failed parity despite preserving frozen archive readability.
Solution
Added an explicit source-tier retired-object set and excluded only those objects from the migrated parity inventory. Other unexpected, missing, or changed schema objects remain failures. No historical archive was mutated.
Verification
.venv/bin/python -m devtools test tests/unit/storage/test_durable_migrations.py -k 'historical_source_projection or canonical_inventory'passed: 2 passed, 46 deselected..venv/bin/python -m devtools verify --quickpassed all quick gates, including mypy, rendering, layering, schema checks, oracle integrity, and reachability..venv/bin/python -m devtools render all --checkpassed: all generated surfaces synchronized and local links resolved.rg -n '^(from|import) .*(_blob_namespace_quarantine|_cursor_authority|_hook_payload_ref_reconciliation|_raw_authority_recovery|blob_namespace_quarantine|cursor_authority_reconcile|hook_payload_ref_reconciliation_apply|hook_payload_ref_reconciliation_receipt|raw_authority_artifact_census|raw_authority_recovery|raw_authority_census)' polylogue testsfound no imports of deleted modules. The two surviving storage-module matches are outside the deleted set.git diff --checkpassed.Residual risk
The broad storage selector was stopped at 4% after the latest lane instruction narrowed verification to the residual migration fix and quick gate. The feature branch remains two commits ahead and two commits behind the local
origin/master; rebasing was explicitly disallowed for this completion pass.