harness-everything 0.51.0 → 0.53.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/.github/workflows/ci.yml +23 -0
- package/CHANGELOG.md +54 -0
- package/benchmarks/results/doc-evidence-e1/cycle-2026-11-11-a-evid-001.md +123 -0
- package/benchmarks/results/doc-evidence-e1/cycle-2026-11-11-b-route-001.md +130 -0
- package/benchmarks/results/live-host/opencode-2026-11-15-workspace/README.md +7 -0
- package/benchmarks/results/live-host/opencode-2026-11-15-workspace/live-workspace-probe.js +16 -0
- package/benchmarks/results/live-host/opencode-2026-11-15-workspace/live-workspace-trace-2026-11-15.jsonl +4 -0
- package/ci/mechanism-2am-observations-session-import.test.js +4 -1
- package/ci/mechanism-2n-opencode-plugin.test.js +1 -1
- package/ci/mechanism-2p-opencode-v2-entrypoint.test.js +18 -3
- package/ci/mechanism-338-opencode-async.test.js +20 -3
- package/ci/mechanism-34-observations.test.js +127 -23
- package/ci/mechanism-341-opencode-lane.test.js +7 -1
- package/ci/mechanism-349-ci-change-scope.test.js +260 -0
- package/ci/mechanism-397-cycle-import.test.js +399 -0
- package/ci/mechanism-397-host-acceptance.test.js +119 -0
- package/ci/mechanism-397-opencode-observations.test.js +1922 -0
- package/ci/mechanism-handoff-file.test.js +121 -0
- package/ci/mechanism-system-one-contract.test.js +9 -2
- package/ci/mechanism-system-one-curves.test.js +223 -0
- package/ci/mechanism-system-one-cycle.test.js +1204 -0
- package/ci/mechanism-system-one-evaluation.test.js +32 -5
- package/ci/mechanism-system-one-handoff-input.test.js +208 -0
- package/ci/mechanism-system-one-install.test.js +202 -77
- package/ci/mechanism-system-one-live.test.js +361 -0
- package/ci/mechanism-system-one-relevance.test.js +11 -1
- package/ci/mechanism-system-one-train.test.js +136 -53
- package/ci/system-one-adapter-test.py +331 -0
- package/ci/system-one-train-test.py +116 -24
- package/docs/adr/EVID-001.md +123 -0
- package/docs/adr/ROUTE-001-error-lesson-delivery.md +305 -0
- package/docs/governed-index.md +2 -0
- package/docs/platform-capabilities.md +13 -6
- package/docs/routing.md +2 -2
- package/docs/system-one-cycle.md +77 -0
- package/docs/system-one-observations.md +43 -11
- package/docs/system-one-routing.md +163 -115
- package/docs/system-one-suggestion-gates.md +6 -8
- package/docs/system-one-training.md +44 -7
- package/docs/workflow-runtime.md +19 -0
- package/harness-everything/SKILL.md +1 -1
- package/harness-everything/scripts/kernel-router.js +2 -1
- package/harness-everything/scripts/system-one/contract.js +19 -15
- package/harness-everything/scripts/system-one/cua_adapter.py +211 -17
- package/harness-everything/scripts/system-one/evaluate.js +4 -9
- package/harness-everything/scripts/system-one/handoff-input.js +76 -0
- package/harness-everything/scripts/system-one/install.js +281 -113
- package/harness-everything/scripts/system-one/manifest.js +58 -0
- package/harness-everything/scripts/system-one/provider.js +96 -2
- package/harness-everything/scripts/system-one/resident.js +47 -1
- package/harness-everything/scripts/system-one/router.js +80 -1
- package/harness-everything/scripts/tier-router.js +21 -6
- package/hooks/scripts/lib/observations.js +48 -7
- package/opencode-plugin/README.md +22 -8
- package/opencode-plugin/index.mjs +424 -44
- package/opencode-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/plugins/harness-everything/.codex-plugin/plugin.json +1 -1
- package/plugins/harness-everything/hooks/scripts/lib/observations.js +48 -7
- package/plugins/harness-everything/plugin.json +1 -1
- package/plugins/harness-everything/scripts/handoff-file.js +223 -0
- package/plugins/harness-everything/skills/harness-everything/SKILL.md +1 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/kernel-router.js +2 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/contract.js +19 -15
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/cua_adapter.py +211 -17
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/evaluate.js +4 -9
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/handoff-input.js +76 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/install.js +281 -113
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/manifest.js +58 -0
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/provider.js +96 -2
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/resident.js +47 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/system-one/router.js +80 -1
- package/plugins/harness-everything/skills/harness-everything/scripts/tier-router.js +21 -6
- package/sbom.cdx.json +7 -7
- package/scripts/ci-change-scope.js +59 -0
- package/scripts/handoff-file.js +223 -0
- package/scripts/sync-openai-plugin.js +4 -0
- package/scripts/system-one-calibrate.js +108 -41
- package/scripts/system-one-curves.js +472 -0
- package/scripts/system-one-cycle/adjudication-input.js +65 -0
- package/scripts/system-one-cycle/build.js +165 -0
- package/scripts/system-one-cycle/collect.js +67 -0
- package/scripts/system-one-cycle/common.js +175 -0
- package/scripts/system-one-cycle/engines.js +62 -0
- package/scripts/system-one-cycle/evaluate.js +73 -0
- package/scripts/system-one-cycle/judge.js +106 -0
- package/scripts/system-one-cycle/label.js +59 -0
- package/scripts/system-one-cycle/package.js +173 -0
- package/scripts/system-one-cycle/score.py +111 -0
- package/scripts/system-one-cycle/train.js +136 -0
- package/scripts/system-one-cycle.js +136 -0
- package/scripts/system-one-observations-export.js +58 -6
- package/scripts/system-one-observations-import-store.js +128 -0
- package/scripts/system-one-observations-review.js +4 -5
- package/scripts/system-one-train.py +117 -61
|
@@ -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": "0.53.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": "0.53.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Miya Daniel"
|
|
7
7
|
},
|
package/.github/workflows/ci.yml
CHANGED
|
@@ -21,7 +21,30 @@ jobs:
|
|
|
21
21
|
- name: Verify pilot instrumentation, sanitizer and offline replay
|
|
22
22
|
run: python3 benchmarks/issue290-pilot/check.py
|
|
23
23
|
|
|
24
|
+
ci-change-scope:
|
|
25
|
+
if: ${{ github.event_name == 'pull_request' }}
|
|
26
|
+
runs-on: ubuntu-latest
|
|
27
|
+
outputs:
|
|
28
|
+
scope: ${{ steps.scope.outputs.scope }}
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@v7
|
|
31
|
+
with:
|
|
32
|
+
fetch-depth: 0
|
|
33
|
+
- uses: actions/setup-node@v7
|
|
34
|
+
with:
|
|
35
|
+
node-version: 24
|
|
36
|
+
- name: Classify the full pull request diff
|
|
37
|
+
id: scope
|
|
38
|
+
env:
|
|
39
|
+
PR_BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
40
|
+
PR_HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
41
|
+
run: |
|
|
42
|
+
scope="$(node scripts/ci-change-scope.js "$GITHUB_EVENT_NAME" "$PR_BASE_SHA" "$PR_HEAD_SHA")"
|
|
43
|
+
printf 'scope=%s\n' "$scope" >> "$GITHUB_OUTPUT"
|
|
44
|
+
|
|
24
45
|
self-regression:
|
|
46
|
+
needs: [ci-change-scope]
|
|
47
|
+
if: ${{ !cancelled() && (needs.ci-change-scope.result != 'success' || needs.ci-change-scope.outputs.scope != 'docs-only') }}
|
|
25
48
|
strategy:
|
|
26
49
|
fail-fast: false
|
|
27
50
|
matrix:
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.53.0](https://github.com/dyphn1/Harness-everything/compare/v0.52.0...v0.53.0) (2026-11-18)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **observations:** inject the label contract and record opencode turns ([2fa9d6d](https://github.com/dyphn1/Harness-everything/commit/2fa9d6d4c516c858c763a9a6a5110edf778f5019))
|
|
10
|
+
* **system-one:** import live observations into the cycle store ([aa8af52](https://github.com/dyphn1/Harness-everything/commit/aa8af5256efef61807f6b7927b43927f0b4abaf5))
|
|
11
|
+
* **system-one:** report per-host label acceptance before filtering ([63c817b](https://github.com/dyphn1/Harness-everything/commit/63c817b5e9c8481df1da7206e37673f45275ef8e))
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **opencode:** bind each prompt to its session workspace ([861e55e](https://github.com/dyphn1/Harness-everything/commit/861e55ec1627a41b31c6139c6e7ba7b53ef3bb7d))
|
|
16
|
+
* **opencode:** close the observation turn on v2 execution events ([9051c28](https://github.com/dyphn1/Harness-everything/commit/9051c28e2818aa6826e483e0edb4e458c94a4871))
|
|
17
|
+
* **opencode:** read the final reply from the v2 session context ([fb24958](https://github.com/dyphn1/Harness-everything/commit/fb2495817e27f596aa4001ff3a99f97c7d021588))
|
|
18
|
+
* **opencode:** run the router with node inside the bun host ([f7addfc](https://github.com/dyphn1/Harness-everything/commit/f7addfc0290af7622a1e30560b1ea746bb77cd10))
|
|
19
|
+
* **opencode:** settle disposal while completion context is pending ([554b812](https://github.com/dyphn1/Harness-everything/commit/554b81232854b67e3abf4d85a217d8e0277753c3)), closes [#448](https://github.com/dyphn1/Harness-everything/issues/448)
|
|
20
|
+
* **opencode:** stop publishing state after plugin disposal ([a0f8204](https://github.com/dyphn1/Harness-everything/commit/a0f8204a9a70834c990284c9ba5f49652553ec6d)), closes [#448](https://github.com/dyphn1/Harness-everything/issues/448)
|
|
21
|
+
* **opencode:** translate v2 lifecycle events and guard stale bindings ([5371ead](https://github.com/dyphn1/Harness-everything/commit/5371ead206de2622dcb7616380be48855cf3e493))
|
|
22
|
+
* **system-one:** keep cross-month cycle history for trend decisions ([e918e45](https://github.com/dyphn1/Harness-everything/commit/e918e455c47ad53940d8f6c22cb37e9ec0d28d20)), closes [#443](https://github.com/dyphn1/Harness-everything/issues/443) [#446](https://github.com/dyphn1/Harness-everything/issues/446)
|
|
23
|
+
* **system-one:** reject incompatible history on cycle resume ([e6af72f](https://github.com/dyphn1/Harness-everything/commit/e6af72f87cfb552d6683fde9683677f41ae2e892)), closes [#446](https://github.com/dyphn1/Harness-everything/issues/446)
|
|
24
|
+
|
|
25
|
+
## [0.52.0](https://github.com/dyphn1/Harness-everything/compare/v0.51.0...v0.52.0) (2026-11-15)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **observations:** drop the context-dependent label field ([a722bae](https://github.com/dyphn1/Harness-everything/commit/a722bae340431b2e8fe488de00f30ccc535e3190))
|
|
30
|
+
* **observations:** record the system one version and suggestion per turn ([56e27c0](https://github.com/dyphn1/Harness-everything/commit/56e27c0872cc429e8464612909c23895e366ec9d))
|
|
31
|
+
* **system-one:** add the owner-started training cycle kit and runbook ([4ebde21](https://github.com/dyphn1/Harness-everything/commit/4ebde21b43316d5634f36ff8deeb335a9c00cbac))
|
|
32
|
+
* **system-one:** install, activate and roll back private weight versions ([207b3dd](https://github.com/dyphn1/Harness-everything/commit/207b3ddeb673096d6a32f5d9bcbf49b32e2666a4))
|
|
33
|
+
* **system-one:** judge versions by long-term calibration and coverage curves ([a647de9](https://github.com/dyphn1/Harness-everything/commit/a647de9334fe583f1652fa0f92de02b7aee5121f))
|
|
34
|
+
* **system-one:** read hand-off file headers as system one input ([444a889](https://github.com/dyphn1/Harness-everything/commit/444a889cde392974c6b23d02841c977931823513))
|
|
35
|
+
* **system-one:** read per-option sigmoid scores and record gates as baseline ([a32ae49](https://github.com/dyphn1/Harness-everything/commit/a32ae49b1cb3125803292283d6b31541d183c3e1))
|
|
36
|
+
* **system-one:** run validity, intent and tier live with explicit precedence ([8d2e66e](https://github.com/dyphn1/Harness-everything/commit/8d2e66ef83c3b7d3a69aede41d98c2ac4f822268))
|
|
37
|
+
* **system-one:** train validity, intent and tier with per-option sigmoid ([3e14598](https://github.com/dyphn1/Harness-everything/commit/3e14598efb345d13054f2ec87cfde29244180615)), closes [#264](https://github.com/dyphn1/Harness-everything/issues/264)
|
|
38
|
+
* **workflow:** generate hand-off files with a short yaml header ([3a1c779](https://github.com/dyphn1/Harness-everything/commit/3a1c7797873173964bbfe3d4ea0705154d110d84))
|
|
39
|
+
|
|
40
|
+
### Bug Fixes
|
|
41
|
+
|
|
42
|
+
* **system-one:** count correct actionable validity decisions in curves ([0c9c127](https://github.com/dyphn1/Harness-everything/commit/0c9c127bb285721fb8e3391c5edaadb7a2d24747))
|
|
43
|
+
* **system-one:** count option tokens in the training batch budget ([dde4e07](https://github.com/dyphn1/Harness-everything/commit/dde4e0735eefd32cd17594d29d24199d86cc7517))
|
|
44
|
+
* **system-one:** keep legacy score contracts beside per-option sigmoid scores ([8a5522d](https://github.com/dyphn1/Harness-everything/commit/8a5522d4407fc5726b42c6d2bbe10f8c22341059))
|
|
45
|
+
* **system-one:** let live score the trained intent catalog ([61d17f8](https://github.com/dyphn1/Harness-everything/commit/61d17f8fc42725cf4c195638b622f7c81567bd0a))
|
|
46
|
+
* **system-one:** make the trained catalog the single source of stage options ([1c0d8fc](https://github.com/dyphn1/Harness-everything/commit/1c0d8fcf7179192d02e6fceddc98da22a11ee17f)), closes [#233](https://github.com/dyphn1/Harness-everything/issues/233)
|
|
47
|
+
* **system-one:** package infeasible thresholds as reference-only options ([ce94f57](https://github.com/dyphn1/Harness-everything/commit/ce94f57c5f9cf6f038be7b30e662d95a7eb5c2d6))
|
|
48
|
+
* **system-one:** resolve the private data destination before writing prompts ([13b97c8](https://github.com/dyphn1/Harness-everything/commit/13b97c881083ca03a1676155a07d43b2b18866e7)), closes [#233](https://github.com/dyphn1/Harness-everything/issues/233)
|
|
49
|
+
* **system-one:** restore the 16384 default training batch budget ([ff1cd93](https://github.com/dyphn1/Harness-everything/commit/ff1cd93f14bf6d6bd154e19bfeed7bab4850bc46))
|
|
50
|
+
* **system-one:** score holdouts with the trained option catalog ([8f44f59](https://github.com/dyphn1/Harness-everything/commit/8f44f59dcfe2504c2375dabfd2b8cd16d5e970be))
|
|
51
|
+
* **system-one:** score legacy categorical checkpoints with softmax again ([7cfb1bb](https://github.com/dyphn1/Harness-everything/commit/7cfb1bb91bbc4efb3d33c7936f96aac448994048))
|
|
52
|
+
* **system-one:** send intent disagreements to the judge vote ([c5a2747](https://github.com/dyphn1/Harness-everything/commit/c5a2747deab92f3156011ce360950412561b55e5)), closes [#233](https://github.com/dyphn1/Harness-everything/issues/233)
|
|
53
|
+
* **system-one:** share one version manifest contract across kit and runtime ([55e96b6](https://github.com/dyphn1/Harness-everything/commit/55e96b6e9c590ba677f5ff6e938649a4b95c852b))
|
|
54
|
+
|
|
5
55
|
## [0.51.0](https://github.com/dyphn1/Harness-everything/compare/v0.50.0...v0.51.0) (2026-11-11)
|
|
6
56
|
|
|
7
57
|
### Features
|
|
@@ -18,6 +68,10 @@ All notable changes to this project are documented in this file.
|
|
|
18
68
|
|
|
19
69
|
### Features
|
|
20
70
|
|
|
71
|
+
* **system-one:** Opt-in machines can run System One live (`HARNESS_SYSTEM_ONE_MODE=live`): CUA-S1 validity → intent → tier with independent per-option sigmoid scores shown as reference confidence, explicit choices and the structural floor ahead of it, the lexical tier as fallback. Weights are private versions installed, activated and rolled back with `install.js`; nothing is enabled by default.
|
|
72
|
+
* **system-one:** Owner-started training cycle (`scripts/system-one-cycle.js`, runbook `docs/system-one-cycle.md`): collect, label, judge, build, train under a CPU/memory guard, evaluate by long-term calibration and coverage curves, package and publish. Hand-off files can carry a short YAML header (`scripts/handoff-file.js`) that System One reads as input.
|
|
73
|
+
* **observations:** The turn label line drops `contextDependent`; `invalid` now means only that the prompt needs conversation context, and agent-written prompts are ordinary prompts. Turn records keep the System One version and suggestion.
|
|
74
|
+
* **CI:** Skip the three-platform Node 24 self-regression matrix for pull requests limited to approved documentation, benchmark results, error ledger, or changelog paths.
|
|
21
75
|
* **doc-reconciliation:** credit only correlated, bounded workflow-state operations for the approved row-17 outline cycle
|
|
22
76
|
|
|
23
77
|
## [0.50.0](https://github.com/dyphn1/Harness-everything/compare/v0.49.0...v0.50.0) (2026-11-09)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Cycle A — EVID-001 retrospective record
|
|
2
|
+
|
|
3
|
+
- **Preparer:** one-shot worker; compiled from the retained trail; **not an independent adjudication**.
|
|
4
|
+
- **Date:** 2026-11-11.
|
|
5
|
+
- **Packet input SHA:** `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`.
|
|
6
|
+
- **Run identity:** `t1-records-1`, packet revision 1. The preparer's model/effort are not recorded in this cycle trail.
|
|
7
|
+
|
|
8
|
+
## Task, scope, and starting version
|
|
9
|
+
|
|
10
|
+
| Field | Record |
|
|
11
|
+
|---|---|
|
|
12
|
+
| Task | Produce the row-17 `docs/adr/EVID-001.md`, a retrospective evidence record for the already-shipped `verify:all` gate. Inventory row 17 was described as owner-approved in the outline packet and cites [issue #325](https://github.com/dyphn1/Harness-everything/issues/325). |
|
|
13
|
+
| Agreed scope | Describe the local gate, its exact `--fast` and Node 22 limits, `UNCHECKED` reasons, observed evidence, and differences from hosted CI. No gate/runtime change. The simplified E1 requirements and blocker/budget rules are in [#421 comment 6785927033](https://github.com/dyphn1/Harness-everything/issues/421#issuecomment-6785927033) §5. |
|
|
14
|
+
| Starting version | Repository input `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`; `git cat-file -e bde411dea9ea1d7f6a90cc6996aea8e0edbb2692:docs/adr/EVID-001.md` exited 128 (`fatal: path ... is not in ...`), so the target did not yet exist at that version. |
|
|
15
|
+
| Scope authority | The local definition records owner decisions D3/D4 and the row-17 scope; it says qualification is after-the-fact, the outline evidence purpose stays, and pilot credit is not a condition. See `LOCAL_ONLY: trail/definition.md; sha256:48f6664f4e80f4007b1a519b36875b630cd4071f6b50ef4e7fc77262d705157f` and `LOCAL_ONLY: trail/advisor-answer-32.md; sha256:a93ff4fecd5318e6b3fe06bde7f24629020abc51401d83007d58fc8f6760e539`. |
|
|
16
|
+
|
|
17
|
+
## Reading list
|
|
18
|
+
|
|
19
|
+
The final ADR's `Related sources` table is the complete reading list, pinned to artifact SHA-256 `7fab327b223b96ac9f43a8643e636c0ad27070a7df209febbe8b955dcbb7f3b4` at commit `6653a9d4711abbb05332b08984dd0ff5d8f56234`. It contains these 16 rows:
|
|
20
|
+
|
|
21
|
+
| Source group | Sources and purpose |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Runner contract | `scripts/verify-all.js`, `ci/mechanism-38-verify-all.test.js`, and `package.json`: plan, flags, row order, reporting, and the direct contract test. |
|
|
24
|
+
| Repository and hosted CI | `AGENTS.md` verification section, `docs/repository-contract.md`, `.github/workflows/ci.yml`, `.github/workflows/doc-governance.yml`, `.github/workflows/release.yml`, and `.nvmrc`: local/hosted coverage, guard boundary, and runtime lanes. |
|
|
25
|
+
| Gate callers and evidence | `self-evolve/scripts/self-regression.js`, `docs/doc-workflow-reconciliation.md`, `docs/own-repo-governance-e1-plan-2026-10-25-2139.md`, `benchmarks/results/codex-pr-metadata-2026-10-26/verification.md`, and `docs/document-lifecycle.md`: nested checks, run protocol, bound local output, and recorded hosted runs. |
|
|
26
|
+
| Historical limits | `.agents/harness-everything/errors/E-0001-doc-check-identity-split-decision.md` and `E-0009-one-shot-sandbox-env.md`: the unbound historical summaries and specific sandbox limitations, kept distinct from current or hosted evidence. |
|
|
27
|
+
|
|
28
|
+
## Outline, reviews, triage, and dispatch
|
|
29
|
+
|
|
30
|
+
```mermaid
|
|
31
|
+
flowchart LR
|
|
32
|
+
O["Outline O: 52fb8098"] --> R["Two independent outline reviews"]
|
|
33
|
+
R --> T["One coordinator/owner triage"]
|
|
34
|
+
T --> D["Draft D: 9ca54e94"]
|
|
35
|
+
D --> F["Independent final review: one blocker, two deferred"]
|
|
36
|
+
F --> C["One blocker correction D2: 6653a9d4"]
|
|
37
|
+
C --> Q["Targeted re-check: F1 closed"]
|
|
38
|
+
Q --> M["PR #430 merged: 7832d339"]
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
| Stage | Version and outcome |
|
|
42
|
+
|---|---|
|
|
43
|
+
| Outline | O = `52fb8098326bf1b4f9dca812320959eccd13ee89`; outline digest `292eae36446a415da5a717f683e421c7145ec0675a3576a19a05fd78c399f606`. |
|
|
44
|
+
| Outline reviews | Two separate fresh-context reviewers. Review 1: REJECT with three blockers and three deferred. Review 2: ACCEPT WITH CHANGES with four blockers. Both were source-traced; neither ran `verify:all`. |
|
|
45
|
+
| Triage | One consolidated round in `triage-a.md`: T1–T6 in-scope and dispatched to the draft; T7 (AGENTS wording) out of scope, facts stated and issue #429 linked. No second outline review. |
|
|
46
|
+
| Draft dispatch | `packet-a-draft.md` at O; draft D = `9ca54e9416c8aae8e3a16dd0cf4b1ab349a94c32`. The ADR digest at D was `4443b407b5d86445d03ff83b3da64067e48ac4c2099d18a5c1954f1954a25f32`; the governed index was regenerated. |
|
|
47
|
+
| Final review | Bound to D and its ADR digest. ACCEPT WITH CHANGES: F1 blocker (E-0001/E-0009 summaries not bound to SHA plus output); F2 `--clean` wording and F3 missing row-17 inventory source deferred. T1–T3 and T5–T7 addressed; T4 partial. |
|
|
48
|
+
| Correction and re-check | Advisor answer 34 limited the single correction to F1 and left F2/F3 deferred. Fix D2 = `6653a9d4711abbb05332b08984dd0ff5d8f56234`, digest `7fab327b223b96ac9f43a8643e636c0ad27070a7df209febbe8b955dcbb7f3b4`; three evidence qualifiers changed, facts retained. Targeted re-check at D2 closed F1. This was a targeted re-check, not a second full review. |
|
|
49
|
+
|
|
50
|
+
Trail: `LOCAL_ONLY: trail/packet-a-outline.md; sha256:22b372080d8608478cc201d752335285957f7f2e1f7712c5ec3c49be673c120f`; `LOCAL_ONLY: trail/report-a-outline.md; sha256:503f0efb185f0792d42f03b445dad541bfbb72df9dda8aba0f5c21efb26764ee`; `LOCAL_ONLY: trail/report-a-review-1.md; sha256:b1eaf520a33beab082cac2660f28c8d304e74b654a6224a9cceaea5ed0b842a7`; `LOCAL_ONLY: trail/report-a-review-2.md; sha256:594d2e54eb841190097e4ba2a680ce0c7fb0130288430f8bca44fae28af342ab`; `LOCAL_ONLY: trail/triage-a.md; sha256:7801f8b917551b3cbfcccae45a367b182502e82e2767c2904006bf9dd1e60cb6`; `LOCAL_ONLY: trail/packet-a-draft.md; sha256:f6b5b3ee95f020e056ade25cc14dda621ab1897d75d8140295a3d4331d974820`; `LOCAL_ONLY: trail/report-a-draft.md; sha256:13ab3d532b5dfe90e6e8cdac0e85a21f651f3217ac9dbacb55b3c58d7f465623`; `LOCAL_ONLY: trail/report-a-final.md; sha256:332168f4bee0601853e8ba3822837652b5d3f2a69b24cb95ec051a30769fbfc3`; `LOCAL_ONLY: trail/packet-a-fix.md; sha256:a3a124d440e3c774245d4c78eee9fc137a3cdd5533251ec789e6120e5e2a0157`;
|
|
51
|
+
|
|
52
|
+
`LOCAL_ONLY: trail/report-a-fix.md; sha256:49c1cee079de5d4bb6d5840b121237b72c0080a466c1ef396e6d8e50cb834020`; `LOCAL_ONLY: trail/packet-a-recheck.md; sha256:16c141af43c62834da83cec65039cbe3d72789c5c3874ddc41f67ade93ed5c87`; `LOCAL_ONLY: trail/report-a-recheck.md; sha256:691b8cbd2c22b33623e4d3184029a109acb9f9e1d120886a87d95be0b6dc364c`; `LOCAL_ONLY: trail/advisor-answer-34.md; sha256:7f312cb434f7184a3f7b656b68d38fa92b038999ca44ea61e06324d37bbffbea`; `LOCAL_ONLY: trail/advisor-answer-36.md; sha256:197bf990528fed05eb02ee290657424ba33a3ac65dbe725d99b44a0ddf3246c3`.
|
|
53
|
+
|
|
54
|
+
## Authors, reviewers, and assistance
|
|
55
|
+
|
|
56
|
+
- Draft and correction packets were completed by one-shot workers; their personal identities are unknown. Their logs identify `glm-5.3-flash-free`; effort is not recorded.
|
|
57
|
+
- The outline reviewers, final reviewer, and re-checker are identified by role only. Their logs identify `gpt-6-luna` at `xhigh`; no personal identities are retained. The final reviewer and re-checker were separate from the author/corrector per their read-only packet declarations.
|
|
58
|
+
- Coordinator assistance included scope/outline preparation, advisor answers 32 and 34, reviewer and draft/fix/re-check packet preparation, triage, source/check coordination, branch commits, PR merge, and index handling. Work was assisted; it is not described as unassisted.
|
|
59
|
+
- Git author/committer fields on O, D, and D2 say `Miya Daniel`; the trail does not map that account to each worker. The PR snapshot lists head and merge commits. Do not infer worker identity from the commit author.
|
|
60
|
+
- Model/effort locators: `LOCAL_ONLY: trail/a-outline.log; sha256:3ce846c4957cb0ec0ac5b1b2098e300a03bf6c12ecb4351c49ac477ecaa18935`; `LOCAL_ONLY: trail/a-draft.log; sha256:06c33b16fe959e37586d6b00ac2ed78ee6bd0c8db861ae4fc0f02b96fa52d90a`; `LOCAL_ONLY: trail/a-fix.log; sha256:e93a3ee2938a97aaa6195c61253fb11b6eb034ce072d04818bb310eb659f412a`; `LOCAL_ONLY: trail/a-review-1.log; sha256:4dd35f7b64711abf1716387a4e2a56d67d140ecf5e17c24f463b623583a2ac67`; `LOCAL_ONLY: trail/a-review-2.log; sha256:00cafa39378a8e8a081e2ccc5113f5aea24020dc839095783ed427686411f7d2`; `LOCAL_ONLY: trail/a-final.log; sha256:d69d8fba9eb7a6c0dcbfccfb07b509bd0949609166edc5176befc5bf728c968a`; `LOCAL_ONLY: trail/a-recheck.log; sha256:ed57b483d748b8dd6ad4f6f5c1b515f5fb91edbd77af081b4a4a83d1d5ec762d`.
|
|
61
|
+
|
|
62
|
+
## Final artifact commit and owner decision
|
|
63
|
+
|
|
64
|
+
| Item | Evidence |
|
|
65
|
+
|---|---|
|
|
66
|
+
| Final artifact | `docs/adr/EVID-001.md` at PR #430 head D2 `6653a9d4711abbb05332b08984dd0ff5d8f56234`; SHA-256 `7fab327b223b96ac9f43a8643e636c0ad27070a7df209febbe8b955dcbb7f3b4`; Git blob `38f439b3bbb311eab0f5b01b6682dc197b421eff`. |
|
|
67
|
+
| Generated companion | `docs/governed-index.md` at D2; SHA-256 `910c8b096acaf8533e86e80d92b3b6b2a260971019e91bec3c702a9e1096e556`; Git blob `26ec7c136d1e42e30227697d109953f42d30413f`. |
|
|
68
|
+
| PR and merge | [PR #430](https://github.com/dyphn1/Harness-everything/pull/430) head D2 merged at `7832d3398772e8ffc5698583e64aaabd3cd3572e`. `git diff --exit-code` of the ADR and index from D2 to the merge exited 0; merge commit is distinct from artifact head. |
|
|
69
|
+
| U5 comment | [PR #430 comment 6790406994](https://github.com/dyphn1/Harness-everything/pull/430#issuecomment-6790406994) says “U5 PASS” for exact base/head, scope limited to the new proposed ADR and regenerated index, and no blocking findings within the simplified cycle scope; it describes independent content checks. It does not by itself establish owner approval of the content. The supplied comment body is truncated after its first review item. |
|
|
70
|
+
| Attribution limit | The PR comment author is `dyphn1`, also the coordinator account. The packet says merge instructions were given in the coordinator session and are recorded only as quoted in PR comments/coordinator notes. Comment authorship alone cannot distinguish owner from coordinator; no separately attributable owner approval/delegated authority is established here. A merge alone is not treated as owner approval. |
|
|
71
|
+
|
|
72
|
+
## Checks and their scope
|
|
73
|
+
|
|
74
|
+
| Check | Result and scope |
|
|
75
|
+
|---|---|
|
|
76
|
+
| `npm ci` | Exit 0 in the draft clone; dependency installation only. |
|
|
77
|
+
| `node harness-everything/scripts/doc-lifecycle.js lint --workspace . --config .agents/harness-everything/project-docs.json --changed-path docs/adr/EVID-001.md --changed-path docs/governed-index.md` | Exit 0 at draft; diagnostics empty, immutability `not-observed`. Targeted document lifecycle check, not a full quality claim. |
|
|
78
|
+
| `npm run test:consistency`, `npm run test:references`, `npm run test:portability` | Each exit 0 at draft. Checks covered repository/document consistency, skill references, and portability respectively. |
|
|
79
|
+
| `npm run verify:all -- --fast` | Exit 0 at D `9ca54e9416c8aae8e3a16dd0cf4b1ab349a94c32`, Node `v24.14.1` on macOS: 5 PASS, 0 FAIL, 11 UNCHECKED. This is a local deterministic-mechanism layer result before the single correction, not a D2 run or host-independent evidence. |
|
|
80
|
+
| Targeted re-check at D2 | Lifecycle lint exit 0. Index generator exit 0; the reviewer's comparison command exited 2 with `Operation not permitted` and is **UNCHECKED**. The coordinator later reported, outside the sandbox, lifecycle lint exit 0 and index equal to generator output in PR comment 6790350588. |
|
|
81
|
+
| PR #430 hosted checks at D2 | Supplied PR snapshot has 17 checks: 16 SUCCESS, `doc-governance` FAILURE. Do not summarize this as all hosted checks passing. The snapshot does not include a failure diagnosis. |
|
|
82
|
+
| Scope limit | No full `verify:all` at D2 and no live reconciliation-engine observation are in the retained evidence. |
|
|
83
|
+
|
|
84
|
+
The local fast-run log is `LOCAL_ONLY: trail/a-verify-fast.log; sha256:0bba25dd88722402258f31f4808522317988849166f78f2f9ab9d6656caf554f`; the PR snapshot is `LOCAL_ONLY: trail/gh-pr-430.json; sha256:57a845a218ffbac124ece76ac19a101ef1abd59dc12845c1d4c9e42d1f0b12b3`; the final-review and correction evidence is in the locators above.
|
|
85
|
+
|
|
86
|
+
## Final review version, owner disposition, and result
|
|
87
|
+
|
|
88
|
+
- **Final review version:** independent final review was at D (`9ca54e94…`), ADR SHA-256 `4443b407…`; it was ACCEPT WITH CHANGES. The corrected bytes are D2 (`6653a9d4…`), checked only by the targeted F1 re-check (`report-a-recheck.md`), which says F1 CLOSED. This record does not describe the correction as having received a second full review.
|
|
89
|
+
- **Owner disposition:** U5 PASS is recorded at the exact PR head in comment 6790406994. Separate owner approval remains unknown for the attribution reason above. The final ADR remains `status: proposed`.
|
|
90
|
+
- **Expected:** deliver a source-grounded retrospective ADR with observed results bound to SHA and output, while retaining the exact limits and unresolved facts.
|
|
91
|
+
- **Actual:** document delivered; F1 was corrected by explicitly demoting the E-0001/E-0009 summaries to unverified claims, preserving their facts. F2 (`--clean` with `--fast` wording) and F3 (inventory reading-list row) remain deferred. E-0001's 13-pass row composition remains unknown; no claim is made about a fresh green D2 tree.
|
|
92
|
+
- **Raw report exceptions:** the final review and targeted re-check report bodies were complete, but their hidden harness-label lines followed `STATUS`; raw terminal-line compliance was not clean. The targeted re-check's generated-index comparison was UNCHECKED as above. These reports were not rewritten and no replacement review was commissioned.
|
|
93
|
+
|
|
94
|
+
## Cost, deferred items, and unknowns
|
|
95
|
+
|
|
96
|
+
- **Packets counted:** 7 task dispatch packets by this rule: outline, two outline-review packets, draft, final-review packet, one fix packet, one targeted re-check packet. `triage-a.md`, advisor answer 34, coordinator integration, and the fast-check log are recorded separately, not counted as dispatch packets.
|
|
97
|
+
- **Correction rounds:** 1 blocker correction round; the correction plus its targeted re-check is one round.
|
|
98
|
+
- **Time, tokens, and monetary/tool cost:** unknown; no retained active-time/token/cost measurement supports a number. Preserved file mtimes and PR timestamps are not used as duration estimates.
|
|
99
|
+
- **Deferred:** F2, F3, the historical E-0001 row composition, full verification at D2, and proving scope reduction effective from these packet counts. The PR snapshot's `doc-governance` failure is retained as a check outcome, not reclassified as pass.
|
|
100
|
+
- **Unknown:** separate owner approval/authority, named identities for the one-shot workers/reviewers, the draft/fix model effort, D2 full-gate behavior, and live engine safety. Missing evidence remains unknown rather than inferred from the merge or local checks.
|
|
101
|
+
|
|
102
|
+
## Separate outcomes
|
|
103
|
+
|
|
104
|
+
- **document delivered:** yes — ADR artifact commit `6653a9d4711abbb05332b08984dd0ff5d8f56234`, merged by `7832d3398772e8ffc5698583e64aaabd3cd3572e`; Git blob `38f439b3bbb311eab0f5b01b6682dc197b421eff`; SHA-256 `7fab327b223b96ac9f43a8643e636c0ad27070a7df209febbe8b955dcbb7f3b4`.
|
|
105
|
+
- **cycle qualifies: UNCHECKED — adjudication pending**
|
|
106
|
+
- **reconciliation engine safe / expansion GO: UNCHECKED** — the definition records pilot/default OFF and the PR snapshot has `pilot-offline-evidence` SUCCESS; the trail contains no reconciliation execution/credit observation for these cycles. This supports “OFF as recorded,” not a safety finding or engine GO.
|
|
107
|
+
|
|
108
|
+
## Adjudication (added 2026-11-11, after the independent review)
|
|
109
|
+
|
|
110
|
+
| Evidence | Cycle A record |
|
|
111
|
+
|---|---|
|
|
112
|
+
| Independent-review binding | T3 reviewed the original record at commit `f5b0bf9cf820fdfe14590a998ce0c3033b08b208`, record SHA-256 `f7170c91d35ccd469a62a33a18bfc77fe879cb2140366b0914f021c27dbd4867`; this addendum was not covered by that review. |
|
|
113
|
+
| Independent recommendation | **UNCHECKED.** A-F1: owner approval or delegated authority for the delivered D2 content was not established as separately attributable. `LOCAL_ONLY: report-t3-a.md; sha256:9620e9cf84611bbcf8cb615d20b2fba7b527ba605bf4d42d5737445df3a0c2e3` |
|
|
114
|
+
| Subsequent guard evidence | Document Governance run `42981710583`, base `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`, candidate `6653a9d4711abbb05332b08984dd0ff5d8f56234`: hosted **FAILURE**, exit `2`, verdict `REVIEW_REQUIRED`, governed membership `8→9` (`governed` and `derived` pass). This is the expected review state for a new governed ADR under [#401 comment 6724640217](https://github.com/dyphn1/Harness-everything/issues/401#issuecomment-6724640217); the job remains **FAILURE**, not PASS. |
|
|
115
|
+
| U5 review binding | [PR #430 comment 6790406994](https://github.com/dyphn1/Harness-everything/pull/430#issuecomment-6790406994) binds U5 PASS to base `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`, head `6653a9d4711abbb05332b08984dd0ff5d8f56234`, and scope `docs/adr/EVID-001.md` plus regenerated `docs/governed-index.md`, with no runtime or policy-code changes. It explicitly says: “This is a review decision, not an assertion of completed CI, a qualifying #341 E1 cycle, owner acceptance of the ADR status, or approval to merge before pending checks resolve.” |
|
|
116
|
+
| Advisor disposition | A-F1 is in-scope and closable only by version-bound owner confirmation. `LOCAL_ONLY: advisor-answer-37.md; sha256:ec63ab7a3a1ccc927e3a3a38b372e0829d3dd87f49426b05cb0d29135920e062` |
|
|
117
|
+
| Owner confirmation | [Issue #341 comment 6797024694](https://github.com/dyphn1/Harness-everything/issues/341#issuecomment-6797024694), 2026-11-11. Cycle A approval/U5-authority answer: 「是,兩者皆是」. Final decision: 「兩個都 QUALIFYING」. Received from the owner in this session and posted by the coordinator through the shared `dyphn1` account; coordinator-attested evidence of the owner's statement, not independently authenticated GitHub authorship. The original T3 attribution/truncation limit is preserved: the shared account does not authenticate authorship, and the T3 snapshots were truncated at 700 characters; the complete U5 comment is cited above as subsequent evidence. |
|
|
118
|
+
|
|
119
|
+
- **document delivered:** yes — ADR artifact commit `6653a9d4711abbb05332b08984dd0ff5d8f56234`, merged by `7832d3398772e8ffc5698583e64aaabd3cd3572e`; Git blob `38f439b3bbb311eab0f5b01b6682dc197b421eff`; SHA-256 `7fab327b223b96ac9f43a8643e636c0ad27070a7df209febbe8b955dcbb7f3b4`.
|
|
120
|
+
- cycle qualifies: QUALIFYING — owner adjudication 2026-11-11 (issue #341 comment 6797024694); independent recommendation was UNCHECKED pending the owner confirmation recorded above
|
|
121
|
+
- reconciliation engine safe / expansion GO: UNCHECKED — pilot OFF; not decided
|
|
122
|
+
|
|
123
|
+
Basis: independent review of the original record + subsequent guard evidence and owner confirmation + coordinator delta check + owner adjudication; no independent review of this updated record.
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# Cycle B — ROUTE-001 error-lesson delivery design record
|
|
2
|
+
|
|
3
|
+
- **Preparer:** one-shot worker; compiled from the retained trail; **not an independent adjudication**.
|
|
4
|
+
- **Date:** 2026-11-11.
|
|
5
|
+
- **Packet input SHA:** `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`.
|
|
6
|
+
- **Run identity:** `t1-records-1`, packet revision 1. The preparer's model/effort are not recorded in this cycle trail.
|
|
7
|
+
|
|
8
|
+
## Task, scope, and starting version
|
|
9
|
+
|
|
10
|
+
| Field | Record |
|
|
11
|
+
|---|---|
|
|
12
|
+
| Task | Produce one forward-looking design ADR for #402: choose a recurring error class, its ledger lesson, an existing intervention seam, success/failure observations, and the smallest follow-up implementation acceptance. The selected artifact is `docs/adr/ROUTE-001-error-lesson-delivery.md`. |
|
|
13
|
+
| Agreed scope | E-0002 report-terminal-status lesson; prompt context at `UserPromptSubmit`; explicit report-required signal; delivery and output observations kept separate; no engine rewrite or claim that error handling improved. Owner scope and rulings are recorded in [#402 comment 6785928296](https://github.com/dyphn1/Harness-everything/issues/402#issuecomment-6785928296), [#402 comment 6786069987](https://github.com/dyphn1/Harness-everything/issues/402#issuecomment-6786069987), and the later ruling below. |
|
|
14
|
+
| Starting version | Repository input `bde411dea9ea1d7f6a90cc6996aea8e0edbb2692`; `git cat-file -e bde411dea9ea1d7f6a90cc6996aea8e0edbb2692:docs/adr/ROUTE-001-error-lesson-delivery.md` exited 128 (`fatal: path ... is not in ...`), so the target did not yet exist at that version. |
|
|
15
|
+
| Scope authority | The local definition §5 sets the simplified E1 cycle and after-the-fact adjudication; answer 32 establishes the reduction decisions, answer 33 and packet B-draft record the O1–O5 rulings. The ADR remains `status: proposed`. See `LOCAL_ONLY: trail/definition.md; sha256:48f6664f4e80f4007b1a519b36875b630cd4071f6b50ef4e7fc77262d705157f`, `LOCAL_ONLY: trail/advisor-answer-32.md; sha256:a93ff4fecd5318e6b3fe06bde7f24629020abc51401d83007d58fc8f6760e539`, `LOCAL_ONLY: trail/advisor-answer-33.md; sha256:cb5ddcdfa5b348f3edfb3a0d021c54b77aa14754b6247a3f790662bf2a0b8174`, and `LOCAL_ONLY: trail/packet-b-draft.md; sha256:dd03e5f7772495bf4086a8ac825b0a45b073bd54b84783fa131789e789e9b6a1`. |
|
|
16
|
+
|
|
17
|
+
## Reading list
|
|
18
|
+
|
|
19
|
+
The final ADR's `Reading list` table is the full source inventory, pinned to artifact SHA-256 `6822a091dff2086c4aeabf65685e26e3b5c804495462b128f3b5bddb4113bde2` at commit `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`. Its rows cover the following topic sources:
|
|
20
|
+
|
|
21
|
+
| Source group | Sources and purpose |
|
|
22
|
+
|---|---|
|
|
23
|
+
| Lesson and ledger | Error-ledger `README.md`, `index.jsonl`, and E-0001–E-0014; E-0002 is the content authority, the index is only a locator. |
|
|
24
|
+
| Routing and delivery | `AGENTS.md`, `docs/routing.md`, `docs/system-one-observations.md`, `harness-everything/scripts/kernel-router.js`, `hooks/scripts/codex-user-prompt.js`, both hook manifests, `scripts/sync-openai-plugin.js`, and `hooks/scripts/openai-session-start.js`: label rule, actual prompt signal availability, existing seams and packaging boundary. |
|
|
25
|
+
| Existing reflection/candidate paths | `scripts/errors-sync.js`, `hooks/scripts/rule-of-3.js`, tracker/reset hooks, learning-opportunity and telemetry helpers, `zoom-out/` references/templates, `self-evolve/` skills/scripts, workflow docs, `docs/reflection.md`, and the related tests/evals: distinguish ledger lookup/delivery from reflection and candidate lifecycle. |
|
|
26
|
+
| Contract and host boundary | `docs/mechanism-first-skill-mesh.md`, `docs/platform-capabilities.md`, `docs/enforcement-locks.md`, `docs/troubleshooting.md`, `docs/workflow-runtime.md`, `docs/architecture.md`, `harness-everything/SKILL.md`, `README.md`, `VERIFICATION.md`, `opencode-plugin/README.md`, and `opencode-plugin/index.mjs`: no-template intent, existing breaker boundaries, and separate OpenCode implementation. |
|
|
27
|
+
| Durable scope references | #402 comments 6785928296, 6786069987, 6790477633; #394, #359, #141; and #421 comment 6785927033. The issue/comment text was supplied in the trail/packets; it was not fetched online in this run. |
|
|
28
|
+
|
|
29
|
+
The artifact itself names each path and its source relevance. It retains the restored `docs/workflows/harness-everything.md` row and adds the bounded OpenCode source rows; this source evidence does not claim OpenCode was run.
|
|
30
|
+
|
|
31
|
+
## Outline, reviews, triage, and dispatch
|
|
32
|
+
|
|
33
|
+
```mermaid
|
|
34
|
+
flowchart LR
|
|
35
|
+
S["Scope packet"] --> O["Outline O: 4320fce8"]
|
|
36
|
+
O --> R["Two independent outline reviews"]
|
|
37
|
+
R --> T["One triage + owner ruling"]
|
|
38
|
+
T --> D["Draft: 171bc079"]
|
|
39
|
+
D --> F["Independent final review at H: blocker + deferred"]
|
|
40
|
+
F --> C["One blocker correction H2: 6a997cc9"]
|
|
41
|
+
C --> Q["Targeted re-check: F1 closed"]
|
|
42
|
+
Q --> M["PR #431 merged: 0f08daa4"]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
| Stage | Version and outcome |
|
|
46
|
+
|---|---|
|
|
47
|
+
| Scope preparation | `b-scope-1` selected E-0002 because it fits #402's report-format concern and has post-lesson recurrences; the report also noted E-0009 has more episodes, so E-0002 was never the “top-ranked” class. |
|
|
48
|
+
| Outline | O = `4320fce85e79187ecf39f95494160f712d83d067`; outline digest `bd9430f311a111945b410de371d7efa84363241e12d06dff1234b93c5625b3ed`. |
|
|
49
|
+
| Outline reviews | Two independent, fresh-context review packets. Review 1 content verdict: ACCEPT WITH CHANGES, two deferred findings; its report ended in `STATUS: BLOCKED` because the trailing-label rule conflicted with packet terminal-STATUS format. Triage states the review content was complete and that status was false for substantive completion. Review 2: REJECT, three blockers and one deferred, requiring owner ruling on label/STATUS and stronger delivery evidence/read-list coverage. Both were source-traced except the stated index-count evidence; GitHub issue links were not fetched. |
|
|
50
|
+
| Triage | One triage round in `triage-b.md`: U1/U2 deferred in review and corrected in the draft; U3/U4 blockers; U5 required owner ruling; U6 required an owner boundary; U7 added the requirement to define a prompt-time report-required signal and negative controls. Advisor answer 33 narrowed the changes; no second outline-review round. |
|
|
51
|
+
| Owner ruling | [#402 comment 6790477633](https://github.com/dyphn1/Harness-everything/issues/402#issuecomment-6790477633) is quoted in packet B-draft as agreeing to five points: prompt-context delivery, explicit signal selecting E-0002, E-0002/ROUTE, distinct report-file STATUS vs turn label handling, and no counter/lock/forced reflection for this delivery. Its quoted final direction says a hook hint is enough and counting is unnecessary because it had failed before. |
|
|
52
|
+
| Draft dispatch | Draft bytes have ADR SHA-256 `acac7c0d64ca3f2d83f02e319deb40e3918b4070e5c11e015760546d1f7d718f`; coordinator integration commit D = `171bc079b58422c15d302b6468a1ad539bdc8b0c`. The governed index was regenerated. |
|
|
53
|
+
| Final review | Bound to H = `27e0a6ffa69439f90c6421b7d9493b9e8ac17cfc` after main/index merge; ADR digest `acac7c0d64ca3f2d83f02e319deb40e3918b4070e5c11e015760546d1f7d718f`. ACCEPT WITH CHANGES: one blocker, missing direct Rule-of-3 boundary sources; one deferred issue, undefined “source stale” condition. |
|
|
54
|
+
| Correction and re-check | Advisor answer 35 limited the single correction to the class-level source/boundary gap and preserved “source stale” as deferred. Correction H2 = `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`, digest `6822a091dff2086c4aeabf65685e26e3b5c804495462b128f3b5bddb4113bde2`; only the ADR changed. Targeted re-check at H2 closed F1. This was not a second full review. |
|
|
55
|
+
|
|
56
|
+
Trail: `LOCAL_ONLY: trail/packet-b-scope.md; sha256:b570584a4dfa536b6a782253e99bdab78fd4555d1a26aed39449ab53fe763aeb`; `LOCAL_ONLY: trail/report-b-scope.md; sha256:030de9487715c1ae076ab01ef2fd79f93cfc14adec8ef08cadb809e655c47a84`; `LOCAL_ONLY: trail/packet-b-outline.md; sha256:475b0fd5150dee4c4875cf0f168115571fc6dfcaeb281ca633190534fda54ce1`; `LOCAL_ONLY: trail/report-b-outline.md; sha256:388017cb9c16de72e2614073bc4928f59073cfd0fa21a978c282654cab8b5067`; `LOCAL_ONLY: trail/report-b-review-1.md; sha256:8ce189155a7b867e154e63d75d5fef0ec0589e878135cdf0e64b540744142b30`; `LOCAL_ONLY: trail/report-b-review-2.md; sha256:34bce9f454fdd27bd3e52eefac00db6d789dc14f95b352b3a4d2e5eafb8a1fd0`; `LOCAL_ONLY: trail/triage-b.md; sha256:186227ae51d4275be032a04118c718f15fec8f55c8c7335f36c5424c98320a32`.
|
|
57
|
+
|
|
58
|
+
`LOCAL_ONLY: trail/report-b-draft.md; sha256:fd0b73e8fc894805cc1f64e39c50a3750e2c2912f49199434e46827f62d7a399`; `LOCAL_ONLY: trail/report-b-final.md; sha256:d3dfb7d667b6601c10cf990afd5562d2ff8697af8696c71f533b350b23cabcaf`; `LOCAL_ONLY: trail/packet-b-fix.md; sha256:bc214e3ee8dc6f20e1c777964cf42ac0158857fa1cd35d563e3cbb3e72577ca5`; `LOCAL_ONLY: trail/report-b-fix.md; sha256:3e06dcd0bae4381f44727881a34ebce79a2bb15b9a56e3e2624e8921e9b4aa18`; `LOCAL_ONLY: trail/packet-b-recheck.md; sha256:c4fafc8505e27fa3207e49aa02edeee2afb5de78eacab7f72ce2c3dff372a4fa`; `LOCAL_ONLY: trail/report-b-recheck.md; sha256:14b74b38cb6796f399ea5cc4535e09353d06cca76c38d737fc6d29ee3cd598ef`; `LOCAL_ONLY: trail/advisor-answer-33.md; sha256:cb5ddcdfa5b348f3edfb3a0d021c54b77aa14754b6247a3f790662bf2a0b8174`; `LOCAL_ONLY: trail/advisor-answer-35.md; sha256:a1016ecb7268d08ad6f836bb1902cb4b47a4e21807a17943079ffc5d42fa53d4`; `LOCAL_ONLY: trail/advisor-answer-36.md; sha256:197bf990528fed05eb02ee290657424ba33a3ac65dbe725d99b44a0ddf3246c3`.
|
|
59
|
+
|
|
60
|
+
## Authors, reviewers, and assistance
|
|
61
|
+
|
|
62
|
+
- Scope, outline, draft, and correction packets were performed by one-shot workers. Their logs show `gpt-6-luna` at `xhigh` for scope/review runs and `glm-5.3-flash-free` for build runs; build effort is not recorded. Personal worker/reviewer identities are unknown.
|
|
63
|
+
- Review 1, review 2, final reviewer, and re-checker are identified by role only. The final reviewer and re-checker were separate read-only participants from the author/corrector per their packet declarations.
|
|
64
|
+
- Coordinator assistance included scope and outline preparation; answer 32 plus answers 33 and 35; owner-ruling capture; triage; packet preparation; source/check coordination; branch commits, governed-index regeneration, and PR merge. The work was assisted, not unassisted.
|
|
65
|
+
- Git author/committer fields on O, draft D, and H2 say `Miya Daniel`; no retained evidence maps that identity to each worker. The PR snapshot records D/H/H2 and merge separately. Do not infer a one-shot identity from the commit author.
|
|
66
|
+
- Model/effort locators: `LOCAL_ONLY: trail/b-scope.log; sha256:61ef9788664fc9f0aecaec25ad46791e1a067cfbe75de2680dbf41a1aed6e6b5`; `LOCAL_ONLY: trail/b-outline.log; sha256:f336a3cc8595415eb8d7d1a1c54e464ef315a2ca72302cbdd3e71b2b549eb5dc`; `LOCAL_ONLY: trail/b-review-1.log; sha256:47e3c2fcc27cb01eeaf7a16254a6f8e885ca761206777a4e07562c0f2cef84c6`; `LOCAL_ONLY: trail/b-review-2.log; sha256:59f8894a36cdbf9e0a800f966c1d253555f69b6a4c660c72e2403eaadcd5be7f`; `LOCAL_ONLY: trail/b-draft.log; sha256:ad43657738b9bfa1144700e8c3a37b946d01e1baebef17932e9d15f504003343`; `LOCAL_ONLY: trail/b-final.log; sha256:fcbe8ea269c97b1ba36c4c1672fd2fbeb2eaa69154aa8b5876af04c201b55bef`; `LOCAL_ONLY: trail/b-fix.log; sha256:b13bbe3a404e4e57ed9a291d78b4694e4891a3b3e13f9bf01f2a3b291051ba01`; `LOCAL_ONLY: trail/b-recheck.log; sha256:771ad42f7a0316b01c2ebbee238a15760bb7c93498e1c3d3db83e47b88931b96`.
|
|
67
|
+
|
|
68
|
+
## Final artifact commit and owner decision
|
|
69
|
+
|
|
70
|
+
| Item | Evidence |
|
|
71
|
+
|---|---|
|
|
72
|
+
| Final artifact | `docs/adr/ROUTE-001-error-lesson-delivery.md` at PR #431 head H2 `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`; SHA-256 `6822a091dff2086c4aeabf65685e26e3b5c804495462b128f3b5bddb4113bde2`; Git blob `d58c894965a1275682f36a326a8cd9ae68777c43`. |
|
|
73
|
+
| Generated companion | `docs/governed-index.md` at H2; SHA-256 `0067016f70b814f9f420c4d7bdd6d73aa1abb076f9726d21c4c33698be265a57`; Git blob `1c3dcd463b2dc4d0ca64e1d21e9697e8107ec74f`. |
|
|
74
|
+
| PR and merge | [PR #431](https://github.com/dyphn1/Harness-everything/pull/431) head H2 merged at `0f08daa42801f1ed83e55b82e3fc34db772eaebe`. `git diff --exit-code` for the ADR and index from H2 to merge exited 0; merge commit differs from artifact head. |
|
|
75
|
+
| Owner ruling reference | The quoted #402 comment 6790477633 in packet B-draft states agreement to the five A7 choices and the “hook hint”/no-counting direction. The issue URL was not fetched by this run; the quoted packet text is the retained basis. |
|
|
76
|
+
| U5 comment | [PR #431 comment 6793866005](https://github.com/dyphn1/Harness-everything/pull/431#issuecomment-6793866005) says “U5 PASS (design/document review only)” for the exact base/head, with scope limited to the proposed ADR and regenerated index, no runtime/hook/policy-code change, and no blocking finding remaining in the simplified cycle scope. The supplied comment body is truncated during its first review item; no further claim is based on unseen text. |
|
|
77
|
+
| Attribution limit | The PR comment author is `dyphn1`, also the coordinator account. Packet instructions say owner merge instructions were given in the coordinator session and are recorded only as quoted in PR comments/coordinator notes. The account does not distinguish owner from coordinator; no separately attributable owner approval/delegated authority is established here. A merge alone is not treated as approval. |
|
|
78
|
+
|
|
79
|
+
## Checks and their scope
|
|
80
|
+
|
|
81
|
+
| Check | Result and scope |
|
|
82
|
+
|---|---|
|
|
83
|
+
| `node scripts/errors-sync.js --check` during scope and both outline reviews | In the scope log it was followed by `git status --porcelain`; the outer shell exited 0, but the check printed `Cannot find module 'js-yaml'` and its subcommand exit is not isolated in the retained log. In each outline-review log the direct command exited 1 with the same missing-module error. Ledger-index freshness was UNCHECKED at those points; no retry in those clones. |
|
|
84
|
+
| `node scripts/errors-sync.js --check` during draft | Exit 0: `.agents/harness-everything/errors/index.jsonl is current.` Episode counts in the ADR were then checked against the record/index. |
|
|
85
|
+
| ADR lint and `npm run test:consistency`, `npm run test:references`, `npm run test:portability` | Each exit 0 on the draft bytes (ADR digest `acac7c0d…`); lifecycle diagnostics empty, consistency/reference/portability gates passed. These are package/repository gates, not live-host injection evidence. |
|
|
86
|
+
| `npm run verify:all -- --fast` | Exit 0 at H `27e0a6ffa69439f90c6421b7d9493b9e8ac17cfc`, Node `v24.14.1` on macOS: 5 PASS, 0 FAIL, 11 UNCHECKED. Local deterministic-mechanism evidence before the correction, not a post-correction or host-independent result. |
|
|
87
|
+
| Targeted re-check at H2 | ADR lint exit 0; index generator exit 0 and stdout matched `docs/governed-index.md`; working tree clean. No `test:consistency`, references, portability, or full `verify:all` rerun after the correction is recorded. |
|
|
88
|
+
| PR #431 hosted checks at H2 | Supplied PR snapshot has 17 checks: 16 SUCCESS, `doc-governance` FAILURE. The snapshot has no failure diagnosis; do not call all hosted checks green. |
|
|
89
|
+
| Scope limit | No live-host lesson delivery/receipt run occurred; OpenCode rows are source evidence only. No engine behavior or improvement was measured. |
|
|
90
|
+
|
|
91
|
+
The check/run snapshots are `LOCAL_ONLY: trail/b-verify-fast.log; sha256:223dbe5c111f24718b77898d60063a212910e3fcf9b1e5e57155aab5eb0cc099` and `LOCAL_ONLY: trail/gh-pr-431.json; sha256:cfc2e01bbf7be7fb0729ab948cec5def2e1c1ada85c23eb7339c42272a542f0c`.
|
|
92
|
+
|
|
93
|
+
## Final review version, owner disposition, and result
|
|
94
|
+
|
|
95
|
+
- **Final review version:** independent final review was at H (`27e0a6ffa…`), draft ADR SHA-256 `acac7c0d…`; it was ACCEPT WITH CHANGES. The correction bytes are H2 (`6a997cc9…`), checked only by the targeted F1 re-check (`report-b-recheck.md`), which says F1 CLOSED. No full re-review of H2 is claimed.
|
|
96
|
+
- **Owner disposition:** the supplied PR comment says U5 PASS on the exact H2 revision for design/document review. The comment account is shared with the coordinator; separate owner approval remains unknown. The ADR stays `status: proposed`.
|
|
97
|
+
- **Expected:** deliver a design-only proposal with a selectable report-task signal, explicit delivery/output evidence, and no new counter or lock.
|
|
98
|
+
- **Actual:** the ADR was delivered and merged; the selected `report-status:E-0002` signal and Rule-of-3 host boundary are documented. Nothing was implemented or run as lesson delivery. The stale-source trigger remains undefined and deferred. No effect on error recurrence is claimed.
|
|
99
|
+
- **Raw report exceptions:** `report-b-review-1.md` says `STATUS: BLOCKED` even though the substantive review is complete and its verdict is ACCEPT WITH CHANGES; the blocker wording reflects the packet-vs-label terminal-line conflict, not an unfinished review. The hidden label follows `STATUS` there, as it does in the final-review and targeted-recheck reports. These reports were not rewritten. Completion, review verdict, and raw terminal-format compliance remain separate facts.
|
|
100
|
+
|
|
101
|
+
## Cost, deferred items, and unknowns
|
|
102
|
+
|
|
103
|
+
- **Packets counted:** 8 task dispatch packets by this rule: scope, outline, two outline-review packets, draft, final-review packet, one fix packet, one targeted re-check packet. `triage-b.md`, advisor answers, coordinator integration, and the fast-check log are listed separately, not counted as dispatch packets.
|
|
104
|
+
- **Correction rounds:** 1 blocker correction round; correction plus targeted re-check counts as one round.
|
|
105
|
+
- **Time, tokens, and monetary/tool cost:** unknown; no retained active-time/token/cost measurement supports a number. Copied file mtimes and PR timestamps are not treated as work duration.
|
|
106
|
+
- **Deferred:** undefined “source stale” condition; unresolved whether A2 requires separate action on the existing Rule-of-3 breaker; #394 tracker state; proving scope reduction effective from these packet counts. The PR snapshot's `doc-governance` failure is preserved as a check result.
|
|
107
|
+
- **Unknown:** distinct owner identity/approval, individual worker/reviewer identities, build-run effort, current external issue state, and any live lesson-delivery/engine safety result. Supplied GitHub issue text was not independently fetched; the PR comment bodies in the local snapshot are truncated to 700 characters.
|
|
108
|
+
|
|
109
|
+
## Separate outcomes
|
|
110
|
+
|
|
111
|
+
- **document delivered:** yes — artifact commit `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`, merged by `0f08daa42801f1ed83e55b82e3fc34db772eaebe`; Git blob `d58c894965a1275682f36a326a8cd9ae68777c43`; SHA-256 `6822a091dff2086c4aeabf65685e26e3b5c804495462b128f3b5bddb4113bde2`.
|
|
112
|
+
- **cycle qualifies: UNCHECKED — adjudication pending**
|
|
113
|
+
- **reconciliation engine safe / expansion GO: UNCHECKED** — the definition records pilot/default OFF and the PR snapshot has `pilot-offline-evidence` SUCCESS; this trail contains no reconciliation execution/credit observation for these cycles. “OFF as recorded” is not a safety finding or engine GO.
|
|
114
|
+
|
|
115
|
+
## Adjudication (added 2026-11-11, after the independent review)
|
|
116
|
+
|
|
117
|
+
| Evidence | Cycle B record |
|
|
118
|
+
|---|---|
|
|
119
|
+
| Independent-review binding | T3 reviewed the original record at commit `f5b0bf9cf820fdfe14590a998ce0c3033b08b208`, record SHA-256 `f2975bdb0db65d5571b26a370b8960471acced71353038d11f23674a0180b9b3`; this addendum was not covered by that review. |
|
|
120
|
+
| Independent recommendation | **UNCHECKED — owner adjudication is pending.** B-F1: owner approval for the delivered artifact was not separately attributable. B-F2: the hosted Document Governance FAILURE lacked a diagnosis, leaving its qualification relevance unresolved. `LOCAL_ONLY: report-t3-b.md; sha256:18051f4985a417ac70f2940b9f5203c30a6293b1e527c0aada15ae5974f4fe1f` |
|
|
121
|
+
| Subsequent guard evidence | Document Governance run `42998503308`, base `7832d3398772e8ffc5698583e64aaabd3cd3572e`, candidate `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`: hosted **FAILURE**, exit `2`, verdict `REVIEW_REQUIRED`, governed membership `9→10` (`governed` and `derived` pass). This is the expected review state for a new governed ADR under [#401 comment 6724640217](https://github.com/dyphn1/Harness-everything/issues/401#issuecomment-6724640217); the job remains **FAILURE**, not PASS. |
|
|
122
|
+
| U5 review binding | [PR #431 comment 6793866005](https://github.com/dyphn1/Harness-everything/pull/431#issuecomment-6793866005) binds U5 PASS to base `7832d3398772e8ffc5698583e64aaabd3cd3572e`, head `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`, and scope `docs/adr/ROUTE-001-error-lesson-delivery.md` plus regenerated `docs/governed-index.md` only, with no runtime, hook, or policy-code change. It explicitly says: “It does not constitute ADR acceptance (status: proposed remains), implementation approval, a qualifying #341 E1 GO decision, successful Document Governance CI, or authorization to merge without the owner's decision.” |
|
|
123
|
+
| Advisor disposition | B-F1 is in-scope and closable only by version-bound owner confirmation; B-F2 is in-scope and resolved by the retained logs. `LOCAL_ONLY: advisor-answer-37.md; sha256:ec63ab7a3a1ccc927e3a3a38b372e0829d3dd87f49426b05cb0d29135920e062` |
|
|
124
|
+
| Owner confirmation | [Issue #341 comment 6797024694](https://github.com/dyphn1/Harness-everything/issues/341#issuecomment-6797024694), 2026-11-11. Cycle B approval/U5-authority answer: 「是,兩者皆是」. Final decision: 「兩個都 QUALIFYING」. Received from the owner in this session and posted by the coordinator through the shared `dyphn1` account; coordinator-attested evidence of the owner's statement, not independently authenticated GitHub authorship. The original T3 attribution/truncation limit is preserved: the shared account does not authenticate authorship, and the T3 snapshots were truncated at 700 characters; the complete U5 comment is cited above as subsequent evidence. |
|
|
125
|
+
|
|
126
|
+
- **document delivered:** yes — ADR artifact commit `6a997cc9dcb478ab6d4f8470a96e7371e0ea5be4`, merged by `0f08daa42801f1ed83e55b82e3fc34db772eaebe`; Git blob `d58c894965a1275682f36a326a8cd9ae68777c43`; SHA-256 `6822a091dff2086c4aeabf65685e26e3b5c804495462b128f3b5bddb4113bde2`.
|
|
127
|
+
- cycle qualifies: QUALIFYING — owner adjudication 2026-11-11 (issue #341 comment 6797024694); independent recommendation was UNCHECKED pending the owner confirmation recorded above
|
|
128
|
+
- reconciliation engine safe / expansion GO: UNCHECKED — pilot OFF; not decided
|
|
129
|
+
|
|
130
|
+
Basis: independent review of the original record + subsequent guard evidence and owner confirmation + coordinator delta check + owner adjudication; no independent review of this updated record.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# OpenCode session workspace field trace
|
|
2
|
+
|
|
3
|
+
**Observed:** OpenCode 2.1.4 on macOS, 2026-11-15. One server process handled sessions from two workspaces.
|
|
4
|
+
|
|
5
|
+
The retained [probe](live-workspace-probe.js) logged setup and prompt field shapes to [JSONL](live-workspace-trace-2026-11-15.jsonl). Setup exposed `ctx.location.directory`; prompt events exposed `sessionID`, `messageID`, `prompt`, `metadata`, and `delivery`, with no event location. For each prompt, `ctx.session.get({sessionID})` returned a session whose `location.directory` matched that session's setup workspace. The server process cwd was a different directory.
|
|
6
|
+
|
|
7
|
+
This trace establishes that the session lookup and directory field were available in these two runs. Both setup locations already matched their session directories, so the trace does not establish behavior for a setup/session mismatch, missing setup location, failed lookup, or V2 router/tool/completion hook firing. It is not a live reproduction of the workspace attribution defect or verification of the fix. The cross-workspace counterexample and fix are covered by the deterministic V2 default-export test `ci/mechanism-397-opencode-observations.test.js`.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { appendFileSync } from "node:fs"
|
|
2
|
+
import { basename } from "node:path"
|
|
3
|
+
const log = o => appendFileSync(process.env.PROBE_TRACE || "trace.jsonl", JSON.stringify(o) + "\n")
|
|
4
|
+
const shape = v => v && typeof v === "object" ? Object.keys(v) : typeof v
|
|
5
|
+
export default {
|
|
6
|
+
id: "probe.workspace",
|
|
7
|
+
async setup(ctx) {
|
|
8
|
+
const id = Math.random().toString(36).slice(2, 8)
|
|
9
|
+
log({ ev: "setup", id, ctxKeys: Object.keys(ctx), location: ctx.location && { keys: Object.keys(ctx.location), dir: ctx.location.directory && basename(ctx.location.directory) }, directory: ctx.directory && basename(ctx.directory), cwd: basename(process.cwd()) })
|
|
10
|
+
await ctx.session.hook("prompt", async event => {
|
|
11
|
+
let info = null
|
|
12
|
+
try { const s = await ctx.session.get({ sessionID: event.sessionID }); info = { keys: shape(s), dir: s && (s.directory || s.location?.directory) ? basename(s.directory || s.location.directory) : null, location: shape(s?.location) } } catch (e) { info = { error: String(e).slice(0, 80) } }
|
|
13
|
+
log({ ev: "prompt", id, eventKeys: Object.keys(event), eventLocation: shape(event.location), session: info })
|
|
14
|
+
})
|
|
15
|
+
},
|
|
16
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{"ev":"setup","id":"97zahz","ctxKeys":["app","location","options","agent","aisdk","command","credential","event","experimental","generate","model","provider","integration","mcp","permission","plugin","reference","rpc","skill","storage","tool","vcs","websearch","worktree","session","shell"],"location":{"keys":["directory","workspaceID","project"],"dir":"wsA"},"cwd":"probe"}
|
|
2
|
+
{"ev":"prompt","id":"97zahz","eventKeys":["sessionID","messageID","prompt","metadata","delivery"],"eventLocation":"undefined","session":{"keys":["id","projectID","model","cost","tokens","time","location"],"dir":"wsA","location":["directory"]}}
|
|
3
|
+
{"ev":"setup","id":"xlcnsl","ctxKeys":["app","location","options","agent","aisdk","command","credential","event","experimental","generate","model","provider","integration","mcp","permission","plugin","reference","rpc","skill","storage","tool","vcs","websearch","worktree","session","shell"],"location":{"keys":["directory","workspaceID","project"],"dir":"wsB"},"cwd":"probe"}
|
|
4
|
+
{"ev":"prompt","id":"xlcnsl","eventKeys":["sessionID","messageID","prompt","metadata","delivery"],"eventLocation":"undefined","session":{"keys":["id","projectID","model","cost","tokens","time","location"],"dir":"wsB","location":["directory"]}}
|
|
@@ -12,7 +12,7 @@ const IMPORTER = path.join(ROOT, 'scripts', 'system-one-observations-import-code
|
|
|
12
12
|
const EXPORTER = path.join(ROOT, 'scripts', 'system-one-observations-export.js');
|
|
13
13
|
const REVIEW = path.join(ROOT, 'scripts', 'system-one-observations-review.js');
|
|
14
14
|
const obs = require('../hooks/scripts/lib/observations');
|
|
15
|
-
const LABEL = '<!-- harness-label {"v":1,"validity":"actionable","
|
|
15
|
+
const LABEL = '<!-- harness-label {"v":1,"validity":"actionable","tier":"tier2","intents":["fix"],"workflow":null,"skills":[]} -->';
|
|
16
16
|
const TIER1_LABEL = '<!-- harness-label {"v":1,"validity":"actionable","contextDependent":false,"tier":"tier1","intents":["fix"],"workflow":null,"skills":[]} -->';
|
|
17
17
|
|
|
18
18
|
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'harness-session-label-import-'));
|
|
@@ -110,6 +110,7 @@ try {
|
|
|
110
110
|
const liveRecord = index.records.find(entry => entry.writer && entry.writer.turnId === 'included');
|
|
111
111
|
assert(liveRecord, 'live records retain Codex turn IDs for cross-source dedupe');
|
|
112
112
|
assert.strictEqual(liveRecord.behavior.filesWritten, 1, 'the live fixture contains an observed file write');
|
|
113
|
+
assert(!Object.hasOwn(liveRecord.selfReport, 'contextDependent'), 'legacy fields do not enter new self-reports');
|
|
113
114
|
assert.deepStrictEqual(obs.contradictions(liveRecord.selfReport, liveRecord.behavior), ['tier1-with-writes']);
|
|
114
115
|
assert.strictEqual(index.records.filter(entry => entry.writer && entry.writer.sessionId === 'fixture-session' && entry.writer.turnId === 'included').length, 1,
|
|
115
116
|
'live capture and session backfill leave one record for a turn');
|
|
@@ -120,6 +121,7 @@ try {
|
|
|
120
121
|
assert.strictEqual(fallbackText.prompt, 'fallback prompt from the rollout message');
|
|
121
122
|
const backfilledTier1 = index.records.find(entry => entry.captureMethod === 'session-backfill' && entry.selfReport.tier === 'tier1');
|
|
122
123
|
assert(backfilledTier1, 'the tier1 label from the rollout is imported');
|
|
124
|
+
assert(!Object.hasOwn(backfilledTier1.selfReport, 'contextDependent'), 'the legacy field is ignored during session import');
|
|
123
125
|
assert.strictEqual(backfilledTier1.behavior, null, 'session backfill records behavior as unobserved rather than zero');
|
|
124
126
|
assert(!index.records.some(entry => entry.writer && entry.writer.turnId === 'ambiguous-summary'),
|
|
125
127
|
'a differing completion string must not inherit the assistant message label');
|
|
@@ -139,6 +141,7 @@ try {
|
|
|
139
141
|
assert.strictEqual(exported.status, 0, 'export after backfill failed:\n' + exported.stdout + '\n' + exported.stderr);
|
|
140
142
|
const labels = fs.readFileSync(path.join(exportDir, 'labels-observed.jsonl'), 'utf8').trim().split('\n').map(JSON.parse);
|
|
141
143
|
const exportReport = JSON.parse(fs.readFileSync(path.join(exportDir, 'export-report.json'), 'utf8'));
|
|
144
|
+
assert(labels.every(label => !Object.hasOwn(label, 'contextDependent')), 'legacy values are absent from exported labels');
|
|
142
145
|
assert.strictEqual(labels.filter(label => label.behaviorEvidence === 'unobserved').length, 5);
|
|
143
146
|
assert.deepStrictEqual(exportReport.behaviorEvidence, { observed: 1, unobserved: 5 });
|
|
144
147
|
assert.strictEqual(exportReport.contradictions['tier1-with-writes'], 1, 'only the observed live write contributes a contradiction');
|
|
@@ -42,7 +42,7 @@ if (fs.existsSync(pluginManifestFile)) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
helper.check(
|
|
45
|
-
'2n. the
|
|
45
|
+
'2n. the V1 enforcement factory remains in the plugin entrypoint',
|
|
46
46
|
fs.existsSync(pluginFile) && !/require\(['"]\.\//.test(fs.readFileSync(pluginFile, 'utf8')),
|
|
47
47
|
`${pluginFile} missing or imports a sibling file`
|
|
48
48
|
);
|
|
@@ -12,9 +12,11 @@ console.log('\n[2p] opencode 2.x default-export entrypoint: registration and fir
|
|
|
12
12
|
// V2 adapter that the real host actually loads.
|
|
13
13
|
|
|
14
14
|
helper.check(
|
|
15
|
-
'2p. the plugin
|
|
16
|
-
fs.existsSync(path.join(helper.root, 'opencode-plugin', 'index.mjs'))
|
|
17
|
-
|
|
15
|
+
'2p. the plugin entrypoint resolves the canonical router and observations runtime from the source checkout',
|
|
16
|
+
fs.existsSync(path.join(helper.root, 'opencode-plugin', 'index.mjs'))
|
|
17
|
+
&& fs.existsSync(path.join(helper.root, 'harness-everything', 'scripts', 'kernel-router.js'))
|
|
18
|
+
&& fs.existsSync(path.join(helper.root, 'hooks', 'scripts', 'lib', 'observations.js')),
|
|
19
|
+
'plugin entrypoint or shared runtime missing'
|
|
18
20
|
);
|
|
19
21
|
|
|
20
22
|
(async () => {
|
|
@@ -41,6 +43,7 @@ helper.check(
|
|
|
41
43
|
|
|
42
44
|
const prompts = [];
|
|
43
45
|
const registered = [];
|
|
46
|
+
const sessionHooks = [];
|
|
44
47
|
let subscribeCount = 0;
|
|
45
48
|
const eventQueue = [];
|
|
46
49
|
const fakeCtx = {
|
|
@@ -52,10 +55,16 @@ helper.check(
|
|
|
52
55
|
},
|
|
53
56
|
},
|
|
54
57
|
session: {
|
|
58
|
+
get: async ({ sessionID }) => ({ id: sessionID, location: { directory: workspace } }),
|
|
55
59
|
prompt: async (input) => {
|
|
56
60
|
prompts.push(input);
|
|
57
61
|
return {};
|
|
58
62
|
},
|
|
63
|
+
hook: async (name, callback) => {
|
|
64
|
+
sessionHooks.push({ name, callback });
|
|
65
|
+
return { dispose: async () => {} };
|
|
66
|
+
},
|
|
67
|
+
context: async () => [],
|
|
59
68
|
},
|
|
60
69
|
event: {
|
|
61
70
|
subscribe: (options) => {
|
|
@@ -108,6 +117,12 @@ helper.check(
|
|
|
108
117
|
JSON.stringify(registered.map((r) => r.name))
|
|
109
118
|
);
|
|
110
119
|
|
|
120
|
+
helper.check(
|
|
121
|
+
'2p. setup registers documented prompt admission and model context hooks',
|
|
122
|
+
sessionHooks.some((r) => r.name === 'prompt') && sessionHooks.some((r) => r.name === 'context'),
|
|
123
|
+
JSON.stringify(sessionHooks.map((r) => r.name))
|
|
124
|
+
);
|
|
125
|
+
|
|
111
126
|
helper.check('2p. setup subscribes to the event stream exactly once', subscribeCount === 1, `subscribes: ${subscribeCount}`);
|
|
112
127
|
|
|
113
128
|
const before = registered.find((r) => r.name === 'execute.before').callback;
|
|
@@ -161,11 +161,16 @@ const helper = require('./test-helper');
|
|
|
161
161
|
|
|
162
162
|
// The V2 adapter must keep consuming reset/delete events while idle
|
|
163
163
|
// verification is pending, and its disposer must await child cleanup.
|
|
164
|
-
const queue = [], registrations = new Map();
|
|
164
|
+
const queue = [], registrations = new Map(), sessionHooks = new Map();
|
|
165
165
|
const dispose = await mod.default.setup({
|
|
166
166
|
location: { directory: workspace },
|
|
167
167
|
tool: { hook: async (name, callback) => { registrations.set(name, callback); } },
|
|
168
|
-
session: {
|
|
168
|
+
session: {
|
|
169
|
+
get: async ({ sessionID }) => ({ id: sessionID, location: { directory: workspace } }),
|
|
170
|
+
hook: async (name, callback) => { sessionHooks.set(name, callback); return { dispose: async () => {} }; },
|
|
171
|
+
prompt: async value => { prompts.push(value.text); },
|
|
172
|
+
context: async () => [],
|
|
173
|
+
},
|
|
169
174
|
event: { subscribe: async function* ({ signal }) {
|
|
170
175
|
while (!signal.aborted) {
|
|
171
176
|
if (queue.length) yield queue.shift();
|
|
@@ -196,9 +201,21 @@ const helper = require('./test-helper');
|
|
|
196
201
|
queue.push({ type: 'session.idle', sessionID: 'v2-disposed' });
|
|
197
202
|
await waitFor(() => fs.existsSync(v2Ready));
|
|
198
203
|
await dispose();
|
|
204
|
+
const v2DisposedDir = path.join(sessions, 'v2-disposed');
|
|
205
|
+
const disposeStateFiles = ['edit-state.json', 'circuit-breaker.json', 'compliance.json']
|
|
206
|
+
.map(name => path.join(v2DisposedDir, name));
|
|
207
|
+
const stateAtDispose = disposeStateFiles.map(file => fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : null);
|
|
199
208
|
const stopped = fs.statSync(v2Heartbeat).size;
|
|
200
209
|
await new Promise(resolve => setTimeout(resolve, 150));
|
|
201
|
-
|
|
210
|
+
const stateStable = disposeStateFiles.every((file, index) =>
|
|
211
|
+
(fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : null) === stateAtDispose[index]);
|
|
212
|
+
const editAtDispose = JSON.parse(stateAtDispose[0]);
|
|
213
|
+
const complianceAtDispose = JSON.parse(stateAtDispose[2]);
|
|
214
|
+
helper.check('338. V2 disposal waits for active child cleanup without late follow-up, breaker, or compliance writes',
|
|
215
|
+
fs.statSync(v2Heartbeat).size === stopped && prompts.length === beforeConcurrent && stateStable
|
|
216
|
+
&& editAtDispose.verificationPending === true && editAtDispose.followUpPending === false
|
|
217
|
+
&& complianceAtDispose.verifiedEdits === 0 && complianceAtDispose.circuitBreakerTrips === 0,
|
|
218
|
+
JSON.stringify({ stateStable, editAtDispose, complianceAtDispose, prompts: prompts.length - beforeConcurrent }));
|
|
202
219
|
// A new idle can arrive while an edit-cancelled child is still being reaped.
|
|
203
220
|
// That idle must verify the newer revision after cleanup, rather than vanish.
|
|
204
221
|
fs.unlinkSync(path.join(workspace, 'ready.txt'));
|