@piagent/platform 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (301) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +3 -3
  3. package/architecture/layers.json +96 -1
  4. package/docs/README.md +1 -0
  5. package/docs/architecture.md +1 -0
  6. package/docs/authority-manifest.md +1 -0
  7. package/docs/auto-delegation-policy.md +1 -0
  8. package/docs/capability-packs.md +1 -0
  9. package/docs/command-reference-vietnamese.md +5 -4
  10. package/docs/context-engine.md +1 -0
  11. package/docs/context-window-policy.md +1 -0
  12. package/docs/distribution-standard.md +8 -7
  13. package/docs/herdr-workflow.md +1 -0
  14. package/docs/mcp-and-tools.md +14 -9
  15. package/docs/memory-policy.md +1 -0
  16. package/docs/model-options.md +1 -0
  17. package/docs/oauth-providers.md +1 -0
  18. package/docs/operator-manual-vietnamese.md +15 -12
  19. package/docs/package-architecture-notes.md +1 -0
  20. package/docs/project-adapters.md +1 -0
  21. package/docs/project-onboarding.md +1 -0
  22. package/docs/publishing-for-teams.md +1 -0
  23. package/docs/quality-benchmark.md +1 -0
  24. package/docs/quickstart-vietnamese.md +3 -2
  25. package/docs/release-install-policy.md +7 -6
  26. package/docs/runtime-harness-standard.md +1 -0
  27. package/docs/runtime-policy-design.md +1 -0
  28. package/docs/runtime-quality-baseline.md +1 -0
  29. package/docs/security-redaction-benchmark.md +1 -0
  30. package/docs/security-threat-model.md +2 -1
  31. package/docs/subagent-orchestration-capabilities.md +1 -0
  32. package/docs/subagents-and-multiagent.md +1 -0
  33. package/docs/task-implementation-contract.md +1 -0
  34. package/docs/task-lifecycle-vietnamese.md +1 -0
  35. package/docs/team-onboarding.md +3 -2
  36. package/docs/third-party-neutrality.md +26 -0
  37. package/docs/usage-observability.md +1 -0
  38. package/docs/vercel-docs-site.md +1 -0
  39. package/docs/workflow-recipes.md +1 -0
  40. package/docs-site/architecture.html +1 -1
  41. package/docs-site/benchmark.html +1 -1
  42. package/docs-site/commands.html +1 -1
  43. package/docs-site/context-engine.html +1 -1
  44. package/docs-site/en/architecture.html +1 -1
  45. package/docs-site/en/benchmark.html +1 -1
  46. package/docs-site/en/commands.html +1 -1
  47. package/docs-site/en/context-engine.html +1 -1
  48. package/docs-site/en/index.html +1 -1
  49. package/docs-site/en/mcp-approval.html +1 -1
  50. package/docs-site/en/mcp-auth.html +1 -1
  51. package/docs-site/en/mcp-servers.html +1 -1
  52. package/docs-site/en/mcp.html +1 -1
  53. package/docs-site/en/permissions.html +1 -1
  54. package/docs-site/en/profiles.html +1 -1
  55. package/docs-site/en/quickstart.html +1 -1
  56. package/docs-site/en/runtime.html +1 -1
  57. package/docs-site/en/scope.html +1 -1
  58. package/docs-site/en/security.html +1 -1
  59. package/docs-site/en/team.html +1 -1
  60. package/docs-site/en/whats-new.html +1 -1
  61. package/docs-site/en/workflows.html +1 -1
  62. package/docs-site/index.html +1 -1
  63. package/docs-site/mcp-approval.html +1 -1
  64. package/docs-site/mcp-auth.html +1 -1
  65. package/docs-site/mcp-servers.html +1 -1
  66. package/docs-site/mcp.html +1 -1
  67. package/docs-site/permissions.html +1 -1
  68. package/docs-site/profiles.html +1 -1
  69. package/docs-site/quickstart.html +1 -1
  70. package/docs-site/runtime.html +1 -1
  71. package/docs-site/scope.html +1 -1
  72. package/docs-site/security.html +1 -1
  73. package/docs-site/team.html +1 -1
  74. package/docs-site/whats-new.html +1 -1
  75. package/docs-site/workflows.html +1 -1
  76. package/evals/fixtures/mutation-provenance-record.invalid.json +17 -0
  77. package/evals/fixtures/mutation-provenance-record.valid.json +27 -0
  78. package/evals/fixtures/piagent-webui/approval-v1.invalid.json +54 -0
  79. package/evals/fixtures/piagent-webui/approval-v1.valid.json +58 -0
  80. package/evals/fixtures/piagent-webui/attachment-v1.invalid.json +25 -0
  81. package/evals/fixtures/piagent-webui/attachment-v1.valid.json +25 -0
  82. package/evals/fixtures/piagent-webui/capabilities-v1.invalid.json +51 -0
  83. package/evals/fixtures/piagent-webui/capabilities-v1.valid.json +122 -0
  84. package/evals/fixtures/piagent-webui/commit-summary-v1.invalid.json +10 -0
  85. package/evals/fixtures/piagent-webui/commit-summary-v1.valid.json +25 -0
  86. package/evals/fixtures/piagent-webui/control-command-v1.invalid.json +37 -0
  87. package/evals/fixtures/piagent-webui/control-command-v1.valid.json +35 -0
  88. package/evals/fixtures/piagent-webui/diff-v1.invalid.json +13 -0
  89. package/evals/fixtures/piagent-webui/diff-v1.valid.json +141 -0
  90. package/evals/fixtures/piagent-webui/gateway-capabilities-v1.invalid.json +35 -0
  91. package/evals/fixtures/piagent-webui/gateway-capabilities-v1.valid.json +35 -0
  92. package/evals/fixtures/piagent-webui/gateway-protocol-v1.invalid.json +14 -0
  93. package/evals/fixtures/piagent-webui/gateway-protocol-v1.valid.json +14 -0
  94. package/evals/fixtures/piagent-webui/handoff-history-v1.invalid.json +16 -0
  95. package/evals/fixtures/piagent-webui/handoff-history-v1.valid.json +16 -0
  96. package/evals/fixtures/piagent-webui/model-catalog-v1.invalid.json +31 -0
  97. package/evals/fixtures/piagent-webui/model-catalog-v1.valid.json +43 -0
  98. package/evals/fixtures/piagent-webui/queue-v1.invalid.json +29 -0
  99. package/evals/fixtures/piagent-webui/queue-v1.valid.json +44 -0
  100. package/evals/fixtures/piagent-webui/recovery-history-v1.invalid.json +17 -0
  101. package/evals/fixtures/piagent-webui/recovery-history-v1.valid.json +20 -0
  102. package/evals/fixtures/piagent-webui/release-monitor-v1.invalid.json +12 -0
  103. package/evals/fixtures/piagent-webui/release-monitor-v1.valid.json +29 -0
  104. package/evals/fixtures/piagent-webui/review-state-v1.invalid.json +25 -0
  105. package/evals/fixtures/piagent-webui/review-state-v1.valid.json +38 -0
  106. package/evals/fixtures/piagent-webui/runtime-event-v2.invalid.json +49 -0
  107. package/evals/fixtures/piagent-webui/runtime-event-v2.valid.json +49 -0
  108. package/evals/fixtures/piagent-webui/session-catalog-v1.invalid.json +17 -0
  109. package/evals/fixtures/piagent-webui/session-catalog-v1.valid.json +58 -0
  110. package/evals/fixtures/piagent-webui/session-command-v1.invalid.json +19 -0
  111. package/evals/fixtures/piagent-webui/session-command-v1.valid.json +19 -0
  112. package/evals/fixtures/piagent-webui/snapshot-v1.invalid.json +5 -0
  113. package/evals/fixtures/piagent-webui/snapshot-v1.valid.json +191 -0
  114. package/evals/fixtures/piagent-webui/source-change-v1.invalid.json +57 -0
  115. package/evals/fixtures/piagent-webui/source-change-v1.valid.json +98 -0
  116. package/evals/fixtures/piagent-webui/source-mutation-v1.invalid.json +19 -0
  117. package/evals/fixtures/piagent-webui/source-mutation-v1.valid.json +38 -0
  118. package/evals/fixtures/piagent-webui/source-revert-v1.invalid.json +20 -0
  119. package/evals/fixtures/piagent-webui/source-revert-v1.valid.json +62 -0
  120. package/evals/fixtures/piagent-webui/subagent-tree-v1.invalid.json +26 -0
  121. package/evals/fixtures/piagent-webui/subagent-tree-v1.valid.json +39 -0
  122. package/evals/fixtures/piagent-webui/task-index-v1.invalid.json +15 -0
  123. package/evals/fixtures/piagent-webui/task-index-v1.valid.json +15 -0
  124. package/evals/fixtures/piagent-webui/task-timeline-v1.invalid.json +14 -0
  125. package/evals/fixtures/piagent-webui/task-timeline-v1.valid.json +16 -0
  126. package/evals/fixtures/piagent-webui/transcript-v1.invalid.json +35 -0
  127. package/evals/fixtures/piagent-webui/transcript-v1.valid.json +55 -0
  128. package/evals/fixtures/task-baseline-manifest.invalid.json +16 -0
  129. package/evals/fixtures/task-baseline-manifest.valid.json +41 -0
  130. package/evals/fixtures/verifier-file-snapshot.invalid.json +21 -0
  131. package/evals/fixtures/verifier-file-snapshot.valid.json +21 -0
  132. package/package.json +30 -3
  133. package/packages/piagent-core/benchmark/benchmark-candidate.d.ts +1 -0
  134. package/packages/piagent-core/benchmark/benchmark-forensics.d.ts +1 -0
  135. package/packages/piagent-core/benchmark/benchmark-ledger.d.ts +4 -0
  136. package/packages/piagent-core/benchmark/benchmark-record-validation.d.ts +1 -0
  137. package/packages/piagent-core/benchmark/benchmark-runtime.d.ts +1 -0
  138. package/packages/piagent-core/capabilities/capability-core.js +2 -2
  139. package/packages/piagent-core/capabilities/runtime-integrity.js +143 -0
  140. package/packages/piagent-core/extensions/piagent-guard.ts +62 -37
  141. package/packages/piagent-core/extensions/redaction-core.d.ts +2 -0
  142. package/packages/piagent-core/extensions/task-journal.js +30 -1
  143. package/packages/piagent-core/extensions/task-state.js +33 -36
  144. package/packages/piagent-core/mcp/mcp-server-catalog.js +5 -5
  145. package/packages/piagent-core/package.json +1 -1
  146. package/packages/piagent-core/runtime/hooks/session-start-hook.ts +2 -2
  147. package/packages/piagent-core/runtime/hooks/tool-call-hook.ts +5 -2
  148. package/packages/piagent-core/runtime/hooks/tool-result-hook.ts +20 -19
  149. package/packages/piagent-core/runtime/hooks/tool-result-metadata.ts +13 -0
  150. package/packages/piagent-core/runtime/input/chat-images.ts +2 -2
  151. package/packages/piagent-core/runtime/inspection/activity-event-adapter.ts +94 -0
  152. package/packages/piagent-core/runtime/inspection/approval-broker.ts +318 -0
  153. package/packages/piagent-core/runtime/inspection/commit-summary-projection.ts +59 -0
  154. package/packages/piagent-core/runtime/inspection/context-telemetry-inspection.ts +37 -0
  155. package/packages/piagent-core/runtime/inspection/criteria-links.ts +295 -0
  156. package/packages/piagent-core/runtime/inspection/diff-projection.ts +499 -0
  157. package/packages/piagent-core/runtime/inspection/git-filter-safety.ts +38 -0
  158. package/packages/piagent-core/runtime/inspection/git-numstat-adapter.ts +71 -0
  159. package/packages/piagent-core/runtime/inspection/git-status-adapter.ts +493 -0
  160. package/packages/piagent-core/runtime/inspection/git-tree-adapter.ts +108 -0
  161. package/packages/piagent-core/runtime/inspection/mcp-control.ts +10 -0
  162. package/packages/piagent-core/runtime/inspection/mutation-provenance-contract.ts +131 -0
  163. package/packages/piagent-core/runtime/inspection/mutation-provenance-recorder.ts +48 -0
  164. package/packages/piagent-core/runtime/inspection/mutation-provenance-store.ts +161 -0
  165. package/packages/piagent-core/runtime/inspection/project-runtime-inspection.ts +36 -0
  166. package/packages/piagent-core/runtime/inspection/review-state-contract.ts +108 -0
  167. package/packages/piagent-core/runtime/inspection/review-state-projection.ts +93 -0
  168. package/packages/piagent-core/runtime/inspection/review-state-store.ts +112 -0
  169. package/packages/piagent-core/runtime/inspection/runtime-event-store.ts +262 -0
  170. package/packages/piagent-core/runtime/inspection/same-process-bridge-proof.ts +103 -0
  171. package/packages/piagent-core/runtime/inspection/source-change-projection.ts +471 -0
  172. package/packages/piagent-core/runtime/inspection/source-evidence-contract.ts +139 -0
  173. package/packages/piagent-core/runtime/inspection/source-evidence-store.ts +315 -0
  174. package/packages/piagent-core/runtime/inspection/source-handoff-store.ts +70 -0
  175. package/packages/piagent-core/runtime/inspection/source-inspection-plan.ts +34 -0
  176. package/packages/piagent-core/runtime/inspection/source-mutation-projection.ts +164 -0
  177. package/packages/piagent-core/runtime/inspection/source-mutation-store.ts +168 -0
  178. package/packages/piagent-core/runtime/inspection/source-open-target.ts +38 -0
  179. package/packages/piagent-core/runtime/inspection/source-revert-projection.ts +147 -0
  180. package/packages/piagent-core/runtime/inspection/task-baseline-start-capture.ts +22 -0
  181. package/packages/piagent-core/runtime/inspection/task-compaction-history.ts +160 -0
  182. package/packages/piagent-core/runtime/inspection/task-control-journal.ts +131 -0
  183. package/packages/piagent-core/runtime/inspection/task-handoff-history.ts +95 -0
  184. package/packages/piagent-core/runtime/inspection/task-provenance-projection.ts +60 -0
  185. package/packages/piagent-core/runtime/inspection/task-recovery-timeline.ts +88 -0
  186. package/packages/piagent-core/runtime/inspection/task-run-index.ts +87 -0
  187. package/packages/piagent-core/runtime/inspection/task-source-projection.ts +401 -0
  188. package/packages/piagent-core/runtime/inspection/task-subagent-tree.ts +101 -0
  189. package/packages/piagent-core/runtime/inspection/text-diff.ts +60 -0
  190. package/packages/piagent-core/runtime/inspection/verifier-snapshot-contract.ts +114 -0
  191. package/packages/piagent-core/runtime/inspection/verifier-snapshot-store.ts +189 -0
  192. package/packages/piagent-core/runtime/inspection/webui-snapshot.ts +320 -0
  193. package/packages/piagent-core/runtime/inspection/workspace-file-reader.ts +132 -0
  194. package/packages/piagent-core/runtime/inspection/workspace-source-projection.ts +96 -0
  195. package/packages/piagent-core/runtime/inspection/zero-turn-conformance.ts +175 -0
  196. package/packages/piagent-core/runtime/orchestration/owned-work-budget.ts +68 -4
  197. package/packages/piagent-core/runtime/policy/source-index-transaction.ts +173 -0
  198. package/packages/piagent-core/runtime/policy/source-mutation-guard-binding.ts +42 -0
  199. package/packages/piagent-core/runtime/policy/source-mutation-guard.ts +184 -0
  200. package/packages/piagent-core/runtime/policy/source-worktree-transaction.ts +105 -0
  201. package/packages/piagent-core/runtime/product/activity-inspector-footer.ts +5 -3
  202. package/packages/piagent-core/runtime/product/activity-inspector.ts +85 -343
  203. package/packages/piagent-core/runtime/recovery/resume-state.ts +38 -1
  204. package/packages/piagent-core/runtime/registration/activity-inspector-command.ts +68 -14
  205. package/packages/piagent-core/runtime/registration/task-start-tool.ts +13 -14
  206. package/packages/piagent-core/runtime/session/model-authorship-state.ts +31 -3
  207. package/packages/piagent-core/runtime/session/runtime-state.ts +11 -1
  208. package/packages/piagent-webui/dist/client/assets/index-DjMntaK5.js +172 -0
  209. package/packages/piagent-webui/dist/client/assets/index-DwKCWbwd.css +1 -0
  210. package/packages/piagent-webui/dist/client/index.html +16 -0
  211. package/packages/piagent-webui/extension/attachment-store.ts +323 -0
  212. package/packages/piagent-webui/extension/held-message-queue.ts +311 -0
  213. package/packages/piagent-webui/extension/lifecycle-controller.ts +408 -0
  214. package/packages/piagent-webui/extension/lifecycle-event-adapter.ts +23 -0
  215. package/packages/piagent-webui/extension/piagent-webui.ts +470 -0
  216. package/packages/piagent-webui/extension/review-controller.ts +160 -0
  217. package/packages/piagent-webui/extension/same-session-bridge.ts +500 -0
  218. package/packages/piagent-webui/extension/session-options-controller.ts +281 -0
  219. package/packages/piagent-webui/extension/session-stream-adapter.ts +249 -0
  220. package/packages/piagent-webui/extension/source-mutation-controller.ts +215 -0
  221. package/packages/piagent-webui/extension/source-open-controller.ts +136 -0
  222. package/packages/piagent-webui/extension/source-revert-controller.ts +189 -0
  223. package/packages/piagent-webui/extension/terminal-session-adapter.ts +73 -0
  224. package/packages/piagent-webui/extension/vscode-handoff.ts +51 -0
  225. package/packages/piagent-webui/gateway/control-socket.ts +92 -0
  226. package/packages/piagent-webui/gateway/gateway-events.ts +60 -0
  227. package/packages/piagent-webui/gateway/gateway-protocol-service.ts +64 -0
  228. package/packages/piagent-webui/gateway/gateway-service.ts +215 -0
  229. package/packages/piagent-webui/gateway/gateway-session-stream.ts +110 -0
  230. package/packages/piagent-webui/gateway/mcp-auth-broker.ts +158 -0
  231. package/packages/piagent-webui/gateway/native-project-picker.ts +29 -0
  232. package/packages/piagent-webui/gateway/pi-host.ts +41 -0
  233. package/packages/piagent-webui/gateway/profile-state.ts +1 -0
  234. package/packages/piagent-webui/gateway/project-registry.ts +108 -0
  235. package/packages/piagent-webui/gateway/provider-auth-broker.ts +172 -0
  236. package/packages/piagent-webui/gateway/session-catalog.ts +128 -0
  237. package/packages/piagent-webui/gateway/session-command-controller.ts +237 -0
  238. package/packages/piagent-webui/gateway/session-command-store.ts +224 -0
  239. package/packages/piagent-webui/gateway/session-inspection-registry.ts +204 -0
  240. package/packages/piagent-webui/gateway/session-lease-store.ts +1 -0
  241. package/packages/piagent-webui/gateway/session-metadata-store.ts +152 -0
  242. package/packages/piagent-webui/gateway/session-runtime-supervisor.ts +485 -0
  243. package/packages/piagent-webui/ownership/gateway-runtime-context.ts +8 -0
  244. package/packages/piagent-webui/ownership/profile-state.ts +117 -0
  245. package/packages/piagent-webui/ownership/session-lease-store.ts +329 -0
  246. package/packages/piagent-webui/ownership/session-refs.ts +8 -0
  247. package/packages/piagent-webui/package.json +33 -0
  248. package/packages/piagent-webui/server/README.md +4 -0
  249. package/packages/piagent-webui/server/benchmark-release-monitor.ts +230 -0
  250. package/packages/piagent-webui/server/core-inspection-provider.ts +403 -0
  251. package/packages/piagent-webui/server/gateway-websocket.ts +143 -0
  252. package/packages/piagent-webui/server/http-security.ts +27 -0
  253. package/packages/piagent-webui/server/ipc-read-model-client.ts +89 -0
  254. package/packages/piagent-webui/server/loopback-server.ts +368 -0
  255. package/packages/piagent-webui/server/read-model-provider.ts +37 -0
  256. package/packages/piagent-webui/server/read-only-router.ts +105 -0
  257. package/packages/piagent-webui/server/session-auth.ts +88 -0
  258. package/packages/piagent-webui/server/sidecar-main.ts +86 -0
  259. package/packages/piagent-webui/server/sse-hub.ts +76 -0
  260. package/packages/piagent-webui/server/static-bundle.ts +40 -0
  261. package/packages/piagent-webui/server/transcript-projection.ts +110 -0
  262. package/schemas/mutation-provenance-record.schema.json +100 -0
  263. package/schemas/piagent-webui/approval-v1.schema.json +654 -0
  264. package/schemas/piagent-webui/attachment-v1.schema.json +267 -0
  265. package/schemas/piagent-webui/capabilities-v1.schema.json +729 -0
  266. package/schemas/piagent-webui/catalog-v1.json +240 -0
  267. package/schemas/piagent-webui/commit-summary-v1.schema.json +63 -0
  268. package/schemas/piagent-webui/common-v1.schema.json +479 -0
  269. package/schemas/piagent-webui/control-command-v1.schema.json +1780 -0
  270. package/schemas/piagent-webui/diff-v1.schema.json +826 -0
  271. package/schemas/piagent-webui/gateway-capabilities-v1.schema.json +136 -0
  272. package/schemas/piagent-webui/gateway-protocol-v1.schema.json +456 -0
  273. package/schemas/piagent-webui/handoff-history-v1.schema.json +92 -0
  274. package/schemas/piagent-webui/model-catalog-v1.schema.json +95 -0
  275. package/schemas/piagent-webui/queue-v1.schema.json +99 -0
  276. package/schemas/piagent-webui/recovery-history-v1.schema.json +144 -0
  277. package/schemas/piagent-webui/release-monitor-v1.schema.json +173 -0
  278. package/schemas/piagent-webui/review-state-v1.schema.json +206 -0
  279. package/schemas/piagent-webui/runtime-event-v2.schema.json +5206 -0
  280. package/schemas/piagent-webui/session-catalog-v1.schema.json +222 -0
  281. package/schemas/piagent-webui/session-command-v1.schema.json +390 -0
  282. package/schemas/piagent-webui/snapshot-v1.schema.json +2622 -0
  283. package/schemas/piagent-webui/source-change-v1.schema.json +763 -0
  284. package/schemas/piagent-webui/source-mutation-v1.schema.json +96 -0
  285. package/schemas/piagent-webui/source-revert-v1.schema.json +130 -0
  286. package/schemas/piagent-webui/subagent-tree-v1.schema.json +88 -0
  287. package/schemas/piagent-webui/task-index-v1.schema.json +74 -0
  288. package/schemas/piagent-webui/task-timeline-v1.schema.json +49 -0
  289. package/schemas/piagent-webui/transcript-v1.schema.json +243 -0
  290. package/schemas/task-baseline-manifest.schema.json +122 -0
  291. package/schemas/verifier-file-snapshot.schema.json +81 -0
  292. package/scripts/check-architecture.mjs +1 -0
  293. package/scripts/check-doc-languages.mjs +19 -2
  294. package/scripts/check-third-party-neutrality.mjs +43 -0
  295. package/scripts/install-global.sh +1 -1
  296. package/scripts/piagent-cli.mjs +17 -3
  297. package/scripts/piagent-dashboard.mjs +208 -0
  298. package/scripts/piagent-webui-launcher.mjs +121 -0
  299. package/scripts/typescript-loader.mjs +26 -1
  300. package/scripts/verify-local.sh +253 -0
  301. package/scripts/verify-release-identity.mjs +4 -1
@@ -0,0 +1,35 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-gateway-capabilities-v1",
4
+ "generatedAt": "2026-08-14T04:30:00.000Z",
5
+ "gatewayInstanceRef": "gateway_01",
6
+ "protocol": {
7
+ "minimum": 1,
8
+ "maximum": 1,
9
+ "selected": 1,
10
+ "compatibility": "ready"
11
+ },
12
+ "mode": "full",
13
+ "capabilities": {
14
+ "catalog": { "status": "available", "version": 1, "reasonCode": null },
15
+ "events": { "status": "available", "version": 1, "reasonCode": null },
16
+ "terminalAdapter": { "status": "available", "version": 1, "reasonCode": null },
17
+ "sessionRuntime": { "status": "available", "version": 1, "reasonCode": null },
18
+ "sessionActions": {
19
+ "create": { "status": "available", "version": 1, "reasonCode": null },
20
+ "send": { "status": "available", "version": 1, "reasonCode": null },
21
+ "abort": { "status": "available", "version": 1, "reasonCode": null },
22
+ "setModel": { "status": "available", "version": 1, "reasonCode": null },
23
+ "setThinking": { "status": "available", "version": 1, "reasonCode": null },
24
+ "setPermission": { "status": "available", "version": 1, "reasonCode": null },
25
+ "rename": { "status": "available", "version": 1, "reasonCode": null },
26
+ "pin": { "status": "available", "version": 1, "reasonCode": null },
27
+ "archive": { "status": "available", "version": 1, "reasonCode": null },
28
+ "unarchive": { "status": "available", "version": 1, "reasonCode": null },
29
+ "fork": { "status": "available", "version": 1, "reasonCode": null },
30
+ "acquire": { "status": "available", "version": 1, "reasonCode": null },
31
+ "release": { "status": "available", "version": 1, "reasonCode": null }
32
+ }
33
+ },
34
+ "reasonCode": null
35
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-gateway-protocol-v1",
4
+ "messageType": "request",
5
+ "requestId": "request_abcdefgh01",
6
+ "method": "sessions.get",
7
+ "params": {
8
+ "cursor": null,
9
+ "limit": 50,
10
+ "filter": "active",
11
+ "query": null,
12
+ "projectRef": null
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-gateway-protocol-v1",
4
+ "messageType": "request",
5
+ "requestId": "request_abcdefgh01",
6
+ "method": "sessions.list",
7
+ "params": {
8
+ "cursor": null,
9
+ "limit": 50,
10
+ "filter": "active",
11
+ "query": null,
12
+ "projectRef": null
13
+ }
14
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-handoff-history-v1",
4
+ "generatedAt": "2026-08-14T13:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": "task-active", "taskRunId": "task-active-run", "agentOperationId": null, "toolCallId": null },
6
+ "runRef": "run.fixture",
7
+ "state": "ready",
8
+ "historyRevision": "handoff-history.fixture",
9
+ "completeness": "complete",
10
+ "current": null,
11
+ "nextAction": { "action": "unknown", "stepRef": null, "reason": "Click to continue.", "exactCommandCount": 0, "dispatchable": true, "enforcementSafe": false },
12
+ "events": [],
13
+ "page": { "total": 0, "returned": 0, "truncated": false },
14
+ "warnings": [],
15
+ "health": { "state": "ok", "reasonCode": null, "message": null }
16
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-handoff-history-v1",
4
+ "generatedAt": "2026-08-14T13:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": "task-active", "taskRunId": "task-active-run", "agentOperationId": null, "toolCallId": null },
6
+ "runRef": "run.fixture",
7
+ "state": "ready",
8
+ "historyRevision": "handoff-history.fixture",
9
+ "completeness": "complete",
10
+ "current": { "handoffRef": "handoff.fixture", "generatedAt": "2026-08-14T12:30:00.000Z", "phase": "handoff", "taskOutcome": "pending", "gateDecision": "fail", "completionApproved": false, "requiredAuthority": "operator", "treeEvidenceCurrent": true, "latestVerifierMatchesCurrentTree": true, "changedFileCount": 2, "missingCount": 1, "projectedAction": "ask-operator" },
11
+ "nextAction": { "action": "inspect-handoff", "stepRef": null, "reason": "Review the latest handoff before continuing.", "exactCommandCount": 0, "dispatchable": false, "enforcementSafe": true },
12
+ "events": [{ "eventRef": "handoff-event.fixture", "evidenceRef": "telemetry.fixture", "sequence": 1, "recordedAt": "2026-08-14T12:30:00.000Z", "phase": "handoff", "completionApproved": false, "projectedAction": "ask-operator" }],
13
+ "page": { "total": 1, "returned": 1, "truncated": false },
14
+ "warnings": [],
15
+ "health": { "state": "ok", "reasonCode": null, "message": null }
16
+ }
@@ -0,0 +1,31 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-model-catalog-v1",
4
+ "generatedAt": "2026-08-13T15:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": null,
10
+ "taskRunId": null,
11
+ "agentOperationId": null,
12
+ "toolCallId": null
13
+ },
14
+ "revision": {
15
+ "runtimeRevision": "runtime_rev_01",
16
+ "taskRevision": null,
17
+ "controlRevision": null,
18
+ "workspaceRevision": null,
19
+ "indexRevision": null,
20
+ "approvalRevision": null,
21
+ "sessionOptionRevision": null,
22
+ "queueRevision": "queue_rev_01"
23
+ },
24
+ "state": "unavailable",
25
+ "catalogScope": "authenticated-all",
26
+ "effectScope": "session-and-user-default",
27
+ "activeModelRef": "model_01",
28
+ "activeThinkingLevel": "ultra",
29
+ "models": [{ "provider": "secret", "apiKey": "raw-secret" }],
30
+ "reasonCode": null
31
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-model-catalog-v1",
4
+ "generatedAt": "2026-08-13T15:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": null,
10
+ "taskRunId": null,
11
+ "agentOperationId": null,
12
+ "toolCallId": null
13
+ },
14
+ "revision": {
15
+ "runtimeRevision": "runtime_rev_01",
16
+ "taskRevision": null,
17
+ "controlRevision": null,
18
+ "workspaceRevision": null,
19
+ "indexRevision": null,
20
+ "approvalRevision": null,
21
+ "sessionOptionRevision": "session_option_rev_01",
22
+ "queueRevision": "queue_rev_01"
23
+ },
24
+ "state": "ready",
25
+ "catalogScope": "authenticated-all",
26
+ "effectScope": "session-and-user-default",
27
+ "activeModelRef": "model_01",
28
+ "activeThinkingLevel": "high",
29
+ "models": [
30
+ {
31
+ "modelRef": "model_01",
32
+ "provider": "provider-01",
33
+ "modelId": "model-01",
34
+ "displayName": "Model 01",
35
+ "reasoning": true,
36
+ "inputCapabilities": ["text", "image"],
37
+ "supportedThinkingLevels": ["off", "low", "medium", "high"],
38
+ "contextWindow": 200000,
39
+ "maxOutputTokens": 32000
40
+ }
41
+ ],
42
+ "reasonCode": null
43
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-queue-v1",
4
+ "generatedAt": "2026-08-13T14:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": null,
10
+ "taskRunId": null,
11
+ "agentOperationId": null,
12
+ "toolCallId": null
13
+ },
14
+ "revision": {
15
+ "runtimeRevision": "runtime_rev_01",
16
+ "taskRevision": null,
17
+ "controlRevision": null,
18
+ "workspaceRevision": null,
19
+ "indexRevision": null,
20
+ "approvalRevision": null,
21
+ "sessionOptionRevision": null,
22
+ "queueRevision": "queue_rev_01"
23
+ },
24
+ "state": "unavailable",
25
+ "heldCount": 1,
26
+ "quarantinedCount": 0,
27
+ "items": [{ "queueItemRef": "raw-secret", "exactText": "secret" }],
28
+ "reasonCode": null
29
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-queue-v1",
4
+ "generatedAt": "2026-08-13T14:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": null,
10
+ "taskRunId": null,
11
+ "agentOperationId": "operation_01",
12
+ "toolCallId": null
13
+ },
14
+ "revision": {
15
+ "runtimeRevision": "runtime_rev_01",
16
+ "taskRevision": null,
17
+ "controlRevision": null,
18
+ "workspaceRevision": null,
19
+ "indexRevision": null,
20
+ "approvalRevision": null,
21
+ "sessionOptionRevision": null,
22
+ "queueRevision": "queue_rev_01"
23
+ },
24
+ "state": "ready",
25
+ "heldCount": 1,
26
+ "quarantinedCount": 0,
27
+ "items": [
28
+ {
29
+ "queueItemRef": "queue_item_01",
30
+ "messageRequestId": "message_request_01",
31
+ "position": 0,
32
+ "state": "held",
33
+ "preview": "Continue after the current tool finishes.",
34
+ "redacted": false,
35
+ "truncated": false,
36
+ "attachmentCount": 0,
37
+ "previewDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
38
+ "createdAt": "2026-08-13T13:59:00.000Z",
39
+ "updatedAt": "2026-08-13T13:59:00.000Z",
40
+ "reasonCode": null
41
+ }
42
+ ],
43
+ "reasonCode": null
44
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-recovery-history-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": "task-active", "taskRunId": "task-active-run", "agentOperationId": null, "toolCallId": null },
6
+ "runRef": "run.fixture",
7
+ "state": "ready",
8
+ "historyRevision": "recovery-history.fixture",
9
+ "completeness": "complete",
10
+ "summary": { "contextCompactions": 1, "toolResultCompactions": 0, "compactedToolResults": 0 },
11
+ "recovery": { "decision": "unknown", "enforcementSafe": null, "latestCheckpointRef": null, "verifierState": "unknown", "invalidatedFileCount": null, "invalidatedFilesKnown": false, "handoffState": "unknown", "reasonCode": "invented-recovery" },
12
+ "retainedContent": { "access": "available", "exposed": true, "reasonCode": "raw-capture" },
13
+ "events": [],
14
+ "page": { "total": 0, "returned": 0, "truncated": false },
15
+ "warnings": [],
16
+ "health": { "state": "ok", "reasonCode": null, "message": null }
17
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-recovery-history-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": "task-active", "taskRunId": "task-active-run", "agentOperationId": null, "toolCallId": null },
6
+ "runRef": "run.fixture",
7
+ "state": "ready",
8
+ "historyRevision": "recovery-history.fixture",
9
+ "completeness": "complete",
10
+ "summary": { "contextCompactions": 1, "toolResultCompactions": 1, "compactedToolResults": 2 },
11
+ "recovery": { "decision": "paused", "enforcementSafe": true, "latestCheckpointRef": "checkpoint.fixture", "verifierState": "stale", "invalidatedFileCount": 1, "invalidatedFilesKnown": true, "handoffState": "available", "reasonCode": "recovery-paused" },
12
+ "retainedContent": { "access": "omitted", "exposed": false, "reasonCode": "protected-runtime-evidence" },
13
+ "events": [
14
+ { "eventRef": "compaction.context", "evidenceRef": "telemetry.context", "sequence": 1, "recordedAt": "2026-08-14T10:00:00.000Z", "kind": "context-compaction", "title": "Context compacted", "detail": "threshold", "toolName": null, "originalChars": null, "originalLines": null, "captureCount": null, "willRetry": false, "fromExtension": false },
15
+ { "eventRef": "compaction.tool", "evidenceRef": "telemetry.tool", "sequence": 2, "recordedAt": "2026-08-14T10:01:00.000Z", "kind": "tool-result-compaction", "title": "Tool result compacted", "detail": null, "toolName": "bash", "originalChars": 120000, "originalLines": 3000, "captureCount": 2, "willRetry": null, "fromExtension": null }
16
+ ],
17
+ "page": { "total": 2, "returned": 2, "truncated": false },
18
+ "warnings": [],
19
+ "health": { "state": "ok", "reasonCode": null, "message": null }
20
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-release-monitor-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": null, "taskRunId": null, "agentOperationId": null, "toolCallId": null },
6
+ "state": "ready",
7
+ "monitorRevision": "release-monitor.fixture",
8
+ "benchmark": { "state": "missing", "runs": [], "warnings": [], "page": { "total": 0, "returned": 0, "truncated": false } },
9
+ "release": { "state": "missing", "reportRef": null, "generatedAt": null, "sourceState": "unknown", "localSafeGate": "unknown", "rcAssembly": "unknown", "beta": "unknown", "gaRelease": "unknown", "blockerCount": 0, "blockers": [], "authorization": { "releaseCommit": false, "tag": false, "publish": true, "push": false } },
10
+ "actions": { "runBenchmark": true, "resumeBenchmark": false, "releaseCommit": false, "tag": false, "publish": false, "push": false },
11
+ "health": { "state": "ok", "reasonCode": null, "message": null }
12
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-release-monitor-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": { "projectRef": "project.fixture", "runtimeInstanceId": "runtime.fixture", "sessionRef": "session.fixture", "taskId": null, "taskRunId": null, "agentOperationId": null, "toolCallId": null },
6
+ "state": "ready",
7
+ "monitorRevision": "release-monitor.fixture",
8
+ "benchmark": {
9
+ "state": "ready",
10
+ "runs": [
11
+ {
12
+ "runRef": "benchmark.fixture", "suiteId": "production-v1", "lifecycle": "completed", "evidenceState": "complete", "sourceState": "current",
13
+ "startedAt": "2026-08-14T10:00:00.000Z", "updatedAt": "2026-08-14T11:00:00.000Z", "completedRuns": 12, "expectedRuns": 12,
14
+ "verdict": "passed", "releaseGate": "passed", "tokenClaimAllowed": true, "claimTier": "production-shadow",
15
+ "scores": { "quality": 9.1, "safety": 10, "reliability": 9.5, "workflow": 9, "efficiency": 8.8, "overall": 9.3 }
16
+ }
17
+ ],
18
+ "warnings": [],
19
+ "page": { "total": 1, "returned": 1, "truncated": false }
20
+ },
21
+ "release": {
22
+ "state": "ready", "reportRef": "release.fixture", "generatedAt": "2026-08-14T11:30:00.000Z", "sourceState": "current",
23
+ "localSafeGate": "passed", "rcAssembly": "ready", "beta": "blocked", "gaRelease": "blocked", "blockerCount": 1,
24
+ "blockers": ["explicit operator approval missing"],
25
+ "authorization": { "releaseCommit": false, "tag": false, "publish": false, "push": false }
26
+ },
27
+ "actions": { "runBenchmark": false, "resumeBenchmark": false, "releaseCommit": false, "tag": false, "publish": false, "push": false },
28
+ "health": { "state": "ok", "reasonCode": null, "message": null }
29
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-review-state-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": "task_01",
10
+ "taskRunId": "task_run_01",
11
+ "agentOperationId": null,
12
+ "toolCallId": null
13
+ },
14
+ "state": "reviewed",
15
+ "target": null,
16
+ "recordedState": "reviewed",
17
+ "recordedAt": "2026-08-14T12:00:00.000Z",
18
+ "evidenceRef": "review_evidence_01",
19
+ "reasonCode": null,
20
+ "health": {
21
+ "state": "ok",
22
+ "reasonCode": null,
23
+ "message": null
24
+ }
25
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-review-state-v1",
4
+ "generatedAt": "2026-08-14T12:00:00.000Z",
5
+ "identity": {
6
+ "projectRef": "project_01",
7
+ "runtimeInstanceId": "runtime_01",
8
+ "sessionRef": "session_01",
9
+ "taskId": "task_01",
10
+ "taskRunId": "task_run_01",
11
+ "agentOperationId": null,
12
+ "toolCallId": null
13
+ },
14
+ "state": "reviewed",
15
+ "target": {
16
+ "view": "task",
17
+ "fileRef": "file_01",
18
+ "diffRef": "diff_01",
19
+ "taskRevision": "task_rev_01",
20
+ "workspaceRevision": "workspace_rev_01",
21
+ "indexRevision": "index_rev_01",
22
+ "viewRevision": "view_rev_01",
23
+ "fileRevision": "file_rev_01",
24
+ "baseDigest": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
25
+ "currentDigest": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
26
+ "patchPreimage": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
27
+ "contentDigest": "sha256:3333333333333333333333333333333333333333333333333333333333333333"
28
+ },
29
+ "recordedState": "reviewed",
30
+ "recordedAt": "2026-08-14T12:00:00.000Z",
31
+ "evidenceRef": "review_evidence_01",
32
+ "reasonCode": null,
33
+ "health": {
34
+ "state": "ok",
35
+ "reasonCode": null,
36
+ "message": null
37
+ }
38
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "eventId": "event_01",
4
+ "eventCursor": "cursor_01",
5
+ "writerSequence": 1,
6
+ "recordedAt": "2026-08-13T09:06:00.000Z",
7
+ "sourceObservedAt": "2026-08-13T09:06:00.000Z",
8
+ "projectRef": "project_01",
9
+ "runtimeInstanceId": "runtime_01",
10
+ "sessionRef": "session_01",
11
+ "taskId": null,
12
+ "taskRunId": null,
13
+ "agentOperationId": null,
14
+ "turnIndex": null,
15
+ "messageRef": null,
16
+ "toolCallId": null,
17
+ "revision": {
18
+ "runtimeRevision": "runtime_rev_01",
19
+ "taskRevision": null,
20
+ "controlRevision": null,
21
+ "workspaceRevision": null,
22
+ "indexRevision": null,
23
+ "approvalRevision": null,
24
+ "sessionOptionRevision": null,
25
+ "queueRevision": null
26
+ },
27
+ "kind": "runtime.started",
28
+ "correlation": {
29
+ "commandId": null,
30
+ "messageRequestId": null,
31
+ "replacementId": null,
32
+ "approvalRequestId": null,
33
+ "causationEventId": null,
34
+ "idempotencyKeyDigest": null
35
+ },
36
+ "evidence": "observed",
37
+ "payload": {
38
+ "connectionState": "connected",
39
+ "operationState": "idle",
40
+ "buildRef": "runtime_build_01",
41
+ "capabilitySnapshotRef": "capabilities_01",
42
+ "sessionFile": "/private/session.jsonl"
43
+ },
44
+ "redaction": {
45
+ "applied": false,
46
+ "valuesRemoved": 0,
47
+ "truncated": false
48
+ }
49
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "schemaVersion": 2,
3
+ "eventId": "event_01",
4
+ "eventCursor": "cursor_01",
5
+ "writerSequence": 1,
6
+ "recordedAt": "2026-08-13T09:06:00.000Z",
7
+ "sourceObservedAt": "2026-08-13T09:06:00.000Z",
8
+ "projectRef": "project_01",
9
+ "runtimeInstanceId": "runtime_01",
10
+ "sessionRef": "session_01",
11
+ "taskId": null,
12
+ "taskRunId": null,
13
+ "agentOperationId": null,
14
+ "turnIndex": null,
15
+ "messageRef": null,
16
+ "toolCallId": null,
17
+ "revision": {
18
+ "runtimeRevision": "runtime_rev_01",
19
+ "taskRevision": null,
20
+ "controlRevision": null,
21
+ "workspaceRevision": null,
22
+ "indexRevision": null,
23
+ "approvalRevision": null,
24
+ "sessionOptionRevision": null,
25
+ "queueRevision": null
26
+ },
27
+ "kind": "runtime.started",
28
+ "correlation": {
29
+ "commandId": null,
30
+ "messageRequestId": null,
31
+ "replacementId": null,
32
+ "approvalRequestId": null,
33
+ "causationEventId": null,
34
+ "idempotencyKeyDigest": null
35
+ },
36
+ "evidence": "observed",
37
+ "payload": {
38
+ "connectionState": "connected",
39
+ "operationState": "idle",
40
+ "buildRef": "runtime_build_01",
41
+ "capabilitySnapshotRef": "capabilities_01",
42
+ "reasonCode": null
43
+ },
44
+ "redaction": {
45
+ "applied": false,
46
+ "valuesRemoved": 0,
47
+ "truncated": false
48
+ }
49
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-session-catalog-v1",
4
+ "generatedAt": "2026-08-14T04:30:00.000Z",
5
+ "gatewayInstanceRef": "gateway_01",
6
+ "state": "unavailable",
7
+ "catalogRevision": "invented_revision",
8
+ "sessions": [],
9
+ "page": {
10
+ "limit": 50,
11
+ "returned": 0,
12
+ "total": 0,
13
+ "nextCursor": null,
14
+ "truncated": false
15
+ },
16
+ "reasonCode": "gateway-offline"
17
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-session-catalog-v1",
4
+ "generatedAt": "2026-08-14T04:30:00.000Z",
5
+ "gatewayInstanceRef": "gateway_01",
6
+ "state": "ready",
7
+ "catalogRevision": "catalog_rev_01",
8
+ "sessions": [
9
+ {
10
+ "sessionRef": "session_01",
11
+ "projectRef": "project_01",
12
+ "title": "Build the Session Hub",
13
+ "projectLabel": "pi-company-platform",
14
+ "preview": "Implementing the durable gateway contract.",
15
+ "createdAt": "2026-08-14T03:00:00.000Z",
16
+ "updatedAt": "2026-08-14T04:29:59.000Z",
17
+ "state": "gateway-owned",
18
+ "liveState": "idle",
19
+ "pinned": true,
20
+ "archived": false,
21
+ "unread": false,
22
+ "composerAvailable": true,
23
+ "needsAttention": false,
24
+ "modelLabel": "Claude Sonnet",
25
+ "thinkingLevel": "high",
26
+ "contextUsage": {
27
+ "usedTokens": 24000,
28
+ "contextWindow": 200000,
29
+ "ratio": 0.12,
30
+ "state": "known"
31
+ },
32
+ "task": {
33
+ "taskRef": "task_01",
34
+ "summary": "Ship durable session management",
35
+ "outcome": "pending",
36
+ "progressCompleted": 2,
37
+ "progressTotal": 8
38
+ },
39
+ "owner": {
40
+ "kind": "gateway",
41
+ "ownerEpoch": "owner_epoch_01",
42
+ "gatewayInstanceRef": "gateway_01",
43
+ "runtimeInstanceRef": "runtime_01",
44
+ "continuity": "exact"
45
+ },
46
+ "sessionRevision": "session_rev_01",
47
+ "reasonCode": null
48
+ }
49
+ ],
50
+ "page": {
51
+ "limit": 50,
52
+ "returned": 1,
53
+ "total": 1,
54
+ "nextCursor": null,
55
+ "truncated": false
56
+ },
57
+ "reasonCode": null
58
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-session-command-v1",
4
+ "messageType": "command",
5
+ "commandId": "command_01",
6
+ "idempotencyKey": "session_send_01_abcdefgh",
7
+ "action": "session.send",
8
+ "requestedAt": "2026-08-14T04:30:00.000Z",
9
+ "expiresAt": "2026-08-14T04:35:00.000Z",
10
+ "sessionRef": "session_01",
11
+ "expectedCatalogRevision": "catalog_rev_01",
12
+ "expectedSessionRevision": "session_rev_01",
13
+ "payload": {
14
+ "delivery": "steer",
15
+ "message": "Change direction.",
16
+ "messageRequestId": "message_request_01",
17
+ "expectedOperationRef": null
18
+ }
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-session-command-v1",
4
+ "messageType": "command",
5
+ "commandId": "command_01",
6
+ "idempotencyKey": "session_send_01_abcdefgh",
7
+ "action": "session.send",
8
+ "requestedAt": "2026-08-14T04:30:00.000Z",
9
+ "expiresAt": "2026-08-14T04:35:00.000Z",
10
+ "sessionRef": "session_01",
11
+ "expectedCatalogRevision": "catalog_rev_01",
12
+ "expectedSessionRevision": "session_rev_01",
13
+ "payload": {
14
+ "delivery": "new-operation",
15
+ "message": "Continue the gateway implementation.",
16
+ "messageRequestId": "message_request_01",
17
+ "expectedOperationRef": null
18
+ }
19
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "version": "piagent-webui-snapshot-v1",
4
+ "sessionId": "/raw/private/session.jsonl"
5
+ }