chore: upgrade to Vitest 5.1 and align with j4k-align 18.3.1 #23
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/vitest-5-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upgrades the tests to Vitest 5.1 and brings the repository to j4k-align 18.3.1.
vitest(and@vitest/coverage-v8where present) moves to^5.1.0. The tests needed no changes.test:affectedscript runspnpm run test --since-last-run: the same suite astest, limited to files affected by changes since the last run.fixup!,squash!andamend!commits; the local hook still accepts them.The commit hook ran the full local checks on both commits, and
j4k-alignaudits clean.Review
01M6PB9126ZF5HSS1XYM3X6S74— headdffa6d2be5d7e955d6c81f3b6967d9b289112b82Review — j4k-oss/fta-check @
13f397a082Scope: diff against base tree
e1861c6bb51dReview finished: 8 succeeded, 0 failed, 4 skipped by dispatch
Triage: settled
Facts: current review-wide projection
Computed under:
Findings (1)
low — check-msg.sh now has three validation modes, but nothing in its interface says what each mode accepts
01M6PBE0WN1CDH0ZE9AVVG7RK9scripts/check-msg.sh(snippet)01M6PBEMHXVC63R57DZ8Z3NP0S· valid: Grounded (exact) anchor confirms the script's only interface text is the usage line 'check-msg.sh [--title | --draft] < message'. The body supplies a coherent static trace of the case block: --title skips exemptions ('if '), the default mode exempts merge/revert/reapply but rejects fixup!/squash!/amend! with a quoted error, and --draft additionally admits autosquash prefixes via a nested 'if '. It names the three callers (two CI calls in .forgejo/workflows/commit-msg.yml, the hook in .githooks/commit-msg) and reports that AGENTS.md and README.md never mention check-msg. This establishes APoSD principle 13 and the Nonobvious Code / Vague Name red flags: what each flag accepts, including the intended split where a fixup! message passes the local hook and fails CI, can only be learned by reading nested conditionals. The claim is about interface documentation and naming, not observable CLI behavior, so the unix-cli-contracts skill does not decide it. That skill treats help layout as a design default, and the claim alleges no caller-visible failure. A short interface comment stating each mode's contract is accepted-values interface documentation, not an unnecessary restated set. No refuting safeguard or document appears in the batch. Low severity is appropriate.Other claims
Coverage
Coverage pass: 01M6PB912AXZY2GAW36YQW8VQ6
Accounting: complete (all slots terminal; see slot results for failures)
Slot health: healthy
@ -8,2 +9,3 @@mode=draftelif [[ "$#" -ne 0 ]]; thenprintf '%s\n' 'usage: check-msg.sh [--title] < message' >&2printf '%s\n' 'usage: check-msg.sh [--title | --draft] < message' >&2low — check-msg.sh now has three validation modes, but nothing in its interface says what each mode accepts
lens
aposd-plain· armdefault· tally 1 valid / 0 invalid / 0 uncertainclaim
01M6PBE0WN1CDH0ZE9AVVG7RK9of review01M6PB9126ZF5HSS1XYM3X6S74Not a defect in this PR.
scripts/check-msg.shis rendered by j4k-align fromtemplates/repo/check-msg.sh.hbs, andj4k-align --fixoverwrites hand edits, so a comment added here would be removed on the next alignment. The three modes are documented where the contract is owned, in Align's managed workflows guide. That guide names commit, draft and title modes, says what each accepts, and says why autosquash commits pass the local hook but fail the PR check.