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
@@ -83,3 +83,8 @@ export const generateAutoplanUnattendedVoice: ResolverFn = ctx => [
|
||||
"Run the voice in the foreground, inside this turn: `gstack-outside-voice run ... --timeout-ms 540000` with the tool's own timeout above it (Claude Code Bash `timeout: 600000`), or a subagent you await. Never `run_in_background`, never a monitor, never end the turn to wait for it: an unattended session ends with its turn. When the voice fails, `submit --voice outside --unavailable \"<line>\"` with the matching line and carry on in the same turn, the native voice still counting:",
|
||||
...outsideVoiceFailurePolicy(ctx, { timeoutMinutes: 9, onTimeout: 'missing-coverage', stderrOnEmpty: true, fallback: 'none', escape: 0 }).split('\n').map(l => l.replace(/^- /, '')),
|
||||
].join(' ');
|
||||
|
||||
/** GST-3068 (GEVA-549): the one gate rule for unattended /autoplan, rendered into the unattended profile and DRIVER.md so the two can't contradict. An agent never approves on its own judgment; a relayed owner reply is recorded with the owner's words bound. */
|
||||
export const AUTOPLAN_UNATTENDED_GATE_RULE = '**The gate, unattended.** Never approve it on your own judgment: with no owner reply, the run stops at `status=gate_pending`. Record an owner\'s reply relayed to you yourself, never handing them the command: `gstack-autoplan answer --out <dir> --gate-rev <n> --reply "<reply>" --by agent:<id> --owner-reply-file <file of their words>`.';
|
||||
|
||||
export const generateAutoplanUnattendedGate: ResolverFn = () => AUTOPLAN_UNATTENDED_GATE_RULE;
|
||||
@@ -53,7 +53,7 @@ import { generateImplementerDispatchRules } from './dispatch-rules';
|
||||
import { generatePlanRealityRows } from './plan-reality';
|
||||
import { generateSidewaysSweep, generateFlakeFixNumber } from './sideways';
|
||||
import { generateCoordinatorContract } from './coordinator-contract';
|
||||
import { generateAutoplanDriverCodes, generateAutoplanDriverCommands, generateAutoplanDriverFiles, generateAutoplanDriverGate, generateAutoplanDriverPhases, generateAutoplanDriverResultFormat, generateAutoplanUnattendedVoice } from './autoplan-driver';
|
||||
import { generateAutoplanDriverCodes, generateAutoplanDriverCommands, generateAutoplanDriverFiles, generateAutoplanDriverGate, generateAutoplanDriverPhases, generateAutoplanDriverResultFormat, generateAutoplanUnattendedGate, generateAutoplanUnattendedVoice } from './autoplan-driver';
|
||||
import { generateShipDriverStops } from './ship-driver';
|
||||
import { generateQAScope, generateQAExploratory, generateQAFunctional, generateQAResource, generateQAReview, generateQAReviewPreflight, generateQAMethodReads } from './qa';
|
||||
import { generateVoiceTriggerRouting } from './voice-triggers';
|
||||
@@ -194,6 +194,7 @@ export const RESOLVERS: Record<string, ResolverFn> = {
|
||||
AUTOPLAN_DRIVER_FILES: generateAutoplanDriverFiles,
|
||||
AUTOPLAN_DRIVER_CODES: generateAutoplanDriverCodes,
|
||||
AUTOPLAN_UNATTENDED_VOICE: generateAutoplanUnattendedVoice,
|
||||
AUTOPLAN_UNATTENDED_GATE: generateAutoplanUnattendedGate,
|
||||
SHIP_DRIVER_STOPS: generateShipDriverStops,
|
||||
SECTION,
|
||||
SECTION_INDEX,
|
||||
|
||||
Reference in new issue
Block a user