On this page

0122: Density targets deferred

Status: Accepted by maintainer 2026-11-03

Context

M13.4 and ADR-0010 target 16,384 B per idle agent and 50 µs spawn/fork. Step 25 measured release C with a full gate loading the box: 27,750 B/agent cumulative-allocation proxy, ~4.8 KB/agent RSS delta, and ~121/124 µs per spawn/fork (median of whole-process averages over 100,000 operations). The proxy misses its target and is not live memory; both timings miss their target. Fake sibling cache ratio 1.00 meets 0.90; 64 agents across two repositories produced fixture invocation counts of 2 LSP and 1 MCP, not verified registry process counts.

Informational unmerged step-27 instrumentation (/workspace/shared/harness/STEP27-DESIGN.md) found ~6,616 live B/agent after settle, including retained parents, journals and vector slack, and quiet-box spawn/fork ~36.7/33.4 µs per operation. These do not replace the step-25 results or establish comparable per-operation latency.

Decision

Accept CP-13.1 with these documented deviations; drop step 27 and defer the original idle and timing targets. Gate the existing cumulative proxy at 28,672 B/agent as a regression ceiling, with DENSITY_IDLE_LIMIT override; retain the 16,384 B target as deferred, not met by this proxy. The future correct deterministic counter is live bytes after settle/return cleanup, relative to a warmed one-agent runner, including retained parents and slack and excluding separately reported unique context.

Defer proposed exact-size singleton vectors for empty enqueue/first child and value-semantic vec.set for replace_child instead of rebuilding; preserve ordering, alias independence and invalid-index no-op behavior. Transition promotion, replace_child rebuild and first-child push dominate the measured cumulative proxy. Rebenchmark before adopting optimizations.

Alternatives considered

Consequences

The regression ceiling is not proof of the original memory target. Real-provider cache ratio, real MCP/LSP servers and registry-level process counts remain UNVERIFIED; ADRs 0114–0121 remain pending the maintainer's confirmation. Full checkpoint verification and tagging remain separate work.