{
  "feature": "Canonical tool presentation events, complete visible history and validated media identity",
  "verifiedAt": "2026-10-17T03:14:54.847994+00:00",
  "baseCommit": "549349ff2b77560e2eb740de332c367daf243f32",
  "passed": true,
  "verificationScope": "Focused JSON CLI, actual FileReadTool, session persistence/parser and daemon frontend transport tests; not the entire CLI or workspace suite.",
  "uniqueTests": 88,
  "uniqueTestFiles": 9,
  "suites": {
    "chat-agent-output.test.ts": 24,
    "chat-session-config-isolation.test.ts": 2,
    "chat-session-tool-events.test.ts": 14,
    "run-json-tool-events.test.ts": 1,
    "tool-events.test.ts": 4,
    "tui-structured-memory-lifecycle.test.ts": 3,
    "web-chat-transport-lifecycle.test.ts": 27,
    "web-ui-client-runtime.test.ts": 4,
    "web-ui-script.test.ts": 9
  },
  "deduplication": "The final 19-test authority follow-up replaces the corresponding three suites in the 88-test combined run. Earlier 41/42/84-test batches and separate FileReadTool run are not added again.",
  "rawReports": [
    "/tmp/omnius-tool-event-presentation-final.json",
    "/tmp/omnius-tool-event-authority-final.json"
  ],
  "checks": {
    "cliNoEmit": "PASS: pnpm --filter omnius exec tsc --noEmit",
    "ownedDiffCheck": "PASS"
  },
  "behavior": [
    "Main-runner tool call/result/status NDJSON retains whitelisted canonical action_id and parent_action_id plus compatible aliases, timestamps, valid measured stage/percent/duration/bytes and bounded separate diagnostics.",
    "Known source extraction v1 phases map deterministically to source-started/source-chunk/source-pending/source-ready; source/chunk counts survive. Percent is present only with valid positive known total and in-range accounted characters; unknown coverage is never fabricated.",
    "Both streamed and nonstreamed /v1/chat and /api/chat preserve tool events in durable sessions. Legacy final-only call receipts are persisted without duplicating calls that arrived live.",
    "JSON CLI and native working cards enable the runner operator-detail channel. An actual FileReadTool reads a scratch file over 28KB; the callback receives its complete output and host-issued identity, independently of projected display/model content.",
    "Complete redacted result output is retained past the former 4000-character wire and 2048-character disk limits. Canonical visible user/tool/assistant history survives compaction; only the inference-role request projection is compacted.",
    "Project media candidates use captured invocation identity and regular owned files. Intended project-root aliases share canonical artifact IDs; arbitrary alias/inner symlink/outside-root candidates are rejected. Daemon structured candidates require an established registered project matching the session.",
    "Any explicit artifacts array is authoritative, including empty/rejected receipts. New producers always serialize the validated set; stale claims and unlisted raw paths cannot revive replacement previews during replay. Browser acquisition still requires authenticated HEAD/If-Match/GET.",
    "Persisted per-action progress rejects stale timestamps and post-result updates; a phase change clears an old percentage, and diagnostics never replace measured progress. Unknown result outcome remains omitted rather than falsely failed or completed.",
    "One-off /api/generate and /v1/generate now reuse the UTF-8/NDJSON parser; tool/status records no longer corrupt the terminal JSON receipt, while the Ollama response and _oa event envelopes remain intact."
  ],
  "isolation": [
    "API tests start only disposable loopback daemon fixtures with scratch configuration, in-memory/mock endpoints, and harmless Node output children. No live inference, benchmark, model loading, downloads, CUDA allocation or production daemon was started.",
    "The actual public runWithTUI test uses mocked backend responses and a genuine read-only FileReadTool against scratch files. Network fetch is stubbed; broker/preflight/background auxiliary inference are disabled in the fixture.",
    "The JSON CLI test injects the runner and GPU selection initializer; filesystem artifact checks use scratch project directories. No GPU toggle, service change, npm install/publish, dist rebuild or unrelated user-file mutation was performed."
  ],
  "limits": [
    "JSON CLI callbacks currently carry main-runner actions only. Child-agent transport is not expanded or conflated; parent IDs remain intact when supplied.",
    "Generic tool progress has no producer invocation ID. It is correlated only when exactly one active main action for that tool is known; concurrent ambiguous progress stays uncorrelated.",
    "The existing bounded storage policy for multi-megabyte tool arguments remains; full redacted result output and canonical visible message history are retained.",
    "These are isolated backend and transport checks. Actual browser/native visual verification is owned by the other agents and is not counted in this receipt.",
    "Repeated test API-server setup emits existing SIGINT/SIGTERM MaxListeners warnings; all assertions and clean teardown pass. No unrelated listener lifecycle refactor was included."
  ],
  "correctiveNotes": [
    "A regression-first JSON CLI test found that undefined canonical-ID properties from sanitized progress overwrote valid action identities. The sanitizer now omits absent keys, and the final callback test proves identity survives merging.",
    "Earlier formatter/worker option mismatch prevented the first Vitest run before any tests executed; final runs explicitly set minWorkers1/maxWorkers3.",
    "Review tightened explicit artifact-set authority and stale progress ordering after the first combined run. The final focused authority follow-up covers those changes and replaces its prior suites without increasing the unique total."
  ],
  "ownedFiles": [
    "packages/cli/src/tool-events.ts",
    "packages/cli/src/api/chat-agent-output.ts",
    "packages/cli/src/api/chat-session.ts",
    "packages/cli/src/api/serve.ts",
    "packages/cli/src/commands/run.ts",
    "packages/cli/src/tui/interactive.ts",
    "packages/cli/tests/tool-events.test.ts",
    "packages/cli/tests/run-json-tool-events.test.ts",
    "packages/cli/tests/chat-agent-output.test.ts",
    "packages/cli/tests/chat-session-tool-events.test.ts",
    "packages/cli/tests/tui-structured-memory-lifecycle.test.ts",
    "packages/cli/tests/web-chat-transport-lifecycle.test.ts",
    "packages/cli/tests/fixtures/web-chat-output-child.mjs"
  ],
  "sourceSha256": {
    "packages/cli/src/tool-events.ts": "da239513e37c2a4e527e0ae87b99674cd1524a017e5d91086c4bdee9a2590c65",
    "packages/cli/src/api/chat-agent-output.ts": "2d0060d1fe290bb39a1868e2cd9305264f6f2dac80664fb4ded2725843054eca",
    "packages/cli/src/api/chat-session.ts": "92745a12ffc69276205b2c05e42991ea3776512c2944fbf31b94cbcb33d83ee6",
    "packages/cli/src/api/serve.ts": "333cef4052d701249f27570937ff0064b61582c989b2fd2bec9ca11f46f33f9d",
    "packages/cli/src/commands/run.ts": "2c235802cbbdbce8601b03579ccc91cec36284c334d60cf3305d3ee71207fef5",
    "packages/cli/src/tui/interactive.ts": "b4d48ec27e3f1688b01ef125aacd99959e0d672a75849f5571f84f133aa57154",
    "packages/cli/tests/tool-events.test.ts": "2602f050c999faedf3e7a6fd3859321cf66553234c7069ccd04522efd26acd54",
    "packages/cli/tests/run-json-tool-events.test.ts": "f2d0039f11a132b91f120b48400b6201b292baa528dc794eb76b93818c95ceb6",
    "packages/cli/tests/chat-agent-output.test.ts": "d0d59e79225f254967b8339fdaa39c4c3275705b1035a85aa3ef503d06a424d2",
    "packages/cli/tests/chat-session-tool-events.test.ts": "f455a3339556fb206abe4598bebf9027ddc3522701f7fd5ead6387c88e6abec1",
    "packages/cli/tests/tui-structured-memory-lifecycle.test.ts": "96209dd414a67b9a5231fadb5b35d0168acc575480d9719ce7ef983a7fd745b0",
    "packages/cli/tests/web-chat-transport-lifecycle.test.ts": "a39c603204d0f86c8620fc8f4969747e6066e2e1eaa20cb8927465fbd366ae58",
    "packages/cli/tests/fixtures/web-chat-output-child.mjs": "9e95de20c4047db88ac3bce5215356b7bfeb063f53df4a04187ab9462ba9e826"
  }
}
