chore(work): finish 06-sandcastle-reviewer-prompt

This commit is contained in:
2026-05-14 07:58:55 +02:00
parent 26bcbb7a91
commit 090410e9c3
2 changed files with 5 additions and 10 deletions

View File

@@ -3,7 +3,7 @@ id: 06-sandcastle-reviewer-prompt
epic: 2026-05-14-library-evaluation-policy
title: Sandcastle reviewer prompt — Library-trace check section
type: technical-story
status: todo
status: done
feature: tooling
depends-on: [02-pre-commit-check-script]
blocks: []
@@ -38,4 +38,4 @@ The sandcastle reviewer runs in a clean sandbox where `git diff --cached` may no
## Tasks
- [ ] Add `--staged-against <base>` flag to `check.mjs` (switches from `git diff --cached` to `git diff <base>...HEAD`); add a test covering `--staged-against` mode (temp git repo fixture, new feature-tier dep, no trace → exit 1); append "Library-trace check" section to `.sandcastle/reviewer.prompt.md` with the `node scripts/library-decisions/check.mjs --staged-against <base>` invocation and reject instruction; all gates pass on this single commit.
- [x] Add `--staged-against <base>` flag to `check.mjs` (switches from `git diff --cached` to `git diff <base>...HEAD`); add a test covering `--staged-against` mode (temp git repo fixture, new feature-tier dep, no trace → exit 1); append "Library-trace check" section to `.sandcastle/reviewer.prompt.md` with the `node scripts/library-decisions/check.mjs --staged-against <base>` invocation and reject instruction; all gates pass on this single commit.