Skip to content

doc(id): attachments & media cluster decision record (#5844) - #7906

Merged
dezren39 merged 1 commit into
mainfrom
queue/13062-5844-attachments-media
Nov 9, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/13062-5844-attachments-media

Conversation

@dezren39

@dezren39 dezren39 commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

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.md records, with matrix evidence and rejected alternatives:

  • File handling — ADOPT attachments as first-class addressable resources (Joplin/Logseq shape); references not copies; size caps as sync/deployment policy, not model property.
  • OCR/handwriting — ADAPT mobile capture as attachment resources + local/on-user-infrastructure OCR derivative objects; server-side indexing by default rejected (an index is a read path under the id: design: Knowledge layer feature program — competitor feature matrix, import/export, read-authority #5678 order).
  • PDF annotation — ADAPT Logseq's attachment-native shape; annotations are separate objects, source PDF immutable.
  • Export — REJECT silent payload drops; exports state exclusions before running and carry a payload manifest.

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


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 9, 2026 01:45
@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e4f64172-df13-4590-9834-1fb8043f58e0
Commits

Reviewing files that changed from the base of the PR and between 1134e4b and 76230f6.

Files selected for processing: 1

  • doc/knowledge-layer-attachments-media-5844.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T01:48:00.390176Z 76230f6 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.

@dezren39
dezren39 merged commit a97c23c into main Nov 9, 2026
2 of 5 checks passed
@dezren39
dezren39 deleted the queue/13062-5844-attachments-media branch November 9, 2026 01:47

@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: 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".

Comment on lines +142 to +144
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

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.

id: design: knowledge-layer feature matrix investigation (from #5678) id: design: attachments & media cluster (from #5678)

1 participant