review-state: add a path subcommand and a default output for write --from-stdin #710
Labels
No labels
agent-ready
bug
contract
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-human
needs-input
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
iterative-works/iw-cli#710
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
After IW-702 the review-state card lives in the common git dir. Callers that are not Scala (bash hooks, agent instructions, E2E scripts) cannot find or read it without copying the layout of IW-702. kanon has nine such readers (dev-docs#439). Its rule is that kanon reaches the card only through the core, never by a literal path.
Two gaps on
mainat89b06934:iw review-statehas onlyvalidate,writeandupdate(core/commands/ReviewState.scala:710-724). Nothing prints where the card is.write --from-stdinfails without--output("--output is required with --from-stdin",core/commands/ReviewState.scala:381).writewith flags already resolves its default output.Scope
iw review-state path [--key K]. It prints the absolute path of the card thatReviewStatePathresolves and exits 0 if the card exists, 1 if no card exists. Without--key, it uses the key of the current worktree (issue or framed effort). With--key, it resolves that key from any worktree of the repository (the card is in the common git dir).write --from-stdinthe same default output aswrite.docs/commands/review-state.mdand the command declaration.Decided
path, notshow: callers keep reading the card withjqor the Read tool (dev-docs#439, analysis).--commitis removed with no shim).Consumer
kanon dev-docs#439 phases 2 and 3 wait for this issue to be merged.