Repository navigation
docs: KDL fork section 5 design decisions (#5753) - #10679
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
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 55 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Design record deciding issue #5753 §5 — the KDL fork design pass (queue task 16766, follow-on from triage task 15229). Fork base and §4 commitments were settled in #5753 (kdl-org/kdl-rs
kdlv6.7.1; absolute compatibility; universal/multiple/structured annotations; performance first-class). This record lands the remaining design work as decisions, not option surveys.Decisions (Q1–Q3)
path ( "#" segment )*,:namespace paths, keyed/positional parameters) that decomposes into triples under parent id: design: KDL as human presentation format + triples + ANSI graph SQL (SQL/PGQ) for ID data #5688 §2 — annotation occurrence node, name/namespace chain, parameters as data-derived predicates, and the raw payload always carried verbatim (§2.4 payload boundary), so decomposition is lossless.kdlx version=1 extensions="…"declaration node: strict tooling detects extension use from the first node alone and warns before choking; our parser never requires it (undeclared extension use is a lint warning). The declaration becomes document metadata triples / a"$kdlx"object in JSON/YAML renderings, never content triples.ty: Option<_>→annotations: Vec<_>everywhere, plus the missing prop-key and children-block slots. Serde: annotation lists serialize as arrays of strings (no single-value collapsing); derive consumers read them via reserved@annotations/@children-annotationspseudo-fields; prop-key annotations are deliberately NOT exposed through serde map keys (no such slot in serde's data model) — they surface in the AST, a@key-annotationssidecar, and the triple stream.Recommendations (Q4–Q5)
Split
The record names the implementation split: Packet A (parser/AST, blocks all), Packet B (serde + conversion), Packet C (benchmarks + upstream engagement).
Parent #5688 is linked from the record; results are recorded on #5753.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.