mvp-ai's picture
|
download
raw
2.2 kB
# Harness Enforcement Model
The harness is not enforced by asking the model to behave. It is enforced by
artifacts, state, and gates.
## Non-bypassable surfaces
1. `.harness_state.json` records the current phase.
2. `harness_orchestrator.py advance` checks the current phase output before
moving forward.
3. Gate phases run scripts and require exit code `0`.
4. Module 2 prompts are generated from compact artifacts, limiting context
drift.
5. Audit checks final evidence files before delivery.
6. USER_ACCEPTANCE_GATE checks user-side evidence before final audit.
7. `context-ledger.json` records bounded role summaries and artifact paths so
later phases do not rely on oversized hidden chat context.
## What "100%" means
The assistant may choose how to solve a task inside a phase, but it may not
choose the next phase. Only the orchestrator advances state.
## Remaining trust boundary
No prompt can prevent a model from saying it complied. The framework reduces
that risk by requiring files and executable checks. Any future adapter should
preserve this rule:
```text
No artifact, no advance.
No gate exit 0, no delivery.
No user-side evidence, no final audit.
No compact ledger entry, no cross-role handoff.
```
## Module boundary enforcement
Module 1 may discuss, diverge, debate, and set boundaries.
Module 2 may only execute the `execution-manifest.json` through TDD and QA. If
Module 2 discovers an undecided requirement, red line, or acceptance boundary,
the correct action is:
```text
stop -> report blocker -> repair Module 1 artifact -> rerun gate -> resume
```
It must not silently invent a product decision during implementation.
## Context boundary enforcement
The framework does not trust long memory. Every role handoff must be written as
an artifact plus a compact ledger entry under `.harness/context-ledger.json`.
The allowed carry-over is:
```text
phase artifact + ledger summary + explicit artifact path
```
The disallowed carry-over is:
```text
previous agent private chat, unbounded scratch notes, or full conversation dump
```
If a role output is too long, split it by phase, dimension, task, or file scope
and record each slice separately.

Xet Storage Details

Size:
2.2 kB
·
Xet hash:
e0b9735aed814f9b14d710ba17b1e7f4eff6151e5defab12b7acab4d6e44257c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.