A self-organizing Obsidian vault that gives AI coding agents persistent memory.
TypeScript ai-agentsclaude-codecodex-cligemini-cliknowledge-managementobsidianobsidian-vaultpersistent-memorysecond-braintemplate
docs: a new guard counts as landed once it has demonstrated a red (#209)
HoangThai185255d560d282
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex 8e23143..2faef48 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -21,5 +21,6 @@- [ ] PR title follows `type: description` format- [ ] Tests pass (`cd .claude/scripts && npm test`)+- [ ] Any NEW guard, check, or config constraint has demonstrated a red — broken deliberately, seen to fire, reverted. Say which, in one line- [ ] Doc tables updated if adding commands/agents (CLAUDE.md, README, Skills.md, translations)- [ ] No changes to CHANGELOG.md or vault-manifest.json version (automated by release pipeline)diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 3b975b8..c8f6baa 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -81,6 +81,7 @@ The release pipeline handles these automatically — **do not include in your PR- [ ] New command/agent appears in ALL doc tables (CLAUDE.md + README + Skills.md)- [ ] Translations flagged if you changed README.md (maintainer can handle these)- [ ] Tests pass: `cd .claude/scripts && npm test`+- [ ] Any NEW guard, check, or config constraint has [demonstrated a red](#new-guards-must-demonstrate-a-red), recorded in the PR- [ ] Examples use generic dates and names, not specific to any company or person## Running Tests@@ -91,6 +92,18 @@ cd .claude/scripts && npm testTests run automatically on PRs that touch `.claude/scripts/`.+### New guards must demonstrate a red++A guard that has never failed on a violation is indistinguishable from a guard that cannot fail, and this repo has shipped that class more than once: a bootstrap check that only looked for *absence*, so it stayed green for months while the thing it protected was broken (#100); a `tsconfig.json` `include` path that matched nothing after a move, so a file shipping to users fell out of the typecheck program while every check passed (#152); `manifest-check` warning and never failing, which is the exact gap `.mcp.json` slipped through (#48, #51). In each case the check existed, looked settled, and proved nothing.++So, for any **new** guard, hook validation, CI check, or config constraint:++> A check counts as landed only after it has failed once on a deliberate violation: break the thing it protects, watch it go red, revert, watch it pass. Record that red in the PR — one line, what was broken and what fired.++That is one demonstrated red at introduction time, which is cheap, and it converts "a check exists" into "a check works."++This is **not** a demand for permanent negative-fixture CI jobs on every guard — whether one is worth keeping stays a per-case call, and `hook-config.test.ts` shows the pattern where it is. It is also **not retroactive**: existing checks get the treatment opportunistically, when next touched.+## Questions?Open an issue or start a discussion. For small changes, PRs are welcome directly. For anything bigger, see [Before You Open a PR](#before-you-open-a-pr).