Skip to content

Dogfood fixes: name-length fmt, rustdoc, validation, prompts, workflow hardening - #21

Merged
lnorton89 merged 45 commits into
mainfrom
claude/jolly-curie-lpi8jt
Nov 21, 2026
Merged

lnorton89 merged 45 commits into
mainfrom
claude/jolly-curie-lpi8jt

Conversation

@lnorton89

Copy link
Copy Markdown
Contributor

Fixes from an end-to-end dogfood run: a 24-combination scaffold matrix, 60+ scripted interactive runs, and four real projects built on fresh scaffolds. Findings are in docs/dogfood/FINDINGS.md; the before/after matrix, commit list and deferred items are in docs/dogfood/REPORT.md.

Result

  • Gate matrix: 156 of 187 cells passed before, 165 of 187 after, plus 40 new cells (64-character names, changelog checks) that all pass. No cell went from pass to fail.
  • Still failing: 14 cells are zizmor's dependabot-cooldown (left as an owner decision); 8 are expected (minimal has no deny.toml; binaries set publish = false).
  • Tests: 58 before, 164 after. npm run typecheck, npm test and npm run build pass.

Fixed

  • Generated Rust is rustfmt-clean for any project name from 1 to 64 characters (GUI projects failed from 14).
  • GUI, tray and cli-with-sqlite rustdoc builds cleanly under -D warnings.
  • Project names: Rust keywords, Cargo and Windows reserved names and names over 64 characters are refused; a failed write cleans up after itself.
  • --msrv newer than --toolchain, or older than the edition needs, is refused.
  • The recreate command carries accent, author, GitHub handle and the real target folder.
  • Notes on stderr for a positional folder that can't be the crate name, for options the kind ignores, and for files --force overwrote.
  • A fresh scaffold's CHANGELOG.md is what its own generator writes; cargo xtask changelog is generated only with the generator on.
  • Generated workflows: persist-credentials: false on every checkout, no Actions cache in the release build.
  • Interactive prompts: Esc inside Customize goes back, Ctrl-C during the run steps restores the terminal, tall lists scroll, rows fit 40 columns, focus is visible without colour, --no-color emits no SGR.
  • TUI template on ratatui 0.30 and crossterm 0.29.
  • scaffold-check gains --gate fmt, --gate doc and --name, respects CARGO_TARGET_DIR, and splits --set on the first =.

Changes to generated conventions

Each was needed to make a stated gate pass:

  • Unreleased changelog entries carry no commit hash; released sections keep theirs.
  • The generated header check exempts the Module: line from the 100-column limit, and Dependencies: lines say "the library crate".
  • --json reports guiStack: "" for kinds without a GUI.
  • An empty tagline reads as the project name everywhere.

Not in this PR

Anything that changes a default or the generated layout is a backlog proposal in FINDINGS.md §4: the hard-coded author default, a cross-platform release matrix, Dependabot cooldown and trusted publishing, MSRV and rustdoc CI jobs, and the others listed there.


Generated by Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…GET_DIR

--set now splits on the first '=' only, so values may contain '='. The doc
gate stays opt-in so the default full gate keeps its documented steps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Every actions/checkout in ci.yml, release.yml and publish.yml sets
persist-credentials: false (zizmor artipacked). No later step uses the
persisted git credential: nothing pushes or tags, and gh reads GH_TOKEN.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
The tag-triggered release build restored Swatinem/rust-cache, which any
branch's CI can write (zizmor cache-poisoning, high). The release now
builds from scratch; PLAN.md records both workflow hardening rules.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
actions/setup-node is pinned to the v7.1.0 commit (949feb2) per the house
rule, and both checkouts set persist-credentials: false. zizmor now
reports only dependabot-cooldown, an owner decision.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
… characters

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…edition

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…hout a GUI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
… skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Lines whose length grew with @@name@@ / @@appCrateSnake@@ crossed rustfmt's
100 columns for names of 14+ characters (GUI) or 16+ (workspace). They now go
through a crate alias, a constant or env!("CARGO_PKG_NAME"), so the layout is
the same for 1- and 64-character names. Adds a node test that compares
rendered lines between a 1- and a 64-character name, plus a rustfmt check
that skips without rustfmt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
The scaffolded CHANGELOG.md now equals what examples/changelog.rs (single
crate) or cargo xtask changelog (workspace) generate from the scaffold's
first commit, so --check passes and regenerating is a no-op. Both
generators keep the header in one PREAMBLE const, Unreleased entries drop
the commit hash (a squash rewrites it; released entries keep theirs), and
the REPO literal is split to stay rustfmt-clean for 64-character names.
CLAUDE.md and CONTRIBUTING.md say the file is generated and name the right
command whenever changelogGen is on; the hand-edited wording stays when it
is off.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
run.rs linked the private `backends` fn and spelled an explicit link
rustdoc considers redundant; tray.rs linked the cfg(windows) win::tray
module, which doesn't exist when documenting on Linux.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
unsafe_check's message and module doc named src/gui/run/, which only the
winit-glow stack has; they now name src/win/ (plus src/gui/run/ on
winit-glow). What the check allows is unchanged. The App and PAGE_KEYS docs
mention the tray and command palette only when those features are on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
ratatui 0.30's default crossterm backend builds on crossterm 0.29, so the
pair still shares one KeyEvent type. The template uses a concrete backend
and no From conversions, so no code changes were needed. Full scaffold-check
tui and an MSRV 1.98 build pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
README: eleven theme colours (the count every theme states) and a Linux
runtime libraries note for GUI projects (libxkbcommon-x11-0, plus
mesa-vulkan-drivers for wgpu or an OpenGL driver for glow). CLAUDE.md and
CONTRIBUTING.md: assert! messages are a convention, not a check; the
header check walks src/, tests/, examples/, benches/ and build.rs, with
each module-name form. CONTRIBUTING: attestation needs a public repository
or GitHub Enterprise Cloud. release.yml: the matrix comment says what a
new target needs besides an entry. No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
CHANGELOG's CI line says Node 22 and 26, which is what ci.yml runs and
what engines (>=22.18) allows. PLAN section 5: npm pack ships dist/ and
templates/, and no preset snapshots exist yet. CONTRACTS: post.fetch in
Answers and the full binary-extension list from src/engine/plan.ts.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
The CLI's config path now reads the package name at compile time instead
of a name literal (to keep the line rustfmt-stable for long names). The
--bin test still checks the dir is the app name, not the binary's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
With a 64-character name, `Dependencies:` lines that spelled the crate path
and every `Module:` line under a workspace app crate ran past the header
check's 100 columns, so `cargo test` failed. Dependencies now say "the
library crate"; the Module line, whose value is dictated by the file path,
is exempt from the width rule (new unit test in header_check.rs). The
name-length test now covers plain `//` banner lines too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Found by the rustdoc sweep: `--set crates.sqlite=true` failed
`RUSTDOCFLAGS=-D warnings cargo doc --no-deps` with private_intra_doc_links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Without changelogGen the CHANGELOG.md is hand-edited, but xtask still
shipped `cargo xtask changelog`, which would rewrite it. A workspace
manifest now drops crates/xtask/src/changelog.rs, and main.rs gates the
module, the match arms and the help text. Covered by test/xtask.test.ts;
strobe --set tooling.changelogGen=false passes the full scaffold-check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
With the changelog generators fixed on the integration branch, every preset
(rustaman, strobe, cli, tui, lib, minimal) is rustfmt-clean at 1 and 64
characters. The line-length check now skips multi-line string literal
continuations, which rustfmt never reflows, instead of whole files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…idth rules

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Esc on the Customize menu returns to the review; Esc inside a section or
the preset re-pick reopens the menu and drops only that section's edits.
Ctrl-C still quits everywhere. @clack/core maps both keys to cancel, so
prompts opened with back: true watch the key event and resolve Esc to BACK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
tasks() hid the cursor and relied on finally, which never runs on SIGINT.
A SIGINT handler now lives for the duration of tasks(): it shows the
cursor, settles the spinner line, says the partly created folder was left
in place and exits 130.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…real folder

Start over from a preset dropped the picked preset's kind in favour of the
--kind flag. The re-pick now wins over --kind and --preset (other flags
still apply). The review's 'writes ./…' hint uses shownTarget, so a
positional dir is named even after a rename; ask() takes the dir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
The prompts only checked each version's shape, so MSRV 9.0 with toolchain
1.0.0 got through. They now run validateRustVersions (worded for the
prompt rather than for --msrv), trim whitespace first, and the text
prompt wraps a long error onto rail lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
pick/pickMany rendered every option at any height and forced a 10-column
description, so lists taller than the terminal lost their focused row and
left stale frames, and rows wrapped at 40 columns. Rows, footers and
messages are now fitted to the live column count, and the body is
windowed to the live row count around the focused row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
…ts no SGR

With colour off, pickMany showed focus only through bold, and the text
prompt used clack's inverse-video cursor, which sees NO_COLOR but not
--no-color. A focus mark (glyphs.focus) now marks the focused row and a
caret glyph the cursor position, with no escape codes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
The review hint, the cd line and the recreate command printed backslash
paths on Windows, which Git Bash eats and the POSIX quoting doubled.
shownTarget and writesHint take a path module so tests cover win32 rules
on every OS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
process.kill(pid, 'SIGINT') is TerminateProcess on Windows (exit 1), so the
handler never ran; a console Ctrl-C there emits the event instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
On a loaded Windows runner node-pty's ConPTY output worker can miss its
5 s connect timeout and report exit code -1 without starting the CLI, and
fixed sleeps could type before the name prompt was drawn. Steps now wait
for the expected output, and a pty that never started is spawned again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W2BaQjmXXv2ZSgkAnMH1eA
@lnorton89
lnorton89 merged commit b84f71f into main Nov 21, 2026
32 checks passed
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.

2 participants