Skip to content

fix: zero-allowlist joy-check — every .md file passes#637

Merged
notque merged 1 commit into
mainfrom
fix/joy-check-zero-allowlist
May 10, 2026
Merged

fix: zero-allowlist joy-check — every .md file passes#637
notque merged 1 commit into
mainfrom
fix/joy-check-zero-allowlist

Conversation

@notque
Copy link
Copy Markdown
Owner

@notque notque commented May 10, 2026

Summary

  • Validator allowlist removed entirely — every git-tracked .md file must pass joy-check
  • Scanner now uses git ls-files to find targets (excludes gitignored files automatically)
  • 78 violations fixed across 28 files, all rewritten to say what to do instead
  • Teaching files (PHILOSOPHY.md, instruction-rubric.md) wrap quoted negative examples in fenced code blocks

Test plan

  • python3 scripts/validate_positive_instruction_docs.py returns count: 0
  • pytest scripts/tests/ — 2,253 pass
  • CI joy-check job passes

Validator rewritten: scans all git-tracked .md files via git ls-files.
Allowlist removed entirely — only .py scripts are exempt (they aren't
scanned since the tool only processes .md).

78 violations fixed across 28 files:
- shared-patterns: NEVER/FORBIDDEN → positive actions (keep .gitignore
  intact, resolve blockers through gates, report severity honestly)
- sapcc-conventions: Go project rules reframed positively (reserve
  must.Return for startup, use explicit error handling in handlers)
- PHILOSOPHY.md + instruction-rubric.md: teaching tables wrapped in
  fenced blocks so scanner skips quoted negative examples
- dream-prompt, enrichment/decomposition prompts, html-builder:
  all "Do NOT" instructions reframed as "Do Y instead"
- forbidden-patterns-template → hard-gate-patterns-template

Every rewrite says what to do, not what to avoid.
@notque notque merged commit f2fd616 into main May 10, 2026
6 checks passed
@notque notque deleted the fix/joy-check-zero-allowlist branch May 10, 2026 20:10
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