Skip to content

docs(skills): harden shipping-changes guard-chain rule (blood-lesson anti-pattern) - #33

Merged
telagod merged 1 commit into
mainfrom
docs/shipping-changes-guard-antipattern
May 30, 2026
Merged

docs(skills): harden shipping-changes guard-chain rule (blood-lesson anti-pattern)#33
telagod merged 1 commit into
mainfrom
docs/shipping-changes-guard-antipattern

Conversation

@telagod

@telagod telagod commented May 30, 2026

Copy link
Copy Markdown
Owner

What

Improve-mode update to the shipping-changes skill (via cultivating-skills). Adds a blood-lesson anti-pattern to the guard-chain iron law.

Why

While shipping P3 (PR #32), I violated this skill's own core rule: I wrapped npm test and git commit in a single { ...; ... } block. Block commands run independently, so a red test still let commit run — the guard degraded from block to log, and broken code reached the PR (caught only because the network happened to fail the merge).

Change

Adds to 关4 (guarded commit) section:

反模式(血泪): never wrap test+commit in a {...}/; sequential block — block commands run independently, so a red test still lets commit run. Must use && short-circuit so a non-zero exit truly halts the chain. After changing source, first figure out which stale assertion needs syncing, or tests will go red.

Also trimmed the redundant recap table to stay within the 90-line body budget.

Verification

  • forge scan: clean (block=0 warn=0)
  • Committed via a correct && guard chain this time (test && verify && commit) — 379 passed, 25 skills
  • Practiced what it preaches: this commit only landed because the chain was green.

…son anti-pattern

Improve mode (cultivating-skills). Adds the anti-pattern I just hit in P3: never
wrap test+commit in a {...}/; sequential block — block commands run independently,
so a red test still lets commit run, degrading the guard from 'block' to 'log'.
Must use && short-circuit so a non-zero exit truly halts the chain. Also notes:
after changing source, find which stale assertion needs syncing or tests go red.
Trimmed recap table to stay within the 90-line body budget.

scan clean; npm test 379; verify:skills 25.
@telagod
telagod merged commit 5eb088e into main May 30, 2026
15 checks passed
@telagod
telagod deleted the docs/shipping-changes-guard-antipattern branch May 30, 2026 14:16
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