{
  "generatedAt": "2026-08-05T10:37:46.548Z",
  "bench": "pi-goal-x extension",
  "agentFree": true,
  "rows": [
    {
      "id": "B1.settings.present",
      "label": "settings load (file present)",
      "modules": "goal-settings",
      "fixture": "1 settings file",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0.4,
      "notes": "mean 0ms"
    },
    {
      "id": "B1.settings.present.lat25",
      "label": "settings load (file present, +25ms/op)",
      "modules": "goal-settings",
      "fixture": "1 settings file",
      "n": 100,
      "p50": 60.9,
      "p95": 70.2,
      "max": 70.3,
      "latency": "25ms/op",
      "notes": "mean 61.5ms"
    },
    {
      "id": "B1.settings.missing",
      "label": "settings load (file missing)",
      "modules": "goal-settings",
      "fixture": "no file",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B1.pool.1g",
      "label": "pool scan (1 goal)",
      "modules": "storage/goal-files",
      "fixture": "1 active goal files",
      "n": 30,
      "p50": 0.1,
      "p95": 0.1,
      "max": 0.1,
      "notes": "mean 0.1ms"
    },
    {
      "id": "B1.pool.1g.lat25",
      "label": "pool scan (1 goal, +25ms/op)",
      "modules": "storage/goal-files",
      "fixture": "1 active goal files",
      "n": 10,
      "p50": 123.6,
      "p95": 135.5,
      "max": 135.5,
      "latency": "25ms/op",
      "notes": "mean 125.1ms"
    },
    {
      "id": "B1.pool.10g",
      "label": "pool scan (10 goals)",
      "modules": "storage/goal-files",
      "fixture": "10 active goal files",
      "n": 30,
      "p50": 0.5,
      "p95": 0.5,
      "max": 0.9,
      "notes": "mean 0.5ms"
    },
    {
      "id": "B1.pool.10g.lat25",
      "label": "pool scan (10 goals, +25ms/op)",
      "modules": "storage/goal-files",
      "fixture": "10 active goal files",
      "n": 10,
      "p50": 688.4,
      "p95": 719.8,
      "max": 719.8,
      "latency": "25ms/op",
      "notes": "mean 691.6ms"
    },
    {
      "id": "B1.pool.50g",
      "label": "pool scan (50 goals)",
      "modules": "storage/goal-files",
      "fixture": "50 active goal files",
      "n": 30,
      "p50": 1.6,
      "p95": 1.9,
      "max": 2.2,
      "notes": "mean 1.7ms"
    },
    {
      "id": "B1.pool.50g.lat25",
      "label": "pool scan (50 goals, +25ms/op)",
      "modules": "storage/goal-files",
      "fixture": "50 active goal files",
      "n": 10,
      "p50": 3206.3,
      "p95": 3252.6,
      "max": 3252.6,
      "latency": "25ms/op",
      "notes": "mean 3202.4ms"
    },
    {
      "id": "B1.ledger.1k",
      "label": "ledger full parse (1k events)",
      "modules": "goal-ledger",
      "fixture": "1000 ledger events",
      "n": 20,
      "p50": 0.5,
      "p95": 0.6,
      "max": 0.7,
      "notes": "mean 0.5ms"
    },
    {
      "id": "B1.ledger.1k.lat25",
      "label": "ledger full parse (1k, +25ms/op)",
      "modules": "goal-ledger",
      "fixture": "1000 ledger events",
      "n": 5,
      "p50": 32.3,
      "p95": 35.7,
      "max": 35.7,
      "latency": "25ms/op",
      "notes": "mean 31.5ms"
    },
    {
      "id": "B1.lock.uncontended",
      "label": "lock acquire+release (uncontended)",
      "modules": "storage/goal-lock",
      "fixture": "fresh lock dir",
      "n": 50,
      "p50": 0.1,
      "p95": 0.2,
      "max": 0.2,
      "notes": "mean 0.1ms"
    },
    {
      "id": "B1.append.single",
      "label": "ledger append (single event)",
      "modules": "goal-ledger",
      "fixture": "1k-event ledger file",
      "n": 50,
      "p50": 0.2,
      "p95": 0.2,
      "max": 0.2,
      "notes": "mean 0.2ms"
    },
    {
      "id": "B1.append.x4",
      "label": "ledger append x4 (current one-by-one)",
      "modules": "goal-ledger",
      "fixture": "1k-event ledger file",
      "n": 20,
      "p50": 0.6,
      "p95": 0.7,
      "max": 0.7,
      "notes": "mean 0.6ms; P1-8 batches to one op"
    },
    {
      "id": "B3.parse.1000",
      "label": "ledger full parse (1000 events)",
      "modules": "goal-ledger",
      "fixture": "1000 events",
      "n": 10,
      "p50": 0.5,
      "p95": 0.7,
      "max": 0.7,
      "notes": "mean 0.5ms"
    },
    {
      "id": "B3.reconstruct.1000",
      "label": "ledger reconstruction (1000 events)",
      "modules": "goal-ledger",
      "fixture": "1000 in-memory events",
      "n": 10,
      "p50": 0.6,
      "p95": 0.8,
      "max": 0.8,
      "notes": "mean 0.6ms"
    },
    {
      "id": "B3.parse.5000",
      "label": "ledger full parse (5000 events)",
      "modules": "goal-ledger",
      "fixture": "5000 events",
      "n": 10,
      "p50": 2.7,
      "p95": 4.1,
      "max": 4.1,
      "notes": "mean 3.1ms"
    },
    {
      "id": "B3.reconstruct.5000",
      "label": "ledger reconstruction (5000 events)",
      "modules": "goal-ledger",
      "fixture": "5000 in-memory events",
      "n": 10,
      "p50": 3.2,
      "p95": 3.4,
      "max": 3.4,
      "notes": "mean 3.2ms"
    },
    {
      "id": "B3.parse.10000",
      "label": "ledger full parse (10000 events)",
      "modules": "goal-ledger",
      "fixture": "10000 events",
      "n": 10,
      "p50": 5.1,
      "p95": 6.1,
      "max": 6.1,
      "notes": "mean 5.2ms"
    },
    {
      "id": "B3.reconstruct.10000",
      "label": "ledger reconstruction (10000 events)",
      "modules": "goal-ledger",
      "fixture": "10000 in-memory events",
      "n": 10,
      "p50": 6.4,
      "p95": 6.9,
      "max": 6.9,
      "notes": "mean 6.5ms"
    },
    {
      "id": "B2.readturn.1g",
      "label": "per-turn read pipeline (1 goal, 1k ledger)",
      "modules": "goal-settings + storage/goal-files + goal-ledger + prompts/goal-prompts",
      "fixture": "1 goals, 1000 events",
      "n": 20,
      "p50": 0.5,
      "p95": 1,
      "max": 1,
      "ops": 6,
      "notes": "fs ops/turn 6 (p50), mean 0.6ms"
    },
    {
      "id": "B2.readturn.10g",
      "label": "per-turn read pipeline (10 goals, 1k ledger)",
      "modules": "goal-settings + storage/goal-files + goal-ledger + prompts/goal-prompts",
      "fixture": "10 goals, 1000 events",
      "n": 20,
      "p50": 0.8,
      "p95": 1,
      "max": 1,
      "ops": 24,
      "notes": "fs ops/turn 24 (p50), mean 0.8ms"
    },
    {
      "id": "B2.mutationturn.task",
      "label": "per-turn mutation (one update_goal_task)",
      "modules": "goal-task-tools + goal-service + storage/goal-files + goal-ledger + storage/goal-lock",
      "fixture": "1 goal, 1 task",
      "n": 1,
      "p50": 1.2,
      "p95": 1.2,
      "max": 1.2,
      "ops": 28,
      "notes": "fs ops for one task mutation: 28 (P1-3 batches to one lock+write+append)"
    },
    {
      "id": "B4.taskListBlock.10t",
      "label": "taskListBlock (10-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "10 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 475,
      "n": 1,
      "notes": "1897 chars, ~475 tokens; est prefill ~0.48s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B4.continuationPrompt.10t",
      "label": "continuationPrompt (10-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "10 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 1170,
      "n": 1,
      "notes": "4679 chars, ~1170 tokens; est prefill ~1.17s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B4.goalPrompt.10t",
      "label": "goalPrompt (10-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "10 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 948,
      "n": 1,
      "notes": "3790 chars, ~948 tokens; est prefill ~0.95s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B4.taskListBlock.50t",
      "label": "taskListBlock (50-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "50 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 2154,
      "n": 1,
      "notes": "8613 chars, ~2154 tokens; est prefill ~2.15s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B4.continuationPrompt.50t",
      "label": "continuationPrompt (50-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "50 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 2505,
      "n": 1,
      "notes": "10020 chars, ~2505 tokens; est prefill ~2.51s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B4.goalPrompt.50t",
      "label": "goalPrompt (50-task tree)",
      "modules": "prompts/goal-prompts",
      "fixture": "50 tasks (half complete, contracts+evidence)",
      "p50": "-",
      "p95": "-",
      "max": "-",
      "ops": 2505,
      "n": 1,
      "notes": "10020 chars, ~2505 tokens; est prefill ~2.51s @ 1000t/s (estimate, not live)"
    },
    {
      "id": "B5.startup.1g",
      "label": "session startup loadState (1 goal)",
      "modules": "goal-state + storage/goal-files + goal-settings",
      "fixture": "1 open goals",
      "n": 10,
      "p50": 0.1,
      "p95": 0.1,
      "max": 0.1,
      "notes": "mean 0.1ms; P1-7 parallelises the reads"
    },
    {
      "id": "B5.startup.10g",
      "label": "session startup loadState (10 goals)",
      "modules": "goal-state + storage/goal-files + goal-settings",
      "fixture": "10 open goals",
      "n": 10,
      "p50": 0.3,
      "p95": 0.4,
      "max": 0.4,
      "notes": "mean 0.4ms; P1-7 parallelises the reads"
    },
    {
      "id": "B5.startup.50g",
      "label": "session startup loadState (50 goals)",
      "modules": "goal-state + storage/goal-files + goal-settings",
      "fixture": "50 open goals",
      "n": 10,
      "p50": 1.6,
      "p95": 1.8,
      "max": 1.8,
      "notes": "mean 1.6ms; P1-7 parallelises the reads"
    },
    {
      "id": "B5.lock.contended",
      "label": "lock acquire wait under two-process contention (child holds 3s)",
      "modules": "storage/goal-lock",
      "fixture": "2 processes, 1 goal lock",
      "n": 1,
      "p50": 2831.9,
      "p95": 2831.9,
      "max": 2831.9,
      "notes": "main thread blocked 2831.9ms; P1-5 makes this async/bounded"
    },
    {
      "id": "B5.auditor.dispatch",
      "label": "update_goal(complete) dispatch to pre-audit gate (auditor stubbed)",
      "modules": "goal-core-tools + goal-completion + goal-state + goal-service + goal-ledger",
      "fixture": "1 active goal each, 5 fixtures",
      "n": 5,
      "p50": 1.3,
      "p95": 2.1,
      "max": 2.1,
      "notes": "cold=1.2ms warm=2.1ms; P1-6 seeds the auditor session warm"
    },
    {
      "id": "B7.tool.create_goal",
      "label": "create_goal handler",
      "modules": "goal-core-tools + goal-state + goal-service + goal-notifications",
      "fixture": "1 focused fixture",
      "n": 5,
      "p50": 0.5,
      "p95": 1.1,
      "max": 1.1,
      "ops": 14,
      "notes": "fs ops/case ~14; mean 0.7ms"
    },
    {
      "id": "B7.tool.get_goal",
      "label": "get_goal handler",
      "modules": "goal-core-tools + goal-state + goal-format + goal-pool",
      "fixture": "1 focused fixture",
      "n": 5,
      "p50": 0.1,
      "p95": 0.2,
      "max": 0.2,
      "ops": 6,
      "notes": "fs ops/case ~6; mean 0.1ms"
    },
    {
      "id": "B7.tool.update_goal.paused",
      "label": "update_goal(paused) handler",
      "modules": "goal-core-tools + goal-state + goal-service",
      "fixture": "1 focused fixture",
      "n": 5,
      "p50": 0.8,
      "p95": 0.9,
      "max": 0.9,
      "ops": 26,
      "notes": "fs ops/case ~26; mean 0.8ms"
    },
    {
      "id": "B7.tool.update_goal.blocked",
      "label": "update_goal(blocked) handler",
      "modules": "goal-core-tools + goal-service + goal-ledger",
      "fixture": "1 focused fixture",
      "n": 5,
      "p50": 0.8,
      "p95": 0.8,
      "max": 0.8,
      "ops": 26,
      "notes": "fs ops/case ~26; mean 0.8ms"
    },
    {
      "id": "B7.tool.set_goal_tasks.50",
      "label": "set_goal_tasks (50 tasks) handler",
      "modules": "goal-task-tools + goal-task-confirmation + goal-policy + goal-service",
      "fixture": "1 focused fixture",
      "n": 5,
      "p50": 0.9,
      "p95": 1.1,
      "max": 1.1,
      "ops": 24,
      "notes": "fs ops/case ~24; mean 1ms"
    },
    {
      "id": "B7.tool.update_goal_task",
      "label": "update_goal_task(complete) handler",
      "modules": "goal-task-tools + goal-service + storage/goal-lock + goal-ledger",
      "fixture": "1 goal, 20 tasks",
      "n": 5,
      "p50": 0.8,
      "p95": 0.9,
      "max": 0.9,
      "ops": 28,
      "notes": "fs ops/case ~28; mean 0.8ms"
    },
    {
      "id": "B7.evt.before_agent_start",
      "label": "before_agent_start event (1 goal, 1k ledger)",
      "modules": "goal-events + goal-state + goal-service + goal-ledger + prompts/goal-prompts",
      "fixture": "1 goal, 1000 events",
      "n": 5,
      "p50": 0,
      "p95": 0.1,
      "max": 0.1,
      "notes": "mean 0ms; P1-1/2 cut the reads here"
    },
    {
      "id": "B7.render.confirmationTasks",
      "label": "renderConfirmationTasks (20 tasks)",
      "modules": "goal-task-confirmation",
      "fixture": "20-task tree",
      "n": 50,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.draftConfirmation",
      "label": "buildDraftConfirmationText",
      "modules": "goal-draft",
      "fixture": "1 goal, 20 tasks",
      "n": 50,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.questionnaireAnswers",
      "label": "formatQuestionnaireAnswers (3 Q&A)",
      "modules": "goal-questionnaire",
      "fixture": "3 answers",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.widgetLines",
      "label": "renderGoalWidgetLines (20 tasks)",
      "modules": "widgets/goal-widget",
      "fixture": "1 goal, 20 tasks",
      "n": 100,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.widgetComponent",
      "label": "GoalWidgetComponent.render (mock TUI)",
      "modules": "widgets/goal-widget",
      "fixture": "1 goal, 20 tasks",
      "n": 100,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.taskOverlay",
      "label": "task-list overlay render (20 tasks)",
      "modules": "widgets/task-list-overlay",
      "fixture": "1 goal, 20 tasks",
      "n": 100,
      "p50": 0,
      "p95": 0,
      "max": 0.1,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.render.escapeDialog",
      "label": "escape dialog render",
      "modules": "widgets/goal-escape-dialog",
      "fixture": "objective text",
      "n": 100,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.policy.taskSummary",
      "label": "buildTaskSummary (20 tasks)",
      "modules": "goal-policy",
      "fixture": "20-task tree",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.policy.validateTasks",
      "label": "validateTaskListProposal (50 flat tasks)",
      "modules": "goal-policy + goal-task-tools",
      "fixture": "50 flat tasks",
      "n": 100,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.policy.completionReport",
      "label": "buildCompletionReport",
      "modules": "goal-policy",
      "fixture": "1 goal, 20 tasks",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.pool.goalList",
      "label": "buildGoalListText (10 goals)",
      "modules": "goal-pool + goal-core + goal-format",
      "fixture": "10 open goals",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.pool.selectorLabel",
      "label": "goalSelectorLabel",
      "modules": "goal-pool + goal-core",
      "fixture": "1 goal",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0.3,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.accounting.charge",
      "label": "GoalAccounting begin+charge+end",
      "modules": "goal-accounting",
      "fixture": "1 active goal",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.accounting.budget",
      "label": "budgetLine + budgetRemaining",
      "modules": "goal-accounting",
      "fixture": "goal with 100k budget",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.notifications.running",
      "label": "buildGoalRunningNotification",
      "modules": "widgets/goal-notifications",
      "fixture": "1 config",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.compaction.summary",
      "label": "buildCompactionSummary (500 events)",
      "modules": "goal-compaction + goal-ledger",
      "fixture": "1 goal, 500 events",
      "n": 50,
      "p50": 0.1,
      "p95": 0.2,
      "max": 0.4,
      "notes": "mean 0.1ms"
    },
    {
      "id": "B7.compaction.goalSummary",
      "label": "buildGoalCompactSummary (500 events)",
      "modules": "goal-compaction",
      "fixture": "1 goal, 500 events",
      "n": 50,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.ledger.reconstruct",
      "label": "reconstructGoalLedger (500 events)",
      "modules": "goal-ledger",
      "fixture": "500 events",
      "n": 50,
      "p50": 0.1,
      "p95": 0.1,
      "max": 0.2,
      "notes": "mean 0.1ms"
    },
    {
      "id": "B7.ledger.latestEvents",
      "label": "latestEventsForGoal (500 events)",
      "modules": "goal-ledger",
      "fixture": "500 events",
      "n": 500,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.contract.extract",
      "label": "extractVerificationContract",
      "modules": "goal-contract + goal-draft",
      "fixture": "objective text",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms; P1-11 dedups the goal-draft copy"
    },
    {
      "id": "B7.contract.promptSafe",
      "label": "promptSafeObjective",
      "modules": "goal-contract",
      "fixture": "objective text",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.record.normalize",
      "label": "normalizeGoalRecord",
      "modules": "goal-record",
      "fixture": "raw record",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0.1,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.files.serialize",
      "label": "serializeGoalFile",
      "modules": "storage/goal-files + goal-core + goal-record",
      "fixture": "1 goal",
      "n": 1000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.files.parse",
      "label": "parseGoalFile",
      "modules": "storage/goal-files + goal-record",
      "fixture": "1 goal file",
      "n": 200,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms; P1-1 caches per-turn parse"
    },
    {
      "id": "B7.format.renderEvent",
      "label": "renderGoalEvent heading",
      "modules": "goal-format",
      "fixture": "task_complete event",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.format.goalDetails",
      "label": "goalDetails",
      "modules": "goal-format + goal-accounting",
      "fixture": "1 goal, 20 tasks",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.runtime.stalePrompt",
      "label": "staleContinuationPrompt",
      "modules": "prompts/goal-prompts + goal-core",
      "fixture": "1 goal",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    },
    {
      "id": "B7.runtime.unfocusedPrompt",
      "label": "unfocusedOpenGoalsPrompt",
      "modules": "prompts/goal-prompts",
      "fixture": "3 open goals",
      "n": 2000,
      "p50": 0,
      "p95": 0,
      "max": 0,
      "notes": "mean 0ms"
    }
  ]
}
