Files
curriculum-project-hub/.scratch/saas-production-readiness/issues/05-define-abuse-capacity-controls.md

2.2 KiB

Define initial abuse and capacity controls

Type: grilling Status: resolved Blocked by: 02, 03

Question

Which request limits, file limits, concurrency limits, agent budgets, tenant quotas, and backpressure policies are mandatory for the accepted initial production boundary, and which values or behaviors remain product decisions?

Answer

The initial production service requires layered, fail-closed capacity controls: every mandatory dimension has a versioned non-overridable platform ceiling, while an Organization may configure only a lower policy limit. Agent work uses a durable bounded queue, fair scheduling across Organizations, FIFO within an Organization, explicit overload/expiry/cancellation states, and no automatic whole-run replay after execution starts.

Hard controls cover request rate/body size, concurrency and queueing, files and archive expansion, Project/Organization storage and entity counts, run/tool budgets, and process resources. Reaching a limit blocks new growth without deleting or hiding existing data. Token and provider cost remain attributed soft-alert signals in the pilot, not hard spend controls; unknown cost is not zero. Platform administrators also receive audited DRAIN and STOP_NOW workload brakes.

The full current-state inventory, accepted behavior, and release evidence are recorded in Initial abuse and capacity controls, with the durable decision in ADR-0022 and Spec.System.Capacity. Numerical ceilings remain open until production-like calibration.

The implementation frontier is: