Skip to content

loops/skills: orchestrator context economy — subagent return-payload contracts + GitHub-externalized state #496

Description

@kyle-sexton

Category: operational · Source: live lane operation — long-running loop orchestrators accumulate subagent return payloads until auto-compact fires; quality degrades well before the window fills.

Problem

Loop skills (babysit, triage, work) spawn subagents whose full final reports return into the orchestrator's context. At day-scale (dozens-hundreds of dispatches) this alone walks the orchestrator into the degradation zone and forces auto-compaction mid-shift.

Design principles to codify in the loop-running skills

  1. Return-payload contract: every subagent brief specifies exactly what comes back — identifiers + verdict + parked-payload only (e.g. work lane: PR URL, CI status, ≤3-line summary; babysit worker: PR#, action, outcome one-liner). The 10x lever is WHAT returns, not its format; markup choice is marginal.
  2. Detail lives on GitHub, never in orchestrator context: PR bodies, issue comments, labels are the durable record. A subagent explains itself in the PR body, not to its parent.
  3. Context is disposable by design: after any compaction (or restart), the orchestrator re-orients from gh queries (queue labels, open PRs, own status comments) — never from conversational memory. Lane state must survive a cold start with zero context.
  4. Restart cadence: daily refresh restart already standard; add guidance to restart when the statusline crosses ~50% context rather than riding into auto-compact.

Relation

Extends #477/#478/#479 (skill absorption umbrellas) with a cross-cutting principle; complements #451 (dispatch posture).

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-humanHuman-in-the-loop required; autonomous sessions must not resolve items carrying this.priority: highSignificant impact, or blocks an imminent release; staff this cycle.status: needs-decisionAwaiting a human or maintainer judgment call.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions