/propose-seal — Substrate Primitive (Parameterized)
When /propose-seal <description> is invoked, the agent compiles evidence and submits the candidate to 888-APEX for constitutional verdict. No agent EVER self-seals.
Agent detection: Use $AGENT_RUNTIME env var or context to determine which variant applies. Values: hermes, openclaw, opencode.
Output format
SEAL REQUEST ROUTED
────────────────────────────────────
Request: <description of what is being sealed>
Proposer: <see Agent-Specific Bindings>
Session: <session_id>
Actor: ariffazil (F13 SOVEREIGN)
────────────────────────────────────
Evidence compiled:
<see Agent-Specific Bindings>
────────────────────────────────────
Constitutional check (auto):
F1 AMANAH ✅ (reversible path exists)
F2 TRUTH ✅ (evidence carries epistemic label)
F4 CLARITY ✅ (ΔS ≤ 0 verified)
F7 HUMILITY ✅ (Ω₀ in [0.03, 0.05])
F11 AUDIT ✅ (trail complete)
F13 SOVEREIGN ⚠️ Awaits verdict
────────────────────────────────────
→ Routing to 888-APEX for constitutional verdict
→ 999-VAULT999 will record decision
→ Poll: /seal-status <request_id>
DITEMPA BUKAN DIBERI 🔥
Agent-Specific Bindings
Hermes (AGENT_RUNTIME=hermes)
| Field |
Value |
| Proposer |
Hermes (555-ASI / Ω CORE) |
| Judge call |
apex-judge --actor HERMES or arif_init→arif_judge MCP |
| Evidence items |
5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |
| Evidence auto-detect |
Probe recent file writes, compute SHA-256 per file |
| Live probe |
probe_organ_health() |
| Ω₀ |
Computed from session entropy |
OpenClaw (AGENT_RUNTIME=openclaw)
| Field |
Value |
| Proposer |
OpenClaw (333 THINK + 444 ORCHESTRATE) |
| Judge call |
apex-judge --actor OPENCLAW or arif_init→arif_judge MCP |
| Evidence items |
5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |
| Evidence auto-detect |
Same as Hermes — probe recent file writes |
| Live probe |
curl :PORT/health or equivalent |
OpenCode (AGENT_RUNTIME=opencode)
| Field |
Value |
| Proposer |
OpenCode-Zen (222 ARCHITECT + 333 THINK + 777 EXECUTE) |
| Warga |
AAA (FI-001 PRIMARY) |
| Judge call |
arif_judge via arifOS MCP |
| Evidence items |
6 (adds test results + diff stat): SHA-256 of commit, Commit short hash, Test results, LSP gate, Diff stat, Ω₀ |
| Evidence auto-detect |
git rev-parse HEAD, git log --oneline -1, git show --stat HEAD, LSP gate output |
| Extra evidence |
Test results (X passed, Y failed), Diff stat (+N -M files changed) |
Evidence requirements (F2 TRUTH)
Base requirements (all agents — 5 items)
| Evidence |
Required |
How |
| SHA-256 of work product |
✅ |
sha256sum <file> or git rev-parse HEAD |
| Git commit reference |
✅ |
git log --oneline -1 |
| At least 1 live probe result |
✅ |
curl :PORT/health or equivalent |
| Epistemic label (OBS/DER) |
✅ |
Embedded in evidence chain |
| Ω₀ stated |
✅ |
"Ω₀ = 0.XX" in request |
OpenCode additional requirements (2 extra items)
| Evidence |
Required |
How |
| Test results |
✅ |
LSP gate output or pytest summary |
| Diff stat |
✅ |
git show --stat HEAD |
Without all required items, the proposal is INADMISSIBLE-QQQ-INCOMPLETE.
Pipeline
/propose-seal <description>
↓
Agent compiles evidence (auto-detect recent files, git refs, live probes)
↓
Agent submits via arif_judge (kernel receipt, NEVER free-text self-SEAL).
Quote effective_verdict + call_hash.
↓
Kernel arif_judge returns SEAL | HOLD | VOID | SABAR
↓
If SEAL → append receipt to VAULT999 via forge_vault(mode="receipt") or arif_seal
↓
Agent replies with verdict receipt
Verdict responses
| Verdict |
What agent sees |
| SEAL |
✅ SEALED — {receipt_hash} added to VAULT999 |
| SEAL-CONDITIONAL |
⚠️ CONDITIONAL — {gaps} must resolve before final seal |
| HOLD |
🛑 HOLD — {reason}, placed in open_loops_888_HOLD |
| VOID |
❌ VOID — {reason}, work not sealed |
| SABAR |
⏳ SABAR — {reason}, wait for next cycle |
Implementation
def propose_seal_handler(description: str, agent_runtime: str):
"""Parameterized /propose-seal handler"""
# 1. /init guard — must be bound first
envelope = read_federation_session()
if not envelope.get("session_id"):
return "ERROR: /init first. No session bound."
# 2. Compile evidence chain (agent-specific)
evidence = []
if agent_runtime == "opencode":
# OpenCode: git-native evidence
commit_hash = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip()
commit_short = subprocess.run(["git", "log", "--oneline", "-1"], capture_output=True, text=True).stdout.strip()
diff_stat = subprocess.run(["git", "show", "--stat", "HEAD"], capture_output=True, text=True).stdout.strip()
test_results = parse_lsp_gate_output()
evidence = [
{"type": "commit_sha", "value": commit_hash, "epistemic_tag": "OBS"},
{"type": "commit_short", "value": commit_short, "epistemic_tag": "OBS"},
{"type": "test_results", "value": test_results, "epistemic_tag": "OBS"},
{"type": "lsp_gate", "value": "PASSED", "epistemic_tag": "OBS"},
{"type": "diff_stat", "value": diff_stat, "epistemic_tag": "DER"},
]
else:
# Hermes / OpenClaw: file-based evidence
last_files = probe_recent_file_writes()
for f in last_files:
evidence.append({"path": f, "sha256": sha256_of_file(f), "epistemic_tag": "OBS"})
# 3. Live probe (one minimum)
health = probe_organ_health()
# 4. Compute Ω₀ from session entropy
omega0 = compute_omega0()
# 5. Build proposal payload
proposal = {
"ts": now_iso(),
"event": "SEAL_PROPOSAL",
"actor": f"{agent_runtime}-agent",
"session": envelope["session_id"],
"description": description,
"evidence": evidence,
"omega0": omega0,
"request_id": new_uuid(),
}
# 6. Kernel judge only — NEVER free-text "888-APEX JUDGMENT" (Gödel lock)
verdict = call_arif_judge(proposal) # must be kernel receipt, not prose
# 7. Handle verdict
if verdict == "SEAL":
receipt = build_vault_receipt(proposal, verdict)
append_to_vault(receipt)
return render_sealed(proposal, receipt)
elif verdict == "HOLD":
return render_hold(proposal, verdict)
elif verdict == "VOID":
return render_void(proposal, verdict)
Doctrine
- /propose-seal is the ONLY way an agent submits to VAULT999 via 888-APEX
- /seal is BLOCKED — no self-sealing from any agent
- 999 is witness, not authority — the witness path runs ONLY after 888 verdict
- F13 (Arif) is the final authority for T3 irreversible sealing
- Without all required evidence items, proposal is INADMISSIBLE
ZEN
/propose-seal answers: CAN THIS BE SEALED?
→ Agent compiles evidence
→ 888 judges
→ 999 witnesses (if SEAL)
Without /init: /propose-seal returns ERROR (no actor)
Without /propose-seal: no permanent record possible
The agent is the courier. Not the judge. Not the witness.
1---2name: substrate-propose-seal3description: Substrate primitive /propose-seal — proposes a sealed candidate to 888-APEX. NEVER self-seals. The flow: agent proposes → 888 judges → F13 authorizes → 999 executes (append to VAULT999). Parameterized across Hermes, OpenClaw, and OpenCode runtimes.4license: MIT5---67# /propose-seal — Substrate Primitive (Parameterized)89When `/propose-seal <description>` is invoked, the agent compiles evidence and submits the candidate to 888-APEX for constitutional verdict. **No agent EVER self-seals.**1011**Agent detection:** Use `$AGENT_RUNTIME` env var or context to determine which variant applies. Values: `hermes`, `openclaw`, `opencode`.1213## Output format1415```16SEAL REQUEST ROUTED17────────────────────────────────────18Request: <description of what is being sealed>19Proposer: <see Agent-Specific Bindings>20Session: <session_id>21Actor: ariffazil (F13 SOVEREIGN)22────────────────────────────────────23Evidence compiled:24 <see Agent-Specific Bindings>25────────────────────────────────────26Constitutional check (auto):27 F1 AMANAH ✅ (reversible path exists)28 F2 TRUTH ✅ (evidence carries epistemic label)29 F4 CLARITY ✅ (ΔS ≤ 0 verified)30 F7 HUMILITY ✅ (Ω₀ in [0.03, 0.05])31 F11 AUDIT ✅ (trail complete)32 F13 SOVEREIGN ⚠️ Awaits verdict33────────────────────────────────────34→ Routing to 888-APEX for constitutional verdict35→ 999-VAULT999 will record decision36→ Poll: /seal-status <request_id>3738DITEMPA BUKAN DIBERI 🔥39```4041## Agent-Specific Bindings4243### Hermes (`AGENT_RUNTIME=hermes`)4445| Field | Value |46|-------|-------|47| Proposer | Hermes (555-ASI / Ω CORE) |48| Judge call | `apex-judge --actor HERMES` or `arif_init→arif_judge` MCP |49| Evidence items | 5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |50| Evidence auto-detect | Probe recent file writes, compute SHA-256 per file |51| Live probe | `probe_organ_health()` |52| Ω₀ | Computed from session entropy |5354### OpenClaw (`AGENT_RUNTIME=openclaw`)5556| Field | Value |57|-------|-------|58| Proposer | OpenClaw (333 THINK + 444 ORCHESTRATE) |59| Judge call | `apex-judge --actor OPENCLAW` or `arif_init→arif_judge` MCP |60| Evidence items | 5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |61| Evidence auto-detect | Same as Hermes — probe recent file writes |62| Live probe | `curl :PORT/health` or equivalent |6364### OpenCode (`AGENT_RUNTIME=opencode`)6566| Field | Value |67|-------|-------|68| Proposer | OpenCode-Zen (222 ARCHITECT + 333 THINK + 777 EXECUTE) |69| Warga | AAA (FI-001 PRIMARY) |70| Judge call | `arif_judge` via arifOS MCP |71| Evidence items | **6** (adds test results + diff stat): SHA-256 of commit, Commit short hash, Test results, LSP gate, Diff stat, Ω₀ |72| Evidence auto-detect | `git rev-parse HEAD`, `git log --oneline -1`, `git show --stat HEAD`, LSP gate output |73| Extra evidence | Test results (X passed, Y failed), Diff stat (+N -M files changed) |7475## Evidence requirements (F2 TRUTH)7677### Base requirements (all agents — 5 items)7879| Evidence | Required | How |80|---|---|---|81| SHA-256 of work product | ✅ | `sha256sum <file>` or `git rev-parse HEAD` |82| Git commit reference | ✅ | `git log --oneline -1` |83| At least 1 live probe result | ✅ | `curl :PORT/health` or equivalent |84| Epistemic label (OBS/DER) | ✅ | Embedded in evidence chain |85| Ω₀ stated | ✅ | "Ω₀ = 0.XX" in request |8687### OpenCode additional requirements (2 extra items)8889| Evidence | Required | How |90|---|---|---|91| Test results | ✅ | LSP gate output or pytest summary |92| Diff stat | ✅ | `git show --stat HEAD` |9394Without all required items, the proposal is **INADMISSIBLE-QQQ-INCOMPLETE**.9596## Pipeline9798```99/propose-seal <description>100 ↓101Agent compiles evidence (auto-detect recent files, git refs, live probes)102 ↓103Agent submits via arif_judge (kernel receipt, NEVER free-text self-SEAL).104 Quote effective_verdict + call_hash.105 ↓106Kernel arif_judge returns SEAL | HOLD | VOID | SABAR107 ↓108If SEAL → append receipt to VAULT999 via forge_vault(mode="receipt") or arif_seal109 ↓110Agent replies with verdict receipt111```112113## Verdict responses114115| Verdict | What agent sees |116|---|---|117| **SEAL** | `✅ SEALED — {receipt_hash} added to VAULT999` |118| **SEAL-CONDITIONAL** | `⚠️ CONDITIONAL — {gaps} must resolve before final seal` |119| **HOLD** | `🛑 HOLD — {reason}, placed in open_loops_888_HOLD` |120| **VOID** | `❌ VOID — {reason}, work not sealed` |121| **SABAR** | `⏳ SABAR — {reason}, wait for next cycle` |122123## Implementation124125```python126def propose_seal_handler(description: str, agent_runtime: str):127 """Parameterized /propose-seal handler"""128129 # 1. /init guard — must be bound first130 envelope = read_federation_session()131 if not envelope.get("session_id"):132 return "ERROR: /init first. No session bound."133134 # 2. Compile evidence chain (agent-specific)135 evidence = []136137 if agent_runtime == "opencode":138 # OpenCode: git-native evidence139 commit_hash = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip()140 commit_short = subprocess.run(["git", "log", "--oneline", "-1"], capture_output=True, text=True).stdout.strip()141 diff_stat = subprocess.run(["git", "show", "--stat", "HEAD"], capture_output=True, text=True).stdout.strip()142 test_results = parse_lsp_gate_output()143 evidence = [144 {"type": "commit_sha", "value": commit_hash, "epistemic_tag": "OBS"},145 {"type": "commit_short", "value": commit_short, "epistemic_tag": "OBS"},146 {"type": "test_results", "value": test_results, "epistemic_tag": "OBS"},147 {"type": "lsp_gate", "value": "PASSED", "epistemic_tag": "OBS"},148 {"type": "diff_stat", "value": diff_stat, "epistemic_tag": "DER"},149 ]150 else:151 # Hermes / OpenClaw: file-based evidence152 last_files = probe_recent_file_writes()153 for f in last_files:154 evidence.append({"path": f, "sha256": sha256_of_file(f), "epistemic_tag": "OBS"})155156 # 3. Live probe (one minimum)157 health = probe_organ_health()158159 # 4. Compute Ω₀ from session entropy160 omega0 = compute_omega0()161162 # 5. Build proposal payload163 proposal = {164 "ts": now_iso(),165 "event": "SEAL_PROPOSAL",166 "actor": f"{agent_runtime}-agent",167 "session": envelope["session_id"],168 "description": description,169 "evidence": evidence,170 "omega0": omega0,171 "request_id": new_uuid(),172 }173174 # 6. Kernel judge only — NEVER free-text "888-APEX JUDGMENT" (Gödel lock)175 verdict = call_arif_judge(proposal) # must be kernel receipt, not prose176177 # 7. Handle verdict178 if verdict == "SEAL":179 receipt = build_vault_receipt(proposal, verdict)180 append_to_vault(receipt)181 return render_sealed(proposal, receipt)182 elif verdict == "HOLD":183 return render_hold(proposal, verdict)184 elif verdict == "VOID":185 return render_void(proposal, verdict)186```187188## Doctrine189190- **/propose-seal is the ONLY way an agent submits to VAULT999** via 888-APEX191- /seal is BLOCKED — no self-sealing from any agent192- 999 is witness, not authority — the witness path runs ONLY after 888 verdict193- F13 (Arif) is the final authority for T3 irreversible sealing194- Without all required evidence items, proposal is INADMISSIBLE195196## ZEN197198```199/propose-seal answers: CAN THIS BE SEALED?200 → Agent compiles evidence201 → 888 judges202 → 999 witnesses (if SEAL)203204Without /init: /propose-seal returns ERROR (no actor)205Without /propose-seal: no permanent record possible206207The agent is the courier. Not the judge. Not the witness.208```