mirror of
https://github.com/garrytan/gstack.git
synced 2026-12-01 12:25:53 +01:00
/autoplan stops asking the owner again for changes his "do it" already approved (GST-3753) (#4809)
When the review rounds run out and every decision in the last revision is a recommendation the owner already took in his own words, /autoplan now finishes instead of raising another approval gate, and leaves one note saying no reviewer read that last revision. Why: a run answered "do it" twice still got a third gate of 63 items, three of them "accept the unreviewed changes" once per review phase, which only the owner could answer. Nothing to do: `gstack-autoplan status` shows the note as open until `gstack-autoplan rule` closes it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/adversarial-native#4 reader=adversarial
This commit is contained in:
1 parent
f2ca920bc4
commit
2679c6f7ad
16 files changed
+422
-46
No files matched your search
+26
-2
@@ -824,8 +824,8 @@ item, "do it" cases included, goes to the owner.
|
||||
decision row gets `carried_under: do it`, the output prints
|
||||
`CARRIED_UNDER_DO_IT:` per item, and the approval record lists them as
|
||||
"taken under "do it", not seen by the owner". `rec` carries no new item.
|
||||
- **Unreviewed post-cap delta.** A "plan changed after <phase> cap" item
|
||||
recommending `a` (accept) is read by one reviewer before it carries. `CARRY_CHECK:` names the attempt and
|
||||
- **Unreviewed post-cap delta.** A "plan changed after the <phases> cap" item
|
||||
(one per revise, naming every capped phase) recommending `a` (accept) is read by one reviewer before it carries. `CARRY_CHECK:` names the attempt and
|
||||
the prompt (the delta against `plan-at-gate.r<m>.md`, the accepted changes,
|
||||
the full plan); the run reserves the estimate in `spend.json` and refuses
|
||||
when it is over `--carry-check-cap <usd>` (default 5) or the run's cap.
|
||||
@@ -839,6 +839,30 @@ item, "do it" cases included, goes to the owner.
|
||||
when the owner answers the gate, the plan is revised, a new gate is
|
||||
written, or the delta changed after dispatch.
|
||||
|
||||
At the round cap, a `revise` that only incorporates recommendations the owner
|
||||
took in his own words (each decision approved as recommended, none in an
|
||||
agent's own words) raises no gate at all: the owner already approved exactly
|
||||
those changes. The capped phases' deltas are recorded `accepted` with
|
||||
`basis: applied owner-approved recommendations at the round cap`, the journal
|
||||
gets `unreviewed_at_cap`, and `revise` prints one `UNREVIEWED:` line naming
|
||||
the revision, the phases that never read it, the decisions and the owner's
|
||||
words, then `APPROVED:`. That line is an open note, as a finding /ship ships
|
||||
with after round two is: `gstack-autoplan rule --out <dir> --revision <k> --by
|
||||
<ruler> --reason "<why>" [--owner-ref <thread>:<message>]` records a Captain's
|
||||
or the owner's ruling on it (`unreviewed_ruled`; gstack cannot rule on its
|
||||
own note, an agent rules only by relaying one with `--owner-ref`, and a
|
||||
ruling stands once recorded; a retry of the same ruling is safe). The exported
|
||||
record names who ruled and the owner ref, never the reason text. `gstack-autoplan status` shows each such
|
||||
change as `unreviewed open` or `unreviewed ruled by <who>`. A phase that does review the revision (one newly in scope) still
|
||||
raises its findings at a gate, and a revise that takes anything else (an
|
||||
override, an agent's own words, an edit with no `--incorporates`) keeps the
|
||||
one cap item above.
|
||||
|
||||
A cut under `### What it won't do yet` carries its answer to the next gate only
|
||||
while its words are unchanged (case and punctuation aside). Any reworded cut, a
|
||||
renamed command included, is a new item and the owner is asked about it once:
|
||||
a wrong carry would hide a scope cut from him, while a re-ask costs one question.
|
||||
|
||||
Carried rows keep `answered_by: agent:gstack-autoplan` and name their source
|
||||
(`carried_gate_from`, `carried_gate_rev`, `carried_answered_by`);
|
||||
`gstack-approvals import --autoplan` writes the carried gate as its own row,
|
||||
|
||||
Reference in new issue
Block a user