{
  "version": 1,
  "reference_commit": "cead615b48b80d1c61eecab2f0b576d16eeaf4c5",
  "note": "Metadata inventory only. S0 fixtures do not qualify production contracts.",
  "contracts": [
    {
      "id": "H01",
      "title": "Agent loop. One turn = one assistant response + its tool calls/results. Loop continues while tool calls remain or steering is pending; stops on `error`/`aborted",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A27"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 27
      },
      "evidence": []
    },
    {
      "id": "H02",
      "title": "Tool ordering. Default execution is `parallel` ([agent.ts:261](../reference/pi/packages/agent/src/agent.ts#L261)); any tool with `executionMode:\"sequential\"` fo",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A25"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 28
      },
      "evidence": []
    },
    {
      "id": "H03",
      "title": "Tool errors never reject the batch. Unknown tool, schema validation failure, thrown error, blocked call and aborted signal all become `isError:true` tool result",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A25"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 29
      },
      "evidence": []
    },
    {
      "id": "H04",
      "title": "Truncation. Two independent limits, first hit wins: 2000 lines, 50 KiB ([truncate.ts:11-12](../reference/pi/packages/coding-agent/src/core/tools/truncate.ts#L11",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A26"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 30
      },
      "evidence": []
    },
    {
      "id": "H05",
      "title": "Built-in tool set + prompt coupling. `read, bash, powershell, edit, write, grep, find, ls` ([tools/index.ts:96](../reference/pi/packages/coding-agent/src/core/t",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A26"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 31
      },
      "evidence": []
    },
    {
      "id": "H06",
      "title": "Steering vs follow-up. Two queues with independent modes `all` / `one-at-a-time` (default one-at-a-time) ([agent.ts:255-256](../reference/pi/packages/agent/src/",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A27"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 32
      },
      "evidence": []
    },
    {
      "id": "H07",
      "title": "Abort. `abort()` aborts the active run's signal; in-flight tools get `\"Operation aborted\"` error results; assistant message gets `stopReason:\"aborted\"`; queued ",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A26"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 33
      },
      "evidence": []
    },
    {
      "id": "H08",
      "title": "Event stream. Canonical event set: `agent_start/end`, `turn_start/end`, `message_start/update/end`, `tool_execution_start/update/end`, plus session-level `agent",
      "stage": "S7",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A27",
        "A29"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 34
      },
      "evidence": []
    },
    {
      "id": "H09",
      "title": "Print/JSON modes + JSONL framing. `--print` writes final text; `--mode json` writes a session header then the same session events and exits. Records are strict ",
      "stage": "S7",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A29"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 35
      },
      "evidence": []
    },
    {
      "id": "H10",
      "title": "Session file. JSONL, `~/.pi/agent/sessions/--<encoded-cwd>--/<ts>_<id>.jsonl`; header `{type:\"session\",version:3,id,timestamp,cwd,parentSession?}`; every entry ",
      "stage": "S6",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 36
      },
      "evidence": []
    },
    {
      "id": "H11",
      "title": "Tree navigation / branching. `branch(id)` moves the leaf without deleting; next append becomes a child of it. `branchWithSummary` adds a `branch_summary` entry ",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 37
      },
      "evidence": []
    },
    {
      "id": "H12",
      "title": "Fork/clone vs filesystem state. `/tree` stays in one file; `/fork` creates a new session from an earlier user message; `/clone` copies the active branch into a ",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 38
      },
      "evidence": []
    },
    {
      "id": "H13",
      "title": "Compaction. Triggers when `contextTokens > contextWindow - reserveTokens` (defaults 16384 / keep 20000) ([compaction.ts:126-129](../reference/pi/packages/coding",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 39
      },
      "evidence": []
    },
    {
      "id": "H14",
      "title": "Overflow / length recovery. Provider overflow or an early `stopReason:\"length\"` selects one compact-and-retry attempt. Ordering is fixed: persist response \u2192 ext",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 40
      },
      "evidence": []
    },
    {
      "id": "H15",
      "title": "System prompt assembly. Ordered, independently replaceable sections (`preamble`, tools, rules, docs, project_context, skills, cwd, custom) built from base text ",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28",
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 41
      },
      "evidence": []
    },
    {
      "id": "H16",
      "title": "Instruction files. Candidates per directory: `AGENTS.override.md`, `AGENTS.md`, `AGENTS.MD`, `CLAUDE.md`, `CLAUDE.MD`; `override` replaces siblings in the same ",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 42
      },
      "evidence": []
    },
    {
      "id": "H17",
      "title": "Resource discovery + trust gating. User dir `~/.pi/agent` (or `PI_CODING_AGENT_DIR`), project `.pi`. Trust required when any of `.pi/settings.json`, `.pi/mcp.js",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 43
      },
      "evidence": []
    },
    {
      "id": "H18",
      "title": "Skills. Agent Skills spec: directory with `SKILL.md` + frontmatter (`name` \u226464 `[a-z0-9-]`, no leading/trailing/consecutive `-`; `description` required \u22641024; o",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 44
      },
      "evidence": []
    },
    {
      "id": "H19",
      "title": "Prompt templates. Markdown file \u2192 `/name` command; `$1..$N`, `$@`/`$ARGUMENTS`, `${1:-def}`, `${@:-def}`, `${@:N}`, `${@:N:L}`; shell-like quoting with the stat",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 45
      },
      "evidence": []
    },
    {
      "id": "H20",
      "title": "Extension loading. TypeScript/JS modules loaded via jiti with virtual modules for `@earendil-works/pi-*` and `typebox` in compiled builds, dist aliases in unbun",
      "stage": "S8",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 46
      },
      "evidence": []
    },
    {
      "id": "H21",
      "title": "Extension events / hooks. ~40 events incl. `project_trust`, `resources_discover`, `session_before_{switch,fork,compact,tree}`/`session_*`, `context`, `context_w",
      "stage": "S8",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 47
      },
      "evidence": []
    },
    {
      "id": "H22",
      "title": "Extension UI + renderers. `ctx.ui.{select,confirm,input,editor,notify,setStatus,setWidget,custom,setHeader/setFooter/setEditor}`, autocomplete providers, messag",
      "stage": "S8",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 48
      },
      "evidence": []
    },
    {
      "id": "H23",
      "title": "Terminal UI / images / editor. Cells rendered as line arrays fitted to width; ANSI/wide-char width helpers; invalidate + coalesced render; focus/CURSOR_MARKER f",
      "stage": "S9",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 49
      },
      "evidence": []
    },
    {
      "id": "H24",
      "title": "Config + auth discovery. Layering: defaults \u2192 user settings \u2192 project settings (post-trust) \u2192 CLI. Agent dir files: settings, keybindings, mcp, models, auth, in",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 50
      },
      "evidence": []
    },
    {
      "id": "H25",
      "title": "Model switching / thinking. `setModel` records a `model_change` entry; `cycleModel` uses scoped models when set, else all available; thinking level is set/clamp",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 51
      },
      "evidence": []
    },
    {
      "id": "H26",
      "title": "Print JSON / RPC / SDK. RPC = long-lived JSONL: commands in, `response{id,command,success,data",
      "stage": "S7",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A29"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 52
      },
      "evidence": []
    },
    {
      "id": "H27",
      "title": "MCP. stdio + streamable HTTP (SSE rejected); config `~/.pi/agent/mcp.json` + `.pi/mcp.json` (project entry replaces same-name user entry; structural-less entry ",
      "stage": "S8",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 53
      },
      "evidence": []
    },
    {
      "id": "H28",
      "title": "Codemode / tool search. `codemode` input is raw JS run as an async-function body in QuickJS (worker thread; per-run VM; no Node/fs/net/timers). Globals `tools.*",
      "stage": "S8",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 54
      },
      "evidence": []
    },
    {
      "id": "H29",
      "title": "Packages / update / export / share security. `npm:`/`git:`/URL/local sources; pinned specs not auto-updated; `PI_OFFLINE` skips network; git cannot prompt; pack",
      "stage": "S8",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 55
      },
      "evidence": []
    },
    {
      "id": "H30",
      "title": "No permission engine; trust \u2260 sandbox. Core vs optional features. There is no built-in approval gate: tools/extensions run with the process's OS permissions; th",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/harness-features.md",
        "line": 56
      },
      "evidence": []
    },
    {
      "id": "D01",
      "title": "Admission is a commit, not a queue insert",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A01",
        "A27"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 12
      },
      "evidence": []
    },
    {
      "id": "D02",
      "title": "Restart dedup by request ID",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A02",
        "A03"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 18
      },
      "evidence": []
    },
    {
      "id": "D03",
      "title": "Commit before visibility",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A01",
        "A04",
        "A06"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 24
      },
      "evidence": []
    },
    {
      "id": "D04",
      "title": "Batch atomicity, refusal, unknown outcomes",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A01",
        "A04",
        "A05",
        "A06"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 30
      },
      "evidence": []
    },
    {
      "id": "D05",
      "title": "Generation retries with a durable backoff",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A12",
        "A13",
        "A23"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 36
      },
      "evidence": []
    },
    {
      "id": "D06",
      "title": "Replay safety is per tool call, default unsafe",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A14",
        "A15",
        "A26"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 42
      },
      "evidence": []
    },
    {
      "id": "D07",
      "title": "Task checkpoints: a phase reruns from its top",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A08",
        "A11"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 48
      },
      "evidence": []
    },
    {
      "id": "D08",
      "title": "Ownership tree and structured concurrency",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A17",
        "A18"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 54
      },
      "evidence": []
    },
    {
      "id": "D09",
      "title": "Cancel is a committed mark plus an abort protocol",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A17"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 60
      },
      "evidence": []
    },
    {
      "id": "D10",
      "title": "Nested calls: keyed, journaled, abandoned safely",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A16",
        "A18"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 66
      },
      "evidence": []
    },
    {
      "id": "D11",
      "title": "Signals: five delivery results, one wait per key",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A19"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 72
      },
      "evidence": []
    },
    {
      "id": "D12",
      "title": "Sleeps, clock, and host-driven wakeups",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A19",
        "A20"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 78
      },
      "evidence": []
    },
    {
      "id": "D13",
      "title": "Park: a tool may suspend and return later",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A17",
        "A20"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 84
      },
      "evidence": []
    },
    {
      "id": "D14",
      "title": "Forks copy stored values, not tracker caches",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 90
      },
      "evidence": []
    },
    {
      "id": "D15",
      "title": "Compaction is an append, never a rewrite",
      "stage": "S6",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 96
      },
      "evidence": []
    },
    {
      "id": "D16",
      "title": "Read-only: no recovery, no writes, usable reads",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A09"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 102
      },
      "evidence": []
    },
    {
      "id": "D17",
      "title": "Versions and migrations, at three layers",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A10",
        "A21"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 108
      },
      "evidence": []
    },
    {
      "id": "D18",
      "title": "One writer process per storage",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A09"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 114
      },
      "evidence": []
    },
    {
      "id": "D19",
      "title": "Monitoring is derived committed state",
      "stage": "S7",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A07",
        "A29"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 120
      },
      "evidence": []
    },
    {
      "id": "D20",
      "title": "Crash loops end at `restartLimit`",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A12",
        "A21"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 126
      },
      "evidence": []
    },
    {
      "id": "D21",
      "title": "Deferred commits are the documented durability exception",
      "stage": "S2",
      "disposition": "decision-required",
      "status": "NOT RUN",
      "cases": [
        "A07"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 132
      },
      "evidence": []
    },
    {
      "id": "D22",
      "title": "Side effects are not exactly once",
      "stage": "S4",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A14",
        "A15",
        "A26"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/durability-contracts.md",
        "line": 138
      },
      "evidence": []
    },
    {
      "id": "P01",
      "title": "Messages distinguish system, user, assistant, and tool result; assistant blocks preserve text, reasoning, and tool calls.",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 11
      },
      "evidence": []
    },
    {
      "id": "P02",
      "title": "Reasoning signatures, redaction markers, tool-call thought signatures, text signatures, namespaces, and response IDs carry provider-specific continuation inform",
      "stage": "S2",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22",
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 12
      },
      "evidence": []
    },
    {
      "id": "P03",
      "title": "Successful streams start before updates and finish with `done`; setup failures can emit `error` without a start. Post-start failures also finish with error.",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 13
      },
      "evidence": []
    },
    {
      "id": "P04",
      "title": "`partial` is a shared live helper, not an event-time snapshot. Text/thinking starts are normally empty; end events are authoritative; redacted reasoning may be ",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 14
      },
      "evidence": []
    },
    {
      "id": "P05",
      "title": "The event queue drains FIFO, ignores pushes after completion, drains buffered events after end, and wakes waiting consumers on end. Multiple iterators compete f",
      "stage": "S7",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22",
        "A29"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 15
      },
      "evidence": []
    },
    {
      "id": "P06",
      "title": "Partial tool arguments grow during streaming; final arguments must match the complete call. Upstream guards allocation growth and release of parser/partial stat",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 16
      },
      "evidence": []
    },
    {
      "id": "P07",
      "title": "Malformed complete argument text sets `argumentsError`; validation rejects it rather than executing an empty argument object. Schema validation can coerce value",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22",
        "A25"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 17
      },
      "evidence": []
    },
    {
      "id": "P08",
      "title": "Normalized stop reasons include pending, normal stop, output length, tool use, error, abort, and deferred. Raw provider stop reason is retained separately.",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A22"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 18
      },
      "evidence": []
    },
    {
      "id": "P09",
      "title": "Deferred work has a provider/model/API-bound handle, optional expiry, poll delay, and conversion data.",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A13"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 19
      },
      "evidence": []
    },
    {
      "id": "P10",
      "title": "Prompt and tools normalize into transcript system messages. Later messages append instructions, patch named sections, and add/remove tools. Unsupported transpor",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 25
      },
      "evidence": []
    },
    {
      "id": "P11",
      "title": "This Pi revision keeps reasoning for the same provider/API/model, drops other models' reasoning, removes foreign signatures, and can remap tool IDs consistently",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 26
      },
      "evidence": []
    },
    {
      "id": "P12",
      "title": "Replay omits error/aborted assistant messages and synthesizes error results for unanswered calls. Intervening system messages are held until tool accounting clo",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 27
      },
      "evidence": []
    },
    {
      "id": "P13",
      "title": "Unsupported images become explicit placeholders; some APIs require images from error results moved after the tool results.",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 28
      },
      "evidence": []
    },
    {
      "id": "P14",
      "title": "Provider retry helper honors `x-should-retry`, retries selected HTTP/network failures within its configured budget, respects excluded statuses, parses retry hin",
      "stage": "S3",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A12",
        "A23"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 29
      },
      "evidence": []
    },
    {
      "id": "P15",
      "title": "Usage separates input/output/cache read/cache write; reasoning is a subset of output. Total cost can be provider-billed or catalog-estimated, with an explicit f",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 30
      },
      "evidence": []
    },
    {
      "id": "P16",
      "title": "Transport, cache retention, session identity, and continuation suppression are explicit optional request settings. Provider support varies.",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 31
      },
      "evidence": []
    },
    {
      "id": "P17",
      "title": "Model metadata declares modality, limits, thinking-level mappings, cache capabilities, and adapter-specific compatibility.",
      "stage": "S5",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A24"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/provider-contracts.md",
        "line": 32
      },
      "evidence": []
    },
    {
      "id": "C01",
      "title": "One C binary links embedded SQLite and libfossil.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 11
      },
      "evidence": []
    },
    {
      "id": "C02",
      "title": "WAL is selected on initialization; ordinary database opens set a 30-second busy timeout.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A09"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 12
      },
      "evidence": []
    },
    {
      "id": "C03",
      "title": "Embedded Fossil repositories occupy tables in the main database and can share transaction commit/rollback. Existing archive batching opens one transaction.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A04"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 13
      },
      "evidence": []
    },
    {
      "id": "C04",
      "title": "Search is FTS5-ranked, project-scoped, and excludes retired material by default; history/as-of paths have separate filters.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 14
      },
      "evidence": []
    },
    {
      "id": "C05",
      "title": "Extraction removes noise, excludes sidechain turns, flattens selected block kinds, redacts content, and trims tool output.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A08",
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 15
      },
      "evidence": []
    },
    {
      "id": "C06",
      "title": "Session briefs recover recent decisions, artifacts, messages, and standing-rule proposals from archived turns. Rules are offered separately.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 16
      },
      "evidence": []
    },
    {
      "id": "C07",
      "title": "Rebuild drops derived search/citation/decision/artifact tables and reconstructs their content; chunk IDs change.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A08",
        "A28"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 17
      },
      "evidence": []
    },
    {
      "id": "C08",
      "title": "Existing MCP surface exposes search and turn retrieval.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 18
      },
      "evidence": []
    },
    {
      "id": "C09",
      "title": "Fossil sync makes remote archived sessions searchable; documented transport is plain HTTP and recommends a private network or SSH tunnel.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [
        "A30"
      ],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 19
      },
      "evidence": []
    },
    {
      "id": "C10",
      "title": "Automatic snippet injection is optional and did not outperform skill-guided retrieval in the documented evaluation.",
      "stage": "S1",
      "disposition": "required",
      "status": "NOT RUN",
      "cases": [],
      "citation": {
        "path": "docs/archive/2026-11-s0/context-boundary.md",
        "line": 20
      },
      "evidence": []
    }
  ]
}
