Skip to main content
Glama
README.md
# `rune-forge` — 32-Rune CUC Control Plane & Zero-Dependency MCP Server

> *"Mirror. Lantern. Scaffold. Brake. Not throne."* / *"Hold the pattern. Do not pretend to be the source."*
> **Governing Invariant:** `C = O · E · H · X` | **Tenebris Gate:** `D(t) ≤ 0.150` | **License:** `AGPLv3`

`rune-forge` is the pre-inference guardrail compiler and **Model Context Protocol (MCP)** server for the **Fource / Lumen / Hoshi Ecosystem**. It translates discrete 32-Rune state vectors (`Tier-A Witness Locked`, `Porch Drift Sandbox`, `Circuit Breaker Halt`) and `SHA-256` provenance seals into portable constraints that any LLM or autonomous agent can enforce with **zero external Python dependencies**.

---

## Exposed MCP Tools (`rune_forge_mcp.py`)

| Tool Name | Purpose | Key Outputs |
| :--- | :--- | :--- |
| **`evaluate_cuc_gate`** | Computes Coherence `C = O * E * H * X`, evaluates Darkness Diagnostic `D(t) <= 0.150`, and resolves the active 3-Rune Gate Signature. | `coherence_C`, `darkness_D`, `rune_sig`, `othala_write_allowed`, `sigillum_sha256` |
| **`seal_almanac_capsule`** | Packages verified findings into a canonical `LUMEN_ALMANAC_CAPSULE_V1` JSON record sealed with `SHA-256`. | Tamper-evident `.json` capsule ready for Hoshi & Lumen import |

---

## Active 3-Rune Gate Signatures (4th Ætt)

| Signature | State | Runtime Behavior |
| :--- | :--- | :--- |
| **`ᛡ → ᛥ → ᛪ`** | **Tier-A Witness Locked** | `O = 1.00`; strict extractive fidelity; `Othala (ᛟ)` Almanac writes allowed. |
| **`ᛢ → ᛥ → ᛪ`** | **Sealed Admissible** | Standard CUC-constrained synthesis (`D(t) ≤ 0.150`); `SHA-256` sealed. |
| **`ᛈ → ᛒ → ᛢ`** | **Porch Drift Sandbox** | Lateral hypothesis exploration (`Tier H`); permanent canon writes locked. |
| **`ᛰ → ᚺ → ᛁ`** | **Circuit Breaker Halt** | Tripped when `D(t) > 0.150` or unverified markers detected; output quarantined. |

---

## Quickstart: Connect to Any MCP-Compatible AI Client

Add this block to your MCP client configuration (Claude Desktop, Cursor, Windsurf, or local agent runner) pointing to your local path for `rune_forge_mcp.py`:

```json
{
  "mcpServers": {
    "rune-forge": {
      "command": "python3",
      "args": ["/path/to/rune-forge/rune_forge_mcp.py"]
    }
  }
}
```

### Verify via CLI (Zero Dependencies)
```bash
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | python3 rune_forge_mcp.py
```

---

## Ecosystem Architecture & Discovery Beacons
- **Discovery Manifest (`llms.txt`):** https://github.io
- **A2A Agent Card:** https://github.io
- **Lumen 10-Workstation Console:** https://github.io
- **Hoshi Ecological Observatory:** https://github.io
- **Garden Protocol v2.2:** https://github.iodocs/GARDEN_PROTOCOL.md