Skip to content

id-render: author tooling — linter + multi-target preview (#7920) - #12945

Merged
dezren39 merged 1 commit into
mainfrom
lane-fm/7920-author-tooling
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-fm/7920-author-tooling

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Implements the landable slice of #7920 (author tooling, from the #5855 decision record §4), unblocked today by #7918 closing as completed with the compiler core on main.

What lands

A new tooling module in id-render — one toolchain surface over exactly the vocabularies and tables the pipeline consumes:

Stated boundary

The §4 error rule "essential content inside a conditional block" does not ship: the #5849 v1 vocabulary has no conditional element kind, so a conditional block has no source representation — and §4 itself says a lint rule that cannot be expressed over the pipeline's inputs does not ship. It lands with the vocabulary addition (the same boundary stage 3 records in compose). The §4 duplication rule likewise needs per-target source folders, which this single-source surface does not take. Both are recorded on #7920 as the remaining slices; the issue stays open for them.

Verification

  • cargo test -p id-render (nix develop, laptop worktree off origin/main): 75 passed / 0 failed, including 7 new tooling tests — one per shipped lint rule, the clean-document control, preview coverage across all five targets, and preview conflict behaviour. Failing-first was inherent: the module and its tests are new.
  • cargo fmt -p id-render -- --check clean; clippy clean for the new code apart from the crate-wide too_long_first_doc_paragraph pedantic style the existing modules also carry.

Refs #7920.


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

The one toolchain surface #5855 §4 settles, in a new tooling
module of id-render, consuming exactly the vocabularies and
tables the pipeline consumes:

- lint: unknown-element and unknown-assertion errors (checked
  against the #5849/#5850 vocabulary data stage 2 uses),
  unmapped-assertion warnings read from each target's own
  lowering coverage report, and the raw-CSS reported-override
  listing on web (#5854 §6b).
- preview: the pipeline run in report mode — every planned
  target's artefact presented with the unified coverage report;
  a target whose composition conflicts is a conflict outcome,
  never a failed preview. standard_plans() is the one-command
  default set (web, mac, windows, gnome, gui).

The §4 conditional-block rule does not ship: the #5849 v1
vocabulary has no conditional element kind, so the rule cannot
be expressed over the pipeline's inputs — §4's own gate. The
module documentation states the boundary.

Tests: one per shipped lint rule plus preview coverage and
conflict behaviour; cargo test -p id-render 75 passed / 0
failed, fmt clean, clippy clean for the new code apart from
the crate-wide doc-paragraph pedantic style.
@dezren39
dezren39 requested a review from a team as a code owner November 23, 2026 05:41
@coderabbitai

coderabbitai Bot commented Nov 23, 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 59 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: 4bc6f96d-b869-4de3-9446-87f521c4b5ef
Commits

Reviewing files that changed from the base of the PR and between 60ad90c and 72cc81a.

Files selected for processing: 3

  • pkgs/id/crates/id-render/src/lib.rs
  • pkgs/id/crates/id-render/src/tooling.rs
  • pkgs/id/crates/id-render/tests/tooling.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

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T05:43:12.178208Z 72cc81a 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.

@dezren39
dezren39 merged commit f7ba00b into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-fm/7920-author-tooling branch November 23, 2026 05:42
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