Skip to content

Parity: headless column (RFC-0052) - #888

Merged
FredApps merged 6 commits into
mainfrom
rfc52-headless-column
Nov 28, 2026
Merged

FredApps merged 6 commits into
mainfrom
rfc52-headless-column

Conversation

@FredApps

@FredApps FredApps commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Implements RFC-0052 (storytold/craft-contrib#52): the menu parity report says what a headless client (texturecraft-cli, the MCP server) can reach.

The checklist came from CI: a temporary test printed the regenerated docs/parity.md in CI because the box couldn't build ui-egui. I committed that output (63c6d80) and reverted the temporary test (19b4526), so the net diff has no test-only code.

What changed

  • crates/ui-egui/src/parity.rs: the report computes a headless: value per menu item.
    • yes only when texturecraft_engine::find(id) has the id, from the registry texturecraft-cli and the MCP server load.
    • The ui.* shell ids count as live for menus, but they aren't headless:
      • ui.newProject, ui.saveAsTemplate and ui.export are partial (window): engine commands do the work, and only the dialog is desktop-only.
      • ui.saveReduced and ui.projectConfig are no (engine-gap).
      • ui.view.* and ui.toolbar.* are no (window).
      • The rest are no (window or os), from the HEADLESS table.
    • headless_errors rejects a hand-written yes, an unknown reach, a repeat, an id that isn't in the catalog, and a stale mark.
    • The report gains a Headless column and the RFC summary line.
    • 3 new tests.
  • docs/parity.md: regenerated, with a Headless column and the summary line.
  • AGENTS.md: one sentence about the column.

Numbers

21 yes, 40 no (window 33, os 5, engine-gap 2), 3 partial, 0 unknown of 64 items. The old "63 of 64 live" counted the desktop ui.* ids. At most 21 of the 64 are reachable headless.

What ran

Hosted CI on 96e13bf ran the texturecraft-ui-egui tests: 514 passed, including the 3 new ones. The only failure was the temporary print test, as intended. CI on the current head reruns everything.

Summary by CodeRabbit

  • Documentation
    • Updated the command parity guide to show which commands are available in headless environments, including reach details for desktop-only actions.
    • Added a summary of headless availability and clarified how to regenerate the parity data.
  • Improvements
    • Parity reports now include headless availability classifications and reach details.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The parity report now classifies catalog items by headless reach, validates configured marks, and displays counts and per-item details. The parity documentation and repository description explain the classifications and regeneration command.

Changes: Headless parity reporting

Layer / File(s) Summary
Headless marks and classification
crates/ui-egui/src/parity.rs
The code adds headless marks for desktop UI catalog IDs, classifies catalog items, and validates mark values, reach labels, duplicates, catalog IDs, and engine-command marks.
Report output and parity documentation
crates/ui-egui/src/parity.rs, docs/parity.md, AGENTS.md
The report adds headless counts and per-item reach details. Tests check classifications, report output, and validation errors. The documentation describes the classifications and regeneration command.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: chasse20, bflatastic, aiongg

Merge Risk: Minimal · up to f2bb4

This change adds a headless-reach column to the menu parity report and its documentation. It affects only reporting and docs, with validation tests included. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Parity: headless column (RFC-0052)" names the main change: a Headless column added to the menu parity report, tied to RFC-0052. The changeset adds the Headless column and RFC summary line t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Parity: headless column (RFC-0052)" names the main change: a Headless column added to the menu parity report, tied to RFC-0052. The changeset adds the Headless column and RFC summary line to docs/parity.md, headless classification and validation in parity.rs, and a note in AGENTS.md. The title is specific and concise, and it does not describe anything absent from the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4e8cdd6 and f2bb451.

Files selected for processing: 3

  • AGENTS.md
  • crates/ui-egui/src/parity.rs
  • docs/parity.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@FredApps
FredApps marked this pull request as ready for review November 27, 2026 23:47
@sonarqubecloud

Copy link
Copy Markdown

@FredApps
FredApps merged commit 95d90ee into main Nov 28, 2026
27 of 29 checks passed
@FredApps

Copy link
Copy Markdown
Contributor Author

Merged as 95d90ee. Thanks to the RFC-0052 authors and to CodeRabbit for the review pass.

Summary: the parity report generator (crates/ui-egui/src/parity.rs) now computes an RFC-0052 headless: value for every item. yes only when the id is in the engine registry that texturecraft-cli and the MCP server load; the ui.* shell ids that the old 'live' count accepted (export, project config, save as template, bake/paint/render mode, UV checker) are no longer counted as headless. docs/parity.md is regenerated: 21 yes, 40 no (window 33, os 5, engine-gap 2), 3 partial, 0 unknown of 64, versus 63 of 64 live. AGENTS.md notes the rule. Sonar: 100% new-code coverage, 0.0% duplication. No linked issues.

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