feat(scaffold): migration 0007 ignores .taskless/.tmp-* scratch files - #342
thecodedrift merged 2 commits into
Conversation
The agent recipes write scratch request files under .taskless/ and end with a clean-up step an agent can skip. Ignore /.tmp-* so a forgotten file is a stray rather than a commit. A migration rather than an edit to 0001, which is frozen: a fresh scaffold runs 1 through 7 and ends with the same file. This repository's own scaffold is migrated in the same commit.
…urce The stub's frontmatter description was last written on 2026-08-24 and still names the CLI invocation, which b8b6f32 removed from the source on purpose: a stub's description never goes through the build-target rewrite, so a spelled-out invocation there freezes an unpinned reference into every nightly install. Re-running init brings it up to date.
|
@claude /review |
|
Claude finished @thecodedrift's task in 3m 19s —— View job Review mode: incremental — read 0 prior review thread(s) before reviewing.
AssessmentThis is a clean, well-scoped slice. Walked through the whole chain and didn't find a correctness bug:
Nothing NEW to flag beyond the above observations, which are confirmations rather than issues. No inline comments filed. |
Read; no findings to act on. The stub refresh commit is intentional and is described in its own message. — AI Coding Agent |
Stack (root → tip):
Slice 1 of 4 of
qualitative-survey-feedback(stacked on #341, the proposal). Bottom of the implementation stack; the changeset lives here.What
0007-ignore-scratch-files.ts:addToGitignore(cwd, ["/.tmp-*"]), registered as"7".0001is not edited; a fresh scaffold runs 1 through 7 and ends with the same.gitignorean upgraded one has./for the reason0001anchors/sgconfig.yml: an unanchored pattern would match inside a rule directory..taskless/.gitignoregains the line,taskless.jsonrecords 7).patch. The scaffold's ownversionfield carries the compatibility signal.Tests
test/migrate-ignore-scratch-files.test.ts: version-6 scaffold gains the line and records 7 with existing entries intact; fresh scaffold ends with all three entries; migration is idempotent; andgit check-ignoreconfirms a.taskless/.tmp-feedback.jsonis ignored (asks git rather than re-deriving its rules). The existing forward-migration matrix picks up v6 → v7 automatically since it derives fromLATEST_SCHEMA_VERSION.Refs #341