Skip to content

Add autonomous quality gates - #224

Closed
sethkarten wants to merge 1 commit into
feature/autonomous-finish-contractfrom
feature/autonomous-quality-gates
Closed

Add autonomous quality gates#224
sethkarten wants to merge 1 commit into
feature/autonomous-finish-contractfrom
feature/autonomous-quality-gates

Conversation

@sethkarten

@sethkarten sethkarten commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add configurable autonomous quality gates with repeatable --autonomous-gate <command> flags
  • run gates before satisfying the autonomous finish contract
  • feed failed gate output back to the session up to a retry limit
  • support gate retry and timeout configuration from CLI runtime config

Testing

  • npm --prefix packages/coding-agent test -- suite/agent-session-autonomous.test.ts args.test.ts
  • ./node_modules/.bin/tsgo --noEmit
  • npm run check
  • isolated daemon smoke with temp socket/session dirs: start/create/list/shutdown using --autonomous --autonomous-gate "printf ok"

Note

Add autonomous quality gates to coding agent CLI and runtime

  • Adds --autonomous-gate, --autonomous-gate-retries, and --autonomous-gate-timeout-ms CLI flags to args.ts; providing any gate flag enables autonomous mode automatically.
  • When the agent attempts to finish, autonomous.ts runs each configured gate command via spawnSync; on failure it feeds combined stdout/stderr back as a corrective user message and increments continuationsUsed.
  • Per-command retry attempts are tracked in gateAttempts; once maxRetries is exceeded for a command, gate-driven continuations stop for that command (default 3 retries, 5-minute timeout).
  • Gate output fed back to the assistant is truncated to 6000 characters to avoid oversized messages.
  • Behavioral Change: nextAutonomousContinuation is now async and must be awaited; finish decisions may now be suppressed and replaced with corrective prompts when gates fail.

Macroscope summarized dbc2969.

@sethkarten

Copy link
Copy Markdown
Contributor Author

Closing as superseded by #222. Autonomous quality gates are now folded into the unified autonomous continuation PR.

@sethkarten sethkarten closed this Jun 23, 2026
@kevinjosethomas
kevinjosethomas deleted the feature/autonomous-quality-gates branch June 26, 2026 00:37
@kevinjosethomas
kevinjosethomas restored the feature/autonomous-quality-gates branch June 26, 2026 00:37
@kevinjosethomas
kevinjosethomas deleted the feature/autonomous-quality-gates branch July 8, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant