fix: close post-merge archive safety gaps#143
Conversation
|
Codex review: found issues before merge. Reviewed July 18, 2026, 3:17 PM ET / 19:17 UTC. Summary Reproducibility: yes. from source and the added regression cases: the affected paths are the attachment redirect/final-response boundary and incremental snapshot import before archive mutation. A live local reproduction was not independently run because the read-only terminal sandbox failed before repository inspection commands could execute. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep the focused redirect and incremental-import fixes with their regression tests, remove the release-owned Do we have a high-confidence way to reproduce the issue? Yes, from source and the added regression cases: the affected paths are the attachment redirect/final-response boundary and incremental snapshot import before archive mutation. A live local reproduction was not independently run because the read-only terminal sandbox failed before repository inspection commands could execute. Is this the best way to solve the issue? Yes, mostly. Correcting the redirect threshold and routing incremental rows through the existing validator are narrow fixes; the release-owned changelog addition is not part of the implementation solution and should be removed. Full review comments:
Overall correctness: patch is correct AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 15af97146636. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
Summary
Root cause
The post-merge review of #134 found that the redirect guard counted the initial request as a redirect and that final-response validation treated optional transport metadata as mandatory. The post-merge review of #135 found that routine incremental imports used a separate filter that skipped the shared tombstone validator.
Proof
GOWORK=off go test ./... -count=1GOWORK=off go test -race ./internal/media ./internal/share -count=1Risk
Low. Changes are confined to attachment redirect/transport compatibility and the existing snapshot-row validator at the incremental import boundary.