Repository navigation
Description
Parent
#1217 — repo-owned development control plane.
Depends on #1222 context identity, #1223 role contracts and #1237 governance. Feeds #1230/#1231/#1235.
Objective
Bound the development controller’s use of agents, time, context and compute without confusing runtime optimization with roadmap or merge authority.
The controller needs enough flexibility to use parallel scouts, faster early investigation, cached/inherited context and fallback runtimes, while retaining one writer, a protected integrating root, current-head repair capacity and a useful terminal handoff.
Contract
Define a versioned DevelopmentRuntimePolicy with at least:
role concurrency caps
one-writer/touch-domain constraints
role and transaction attempt caps
soft signal / decision / wind-down / hard deadlines
heartbeat and abandonment grace
context-pack reuse/cache compatibility
maximum context/result/log/artifact sizes
runtime/provider/model allowlists and fallback order where configured
token/cost/time envelopes and stop reasons
protected integrating-root / CI-repair / reconciliation reserve
manual/no-agent fallback
Scope
- Separate roadmap readiness, claim authority and merge truth from runtime scheduling policy.
- Permit multiple read-only scouts/challengers within claim/touch constraints and one conflicting source writer.
- Define stage/role budgets for scout, builder, challenger, CI repair, integrating root and recovery.
- Protect time/context capacity for integration, exact-head repair, final proof, handoff and cleanup rather than letting scouts consume the transaction.
- Define soft stop: no new weak optional tasks; allow short material work that fits safely.
- Define wind-down: stop new agent work, drain/validate results, complete integration/reconciliation or emit bounded blocked state.
- Define hard stop for lost/hung agents while preserving recovery receipts.
- Reuse context/session/cache only when claim, base/head, role, context-pack digest, authority and tool/runtime compatibility hold.
- Permit faster/more expensive early scouts/builders when measured critical-path value justifies it, but keep model/provider selection non-authoritative.
- Record planned/actual duration, cost/tokens where available, cache/context reuse, retry/fallback and critical-path contribution.
- Provide conservative no-history/no-provider/manual defaults.
- Keep learning/adaptive optimization out of v1; policy is explicit and measured.
Acceptance
- Two read-only scouts may run concurrently; a second conflicting writer is refused regardless of budget.
- Scout/retry storms cannot consume the integrating-root, CI-repair or reconciliation reserve.
- Soft deadline stops new low-value optional work without cancelling safe terminalization.
- Wind-down yields a complete typed partial/blocked result rather than silent abandonment.
- Hard deadline terminates a hung task and routes it through recovery.
- Context/session reuse is rejected after base/head/claim/context/tool incompatibility.
- Runtime/provider fallback preserves the same task/result/authority semantics.
- Model/provider outage does not change roadmap readiness or code truth.
- Unknown cost/token fields remain unknown, not zero.
- Manual/no-agent mode remains complete.
- Every runtime choice and stop reason is explainable and receipted.
Proof
- Parallel scout/single writer, retry storm and protected reserve fixtures.
- Soft/wind-down/hard deadline truth table and hung/lost-heartbeat recovery.
- Compatible/incompatible context/session/cache reuse.
- Fast-expensive versus slow-cheap critical-path examples, without correctness dependence.
- Provider/runtime failure/fallback and no-provider/manual mode.
- Unknown metrics, size limits and oversize result/log cases.
- Deterministic policy/config/docs and full validation.
Non-goals
- No learned model selection or universal economic thresholds.
- No product model-stage scheduler replacement.
- No provider enrollment or credentials.
- No roadmap priority decision from cost alone.
- No guarantee of maximum throughput.
Rollback
Use conservative serial roles with one writer, one scout, fixed deadlines and manual continuation. Never remove claim/authority/current-head checks to recover throughput.
Activity