GeezerVison is showing github.com — Dynamic agent slots: finish D4-D8 so slot counts come from the machine, not from instructions · Issue #882 · scuttletoby/t3code
Dynamic agent slots: finish D4-D8 so slot counts come from the machine, not from instructions #882Labels area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability DescriptionWhat: dynamic agent slots. How many agents and heavy jobs may run at once is worked out from the machine's real memory and measured use, not from fixed numbers in the instructions.
Why the owner wants it: "anyone who sets it up should not have to do anything; the software handles where tasks run, how many and what kind." Fixed slot counts are only floors until this is done.
Already built: DS1 capacity rule and pure evaluator #203, DS2 readings #284, DS3 slot gate in observe mode #332, one first-come line in the gate #752, every agent start goes through the gate #710.
Left (checklist):
Related: #861 (reservations and flapping), #866 (tools enforce capacity), #849 (one slot count).
Done when: a fresh install needs no slot numbers, admissions never cause an overload in a week of logs, and the fixed limits are gone from the instructions.
🤖 Generated with Claude Code Activityscuttletoby commented on Nov 28, 2026 Working on D5, part 1: the slot gate learns each agent kind's cost from the memory its last runs used (highest of the last 20 runs x 1.15, never below the rule's start cost, as heavy does for jobs). One fork PR.
🤖 Generated with Claude Code scuttletoby commented on Nov 28, 2026 Working on D5 part 2: the learned agent costs survive a server restart (each kind's last 20 run peaks kept on disk, read back at start), and the log line reports the cost the gate really uses (after the rule's clamp), from the #1206 review. One fork PR.
🤖 Generated with Claude Code scuttletoby commented on Nov 28, 2026 Owner decision (2026-11-28): learned agent costs may go below the start cost. When the gate learns real peaks are smaller, it should use them. Planned as D5 part 3 after #1226 merges: lower only after enough finished runs of that kind, keep a margin over the measured peak and a hard floor that a bad peaks file cannot get under. scuttletoby commented on Nov 28, 2026 D5 part 3 (learned agent costs may go below the start cost, after 10 runs of a kind, never under the rule's 50 % floor; plus the #1206 and #1226 minors left for D5): #1230
🤖 Generated with Claude Code scuttletoby commented on Nov 28, 2026 Working on D7 part 1: heavy-install install --memory-auto works out the heavy slice's MemoryMax and MemoryHigh from this machine's memory (MemTotal less the capacity rule's margin and room for the agent floor, numbers read from capacity-rule.json), remembers the choice, and every later install run (the same upgrade line) works them out again, so the caps follow the machine. One fork PR.
🤖 Generated with Claude Code scuttletoby commented on Nov 28, 2026 Working on D8 part 1: when the host kit is installed (heavy in its release folder), the slot gate in enforce mode also asks heavy facts --kind K before an agent starts, and refuses with the kit's reason when it answers busy (it sees heavy's jobs, reservations and other users, which the server does not). A kit that cannot answer leaves the server's own rule to decide, with a warning. One free/v1 reader in TypeScript that passes fork-kit/common/free-fixtures.json. The status card is part 2. One fork PR.
🤖 Generated with Claude Code added area:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rules size:bigMulti-part feature, design, research or audit (usually has sub-issues) on Nov 29, 2026
MetadataMetadataarea:agentsOrchestration, slots, delegate, handoff, wake-ups, model policy, review rulessize:bigMulti-part feature, design, research or audit (usually has sub-issues)type:featureNew behaviour or capability DevelopmentNo branches or pull requestsIssue actions
|