Skip to content

docs(id): decision record for KDL presentation surfaces (#5910) - #7797

Merged
developing-today[bot] merged 3 commits into
mainfrom
queue/12394-5910-kdl-presentation-surfaces
Nov 9, 2026
Merged

developing-today[bot] merged 3 commits into
mainfrom
queue/12394-5910-kdl-presentation-surfaces

Conversation

@dezren39

@dezren39 dezren39 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Closes #5910.

Decision record settling the three §1.4 presentation surfaces named by parent #5688: human-readable export, hand-authored upload, and agent-authored statements.

What it decides

  • One pipeline, three front doors. Every write surface enters the shared parse → canonical JSON → decompose → resolve pipeline at stage 1. No write surface may enter at stage 3 or later — the concrete form of the parent's "no agent-only back door".
  • Export is a read-only derived rendering from the retained canonical JSON anchor to KDL. It preserves the authored statement boundary and does not recompose triples heuristically.
  • Hand upload is one authored compound statement with an author identity; errors are actionable for non-developers (line/column, construct, fix).
  • Agent statements use the same upload path with a required provenance stamp recorded on the canonical JSON anchor, not authorable as KDL.
  • Trust is one policy stage on the author, after validation — untrusted humans and untrusted agents take the same staging route. Staging is a state of a submission, not a second store.
  • Round trip: only id: design: KDL ⇄ JSON canonical conversion + round-trip contract (from #5688) #5906's canonical-JSON → KDL → canonical-JSON Tier A guarantee is claimed. Store-level reimport identity and triple→KDL reconstruction are left to id: design: triple decomposition rules for KDL statements (from #5688) #5907, since id: design: KDL ⇄ JSON canonical conversion + round-trip contract (from #5688) #5906 calls the content hash an identity candidate.

Deferred (named, with defaults)

Decomposition rules (#5907), payload boundary (#5908), annotation syntax (#5753), revision linkage of edited exports, and cross-statement re-composition.

Verification

Docs-only: one new file, no code touched. Baseline origin/main at cc09dd4f5f; confirmed no KDL parser/validator/ingest code exists in pkgs/id at that baseline.

🤖 Generated with OpenCode


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

repo-worker-code-k added 2 commits November 8, 2026 13:42
Settles the three §1.4 surfaces from #5688: human-readable export,
hand-authored upload, and agent-authored statements. One validation +
decomposition pipeline with three front doors; export is a read-only
derived rendering; trust is one policy stage on the author, not a
second pipeline. Round trip is guaranteed on canonical JSON per #5906,
with reimport of an unmodified export idempotent by content hash.

Refs #5910
Store-level reimport identity and triple-to-KDL reconstruction belong
to #5907; #5906 calls the content hash an identity candidate, not a
decision. Claim only the canonical-JSON conversion guarantee.

Refs #5910
@dezren39
dezren39 requested a review from a team as a code owner November 8, 2026 19:55
@coderabbitai

coderabbitai Bot commented Nov 8, 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 35 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: 67c8c845-8e78-4bbf-aa27-f5a30fbf3979
Commits

Reviewing files that changed from the base of the PR and between 38ad37e and 8c56153.

Files selected for processing: 1

  • doc/2026-11-08_decision_id5910_kdl_presentation_surfaces.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 8, 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-08T20:02:56.081738Z 8c56153 New commits
ℹ️ 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.

Keep canonical provenance metadata outside the hashed JSON bytes, avoid
inventing a payload rendering, and honor #5906's multi-annotation
representation. Keep access control distinct from the shared trust gate.

Refs #5910
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: KDL presentation surfaces (from #5688)

1 participant