mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-19 06:34:43 +01:00
Unattended /autoplan records the owner's relayed gate reply instead of refusing it (GST-3068) (#4484)
An unattended /autoplan run that's handed the owner's reply at the final gate now records it and finishes, the same way whichever instruction file the agent reads. Before, autoplan/SKILL.md said "never approve" while autoplan/DRIVER.md said to record the relayed reply, so the outcome depended on which file the model followed. Nothing to do; this fixes existing instructions and adds no new feature. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
44170d6791
commit
bbf48aa7ef
15 files changed
+119
-53
No files matched your search
@@ -425,6 +425,9 @@ describe('gstack-skill-start behavior', () => {
|
||||
expect(autoplan).toContain('gate list (gstack-gate render)');
|
||||
expect(autoplan).toMatch(/decisions\.jsonl with kind "auto"/);
|
||||
expect(autoplan).toContain('gate.json');
|
||||
// GST-3068 (GEVA-549): the general "never approve a gate" rule defers to the record rule's exception; autoplan's names the relayed owner reply.
|
||||
expect(autoplan).toContain("The one exception: when the owner's own reply to that gate is relayed to you, record it with `gstack-autoplan answer --by agent:<id> --owner-reply-file <file>` as sections/unattended.md says, never on your own judgment and never handed back to the owner to run.");
|
||||
for (const [skill, text] of Object.entries(blocks)) if (skill !== 'autoplan') expect({ skill, relays: text.includes('--owner-reply') }).toEqual({ skill, relays: false });
|
||||
const evalPlan = blocks['eval-plan'];
|
||||
expect(evalPlan).toContain('`GSTACK_RESULT: skill=eval-plan status=gate_pending run=<outdir>`');
|
||||
expect(evalPlan).toContain('No helper writes a gate.json');
|
||||
|
||||
Reference in new issue
Block a user