Skip to content

feat(id): rendering pipeline compiler core — parse + vocabulary validation (#7918) - #10657

Merged
dezren39 merged 1 commit into
mainfrom
queue/14566-7918-render-compiler-core
Nov 16, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14566-7918-render-compiler-core

Conversation

@dezren39

@dezren39 dezren39 commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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 the assert slot.

Deliberately not in this increment: the assert slot 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-render green, clippy clean, fmt applied. Task 14566 (lane any-d).


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

…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.
@dezren39
dezren39 requested a review from a team as a code owner November 16, 2026 09:16
@coderabbitai

coderabbitai Bot commented Nov 16, 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 47 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: 67a69567-1b78-43ae-8c65-b35cefc3b6e5
Commits

Reviewing files that changed from the base of the PR and between 37e5faa and b3311e7.

Files ignored due to path filters: 1

  • pkgs/id/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 7

  • pkgs/id/Cargo.toml
  • pkgs/id/crates/id-render/Cargo.toml
  • pkgs/id/crates/id-render/src/lib.rs
  • pkgs/id/crates/id-render/src/parse.rs
  • pkgs/id/crates/id-render/src/validate.rs
  • pkgs/id/crates/id-render/src/vocabulary.rs
  • pkgs/id/crates/id-render/tests/pipeline.rs
  • 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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-16T09:17:47.475465Z
We couldn’t complete this review. Comment @codex review to try again.
b3311e7 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit c27e48f into main Nov 16, 2026
1 check passed
@dezren39
dezren39 deleted the queue/14566-7918-render-compiler-core branch November 16, 2026 09:45
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.

1 participant