Closes the last unchecked item in plans/autonomous-survival-bot-prd.md §7
Phase 6 — Smoke checks run before applying patch.
scripts/edit-scope.js — pure helpers to parse editScope: [...]
from a proposal frontmatter (the field Phase 6 started writing) and
to validate a list of changed files against it.
scripts/auto-patch.js — reads scope from the proposal, injects
allowed paths into the Pi prompt, validates the diff (auto-allowing runtime/**/*.test.js), and runs npm test on the patched branch
before cherry-picking. Any test failure → discard the patch.
## Summary
Closes the last unchecked item in `plans/autonomous-survival-bot-prd.md` §7
Phase 6 — *Smoke checks run before applying patch.*
- `scripts/edit-scope.js` — pure helpers to parse `editScope: [...]`
from a proposal frontmatter (the field Phase 6 started writing) and
to validate a list of changed files against it.
- `scripts/auto-patch.js` — reads scope from the proposal, injects
allowed paths into the Pi prompt, validates the diff (auto-allowing
`runtime/**/*.test.js`), and runs `npm test` on the patched branch
before cherry-picking. Any test failure → discard the patch.
- 13 new tests, `npm test` is 92/92.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Closes the last unchecked item in
plans/autonomous-survival-bot-prd.md§7Phase 6 — Smoke checks run before applying patch.
scripts/edit-scope.js— pure helpers to parseeditScope: [...]from a proposal frontmatter (the field Phase 6 started writing) and
to validate a list of changed files against it.
scripts/auto-patch.js— reads scope from the proposal, injectsallowed paths into the Pi prompt, validates the diff (auto-allowing
runtime/**/*.test.js), and runsnpm teston the patched branchbefore cherry-picking. Any test failure → discard the patch.
npm testis 92/92.🤖 Generated with Claude Code