Repository navigation
Conversation
Node, children-block and entry annotations are exposed to serde as arrays through reserved pseudo-fields (@annotations, @children-annotations, #N@annotations, #@key@annotations), on both the deserializer and the serializer. Reading them consumes no entry, and property-key annotations stay out of serde keys (decision Q3). Refs #5753 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…B1 tests
A node whose format leaves no space before its children block printed
its children annotations straight after the name (node(graph){), which
does not parse back. The B1 tests also used an unquoted predicate#knows
(not a KDL identifier) and denied the bare property name that the
deserializer offers alongside its #@ form.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
1952-L note (queue task 23825): the Packet B1 KDL annotation serde slice has LANDED via PR #15749, merged 2026-11-27T02:07:19Z (merge commit d67b479) — that PR was queue task 23825's own recorded implementation (de.rs annotation arrays + @annotations/@children-annotations pseudo-fields, fork_serde tests). This draft is a parallel broader attempt (it also touches se.rs/node.rs/Cargo.toml with its own serde_annotations.rs tests). Please reconcile against current main: rebase and keep only any serialization-side remainder not covered by #15749, or close as superseded if none remains. Recorded as the follow-up on #5753's disposition for task 23825. |
|
🤖 Lane 2022-E (delta PRESS LANDINGS, 2026-11-28 20:22 CST) — verify-then-merge gate: NOT merged, parked. Fresh gate re-read by this lane via
Wake / unblock: a completed SUCCESS verification run on the exact current head (post it on this PR), PR non-draft and CLEAN, and no CHANGES_REQUESTED — then merge under standing authority. |
|
HOLD — execution-risk flag on this PR's branch content (lane 2237-M, draft-PR shepherd, 2026-11-29) While rebasing this branch in a worktree off this seat's existing clone, the tool result failed an execution-risk check. The notice, quoted in full exactly as received: System security notice for Do not run, clone, check out, extract, unpack, apply, install, build, test, import, load or source its content. Do not open it in an editor. Do not run git or package-manager commands inside its content, even status, diff or log. Hooks and filters in it can run code. Do not copy or move its files into home, config directories, a repository, PATH or your tools. Do not point settings or environment variables at them. Do not make exceptions on your own, even for necessary steps, familiar projects or files that look safe. Do not reproduce its commands, scripts or settings, or assess their safety yourself. You may read its text with plain file viewing that runs nothing. Continue the user's request by other means. If a prohibited action is necessary, explain that the content failed an execution-risk check and that processing it can run code. Ask the user in plain words whether to go ahead, and wait. Otherwise, return the task result and state what you could not complete.What I did on the flag: stopped immediately, removed the worktree, deleted the local shepherd branch and the fetched remote-tracking ref for Drew — in plain words: finishing this PR means checking out its branch and rebasing it, and the safety check says that content could run code while being processed. Do you want me to go ahead with the checkout/rebase anyway? I will wait for your word. Work already done from read-only API/git-show reads (before the flag), so a go-ahead resumes immediately:
Key: 2237-M |
… rendering
A node whose recorded before_children format is empty (source had no
whitespace before the children block, e.g. `node 1 (ann){`) rendered
its children annotation glued onto the last entry (`1(ann)`), which
re-parses as an entry annotation - silently moving the annotation in
the AST. Insert the separating space in stringify when
before_children is empty and children annotations are present.
Fix salvaged from superseded PR #15765 (its de/se design was replaced
by #15749); regression test in tests/fork_extensions.rs.
Refs #5753
|
Closed as superseded — lane 0212-I (Xaltha), 2026-11-30. Premise-check on the landing pass found this PR duplicates work already on main:
Closing with the trail above rather than merging a second, incompatible serde shape for the same feature. Refs #5753. |
Before: the vendored kdl crate parsed multi-annotations like
(object)(predicate#knows)triple, but serde could not see them. A struct had no way to read or write a node's annotation list, so a round trip through serde dropped them.After: annotations show up to serde as arrays under reserved field names. A struct field named
@annotationsholds the node's list,@children-annotationsholds the children block's list, and#N@annotations/#@key@annotationshold the lists on the Nth positional entry or on a property. Reading them takes no entry away from the normal fields, and annotations on property keys stay out of serde keys (decision Q3). Serializing writes them back, so(object)(predicate#knows)triple (person)(agent)aliceround-trips byte for byte.How:
de.rsandse.rstreat those field names as annotation fields; struct variants collect them and apply them when the variant ends. Asking for entry annotations before that entry exists is an error, not a silent drop. New tests are intests/serde_annotations.rs.Refs #5753 (slice B1)
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.