One pressure signal gates heavy work at admission and execution — admit before, shed during.

Resource-pressure gating (admit before, shed during)

Intent — Govern a saturable host resource with a live pressure signal read at two layers: an admission gate that refuses or defers heavy work before it is dispatched, and an execution shed that stops heavy work already running when pressure spikes, both driven by one signal that is also callable for the operator's own judgment. Heavy work is then neither started into an overloaded host nor left running on one (our instance: a GREEN/YELLOW/RED host-load monitor that gates agent dispatch and sheds heavy compute at the mediators).

SummaryOne pressure signal gates heavy work at admission and execution — admit before, shed during.
TargetAgent · Mediators & resource locks
Formquality-gate
EnforcementHard (deterministic) — a pre-dispatch gate refuses/defers heavy work and the compute mediators shed it under RED pressure; the same signal is callable for advisory decisions

Motivation — the failure it kills

A cardinality cap (N-at-a-time) bounds how many heavy jobs run, not whether the host can bear them right now. Two failures follow. Dispatch into overload: the orchestrator admits a heavy agent onto an already-saturated machine because the only pre-dispatch check guards a different resource (free disk, say); the agent starts, reaches the compute mediators, and is refused, so it polls and sheds, burning wall-clock (a heavy agent has burned ~10 minutes polling) on work that never had headroom. Run into overload: pressure rises after a job was admitted, and nothing stops the now-too-heavy job mid-flight. Cardinality caps and single-resource admission checks miss both. The missing ingredient is a live pressure reading consulted at the two moments work is admitted and executed.

Why it's not just "the compute mediators already shed under pressure"

Shedding at the mediators is execution-time and reactive: it fires only once the work has been dispatched, spun up a worktree, and reached the compute step, so the cost of starting doomed work is already paid (the poll-and-shed waste). An admission gate moves the same pressure check left, to dispatch time: it refuses or defers the heavy brief before a worktree is ever created, so the doomed work never starts. The two are not redundant. Admission prevents the startup cost; execution shedding catches pressure that rose after admission, which the gate could not foresee. Shedding does stop a job pressure has overtaken, but only after the host paid to start it. Admission refuses before you spend; a saturable resource wants both, driven by one signal so the two layers cannot disagree.

Mechanism

A host monitor reports a coarse pressure level (GREEN / YELLOW / RED) over the saturable resource (load, memory). Three consumers read the one signal:

One signal, three readers: a gate, a shed, and an advisor. ⚠️ As-built: the disk-floor admission gate and the pressure-driven execution shed are wired, and the monitor is callable, but the load-pressure admission gate is the identified extension. Today heavy work is admitted regardless of load and only shed later at the mediators, which is exactly the "dispatch into overload → poll-and-shed" waste the admission layer closes.

Prerequisites

Consequences & costs

Known uses

Related mechanisms