Repository navigation
CND 0.5.0 core: rich text, block containers, traversal, validation, hashing - #8
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
Move the forward edge classes and RawSource into cnd.core.text, add Edge, Mark, RichText and Numbering, and regenerate the schema for the reworded NodeRef description. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…onition, layout (proposal 0013) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
… the schema Migrate the six top-level fixtures to 0.5.0 (heading refs into text, grid table to layout, nested list item to nested list node), add fixtures/elements.cnd, regenerate schema/cnd.schema.json, and port test_cnd.py and test_schema.py out of collect_ignore. Two tests added: elements fixture coverage and incoming() reading edges from texts. No tests deleted; no assertion needed loosening. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…h in the context Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…t (proposal 0013) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…ths in the document hash Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…ts twin fixture Field(default_factory=list|dict) left no default in the generated schema, so the section 10 rule could not be followed from the schema alone. Use literal defaults, regenerate the schema and vectors, add elements_explicit.cnd (every default written out) which must hash like elements.cnd, list the defaults in spec section 6, walk iter_all() in Cnd.paginated, clarify iter_nodes path docs, rewrap the NodeRef docstring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…pty marks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
…ries; test paginated on footnote-only CNDs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the SDK core to format 0.5.0, following proposal 0013. This is the first of the three plans that land on the
format-0-5-0integration branch.What changes
cnd.core.text):RichText,MarkandNumbering. The four edge families now live onRichTextinstead of the node base.RichText;children: list items, term definitions, cells, quotes, admonitions, footnotes;admonitionandlayoutnodes;ListItem.checked,figure.description,code.titleandnumbering;table.kind(data/content/ null);doc.status,doc.versionanddoc.extra.tight,content_kind,table.rawand theblockflags are removed.slot,slot_indexand a fullpath.Cnd.iter_all()also walks footnote content.code/math);doc.extrakey rule;Every check now reaches footnote content and the formatted bibliography entries.
elements.cndcovers every new element.Not in this pull request
Ten test modules are parked in
tests/conftest.py(collect_ignore): builder, CLI, converters, declaration, full coverage, Markdown structure, display visitor, reconciliation, render and visitor. The next two plans port renderers and converters, then the declaration, builder, reconciliation, CLI and visitors.format-0-5-0merges intomainonly once that list is empty.The suite is green: 199 passed. Every task was reviewed, and the whole branch had a final review, with its findings fixed.
Part of CND-17
🤖 Generated with Claude Code
https://claude.ai/code/session_01XxXUiDn2QyzNTYnZpeVFVS