Skip to content

feat(rules): recipes-only makes T3 Code and CI run recipes rather than raw cargo - #50

Draft
PiquelChips wants to merge 1 commit into
feat/rule-recipesfrom
feat/rule-recipes-only
Draft

PiquelChips wants to merge 1 commit into
feat/rule-recipesfrom
feat/rule-recipes-only

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #49; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

V4: AGENTS.md, CI and t3.json call recipes rather than repeating commands, so a change to a command happens in one place.

  • Every t3.json command starts with just.
  • No line of a workflow's or composite action's run: starts with cargo unless standard.toml's new cargo-in-ci lists the whole line (an MSRV check, say). A listed line no run: holds fails, so the list can't go stale.
  • A line-aware YAML reader (yaml.rs, from yaml-rust2's events, aliases resolved) and a Workflow loader, which the CI rules after this one use.

Measured

piqueld sourceorigin DirkEngine
Violations 7 2 2

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

  • piqueld: the dashboard action's build, the MSRV cargo check, the docker job's two builds, cargo xtask publish/dist in the release workflows.
  • sourceorigin: the MSRV check and cargo install piquelctl.
  • DirkEngine: t3.json's "Check Workspace" and a CI build.

An issue template's - cargo install (a dropdown option) isn't read: only workflows and actions are.

Testing

  • New fixture test: a non-just t3.json command, a workflow block, a composite action step, an allowed line, and a stale entry.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (standard.toml gains cargo-in-ci (optional).)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

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