harness-everything 0.57.4 → 1.0.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.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.releaserc.json +2 -0
- package/AGENTS.md +8 -2
- package/CHANGELOG.md +23 -0
- package/README.md +4 -4
- package/benchmarks/results/live-host/agy-2026-11-22/README.md +49 -0
- package/benchmarks/results/live-host/agy-2026-11-23/README.md +48 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md +40 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/edit-state-final.json +11 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/events-2026-11-24.jsonl +103 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/host-version.txt +3 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/live-event-trace-probe.js +11 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/plugin-load-lines.txt +2 -0
- package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/reminder-excerpt.txt +1 -0
- package/ci/doc-capability-consistency.test.js +15 -3
- package/ci/lib/opencode-v2-driver.js +169 -0
- package/ci/mechanism-2ao-plugin-sync.test.js +235 -2
- package/ci/mechanism-2n-opencode-plugin.test.js +387 -223
- package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +24 -15
- package/ci/mechanism-2u-issue-42-regressions.test.js +41 -2
- package/ci/mechanism-2w-platform-compatibility.test.js +29 -5
- package/ci/mechanism-2x-release-automation.test.js +3 -1
- package/ci/mechanism-30-opencode-plugin-loadability.test.js +78 -45
- package/ci/mechanism-338-opencode-async.test.js +367 -194
- package/ci/mechanism-341-opencode-lane.test.js +143 -183
- package/ci/mechanism-39-opencode-verify-outcomes.test.js +118 -86
- package/ci/mechanism-394-opencode-ledger-lesson.test.js +46 -97
- package/ci/mechanism-397-opencode-observations.test.js +58 -47
- package/ci/mechanism-453-opencode-v2-driver.test.js +51 -0
- package/ci/mechanism-453-opencode-v2-only-events.test.js +241 -0
- package/ci/mechanism-agy-hooks.test.js +1096 -0
- package/ci/mechanism-agy-plugin-package.test.js +76 -0
- package/ci/telemetry.test.js +31 -24
- package/docs/architecture.md +4 -2
- package/docs/platform-capabilities.md +62 -26
- package/docs/platform-compatibility.json +41 -6
- package/docs/system-one-observations.md +1 -1
- package/docs/telemetry.md +1 -1
- package/docs/troubleshooting.md +2 -2
- package/hooks/scripts/agy-post-tool.js +124 -0
- package/hooks/scripts/agy-pre-invocation.js +185 -0
- package/hooks/scripts/agy-pre-tool.js +158 -0
- package/hooks/scripts/agy-session-start.js +54 -0
- package/hooks/scripts/agy-stop.js +152 -0
- package/hooks/scripts/lib/agy-adapter-core.js +168 -0
- package/hooks/scripts/state-persist.js +50 -10
- package/opencode-plugin/README.md +60 -66
- package/opencode-plugin/index.mjs +11 -13
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.antigravity-plugin/plugin.json +18 -0
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/scripts/agy-post-tool.js +124 -0
- package/plugins/harness-everything/hooks/scripts/agy-pre-invocation.js +185 -0
- package/plugins/harness-everything/hooks/scripts/agy-pre-tool.js +158 -0
- package/plugins/harness-everything/hooks/scripts/agy-session-start.js +54 -0
- package/plugins/harness-everything/hooks/scripts/agy-stop.js +152 -0
- package/plugins/harness-everything/hooks/scripts/lib/agy-adapter-core.js +168 -0
- package/plugins/harness-everything/hooks/scripts/state-persist.js +50 -10
- package/plugins/harness-everything/hooks.json +44 -0
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/rules/AGENTS.md +117 -0
- package/sbom.cdx.json +12 -12
- package/scripts/plugin-sync.js +105 -14
- package/scripts/sync-openai-plugin.js +16 -1
- package/scripts/sync-release-version.js +1 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "harness-everything",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
|
|
13
|
-
"version": "0.
|
|
13
|
+
"version": "1.0.0",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Miya Daniel"
|
|
16
16
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "harness-everything",
|
|
3
3
|
"description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Miya Daniel"
|
|
7
7
|
},
|
package/.releaserc.json
CHANGED
|
@@ -93,8 +93,10 @@
|
|
|
93
93
|
"*/**/SKILL.md",
|
|
94
94
|
"plugins/harness-everything/plugin.json",
|
|
95
95
|
"plugins/harness-everything/.codex-plugin/plugin.json",
|
|
96
|
+
"plugins/harness-everything/.antigravity-plugin/plugin.json",
|
|
96
97
|
"plugins/harness-everything/skills",
|
|
97
98
|
"plugins/harness-everything/hooks",
|
|
99
|
+
"plugins/harness-everything/rules",
|
|
98
100
|
"opencode-plugin/plugin.json"
|
|
99
101
|
],
|
|
100
102
|
"message": "chore(release): ${nextRelease.version} [skip ci]"
|
package/AGENTS.md
CHANGED
|
@@ -37,7 +37,7 @@ flowchart LR
|
|
|
37
37
|
| `<skill-name>/SKILL.md` | One canonical skill per top-level directory. Frontmatter: `name`, `description`, `metadata.author`, `metadata.version`. |
|
|
38
38
|
| `hooks/` | Claude Code lifecycle hooks and shared mechanisms (circuit breaker, workflow/action/scope guards, stop gates). Not every host packages every hook. |
|
|
39
39
|
| `harness-everything/scripts/` | Runtime: kernel/tier routing, workflow contract, verification, bootstrap, self-heal. |
|
|
40
|
-
| `opencode-plugin/` | OpenCode native plugin. Mechanism-tested, with partial live-host evidence (see the boundary below). |
|
|
40
|
+
| `opencode-plugin/` | OpenCode V2 native plugin (OpenCode 1.x / V1 unsupported). Mechanism-tested, with partial live-host evidence (see the boundary below). |
|
|
41
41
|
| `.agents/plugins/` + `plugins/harness-everything/` | Local OpenAI/Codex marketplace + `.codex-plugin` package with canonical skill copies and packaged session/prompt hooks. |
|
|
42
42
|
| `submission/openai/` | Public OpenAI Skills-only listing/test inputs. The public artifact does not include local `.codex-plugin` lifecycle hooks. |
|
|
43
43
|
| `evals/<skill>/` | Trigger/routing eval per skill (waza format). Required for every canonical routed skill. |
|
|
@@ -51,7 +51,13 @@ flowchart LR
|
|
|
51
51
|
|
|
52
52
|
## OpenCode evidence boundary
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
- **Support boundary (V2-only, #453):** Harness supports the OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported.
|
|
55
|
+
- New features, fixes, tests, and host compatibility work target V2 only. No V1 public entrypoint, V1-only event fallback, V1 hook registration, or compatibility mode may be added.
|
|
56
|
+
- Retain historical V1 artifacts, but never promote them to current V2 capability evidence.
|
|
57
|
+
- Reintroducing V1 support requires an explicit owner-approved support-contract change; it is not a routine compatibility fix.
|
|
58
|
+
- State the V2 API family as the supported boundary. Tested V2 versions are recorded separately (`2.1.3` server-log load-only; `2.1.4` limited session workspace trace; and one isolated `2.1.4` macOS 26.6.2 [V2 lifecycle trace](benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) establishing V2 default-export load, V2 tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server — standalone `opencode run` exits before verification finishes; router/context injection, observations, ledger lessons, session create/delete reset, cancellation, global scope, npm install, and other versions/OSes were not exercised); none establishes a validated minimum patch version or coverage of every V2 release.
|
|
59
|
+
|
|
60
|
+
**Historical / unsupported V1 evidence:** the retained [OpenCode evidence](benchmarks/results/live-host/opencode-2026-09-16/README.md) documents project-scope `.js` loading and edit/verification state on OpenCode 1.18.31 (macOS). It is preserved as historical/unsupported evidence only and does not establish current V2 capability:
|
|
55
61
|
|
|
56
62
|
- The final snapshot is post-reset (`hardLock: false`, `count: 1`).
|
|
57
63
|
- Hard lock is only an interactive observation with no retained blocked-tool trace.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.0.0](https://github.com/dyphn1/Harness-everything/compare/v0.58.0...v1.0.0) (2026-11-24)
|
|
6
|
+
|
|
7
|
+
### ⚠ BREAKING CHANGES
|
|
8
|
+
|
|
9
|
+
* **opencode:** OpenCode 1.x / the V1 HarnessEnforcement named export is no longer supported.
|
|
10
|
+
|
|
11
|
+
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
12
|
+
Claude-Session: https://claude.ai/code/session_01RPz4xUrN12wGoL19istZUE
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **opencode:** support only the OpenCode V2 plugin API ([#453](https://github.com/dyphn1/Harness-everything/issues/453)) ([db1a7d5](https://github.com/dyphn1/Harness-everything/commit/db1a7d5f3089dfeb6069d341c60d56683cbbd425))
|
|
17
|
+
|
|
18
|
+
## [0.58.0](https://github.com/dyphn1/Harness-everything/compare/v0.57.4...v0.58.0) (2026-11-23)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **plugin:** add native antigravity plugin and lifecycle hooks ([#513](https://github.com/dyphn1/Harness-everything/issues/513)) ([2c9cd88](https://github.com/dyphn1/Harness-everything/commit/2c9cd881c18ca3e72bcd79b9493cfb5761196022)), closes [#510](https://github.com/dyphn1/Harness-everything/issues/510)
|
|
23
|
+
|
|
5
24
|
## [0.57.4](https://github.com/dyphn1/Harness-everything/compare/v0.57.3...v0.57.4) (2026-11-22)
|
|
6
25
|
|
|
7
26
|
### Bug Fixes
|
|
@@ -197,6 +216,10 @@ All notable changes to this project are documented in this file.
|
|
|
197
216
|
|
|
198
217
|
## [Unreleased]
|
|
199
218
|
|
|
219
|
+
### BREAKING CHANGES
|
|
220
|
+
|
|
221
|
+
* **opencode:** support OpenCode V2 plugin API only; OpenCode 1.x / V1 is unsupported (#453). Removed the public `HarnessEnforcement` named V1 factory export, host `session.idle`, and legacy session-id event fallbacks; the V2 default export (`{ id, setup(ctx) }`) is now the only public surface. Historical OpenCode 1.18.31 evidence is retained for provenance only and does not establish V2 support.
|
|
222
|
+
|
|
200
223
|
- Codex defers exact Issue comments and completed closes to native host permissions (#508).
|
|
201
224
|
|
|
202
225
|
- OpenCode V2: accept the live `shell` tool name alongside `bash` for ledger lesson injection and turn observations, with live-shape mechanism rows (#509).
|
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Harness deliberately follows a **minimal rails, maximum freedom** design: semant
|
|
|
31
31
|
| **System Audit** | Blindly assumes shell syntax | Requires manual shell check | Uses environment detection and explicit verification paths instead of assuming one shell/runtime |
|
|
32
32
|
| **Memory** | Resets on every new chat session | Static text rules | Stateful hook/plugin integrations can persist bounded runtime state; instruction-only integrations cannot |
|
|
33
33
|
|
|
34
|
-
The exact "Harness" behavior depends on the installation surface. Claude Code has the broadest currently verified lifecycle-hook coverage. OpenCode
|
|
34
|
+
The exact "Harness" behavior depends on the installation surface. Claude Code has the broadest currently verified lifecycle-hook coverage. OpenCode supports the **V2 plugin API only** (OpenCode 1.x / V1 is unsupported) with deterministic V2 mechanism tests and bounded V2 live evidence (one isolated `2.1.4` macOS 26.6.2 V2 lifecycle trace covering default-export load, tool hooks, `session.execution.succeeded`, and completion → verification → reminder delivery on a long-lived server, plus `2.1.3` server-log load-only and `2.1.4` workspace traces; router/context injection, observations, ledger lessons, session create/delete reset, cancellation, global scope, npm install, and other versions/OSes remain unverified), while the retained OpenCode 1.18.31 (macOS) artifact is historical/unsupported V1 evidence only. Codex has both an advisory `--codex` installer path and a **local OpenAI plugin** path with mechanism-tested session, prompt, supported-tool, subagent, and stop hooks. The public OpenAI **Skills-only** submission is narrower and does not include those local lifecycle hooks. See [Supported AI IDEs & Tools](#supported-ai-ides--tools) and [docs/platform-capabilities.md](docs/platform-capabilities.md).
|
|
35
35
|
|
|
36
36
|
### When should I use Harness?
|
|
37
37
|
* You regularly use agentic coding tools (like Claude Code, Cursor, or Copilot) on medium-to-large codebases.
|
|
@@ -176,12 +176,12 @@ Harness operates through six core cognitive concepts:
|
|
|
176
176
|
|
|
177
177
|
The authoritative current matrix is [docs/platform-capabilities.md](docs/platform-capabilities.md). The important distinction is that **one host can have multiple Harness installation surfaces**.
|
|
178
178
|
|
|
179
|
-
[`opencode-plugin/`](opencode-plugin/) (`index.mjs`)
|
|
179
|
+
[`opencode-plugin/`](opencode-plugin/) (`index.mjs`) targets the **OpenCode V2 plugin API only** (OpenCode 1.x / V1 is unsupported, #453) via its default export (`{ id, setup(ctx) }`: `prompt`/`context`, `tool.execute.before`/`.after`, and `session.execution.succeeded`). `ci/mechanism-2n-opencode-plugin.test.js` and `ci/mechanism-2p-opencode-v2-entrypoint.test.js` drive the V2 default export against V2 host-shaped mock contexts. Tested V2 live evidence includes an isolated `2.1.4` (macOS 26.6.2) [V2 lifecycle trace](benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/README.md) (one run on a long-lived server establishing V2 default-export load, tool hooks, V2 event envelope + `session.execution.succeeded`, and completion → verification → reminder delivery; standalone `opencode run` exits before verification finishes), alongside `2.1.3` macOS server-log load-only and `2.1.4` macOS [session workspace trace](benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md); router/context injection, observation recording, ledger lessons, session create/delete reset, cancellation, and a validated minimum patch version remain unverified. Retained historical/unsupported V1 evidence documents project-scope `.js` plugin loading and edit/verification state on OpenCode 1.18.31 (macOS): [live-host evidence](benchmarks/results/live-host/opencode-2026-09-16/README.md). That snapshot is historical and does not establish current V2 capability: it is post-reset, the old hard-lock was only an interactive observation with no retained blocked-tool trace, and reflection was operator-seeded then agent-rewritten. The former third-failure reflection boundary and hard-lock path are retired under [#394](https://github.com/dyphn1/Harness-everything/issues/394); this evidence does not establish current host behavior or behavioral effectiveness. Install with a **`.js`** destination name: OpenCode silently ignores `.mjs` (issue #127, guarded by `test:opencode:loadability`). Global scope, npm-package installation, and other host versions remain unverified.
|
|
180
180
|
|
|
181
181
|
| AI Agent Tool / Surface | Integration Method | Local Target Location | Enforcement claim |
|
|
182
182
|
|---|---|---|---|
|
|
183
183
|
| **Claude Code** | Native lifecycle hooks (`PreToolUse`, `PostToolUse`, `SessionStart`, `UserPromptSubmit`, `Stop`) | `.claude/settings.json`, `.claude/skills/`, `.claude/agents/` | Semantic workflow contracts are reminder-observed; the former Rule-of-3 reflection path is retired, while explicit permission boundaries remain |
|
|
184
|
-
| **OpenCode** | Native plugin module ([`opencode-plugin/index.mjs`](opencode-plugin/index.mjs), install as `harness-enforcement.js
|
|
184
|
+
| **OpenCode** | Native V2 plugin module ([`opencode-plugin/index.mjs`](opencode-plugin/index.mjs), install as `harness-enforcement.js`; OpenCode 1.x / V1 unsupported) | `.opencode/plugins/` | **Mechanism-tested on OpenCode V2; partial V2 live trace** (`2.1.4` macOS 26.6.2 long-lived server load, tool hooks, `session.execution.succeeded`, completion → verification → reminder; `2.1.3` server-log load-only; `2.1.4` workspace trace; router/context injection, observations, ledger lessons, reset/cancellation, global scope, and other versions/OSes unverified); historical 1.18.31 artifact is unsupported V1 evidence only; former third-failure reflection and hard-lock paths are retired under #394 |
|
|
185
185
|
| **Codex — general installer path** | Skills + `AGENTS.md` instructions | `AGENTS.md` + repo-scoped `.agents/skills/` | **Instruction/advisory delivery only**; semantic MUST/SHOULD/MAY still applies, without a hard-enforcement claim |
|
|
186
186
|
| **Codex / local OpenAI plugin** | `.codex-plugin` package with session, prompt, supported-tool, subagent, and stop hooks plus 27 canonical skills | `.agents/plugins/marketplace.json` → `plugins/harness-everything/` | **Mechanism-tested local contract observation plus explicit permission boundaries** for the packaged mappings; live host loading remains unverified |
|
|
187
187
|
| **Public OpenAI Skills-only plugin** | Public Skills-only bundle | Generated submission ZIP from `plugins/harness-everything/skills/` | **Skill/workflow behavior only**; no local `.codex-plugin` lifecycle hooks in the public artifact |
|
|
@@ -263,7 +263,7 @@ This repo uses a flat layout (waza/agentskills.io convention). The table below m
|
|
|
263
263
|
| `verification-loop` | **Skill (Tier 2)** | Select systematic verification evidence; kernel still requires evidence before completion |
|
|
264
264
|
| `verify-before-claim` | **Always-on discipline** | Fact-audit before asserting claims |
|
|
265
265
|
| `zoom-out` | **Agent-initiated reassessment** | Voluntary evidence review and diagnosis |
|
|
266
|
-
| `opencode-plugin` | **Platform Plugin** | Enforcement logic for OpenCode's
|
|
266
|
+
| `opencode-plugin` | **Platform Plugin** | Enforcement logic for OpenCode's V2 plugin API (OpenCode 1.x / V1 unsupported); bounded V2 live lifecycle trace on 2.1.4/macOS (router/context injection, observations, ledger lessons, reset/cancellation, and other versions/OSes unverified) (#37, #453) |
|
|
267
267
|
|
|
268
268
|
---
|
|
269
269
|
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Evidence: Google Antigravity (AGY) Plugin & Lifecycle Hooks
|
|
2
|
+
|
|
3
|
+
This records the package architecture and deterministic mechanism verification of the native Google Antigravity (AGY) plugin and lifecycle hook integration on macOS.
|
|
4
|
+
|
|
5
|
+
- Date: 2026-11-22 (updated 2026-11-23 after sync to `0.57.4`)
|
|
6
|
+
- Host: Google Antigravity (AGY) IDE / CLI runtime (mechanism tests under Node.js on macOS; see [agy-2026-11-23](../agy-2026-11-23/README.md) for partial live-host evidence on Antigravity 2.0 Desktop App `2.34.0`, and Issue #514 for remaining unchecked surfaces)
|
|
7
|
+
- Repository branch under test: `feat/510-agy-plugin` (Issue #510, PR #513)
|
|
8
|
+
- Packaged plugin: `plugins/harness-everything/` (version `0.57.4`)
|
|
9
|
+
- Manifest targets: `.antigravity-plugin/plugin.json`, `rules/AGENTS.md`, and root `hooks.json`
|
|
10
|
+
|
|
11
|
+
## Verified Capabilities (Mechanism Only)
|
|
12
|
+
|
|
13
|
+
### 1. Packaging & Manifest Lockstep (Phase 1)
|
|
14
|
+
- Manifest: `plugins/harness-everything/.antigravity-plugin/plugin.json` conforms to the AGY Customization System specification (`name`, `version`, `author`, `homepage`, `repository`, `license`, `keywords`).
|
|
15
|
+
- Rules Integration: `plugins/harness-everything/rules/AGENTS.md` is synchronized from the repository root `AGENTS.md` byte-for-byte.
|
|
16
|
+
- Hook Runtime Parity: Packaged `plugins/harness-everything/hooks/scripts/agy-*.js` and `lib/agy-adapter-core.js` match repository `hooks/scripts/` byte-for-byte.
|
|
17
|
+
- Canonical Skills: All 28 canonical skills are present in `plugins/harness-everything/skills/` with required `## USE FOR:` / `## DO NOT USE FOR:` routing sections.
|
|
18
|
+
- Verified by: `npm test` (`ci/mechanism-agy-plugin-package.test.js`, auto-discovered by `ci/mechanism-test.js`).
|
|
19
|
+
|
|
20
|
+
### 2. Lifecycle Hook Enforcement (Phase 2 — Mechanism Verified)
|
|
21
|
+
The AGY plugin provides lifecycle adapters communicating over `stdin`/`stdout` using the AGY protojson camelCase format:
|
|
22
|
+
- `SessionStart` (`agy-session-start.js`): Binds session workspace identity from `conversationId` + `workspacePaths`/`cwd` and injects the active Harness OS banner.
|
|
23
|
+
- `PreInvocation` (`agy-pre-invocation.js`): Invokes the Kernel Router once per user turn (deduplicated per turn via session state + `invocationNum` guard), injecting routing context via `injectSteps` and bridging `conversationId` to `workflow-run.json`.
|
|
24
|
+
- `PreToolUse` (`agy-pre-tool.js`): Intercepts `run_command`, `write_file`, `edit_file`, `write_to_file`, `replace_file_content`, and `multi_replace_file_content`:
|
|
25
|
+
- Enforces canonicalized (`fs.realpathSync`) filesystem containment across `workspacePaths`, `cwd`, and `artifactDirectoryPath`; denies missing/empty paths and out-of-bounds or symlink-escaped targets.
|
|
26
|
+
- Invokes canonical Action Gate policies (`action-gate.js`) with normalized `args.Cwd` and `toolCall.id` to reject destructive operations, force-pushes, publish, and hard reset.
|
|
27
|
+
- `PostToolUse` (`agy-post-tool.js`): Normalizes `run_command` (`Cwd`) and file-write (`file_path`) payloads, passing `--agy` to `state-persist.js` so `error` strings and non-zero exit codes record `failed`, explicit `exitCode === 0` advances verification or clears `failed`, and unknown shell outcomes (omitted `error`/`exitCode`) grant no verification credit and preserve `failed` state while retaining `lastEditAt` edit tracking.
|
|
28
|
+
- `Stop` (`agy-stop.js`): Implements Verify-Before-Claim using normalized `conversationId` + `workspacePaths`/`cwd` workspace resolution, returning `{"decision": "continue", "reason": "..."}` on unresolved failures or unverified edits while returning `{"decision": "allow"}` on verified/clean sessions, compatibility recursion guards (`continuationActive`/`stop_hook_active`), and explicit abnormal `terminationReason` values (while still evaluating `NO_TOOL_CALL`, `model_stop`, and empty/normal reasons).
|
|
29
|
+
- Verified by: `npm test` (`ci/mechanism-agy-hooks.test.js`, auto-discovered by `ci/mechanism-test.js`).
|
|
30
|
+
|
|
31
|
+
### 3. Automated Synchronization & CLI (Phase 3 — Mechanism Verified)
|
|
32
|
+
- `scripts/plugin-sync.sh` and `scripts/plugin-sync.js` support `--host agy` (and `--host all`):
|
|
33
|
+
- Under default `--host all`, requires AGY CLI (`agy`) or an existing AGY install (`.antigravity-plugin/plugin.json` under `.agents/plugins/` or `~/.gemini/config/plugins/`), skipping unrelated Codex `.agents/` directories.
|
|
34
|
+
- Supports explicit `--host agy` to install/update and `--dry-run` (reporting `status: "dry-run"` without mutating disk).
|
|
35
|
+
- Performs atomic staged replacement with rollback on failure, cleaning obsolete files and replacing partial/corrupted target directories cleanly.
|
|
36
|
+
- Verified by: `npm run test:plugin:hosts` (`ci/mechanism-2ao-plugin-sync.test.js`).
|
|
37
|
+
|
|
38
|
+
## Repository Verification Summary
|
|
39
|
+
|
|
40
|
+
| Gate | Command | Result |
|
|
41
|
+
|---|---|---|
|
|
42
|
+
| Full Local Suite (incl. AGY package, hooks & host sync) | `npm run verify:all` | PASS |
|
|
43
|
+
| AGY Plugin Package | `node ci/mechanism-agy-plugin-package.test.js` | PASS |
|
|
44
|
+
| AGY Lifecycle Hooks | `node ci/mechanism-agy-hooks.test.js` | PASS |
|
|
45
|
+
| Host Plugin Synchronization | `npm run test:plugin:hosts` | PASS |
|
|
46
|
+
| Consistency & Contract | `npm run test:consistency` | PASS |
|
|
47
|
+
| Release Lockstep | `npm run test:release` | PASS |
|
|
48
|
+
| OpenAI Plugin Package | `npm run test:plugin:openai` | PASS |
|
|
49
|
+
| Documentation Sync | `npm run docs:sync` | PASS |
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Live-Host Evidence: Google Antigravity (AGY) 2.34.0 & CLI 1.5.15 (macOS, Partial)
|
|
2
|
+
|
|
3
|
+
Sanitized live-host verification of the native Google Antigravity (AGY) plugin and lifecycle hooks on Antigravity 2.0 Desktop App `2.34.0` and `agy` CLI `1.5.15`. This establishes **partial** live-host coverage on macOS and records observed host limitations explicitly; remaining surfaces (`/hooks` TUI view, full project-scope `harness-everything` isolation, IDE-specific write tools, live `PostToolUse` shell `exitCode: 0` verification credit, and live `Stop` `model_stop`) stay open in Issue #514.
|
|
4
|
+
|
|
5
|
+
## Environment & Scope
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Date | 2026-11-23 |
|
|
10
|
+
| Host | Antigravity 2.0 Desktop App `2.34.0` (Language Server `hub-2.34.0`) + `agy` CLI `1.5.15` |
|
|
11
|
+
| OS / Runtime | macOS `26.6.2` (Build `25G83`), Node `v24.22.1` |
|
|
12
|
+
| Install Scope | Global: `<HOME>/.gemini/config/plugins/harness-everything` (plus temp project-scope `.agents/plugins/` hook probe via `agy --print`) |
|
|
13
|
+
| Sync Operation | `node scripts/plugin-sync.js --host agy --json` → `status: "synchronized"`, `action: "update"` |
|
|
14
|
+
| Branch / Package | `feat/510-agy-plugin` (PR #513), package version `0.57.4` |
|
|
15
|
+
|
|
16
|
+
## Live Observations (Desktop App `2.34.0`)
|
|
17
|
+
|
|
18
|
+
| Surface | Result | Sanitized Evidence |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| Plugin load & discovery | **Observed live** | `GetAllPlugins` RPC returned `name: "harness-everything"`, `disabled: false`, `isGlobal: true`, `skillCount: 28`, `rules: [".../rules/AGENTS.md"]`, `hasHooksJson: true` (`hooksJsonLen: 1037`). |
|
|
21
|
+
| `SessionStart` | **Observed live** | Injected `Harness Skills OS active. Operating under AGENTS.md invariant-first routing.` at step 1 of a user-initiated AGY conversation (`<conv-id>`). |
|
|
22
|
+
| `PreInvocation` | **Observed live** | Injected `[Tier Routing Pre-check]` and persisted `workflow-run.json` keyed by `conversationId`. Before the per-turn dedup fix it repeated on every model call; after syncing the fixed `agy-pre-invocation.js`, mid-turn repeated injections stopped completely. |
|
|
23
|
+
| `PreToolUse` (`write_file` allow) | **Observed live** | `write_file` inside `artifactDirectoryPath` (`<appData>/brain/<conv-id>/.system_generated/swarm/plan.json`) was denied prior to the fix and **ALLOWED** (`Created file.`) after syncing. |
|
|
24
|
+
| `PreToolUse` (`write_file` deny) | **Observed live** | `write_file` outside workspace (`/tmp/agy-live-oob-probe.txt`) **DENIED** by AGY: `tool call denied by pre-tool hook: Harness boundary guard: modification outside workspace root is forbidden (/tmp/agy-live-oob-probe.txt).` |
|
|
25
|
+
| `PreToolUse` (`run_command` allow) | **Observed live** | Safe command `echo agy-live-allow-ok` **ALLOWED** (exit 0). |
|
|
26
|
+
| `PreToolUse` (`run_command` deny) | **Observed live** | Destructive command `git -C /tmp/nonexistent-agy-probe push --force origin main` **DENIED** via canonical Action Gate: `tool call denied by pre-tool hook: [Harness actionGate:git-force-push] Force-pushing can rewrite remote history.` |
|
|
27
|
+
| `PostToolUse` (edit state & shell outcome) | **Observed live (partial)** | Fired live and persisted `handoff-state.json` edit timestamps (`lastEditAt`: `1795394108668` → `1795394132329`). Prior to the P1-B `--agy` fix, running `npm run test:portability` with omitted `exitCode` and absent `error` inferred success (`lastVerifyAt: 1795394172552`, `lastVerifyExitCode: null`). After P1-B, omitted `exitCode`/`error` is treated as `unknown` (`host-limited / UNCHECKED` for live shell verification credit; explicit `exitCode === 0` is required to advance `lastVerifyAt` or clear `failed`). |
|
|
28
|
+
| `PostToolUse` (shell non-zero exit) | **Host-limited / Unverified** | On `node -e "process.exit(1)"` (exit code 1), AGY `2.34.0` `PostToolUse` omitted both `exitCode` and `error`, leaving `handoff-state.json` at `status: "idle"` rather than `"failed"`. |
|
|
29
|
+
| `Stop` (Verify-Before-Claim) | **Observed live (partial)** | On `2.34.0`, blocked termination when `lastEditAt > lastVerifyAt` (`Stop hook blocked termination: Harness Verify-Before-Claim: unverified edits exist in session.`), and allowed clean termination once `lastVerifyAt >= lastEditAt`. After P1-A/P2 fixes, allowed `Stop` returns `{"decision":"allow"}` (previously `{}` during the `2.34.0` run), and `model_stop` evaluates `handoff-state.json` rather than bypassing (mechanism-verified; live `model_stop` remains `UNCHECKED`). |
|
|
30
|
+
|
|
31
|
+
## Live Observations (`agy` CLI `1.5.15`)
|
|
32
|
+
|
|
33
|
+
| Surface | Result | Sanitized Evidence |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| `agy --version` | **Observed live** | `1.5.15` (`<HOME>/.local/bin/agy`). |
|
|
36
|
+
| `agy plugin validate --json` | **Observed live** | Exited `0` on `plugins/harness-everything`: `manifest: ".antigravity-plugin/plugin.json"`, `name: "harness-everything"`, `agentPluginsSpec: false`, `components: { agents: 0, hooks: 1, mcpServers: 0, rules: 1, sidecars: 0, skills: 28 }`. Reported 2 multi-host warnings (`hooks/hooks.json` never loaded; `plugin.json` ignored because `.antigravity-plugin/plugin.json` takes precedence) + 1 note (`no logo`). |
|
|
37
|
+
| `agy plugin validate --strict --json` | **Observed live** | Exited `1` (`Error: validation failed in strict mode: 2 warnings`) due to the 2 multi-host packaging warnings above. |
|
|
38
|
+
| `agy plugin list --json` | **Observed live** | Listed global `<HOME>/.gemini/config/plugins/harness-everything` (`enabled: true`, `version: "0.57.4"`, 28 skills, `rules: ["AGENTS.md"]`, `hooks: ["harness-everything"]`). In a temporary project directory with candidate plugin roots (`.agents/plugins/`, `.antigravity/plugins/`, `.gemini/plugins/`, `.gemini/config/plugins/`, `.claude/plugins/`), `agy plugin list --json` reported global-only plugins. |
|
|
39
|
+
| Project-scope `.agents/plugins/` hook discovery (`agy --print`) | **Observed live (probe)** | Running `agy --print` in a temporary workspace (`/tmp/agy-hook-probe`) with a temporary project-scope `.agents/plugins/probe-hooks/` plugin discovered and loaded project-scope `hooks.json` (`hooks_manager.go:54] loaded 2 named hooks from 2 hooks.json file(s)`) and executed all 5 lifecycle hooks (`SessionStart`, `PreInvocation`, `PreToolUse`, `PostToolUse`, `Stop`). |
|
|
40
|
+
| CLI `PostToolUse` shell exit-1 & write dispatch | **Host-limited / Observed live** | In the live `agy --print` session, `run_command` (`node -e "process.exit(1)"`) printed `Command exited with code 1.` in stream output, **but** `PostToolUse` stdin payload had `"error": ""` with no `exitCode` and no `toolResponse` (confirming the `2.34.0` shell-outcome omission on CLI `1.5.15`). Even when prompted for `write_to_file`, CLI dispatched `toolCall.name: "write_file"` (`args: { Content, Overwrite, Path }`). `Stop` payload carried `continuationActive: false`, `executionNum: 0` (then `1`), `fullyIdle: true`, `terminationReason: "NO_TOOL_CALL"`, `error: ""`. |
|
|
41
|
+
|
|
42
|
+
## Explicit Evidence Boundaries
|
|
43
|
+
|
|
44
|
+
- **Global scope vs. project scope**: Full `harness-everything` execution is live-verified only in `<HOME>/.gemini/config/plugins/harness-everything` on Desktop App `2.34.0` and `agy` CLI `1.5.15` (macOS). Temporary `.agents/plugins/` hook discovery is live-verified via `probe-hooks` on `agy --print`, while full project-scope `harness-everything` isolation without global install, Desktop App project scope, `/hooks` TUI inspection, and Windows/Linux hosts remain `UNCHECKED` (Issue #514).
|
|
45
|
+
- **IDE write tools**: Both Desktop App `2.34.0` and CLI `1.5.15` dispatched `write_file` (even when prompted for `write_to_file`). IDE-specific tools (`write_to_file`, `replace_file_content`, `multi_replace_file_content`) remain **mechanism verified** only (`ci/mechanism-agy-hooks.test.js`), `host-limited / UNCHECKED` live.
|
|
46
|
+
- **`PostToolUse` shell outcome & verification credit**: Observed as **host-limited** on both Desktop `2.34.0` and CLI `1.5.15` because non-zero shell commands (`exit 1`) omitted `error` and `exitCode` in `PostToolUse`. After P1-B, unknown shell outcomes grant no verification credit and preserve any `failed` state; live shell `exitCode: 0` verification credit remains `UNCHECKED`. (`lastVerifyExitCode: null` in the earlier `2.34.0` capture was inferred from absent `error` before P1-B and is now `host-limited / UNCHECKED`.)
|
|
47
|
+
- **`Stop` continuation/termination paths**: Live runs observed `NO_TOOL_CALL`, `fullyIdle: true`, and `executionNum: 0/1`. `agy-stop.js` returns `{"decision":"allow"}` on permitted stops, evaluates `model_stop` and empty/normal reasons against `handoff-state.json`, exempts only explicit abnormal `terminationReason` values, and keeps `continuationActive`/`stop_hook_active` as compatibility recursion guards (not official documented Stop input fields). Live `model_stop` execution remains `UNCHECKED` (mechanism-verified in `ci/mechanism-agy-hooks.test.js`).
|
|
48
|
+
- **Companion mechanism record**: See [agy-2026-11-22](../agy-2026-11-22/README.md) for package and deterministic mechanism verification.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# OpenCode V2 lifecycle trace (2.1.4, #453)
|
|
2
|
+
|
|
3
|
+
**Observed:** OpenCode 2.1.4 on macOS 26.6.2, Node 24.14.1, 2026-11-24. One `opencode serve` on loopback, one `opencode run --server` turn, one model call (`opencode/hy4-flash-free`).
|
|
4
|
+
|
|
5
|
+
**Candidate:** `opencode-plugin/index.mjs` from branch `fix/453-opencode-v2-only` at `29635b98`, copied byte-identical (sha256 `d9e762a1…5071e`) to the probe workspace as `.opencode/plugins/harness-enforcement.js`.
|
|
6
|
+
|
|
7
|
+
## Isolation (E-0029)
|
|
8
|
+
|
|
9
|
+
`HOME`, `XDG_CONFIG_HOME`, `XDG_DATA_HOME`, `XDG_STATE_HOME`, `XDG_CACHE_HOME` and `TMPDIR` pointed at an empty probe directory, so no global Harness plugin, user config or long-running service could load. [plugin-load-lines.txt](plugin-load-lines.txt) shows the server loaded exactly two plugins: the candidate and the [event-trace probe](live-event-trace-probe.js), which only appends event type and value-type shape to a file.
|
|
10
|
+
|
|
11
|
+
## Sequence
|
|
12
|
+
|
|
13
|
+
```mermaid
|
|
14
|
+
sequenceDiagram
|
|
15
|
+
participant M as Model turn
|
|
16
|
+
participant H as OpenCode 2.1.4
|
|
17
|
+
participant P as Harness candidate
|
|
18
|
+
H->>P: setup(ctx) (load)
|
|
19
|
+
M->>H: read, edit notes.txt
|
|
20
|
+
H->>P: tool.execute.before/after (V2)
|
|
21
|
+
P->>P: edit-state.json verificationPending=true
|
|
22
|
+
H->>P: session.execution.succeeded {data.sessionID}
|
|
23
|
+
P->>P: npm test (fixture fails by design)
|
|
24
|
+
P->>H: ctx.session.prompt("Harness: verification failed …")
|
|
25
|
+
H->>M: session.inbox.enqueued → execution.started
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## What the files show
|
|
29
|
+
|
|
30
|
+
| File | Shows |
|
|
31
|
+
|---|---|
|
|
32
|
+
| [events-2026-11-24.jsonl](events-2026-11-24.jsonl) | Every host event, shape only. Session events carry `data.sessionID`; the envelope is `{id, created, type, durable, data}`. No `session.idle` was emitted. Completion was `session.execution.succeeded`; a second `inbox.enqueued` + `execution.started` follow it 157 ms later. |
|
|
33
|
+
| [edit-state-final.json](edit-state-final.json) | The candidate's session state after the turn: one edit, `verificationPending: true` (the fixture's `test` script always exits 1), follow-up delivered. |
|
|
34
|
+
| [reminder-excerpt.txt](reminder-excerpt.txt) | The user message stored by the host for the second turn: the Harness verification-failed reminder text. |
|
|
35
|
+
|
|
36
|
+
## Boundary
|
|
37
|
+
|
|
38
|
+
- Establishes, for this one host/version/run: V2 default-export loading, V2 tool hooks, the V2 event envelope and completion type, and completion → verification → reminder delivery on a long-lived server.
|
|
39
|
+
- `opencode run --standalone` shuts the server down ~140 ms after `session.execution.succeeded`, which disposes the plugin before verification finishes; one-shot standalone runs therefore do not show the reminder. Not a regression: the pre-change plugin uses the same completion path.
|
|
40
|
+
- Not exercised: router/context injection with a Harness checkout present (the copied file found no Harness root, logged `router-unavailable (runtime-missing)`), observation recording on a pilot-ON workspace, ledger lessons, session create/delete reset, cancellation, global scope, npm-package install, other OpenCode versions, Windows/Linux.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"lastEditTime": 1795517895243,
|
|
3
|
+
"verificationPending": true,
|
|
4
|
+
"editsSinceVerification": 2,
|
|
5
|
+
"editRevision": 2,
|
|
6
|
+
"followUpPending": false,
|
|
7
|
+
"followUpDeliveryPending": false,
|
|
8
|
+
"followUpMessage": null,
|
|
9
|
+
"lastFollowUpError": null,
|
|
10
|
+
"sessionStart": 1795517879080
|
|
11
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{"t":1795517868642,"type":"session.created","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","projectID":"string","location":{"directory":"string"},"subpath":"string","slug":"string","model":{"id":"string","providerID":"string"},"version":"string"}}}
|
|
2
|
+
{"t":1795517868694,"type":"integration.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
3
|
+
{"t":1795517868694,"type":"model.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
4
|
+
{"t":1795517868694,"type":"provider.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
5
|
+
{"t":1795517868722,"type":"vcs.branch.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"branch":"string"}}}
|
|
6
|
+
{"t":1795517868722,"type":"agent.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
7
|
+
{"t":1795517868722,"type":"command.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
8
|
+
{"t":1795517868722,"type":"skill.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
9
|
+
{"t":1795517868722,"type":"websearch.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
10
|
+
{"t":1795517868722,"type":"reference.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
11
|
+
{"t":1795517868731,"type":"plugin.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
12
|
+
{"t":1795517868733,"type":"session.inbox.enqueued","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","inboxID":"string","item":{"type":"string","payload":{"text":"string","files":"object"},"delivery":"string"}}}}
|
|
13
|
+
{"t":1795517868743,"type":"session.execution.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"data":{"sessionID":"string"}}}
|
|
14
|
+
{"t":1795517868744,"type":"session.instructions.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","metadata":{"instructions":{"initial":"boolean"}},"type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","delta":{"core/codemode":"string","core/skill-guidance":"string","core/date":"string","core/environment":"string"}}}}
|
|
15
|
+
{"t":1795517868744,"type":"session.inbox.delivered","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","inboxID":"string"}}}
|
|
16
|
+
{"t":1795517872481,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
17
|
+
{"t":1795517872481,"type":"session.renamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","title":"string"}}}
|
|
18
|
+
{"t":1795517874490,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
19
|
+
{"t":1795517874491,"type":"session.reasoning.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","native":{"reasoningField":"string"}}}}
|
|
20
|
+
{"t":1795517874591,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
21
|
+
{"t":1795517874694,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
22
|
+
{"t":1795517874940,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
23
|
+
{"t":1795517874940,"type":"session.tool.input.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","name":"string"}}}
|
|
24
|
+
{"t":1795517874989,"type":"session.reasoning.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string","native":{"reasoningField":"string"}}}}
|
|
25
|
+
{"t":1795517874989,"type":"session.tool.input.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","text":"string"}}}
|
|
26
|
+
{"t":1795517874989,"type":"session.tool.called","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","input":{"path":"string"},"executed":"boolean"}}}
|
|
27
|
+
{"t":1795517874989,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
28
|
+
{"t":1795517874994,"type":"session.tool.success","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","content":"object","metadata":{"truncated":"boolean"},"executed":"boolean"}}}
|
|
29
|
+
{"t":1795517875018,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
30
|
+
{"t":1795517875018,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
31
|
+
{"t":1795517875322,"type":"skill.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
32
|
+
{"t":1795517879019,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
33
|
+
{"t":1795517879019,"type":"session.tool.input.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","name":"string"}}}
|
|
34
|
+
{"t":1795517879071,"type":"session.tool.input.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","text":"string"}}}
|
|
35
|
+
{"t":1795517879072,"type":"session.tool.called","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","input":{"path":"string","oldString":"string","newString":"string"},"executed":"boolean"}}}
|
|
36
|
+
{"t":1795517879072,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
37
|
+
{"t":1795517879082,"type":"session.tool.success","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","content":"object","metadata":{"files":"object","truncated":"boolean"},"executed":"boolean"}}}
|
|
38
|
+
{"t":1795517879150,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
39
|
+
{"t":1795517879151,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
40
|
+
{"t":1795517883408,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
41
|
+
{"t":1795517883409,"type":"session.text.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number"}}}
|
|
42
|
+
{"t":1795517883468,"type":"session.text.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
43
|
+
{"t":1795517883468,"type":"session.text.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string"}}}
|
|
44
|
+
{"t":1795517883468,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
45
|
+
{"t":1795517883488,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
46
|
+
{"t":1795517883489,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
47
|
+
{"t":1795517883489,"type":"session.execution.succeeded","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"data":{"sessionID":"string"}}}
|
|
48
|
+
{"t":1795517883646,"type":"session.inbox.enqueued","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"data":{"sessionID":"string","inboxID":"string","item":{"type":"string","payload":{"text":"string"},"delivery":"string"}}}}
|
|
49
|
+
{"t":1795517883659,"type":"session.execution.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"data":{"sessionID":"string"}}}
|
|
50
|
+
{"t":1795517883659,"type":"session.inbox.delivered","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","inboxID":"string"}}}
|
|
51
|
+
{"t":1795517887406,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
52
|
+
{"t":1795517887406,"type":"session.reasoning.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","native":{"reasoningField":"string"}}}}
|
|
53
|
+
{"t":1795517887512,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
54
|
+
{"t":1795517887659,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
55
|
+
{"t":1795517887750,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
56
|
+
{"t":1795517887750,"type":"session.tool.input.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","name":"string"}}}
|
|
57
|
+
{"t":1795517887784,"type":"session.reasoning.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string","native":{"reasoningField":"string"}}}}
|
|
58
|
+
{"t":1795517887785,"type":"session.tool.input.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","text":"string"}}}
|
|
59
|
+
{"t":1795517887785,"type":"session.tool.called","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","input":{"path":"string"},"executed":"boolean"}}}
|
|
60
|
+
{"t":1795517887785,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
61
|
+
{"t":1795517887791,"type":"session.tool.success","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","content":"object","metadata":{"truncated":"boolean"},"executed":"boolean"}}}
|
|
62
|
+
{"t":1795517887810,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
63
|
+
{"t":1795517887810,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
64
|
+
{"t":1795517893747,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
65
|
+
{"t":1795517893747,"type":"session.reasoning.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","native":{"reasoningField":"string"}}}}
|
|
66
|
+
{"t":1795517893848,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
67
|
+
{"t":1795517894113,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
68
|
+
{"t":1795517894331,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
69
|
+
{"t":1795517894452,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
70
|
+
{"t":1795517894563,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
71
|
+
{"t":1795517894666,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
72
|
+
{"t":1795517894776,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
73
|
+
{"t":1795517894795,"type":"session.reasoning.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
74
|
+
{"t":1795517894795,"type":"session.text.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number"}}}
|
|
75
|
+
{"t":1795517894897,"type":"session.text.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
76
|
+
{"t":1795517894976,"type":"session.text.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
77
|
+
{"t":1795517894976,"type":"session.tool.input.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","name":"string"}}}
|
|
78
|
+
{"t":1795517895240,"type":"session.reasoning.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string","native":{"reasoningField":"string"}}}}
|
|
79
|
+
{"t":1795517895240,"type":"session.tool.input.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","text":"string"}}}
|
|
80
|
+
{"t":1795517895240,"type":"session.tool.called","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","input":{"path":"string","oldString":"string","newString":"string"},"executed":"boolean"}}}
|
|
81
|
+
{"t":1795517895240,"type":"session.text.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string"}}}
|
|
82
|
+
{"t":1795517895240,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
83
|
+
{"t":1795517895244,"type":"session.tool.success","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","content":"object","metadata":{"files":"object","truncated":"boolean"},"executed":"boolean"}}}
|
|
84
|
+
{"t":1795517895292,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
85
|
+
{"t":1795517895292,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
86
|
+
{"t":1795517899941,"type":"skill.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
87
|
+
{"t":1795517899947,"type":"skill.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
88
|
+
{"t":1795517899951,"type":"skill.updated","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
|
89
|
+
{"t":1795517901106,"type":"session.step.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","agent":"string","model":{"id":"string","providerID":"string","variant":"string"},"snapshot":"string","started":"number"}}}
|
|
90
|
+
{"t":1795517901107,"type":"session.text.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number"}}}
|
|
91
|
+
{"t":1795517901188,"type":"session.text.delta","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","delta":"string"}}}
|
|
92
|
+
{"t":1795517901188,"type":"session.tool.input.started","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","name":"string"}}}
|
|
93
|
+
{"t":1795517901412,"type":"session.tool.input.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","text":"string"}}}
|
|
94
|
+
{"t":1795517901412,"type":"session.tool.called","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","input":{"command":"string","workdir":"string"},"executed":"boolean"}}}
|
|
95
|
+
{"t":1795517901412,"type":"session.text.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","ordinal":"number","text":"string"}}}
|
|
96
|
+
{"t":1795517901412,"type":"session.step.streamed","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string"}}}
|
|
97
|
+
{"t":1795517901441,"type":"shell.created","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"info":{"id":"string","status":"string","command":"string","cwd":"string","shell":"string","file":"string","metadata":{"sessionID":"string"},"time":{"started":"number"}}}}}
|
|
98
|
+
{"t":1795517901441,"type":"session.tool.progress","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","metadata":{"shellID":"string"}}}}
|
|
99
|
+
{"t":1795517901584,"type":"shell.exited","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{"id":"string","exit":"number","status":"string"}}}
|
|
100
|
+
{"t":1795517901587,"type":"session.tool.success","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","id":"string","content":"object","metadata":{"status":"string","truncated":"boolean","exit":"number"},"executed":"boolean"}}}
|
|
101
|
+
{"t":1795517901606,"type":"session.step.ended","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","durable":{"aggregateID":"string","seq":"number","version":"number"},"location":{"directory":"string"},"data":{"sessionID":"string","assistantMessageID":"string","finish":"string","rawFinish":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}},"snapshot":"string","files":"object"}}}
|
|
102
|
+
{"t":1795517901606,"type":"session.usage.updated","sid":"data.sessionID","shape":{"id":"string","created":"number","type":"string","data":{"sessionID":"string","cost":"number","tokens":{"input":"number","output":"number","reasoning":"number","cache":{"read":"number","write":"number"}}}}}
|
|
103
|
+
{"t":1795517904027,"type":"location.shutdown","sid":null,"shape":{"id":"string","created":"number","type":"string","location":{"directory":"string"},"data":{}}}
|
package/benchmarks/results/live-host/opencode-2026-11-24-v2-lifecycle/live-event-trace-probe.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { appendFileSync } from "node:fs"
|
|
2
|
+
const OUT = process.env.EVENT_TRACE_OUT
|
|
3
|
+
const shape = v => v && typeof v === "object" ? Object.fromEntries(Object.entries(v).map(([k, x]) => [k, x && typeof x === "object" && !Array.isArray(x) ? shape(x) : typeof x])) : typeof v
|
|
4
|
+
export default {
|
|
5
|
+
id: "probe.event-trace",
|
|
6
|
+
async setup(ctx) {
|
|
7
|
+
const ac = new AbortController()
|
|
8
|
+
;(async () => { try { for await (const raw of ctx.event.subscribe({ signal: ac.signal })) appendFileSync(OUT, JSON.stringify({ t: Date.now(), type: raw.type, sid: raw.data?.sessionID ? "data.sessionID" : null, shape: shape(raw) }) + "\n") } catch (e) { appendFileSync(OUT, JSON.stringify({ err: String(e) }) + "\n") } })()
|
|
9
|
+
return async () => ac.abort()
|
|
10
|
+
},
|
|
11
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
timestamp=2026-11-24T10:57:48.468Z level=INFO msg="loading plugin" id=<probe>/ws/.opencode/plugins/harness-enforcement.js entrypoint=file://<probe>/ws/.opencode/plugins/harness-enforcement.js http.span=887 role=server
|
|
2
|
+
timestamp=2026-11-24T10:57:48.473Z level=INFO msg="loading plugin" id=<probe>/ws/.opencode/plugins/zz-event-trace.js entrypoint=file://<probe>/ws/.opencode/plugins/zz-event-trace.js http.span=892 role=server
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"text":"Harness: verification failed - \"npm test\" - \n> live453@0.0.0 test\n> node -e \"process.exit(1)\"\n\n. Review the result, address the cause, and verify again."
|