Repository navigation
doc(id): attachments & media cluster decision record (#5844) - #7906
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 44 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 76230f608f
ℹ️ 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".
| 4. **Source immutability:** OCR, annotation, and preview generation | ||
| never mutate the source payload. All derived state is a separate | ||
| object that can be regenerated or discarded. |
There was a problem hiding this comment.
Exclude authored annotations from discardable derived state
For annotation objects, this invariant incorrectly treats user-authored data as regenerable state alongside OCR and previews. Decision 3 defines annotations as separate objects carrying their own author, timestamps, and content; those inputs cannot be reconstructed from the unchanged source PDF. An implementation following this invariant could therefore permanently lose annotations when clearing or rebuilding derived state. Limit the discard/regenerate guarantee to computed derivatives and explicitly preserve authored annotation objects as durable data.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Disposition: accepted (valid P2). Invariant 4 conflated authored annotations with computed derivatives. Fixed forward in PR #7910: the regenerate/discard guarantee now covers only computed derivatives (OCR output, thumbnails/previews), and authored annotation objects are explicitly durable user-authored data, never discarded when clearing derived state. (This finding completed after PR #7906 had merged on an earlier truncated review-state read; dispositioning now with the fix-forward PR.)
Closes #5844.
Decision record for the #5678 knowledge-layer attachments & media cluster, written after its hard dependency resolved: #6435 closed completed 2026-11-09 and its feature matrix landed on main via PR #7887.
doc/knowledge-layer-attachments-media-5844.mdrecords, with matrix evidence and rejected alternatives:Preserves #5678's ruled read-authority resolution order (object → user default → server config → public) and records 7 implementation invariants for the #2048 object model. Design only; no code changes.
Task 13062 · lane code-n
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.