Skip to content

[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

Merged
ntsd merged 1 commit into
mainfrom
task/zf-zs-c4d36b49
Nov 7, 2026

Conversation

@ntsd

@ntsd ntsd commented Nov 7, 2026

Copy link
Copy Markdown
Owner

[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

…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 ntsd left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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:

  1. .gitignore contains the exact line .zerofactory/db.sqlite (line 29, file-scoped,
    not .zerofactory/).
  2. git check-ignore -v .zerofactory/db.sqlite -> .gitignore:29:.zerofactory/db.sqlite
    (the new line is the reported match).
  3. git check-ignore -v .zerofactory/precommit.sh -> exit 1, not ignored; the tracked
    hook script stays committable and remains in git ls-files.
  4. git status --short no longer lists .zerofactory/db.sqlite.
  5. No pre-existing .gitignore entries 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-ignore verdict: 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.

@ntsd
ntsd merged commit 2f0ffe6 into main Nov 7, 2026
1 check passed
@ntsd
ntsd deleted the task/zf-zs-c4d36b49 branch November 7, 2026 07:09
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