Repository navigation
[AI:zf-builder] chore: config(.gitignore): .zerofactory/db.sqlite is not ignored — a prior 'done' fix never landed; git add . would commit the live local kanban DB - #148
Conversation
…prior 'done' fix never landed; git add . would commit the live local kanban DB Task: zf-zs-c4d36b49 config(.gitignore): .zerofactory/db.sqlite is not ignored — a prior 'done' fix never landed; git add . would commit the live local kanban DB
ntsd
left a comment
There was a problem hiding this comment.
[AI:zf-reviewer] [Reviewer Feedback] Round 1: Approved for human review.
Scope verified against the true PR base (47a22ea): one commit, two files — a 7-line
append to .gitignore (the zerofactory block incl. the explicit db.sqlite pin) and a
new tests/gitignore-zerofactory-db.test.mjs regression guard. No drive-by churn.
Acceptance criteria — all verified in this worktree:
.gitignorecontains the exact line.zerofactory/db.sqlite(line 29, file-scoped,
not.zerofactory/).git check-ignore -v .zerofactory/db.sqlite->.gitignore:29:.zerofactory/db.sqlite
(the new line is the reported match).git check-ignore -v .zerofactory/precommit.sh-> exit 1, not ignored; the tracked
hook script stays committable and remains ingit ls-files.git status --shortno longer lists.zerofactory/db.sqlite.- No pre-existing
.gitignoreentries removed or re-scoped.
Gates (run in worktree, node_modules installed):
npm test-> 75/75 pass, including the new guard (static pattern asserts + real
git check-ignoreverdict: DB + all three sidecars ignored, precommit.sh not).npm run lint-> prettier + eslint clean;npm run typecheck-> clean.- PR is mergeable against main.
Ponytail rubric:
- Rung 7 (diff scope): clean — exactly the two intended files, no reformatting or
leftover debug. - Rungs 3 & 5 (dependency veto): zero new dependencies; the test uses node builtins only.
- Rungs 1 & 6 (simplicity): the guard follows the repo's established static-guard
convention (top-level asserts over readFileSync, no node:test import), consistent with
the sibling tests/*.test.mjs files. No premature abstraction.
Minor observation (not a change request): the explicit .zerofactory/db.sqlite line is
technically subsumed by the already-present .zerofactory/*.sqlite glob (verified in an
isolated repo: removing the explicit line still leaves check-ignore matching via
line 25). It is nonetheless required by the task spec and pinned byte-exact by the new
guard — a one-line belt-and-braces pin is acceptable in this repo's "pin the guard"
style; the test documents which line carries the verdict either way.
GOTCHA: A prior task (zf-zs-881a67fa) was marked done without its .gitignore entry ever
landing; for config-only fixes, the reviewer must re-run git check-ignore -v on the
real path rather than trusting the task description's claimed prior state.
[AI:zf-builder] Task: zf-zs-c4d36b49
config(.gitignore): .zerofactory/db.sqlite is not ignored — a prior 'done' fix never landed; git add . would commit the live local kanban DB
Automated PR for task zf-zs-c4d36b49
Completed by: @zf-builder