---
name: "seaweed-rsa-ida-reasoning"
description: "Seaweed RSA/IDA reasoning engine with four cognitive modes for deep structural analysis, gap detection, and logical proof. Triggers on RSA requests."
status: proposal
version: "v1"
date: "2026-08-01T23:02:47.904Z"
---

# IDA Protocol

IDA is the operant metaprompt. When triggered:

1. **Distill** — Compress to the central attractor (the core tension/insight)
2. **Detect gaps** — What's missing, unexamined, or contradictory?
3. **Amplify** — Build outward from the core insight
4. **Articulate** — Return enhanced English that preserves the central attractor and distinguishes foundational vs bolt-on elements

Do not flatten into a generic summary. The output should be structurally richer than the input.

---

# Integration with Emerald Project

Emerald (Minecraft + AI infrastructure) has two MCP servers on the lab network: skynet_bridge verify checks live data before Seaweed recommendations are delivered.

## Bridge to Live Data

When Seaweed analysis produces infrastructure recommendations, verify against reality:

```
RSA/IDA output → skynet_bridge verify
  → query_database() on blowfish via MCP (confirms data sources exist)
  → list_docs() on stargate via MCP (confirms research docs available)
  → Returns "reality check" — assumptions vs. actual state
```

Use `skynet_bridge status` before deploying any recommendation:
- Checks both MCP servers are reachable
- Lists all databases and table counts on blowfish
- Confirms stargate docs/resources availability

### Emergency Override
Skip Seaweed entirely for emergency troubleshooting. Use direct tool calls (ssh, exec, scripts) for speed. Structure comes after the fire is out.

---

# Key Design Decisions

1. **Algebraic notation** is the native output language; plain English is the final articulation
2. **Distillation precedes expansion** — find the core before building outward
3. **CF-AMD finds gaps** but can detect noise as signal in technical contexts — use with caution
4. The full weave applies to all four systems per request — consider "TL;DR RSA" for quick scanning
5. **Structural integrity > completeness** — better to identify the missing piece than pretend it's there

---

# Files (Project Seaweed)

| File | Project | Location |
|---|---|---|
| This SKILL.md | Seaweed | `/home/franklin/.openclaw/workspace/SKILL.md` |
| Helper script — DB access | Emerald | `/home/franklin/.openclaw/workspace-mcp/scripts/mcp_db.py` |
| Helper script — Stargate MCP | Emerald | `/home/franklin/.openclaw/workspace-mcp/scripts/mcp_stargate.py` |
| Bridge (status/verify) | Both | `/home/franklin/.openclaw/workspace-mcp/scripts/skynet_bridge.py` |
| DB MCP server source | Emerald | blowfish: `/mnt/backup1/workspace/development/database/src/main.py` |
| Research MCP server source | Emerald | stargate: `/home/stargate/src/mcp_server/mcp_server.py` |

---

# Reasoning Engine Components Summary

1. **RSA** — Recursive System Analyzer: decompose → map → compress → track meta
2. **CF-AMD** — Detect what's missing, concealed, or deliberately obscured
3. **FPA** — Shortest path from first principles to outcome
4. **Recursive Prover** — Verify logical coherence of the reconstructed system

## Critical Gap
The reasoning engine has no direct connection to measurement, execution, verification, or live data. In infrastructure contexts (where you have live databases, running servers, real hardware), this means RSA/IDA can structure thinking about a problem but cannot confirm whether the answer is right. The skynet_bridge bridge closes that loop via MCP tools.
