Repository navigation
fix(storage): rekey proven browser captures - #2850
Conversation
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]>
|
Warning Review limit reached
Next review available in: 31 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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: 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".
|
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. |
Summary
Adds a separately receipted actuator for the five proof-approved current ChatGPT browser captures whose durable unknown-origin raw has
native_id = NULLbut 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.pyaddsrepair_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.Acceptance criteria
Ref polylogue-lkrc.2.