Skip to content
Source
Sign inSign up
TanStack/intent

feat: record every pending review item in one command #288

MergedLadyBluenotes(GitHub profile, opens in a new tab)merged 4 commits intofeat/setup-registers-existing fromrefs/pull/288/headmerged by LadyBluenotes(GitHub profile, opens in a new tab)

Showing 6 changed files with 58 additions and 9 deletions (loading 3).

x
0 of 6 viewed, 6 left
1 addition and 1 deletion.changeset/interactive-maintainer-review.mdModified
View file
@@ -2,4 +2,4 @@
'@tanstack/intent': minor
---
​
-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 deletionpackages/intent/meta/generate-skill/references/source-review.mdModified
View file
@@ -22,7 +22,7 @@
- `reason`: the concrete behavior comparison and why that outcome follows.
- `evidence`: source paths/revisions and actual check results. For behavior-changing guidance, include structural validation, executable task checks, and fresh-consumer evidence or its explicit limitation.
​
-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.
​
56 additions and 7 deletionspackages/intent/src/commands/maintainer.tsModified
View file
@@ -12,7 +12,7 @@
import { retireSkill } from '../maintainer/remove.js'
import { planMaintainerSync } from '../maintainer/sync.js'
import { withMaintainerLock, writeChanges } from '../maintainer/files.js'
-import { createReview } from '../review/review.js'
+import { createReview, recordPendingReview } from '../review/review.js'
import {
configureDistribution,