execution-contract-enforcer
Purpose
Wrap every skill with validation, authorization, budget, idempotency, execution, verification, and trace controls.
Use when
- any governed skill executes
Do not use when
- never bypass in production
Required inputs
- execution envelope
- manifest
- identity
- policy decision
- approved context
Outputs
- structured result
- trace events
- verification request
- memory candidates
- failure class
Procedure
- validate input/manifest.
- check scope/effects/risk.
- reserve budget and idempotency.
- execute in declared environment.
- validate output.
- verify postconditions.
- emit outcome.
- reconcile budget.
Guardrails
- permissions enforced outside model.
- error-specific retries.
- side effects need idempotency.
- memory writes remain candidates.
Integration points
- intelligent system turn orchestrator
- policy engine
- tool gateway
- verifier
- telemetry
Failure modes to test
- wrapper becomes monolith
- unsafe retry class
- vague postconditions
Operational metrics
- schema failures
- duplicate effects prevented
- unclassified errors
- bypass attempts
Completion requirements
The skill is complete only when structured outputs are emitted, evidence references resolve, declared postconditions are checked, and the execution wrapper records the result. Any memory remains a candidate until framework promotion controls accept it.
Research basis
- How to Build Your Own Agent Harness
- Loop Engineering Is Just Software Engineering
- Graph-Based Agentic AI with LangGraph
Runtime binding
- Family:
delegated - Binding:
runtime/execution_contract.py - Activation: metadata is discoverable at startup; load this body only after selection.
- Effects: read-only control-plane analysis unless a separately admitted composed capability declares more.
Completion and evidence
Return a structured decision, reasons, outputs, and evidence references. Treat unresolved provenance, permissions, required inputs, or postconditions as a fail-closed result. Candidate memory, research, generated skills, and speculative work never become active without separate admission and evidence.