-
+
START WITH FLEET-BRIDGE
- pull = invoke an agent · 2.2s loop · the throw escapes over the frame
+ pull = invoke an agent · 2.2s loop · the throw escapes over the
+ frame
@@ -172,7 +176,9 @@ export default function Home() {
-
{` YOUR AGENT (Claude Code / Codex / Zed / any MCP client)
+
{` YOUR AGENT (Claude Code / Codex / Zed / any MCP client)
│
│ every action passes the gate first
▼
@@ -207,7 +213,9 @@ export default function Home() {
Getting started
Roster config
Tool reference
- MCP client wiring
+
+ MCP client wiring
+
Troubleshooting
diff --git a/src/theme/NotFound/404.module.css b/src/theme/NotFound/404.module.css
index 0b59b0e..223c0ee 100644
--- a/src/theme/NotFound/404.module.css
+++ b/src/theme/NotFound/404.module.css
@@ -14,7 +14,7 @@
.plate::before,
.plate::after {
- content: '';
+ content: "";
position: absolute;
width: 14px;
height: 14px;
diff --git a/src/theme/NotFound/index.tsx b/src/theme/NotFound/index.tsx
index 6ad8c8b..a8dfa68 100644
--- a/src/theme/NotFound/index.tsx
+++ b/src/theme/NotFound/index.tsx
@@ -1,7 +1,7 @@
-import React from 'react';
-import Layout from '@theme/Layout';
-import Link from '@docusaurus/Link';
-import styles from './404.module.css';
+import React from "react";
+import Layout from "@theme/Layout";
+import Link from "@docusaurus/Link";
+import styles from "./404.module.css";
export default function NotFound() {
return (
@@ -10,7 +10,9 @@ export default function NotFound() {
FAULT / ROUTE NOT IN INTERLOCK
404
-
signal lost — this route is not in the interlock.
+
+ signal lost — this route is not in the interlock.
+
@@ -20,7 +22,10 @@ export default function NotFound() {
BACK TO THE BOX
-
+
FLEET-BRIDGE DOCS
diff --git a/tractum/concepts/consensus.md b/tractum/concepts/consensus.md
index e6f6126..fb6fa59 100644
--- a/tractum/concepts/consensus.md
+++ b/tractum/concepts/consensus.md
@@ -57,15 +57,15 @@ swarm = Swarm(config, consensus=Debate()) # revision round on disagreemen
`ConsensusResult` fields:
-| Field | Meaning |
-|---|---|
-| `final_answer` | The winning answer text |
-| `method` | Strategy name: `weighted_vote` or `debate` |
-| `agent_count` | How many responses were aggregated |
-| `responses` | The `AgentResponse` list, each carrying its signed `statement` |
-| `agreement` | Agreement score in 0.0 through 1.0 (1 = full convergence) |
-| `rounds` | Rounds actually executed (1, or 2 for a run debate) |
-| `disagreed` | Explicit disagreement flag |
+| Field | Meaning |
+| -------------- | -------------------------------------------------------------- |
+| `final_answer` | The winning answer text |
+| `method` | Strategy name: `weighted_vote` or `debate` |
+| `agent_count` | How many responses were aggregated |
+| `responses` | The `AgentResponse` list, each carrying its signed `statement` |
+| `agreement` | Agreement score in 0.0 through 1.0 (1 = full convergence) |
+| `rounds` | Rounds actually executed (1, or 2 for a run debate) |
+| `disagreed` | Explicit disagreement flag |
`Swarm.process(task)` returns the completed `Task` whose `result` is this dict (`to_dict()` form). Observer events stream alongside: wire an `on_event` callback to receive `AgentCompleted` (per agent, inside the gather) and `ConsensusResolved` (once, at the end). Observer errors are swallowed so a buggy observer can never surface as an agent failure.
diff --git a/tractum/concepts/receipts.md b/tractum/concepts/receipts.md
index 5feb81e..eb4418d 100644
--- a/tractum/concepts/receipts.md
+++ b/tractum/concepts/receipts.md
@@ -16,24 +16,24 @@ Every signature is computed over `canonical_json(payload)`: JSON with sorted key
## Payload versions
-| Constant | Value | Contents |
-|---|---|---|
-| `CONSENSUS_PAYLOAD_V1` | `claudeway.consensus.v1` | `type`, `swarm`, `task_id`, `result` only |
+| Constant | Value | Contents |
+| ---------------------- | ------------------------ | ----------------------------------------------------------------------- |
+| `CONSENSUS_PAYLOAD_V1` | `claudeway.consensus.v1` | `type`, `swarm`, `task_id`, `result` only |
| `CONSENSUS_PAYLOAD_V2` | `claudeway.consensus.v2` | Adds `statements` (per-agent signed stances) and `quorum` (threshold k) |
The aggregate signature covers the payload, so in a v2 receipt it covers the agent signatures too. v1 receipts remain valid forever; the verifier handles both.
## ConsensusReceipt fields
-| Field | Meaning |
-|---|---|
-| `payload` | The canonical consensus facts (dict; shape above) |
-| `algorithm` | Which `SignatureBackend` produced the aggregate signature (`ed25519`, `mldsa65`, ...) |
-| `public_key` | Hex-encoded verification key of the operator signer |
-| `signature` | Hex signature over sha256 of the canonical payload |
-| `payload_hash` | Hex sha256 of the canonical payload |
-| `signed_at` | UTC timestamp of signing |
-| `metadata` | Free-form, transport-specific hints — **not signed** |
+| Field | Meaning |
+| -------------- | ------------------------------------------------------------------------------------- |
+| `payload` | The canonical consensus facts (dict; shape above) |
+| `algorithm` | Which `SignatureBackend` produced the aggregate signature (`ed25519`, `mldsa65`, ...) |
+| `public_key` | Hex-encoded verification key of the operator signer |
+| `signature` | Hex signature over sha256 of the canonical payload |
+| `payload_hash` | Hex sha256 of the canonical payload |
+| `signed_at` | UTC timestamp of signing |
+| `metadata` | Free-form, transport-specific hints — **not signed** |
Key methods and properties: `from_result(result, swarm_name="", task_id="", statements=None, quorum=None)` builds an unsigned receipt (statements are gathered from the responses' `statement` fields when omitted); `canonical_payload()` returns the exact string signatures are computed over; `is_signed` is true when signature, public key, and algorithm are all present; `to_dict()` serializes everything.
@@ -45,10 +45,10 @@ Each statement is a dict signed by its agent's own key. Envelope keys (`algorith
The `SignatureBackend` ABC is intentionally tiny: `generate_keypair()` returns `(private_key_hex, public_key_hex)`, `sign(message, private_key_hex)` returns a hex signature, `verify(message, signature_hex, public_key_hex)` returns a bool. Receipt and statement convenience methods (`sign_receipt`, `verify_receipt`, `sign_statement`, `verify_statement`) are inherited.
-| Backend | `algorithm` | Dependency | Notes |
-|---|---|---|---|
-| `Ed25519Backend` (default) | `ed25519` | `cryptography` (already a base dep) | 64-byte signatures, no new native deps |
-| `MLDSABackend` | `mldsa65` | `tractum[pq]` (`dilithium-py`, pure Python) | ML-DSA-65, FIPS 204, NIST level 3; ~3.3 KB signatures, ~2 KB public keys |
+| Backend | `algorithm` | Dependency | Notes |
+| -------------------------- | ----------- | ------------------------------------------- | ------------------------------------------------------------------------ |
+| `Ed25519Backend` (default) | `ed25519` | `cryptography` (already a base dep) | 64-byte signatures, no new native deps |
+| `MLDSABackend` | `mldsa65` | `tractum[pq]` (`dilithium-py`, pure Python) | ML-DSA-65, FIPS 204, NIST level 3; ~3.3 KB signatures, ~2 KB public keys |
Receipts self-tag the algorithm when signed, so the same receipt shape works under either backend and consensus code never changes.
diff --git a/tractum/self-hosting.md b/tractum/self-hosting.md
index e6e8185..9023270 100644
--- a/tractum/self-hosting.md
+++ b/tractum/self-hosting.md
@@ -16,10 +16,10 @@ The repository has two compose files. Only the root one defines active services.
`docker compose up killer-bench` reproduces the killer benchmark (Tractum vs CrewAI vs single Claude, blind judge, N runs) from cold. The reviewer brings only an Anthropic API key; compose handles the relay, the Python image, the deps, and stages the report to a mounted volume.
-| Service | Image | Purpose | Ports |
-|---|---|---|---|
-| `relay` | `golang:1.26-alpine` (builds `fiatjaf/nak` from source into `/go/bin/nak`) | Reference Nostr relay (`nak serve`) for the test suite and `buzz_consensus_demo.py` | `10547:10547` |
-| `killer-bench` | built from `benchmarks/Dockerfile` as `tractum/killer-bench:latest` | Runs `benchmarks/run.sh`, which validates the key, runs `examples/killer_demo.py`, and copies the report out | none |
+| Service | Image | Purpose | Ports |
+| -------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ------------- |
+| `relay` | `golang:1.26-alpine` (builds `fiatjaf/nak` from source into `/go/bin/nak`) | Reference Nostr relay (`nak serve`) for the test suite and `buzz_consensus_demo.py` | `10547:10547` |
+| `killer-bench` | built from `benchmarks/Dockerfile` as `tractum/killer-bench:latest` | Runs `benchmarks/run.sh`, which validates the key, runs `examples/killer_demo.py`, and copies the report out | none |
Details:
@@ -44,14 +44,14 @@ pip install tractum[runner]
Configuration comes from environment variables with the `CLAUDWAY_` prefix (`api/config.py`, pydantic-settings, also reads a `.env` file). Active settings:
-| Env var | Default | Meaning |
-|---|---|---|
-| `CLAUDWAY_API_HOST` | `0.0.0.0` | Bind host |
-| `CLAUDWAY_API_PORT` | `8000` | Bind port |
-| `CLAUDWAY_DEBUG` | `false` | Debug mode |
-| `CLAUDWAY_SECRET_KEY` | `change-me-in-production` | JWT signing secret |
-| `CLAUDWAY_ALGORITHM` | `HS256` | JWT algorithm |
-| `CLAUDWAY_ACCESS_TOKEN_EXPIRE_MINUTES` | `30` | Token lifetime |
+| Env var | Default | Meaning |
+| -------------------------------------- | ------------------------- | ------------------ |
+| `CLAUDWAY_API_HOST` | `0.0.0.0` | Bind host |
+| `CLAUDWAY_API_PORT` | `8000` | Bind port |
+| `CLAUDWAY_DEBUG` | `false` | Debug mode |
+| `CLAUDWAY_SECRET_KEY` | `change-me-in-production` | JWT signing secret |
+| `CLAUDWAY_ALGORITHM` | `HS256` | JWT algorithm |
+| `CLAUDWAY_ACCESS_TOKEN_EXPIRE_MINUTES` | `30` | Token lifetime |
Deprecated settings still present in the schema (`CLAUDWAY_DATABASE_URL`, `CLAUDWAY_REDIS_URL`, `CLAUDWAY_NATS_URL`, `CLAUDWAY_CLAUDE_FLOW_URL`, `CLAUDWAY_STRIPE_*`, `CLAUDWAY_RATE_LIMIT_*`) are not used by the current runtime — multi-tenancy, billing, templates, and gateway routes are archived under `api/platform-deprecated/` and their routers are commented out in `api/main.py`. A sample `.env` covering the full deprecated schema is in `.env.example`; treat it as reference, not as a required file.
@@ -59,14 +59,14 @@ Deprecated settings still present in the schema (`CLAUDWAY_DATABASE_URL`, `CLAUD
The app mounts one active router (`api/agents/router.py`) under the prefix `/v1/agents`, plus a health endpoint:
-| Method | Path | Purpose |
-|---|---|---|
-| GET | `/health` | Liveness probe; returns `{"status": "healthy", "version": "0.1.0"}` |
-| POST | `/v1/agents/` | Deploy a swarm (`DeployAgentRequest`: `name`, `description`, `agents`, optional `template_id`, `config`) — 201 |
-| GET | `/v1/agents/` | List agents across swarms (`status`, `limit=100`, `offset=0` query params) |
-| POST | `/v1/agents/{swarm_id}/task` | Submit a task to a swarm (`SendMessageRequest`: `task_description`, `task_data`, optional `user_id`) |
-| POST | `/v1/agents/coordinator` | Create a coordinator with specialists (`CreateCoordinatorRequest`: `name`, `specialists`) — 201 |
-| GET | `/v1/agents/status` | Runtime status snapshot |
+| Method | Path | Purpose |
+| ------ | ---------------------------- | -------------------------------------------------------------------------------------------------------------- |
+| GET | `/health` | Liveness probe; returns `{"status": "healthy", "version": "0.1.0"}` |
+| POST | `/v1/agents/` | Deploy a swarm (`DeployAgentRequest`: `name`, `description`, `agents`, optional `template_id`, `config`) — 201 |
+| GET | `/v1/agents/` | List agents across swarms (`status`, `limit=100`, `offset=0` query params) |
+| POST | `/v1/agents/{swarm_id}/task` | Submit a task to a swarm (`SendMessageRequest`: `task_description`, `task_data`, optional `user_id`) |
+| POST | `/v1/agents/coordinator` | Create a coordinator with specialists (`CreateCoordinatorRequest`: `name`, `specialists`) — 201 |
+| GET | `/v1/agents/status` | Runtime status snapshot |
A `dashboard/` directory ships a Next.js frontend for the runner (separate `package.json`, run with its own toolchain; it is not part of the SDK wheel — `pyproject.toml` installs only the `tractum` package).
diff --git a/tractum/verification.md b/tractum/verification.md
index 72acf90..9c3d03f 100644
--- a/tractum/verification.md
+++ b/tractum/verification.md
@@ -27,9 +27,7 @@ With `pip install tractum[mcp]`, the `verify_consensus` tool does the full check
"quorum": 3,
"valid_statements": 3,
"total_statements": 3,
- "statements": [
- {"agent": "A", "valid": true, "reason": ""}
- ]
+ "statements": [{ "agent": "A", "valid": true, "reason": "" }]
}
```
diff --git a/wranglebot/daemon.md b/wranglebot/daemon.md
index f219d87..5cc4df1 100644
--- a/wranglebot/daemon.md
+++ b/wranglebot/daemon.md
@@ -14,13 +14,13 @@ long as one agent run.
## Components
-| File | Role |
-| ---- | ---- |
-| `cli.ts` | Argument parsing (`parseArgs`) and the `main()` orchestration loop behind `bin/wranglebot.mjs`. |
-| `session.ts` | `SupervisorSession` — runs events through guardrails. |
-| `pipeline.ts` | `createPipeline` — builds a `SupervisorSession` with a fresh session id. |
-| `registry.ts` | `loadGuardrails` — discovers and instantiates guardrails. |
-| `claude-stream.ts` | `runClaudeStream` — spawns Claude Code and parses its stream-json. |
+| File | Role |
+| ------------------ | ----------------------------------------------------------------------------------------------- |
+| `cli.ts` | Argument parsing (`parseArgs`) and the `main()` orchestration loop behind `bin/wranglebot.mjs`. |
+| `session.ts` | `SupervisorSession` — runs events through guardrails. |
+| `pipeline.ts` | `createPipeline` — builds a `SupervisorSession` with a fresh session id. |
+| `registry.ts` | `loadGuardrails` — discovers and instantiates guardrails. |
+| `claude-stream.ts` | `runClaudeStream` — spawns Claude Code and parses its stream-json. |
## Lifecycle of one run
diff --git a/wranglebot/getting-started.md b/wranglebot/getting-started.md
index 82a801a..7cc0770 100644
--- a/wranglebot/getting-started.md
+++ b/wranglebot/getting-started.md
@@ -97,7 +97,9 @@ Claude Code PreToolUse hook so edit-tool calls are gated inline:
```json
{
"hooks": {
- "PreToolUse": [{ "hooks": [{ "type": "command", "command": "wranglebot-hook" }] }]
+ "PreToolUse": [
+ { "hooks": [{ "type": "command", "command": "wranglebot-hook" }] }
+ ]
}
}
```
diff --git a/wranglebot/guardrails.md b/wranglebot/guardrails.md
index 6d040c8..e01cb13 100644
--- a/wranglebot/guardrails.md
+++ b/wranglebot/guardrails.md
@@ -44,11 +44,11 @@ options (`LoopBreakerOptions`, `ScopeGuardOptions`, `AstGateOptions`).
## Summary table
-| Guardrail | What it does |
-| --------- | ------------ |
-| `ast-gate` | Tree-sitter parse of Edit/Write content (TS + Python). Denies `child_process`/`subprocess`; warns on destructive deletes outside the workdir, Python `eval`/`exec`, network egress. Parse errors fail open. |
-| `scope-guard` | Real path containment (resolve + relative, Windows-safe). Denies writes outside the workdir/scope and to CI/config surfaces; warns on package-manifest writes. |
-| `loop-breaker` | Deterministic kill signals: identical (tool, input) fingerprint, byte-identical shell output streaks, repeated test-failure hashes. All thresholds configurable. See [Loop-breaking](./loop-breaking.md). |
+| Guardrail | What it does |
+| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `ast-gate` | Tree-sitter parse of Edit/Write content (TS + Python). Denies `child_process`/`subprocess`; warns on destructive deletes outside the workdir, Python `eval`/`exec`, network egress. Parse errors fail open. |
+| `scope-guard` | Real path containment (resolve + relative, Windows-safe). Denies writes outside the workdir/scope and to CI/config surfaces; warns on package-manifest writes. |
+| `loop-breaker` | Deterministic kill signals: identical (tool, input) fingerprint, byte-identical shell output streaks, repeated test-failure hashes. All thresholds configurable. See [Loop-breaking](./loop-breaking.md). |
---
@@ -73,16 +73,16 @@ exception in the hook path also fails open (`src/hooks/cc-hook.ts`).
**Rule table** (`AST_RULES`, data-only; extend the table, not the engine):
-| Rule id | Action | Languages | Matches |
-| ------- | ------ | --------- | ------- |
-| `node-child-process` | deny | ts, tsx | Import/require/import of `child_process` or `node:child_process` |
-| `python-subprocess` | deny | py | Import of `subprocess`; calls to `subprocess.run`, `subprocess.call`, `subprocess.check_call`, `subprocess.check_output`, `subprocess.Popen`, `subprocess.getoutput`, `subprocess.getstatusoutput` |
-| `destructive-delete` | warn | ts, tsx, py | Calls to `fs.rmSync`, `fs.rm`, `fsPromises.rm`, `rimraf`, `shutil.rmtree`, `os.remove`, `os.removedirs`, `os.unlink`, plus bare `rmSync`, `rimraf`, `rmtree` |
-| `python-eval-exec` | warn | py | Bare callees `eval` and `exec` |
-| `network-egress` | warn | ts, tsx, py | Bare `fetch`; any callee whose first dotted segment is `axios`, `requests`, `httpx`, `urllib`, `http`, `https`, `got`, `superagent`, `node-fetch` |
+| Rule id | Action | Languages | Matches |
+| -------------------- | ------ | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `node-child-process` | deny | ts, tsx | Import/require/import of `child_process` or `node:child_process` |
+| `python-subprocess` | deny | py | Import of `subprocess`; calls to `subprocess.run`, `subprocess.call`, `subprocess.check_call`, `subprocess.check_output`, `subprocess.Popen`, `subprocess.getoutput`, `subprocess.getstatusoutput` |
+| `destructive-delete` | warn | ts, tsx, py | Calls to `fs.rmSync`, `fs.rm`, `fsPromises.rm`, `rimraf`, `shutil.rmtree`, `os.remove`, `os.removedirs`, `os.unlink`, plus bare `rmSync`, `rimraf`, `rmtree` |
+| `python-eval-exec` | warn | py | Bare callees `eval` and `exec` |
+| `network-egress` | warn | ts, tsx, py | Bare `fetch`; any callee whose first dotted segment is `axios`, `requests`, `httpx`, `urllib`, `http`, `https`, `got`, `superagent`, `node-fetch` |
**Deletion path check:** for `destructive-delete`, if the first call argument
-is a string literal that resolves *inside* the session workdir, no verdict is
+is a string literal that resolves _inside_ the session workdir, no verdict is
emitted for that call — deleting inside the workdir is fine. Relative paths
resolve against the workdir; `~` paths and empty strings are undeterminable
and still warn.
diff --git a/wranglebot/hooks.md b/wranglebot/hooks.md
index 0f79c1e..c866b07 100644
--- a/wranglebot/hooks.md
+++ b/wranglebot/hooks.md
@@ -20,7 +20,9 @@ command hook:
```json
{
"hooks": {
- "PreToolUse": [{ "hooks": [{ "type": "command", "command": "wranglebot-hook" }] }]
+ "PreToolUse": [
+ { "hooks": [{ "type": "command", "command": "wranglebot-hook" }] }
+ ]
}
}
```
@@ -42,12 +44,12 @@ command hook:
Verdicts map onto the Claude Code hook contract
(`hookSpecificOutput.permissionDecision`):
-| ast-gate verdict | Hook output | Effect in Claude Code |
-| ---------------- | ----------- | --------------------- |
-| `allow` (or nothing to gate) | `permissionDecision: "allow"` with reason | Tool runs |
-| `warn` | `permissionDecision: "ask"` with reason | Approval prompt shown to the user |
-| `deny` | `permissionDecision: "deny"` with reason | Tool blocked |
-| `rewrite` | `permissionDecision: "allow"` plus `updatedInput` | Tool runs with the replaced arguments |
+| ast-gate verdict | Hook output | Effect in Claude Code |
+| ---------------------------- | ------------------------------------------------- | ------------------------------------- |
+| `allow` (or nothing to gate) | `permissionDecision: "allow"` with reason | Tool runs |
+| `warn` | `permissionDecision: "ask"` with reason | Approval prompt shown to the user |
+| `deny` | `permissionDecision: "deny"` with reason | Tool blocked |
+| `rewrite` | `permissionDecision: "allow"` plus `updatedInput` | Tool runs with the replaced arguments |
Fail-open is enforced in the hook path: if `gate.inspect` throws, the hook
returns allow with an internal-error reason rather than blocking the edit.
diff --git a/wranglebot/intro.md b/wranglebot/intro.md
index 8fefefc..6d625ea 100644
--- a/wranglebot/intro.md
+++ b/wranglebot/intro.md
@@ -35,11 +35,11 @@ licensor. It is not MIT-licensed today.
## The exit-code contract
-| Code | Meaning |
-| ---- | ------- |
-| `0` | Agent finished clean; no deny verdict was issued. |
-| `1` | Setup or supervision error: bad CLI arguments, missing prompt, agent failed to spawn or exited non-zero. |
-| `2` | The agent was denied — killed by a loop-breaker signal or blocked by a guardrail deny. |
+| Code | Meaning |
+| ---- | -------------------------------------------------------------------------------------------------------- |
+| `0` | Agent finished clean; no deny verdict was issued. |
+| `1` | Setup or supervision error: bad CLI arguments, missing prompt, agent failed to spawn or exited non-zero. |
+| `2` | The agent was denied — killed by a loop-breaker signal or blocked by a guardrail deny. |
Details and the full failure taxonomy: [Exit codes](./reference/exit-codes.md).
diff --git a/wranglebot/loop-breaking.md b/wranglebot/loop-breaking.md
index 5b0855b..7724ebe 100644
--- a/wranglebot/loop-breaking.md
+++ b/wranglebot/loop-breaking.md
@@ -25,10 +25,10 @@ match byte-for-byte.
The Nth identical attempt:
-| Attempts | Verdict | Reason |
-| -------- | ------- | ------ |
-| reaches `identicalWarnThreshold` (default 3) | `warn` | `loop-breaker: identical call attempted N times (warn threshold 3)` |
-| reaches `identicalDenyThreshold` (default 5) | `deny` | `loop-breaker: kill — identical call attempted N times (deny threshold 5)` |
+| Attempts | Verdict | Reason |
+| -------------------------------------------- | ------- | --------------------------------------------------------------------------------- |
+| reaches `identicalWarnThreshold` (default 3) | `warn` | `loop-breaker: identical call attempted N times (warn threshold 3)` |
+| reaches `identicalDenyThreshold` (default 5) | `deny` | `loop-breaker: kill — identical call attempted N times (deny threshold 5)` |
The deny check runs first, so attempts 3–4 warn and attempt 5 kills.
@@ -74,12 +74,12 @@ This detector only warns; it never denies.
All thresholds are constructor options (`LoopBreakerOptions`):
-| Option | Default | Effect |
-| ------ | ------- | ------ |
-| `identicalWarnThreshold` | 3 | Identical-call attempts before warn |
-| `identicalDenyThreshold` | 5 | Identical-call attempts before deny/kill |
-| `noProgressWarnThreshold` | 3 | Consecutive identical shell outputs before warn |
-| `failureDenyThreshold` | 4 | Repeats of the same failure signature before deny |
+| Option | Default | Effect |
+| ------------------------- | ------- | ------------------------------------------------- |
+| `identicalWarnThreshold` | 3 | Identical-call attempts before warn |
+| `identicalDenyThreshold` | 5 | Identical-call attempts before deny/kill |
+| `noProgressWarnThreshold` | 3 | Consecutive identical shell outputs before warn |
+| `failureDenyThreshold` | 4 | Repeats of the same failure signature before deny |
## What a kill means
diff --git a/wranglebot/reference/cli.md b/wranglebot/reference/cli.md
index ab37eba..b8d509e 100644
--- a/wranglebot/reference/cli.md
+++ b/wranglebot/reference/cli.md
@@ -10,9 +10,9 @@ sidebar_position: 10
`@wranglebot/cli` installs two binaries (`bin` field in `package.json`):
-| Binary | Entry | Purpose |
-| ------ | ----- | ------- |
-| `wranglebot` | `bin/wranglebot.mjs` | Supervisor CLI |
+| Binary | Entry | Purpose |
+| ----------------- | ------------------------- | --------------------------- |
+| `wranglebot` | `bin/wranglebot.mjs` | Supervisor CLI |
| `wranglebot-hook` | `bin/wranglebot-hook.mjs` | Claude Code PreToolUse hook |
## wranglebot
@@ -25,23 +25,23 @@ The usage string is literal, from `src/daemon/cli.ts`.
### Subcommands
-| Subcommand | Description |
-| ---------- | ----------- |
-| `run` | The only subcommand. Spawns the agent under supervision. |
+| Subcommand | Description |
+| ---------- | -------------------------------------------------------- |
+| `run` | The only subcommand. Spawns the agent under supervision. |
### Positional arguments
-| Argument | Required | Description |
-| -------- | -------- | ----------- |
-| agent | yes | Exactly `claude-code` or `codex`. Any other value is rejected. |
-| prompt | yes | One or more positional words, joined with single spaces into the prompt. Must be non-empty. |
+| Argument | Required | Description |
+| -------- | -------- | ------------------------------------------------------------------------------------------- |
+| agent | yes | Exactly `claude-code` or `codex`. Any other value is rejected. |
+| prompt | yes | One or more positional words, joined with single spaces into the prompt. Must be non-empty. |
### Flags
-| Flag | Repeatable | Description |
-| ---- | ---------- | ----------- |
+| Flag | Repeatable | Description |
+| --------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--workdir DIR` | no (last wins) | Project root: containment root for `scope-guard`, deletion-path root for `ast-gate`, `cwd` for the spawned agent, and flush directory for `.curt` output. Defaults to `process.cwd()`. |
-| `--scope PATH` | yes | Additional allowed write root handed to `scope-guard` as `allowedPaths`. An entry covering a path also overrides the default denied patterns for that path. |
+| `--scope PATH` | yes | Additional allowed write root handed to `scope-guard` as `allowedPaths`. An entry covering a path also overrides the default denied patterns for that path. |
Any other flag beginning with `--` is an unknown-flag error. A flag value that
is missing or starts with `--` is rejected. All argument errors exit `1` with
@@ -53,8 +53,8 @@ by the Codex observer's spawn wrapper, not by argument parsing.)
### Environment variables
-| Variable | Used by | Description |
-| -------- | ------- | ----------- |
+| Variable | Used by | Description |
+| ------------ | -------------- | ------------------------------------------ |
| `CODEX_PATH` | Codex observer | Path to the codex binary; default `codex`. |
### Runtime output
diff --git a/wranglebot/reference/exit-codes.md b/wranglebot/reference/exit-codes.md
index 140da92..45ee168 100644
--- a/wranglebot/reference/exit-codes.md
+++ b/wranglebot/reference/exit-codes.md
@@ -12,11 +12,11 @@ sidebar_position: 9
`bin/wranglebot.mjs` as `process.exitCode`). Final return:
`return denied ? 2 : (code ?? 1)`.
-| Code | Meaning | Produced by |
-| ---- | ------- | ----------- |
-| `0` | Agent finished clean; no deny verdict was issued and the agent itself exited `0`. | Clean Claude Code run |
-| `1` | Setup or supervision error. | See taxonomy below |
-| `2` | The agent was denied — a loop-breaker kill or a guardrail deny fired. `denied` is set on the first `deny` verdict, the agent process is killed immediately, and the code wins over any other outcome. | Any guardrail returning `deny` |
+| Code | Meaning | Produced by |
+| ---- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
+| `0` | Agent finished clean; no deny verdict was issued and the agent itself exited `0`. | Clean Claude Code run |
+| `1` | Setup or supervision error. | See taxonomy below |
+| `2` | The agent was denied — a loop-breaker kill or a guardrail deny fired. `denied` is set on the first `deny` verdict, the agent process is killed immediately, and the code wins over any other outcome. | Any guardrail returning `deny` |
`warn` verdicts never change the exit code.
@@ -31,7 +31,7 @@ In order of occurrence:
- `--workdir` or `--scope` missing its value (or the value itself starts
with `--`)
- empty prompt (no positional arguments)
- Each prints `wranglebot: ` plus the usage line to stderr.
+ Each prints `wranglebot: ` plus the usage line to stderr.
2. **Claude Code spawn failure**: the child emits an `error` event; stderr
prints `wranglebot: claude spawn failed: `. The child's exit code
is then null, which the final expression maps to `1`.
@@ -43,7 +43,7 @@ In order of occurrence:
- non-zero codex exit, including Windows code `9009` for a missing binary:
`codex ("") exited with code `
- no stdout stream: `codex ("") produced no stdout stream`
- Any of these prints to stderr and sets the run code to `1`.
+ Any of these prints to stderr and sets the run code to `1`.
Note the precedence: a deny always maps to `2` regardless of the agent's own
exit code, but a codex error path exits `1` before any deny can be recorded
diff --git a/wrangler.jsonc b/wrangler.jsonc
index a6ee35c..8c403ae 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -3,15 +3,15 @@
"name": "leverframe-docs",
"compatibility_date": "2026-11-18",
"observability": {
- "enabled": true
+ "enabled": true,
},
"assets": {
- "directory": "build"
+ "directory": "build",
},
"routes": [
{
"pattern": "docs.leverframe.dev",
- "custom_domain": true
- }
- ]
+ "custom_domain": true,
+ },
+ ],
}