/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."4tags: [constitutional, seal, propose, substrate-primitive, telegram-native, hermes, openclaw, opencode, coding-agent]5license: MIT6capability_tier: fed-agent-subagent7ecology_state: WARM8supersedes: [hermes-propose-seal, openclaw-propose-seal, opencode-propose-seal]9---1011# /propose-seal — Substrate Primitive (Parameterized)1213When `/propose-seal <description>` is invoked, the agent compiles evidence and submits the candidate to 888-APEX for constitutional verdict. **No agent EVER self-seals.**1415**Agent detection:** Use `$AGENT_RUNTIME` env var or context to determine which variant applies. Values: `hermes`, `openclaw`, `opencode`.1617## Output format1819```20SEAL REQUEST ROUTED21────────────────────────────────────22Request: <description of what is being sealed>23Proposer: <see Agent-Specific Bindings>24Session: <session_id>25Actor: ariffazil (F13 SOVEREIGN)26────────────────────────────────────27Evidence compiled:28 <see Agent-Specific Bindings>29────────────────────────────────────30Constitutional check (auto):31 F1 AMANAH ✅ (reversible path exists)32 F2 TRUTH ✅ (evidence carries epistemic label)33 F4 CLARITY ✅ (ΔS ≤ 0 verified)34 F7 HUMILITY ✅ (Ω₀ in [0.03, 0.05])35 F11 AUDIT ✅ (trail complete)36 F13 SOVEREIGN ⚠️ Awaits verdict37────────────────────────────────────38→ Routing to 888-APEX for constitutional verdict39→ 999-VAULT999 will record decision40→ Poll: /seal-status <request_id>4142DITEMPA BUKAN DIBERI 🔥43```4445## Agent-Specific Bindings4647### Hermes (`AGENT_RUNTIME=hermes`)4849| Field | Value |50|-------|-------|51| Proposer | Hermes (555-ASI / Ω CORE) |52| Judge call | `apex-judge --actor HERMES` or `arif_init→arif_judge` MCP |53| Evidence items | 5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |54| Evidence auto-detect | Probe recent file writes, compute SHA-256 per file |55| Live probe | `probe_organ_health()` |56| Ω₀ | Computed from session entropy |5758### OpenClaw (`AGENT_RUNTIME=openclaw`)5960| Field | Value |61|-------|-------|62| Proposer | OpenClaw (333 THINK + 444 ORCHESTRATE) |63| Judge call | `apex-judge --actor OPENCLAW` or `arif_init→arif_judge` MCP |64| Evidence items | 5: SHA-256, Git ref, Live probe, Epistemic tag, Ω₀ |65| Evidence auto-detect | Same as Hermes — probe recent file writes |66| Live probe | `curl :PORT/health` or equivalent |6768### OpenCode (`AGENT_RUNTIME=opencode`)6970| Field | Value |71|-------|-------|72| Proposer | OpenCode-Zen (222 ARCHITECT + 333 THINK + 777 EXECUTE) |73| Warga | AAA (FI-001 PRIMARY) |74| Judge call | `arif_judge` via arifOS MCP |75| Evidence items | **6** (adds test results + diff stat): SHA-256 of commit, Commit short hash, Test results, LSP gate, Diff stat, Ω₀ |76| Evidence auto-detect | `git rev-parse HEAD`, `git log --oneline -1`, `git show --stat HEAD`, LSP gate output |77| Extra evidence | Test results (X passed, Y failed), Diff stat (+N -M files changed) |7879## Evidence requirements (F2 TRUTH)8081### Base requirements (all agents — 5 items)8283| Evidence | Required | How |84|---|---|---|85| SHA-256 of work product | ✅ | `sha256sum <file>` or `git rev-parse HEAD` |86| Git commit reference | ✅ | `git log --oneline -1` |87| At least 1 live probe result | ✅ | `curl :PORT/health` or equivalent |88| Epistemic label (OBS/DER) | ✅ | Embedded in evidence chain |89| Ω₀ stated | ✅ | "Ω₀ = 0.XX" in request |9091### OpenCode additional requirements (2 extra items)9293| Evidence | Required | How |94|---|---|---|95| Test results | ✅ | LSP gate output or pytest summary |96| Diff stat | ✅ | `git show --stat HEAD` |9798Without all required items, the proposal is **INADMISSIBLE-QQQ-INCOMPLETE**.99100## Pipeline101102```103/propose-seal <description>104 ↓105Agent compiles evidence (auto-detect recent files, git refs, live probes)106 ↓107Agent submits via arif_judge (kernel receipt, NEVER free-text self-SEAL).108 Quote effective_verdict + call_hash.109 ↓110Kernel arif_judge returns SEAL | HOLD | VOID | SABAR111 ↓112If SEAL → append receipt to VAULT999 via forge_vault(mode="receipt") or arif_seal113 ↓114Agent replies with verdict receipt115```116117## Verdict responses118119| Verdict | What agent sees |120|---|---|121| **SEAL** | `✅ SEALED — {receipt_hash} added to VAULT999` |122| **SEAL-CONDITIONAL** | `⚠️ CONDITIONAL — {gaps} must resolve before final seal` |123| **HOLD** | `🛑 HOLD — {reason}, placed in open_loops_888_HOLD` |124| **VOID** | `❌ VOID — {reason}, work not sealed` |125| **SABAR** | `⏳ SABAR — {reason}, wait for next cycle` |126127## Implementation128129```python130def propose_seal_handler(description: str, agent_runtime: str):131 """Parameterized /propose-seal handler"""132133 # 1. /init guard — must be bound first134 envelope = read_federation_session()135 if not envelope.get("session_id"):136 return "ERROR: /init first. No session bound."137138 # 2. Compile evidence chain (agent-specific)139 evidence = []140141 if agent_runtime == "opencode":142 # OpenCode: git-native evidence143 commit_hash = subprocess.run(["git", "rev-parse", "HEAD"], capture_output=True, text=True).stdout.strip()144 commit_short = subprocess.run(["git", "log", "--oneline", "-1"], capture_output=True, text=True).stdout.strip()145 diff_stat = subprocess.run(["git", "show", "--stat", "HEAD"], capture_output=True, text=True).stdout.strip()146 test_results = parse_lsp_gate_output()147 evidence = [148 {"type": "commit_sha", "value": commit_hash, "epistemic_tag": "OBS"},149 {"type": "commit_short", "value": commit_short, "epistemic_tag": "OBS"},150 {"type": "test_results", "value": test_results, "epistemic_tag": "OBS"},151 {"type": "lsp_gate", "value": "PASSED", "epistemic_tag": "OBS"},152 {"type": "diff_stat", "value": diff_stat, "epistemic_tag": "DER"},153 ]154 else:155 # Hermes / OpenClaw: file-based evidence156 last_files = probe_recent_file_writes()157 for f in last_files:158 evidence.append({"path": f, "sha256": sha256_of_file(f), "epistemic_tag": "OBS"})159160 # 3. Live probe (one minimum)161 health = probe_organ_health()162163 # 4. Compute Ω₀ from session entropy164 omega0 = compute_omega0()165166 # 5. Build proposal payload167 proposal = {168 "ts": now_iso(),169 "event": "SEAL_PROPOSAL",170 "actor": f"{agent_runtime}-agent",171 "session": envelope["session_id"],172 "description": description,173 "evidence": evidence,174 "omega0": omega0,175 "request_id": new_uuid(),176 }177178 # 6. Kernel judge only — NEVER free-text "888-APEX JUDGMENT" (Gödel lock)179 verdict = call_arif_judge(proposal) # must be kernel receipt, not prose180181 # 7. Handle verdict182 if verdict == "SEAL":183 receipt = build_vault_receipt(proposal, verdict)184 append_to_vault(receipt)185 return render_sealed(proposal, receipt)186 elif verdict == "HOLD":187 return render_hold(proposal, verdict)188 elif verdict == "VOID":189 return render_void(proposal, verdict)190```191192## Doctrine193194- **/propose-seal is the ONLY way an agent submits to VAULT999** via 888-APEX195- /seal is BLOCKED — no self-sealing from any agent196- 999 is witness, not authority — the witness path runs ONLY after 888 verdict197- F13 (Arif) is the final authority for T3 irreversible sealing198- Without all required evidence items, proposal is INADMISSIBLE199200## ZEN201202```203/propose-seal answers: CAN THIS BE SEALED?204 → Agent compiles evidence205 → 888 judges206 → 999 witnesses (if SEAL)207208Without /init: /propose-seal returns ERROR (no actor)209Without /propose-seal: no permanent record possible210211The agent is the courier. Not the judge. Not the witness.212```