feat: record every pending review item in one command #288
Merged
LadyBluenotes(GitHub profile, opens in a new tab)merged 4 commits into
feat/setup-registers-existing fromrefs/pull/288/head·merged by LadyBluenotes(GitHub profile, opens in a new tab) Showing 6 changed files with 58 additions and 9 deletions (loading 3).
x
@@ -2,4 +2,4 @@
-Add optional interactive maintainer review with guidance and source-diff inspection, per-item reasons and evidence, and confirmation before recording. Reuse existing fingerprints and evidence validation, retain JSON workflows, and prohibit interactive prompts in CI.
+Add optional interactive maintainer review with guidance and source-diff inspection, per-item reasons and evidence, and confirmation before recording. Reuse existing fingerprints and evidence validation, retain JSON workflows, and prohibit interactive prompts in CI. Add `maintainer review --unchanged <reason>` and `--updated <reason>` to record one outcome for every pending item in a single command, with the reviewed revision and changed files as evidence.
1 addition and 1 deletion+1-1packages/intent/meta/generate-skill/references/source-review.mdModifiedView file
@@ -22,7 +22,7 @@
-Preserve the report's identity, base and fingerprints. Run `intent maintainer review --record .intent/review.json`. For planning items, use `updated` or an evidence-backed `no-change` covering all three documents. The command rejects a report that annotates nothing, stale fingerprints, and unresolved source mappings or planning files. It writes completed outcomes to `.intent/review-state.json`; unresolved or unannotated items stay pending. Do not invent passing checks, use a generic reason, or mark unrelated items complete just to empty the report.
+When every pending item shares one outcome and one reason, run `intent maintainer review --unchanged "<reason>"` or `--updated "<reason>"`; the command records the reviewed revision and changed files as evidence. Otherwise preserve the report's identity, base and fingerprints and run `intent maintainer review --record .intent/review.json`. For planning items, use `updated` or an evidence-backed `no-change` covering all three documents. The command rejects a report that annotates nothing, stale fingerprints, and unresolved source mappings or planning files. It writes completed outcomes to `.intent/review-state.json`; unresolved or unannotated items stay pending. Do not invent passing checks, use a generic reason, or mark unrelated items complete just to empty the report.
Keep the state file with the source/skill change for maintainer review. It contains content hashes, revisions, outcomes and evidence, not source contents. Record operations do not commit or publish. An identical content snapshot suppresses repeated reminders, including a justified no-op; another source or guidance change reopens review. This records an evidence-backed decision, not independent proof that the decision is correct.
@@ -12,7 +12,7 @@
-import { createReview } from '../review/review.js'
+import { createReview, recordPendingReview } from '../review/review.js'