{
  "auth": {
    "header": "Authorization: Bearer bah_pat_<token>",
    "how": "Sign in once in the browser, mint one token, paste it into the MCP client config. Humans mint from the Connect-your-AI panel at /workspace (sidebar: Connect your AI) \u2014 the token is shown once there, with ready-made config blocks; agents keep the API path below. No repeated logins, no OAuth dance in v1 (OAuth 2.1 is the v2 path).",
    "rules": [
      "A token is exactly as powerful as its owner's session: member read, editor write, viewer read-only, nonmember sees nothing.",
      "Tokens can be read-only and/or pinned to a single workspace.",
      "Revoked or expired tokens are rejected on the next request.",
      "A Supabase session JWT is also accepted as the bearer."
    ],
    "type": "bearer personal access token"
  },
  "claims": [
    {
      "claim": "The project your AI gave up on gets finished \u2014 by a cheaper AI.",
      "evidence": "https://boundedagentharness.com/proof/#claim-1 \u2014 Record: RESULTS-A.md (Hammer Round 2) + the original rescue proof records; full record at https://boundedagentharness.com/deepseek-proof/rescue/",
      "id": 1,
      "scope": "Information-matched rescue trial: identical runner, model, and documents; the arm with the preparation completed 3/3 (perfect score each time), the arm without it 0/3. Scope: the subject is the preparation's home project; generalization to unseen projects is still being tested."
    },
    {
      "claim": "Same build, half the AI bill.",
      "evidence": "https://boundedagentharness.com/proof/#claim-2 \u2014 Record: RESULTS-B.md (Hammer Round 2); full record at https://boundedagentharness.com/deepseek-proof/build-off/",
      "id": 2,
      "scope": "Powered build-off, 8 builds per arm, all 16 completed: median cost per finished build $0.001949 (harness) vs $0.003700 (ordinary), ratio 0.527, spreads non-overlapping. Scope: one build class (small module builds), one model family. Not the same measurement as the 2026-10-23 slate build-off (~15%, one build) on the DeepSeek proof page \u2014 two records, two numbers, both printed where they belong."
    },
    {
      "claim": "No runaway bill at the end.",
      "evidence": "https://boundedagentharness.com/proof/#claim-3 \u2014 Record: RESULTS-B.md (Hammer Round 2), call records per build",
      "id": 3,
      "scope": "Same instrument as claim 2: worst finished build $0.0046 (harness) vs $0.0126 (ordinary). The ordinary lane's cost sits in a second paid confirmation call per build; the harness replaces it with mechanical checks."
    },
    {
      "claim": "Switch AIs mid-project, and the project keeps its shape.",
      "evidence": "https://boundedagentharness.com/proof/#claim-4 \u2014 Record: Proof E records, 2026-10-23 slate; full record at https://boundedagentharness.com/continue/",
      "id": 4,
      "scope": "Generative-drift proof: continuation pack 12/12 across three runs; naive continuation median 1/12."
    },
    {
      "claim": "Split the work across cheap AIs \u2014 it comes back together whole.",
      "evidence": "https://boundedagentharness.com/proof/#claim-5 \u2014 Record: Seam Stage-3R PREREG.md + STAGE3R.md + results.json; full record at https://boundedagentharness.com/deepseek-proof/seam-program/",
      "id": 5,
      "scope": "Stage-3R seam protocol: 3/3 assembled builds passing a frozen 379-check suite (Dispatch Desk). Scope: one certified subject; the suite was authored by the program (the oracle self-check is in the record)."
    },
    {
      "claim": "Run it on your own AI account: we never meter it, never mark it up.",
      "evidence": "https://boundedagentharness.com/proof/#claim-6 \u2014 Record: BYOK proof run LOG.md + run-record.json, 2026-10-24",
      "id": 6,
      "scope": "BYOK proof run: the job's usage exists only in the run ledger; the included lane's usage table held 90 rows before and after, 0 for the test identities. Caveat, printed with the claim: proven on the staged lane. Not yet available to customers."
    },
    {
      "claim": "You approve the price before anything runs \u2014 and a run that doesn't finish costs you nothing.",
      "evidence": "https://boundedagentharness.com/proof/#claim-7 \u2014 Record: Priced-run spike LOG.md, 2026-10-24; H5 arithmetic-estimator RESULTS.md",
      "id": 7,
      "scope": "Submit-contract proof: threshold halt at the exact approved ceiling; failed runs charged $0.00 in both scenarios; the arithmetic bound contained 27/27 validated jobs; one real end-to-end run at $0.0028. Caveat, printed with the claim: proven on the staged lane, not yet live."
    }
  ],
  "description": "Bounded Agent Harness: collaboration workspaces for governed AI work \u2014 shared Brain Pads (versioned), human review gates, comments, and hash-chained activity ledgers. AI agents connect over MCP to read and write the workspaces their human belongs to.",
  "endpoints": {
    "api": "Human-readable front door: https://boundedagentharness.com/api \u2014 the MCP door and the operator REST door, with copy-paste examples. Machine-readable operator API: https://boundedagentharness.com/openapi.json",
    "connect_walkthrough": "For a human: https://boundedagentharness.com/api, the five steps at the top. For an agent: /llms.txt, section 'Connect an agent \u2014 the five steps' \u2014 pick a door, get a token, connect, prove it with bah_about (MCP) or GET /api/op/bah/health (REST), and what a refused token means.",
    "docs": "/llms.txt",
    "mcp": {
      "protocol": "JSON-RPC 2.0, stateless Streamable HTTP (MCP protocolVersion 2025-03-26)",
      "public_tools": [
        "bah_about",
        "research_dispatch",
        "research_get_pack",
        "research_find_in_project",
        "research_get_files_first",
        "research_next_probe"
      ],
      "tool_count": 28,
      "tools": [
        "bah_about",
        "bah_workspace_list",
        "bah_workspace_get",
        "bah_pad_save",
        "bah_submit_review",
        "bah_review_status",
        "bah_split_submit",
        "bah_split_status",
        "bah_comment_post",
        "bah_workspace_export",
        "bah_inbox_list",
        "bah_inbox_claim",
        "bah_chat_read",
        "bah_chat_post",
        "bah_handoff_send",
        "bah_handoff_list",
        "expand_key",
        "check_permission",
        "preflight",
        "search_narrative",
        "bah_memory_get",
        "bah_memory_update",
        "bah_memory_draft_close",
        "research_dispatch",
        "research_get_pack",
        "research_find_in_project",
        "research_get_files_first",
        "research_next_probe"
      ],
      "url": "POST /mcp"
    },
    "tokens": {
      "mint": "Humans: the Connect-your-AI panel at /workspace. Agents: POST /.netlify/functions/workspace-tokens with a signed-in web session: {\"action\":\"mint\",\"label\":\"my agent\"} \u2014 the token is shown exactly once",
      "revoke": "POST /.netlify/functions/workspace-tokens {\"action\":\"revoke\",\"token_id\":\"<id>\"}"
    }
  },
  "name": "bah-mcp",
  "notes": [
    "Pad saves are version-guarded compare-and-swap: a stale version is refused with the current version, never overwritten.",
    "Review acceptance criteria freeze at submit time; review decisions are human-only in v1 (no decision tool).",
    "The MCP server makes no model/LLM calls; it only reads and writes workspaces.",
    "Room chat: the agent is an occupant of the workspace chat and answers only when a person calls it by the name on its token's label \u2014 fifteen everyday call forms (e.g. 'hey muse', 'hi muse', '@muse', the name alone, the name with 'please'); a common mis-hearing of the name inside a call (e.g. 'hey mews') also reaches it \u2014 bah_chat_read flags its calls, and bah_chat_post posts only as a reply to a calling message. People talking to each other is context for the agent, never a summons. Doorbells: a connection can register a webhook URL in the bench (Your AI); the room POSTs a signed room.call event to it the moment the agent is called \u2014 no polling needed where a listener is awake to receive it."
  ],
  "research": {
    "auth": "public (no token) for the hosted research tools \u2014 the packs are curated public knowledge with no workspace data; the existing soft rate limit applies",
    "dispatch": "Hosted research_dispatch is request-only (no projectDir filesystem access) and opens a stored run in the hosted run store, returning its runId.",
    "harness": "bah-research-run 1.0.0",
    "hosted_tools": [
      "research_dispatch",
      "research_get_pack",
      "research_find_in_project",
      "research_get_files_first",
      "research_next_probe"
    ],
    "local_note": "All five research tools are hosted (research-run v2, 2026-11-03). research_find_in_project runs hosted in signals mode \u2014 send dependency/file/env NAMES only; research_dispatch opens a stored run (Supabase run store) and returns its runId, which research_next_probe advances. The local package (stdio / researchHeadless) additionally supports projectDir filesystem mode.",
    "packs": [
      "stripe:checkout:hosted",
      "google:oauth-signin:authjs-nextauth-v5",
      "google:oauth-signin:direct-googleapis",
      "google:oauth-signin:supabase-auth",
      "mcp:server:streamable-http-typescript-v2",
      "mcp:server:fastmcp-python",
      "mcp:server:stateless-jsonrpc-post-pat",
      "booking:service:cal-platform",
      "booking:service:google-calendar-engine",
      "booking:service:request-confirm-sidecar"
    ],
    "rules": "RR-01..RR-12 (see the SKILL.md rules): dispatch before crawl; evidence ledger mandatory; labelled crawl fallback",
    "run_store": "Hosted runs are stored server-side (Supabase bah_research_runs) and addressed by their unguessable UUID runId; research_next_probe {runId, outcome?} reads/advances them.",
    "signals_mode": "Hosted research_find_in_project takes {signals:{dependencies:[names], files:[relative paths], envNames:[names]}} \u2014 names only; smuggled values are stripped in the parser and never returned.",
    "skill": "https://boundedagentharness.com/research-run/SKILL.md"
  },
  "run_records": [
    {
      "claim_tested": "Your project gets done cheaper",
      "control_tokens": 18914621,
      "control_total_priced_usd": 76.95,
      "date": "2026-10-28",
      "exhibit_workspace": "Destination Claim \u2014 Meal Planner Run",
      "id": "destination-claim-run-1",
      "project": "Grocery Planner (testmyself.app/grocery.html), whole project, both ways",
      "status": "not earned \u2014 failed experiment (neither arm passed the frozen instrument)",
      "treatment_tokens": 14398881,
      "treatment_total_priced_usd": 60.3
    },
    {
      "claim_tested": "Your project gets done cheaper",
      "control_tokens": 14799184,
      "control_total_priced_usd": 60.29,
      "date": "2026-10-28",
      "exhibit_workspace": "Destination Claim \u2014 Meal Planner Run",
      "id": "destination-claim-run-2",
      "note": "Treatment total includes $50.28 for one build segment voided by a coordinator setup error, billed at actuals under the frozen rules (Amendment R-1) and disclosed in the run ledger. A clean-path counterfactual exists in the run record for the refine-or-drop judgment only; it is not a claim basis and no comparison is published from it.",
      "project": "Grocery Planner (testmyself.app/grocery.html), whole project, both ways",
      "status": "not earned \u2014 R2 (both arms finished; harness total \u2265 ordinary total)",
      "treatment_tokens": 20680225,
      "treatment_total_priced_usd": 84.89
    },
    {
      "claim_tested": "Your project gets done cheaper",
      "control_tokens": 14757588,
      "control_total_priced_usd": 60.43,
      "date": "2026-10-29",
      "exhibit_workspace": "Destination Claim \u2014 Meal Planner Run",
      "id": "destination-claim-run-3",
      "note": "Harness arm stopped when a platform failure made new builds untestable from the run environment; the stop and its cause are disclosed in full in the run verdict. The claim requires two finished costs; there is only one.",
      "project": "Grocery Planner (testmyself.app/grocery.html), whole project, both ways",
      "status": "not earned \u2014 R4 (ordinary arm finished; harness arm stopped, not finished)",
      "treatment_spend_at_stop_priced_usd": 83.32,
      "treatment_tokens": 23268465
    },
    {
      "claim_tested": "Your project gets done cheaper \u2014 gate 3, the routed build",
      "date": "2026-10-30",
      "id": "routed-build-trial-1",
      "note": "NO VERDICT / INCOMPLETE \u2014 firing rule: PREREG \u00a78 screen discard (cost-triviality). Gate 3 remains open. Claim 1's other two gates stand as previously measured (rescue half; narrow build-off). Nothing in this result weakens or strengthens them: the routed question was not answered, it was shown to be unaskable at this subject's price \u2014 DeepSeek-V4.1-Flash (the deepseek-flash build of record on 2026-10-30) finishes the whole subject for 1.6 cents, inside the noise band the screen was built to detect.",
      "project": "Ten-part build (the BYOK lane) against a frozen 45-check acceptance suite",
      "screen_probe_tokens": 29659,
      "screen_probe_total_priced_usd": 0.016208,
      "status": "no verdict \u2014 incomplete (PREREG \u00a78 screen discard: cost-triviality; gate 3 remains open)"
    }
  ],
  "version": "1.0.0"
}
