Skip to content

fix(storage): rekey proven browser captures - #2850

Merged
Sinity merged 1 commit into
masterfrom
feature/fix/rekey-proven-browser-bytes
Jul 13, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/fix/rekey-proven-browser-bytes

Conversation

@Sinity

@Sinity Sinity commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a separately receipted actuator for the five proof-approved current ChatGPT browser captures whose durable unknown-origin raw has native_id = NULL but byte-proven, self-baseline authority.

Problem

The existing ordinary and legacy origin-repair routes correctly reject this distinct evidence shape: source-v7 rows have no retained membership census, while the current unknown-key head and selected-baseline application already prove the parsed ChatGPT session. Rewriting historical evidence or accepting canonical byte heads would be unsafe.

Solution

polylogue/storage/repair.py adds repair_byte_proven_browser_capture_null_native_ids. It admits only the exact byte-proven/null-native/self-baseline/no-census shape, re-proves bytes and parser identity under lock, creates a canonical byte witness, and uses the existing rollback-superjournal transport for atomic source/index commit. It accepts only no canonical head or an exact semantic witness; incompatible/byte canonical heads and drift remain fail-closed. Its receipt schema and immutable detail are distinct, while ordinary/legacy receipt payloads remain byte-for-byte compatible.

The focused fixtures cover three no-head cases, two semantic-witness cases, the four observed conflict/drift shapes, source-v7, generated active-index routing, idempotency, stale-proof rejection, and rollback.

Verification

  • devtools verify --quick — all 15 quick gates passed.
  • devtools test tests/unit/storage/test_browser_capture_origin_repair.py -k byte_proven_browser_rekey — 10 passed, 111 deselected.
  • A broader repair-file run was intentionally not completed while the verified backup was I/O-bound; it entered the known D-state storage stall after selected legacy/ordinary cases had passed. No live archive or daemon mutation occurred.

Acceptance criteria

  • Exact byte-proven source/head/application proof: satisfied by actuator predicates and fixtures.
  • Evidence-preserving, receipted, idempotent copy-forward: satisfied.
  • Ineligible conflicts fail closed: satisfied in focused fixtures; live application remains a separate stopped-daemon procedure.
  • Source-v7 and generated active-index routing: satisfied.

Ref polylogue-lkrc.2.

Problem: nine current ChatGPT sessions retain unknown-origin raws. Five have an exact byte-proven NULL-native source envelope and selected-baseline head evidence; they cannot use the quarantined legacy route.\n\nWhat changed: add a separately receipted byte-proven rekey actuator. It requires the exact no-membership source-v7 shape, keeps the immutable old source/index evidence, copy-forwards a canonical byte witness through the rollback-superjournal transport, and only admits absent or semantically equivalent canonical heads.\n\nCompatibility: ordinary and legacy repair receipt targets exclude the new provenance-only fields, preserving their existing planned-receipt format.\n\nRef polylogue-lkrc.2.\n\nCo-Authored-By: Claude <[email protected]>
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 31 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: babe7050-3149-4744-8967-ffa37386a2f1

📥 Commits

Reviewing files that changed from the base of the PR and between 2b0221a and 49bef2e.

📒 Files selected for processing (2)
  • polylogue/storage/repair.py
  • tests/unit/storage/test_browser_capture_origin_repair.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fix/rekey-proven-browser-bytes

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.

@Sinity
Sinity merged commit 64f4a00 into master Jul 13, 2026
2 checks passed
@Sinity
Sinity deleted the feature/fix/rekey-proven-browser-bytes branch July 13, 2026 16:55

@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: 49bef2e0e2

ℹ️ 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/storage/repair.py Resolved
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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