goal-bridgelisted
Install: claude install-skill arbazkhan971/godmode
# Goal-Bridge — Completion Contracts for Goal Modes
## Activate When
- User invokes `/godmode:goal-bridge`
- User sets a goal in a harness goal mode (`/goal` or your harness's equivalent)
- User asks "how do we know this is done"
- An evaluator needs a command that exits 0
## Workflow
### Step 1: Derive the Contract BEFORE Execution
No work starts until the contract exists. Derive all four fields up front:
- **metric** — ONE shell command where exit 0 = goal met. Never prose judgment.
- **threshold** — numeric or boolean bound the metric must satisfy.
- **evidence** — file path where metric output/proof is written every round.
- **rollback** — exact trigger that reverts the work.
### Step 2: Emit the Contract Block
Single source of truth — use EXACTLY this shape everywhere:
```
Goal-Bridge Contract (mandatory final output):
- metric: <single shell command; contract met iff it exits 0>
- threshold: <numeric or boolean bound the metric must satisfy>
- evidence: <file path where metric output/proof is written every round>
- rollback: <exact trigger that reverts the work, e.g. "metric fails on 2 consecutive rounds">
```
### Step 3: Run the Metric Every Round
Each round: run the metric command and append its output to the evidence path.
### Step 4: Rollback on Trigger
```bash
git reset --hard <last-good-commit>
```
Then log the attempt: what failed, which round, evidence excerpt.
### Step 5: Hand Off the Contract
Give the contract block to the harness goal mode / evaluator