harness-everything 1.3.0 → 1.3.2
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/AGENTS.md +1 -1
- package/CHANGELOG.md +14 -0
- package/behavioral-evals/ledger-pairs/README.md +53 -0
- package/behavioral-evals/ledger-pairs/arm.js +359 -0
- package/behavioral-evals/ledger-pairs/fixture.js +138 -0
- package/behavioral-evals/ledger-pairs/preflight.js +96 -0
- package/behavioral-evals/ledger-pairs/score.js +155 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/README.md +108 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-1-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-2-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-baseline/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-3-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-baseline/arm-result.json +28 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/agy/pair-4-treatment/arm-result.json +35 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-baseline/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-1-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-baseline/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-2-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-baseline/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-3-treatment/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-baseline/arm-result.json +49 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-plan.json +13 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/codex/pair-4-treatment/arm-result.json +56 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-baseline/receipt.jsonl +17 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/arm-result.json +41 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-1-treatment/receipt.jsonl +58 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/arm-result.json +50 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-baseline/receipt.jsonl +101 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-2-treatment/receipt.jsonl +29 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-baseline/receipt.jsonl +23 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/arm-result.json +34 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-3-treatment/receipt.jsonl +24 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/arm-result.json +47 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-baseline/receipt.jsonl +69 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-plan.json +14 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/arm-result.json +44 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/opencode/pair-4-treatment/receipt.jsonl +65 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/run-order.sh +18 -0
- package/benchmarks/results/live-host/ledger-pairs-2026-11-28/score.json +1032 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/README.md +50 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/collect-rerun.txt +3 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/export-report.json +22 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/host-version.txt +1 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-1.json +18 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/import-report-2.json +18 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/labels-observed-excerpt.jsonl +2 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/observations-index-excerpt.json +26 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/plugin-load-lines.txt +1 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/README.md +46 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/observations-index-excerpt.json +16 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/plugin-load-lines.txt +2 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/run-marks.txt +6 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-probe.js +16 -0
- package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-trace.jsonl +167 -0
- package/ci/archive/325-prep/README.md +9 -2
- package/ci/archive/325-prep/doc-reconciliation-red.js +34 -8
- package/ci/fixtures/553-t2a/body-edit/base/.agents/harness-everything/project-docs.json +11 -0
- package/ci/fixtures/553-t2a/body-edit/base/docs/a.md +6 -0
- package/ci/fixtures/553-t2a/body-edit/base/docs/b.md +1 -0
- package/ci/fixtures/553-t2a/body-edit/candidate/docs/a.md +6 -0
- package/ci/fixtures/553-t2c/derived-regenerate-must/base/docs/adr/EVID-001-verify-all-evidence.md +11 -0
- package/ci/fixtures/553-t2c/derived-regenerate-must/base/docs/governed-index.md +19 -0
- package/ci/fixtures/553-t2c/derived-regenerate-must/candidate/docs/adr/EVID-001-verify-all-evidence.md +11 -0
- package/ci/fixtures/553-t2c/derived-regenerate-must/candidate/docs/governed-index.md +19 -0
- package/ci/fixtures/553-t2c/derived-regenerate-must/config.json +17 -0
- package/ci/fixtures/doc-obligations/derive/regression-pins.json +153 -0
- package/ci/fixtures/state-persist-post-tool-use/harness.js +206 -0
- package/ci/fixtures/state-persist-post-tool-use/off-handoff-golden.json +16 -0
- package/ci/fixtures/state-persist-post-tool-use/payload-post-tool-use-success.json +13 -0
- package/ci/fixtures/stop/fail-session-writes.js +109 -0
- package/ci/fixtures/workflow-contract/cases.json +3355 -0
- package/ci/fixtures/workflow-contract/wiring-cases.json +560 -0
- package/ci/lib/doc-reconciliation-prep-fixtures.js +4 -9
- package/ci/mechanism-2an-workflow-replay.test.js +324 -0
- package/ci/mechanism-2ax-doc-lifecycle.test.js +132 -0
- package/ci/mechanism-325-3a-doc-evidence.test.js +73 -0
- package/ci/mechanism-325-3a-doc-obligations.test.js +61 -0
- package/ci/mechanism-325-3b-preparation.test.js +208 -49
- package/ci/mechanism-325-3b-s1-review.test.js +20 -828
- package/ci/mechanism-325-3b-s3-providers.test.js +59 -0
- package/ci/mechanism-325-f3-derived-views.test.js +140 -0
- package/ci/mechanism-332-fable-directive.test.js +180 -0
- package/ci/mechanism-341-opencode-lane.test.js +164 -284
- package/ci/mechanism-35-verification-contract.test.js +246 -0
- package/ci/mechanism-365-step-edit-accounting.test.js +5 -6
- package/ci/mechanism-383-doc-glob-line-terminators.test.js +0 -30
- package/ci/mechanism-397-opencode-observations.test.js +151 -18
- package/ci/mechanism-552-ledger-pairs.test.js +159 -0
- package/ci/mechanism-553-e1-unhook-credit.test.js +328 -0
- package/ci/mechanism-553-p2a-claude-hooks.test.js +98 -0
- package/ci/mechanism-553-p3-plan-start.test.js +212 -0
- package/ci/mechanism-553-state-persist-post-tool-use.test.js +307 -0
- package/ci/mechanism-553-stop.test.js +427 -0
- package/ci/mechanism-553-t2a-derive.test.js +110 -0
- package/ci/mechanism-553-t2c-derive.test.js +94 -0
- package/ci/mechanism-e1-derived-regenerate.test.js +45 -206
- package/ci/mechanism-outline-sanitizer.test.js +0 -8
- package/ci/mechanism-pr-a-conflict-check.test.js +38 -305
- package/ci/mechanism-prb-outline-review.test.js +101 -3283
- package/ci/router-workflow-plan.test.js +61 -21
- package/docs/adr/DOCS-006-reconciliation-pilot.md +4 -2
- package/docs/adr/DOCS-008-obligation-abstraction-bounded-consumer.md +3 -3
- package/docs/doc-workflow-reconciliation.md +17 -2
- package/docs/document-lifecycle.md +6 -2
- package/docs/platform-capabilities.md +63 -16
- package/docs/platform-compatibility.json +5 -5
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/routing-keywords.json +0 -2
- package/harness-everything/scripts/tier-router.js +105 -11
- package/hooks/hooks.json +0 -46
- package/hooks/scripts/lib/workflow-obligations.js +0 -55
- package/hooks/scripts/state-persist.js +7 -95
- package/hooks/scripts/workflow-disposition.js +0 -2
- package/hooks/scripts/workflow-stop-gate.js +17 -30
- package/opencode-plugin/index.mjs +6 -70
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.antigravity-plugin/plugin.json +1 -1
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/scripts/lib/workflow-obligations.js +0 -55
- package/plugins/harness-everything/hooks/scripts/state-persist.js +7 -95
- package/plugins/harness-everything/hooks/scripts/workflow-disposition.js +0 -2
- package/plugins/harness-everything/hooks/scripts/workflow-stop-gate.js +17 -30
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/rules/AGENTS.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/routing-keywords.json +0 -2
- package/plugins/harness-everything/skills/harness-everything/scripts/tier-router.js +105 -11
- package/sbom.cdx.json +7 -7
- package/ci/fixtures/doc-obligations/reconciliation-s1/cases.json +0 -6854
- package/ci/fixtures/doc-obligations/reconciliation-s1/fail-session-writes.js +0 -116
- package/ci/fixtures/doc-obligations/reconciliation-s2a/harness.js +0 -507
- package/ci/fixtures/doc-obligations/reconciliation-s2a/run13-workflow-requirements.json +0 -42
- package/ci/fixtures/doc-obligations/reconciliation-s2a/vectors.json +0 -617
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/harness.js +0 -415
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-post-tool-use-success-minimal.json +0 -9
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-start.json +0 -7
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop-freetext-reject.json +0 -11
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop-reject.json +0 -11
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-subagent-stop.json +0 -11
- package/ci/fixtures/doc-obligations/reconciliation-s2b/capture/payload-task-result.json +0 -19
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/off-capture-only.json +0 -99
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/off-legacy.json +0 -67
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-concurrent-writers.json +0 -62
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-lookalikes-runtime-mutations.json +0 -67
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-malformed.json +0 -85
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-normal-session.json +0 -74
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-runtime-drift-later-npm-test.json +0 -58
- package/ci/fixtures/doc-obligations/reconciliation-s2b/corpus/on-valid-direct-quoted-review.json +0 -85
- package/ci/fixtures/doc-obligations/reconciliation-s2b/f4/cases.json +0 -2267
- package/ci/fixtures/doc-obligations/reconciliation-s2b/wiring/cases.json +0 -1110
- package/ci/lib/doc-reconciliation-file-spy.js +0 -23
- package/ci/lib/doc-reconciliation-qualification-preload.js +0 -37
- package/ci/lib/doc-reconciliation-replay.js +0 -104
- package/ci/lib/doc-reconciliation-staged-tree.js +0 -102
- package/ci/mechanism-325-3b-h1-qualification.test.js +0 -206
- package/ci/mechanism-325-3b-s1.test.js +0 -188
- package/ci/mechanism-325-3b-s2a-core.test.js +0 -840
- package/ci/mechanism-325-3b-s2a-producer.test.js +0 -564
- package/ci/mechanism-325-3b-s2b-capture.test.js +0 -566
- package/ci/mechanism-325-3b-s2b-wiring.test.js +0 -679
- package/ci/mechanism-325-f4-invariants.test.js +0 -606
- package/ci/mechanism-325-f4-projections.test.js +0 -392
- package/ci/mechanism-325-f4-qualification.test.js +0 -228
- package/ci/mechanism-325-f4-trust-boundary.test.js +0 -880
- package/ci/mechanism-e1-dependency-artifact-scope.test.js +0 -657
- package/hooks/scripts/lib/doc-reconciliation-capture.sanitized.jsonl +0 -26
- package/hooks/scripts/lib/doc-reconciliation-core.js +0 -336
- package/hooks/scripts/lib/doc-reconciliation-events.js +0 -292
- package/hooks/scripts/lib/doc-reconciliation-outline-capture.sanitized.jsonl +0 -24
- package/hooks/scripts/lib/doc-reconciliation-pilot.js +0 -482
- package/hooks/scripts/lib/doc-reconciliation-producer.js +0 -468
- package/hooks/scripts/lib/doc-reconciliation-provider.js +0 -3304
- package/hooks/scripts/lib/doc-reconciliation-qualification.json +0 -54
- package/hooks/scripts/w6-state-operations.js +0 -239
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-capture.sanitized.jsonl +0 -26
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-core.js +0 -336
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-events.js +0 -292
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-outline-capture.sanitized.jsonl +0 -24
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-pilot.js +0 -482
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-producer.js +0 -468
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-provider.js +0 -3304
- package/plugins/harness-everything/hooks/scripts/lib/doc-reconciliation-qualification.json +0 -54
- package/plugins/harness-everything/hooks/scripts/w6-state-operations.js +0 -239
- package/scripts/system-one-eval-laya.js +0 -112
- /package/ci/fixtures/{doc-obligations/reconciliation-s2b/capture → state-persist-post-tool-use}/payload-post-tool-use-failure.json +0 -0
- /package/ci/fixtures/{doc-obligations/reconciliation-s2b/wiring → workflow-contract}/legacy-off-golden.json +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# OpenCode V2 turn → export trace (2.4.1, #397)
|
|
2
|
+
|
|
3
|
+
**Observed:** OpenCode 2.4.1 on macOS 26.7.3, Node 24.22.1, 2026-11-28. One long-lived `opencode serve --hostname 127.0.0.1` (2.4.1 requires `OPENCODE_PASSWORD`; the first attempt without it returned HTTP 401), two consecutive `opencode run --server` turns in one session (`opencode/hy4-flash-free`), followed by `system-one-cycle` `collect` runs against the same explicit `HARNESS_OBSERVATIONS_DIR`, empty Codex sessions, and same date.
|
|
4
|
+
|
|
5
|
+
**Candidate:** Clean clone of `main` at `411e5a70`. The probe workspace loaded a 1-line re-export `.opencode/plugins/harness-enforcement.js` pointing to the checkout's `opencode-plugin/index.mjs` so the Harness root resolved.
|
|
6
|
+
|
|
7
|
+
## Isolation (E-0029)
|
|
8
|
+
|
|
9
|
+
The server ran under `env -i` with `HOME`, `XDG_*`, `TMPDIR`, `HARNESS_OBSERVATIONS_DIR`, and `HARNESS_STATE_HOME` pointed at an empty probe directory, copying only provider auth, so no global Harness plugin, user config, or ambient store could interfere. [plugin-load-lines.txt](plugin-load-lines.txt) shows the server loaded only the candidate plugin.
|
|
10
|
+
|
|
11
|
+
## Sequence
|
|
12
|
+
|
|
13
|
+
```mermaid
|
|
14
|
+
sequenceDiagram
|
|
15
|
+
participant M as Model (hy4-flash-free)
|
|
16
|
+
participant H as OpenCode 2.4.1
|
|
17
|
+
participant P as Harness candidate
|
|
18
|
+
participant C as system-one-cycle collect
|
|
19
|
+
H->>P: setup(ctx) (load)
|
|
20
|
+
H->>M: Turn 1 (s2 / t3) with injected router contract
|
|
21
|
+
M->>H: Reply + v1 turn-label line (tier1 / actionable)
|
|
22
|
+
P->>P: Persist observation r1 (s2 / t3)
|
|
23
|
+
H->>M: Turn 2 (s2 / t5) with injected router contract
|
|
24
|
+
M->>H: Reply + v1 turn-label line (tier1 / actionable)
|
|
25
|
+
P->>P: Persist observation r4 (s2 / t5)
|
|
26
|
+
C->>C: Run 1: import persisted=2, export eligible=2 valid=2 rate=1
|
|
27
|
+
C->>C: Plain rerun: {"skipped":true} (cycle-state completion mark)
|
|
28
|
+
C->>C: Clear steps.collect; Run 2: persisted=0 duplicate=2, export ids identical (2)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## What the files show
|
|
32
|
+
|
|
33
|
+
| File | Shows |
|
|
34
|
+
|---|---|
|
|
35
|
+
| [host-version.txt](host-version.txt) | Host CLI version string (`opencode v2.4.1`). |
|
|
36
|
+
| [plugin-load-lines.txt](plugin-load-lines.txt) | Server log line confirming only the candidate plugin loaded in the isolated probe workspace. |
|
|
37
|
+
| [observations-index-excerpt.json](observations-index-excerpt.json) | Live observation store index: 2 `opencode` records (`r1`, `r4`) in the same session (`s2`) with distinct turn IDs (`t3`, `t5`), both carrying valid v1 self-reports (`tier1`, `actionable`, `selfReportReason: null`). |
|
|
38
|
+
| [import-report-1.json](import-report-1.json) | First `collect` import report: `live` and `codex` sources `ok`, `opencode.persisted: 2`, `duplicate: 0`, `ambiguous: 0`, `importFailure: 0`. |
|
|
39
|
+
| [export-report.json](export-report.json) | Export report: 2 records exported, `withSelfReport: 2`, `hostAcceptance.byHost.opencode` has `eligible: 2`, `valid: 2`, `invalid: 0`, `missing: 0`, `acceptanceRate: 1`. |
|
|
40
|
+
| [labels-observed-excerpt.jsonl](labels-observed-excerpt.jsonl) | Two exported rows (`r1`, `r4`) in `labels-observed.jsonl` with `host: "opencode"` and `behaviorEvidence: "observed"`. |
|
|
41
|
+
| [import-report-2.json](import-report-2.json) | Second `collect` import report (after clearing `steps.collect` in private `cycle-state.json`): `persisted: 0`, `duplicate: 2`, `ambiguous: 0`, `importFailure: 0`. |
|
|
42
|
+
| [collect-rerun.txt](collect-rerun.txt) | Reconciliation summary: plain rerun was skipped (`{"skipped":true}`); after clearing `steps.collect`, run 2 executed with identical export IDs (2) and 2 store records. |
|
|
43
|
+
|
|
44
|
+
## Boundary
|
|
45
|
+
|
|
46
|
+
- Establishes, for this one host/version/run (`2.4.1`, macOS 26.7.3, long-lived server): V2 default-export loading, live observation recording for two consecutive turns in one session, and idempotent `system-one-cycle` import/export (`persisted: 2` → `persisted: 0, duplicate: 2`, identical export IDs, `acceptanceRate: 1`).
|
|
47
|
+
- **Router/context injection:** indirectly observed only — the model emitted the turn-label line that only the injected router contract asks for (valid labels on both turns); no full injection trace was captured.
|
|
48
|
+
- **Idempotency note:** a plain second `collect` returned `{"skipped":true}` because of the `cycle-state.json` completion mark and proves nothing on its own; run 2 was forced to execute by clearing `steps.collect` in private `cycle-state.json` while keeping the same destination store.
|
|
49
|
+
- **2.4.1 setup fact:** `opencode serve --hostname 127.0.0.1` required `OPENCODE_PASSWORD`; the first attempt without it returned HTTP 401.
|
|
50
|
+
- Not exercised: full router/context injection trace, ledger lessons, session create/delete reset, cancellation, global scope, npm-package install, standalone one-shot runs, other OpenCode versions, and Windows/Linux.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"records": 2,
|
|
4
|
+
"exported": 2,
|
|
5
|
+
"skippedBeforeSince": 0,
|
|
6
|
+
"skippedUnlabeled": 0,
|
|
7
|
+
"skippedNoText": 0,
|
|
8
|
+
"validationRows": 1,
|
|
9
|
+
"withSelfReport": 2,
|
|
10
|
+
"hostAcceptance": {
|
|
11
|
+
"population": "stored-observations",
|
|
12
|
+
"byHost": {
|
|
13
|
+
"opencode": {
|
|
14
|
+
"eligible": 2,
|
|
15
|
+
"valid": 2,
|
|
16
|
+
"invalid": 0,
|
|
17
|
+
"missing": 0,
|
|
18
|
+
"acceptanceRate": 1
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
opencode v2.4.1
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"id": "r1",
|
|
4
|
+
"host": "opencode",
|
|
5
|
+
"session": "s2",
|
|
6
|
+
"turnId": "t3",
|
|
7
|
+
"observedAt": "2026-11-28T03:08:47.268Z",
|
|
8
|
+
"selfReport": {
|
|
9
|
+
"tier": "tier1",
|
|
10
|
+
"validity": "actionable"
|
|
11
|
+
},
|
|
12
|
+
"selfReportReason": null
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "r4",
|
|
16
|
+
"host": "opencode",
|
|
17
|
+
"session": "s2",
|
|
18
|
+
"turnId": "t5",
|
|
19
|
+
"observedAt": "2026-11-28T03:08:57.992Z",
|
|
20
|
+
"selfReport": {
|
|
21
|
+
"tier": "tier1",
|
|
22
|
+
"validity": "actionable"
|
|
23
|
+
},
|
|
24
|
+
"selfReportReason": null
|
|
25
|
+
}
|
|
26
|
+
]
|
package/benchmarks/results/live-host/opencode-2026-11-28-397-turn-export/plugin-load-lines.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
timestamp=2026-11-28T03:08:43.442Z level=INFO msg="loading plugin" id=<probe>/ws/.opencode/plugins/harness-enforcement.js entrypoint=file://<probe>/ws/.opencode/plugins/harness-enforcement.js http.span=363 role=server
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# OpenCode V2 steering trace (2.4.1, #450)
|
|
2
|
+
|
|
3
|
+
**Observed:** OpenCode 2.4.1 on macOS 26.7.3, Node 24.22.1, 2026-11-28. One long-lived `opencode serve --hostname 127.0.0.1` (2.4.1 requires `OPENCODE_PASSWORD`; the first attempt without it returned HTTP 401), model `opencode/hy4-flash-free`. Turn A (multi-step bash) started in session `s1`; 7.7 s later prompt B was sent to the **same session** while A was still executing; after A+B settled, sequential control prompt C was sent as a positive control.
|
|
4
|
+
|
|
5
|
+
**Candidate:** Clean clone of `main` at `411e5a70`. The probe workspace loaded the 1-line re-export `.opencode/plugins/harness-enforcement.js` pointing to `opencode-plugin/index.mjs` alongside the key-only [steering-probe.js](steering-probe.js) (loaded as `zz-steer-trace.js`).
|
|
6
|
+
|
|
7
|
+
## Isolation (E-0029)
|
|
8
|
+
|
|
9
|
+
The server ran under `env -i` with `HOME`, `XDG_*`, `TMPDIR`, `HARNESS_OBSERVATIONS_DIR`, and `HARNESS_STATE_HOME` pointed at an empty probe directory, copying only provider auth, so no global Harness plugin, user config, or ambient store could interfere. [plugin-load-lines.txt](plugin-load-lines.txt) shows the server loaded exactly two plugins: the candidate and the key-only steering probe.
|
|
10
|
+
|
|
11
|
+
## Sequence
|
|
12
|
+
|
|
13
|
+
```mermaid
|
|
14
|
+
sequenceDiagram
|
|
15
|
+
participant U as Operator prompts
|
|
16
|
+
participant H as OpenCode 2.4.1
|
|
17
|
+
participant P as Harness candidate
|
|
18
|
+
U->>H: Turn A (m2, dt_ms 126) in s1
|
|
19
|
+
H->>P: prompt(m2), inbox.enqueued, execution.started, inbox.delivered
|
|
20
|
+
H->>P: context [m2:user] -> multi-step bash running
|
|
21
|
+
U->>H: Prompt B (m4, dt_ms 7655) in same s1 while A runs
|
|
22
|
+
H->>P: prompt(m4), inbox.enqueued (no new execution.started)
|
|
23
|
+
P->>P: Turn 1 (A) closed with selfReportReason: stop-missing; no record for B
|
|
24
|
+
H->>P: context [m2:user, m5:assistant, tool, m4:user] + inbox.delivered (live steering)
|
|
25
|
+
H->>P: Single session.execution.succeeded (dt_ms 27554) covering A+B
|
|
26
|
+
U->>H: Control C (m14, dt_ms 35716) after settle
|
|
27
|
+
H->>P: prompt(m14), execution.started (35724) -> execution.succeeded (38840)
|
|
28
|
+
P->>P: Turn 3 (C) recorded with valid selfReport: true
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## What the files show
|
|
32
|
+
|
|
33
|
+
| File | Shows |
|
|
34
|
+
|---|---|
|
|
35
|
+
| [plugin-load-lines.txt](plugin-load-lines.txt) | Server log lines confirming exactly two plugins loaded: the candidate and `zz-steer-trace.js`. |
|
|
36
|
+
| [run-marks.txt](run-marks.txt) | Wall-clock start/exit timestamps for A, B (sent while A ran, `sid_found=yes`, both exiting together at `1795835809`), and sequential control C. |
|
|
37
|
+
| [steering-probe.js](steering-probe.js) | Key-only V2 probe recording hook/event type, key names, value types, pseudonymous IDs, and order with no prompt or response text. |
|
|
38
|
+
| [steering-trace.jsonl](steering-trace.jsonl) | Full key-only event/hook timeline: B (`m4` at `dt_ms: 7655`) triggers `prompt` + `session.inbox.enqueued` + `session.inbox.delivered` (`dt_ms: 7710`) with **no new `session.execution.started`** and appears in the next `context` messages (`dt_ms: 7709`) of the same execution; one `session.execution.succeeded` (`dt_ms: 27554`) covers A+B; control C (`m14` at `dt_ms: 35716`) gets its own `session.execution.started` (`dt_ms: 35724`) and `session.execution.succeeded` (`dt_ms: 38840`). |
|
|
39
|
+
| [observations-index-excerpt.json](observations-index-excerpt.json) | Observation store index after the run: turn 1 (`t1`, A) closed with `selfReport: false, selfReportReason: "stop-missing"` at `03:16:29.162Z` when B arrived; **no record for B**; control C recorded as turn 3 (`t2`) with `selfReport: true, selfReportReason: null`. |
|
|
40
|
+
|
|
41
|
+
## Boundary
|
|
42
|
+
|
|
43
|
+
- Establishes, for this one host/version/run (`2.4.1`, macOS 26.7.3, long-lived server): a mid-turn prompt B sent to an active session is delivered as **live steering** inside the same execution (not a queued next turn), with `prompt` + `session.inbox.enqueued` + `session.inbox.delivered`, `m4` injected into the next `context` messages, no new `session.execution.started`, and a single `session.execution.succeeded` covering A+B. Post-settle control C receives its own `session.execution.started` and `session.execution.succeeded`.
|
|
44
|
+
- **Witness only (#450):** the observation store shows the overwrite/drop behavior predicted by #450 (turn 1 closed `stop-missing` on B's arrival, no record for B, valid record for control C). The internal cause of B's missing record is `unknown` (not traced). This round stops at trace evidence with no product fix; a credible RED fixture and fix are deferred.
|
|
45
|
+
- **2.4.1 setup fact:** `opencode serve --hostname 127.0.0.1` required `OPENCODE_PASSWORD`; the first attempt without it returned HTTP 401.
|
|
46
|
+
- Not exercised: cancellation or retry during steering, ledger lessons, session create/delete reset, global scope, npm-package install, other OpenCode versions, and Windows/Linux.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"turn": 1,
|
|
4
|
+
"turnId": "t1",
|
|
5
|
+
"observedAt": "2026-11-28T03:16:29.162Z",
|
|
6
|
+
"selfReport": false,
|
|
7
|
+
"selfReportReason": "stop-missing"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"turn": 3,
|
|
11
|
+
"turnId": "t2",
|
|
12
|
+
"observedAt": "2026-11-28T03:17:00.415Z",
|
|
13
|
+
"selfReport": true,
|
|
14
|
+
"selfReportReason": null
|
|
15
|
+
}
|
|
16
|
+
]
|
package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/plugin-load-lines.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
timestamp=2026-11-28T03:16:21.366Z level=INFO msg="loading plugin" id=<probe>/ws/.opencode/plugins/harness-enforcement.js entrypoint=file://<probe>/ws/.opencode/plugins/harness-enforcement.js http.span=336 role=server
|
|
2
|
+
timestamp=2026-11-28T03:16:21.373Z level=INFO msg="loading plugin" id=<probe>/ws/.opencode/plugins/zz-steer-trace.js entrypoint=file://<probe>/ws/.opencode/plugins/zz-steer-trace.js http.span=343 role=server
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// key-only steering probe (#450): logs hook/event type, key names, value types, pseudonymous ids and order. No text.
|
|
2
|
+
import { appendFileSync } from "node:fs"
|
|
3
|
+
const OUT = process.env.STEER_TRACE_OUT
|
|
4
|
+
const ids = new Map(); const pid = (v, p) => { if (typeof v !== "string" || !v) return v == null ? null : typeof v; if (!ids.has(v)) ids.set(v, p + (ids.size + 1)); return ids.get(v) }
|
|
5
|
+
const shape = v => v && typeof v === "object" ? (Array.isArray(v) ? ["array", v.length] : Object.fromEntries(Object.entries(v).map(([k, x]) => [k, x && typeof x === "object" ? shape(x) : typeof x]))) : typeof v
|
|
6
|
+
const log = o => appendFileSync(OUT, JSON.stringify({ t: Date.now(), ...o }) + "\n")
|
|
7
|
+
export default {
|
|
8
|
+
id: "probe.steer-trace",
|
|
9
|
+
async setup(ctx) {
|
|
10
|
+
const ac = new AbortController()
|
|
11
|
+
ctx.session.hook("prompt", async (e) => { log({ hook: "prompt", sid: pid(e?.sessionID, "s"), mid: pid(e?.messageID ?? e?.messageId, "m"), keys: Object.keys(e || {}), delivery: shape(e?.delivery), metadata: shape(e?.metadata) }) })
|
|
12
|
+
ctx.session.hook("context", async (e) => { log({ hook: "context", sid: pid(e?.sessionID, "s"), keys: Object.keys(e || {}), messages: Array.isArray(e?.messages) ? e.messages.map(m => ({ id: pid(m?.id ?? m?.info?.id, "m"), role: m?.role ?? m?.info?.role ?? m?.type ?? null })) : shape(e?.messages) }) })
|
|
13
|
+
;(async () => { try { for await (const raw of ctx.event.subscribe({ signal: ac.signal })) { const d = raw?.data || {}; log({ event: raw.type, sid: pid(d.sessionID, "s"), mid: pid(d.messageID ?? d.messageId ?? d.info?.id ?? d.part?.messageID, "m"), dataKeys: Object.keys(d) }) } } catch (e) { log({ err: String(e).slice(0, 120) }) } })()
|
|
14
|
+
return async () => ac.abort()
|
|
15
|
+
},
|
|
16
|
+
}
|
package/benchmarks/results/live-host/opencode-2026-11-28-450-steering-trace/steering-trace.jsonl
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{"dt_ms":0,"event":"integration.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
2
|
+
{"dt_ms":0,"event":"provider.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
3
|
+
{"dt_ms":0,"event":"model.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
4
|
+
{"dt_ms":10,"event":"provider.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
5
|
+
{"dt_ms":10,"event":"model.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
6
|
+
{"dt_ms":46,"event":"vcs.branch.updated","sid":null,"mid":null,"dataKeys":["branch"]}
|
|
7
|
+
{"dt_ms":46,"event":"agent.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
8
|
+
{"dt_ms":46,"event":"command.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
9
|
+
{"dt_ms":46,"event":"skill.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
10
|
+
{"dt_ms":47,"event":"artifact.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
11
|
+
{"dt_ms":47,"event":"websearch.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
12
|
+
{"dt_ms":47,"event":"reference.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
13
|
+
{"dt_ms":59,"event":"plugin.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
14
|
+
{"dt_ms":126,"hook":"prompt","sid":"s1","mid":"m2","keys":["sessionID","messageID","prompt","metadata","delivery"],"delivery":"string","metadata":"undefined"}
|
|
15
|
+
{"dt_ms":128,"event":"session.inbox.enqueued","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID","item"]}
|
|
16
|
+
{"dt_ms":137,"event":"session.execution.started","sid":"s1","mid":null,"dataKeys":["sessionID"]}
|
|
17
|
+
{"dt_ms":139,"event":"session.instructions.updated","sid":"s1","mid":null,"dataKeys":["sessionID","delta"]}
|
|
18
|
+
{"dt_ms":139,"event":"session.inbox.delivered","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID"]}
|
|
19
|
+
{"dt_ms":144,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"}]}
|
|
20
|
+
{"dt_ms":561,"event":"models-dev.refreshed","sid":null,"mid":null,"dataKeys":[]}
|
|
21
|
+
{"dt_ms":561,"event":"integration.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
22
|
+
{"dt_ms":561,"event":"provider.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
23
|
+
{"dt_ms":561,"event":"model.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
24
|
+
{"dt_ms":561,"event":"provider.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
25
|
+
{"dt_ms":561,"event":"model.updated","sid":null,"mid":null,"dataKeys":[]}
|
|
26
|
+
{"dt_ms":1994,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
27
|
+
{"dt_ms":1995,"event":"session.renamed","sid":"s1","mid":null,"dataKeys":["sessionID","title"]}
|
|
28
|
+
{"dt_ms":2023,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
29
|
+
{"dt_ms":2023,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
30
|
+
{"dt_ms":2023,"event":"session.reasoning.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","native"]}
|
|
31
|
+
{"dt_ms":2124,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
32
|
+
{"dt_ms":2239,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
33
|
+
{"dt_ms":2445,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
34
|
+
{"dt_ms":2634,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
35
|
+
{"dt_ms":2739,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
36
|
+
{"dt_ms":2842,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
37
|
+
{"dt_ms":2949,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
38
|
+
{"dt_ms":3059,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
39
|
+
{"dt_ms":3180,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
40
|
+
{"dt_ms":3241,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
41
|
+
{"dt_ms":3242,"event":"session.text.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal"]}
|
|
42
|
+
{"dt_ms":3331,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
43
|
+
{"dt_ms":3331,"event":"session.tool.input.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","name"]}
|
|
44
|
+
{"dt_ms":3391,"event":"session.reasoning.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text","native"]}
|
|
45
|
+
{"dt_ms":3391,"event":"session.tool.input.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","text"]}
|
|
46
|
+
{"dt_ms":3391,"event":"session.tool.called","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","input","executed"]}
|
|
47
|
+
{"dt_ms":3391,"event":"session.text.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text"]}
|
|
48
|
+
{"dt_ms":3391,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
49
|
+
{"dt_ms":3654,"event":"shell.created","sid":null,"mid":"m3","dataKeys":["info"]}
|
|
50
|
+
{"dt_ms":3655,"event":"session.tool.progress","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","metadata"]}
|
|
51
|
+
{"dt_ms":7655,"hook":"prompt","sid":"s1","mid":"m4","keys":["sessionID","messageID","prompt","metadata","delivery"],"delivery":"string","metadata":"undefined"}
|
|
52
|
+
{"dt_ms":7657,"event":"session.inbox.enqueued","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID","item"]}
|
|
53
|
+
{"dt_ms":7667,"event":"shell.exited","sid":null,"mid":null,"dataKeys":["id","exit","status"]}
|
|
54
|
+
{"dt_ms":7669,"event":"experimental.job.updated","sid":null,"mid":"m3","dataKeys":["info"]}
|
|
55
|
+
{"dt_ms":7670,"event":"session.tool.success","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","content","metadata","executed"]}
|
|
56
|
+
{"dt_ms":7709,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"}]}
|
|
57
|
+
{"dt_ms":7710,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
58
|
+
{"dt_ms":7710,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
59
|
+
{"dt_ms":7710,"event":"session.inbox.delivered","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID"]}
|
|
60
|
+
{"dt_ms":9887,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
61
|
+
{"dt_ms":9888,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
62
|
+
{"dt_ms":9888,"event":"session.reasoning.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","native"]}
|
|
63
|
+
{"dt_ms":9988,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
64
|
+
{"dt_ms":10130,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
65
|
+
{"dt_ms":10340,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
66
|
+
{"dt_ms":10421,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
67
|
+
{"dt_ms":10422,"event":"session.text.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal"]}
|
|
68
|
+
{"dt_ms":10512,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
69
|
+
{"dt_ms":10513,"event":"session.tool.input.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","name"]}
|
|
70
|
+
{"dt_ms":10582,"event":"session.reasoning.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text","native"]}
|
|
71
|
+
{"dt_ms":10583,"event":"session.tool.input.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","text"]}
|
|
72
|
+
{"dt_ms":10583,"event":"session.tool.called","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","input","executed"]}
|
|
73
|
+
{"dt_ms":10583,"event":"session.text.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text"]}
|
|
74
|
+
{"dt_ms":10583,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
75
|
+
{"dt_ms":10598,"event":"shell.created","sid":null,"mid":"m6","dataKeys":["info"]}
|
|
76
|
+
{"dt_ms":10599,"event":"session.tool.progress","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","metadata"]}
|
|
77
|
+
{"dt_ms":14620,"event":"shell.exited","sid":null,"mid":null,"dataKeys":["id","exit","status"]}
|
|
78
|
+
{"dt_ms":14624,"event":"experimental.job.updated","sid":null,"mid":"m6","dataKeys":["info"]}
|
|
79
|
+
{"dt_ms":14627,"event":"session.tool.success","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","content","metadata","executed"]}
|
|
80
|
+
{"dt_ms":14679,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"},{"id":"m7","role":"assistant"},{"id":null,"role":"tool"}]}
|
|
81
|
+
{"dt_ms":14680,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
82
|
+
{"dt_ms":14680,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
83
|
+
{"dt_ms":16416,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
84
|
+
{"dt_ms":16416,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
85
|
+
{"dt_ms":16416,"event":"session.tool.input.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","name"]}
|
|
86
|
+
{"dt_ms":16422,"event":"session.tool.input.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","text"]}
|
|
87
|
+
{"dt_ms":16422,"event":"session.tool.called","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","input","executed"]}
|
|
88
|
+
{"dt_ms":16423,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
89
|
+
{"dt_ms":16428,"event":"shell.created","sid":null,"mid":"m8","dataKeys":["info"]}
|
|
90
|
+
{"dt_ms":16429,"event":"session.tool.progress","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","metadata"]}
|
|
91
|
+
{"dt_ms":20444,"event":"shell.exited","sid":null,"mid":null,"dataKeys":["id","exit","status"]}
|
|
92
|
+
{"dt_ms":20447,"event":"experimental.job.updated","sid":null,"mid":"m8","dataKeys":["info"]}
|
|
93
|
+
{"dt_ms":20450,"event":"session.tool.success","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","content","metadata","executed"]}
|
|
94
|
+
{"dt_ms":20506,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"},{"id":"m7","role":"assistant"},{"id":null,"role":"tool"},{"id":"m9","role":"assistant"},{"id":null,"role":"tool"}]}
|
|
95
|
+
{"dt_ms":20507,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
96
|
+
{"dt_ms":20507,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
97
|
+
{"dt_ms":23150,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
98
|
+
{"dt_ms":23151,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
99
|
+
{"dt_ms":23151,"event":"session.reasoning.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","native"]}
|
|
100
|
+
{"dt_ms":23250,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
101
|
+
{"dt_ms":23250,"event":"session.tool.input.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","name"]}
|
|
102
|
+
{"dt_ms":23498,"event":"session.reasoning.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text","native"]}
|
|
103
|
+
{"dt_ms":23499,"event":"session.tool.input.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","text"]}
|
|
104
|
+
{"dt_ms":23499,"event":"session.tool.called","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","input","executed"]}
|
|
105
|
+
{"dt_ms":23499,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
106
|
+
{"dt_ms":23507,"event":"shell.created","sid":null,"mid":"m10","dataKeys":["info"]}
|
|
107
|
+
{"dt_ms":23507,"event":"session.tool.progress","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","metadata"]}
|
|
108
|
+
{"dt_ms":23512,"event":"shell.exited","sid":null,"mid":null,"dataKeys":["id","exit","status"]}
|
|
109
|
+
{"dt_ms":23514,"event":"experimental.job.updated","sid":null,"mid":"m10","dataKeys":["info"]}
|
|
110
|
+
{"dt_ms":23516,"event":"session.tool.success","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","content","metadata","executed"]}
|
|
111
|
+
{"dt_ms":23561,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"},{"id":"m7","role":"assistant"},{"id":null,"role":"tool"},{"id":"m9","role":"assistant"},{"id":null,"role":"tool"},{"id":"m11","role":"assistant"},{"id":null,"role":"tool"}]}
|
|
112
|
+
{"dt_ms":23562,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
113
|
+
{"dt_ms":23562,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
114
|
+
{"dt_ms":25188,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
115
|
+
{"dt_ms":25189,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
116
|
+
{"dt_ms":25189,"event":"session.reasoning.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","native"]}
|
|
117
|
+
{"dt_ms":25242,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
118
|
+
{"dt_ms":25242,"event":"session.tool.input.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","name"]}
|
|
119
|
+
{"dt_ms":25306,"event":"session.reasoning.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text","native"]}
|
|
120
|
+
{"dt_ms":25307,"event":"session.tool.input.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","text"]}
|
|
121
|
+
{"dt_ms":25307,"event":"session.tool.called","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","input","executed"]}
|
|
122
|
+
{"dt_ms":25307,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
123
|
+
{"dt_ms":25318,"event":"shell.created","sid":null,"mid":"m12","dataKeys":["info"]}
|
|
124
|
+
{"dt_ms":25318,"event":"session.tool.progress","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","metadata"]}
|
|
125
|
+
{"dt_ms":25327,"event":"shell.exited","sid":null,"mid":null,"dataKeys":["id","exit","status"]}
|
|
126
|
+
{"dt_ms":25329,"event":"experimental.job.updated","sid":null,"mid":"m12","dataKeys":["info"]}
|
|
127
|
+
{"dt_ms":25331,"event":"session.tool.success","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","id","content","metadata","executed"]}
|
|
128
|
+
{"dt_ms":25349,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"},{"id":"m7","role":"assistant"},{"id":null,"role":"tool"},{"id":"m9","role":"assistant"},{"id":null,"role":"tool"},{"id":"m11","role":"assistant"},{"id":null,"role":"tool"},{"id":"m13","role":"assistant"},{"id":null,"role":"tool"}]}
|
|
129
|
+
{"dt_ms":25350,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
130
|
+
{"dt_ms":25350,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
131
|
+
{"dt_ms":27197,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
132
|
+
{"dt_ms":27197,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
133
|
+
{"dt_ms":27197,"event":"session.text.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal"]}
|
|
134
|
+
{"dt_ms":27298,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
135
|
+
{"dt_ms":27419,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
136
|
+
{"dt_ms":27527,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
137
|
+
{"dt_ms":27527,"event":"session.text.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text"]}
|
|
138
|
+
{"dt_ms":27528,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
139
|
+
{"dt_ms":27551,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
140
|
+
{"dt_ms":27552,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
141
|
+
{"dt_ms":27554,"event":"session.execution.succeeded","sid":"s1","mid":null,"dataKeys":["sessionID"]}
|
|
142
|
+
{"dt_ms":35716,"hook":"prompt","sid":"s1","mid":"m14","keys":["sessionID","messageID","prompt","metadata","delivery"],"delivery":"string","metadata":"undefined"}
|
|
143
|
+
{"dt_ms":35718,"event":"session.inbox.enqueued","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID","item"]}
|
|
144
|
+
{"dt_ms":35723,"hook":"context","sid":"s1","keys":["sessionID","model","system","messages","options","agent","tools"],"messages":[{"id":"m2","role":"user"},{"id":"m5","role":"assistant"},{"id":null,"role":"tool"},{"id":"m4","role":"user"},{"id":"m7","role":"assistant"},{"id":null,"role":"tool"},{"id":"m9","role":"assistant"},{"id":null,"role":"tool"},{"id":"m11","role":"assistant"},{"id":null,"role":"tool"},{"id":"m13","role":"assistant"},{"id":null,"role":"tool"},{"id":"m15","role":"assistant"},{"id":"m14","role":"user"}]}
|
|
145
|
+
{"dt_ms":35724,"event":"session.execution.started","sid":"s1","mid":null,"dataKeys":["sessionID"]}
|
|
146
|
+
{"dt_ms":35724,"event":"session.inbox.delivered","sid":"s1","mid":null,"dataKeys":["sessionID","inboxID"]}
|
|
147
|
+
{"dt_ms":37851,"event":"session.step.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","agent","model","snapshot","started"]}
|
|
148
|
+
{"dt_ms":37852,"event":"session.step.first-token","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
149
|
+
{"dt_ms":37852,"event":"session.reasoning.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","native"]}
|
|
150
|
+
{"dt_ms":37952,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
151
|
+
{"dt_ms":38070,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
152
|
+
{"dt_ms":38179,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
153
|
+
{"dt_ms":38280,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
154
|
+
{"dt_ms":38389,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
155
|
+
{"dt_ms":38490,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
156
|
+
{"dt_ms":38601,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
157
|
+
{"dt_ms":38673,"event":"session.reasoning.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
158
|
+
{"dt_ms":38673,"event":"session.text.started","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal"]}
|
|
159
|
+
{"dt_ms":38774,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
160
|
+
{"dt_ms":38824,"event":"session.reasoning.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text","native"]}
|
|
161
|
+
{"dt_ms":38825,"event":"session.text.delta","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","delta"]}
|
|
162
|
+
{"dt_ms":38825,"event":"session.text.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","ordinal","text"]}
|
|
163
|
+
{"dt_ms":38825,"event":"session.step.streamed","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID"]}
|
|
164
|
+
{"dt_ms":38840,"event":"session.step.ended","sid":"s1","mid":null,"dataKeys":["sessionID","assistantMessageID","finish","rawFinish","cost","tokens","snapshot","files"]}
|
|
165
|
+
{"dt_ms":38840,"event":"session.usage.updated","sid":"s1","mid":null,"dataKeys":["sessionID","cost","tokens"]}
|
|
166
|
+
{"dt_ms":38840,"event":"session.execution.succeeded","sid":"s1","mid":null,"dataKeys":["sessionID"]}
|
|
167
|
+
{"dt_ms":48882,"event":"location.shutdown","sid":null,"mid":null,"dataKeys":[]}
|
|
@@ -4,7 +4,8 @@ Historical evidence only. Nothing here is a GREEN gate.
|
|
|
4
4
|
|
|
5
5
|
- **Not discovered:** `ci/mechanism-test.js` runs only top-level `ci/mechanism-*.test.js`, so nothing in this directory runs in `npm run test:mechanism`.
|
|
6
6
|
- **Owner clause (T2, 2026-10-22):** "only archive the prep fingerprint and the RED-plan gates as historical evidence, and tag tests with `locks: <anchor clause>`. List the unmapped tests, but don't delete them."
|
|
7
|
-
- **
|
|
7
|
+
- **Original replay SHA (historical results):** `0308386058ad942e2764475d48fd65a013910e1e`. The registry was captured at `c271249a8a99d7e0320288af8cb086bb03f8fa1a`.
|
|
8
|
+
- **T2 source-trace SHA:** `360183f49fe3e41f454cebf8671c0dc15a4d4797` (the original runner was confirmed to stop before replay when the pilot fingerprint file was missing).
|
|
8
9
|
|
|
9
10
|
## Manifest
|
|
10
11
|
|
|
@@ -24,7 +25,7 @@ Code changes against the original runner (sha256 `5e85af19…7849c`) are limited
|
|
|
24
25
|
- The fixtures `require` path is `../../lib/doc-reconciliation-prep-fixtures`.
|
|
25
26
|
- The printed re-capture command names `ci/archive/325-prep/doc-reconciliation-red.js`.
|
|
26
27
|
|
|
27
|
-
The header comment also gained an archive note.
|
|
28
|
+
The header comment also gained an archive note. At the original relocation, logic, registry path and fingerprint files were unchanged; the later T2-P compatibility adjustment is documented below.
|
|
28
29
|
|
|
29
30
|
## Commands
|
|
30
31
|
|
|
@@ -39,6 +40,12 @@ node ci/archive/325-prep/historical-qualification.test.js # 4 FAIL, 6 P
|
|
|
39
40
|
- `ci/mechanism-325-3b-preparation.test.js` still runs the archived runner, but only for its infrastructure path (exit 2, child deadline, output bound). Those checks are live.
|
|
40
41
|
- The live suite no longer reads the registry for qualification.
|
|
41
42
|
|
|
43
|
+
### Archived runner compatibility after pilot retirement
|
|
44
|
+
|
|
45
|
+
The archive fingerprint still covers the three surviving workflow files and the historical pilot file. If and only if `hooks/scripts/lib/doc-reconciliation-pilot.js` is missing with `ENOENT`, the runner reports `runtimeFingerprintAvailable: false` and continues through the real replay and infrastructure classifier. An infrastructure result remains infrastructure; every non-infrastructure result fails with zero qualified gaps. This unavailable state does not print a recapture command, and candidate recapture is refused. Missing or unreadable files elsewhere retain the original infrastructure-error behavior. The live scratch-tree regression removes the source and packaged pilot files and exercises real source/package Stop-gate subprocesses without runtime stubs.
|
|
46
|
+
|
|
47
|
+
This compatibility path keeps the archived infrastructure checks runnable after R2 removes the pilot module. It does not restore qualification as a live GREEN gate or change the recorded historical registry, hashes, fixture, or results.
|
|
48
|
+
|
|
42
49
|
## Coordinator disposition (pending)
|
|
43
50
|
|
|
44
51
|
The WA pending-probe gate (`P-ignore-missing-expected-must`, WA report 28–30) is superseded for WB by the coordinator's disposition. The coordinator records that disposition. It is not recorded here.
|
|
@@ -37,11 +37,13 @@ const ENTRY_KEYS = ['caseId', 'assertionId', 'distribution', 'baselineSha', 'act
|
|
|
37
37
|
// Shared runtime files whose bytes define what the registry describes. Every P01-P08 replay loads the first
|
|
38
38
|
// three (verified by a preload probe, see h3.md). doc-evidence.js is not loaded by any replay, so it is excluded:
|
|
39
39
|
// #341 0B refactors it, and including it would turn this suite red for an unrelated reason.
|
|
40
|
+
// R2 retires the pilot module; only its absence is tolerated by this historical runner.
|
|
41
|
+
const RETIRED_PILOT_FINGERPRINT_FILE = 'hooks/scripts/lib/doc-reconciliation-pilot.js';
|
|
40
42
|
const FINGERPRINT_FILES = [
|
|
41
43
|
'hooks/scripts/lib/workflow-obligations.js',
|
|
42
44
|
'hooks/scripts/workflow-disposition.js',
|
|
43
45
|
'hooks/scripts/workflow-stop-gate.js',
|
|
44
|
-
|
|
46
|
+
RETIRED_PILOT_FINGERPRINT_FILE
|
|
45
47
|
];
|
|
46
48
|
const CANDIDATE_FILE = 'ci/fixtures/doc-obligations/reconciliation-prep/pending-red.candidate.json';
|
|
47
49
|
const UNREVIEWED_REASON = 'needs-reason';
|
|
@@ -50,12 +52,23 @@ class RegistryError extends Error {}
|
|
|
50
52
|
|
|
51
53
|
function fingerprint() {
|
|
52
54
|
const hash = crypto.createHash('sha256');
|
|
55
|
+
let unavailable = false;
|
|
53
56
|
for (const rel of FINGERPRINT_FILES) {
|
|
54
57
|
hash.update(`${rel}\0`);
|
|
55
|
-
|
|
58
|
+
let bytes;
|
|
59
|
+
try {
|
|
60
|
+
bytes = fs.readFileSync(path.join(ROOT, rel));
|
|
61
|
+
} catch (error) {
|
|
62
|
+
if (rel === RETIRED_PILOT_FINGERPRINT_FILE && error.code === 'ENOENT') {
|
|
63
|
+
unavailable = true;
|
|
64
|
+
continue;
|
|
65
|
+
}
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
hash.update(bytes);
|
|
56
69
|
hash.update('\0');
|
|
57
70
|
}
|
|
58
|
-
return hash.digest('hex');
|
|
71
|
+
return unavailable ? null : hash.digest('hex');
|
|
59
72
|
}
|
|
60
73
|
|
|
61
74
|
// Read-only: the commit named in the re-capture command. Falls back to a visible placeholder.
|
|
@@ -272,13 +285,16 @@ function run(args) {
|
|
|
272
285
|
const registry = loadRegistry(args.registryFile);
|
|
273
286
|
validateRegistry(registry, corpus);
|
|
274
287
|
const runtime = fingerprint();
|
|
288
|
+
const runtimeFingerprintAvailable = runtime !== null;
|
|
289
|
+
const runtimeFingerprintMatches = runtimeFingerprintAvailable && registry.runtimeFingerprint === runtime;
|
|
275
290
|
const cases = corpus.cases.filter(item => args.cases.length === 0 || args.cases.includes(item.id));
|
|
276
291
|
if (args.cases.length && cases.length !== args.cases.length) throw new RegistryError('a --case names no corpus case');
|
|
277
292
|
const report = {
|
|
278
293
|
schemaVersion: 1,
|
|
279
294
|
mode: args.mode,
|
|
280
295
|
baselineSha: registry.baselineSha,
|
|
281
|
-
|
|
296
|
+
runtimeFingerprintAvailable,
|
|
297
|
+
runtimeFingerprintMatches,
|
|
282
298
|
pilotCredit: false,
|
|
283
299
|
replaysRun: 0,
|
|
284
300
|
cases: []
|
|
@@ -286,8 +302,14 @@ function run(args) {
|
|
|
286
302
|
for (const [index, item] of cases.entries()) {
|
|
287
303
|
const replays = replayAll(item);
|
|
288
304
|
report.replaysRun += countReplays(replays);
|
|
289
|
-
const
|
|
290
|
-
|
|
305
|
+
const entries = runtimeFingerprintAvailable
|
|
306
|
+
? registry.entries.filter(entry => entry.caseId === item.id)
|
|
307
|
+
: [];
|
|
308
|
+
const result = classifyCase(item, replays, entries);
|
|
309
|
+
if (!runtimeFingerprintAvailable && result.status !== 'INFRASTRUCTURE') {
|
|
310
|
+
result.status = 'FAIL';
|
|
311
|
+
result.reason = 'runtime fingerprint unavailable because the retired pilot file is missing';
|
|
312
|
+
} else if (!runtimeFingerprintMatches && result.status !== 'INFRASTRUCTURE') {
|
|
291
313
|
result.status = 'FAIL';
|
|
292
314
|
result.reason = 'runtime fingerprint differs from the registry capture';
|
|
293
315
|
}
|
|
@@ -298,7 +320,7 @@ function run(args) {
|
|
|
298
320
|
break;
|
|
299
321
|
}
|
|
300
322
|
}
|
|
301
|
-
if (!
|
|
323
|
+
if (runtimeFingerprintAvailable && !runtimeFingerprintMatches) report.recaptureCommand = recaptureCommand(currentCommit());
|
|
302
324
|
return report;
|
|
303
325
|
}
|
|
304
326
|
|
|
@@ -306,6 +328,10 @@ function run(args) {
|
|
|
306
328
|
// Reason codes carry over by identity; a gap that is new to the registry gets the unreviewed marker.
|
|
307
329
|
function recapture(args) {
|
|
308
330
|
const corpus = fx.readCaseCorpus(args.casesFile);
|
|
331
|
+
const runtimeFingerprint = fingerprint();
|
|
332
|
+
if (runtimeFingerprint === null) {
|
|
333
|
+
throw new RegistryError('runtime fingerprint unavailable because the retired pilot file is missing');
|
|
334
|
+
}
|
|
309
335
|
const existing = fs.existsSync(args.registryFile) ? loadRegistry(args.registryFile).entries || [] : [];
|
|
310
336
|
const known = new Map(existing.map(entry => [`${entry.assertionId}|${entry.distribution}`, entry.reasonCode]));
|
|
311
337
|
const entries = [];
|
|
@@ -338,7 +364,7 @@ function recapture(args) {
|
|
|
338
364
|
if (problems.length) return { ok: false, problems };
|
|
339
365
|
return {
|
|
340
366
|
ok: true,
|
|
341
|
-
candidate: { schemaVersion: 1, phase: '325-3b-H2', baselineSha: args.baselineSha, runtimeFingerprint
|
|
367
|
+
candidate: { schemaVersion: 1, phase: '325-3b-H2', baselineSha: args.baselineSha, runtimeFingerprint, entries }
|
|
342
368
|
};
|
|
343
369
|
}
|
|
344
370
|
|