Repository navigation
feat(id): rendering pipeline compiler core — parse + vocabulary validation (#7918) - #10657
Conversation
…ation (#7918) Implements stages 1-2 (vocabulary half) of the pipeline settled in decision record #5855 (PR #7921) as a new id-render crate in pkgs/id: - Stage 1 parse: HTML-shaped authoring syntax per #5849 s2 — closed registry, double-quoted attributes only, comments stripped (and may not contain elements), raw regions captured verbatim, whitespace in text collapsed. Parse errors are fatal, located, never recovered by guessing; unknown elements error with the nearest registry names and purposes (s3.2), never silently treated as raw HTML. - Stage 2 validate: the #5849 vocabulary consumed as data (vocabulary.rs) — required/allowed attributes, enum domains, field/preference constraint applicability (s4.3.1/s4.4.1), child and sibling rules (s4.5), document version rule (s2.4), and the names-not-expressions rule for binding slots (s8). Presentation attributes (class/style/...) error pointing at the assert slot. The assert slot is carried opaquely: its grammar and role vocabulary are #5850, still open; per #5855 assumption A2 the pipeline consumes vocabularies as versioned data when they land. Stages 3-5 (compose per #5854, lower against the #5851/#5852/#5853 tables as data, emit artefact + coverage/conflict report) remain on #7918. Tests: 15 integration tests naming the decision-record behaviours they verify; cargo test -p id-render green; clippy clean.
|
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 47 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. |
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Implements the first stages of the rendering pipeline compiler core for #7918, per decision record #5855 (landed via PR #7921):
Stage 1 — parse (new crate
pkgs/id/crates/id-render): HTML-shaped authoring syntax per #5849 §2 — closed registry, double-quoted attributes only, comments stripped (may not contain elements), raw regions captured verbatim, text whitespace collapsed. Parse errors are fatal, located, never recovered by guessing; unknown elements error with the nearest registry names + purposes (#5849 §3.2), never silently treated as raw HTML.Stage 2 — validate (vocabulary half): the #5849 vocabulary consumed as data (
vocabulary.rs, per #5855 invariant 6) — required/allowed attributes, enum domains, field/preference constraint applicability (§4.3.1/§4.4.1), child/sibling rules (§4.5), document version rule (§2.4), names-not-expressions for binding slots (§8). Presentation attributes (class/style/…) error pointing at theassertslot.Deliberately not in this increment: the
assertslot is carried opaquely — its grammar/roles are #5850, still open; per #5855 assumption A2 the pipeline consumes vocabularies as versioned data when they land. Stages 3–5 (compose per #5854; lower against the #5851/#5852/#5853 tables as data; emit artefact + coverage/conflict report) remain on #7918 as the follow-on increment.Tests: 15 integration tests, each naming the decision-record behaviour it verifies.
cargo test -p id-rendergreen, clippy clean, fmt applied. Task 14566 (lane any-d).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.