Skip to content

fix: close Codex P1 findings in maintenance (polylogue-1tyq5.196) - #5822

Merged
Sinity merged 1 commit into
masterfrom
fix/codex-p1-maintenance
Sep 29, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/codex-p1-maintenance

Conversation

@Sinity

@Sinity Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner

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.ai/code/session_015pdKaZWyGe6Ngvsz468dzg

Source conservation parsed only the snapshot's archive!member form, so a raw
the ZIP readers recorded as archive:member read as source_lost whenever its
blob reference was absent, even with the archive and member present. Resolve
the colon form through the shared zip_member_coordinate parser.

Closes Codex finding F014 of polylogue-1tyq5.196; the other 14 findings are
already fixed on master, stale, or tracked (per-finding table in the PR).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
@Sinity
Sinity enabled auto-merge (squash) September 29, 2026 10:22
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 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
🔒 Security Review ✅ Completed 2026-09-29T10:27:53.319796Z 6674ec9 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.

@Sinity
Sinity merged commit 66dd240 into master Sep 29, 2026
2 of 3 checks passed
@Sinity
Sinity deleted the fix/codex-p1-maintenance branch September 29, 2026 10:25
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