How dopesir/universal-frontier-harness works
The Universal Frontier Engineering Harness combines agent-facing operational guidance with mechanical hooks that gate actions, validate edits, record verification evidence, and prevent unsupported completion. The principal workflow is an agent tool call through the pre-tool policy gate, then post-tool validation and evidence recording, followed by a stop-time freshness check. The README also describes adapter support, task contracts, delegation, and specialized engineering skills. Edges follow sampled imports/calls or explicit README statements; unsampled subsystems are included only where their paths are present in the tree.
Main entry points: pre_tool.py Pre-tool Gate · post_tool.py Post-tool Recorder · stop_gate.py Stop Hook · hooks.json Hook Configuration
Components 16
Agent Integration
- Host Adapters
adapters - Hook Configuration
hooks/hooks.json - Pre-tool Gate
hooks/pre_tool.py - Post-tool Recorder
hooks/post_tool.py - Stop Hook
hooks/stop_gate.py
Reliability Runtime
- Task Contract
core/contract.py - Action Policy
core/policy.py - Session State
core/state_machine.py - Syntax Linter
core/fast_lint.py - Evidence Ledger
core/evidence.py - Completion Gate
core/stop_gate.py
Engineering Guidance
- Operational Rules
rules - Engineering Skills
skills - Delegation Roles
skills/subagent-orchestration/SKILL.md
Evaluation
- Contract Benchmarks
eval/runner.py
Other components
- Coding Agent
Connections 22
- Coding Agent → Host Adapters: sends tool calls
README.md - Host Adapters → Action Policy: normalizes actions
adapters/antigravity.py - Coding Agent → Pre-tool Gate: proposes action
README.md - Pre-tool Gate → Action Policy: evaluates action
hooks/pre_tool.py - Pre-tool Gate → Task Contract: loads scope
hooks/pre_tool.py - Pre-tool Gate → Coding Agent: returns decision
README.md - Coding Agent → Post-tool Recorder: returns tool result
README.md - Post-tool Recorder → Action Policy: classifies action
hooks/post_tool.py - Post-tool Recorder → Syntax Linter: lints writes
hooks/post_tool.py - Post-tool Recorder → Evidence Ledger: appends passing runs
hooks/post_tool.py - Coding Agent → Stop Hook: proposes completion
README.md - Stop Hook → Completion Gate: evaluates stop
hooks/stop_gate.py - Completion Gate → Task Contract: loads criteria
core/stop_gate.py - Completion Gate → Evidence Ledger: checks freshness
core/stop_gate.py - Stop Hook → Coding Agent: returns decision
README.md - Hook Configuration → Pre-tool Gate: configures hooks
README.md - Hook Configuration → Post-tool Recorder: configures hooks
README.md - Hook Configuration → Stop Hook: configures hooks
README.md - Operational Rules → Coding Agent: guides operation
README.md - Engineering Skills → Coding Agent: guides workflows
README.md - Delegation Roles → Coding Agent: defines delegation
README.md - Contract Benchmarks → Task Contract: validates tasks
eval/runner.py