Repository navigation
Dogfood fixes: name-length fmt, rustdoc, validation, prompts, workflow hardening - #21
Merged
Merged
Conversation
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
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
…agree 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
Co-Authored-By: Claude Opus 5.5 <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
Co-Authored-By: Claude Opus 5.5 <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
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
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
Co-Authored-By: Claude Fable 5.2 <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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 indocs/dogfood/REPORT.md.Result
dependabot-cooldown(left as an owner decision); 8 are expected (minimalhas nodeny.toml; binaries setpublish = false).npm run typecheck,npm testandnpm run buildpass.Fixed
-D warnings.--msrvnewer than--toolchain, or older than the edition needs, is refused.--forceoverwrote.CHANGELOG.mdis what its own generator writes;cargo xtask changelogis generated only with the generator on.persist-credentials: falseon every checkout, no Actions cache in the release build.--no-coloremits no SGR.scaffold-checkgains--gate fmt,--gate docand--name, respectsCARGO_TARGET_DIR, and splits--seton the first=.Changes to generated conventions
Each was needed to make a stated gate pass:
Unreleasedchangelog entries carry no commit hash; released sections keep theirs.Module:line from the 100-column limit, andDependencies:lines say "the library crate".--jsonreportsguiStack: ""for kinds without a GUI.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