FrankenTerm

Operating Envelope

199 words1 min readFrom the README at ft 0.15.21

The operating envelope contract is the system's answer to "is it safe to do more work right now?"

Contract: ft.operating_envelope.v1 (see docs/robot-contracts/operating-envelope.md and the JSON schema at docs/json-schema/ft-operating-envelope.json).

Inputs (each fails closed when missing):

  • RCH (remote compilation helper) cluster pressure
  • System network pressure (recently fail-closed when telemetry source is missing)
  • Process snapshots (recently fail-closed)
  • Fleet memory pressure tier (from the worst-of synthesis described in §7 of Design Philosophy)
  • SQLite write queue depth + GC budget

Outputs:

  • An admission verdict per (pane class, count) pair
  • A typed envelope status object for the operator runbook (ft.operating_envelope.v1)
  • A side-effect-free plan that the mission objective planner consumes

Failure semantics (reason codes from operating_envelope.rs):

  • Missing or stale telemetry → reason telemetry.stale / capacity.stale; the planner denies admission rather than guessing
  • Critical pressure on any input → reasons capacity.red (critical) or capacity.black (emergency); planner emits envelope.shed (and capacity.pressure_shed)
  • Target-class artifact missing or skipped_not_proven → reason capacity.target_class_unproven; high-scale claims are held back
  • All required sources healthy → reason envelope.all_required_sources_available; verdict is envelope.admit with the admitted (pane class, count) tuple
  • Tier classification flows through capacity.green for headroom-available healthy state

This is the surface that protects swarms from accidentally being driven outside their proven operating range. See docs/operator-runbook.md for the operator-facing recovery procedures (ft-booek.6).