Verify Runtime — Verification Is the Terminal State
"I changed it" is not done. "It's fixed and confirmed" is done.
Lower entropy = verify every claim before accepting it.
A task is done when tests pass, health checks green, and behavior is proven. This skill enforces the third leg — the terminal step that separates assumed-done from actually-done.
The Verification Contract
Every agent that performs a mutation MUST run verification before claiming completion.
Mutation → Self-check → Health probe → Behavior smoke → REPORT
^ |
└────────────── NOT DONE until REPORT says GREEN ────────┘
Rules:
- Never stop at "I applied the fix" — stop at "I confirmed the fix works"
- If you cannot verify the result, you have not finished
- If verification fails, revert the change and diagnose, don't patch over it
- The verifier agent (Auditor) must be DIFFERENT from the mutator agent (Engineer) for critical systems
Steps
/root/apex-health.sh — federation-wide port probe (all 8 organs)
- Per-organ health probes (parallel where possible):
- arifOS:
curl -s :8088/health | python3 -m json.tool
- GEOX:
curl -s :8081/health | python3 -m json.tool
- WEALTH:
curl -s :18082/health | python3 -m json.tool
- WELL:
curl -s :18083/health | python3 -m json.tool
- A-FORGE:
curl -s :7071/health | python3 -m json.tool
- Drift check: compare git source SHA vs runtime (
git log -1 --format=%H vs installed artifact)
- One behavior smoke per touched organ (e.g. for arifOS: session init round-trip)
- Report: green/yellow/red per organ + 1-line summary
Verification Loop
- All green → claim done with structured receipt
- Any yellow → log cause + continue, flag in summary. Do not leave yellow uninvestigated.
- Any red → 888 HOLD, rollback via organ's deploy-local, log
{who, what, why, result}
Output Format
{
"who": "<agent_id>",
"what": "verify-runtime",
"why": "post-deploy verification",
"result": {
"organs": {"arifos": "green", "aforge": "green", ...},
"drift": "none",
"smoke_tests": {"arif_init": "pass"},
"verdict": "done"
}
}
Failure Modes
| Mode |
Action |
| Service slow to start |
30s grace, then red |
| Port collision |
Check Caddy/port registry, surface to human |
| Drift detected |
Run make deploy-local in the affected organ |
| Health endpoint missing |
Check organ's main.py / server.js for /health route |
| Smoke test fails |
Revert the change, diagnose root cause |
| Cannot verify |
Do not claim done. Escalate. |
Reference
- Federation health:
/root/apex-health.sh
- Per-organ runbooks:
/root/RUNBOOK.md
- Drift detection:
drift-watch skill
1---2name: forge-verify-runtime3id: forge-verify-runtime4risk_tier: low5description: 'Verification-as-terminal-state skill. A task is done ONLY when verified.6 Never stop at "I changed it" — only at "it''s fixed and confirmed." Runs health7 probes, behavior smoke tests, and drift checks.89 '10when_to_use: Post-deploy, post-restart, post-skill-claim of "done", weekly audit,11 pre-commit on runtime-touching code.12version: 2.0.013tags:14- verification15- terminal-state16- lower-entropy17- confirm-not-assume18owner: A-FORGE19floor_scope:20- F121- F222- F423- F724- F1125autonomy_tier: T126capability_tier: fed-agent-subagent27ecology_state: WARM28---2930# Verify Runtime — Verification Is the Terminal State3132> **"I changed it" is not done. "It's fixed and confirmed" is done.**33> **Lower entropy = verify every claim before accepting it.**3435A task is done when tests pass, health checks green, and behavior is proven. This skill enforces the third leg — the terminal step that separates assumed-done from actually-done.3637## The Verification Contract3839Every agent that performs a mutation MUST run verification before claiming completion.4041```42Mutation → Self-check → Health probe → Behavior smoke → REPORT43 ^ |44 └────────────── NOT DONE until REPORT says GREEN ────────┘45```4647**Rules:**481. Never stop at "I applied the fix" — stop at "I confirmed the fix works"492. If you cannot verify the result, you have not finished503. If verification fails, revert the change and diagnose, don't patch over it514. The verifier agent (Auditor) must be DIFFERENT from the mutator agent (Engineer) for critical systems5253## Steps541. `/root/apex-health.sh` — federation-wide port probe (all 8 organs)552. Per-organ health probes (parallel where possible):56 - arifOS: `curl -s :8088/health | python3 -m json.tool`57 - GEOX: `curl -s :8081/health | python3 -m json.tool`58 - WEALTH: `curl -s :18082/health | python3 -m json.tool`59 - WELL: `curl -s :18083/health | python3 -m json.tool`60 - A-FORGE: `curl -s :7071/health | python3 -m json.tool`613. Drift check: compare git source SHA vs runtime (`git log -1 --format=%H` vs installed artifact)624. One behavior smoke per touched organ (e.g. for arifOS: session init round-trip)635. Report: green/yellow/red per organ + 1-line summary6465## Verification Loop66- **All green → claim done** with structured receipt67- **Any yellow** → log cause + continue, flag in summary. Do not leave yellow uninvestigated.68- **Any red** → 888 HOLD, rollback via organ's deploy-local, log `{who, what, why, result}`6970## Output Format71```json72{73 "who": "<agent_id>",74 "what": "verify-runtime",75 "why": "post-deploy verification",76 "result": {77 "organs": {"arifos": "green", "aforge": "green", ...},78 "drift": "none",79 "smoke_tests": {"arif_init": "pass"},80 "verdict": "done"81 }82}83```8485## Failure Modes86| Mode | Action |87|------|--------|88| Service slow to start | 30s grace, then red |89| Port collision | Check Caddy/port registry, surface to human |90| Drift detected | Run `make deploy-local` in the affected organ |91| Health endpoint missing | Check organ's main.py / server.js for `/health` route |92| Smoke test fails | Revert the change, diagnose root cause |93| Cannot verify | Do not claim done. Escalate. |9495## Reference96- Federation health: `/root/apex-health.sh`97- Per-organ runbooks: `/root/RUNBOOK.md`98- Drift detection: `drift-watch` skill