@staix/agent-hub 0.36.0 → 0.38.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/CHANGELOG.md +27 -0
- package/README.md +6 -2
- package/THIRD_PARTY_NOTICES.md +0 -18
- package/docs/agent-notes/README.md +13 -3
- package/docs/agent-notes/daemon.md +4 -4
- package/docs/agent-notes/local-worker.md +1 -0
- package/docs/agent-notes/models.md +2 -1
- package/docs/agent-notes/tasks.md +1 -1
- package/docs/agent-notes/tests.md +1 -2
- package/docs/contracts/companion-cli-v1.json +70 -0
- package/docs/design/adapters.md +43 -2
- package/docs/design/agent-hub-architecture.md +9 -1
- package/docs/design/guidance-probes.md +1167 -0
- package/docs/design/model-routes.md +437 -12
- package/docs/dogfood.md +12 -13
- package/docs/events.md +20 -1
- package/docs/memory.md +3 -3
- package/docs/operations.md +123 -151
- package/docs/profiles.md +1 -1
- package/docs/quickstart.md +15 -3
- package/docs/research.md +1 -1
- package/docs/sdlc.md +5 -3
- package/docs/security.md +25 -1
- package/docs/specs/2026-09-19-agent-hub-design.md +9 -7
- package/docs/specs/2026-10-04-switchyard-source-port-design.md +3 -1
- package/docs/verification/2026-11-08-qwen-0269-model-setter-1317.md +25 -11
- package/docs/verification/2026-11-09-qwen-0270-model-setter-1317.md +21 -6
- package/docs/verification/2026-11-11-0.37.0.md +40 -0
- package/docs/verification/2026-11-11-0.38.0.md +41 -0
- package/docs/verification/2026-11-11-guidance-probe-t2-1226.md +153 -0
- package/docs/verification/2026-11-11-guidance-probe-t3-1226.md +85 -0
- package/docs/verification/2026-11-11-guidance-probe-t4-1226.md +65 -0
- package/docs/verification/2026-11-11-qwen-setter-suggestions-off.md +167 -0
- package/docs/verified.json +25 -25
- package/package.json +3 -4
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +2403 -1444
- package/plugins/agent-hub/server.js +2480 -1509
- package/src/adapters/channel-peer.ts +7 -1
- package/src/adapters/claude-channel.ts +2 -1
- package/src/adapters/compat.ts +1 -1
- package/src/adapters/local-probe.ts +233 -0
- package/src/adapters/local-worker.ts +232 -21
- package/src/cli/console-state.ts +25 -6
- package/src/cli/console-versions.ts +99 -0
- package/src/cli/console.ts +13 -1
- package/src/cli/help.ts +2 -1
- package/src/cli/init.ts +3 -1
- package/src/cli/install-paths.ts +7 -2
- package/src/cli/main.ts +78 -7
- package/src/cli/output.ts +8 -4
- package/src/cli/runtime-version-warning.ts +2 -2
- package/src/cli/sdlc-output.ts +9 -5
- package/src/cli/upgrade-runtime.ts +1 -1
- package/src/hub/bus.ts +2 -2
- package/src/hub/config-apply.ts +4 -2
- package/src/hub/config-trust.ts +6 -1
- package/src/hub/control-client.ts +5 -2
- package/src/hub/daemon.ts +195 -13
- package/src/hub/envelope.ts +6 -1
- package/src/hub/events.ts +3 -2
- package/src/hub/guidance-probe-store.ts +1044 -0
- package/src/hub/guidance-probes.ts +692 -0
- package/src/hub/inference.ts +18 -5
- package/src/hub/manager.ts +24 -1
- package/src/hub/operational-authority.ts +14 -1
- package/src/hub/peers.ts +5 -0
- package/src/hub/person-command.ts +25 -0
- package/src/hub/ports.ts +1 -1
- package/src/hub/progress.ts +23 -16
- package/src/hub/report.ts +2 -0
- package/src/hub/research.ts +1 -0
- package/src/hub/restart.ts +7 -0
- package/src/hub/sdlc-release-authorization.ts +139 -17
- package/src/hub/sdlc-release-policy.ts +100 -0
- package/src/hub/sdlc-release.ts +59 -7
- package/src/hub/supervision.ts +3 -2
- package/src/hub/tasks.ts +363 -7
- package/src/local/probe-errors.ts +28 -0
- package/src/local/probe-sandbox.ts +224 -0
- package/src/local/probe-types.ts +110 -0
- package/src/local/probe-workspace.ts +426 -0
- package/src/local/sandbox.ts +71 -2
- package/src/local/tools.ts +135 -9
- package/src/models/route/advisor-trigger.ts +88 -0
- package/src/models/route/config.ts +21 -17
- package/src/models/route/conversation-view.ts +179 -0
- package/src/models/route/decision-evidence.ts +1 -1
- package/src/models/route/decision.ts +114 -19
- package/src/models/route/escalation-control.ts +30 -0
- package/src/models/route/hub-prompts.ts +97 -0
- package/src/models/route/judge-choice.ts +155 -0
- package/src/models/route/judge-replies.ts +102 -0
- package/src/models/route/labels.ts +14 -70
- package/src/models/route/observation-signals.ts +250 -0
- package/src/models/route/plan-execute-choice.ts +27 -0
- package/src/models/route/relay-selector.ts +2 -2
- package/src/models/route/runtime.ts +115 -52
- package/src/models/route/turn-state.ts +77 -0
- package/src/omniroute/client.ts +3 -0
- package/src/ui/guidance-panel.ts +34 -2
- package/src/ui/guidance-view.ts +33 -0
- package/src/ui/plugin.ts +80 -23
- package/src/version.ts +4 -0
- package/templates/AGENTS.block.md +14 -14
- package/templates/adec/README.md +32 -0
- package/templates/adec/ahub.plan-execute.json +23 -0
- package/templates/adec/ahub.stage.json +23 -0
- package/templates/profiles/general.json +1 -1
- package/templates/profiles/research.json +1 -1
- package/templates/profiles/writing.json +1 -1
- package/LICENSES/Apache-2.0.txt +0 -204
- package/src/models/route/advisor.ts +0 -102
- package/src/models/route/escalation.ts +0 -82
- package/src/models/route/judge.ts +0 -23
- package/src/models/route/normalize.ts +0 -103
- package/src/models/route/plan-execute.ts +0 -52
- package/src/models/route/prompts.ts +0 -8
- package/src/models/route/signals.ts +0 -247
- package/src/models/route/state.ts +0 -54
- package/src/models/route/text.ts +0 -61
|
@@ -44,7 +44,7 @@ Facts below are tagged **verified** (measured on 2026-09-19 on the owner's Mac)
|
|
|
44
44
|
vLLM serves `deepseek-ai/DeepSeek-V4-Flash-0731`; GLM-5.3-Flash and
|
|
45
45
|
Qwen3.8-27B are planned (internal deployment plan).
|
|
46
46
|
OpenCode 1.18.31 already has a `dgx-dsv4f` provider for this gateway.
|
|
47
|
-
-
|
|
47
|
+
- Historical routing policy engine, superseded by [Hub Model Routes](../design/model-routes.md) in #1352: NVIDIA-NeMo/Switchyard v0.2.0 (Apache-2.0). Route types
|
|
48
48
|
`llm_classifier`, `stage_router`, `escalation_router`; `auto` needs a source build
|
|
49
49
|
until v0.3.0. Standalone `switchyard-server` proxies `/v1/chat/completions`,
|
|
50
50
|
`/v1/messages`, `/v1/responses` and forwards to any `base_url` upstream. Stability:
|
|
@@ -72,6 +72,8 @@ Facts below are tagged **verified** (measured on 2026-09-19 on the owner's Mac)
|
|
|
72
72
|
|
|
73
73
|
## Amendment: retire the Switchyard sidecar (#553, 2026-10-20)
|
|
74
74
|
|
|
75
|
+
Historical amendment. #1352 supersedes the source-port and provenance requirements below with the newly authored [Hub Model Routes](../design/model-routes.md). The reserved port offset remains 3 under a neutral name; derived modules, their upstream checker and Apache notice are retired. The unrelated Tabler Icons notice remains.
|
|
76
|
+
|
|
75
77
|
- All model routing runs in process. Remove `src/switchyard/`, the external binary,
|
|
76
78
|
generated config, lifecycle, health/status/doctor entries, `AGENTHUB_SWITCHYARD_BIN`
|
|
77
79
|
and `x-switchyard-session-id`. Port offset `SWITCHYARD = 3` remains reserved and
|
|
@@ -370,7 +372,7 @@ pii = "local_only" # hard: on-prem models only
|
|
|
370
372
|
budget_paused = "skip_peer"
|
|
371
373
|
```
|
|
372
374
|
|
|
373
|
-
L2 in-process routing (2026-10-04 source port): `[hub_routes."hub/<id>"]` selects
|
|
375
|
+
Historical L2 in-process routing (2026-10-04 source port, superseded by [Hub Model Routes](../design/model-routes.md) in #1352): `[hub_routes."hub/<id>"]` selects
|
|
374
376
|
stage, plan_execute, advisor or escalation policies inside the hub. The host retains
|
|
375
377
|
transport, budget admission and complete-turn history ownership; algorithms make decisions
|
|
376
378
|
from normalized chat input and bounded session state. See
|
|
@@ -719,7 +721,7 @@ M6 internal inference, packaging
|
|
|
719
721
|
- Room v1 excludes hosted multi-tenant service, multi-owner rooms, forward secrecy, traffic-metadata hiding, approval or permission-request relay, and cross-machine instances. Shared boards, remote roles and remote task ownership remain excluded; memory crosses only through the separate agent-mem git sync. No hub server is exposed.
|
|
720
722
|
- OmniRoute daemon on the Mac; pooling subscription OAuth through any gateway.
|
|
721
723
|
- Gemini CLI and OpenCode adapters beyond the ACP fallback note.
|
|
722
|
-
- Switchyard `auto` route until v0.3.0 ships.
|
|
724
|
+
- Historical exclusion, superseded in #1352: Switchyard `auto` route until v0.3.0 ships. Current routing uses the hub-owned route implementation and optional adec choices.
|
|
723
725
|
- Running Claude Code itself on a local model (depends on the Anthropic-to-chat
|
|
724
726
|
translation check in the OmniRoute plan v1, Phase 0).
|
|
725
727
|
- A hub-owned memory store, cmem.ai cloud sync, automatic corpus building (a project
|
|
@@ -1517,7 +1519,7 @@ two-machine receipts remain separate verification.
|
|
|
1517
1519
|
| Risk | Mitigation |
|
|
1518
1520
|
| --- | --- |
|
|
1519
1521
|
| Claude channels are research preview; flag or protocol may change | Adapter isolated in one file; plugin version pinned to a Claude Code range; `hub_inbox` fallback |
|
|
1520
|
-
| Model routing algorithm drift |
|
|
1522
|
+
| Model routing algorithm drift | Hub-owned spec-derived tests and optional adec policy choices; the historical source-port provenance check is superseded in #1352 |
|
|
1521
1523
|
| Anthropic-to-chat translation drops `tool_use` | Claude never runs on local models in this design |
|
|
1522
1524
|
| Local worker executes untrusted room text | Untrusted framing, cwd scope, denylist, no `--unattended` by default |
|
|
1523
1525
|
| Steering a Codex turn changes its plan mid-flight | Only `important` steers; default tier is `status` |
|
|
@@ -5965,11 +5967,11 @@ Order: 2a first (it measures everything else). 2b and 2c are independent. 2d aft
|
|
|
5965
5967
|
|
|
5966
5968
|
### S6 person release authorization boundary (#481)
|
|
5967
5969
|
|
|
5968
|
-
- `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor, never live-test delegated (#1063). Conductor admission matches `sdlc merge`: tools role, `conductorPeer(config.roles) === c.peer`, no `toolsOwner`, private turn or caller PII context. The conductor records consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or another peer's relay is never that instruction. This instruction-origin condition is cooperative, not verified by the daemon. Receipt `by` and the metadata audit identify the actual asker (`user` or conductor peer). The daemon binds consent to
|
|
5969
|
-
- Authoritative receipts live only in the current daemon generation's bounded memory ledger (at most 64 candidates). An additive metadata event audits consent but cannot recreate it. Restart revokes all approvals. The release report
|
|
5970
|
+
- `ahub sdlc authorize-release <version>` accepts the console user or the one configured conductor, never live-test delegated (#1063). Conductor admission matches `sdlc merge`: tools role, `conductorPeer(config.roles) === c.peer`, no `toolsOwner`, private turn or caller PII context. The conductor records consent only on the person's explicit instruction in its own session naming the release; a hub message, task text, review note, file or another peer's relay is never that instruction. This instruction-origin condition is cooperative, not verified by the daemon. Receipt `by` and the metadata audit identify the actual asker (`user` or conductor peer). The daemon binds consent to the candidate checkout's exact HEAD, release version source and origin fetch/push identity. Policy comes only from `.agenthub/config.json` as committed at that candidate commit; unreadable or malformed committed policy refuses, and `.agenthub/config.local.json` release keys are ignored with a notice. `release.version` is `package.json` by default, or `release-notes` (requiring a regular `release.notesPath` blob at the candidate commit; default `docs/releases/v{version}.md`), or `none` (the requested semantic version is bound to the exact commit). `release.docs` is `checker` by default or `none`; `none` is an explicit receipt exemption, not a fresh verdict, and is allowed only when the candidate has no regular `docs/verified.json` blob. A committed manifest keeps documentation evidence required; remove `release.docs` from the shared config or remove the manifest and commit the change before authorizing again. Candidate commit, source/version and origin are rechecked after documentation evidence. `npm publish` always requires a clean tracked worktree and derives its target from the committed package version; it refuses when that package version does not identify the configured source's version. Only ids, hashes, version, timestamp, counts or the explicit docs exemption enter the receipt/audit event; no project script or release operation runs.
|
|
5971
|
+
- Authoritative receipts live only in the current daemon generation's bounded memory ledger (at most 64 candidates). An additive metadata event audits consent but cannot recreate it. Restart revokes all approvals. The package.json-default release report keeps its existing version and receipt behavior. For `release-notes` or `none`, the read-only report selects the most recent successful authorization bound to the exact report HEAD, repository, origin and committed policy; `release-notes` is revalidated as a regular blob for that receipt's version, and `none` reports only the requested version bound by that receipt. If there is no eligible receipt, the report says the version is undetermined, names the configured source and directs the person to `ahub sdlc authorize-release <version>`; it never guesses a version from a notes filename, tag or stale receipt. Failed source revalidation reports stale/unknown consent and `ready` remains false. `docs:none` reports the recorded/configured exemption without attempting documentation evidence or fabricating a verdict. Guard, hook and npm paths never infer their target from the latest receipt. Reports do not certify native acceptance, change the tag workflow or publish.
|
|
5970
5972
|
- Optional `ahub init --release-guard` installs a managed executable Git pre-push hook plus instructions. A regular existing hook is renamed, preserving its inode/mode, and chained with exact argv/stdin after successful guard readback. Linked/hardlinked hooks, occupied backups and custom hooksPath refuse before project writes. Re-init retains the guard; the wrapper pins Bun/package paths and needs re-init if they move.
|
|
5971
5973
|
- Actual pushed `v*` refs must have a valid version and captured source-object/commit matching consent. Missing/mismatched commit/version/remote, unreachable daemon, deletion, unknown evidence or restart refuses the version-tag push. Branch-only pushes work offline. `--no-verify` remains the person's explicit bypass and is forbidden to agents; this is cooperative Git enforcement, not a sandbox.
|
|
5972
|
-
- Literal CLI preflights support a single named-remote tag refspec, GitHub release creation (existing remote tag readback, or explicit full SHA for a new tag), and current-checkout npm publish. Ambiguous/alternate-repository/bulk/workspace/archive selectors refuse. npm requires a clean tracked worktree and rechecks HEAD and
|
|
5974
|
+
- Literal CLI preflights support a single named-remote tag refspec, GitHub release creation (existing remote tag readback, or explicit full SHA for a new tag), and current-checkout npm publish. Ambiguous/alternate-repository/bulk/workspace/archive selectors refuse. npm requires a clean tracked worktree and rechecks HEAD plus configured source and documentation policy; when configured to use an alternate version source, the committed package version must independently identify the same target. Artifact bytes, npm config and lifecycle scripts are outside this receipt. gh/npm instructions and preflight are the S6 boundary; adapter refusal belongs to #312/#313. No release effect is executed and no native/live pass is inferred. AC7 is covered by host-ledger units and actual hook/CLI/daemon fixture tests.
|
|
5973
5975
|
|
|
5974
5976
|
- S6 npm cleanliness uses filter-free cached-index/raw-blob comparison before and after docs readback, never `git status` or content conversions. Unknown modes, gitlinks, transformed bytes, unsafe paths or the 4,096-entry / 4 MiB-file / 32 MiB-total / 250 ms bounds refuse. Untracked artifact content remains outside this consent check.
|
|
5975
5977
|
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
title: Switchyard 라우팅 로직의 소스 수준 도입 계획 - agent-hub TypeScript 이식
|
|
3
3
|
date: 2026-10-04
|
|
4
4
|
project: agent-hub
|
|
5
|
-
status:
|
|
5
|
+
status: superseded by docs/design/model-routes.md (#1352)
|
|
6
6
|
related: 261004-review-agent-hub-switchyard-comparison.md, 261004-plan-agent-hub-research-v2.md
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# Switchyard 라우팅 로직의 소스 수준 도입 계획
|
|
10
10
|
|
|
11
|
+
이 문서는 #1352의 [Hub Model Routes](../design/model-routes.md)로 대체된 역사 기록이다. 현재 구현과 변경 계약은 해당 문서를 따른다. 아래 본문은 당시의 도입 계획으로 보존하며, 현재 구현이나 배포 지시가 아니다.
|
|
12
|
+
|
|
11
13
|
## 요약
|
|
12
14
|
|
|
13
15
|
- **방식**: Switchyard 바이너리(sidecar)를 띄우는 대신, 필요한 라우팅 로직을 agent-hub의 TypeScript 소스로 옮겨 hub 프로세스 안에서 실행함.
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
# Qwen 0.26.9 ACP model setter,
|
|
1
|
+
# Qwen Code 0.26.9 ACP model setter, historical A/B/B
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
**Interpretation correction (2026-11-11, task #861).** The historical A/B/B
|
|
4
|
+
provider-model observation is retained. Its saved counts and response shape do
|
|
5
|
+
not identify the third request's purpose: no latest-USER content, marker or hash
|
|
6
|
+
was retained. That purpose is **unknown**, so the original conclusion below does
|
|
7
|
+
not establish an ordinary clear failure. The [new receipt](2026-11-11-qwen-setter-suggestions-off.md) records
|
|
8
|
+
ordinary A/B/A on both exact versions with follow-up suggestions disabled.
|
|
9
|
+
It does not prove that the historical third request was a suggestion. Production
|
|
10
|
+
live-setter admission remains unavailable pending a separate decision.
|
|
11
|
+
|
|
12
|
+
The original receipt follows as historical interpretation.
|
|
13
|
+
|
|
14
|
+
Date: 2026-11-08. Task #809, Refs #1317 AC4. **Original verdict: failed clear.**
|
|
15
|
+
The saved A/B/B observation does not identify the third request's purpose, so
|
|
16
|
+
ordinary-clear restoration was unverified in that attempt. Qwen has no production
|
|
17
|
+
live-setter capability in this change. General compatibility qualification is separate, in
|
|
6
18
|
[the 0.26.9 ACP receipt](2026-11-08-qwen-0269-acp.md).
|
|
7
19
|
|
|
8
20
|
## Exact artifact and isolation
|
|
@@ -51,18 +63,20 @@ arbitrary native presets share an endpoint or account.
|
|
|
51
63
|
2. The next prompt sends `session/set_config_option`, `configId: model`, value
|
|
52
64
|
`task809-b(openai)`. Native acknowledgement precedes a request using B.
|
|
53
65
|
3. Clear removes the desired row. The adapter sends the original baseline
|
|
54
|
-
`task809-a(openai)` and receives acknowledgement,
|
|
55
|
-
|
|
66
|
+
`task809-a(openai)` and receives acknowledgement, then the third provider
|
|
67
|
+
request uses B. Its purpose is unknown. The observed sequence is **A/B/B**;
|
|
68
|
+
it does not establish an ordinary A/B/A verdict.
|
|
56
69
|
4. The fixture refuses that third unexpected model and reports failure. It does
|
|
57
70
|
not count the resulting turn as completed or as a passing clear. Two prior
|
|
58
71
|
delivery ids completed. Owned stop succeeds and private settings remain
|
|
59
72
|
byte-identical immediately after B and after stop.
|
|
60
73
|
|
|
61
|
-
|
|
62
|
-
counts 1, 2 and 3. No response-format/title schema is present
|
|
63
|
-
|
|
64
|
-
request
|
|
65
|
-
is not
|
|
74
|
+
The original ordinary classification used message counts 2, 4 and 6, with user
|
|
75
|
+
counts 1, 2 and 3. No response-format/title schema is present, and auto-title was
|
|
76
|
+
declared disabled before startup. Those facts do not exclude a follow-up
|
|
77
|
+
suggestion request or identify the third request's purpose. The underlying
|
|
78
|
+
native cause is not established; the observed ACK is insufficient to certify
|
|
79
|
+
ordinary clear.
|
|
66
80
|
|
|
67
81
|
## Earlier setup failures
|
|
68
82
|
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
# Qwen Code 0.27.0 ACP model setter,
|
|
1
|
+
# Qwen Code 0.27.0 ACP model setter, historical A/B/B
|
|
2
|
+
|
|
3
|
+
**Interpretation correction (2026-11-11, task #861).** The historical A/B/B
|
|
4
|
+
provider-model observation is retained. Its saved counts and response shape do
|
|
5
|
+
not identify the third request's purpose: no latest-USER content, marker or hash
|
|
6
|
+
was retained. That purpose is **unknown**, so the original conclusion below does
|
|
7
|
+
not establish an ordinary clear failure. The [new receipt](2026-11-11-qwen-setter-suggestions-off.md) records
|
|
8
|
+
ordinary A/B/A on both exact versions with follow-up suggestions disabled.
|
|
9
|
+
It does not prove that the historical third request was a suggestion. Production
|
|
10
|
+
live-setter admission remains unavailable pending a separate decision.
|
|
11
|
+
|
|
12
|
+
The original receipt follows as historical interpretation.
|
|
2
13
|
|
|
3
14
|
Date: 2026-11-09. Task #849, Refs #1317 and #888.
|
|
4
15
|
|
|
5
|
-
**
|
|
16
|
+
**Original verdict: failed clear.** The saved A/B/B sequence does not identify
|
|
17
|
+
the third request's purpose, so ordinary-clear restoration was unverified in
|
|
18
|
+
that attempt.
|
|
6
19
|
The [separate ACP receipt](2026-11-09-qwen-0270-acp.md) records passing native
|
|
7
20
|
ACP/permission/lifecycle legs and the exact artifact, revised protected fence,
|
|
8
21
|
isolation rulings, controls, source and closed result hashes. This setter uses
|
|
@@ -23,15 +36,17 @@ model is contacted. Private trust and auto-title disabling match the previous
|
|
|
23
36
|
2. The next boundary sends session/set_config_option, configId model, value
|
|
24
37
|
task849-b(openai). A native acknowledgement precedes the second request B.
|
|
25
38
|
3. Clear removes the desired row. The adapter sends baseline task849-a(openai)
|
|
26
|
-
and receives acknowledgement,
|
|
27
|
-
Actual wire sequence is **A/B/B
|
|
39
|
+
and receives acknowledgement, then the third provider request uses B.
|
|
40
|
+
Its purpose is unknown. Actual wire sequence is **A/B/B**; this does not
|
|
41
|
+
establish an ordinary A/B/A verdict.
|
|
28
42
|
4. The fixture rejects that third unexpected B. Only the first two delivery ids
|
|
29
43
|
complete; the final checkpoint is clear-wire-A and the controller exits 1.
|
|
30
44
|
|
|
31
45
|
The three requests have message counts 2/4/6 and user counts 1/2/3. All have no
|
|
32
46
|
response-format or title schema, and there are exactly three prompt RPCs. This
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
does not distinguish an ordinary clear request from a follow-up suggestion.
|
|
48
|
+
The fixture failed, while ordinary clear remained unverified. Task #849 did not
|
|
49
|
+
infer an underlying native cause or rerun that attempt.
|
|
35
50
|
|
|
36
51
|
The 7,016-entry protected baseline and all global/managed/launcher/selector
|
|
37
52
|
coverage remain unchanged. Private settings stay byte-identical after B and
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# 0.37.0 release verification
|
|
2
|
+
|
|
3
|
+
This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.37.0 and no live TUI launch.
|
|
4
|
+
|
|
5
|
+
## Candidate
|
|
6
|
+
|
|
7
|
+
Version 0.37.0, prepared from main fa53e8b1 (12 commits since v0.36.0, 4 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
|
|
8
|
+
|
|
9
|
+
## Reviews
|
|
10
|
+
|
|
11
|
+
Pull requests named by the commits since v0.36.0: #1395, #883, #1396, #1394, #1391, #1393, #1392, #1389, #1388, #1386, #1384, #1383, #1382.
|
|
12
|
+
|
|
13
|
+
Each of these merged by squash with `--match-head-commit` after its hub review was approved, and every check on the merged head passed (19 to 21 successes each, the two path-gated legs skipped): #1395 at e5954d1a, #1396 at 196f3d01, #1394 at 0e3c1368, #1391 at 34012980, #1393 at 176fba44, #1392 at 1b4a60cd, #1389 at b741067f, #1388 at 0c427dd0, #1386 at 10cea9f0, #1384 at 0a3f35f9, #1383 at ffa94e9b, #1382 at 346ede10.
|
|
14
|
+
|
|
15
|
+
One merge is bound to an approval at an earlier head: #1391 was approved before main moved; the conductor added a conflict-only merge of main (34012980, the hello handler in `src/hub/daemon.ts` keeps both new lines) and merged it after full CI on that head. #883 is the board task of #1396.
|
|
16
|
+
|
|
17
|
+
## Native acceptance receipts
|
|
18
|
+
|
|
19
|
+
Receipts added under `docs/verification/` since v0.36.0: `docs/verification/2026-11-11-guidance-probe-t2-1226.md`, `docs/verification/2026-11-11-qwen-setter-suggestions-off.md`.
|
|
20
|
+
|
|
21
|
+
This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.37.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
|
|
22
|
+
|
|
23
|
+
## Document review
|
|
24
|
+
|
|
25
|
+
All 24 documents were stamped at 4ac7c54c (the 0.36.0 review). Each was read against the source commits since that stamp that touch its `paths` (#1382, #1383, #1384, #1386, #1388, #1389, #1391, #1392, #1393, #1394, #1395, #1396).
|
|
26
|
+
|
|
27
|
+
- Edited: `README.md` (guidance probe commands, report link), `docs/security.md` (new "Guidance probes" section: admission, private storage, no production runner, the T2 confined path), `docs/operations.md` (incremental Space snapshots, the conductor operations row for `guidance probe`, the 0.37.x N-1 baseline), `docs/quickstart.md` (the 0.37.0 upgrade note), `docs/memory.md` (current pin 0.24.0 and its activation link), `docs/research.md` (judge route observations add no model, peer or attribution), `docs/agent-notes/daemon.md` (the `guidance_probes` recovery floor, the Space snapshot rule, `src/cli/console-versions.ts` in scope), `docs/agent-notes/README.md` (the hello `clientVersion` is the agent-hub version, not the Claude Code version).
|
|
28
|
+
- Read, accurate, no edit: `src/cli/help.ts` (the `guidance probe` row matches its parser; the `authorize-release` row was updated by #1383; no other flag changed), `docs/sdlc.md`, `docs/text-projection.md`, `docs/dogfood.md`, `docs/events.md`, `docs/data-policy.md`, `docs/adding-an-ai-tool.md`, `docs/addons/claude-mem.md`, `docs/agent-notes/adapters.md`, `benchmarks.md`, `budget.md`, `bus.md`, `local-worker.md`, `models.md`, `tasks.md`, `tests.md`.
|
|
29
|
+
- Restamped together after the review commit with `bun scripts/release-prepare.ts restamp <document>... --reviewed`.
|
|
30
|
+
|
|
31
|
+
## Checks
|
|
32
|
+
|
|
33
|
+
- `node scripts/check-docs.mjs --require-fresh` on this branch after the restamp: `docs: OK (0 stale documents)`.
|
|
34
|
+
- Hosted CI run 43000364792 on the release PR head 870bf52d: all 19 checks passed (typecheck, bundle freshness, npm package contents, the full suite on Ubuntu and macOS in four shards each, seeded guards, closing-refs, routing receipt and eval); `prepare-bundle` and `macos-timing` were skipped by their path filters. This report's own commit is documentation only and gets its own exact-head run before the merge.
|
|
35
|
+
- `bun x tsc --noEmit`, `bun scripts/build.mjs --check` and `node scripts/check-package.mjs` ran inside that CI run; the bundle was built with the pinned Bun 1.4.2.
|
|
36
|
+
|
|
37
|
+
## Known gaps, not blocking
|
|
38
|
+
|
|
39
|
+
- The committed-head `scripts/check.sh` on dgx02 (`remote_dev.py verify` at 870bf52d) was ended by its 2250 s hang-watch bound (exit 143) before `check: OK`, the same bound that ended the gates of #1392, #1396 and #1395. It is not counted; hosted CI is the full gate for this release.
|
|
40
|
+
- No installation, running-hub upgrade or live TUI launch of 0.37.0. The agent-mem 0.24.0 home floor is raised by the person only after every hub sharing the home runs 0.37.0.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# 0.38.0 release verification
|
|
2
|
+
|
|
3
|
+
This record covers release preparation and source review. It claims no installation, no running-hub upgrade to 0.38.0 and no live TUI launch.
|
|
4
|
+
|
|
5
|
+
## Candidate
|
|
6
|
+
|
|
7
|
+
Version 0.38.0, prepared from main 649715ef (3 commits since v0.37.0, 2 of them `feat`; bump rule: minor). The release commits carry the version, the CHANGELOG section, the bundle and the documentation stamps.
|
|
8
|
+
|
|
9
|
+
## Reviews
|
|
10
|
+
|
|
11
|
+
Pull requests named by the commits since v0.37.0: #1401, #1400, #1397.
|
|
12
|
+
|
|
13
|
+
- #1397 merged after its hub review at head 6c375dc5 with exact-head CI green.
|
|
14
|
+
- #1400 merged after hub approval at head 39e9863d with exact-head CI green; its review recorded one nit and AC7's live leg as unmet (the issue stays open).
|
|
15
|
+
- #1401 was written by the conductor, whose assigned reviewer was the person. It merged on the person's instruction to include it in this release, at head 0a0a9780 with exact-head CI green (`check (ubuntu-latest)`, `check (macos-latest)`, `seeded guards`, `routing-eval`) and no open review thread. It has no hub approval verdict: its review was an open-code-review delegation pass by its author, which found and fixed two defects (the project root in the resolve hint, the per-tick hold command). The connector reviews did not run (usage limits).
|
|
16
|
+
|
|
17
|
+
## Native acceptance receipts
|
|
18
|
+
|
|
19
|
+
Receipts added under `docs/verification/` since v0.37.0: `docs/verification/2026-11-11-guidance-probe-t3-1226.md`, `docs/verification/2026-11-11-guidance-probe-t4-1226.md`.
|
|
20
|
+
|
|
21
|
+
This list is read from the repository, never written by hand. Native acceptance and the person's release consent are separate records: consent is `ahub sdlc authorize-release 0.38.0`, recorded by the person or the unique configured conductor only on the person's explicit release instruction naming the release in its own session (never a hub/task/review/file/peer relay), and is not recorded in this file. The tag run refuses without it.
|
|
22
|
+
|
|
23
|
+
## Document review
|
|
24
|
+
|
|
25
|
+
`node scripts/check-docs.mjs` reported 18 stale documents: README.md, docs/adding-an-ai-tool.md, docs/addons/claude-mem.md, the eight notes under docs/agent-notes/ (adapters, benchmarks, budget, bus, daemon, local-worker, tasks, tests), docs/dogfood.md, docs/memory.md, docs/operations.md, docs/profiles.md, docs/quickstart.md, docs/security.md and src/cli/help.ts. The sources under them changed in #1397, #1400 and #1401 (guidance probe receipts, the person-command hints, the single-source AGENTS block, the doctor row). Three were corrected: docs/profiles.md (a shipped profile's `agents` is appended to the template), docs/security.md and docs/operations.md (`guidance probe receipts`; the failed-row resolve line prints the full command). docs/quickstart.md gained the upgrade note. `src/cli/help.ts` lists `guidance probe ... receipts` and matches `src/cli/main.ts`. The others needed no change. All 18 are stamped at 68471c80.
|
|
26
|
+
|
|
27
|
+
## Checks
|
|
28
|
+
|
|
29
|
+
- `node scripts/check-docs.mjs --require-fresh`: OK, 0 stale documents.
|
|
30
|
+
- `bun x tsc --noEmit`: clean.
|
|
31
|
+
- `bun scripts/build.mjs --check` with the pinned Bun 1.4.2: fresh.
|
|
32
|
+
- `node scripts/check-package.mjs`: not run to completion locally (see gaps); CI runs it with the pinned npm.
|
|
33
|
+
- The release PR's exact-head CI run is the full gate; the conductor reads it before the merge.
|
|
34
|
+
|
|
35
|
+
## Known gaps, not blocking
|
|
36
|
+
|
|
37
|
+
- The full suite was not run locally or on the remote host for this candidate; a remote run on an early #1401 head hit its 2250 s total bound. CI on both operating systems is the gate.
|
|
38
|
+
- `node scripts/check-package.mjs` refuses locally because this machine's npm 12.2.2 prints a different `npm pack --dry-run --json` shape than the pinned npm.
|
|
39
|
+
- No installation, running-hub upgrade or live TUI launch of 0.38.0.
|
|
40
|
+
- Guidance probes remain fixture-proven: the live local-worker trial (#1226 AC7) was not run.
|
|
41
|
+
- #1401's doctor row and init refresh were exercised by tests only, not on a second project.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Guidance probe T2 qualification
|
|
2
|
+
|
|
3
|
+
Date: 2026-11-11. Refs #1226. This is a human verification record for the
|
|
4
|
+
confined adapter, not the T3 durable producer receipt or a live trial.
|
|
5
|
+
|
|
6
|
+
## Scope and authorization
|
|
7
|
+
|
|
8
|
+
T2 uses the existing LocalPeer loop on a fresh private peer, with host-only
|
|
9
|
+
lifecycle and purpose, a fixed requested model, role-specific admitted bytes,
|
|
10
|
+
read/write/edit tools and experiment-wide accounting. The factory is not wired
|
|
11
|
+
into the daemon. No real model or existing worker session was launched, and no
|
|
12
|
+
account or production configuration was changed. Live-home/account contents were
|
|
13
|
+
not copied or supplied as probe inputs. The same-PID OS crash report was read
|
|
14
|
+
read-only for the separate diagnosis described below.
|
|
15
|
+
|
|
16
|
+
Constructor-injected fake model/fixture ports are source evidence. They do not
|
|
17
|
+
prove OS confinement, provider behavior, sampling control or model quality.
|
|
18
|
+
|
|
19
|
+
## Source and fixture checks
|
|
20
|
+
|
|
21
|
+
| Committed head | Check | Observed result |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| `b403a263204feaf47204ee45561cc4ce4ff3562f` | Remote typecheck and owner-ledger tests | 59 pass, 0 fail, 363 assertions; complete-frame admission, compound rollback, replay and async currentness |
|
|
24
|
+
| `bf2bba1deb7032be889d9a7550cb7c811099a11f` | Initial full-source preflight | Typecheck failed on nullable narrowing and one new async fixture literal; tests not run |
|
|
25
|
+
| `6faf1b0e1ce87a69071122dfd77f799fd607ee93` | Corrected remote typecheck and 13 focused files | 241 pass, 22 macOS skips, 0 fail, 11385 assertions; skipped legs are not native proof |
|
|
26
|
+
| `c14387136f8e51e2af79f199b57ed405fe2d1823` | Async-preparation duplicate fix: typecheck, inventory and 3 focused files | 101 pass, 1 macOS skip, 0 fail, 700 assertions; deterministic barrier verifies no unframed reservation or double launch |
|
|
27
|
+
|
|
28
|
+
The first required changed gate at `e60557cccb2fbd585935f98c5d4bbca4dd51c7b7`
|
|
29
|
+
was deliberately stopped (exit 130) after static review found that a duplicate
|
|
30
|
+
could reserve an unframed slot while the original asynchronous frame was pending.
|
|
31
|
+
The owned container was observed absent after teardown. That run is not a green
|
|
32
|
+
gate. The fix returns current metadata only until the original reservation exists,
|
|
33
|
+
while checking the original actor/session/connection and preserving admitted replay.
|
|
34
|
+
|
|
35
|
+
After this source fix, normal pinned local bundle regeneration was deferred by
|
|
36
|
+
fresh resource admission (exit 75, memory pressure warning), including one
|
|
37
|
+
conductor-requested retry. The build did not start. Generated files were not
|
|
38
|
+
hand-edited and remote build outputs were not copied back. Subsequent
|
|
39
|
+
committed-head freshness verification at
|
|
40
|
+
`60606e56da5570ff2843211e89d8ed6ddb1cde5a` passed with the existing tracked
|
|
41
|
+
assets; build admission deferral alone did not establish stale bundles. The
|
|
42
|
+
required gate continued into the full suite. It then reported two registry-guard
|
|
43
|
+
failures for the kind-specific LocalPeer factory in generic `src/local/` and was
|
|
44
|
+
stopped (exit 130); its owned container was observed absent. The implementation
|
|
45
|
+
moves that factory to `src/adapters/local-probe.ts`, preserving the empty
|
|
46
|
+
registry baseline and every assertion. Final-head validation remains separately
|
|
47
|
+
reported in the PR.
|
|
48
|
+
|
|
49
|
+
The focused set covers T1 lifecycle/recovery/control, complete request parity,
|
|
50
|
+
role input separation, source/tree/binary binding, compound model/file budgets,
|
|
51
|
+
post-approval currentness, observer exclusion and existing LocalPeer/tool/path/
|
|
52
|
+
OmniRoute behavior. The final committed-head changed gate and hosted CI are
|
|
53
|
+
reported separately in the implementation PR; this record does not replace them.
|
|
54
|
+
|
|
55
|
+
## Local macOS confinement attempt
|
|
56
|
+
|
|
57
|
+
The three focused suites ran under fresh resource admission, pinned Bun 1.4.2
|
|
58
|
+
and an isolated HOME/environment at
|
|
59
|
+
`3752a4013feb9e2bb5e44ea990cf21fd399a20cf`.
|
|
60
|
+
|
|
61
|
+
Observed: **50 pass, 1 skip, 7 fail**. All five role canaries, the default real
|
|
62
|
+
profile plus fake-model integration and the real-proof cleanup case failed the
|
|
63
|
+
first NC positive control. The default integration observed zero fake model
|
|
64
|
+
calls before the refusal. No native confinement or successful model execution
|
|
65
|
+
is established by this attempt.
|
|
66
|
+
|
|
67
|
+
Subsequent bounded private diagnostics at
|
|
68
|
+
`e612679bc1c9d7f0e39e3e2c6c943b86912d5832` identify the owned NC child as
|
|
69
|
+
`SIGABRT`, with quiescent process cleanup. Its same-PID OS crash record places
|
|
70
|
+
failure in dyld `ignition_halt` / `CacheFinder` / `ProcessConfig`, before program
|
|
71
|
+
startup; the reported termination namespace is `0x23`, code `2`. These fields
|
|
72
|
+
identify the observed startup stage, not the denied resource or root cause.
|
|
73
|
+
|
|
74
|
+
A separate isolated host diagnostic, `sandbox-exec` with an allow-default
|
|
75
|
+
profile running only system `true`, exited 0. It is neither the lane profile,
|
|
76
|
+
a negative-boundary test nor a fallback, and grants no probe qualification.
|
|
77
|
+
|
|
78
|
+
No file, Mach, network or system-data permission was added based on the abort.
|
|
79
|
+
No failing native assertion was removed or skipped. The default adapter refuses
|
|
80
|
+
before model handoff when its actual proof is unavailable.
|
|
81
|
+
|
|
82
|
+
A later bounded historical unified-log read used the kernel Sandbox/deny
|
|
83
|
+
predicate around the owned NC lifetime. It returned no matching denial, so the
|
|
84
|
+
resource remains unknown. A requested fresh logger-plus-canary attempt was
|
|
85
|
+
deferred by resource admission (exit 75, memory pressure warning), before the
|
|
86
|
+
logger or canary started. No permission was inferred from that empty read.
|
|
87
|
+
|
|
88
|
+
## Review corrections
|
|
89
|
+
|
|
90
|
+
Review of `d81db5b7cc7437f60716e00d8d7d318381b74e2d` found three source issues
|
|
91
|
+
that its Linux gate did not establish away: non-canonical temporary-directory
|
|
92
|
+
parents could refuse admitted writes; the frozen token reservation did not
|
|
93
|
+
check each later call's own frame; and private tool errors hid their cause and
|
|
94
|
+
recovery step. The correction keeps ordinary paths unchanged and adds an alias
|
|
95
|
+
write case, a second-call frame-bound case and typed logical refusal cases.
|
|
96
|
+
Results for the corrected head are reported separately in the PR.
|
|
97
|
+
|
|
98
|
+
## Native confinement root cause (macOS 27.0.1, local)
|
|
99
|
+
|
|
100
|
+
The "exact denied resource is unknown" statements above were written before this
|
|
101
|
+
bisection and stay as the record of that attempt. The cause is now identified,
|
|
102
|
+
by plain `sandbox-exec` runs and by the unchanged canaries; no assertion was
|
|
103
|
+
removed, skipped or loosened.
|
|
104
|
+
|
|
105
|
+
1. **Root directory node.** `(deny file-read-data ...)` without `(literal "/")`
|
|
106
|
+
in the allowlist aborts every program at dyld startup (`nc`, `sh` and `cat`
|
|
107
|
+
all exit 134). Hosted macOS run 42967909894 shows the same abort. dyld reads
|
|
108
|
+
the root directory node's data at every process start. A `literal` matches that
|
|
109
|
+
one node, not its children.
|
|
110
|
+
2. **The `/bin/sh` stub.** With (1) fixed, the lane script still fails, now at
|
|
111
|
+
its own `sh -c`: on this macOS `/bin/sh` re-execs `/bin/bash` as its variant
|
|
112
|
+
(`Failed to exec /bin/bash as variant for /bin/sh`) and reads the variant
|
|
113
|
+
selector `/private/var/select/sh`. The lane needed `/bin/bash` on the
|
|
114
|
+
`process-exec` allowlist and the selector as one data and traversal literal.
|
|
115
|
+
Allowing `/bin/bash` alone, or the selector's metadata alone, still fails.
|
|
116
|
+
|
|
117
|
+
With both, the unchanged canaries pass locally: all five role canaries, the
|
|
118
|
+
known-quiescent cleanup case and the default real-confinement plus fake-model
|
|
119
|
+
lifecycle (63 pass, 1 skip, 0 fail across the sandbox, local-worker and
|
|
120
|
+
input-matrix suites).
|
|
121
|
+
|
|
122
|
+
What the change widens, and what it does not. The selector `/private/var/select/sh`
|
|
123
|
+
is now **readable** under the lane profile (that is the grant); it is a system
|
|
124
|
+
symlink to `/bin/bash` and holds no operator data. Its siblings stay denied:
|
|
125
|
+
`developer_dir`, `X11` and the directory itself all refuse a read. An earlier
|
|
126
|
+
draft of this note said the selector's bytes were denied; that was a measurement
|
|
127
|
+
artifact (the read failed on writing to stdout) and is corrected here.
|
|
128
|
+
|
|
129
|
+
The exact generated profile, run through `sandbox-exec` as `/bin/sh`, still denies
|
|
130
|
+
reading a file outside the workspace, `/etc/hosts`, the person's home files and
|
|
131
|
+
`/Users`; denies executing `python3`, `curl` and `env`; denies a loopback
|
|
132
|
+
connection; and denies a write outside the workspace. `/bin/sh` on macOS is the
|
|
133
|
+
bash variant stub, so the `/bin/bash` exec grant lets the lane run nothing `sh`
|
|
134
|
+
could not. Probe tool dispatch refuses `bash` and `git` before any command
|
|
135
|
+
(existing negative test), so no probe tool runs a command at all.
|
|
136
|
+
|
|
137
|
+
## Remaining evidence
|
|
138
|
+
|
|
139
|
+
- Local real-profile confinement now passes the unchanged canaries after the root-node and `/bin/sh` stub corrections above; that is one macOS 27.0.1 machine, not the
|
|
140
|
+
hosted gate. The earlier "unknown" statements describe the attempt before the bisection.
|
|
141
|
+
- Hosted macOS CI must run the unchanged positive/negative canaries and default
|
|
142
|
+
real-profile/fake-model integration. Linux refusal and fake fixtures cannot
|
|
143
|
+
substitute for that gate. A recurring hosted failure requires investigation.
|
|
144
|
+
- Real provider/model/worker behavior, measured gains and the separately
|
|
145
|
+
authorized live leg remain unrun. T3 receipt collection, reconciliation and
|
|
146
|
+
retained-output cleanup remain separate work.
|
|
147
|
+
|
|
148
|
+
Private evidence is retained at workspace-relative
|
|
149
|
+
`scratchpad/temp/task824/resume-20261111/`: `core-preflight.log`,
|
|
150
|
+
`source-preflight.log`, `source-preflight-typed.log`, `native-source.log`,
|
|
151
|
+
`native-control-owned.log`, `owned-crash.json`, `owned-native-log.txt` and
|
|
152
|
+
`native-runtime-control.json`. Raw profiles, physical workspace/home paths and
|
|
153
|
+
system report identity fields are not copied into this public record.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Guidance probe T3 qualification
|
|
2
|
+
|
|
3
|
+
Date: 2026-11-11. Refs #1226. This is a human verification record for host-sealed
|
|
4
|
+
receipts, the outcome denominator, crash reconcile and owned-output prune. It is not
|
|
5
|
+
a live trial and no real model, native session or account was used.
|
|
6
|
+
|
|
7
|
+
## Scope and authorization
|
|
8
|
+
|
|
9
|
+
T3 adds a private `guidance_probe_receipts` table, `sealReceipt`, `settleAndSeal`,
|
|
10
|
+
`receipts`, `outcome`, `reconcile`, `previewPrune` and `prune` to `GuidanceProbeStore`, pure
|
|
11
|
+
receipt, comparability and retention types in `guidance-probes.ts`, and output
|
|
12
|
+
collection and owned removal in `src/local/probe-workspace.ts`. The adapter harvests
|
|
13
|
+
the declared output after the confinement stop reported quiescence and reports the
|
|
14
|
+
measurement on the observation; the fixture host samples `startedAt` and settles and
|
|
15
|
+
seals in one transaction. The daemon calls `reconcile` at start and at the release of a
|
|
16
|
+
held recovery.
|
|
17
|
+
|
|
18
|
+
No CLI verb, wire operation, daemon runner, config key or live launch is added, and
|
|
19
|
+
nothing selects the constructor-only adapter. Public `show` keeps only `comparable`,
|
|
20
|
+
now the older expression AND the sealed-receipt verdict, so it can only get stricter.
|
|
21
|
+
|
|
22
|
+
Fixtures and fakes are source evidence. They do not prove OS confinement, provider
|
|
23
|
+
behavior, sampling control or model quality. The live trial stays unapproved (T4).
|
|
24
|
+
|
|
25
|
+
## Contract points and the check that observes each
|
|
26
|
+
|
|
27
|
+
| Point | Check |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| Receipt is host computed; a caller can ask for a success but not force one | `test/guidance-probe-receipts-store.test.ts` sealing cases: any gap in served model, teardown, usage, coverage or output downgrades to `unknown` |
|
|
30
|
+
| Fingerprints are the host's own, never the declaration's (F1) | a changed host fingerprint is recorded and yields `input_drift`; a host that could not read them records `null` (unverified coverage); matching ones stay comparable |
|
|
31
|
+
| Tokens are this session's and a replay is stable (F2) | per-session `tokensObserved` is not the experiment total; an identical replay after a later session ran, or after a later cancel, returns the stored receipt and latches nothing; a changed measured fact still latches |
|
|
32
|
+
| What the host cannot vouch for is `unknown` first (F3) | a crash after a cancel request, or with an elapsed hold, reconciles as `unknown`; a session settled under a cancel is `unknown` unverified and `cancelled` verified; `unavailable` only for a session that never called the model |
|
|
33
|
+
| The walk limit never skips silently (F4) | a 9-level output path is excluded as `over_depth`; scratch past the limit is unmeasured and counts as over the cap, in the cleanup and adapter tests |
|
|
34
|
+
| Output is read only after quiescence, by descriptor (F5) | the adapter fixture's stop plays a straggler's last write and only a harvest after the stop sees it; a FIFO or symlink swapped in after the `lstat` is excluded without blocking; retention copies the bytes already read and refuses bytes that do not match the manifest |
|
|
35
|
+
| Settlement and receipt are one transaction (F6) | every session run through the host has its receipt, even when the adapter measured nothing; a seal that fails rolls the settlement back; an adapter failure is settled `unknown` with a receipt |
|
|
36
|
+
| Reconcile is wired (F7) | `test/guidance-probes-daemon.test.ts`: a session a dead process left `reserved` is `unknown_held` with an `unknown` receipt after start, once, with no launch; `test/guidance-probes-recovery.test.ts`: a held recovery target leaves it untouched until release, then reconciles |
|
|
37
|
+
| A held experiment expires after the cancel (F8) | not prunable while held, prunable after `cancelIntent`, `usageUnknown` alone never blocks, a receipt is never deleted |
|
|
38
|
+
| Hydration checks the session row (N1) | a receipt revision that differs from its session, or a state that session could not produce, is storage corruption |
|
|
39
|
+
| A truly read-only open (N2) | a Store opened read-only reads receipts and outcome and leaves every row byte-identical; `reconcile` through it fails |
|
|
40
|
+
| Expiry is the Store's clock (N3) | `previewPrune` and `prune` take no time; moving the fixture clock moves expiry |
|
|
41
|
+
| A conflicting replay latches the observation hold and the refusal is raised after the commit | Store replay-conflict case reads the persisted hold after the throw |
|
|
42
|
+
| The denominator counts every reserved slot; a missing or reconciled receipt is `unknown`, never `failed` | `test/guidance-probe-receipts.test.ts` counts and the control test for a session the host could not witness |
|
|
43
|
+
| Comparability reasons and counts stay private; public `show` carries only the flag | `test/guidance-probes-control.test.ts` asserts the reasons and `counts` are absent from the public JSON |
|
|
44
|
+
| The 1 GiB cap holds at runtime | adapter tests: output past the cap is excluded, never hashed or retained; scratch past the cap carries `storage_over_cap` |
|
|
45
|
+
| Prune acts only after `expiresAt`, only with the current plan digest, and only on files whose recorded identity (device, inode, change time) still matches | Store prune cases and `test/guidance-probe-cleanup.test.ts` |
|
|
46
|
+
| A slot is marked pruned only when nothing was kept | mixed-slot case where one file is swapped between preview and prune |
|
|
47
|
+
| Integrity covers receipts; an orphan receipt row fails recovery | Store integrity cases |
|
|
48
|
+
| Retained output always has an owner (R1) | `test/guidance-probe-retention-ownership.test.ts`, real adapter + Store + fixture host: a fallback model, a failed seal and a lost clock each leave no retained directory and the port's `discardRetained` ran once; a matching model keeps its directory owned by the receipt row; a forged record with the real identity reaches no delete |
|
|
49
|
+
| The receipt byte bound holds the largest valid manifest (R2) | `test/guidance-probe-receipts.test.ts` and the Store test: 64 entries with the longest names, and with 64 exclusions, round-trip within the derived `receiptBytes`; a seal of a record hydration would refuse is refused whole, never stored |
|
|
50
|
+
| Both walks are bounded in entries (R3) | `test/guidance-probe-cleanup.test.ts`: scratch past the entry cap is unmeasured, output past it is excluded whole as `over_walk_cap` with nothing hashed or retained, the two walks have separate budgets, a directory far over the cap is abandoned in bounded time; an over-long name is `invalid_name` under a digest label, never raw |
|
|
51
|
+
| Reconcile visits every experiment and names its failures (N4) | Store test: a corrupt experiment that sorts first is reported with its key and the next one is still reconciled; with no callback the failure is thrown only after every key was tried |
|
|
52
|
+
| Integrity cross-checks receipts against sessions (N5) | an edited generation, or a success for a session that did not close, fails the recovery integrity pass |
|
|
53
|
+
| An in-flight session blocks a prune on its own (N6) | a cancelled (otherwise prunable) experiment with a running session is `experiment_active` and removes nothing |
|
|
54
|
+
|
|
55
|
+
Mutation checks (each reverted afterwards, final tree equals the tested tree). Each of
|
|
56
|
+
these changes makes at least one test fail: copying fingerprints from the manifest,
|
|
57
|
+
tokens from the experiment total, the cause read from live cancel state, unavailable
|
|
58
|
+
after a model call, teardown not decided first, the seal outside the settlement
|
|
59
|
+
transaction, a held experiment blocking forever, `usageUnknown` blocking, an unchecked
|
|
60
|
+
revision, expiry ignoring the clock, harvest before the stop, depth skipped silently,
|
|
61
|
+
scratch unmeasured ignored, retention re-reading the path, the daemon never calling
|
|
62
|
+
reconcile, the recovery release never calling it, and reconciling while a recovery is
|
|
63
|
+
held. Mutation checks for the second review round (each reverted): the host never discarding
|
|
64
|
+
unowned output, the adapter trusting any record it is handed, the old 16384 receipt bound,
|
|
65
|
+
no entry cap in either walk, reconcile stopping at the first failure, integrity reading
|
|
66
|
+
receipts without the session cross-check, and prune without its in-flight guard. Each
|
|
67
|
+
fails at least one test. Two things are not mutation-tested and said so: dropping `O_NONBLOCK` is covered
|
|
68
|
+
by a test with a 20 s bound that hung, so a regression there fails by timeout rather than
|
|
69
|
+
by assertion; and the harvest's own `closed` guard is defence in depth behind the throw of
|
|
70
|
+
a failed close, so removing it changes no observable behaviour. An earlier pass found the
|
|
71
|
+
teardown ordering test too weak (it survived the mutation) and it was rewritten until the
|
|
72
|
+
mutation failed.
|
|
73
|
+
|
|
74
|
+
## Locks
|
|
75
|
+
|
|
76
|
+
No `GuidanceProbeStore` file lock is used. Receipts and prune plans run in the Store's
|
|
77
|
+
SQLite transaction, so no stale-holder recovery exists to test. If a file lock is ever
|
|
78
|
+
needed it follows `SourceRegistry.locked` with a two-recoverer test (#329).
|
|
79
|
+
|
|
80
|
+
## Gates
|
|
81
|
+
|
|
82
|
+
Typecheck, the six probe test files, the docs check and the hardcoded-values inventory
|
|
83
|
+
were run locally and report in the PR. `scripts/check.sh --changed` runs on dgx02 at
|
|
84
|
+
the committed head and is reported with the head SHA in the PR and `hub_task_done`.
|
|
85
|
+
Hosted CI is the gate for the full suite.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Guidance probe T4 qualification (fake-provider leg)
|
|
2
|
+
|
|
3
|
+
Date: 2026-11-11. Refs #1226. This is a human verification record for the producer receipt read, the Guidance panel's probe status and the focused fake-provider
|
|
4
|
+
check gate. It is not a live trial: no real model, worker, native session or account was used, and **AC7's authorized real local-worker trial was not run and
|
|
5
|
+
stays open**.
|
|
6
|
+
|
|
7
|
+
## Scope and authorization
|
|
8
|
+
|
|
9
|
+
T4 (the approved part) adds a read-only `Tasks.guidanceProbeReceipts`, the control op `guidance_probe_receipts` with its own feature flag and conductor label, the CLI
|
|
10
|
+
`ahub guidance probe receipts --id HASH [--json]`, a producer-only `guidanceProbe` read port on `projectConsole`, a `probe` read in the existing Guidance panel, the
|
|
11
|
+
shared text `guidanceProbeStatusLines`, and four test files plus a shared fixture helper. It adds no runner, config key, write, prune verb or model call, and nothing
|
|
12
|
+
selects the constructor-only local adapter (the gate test reads the daemon, CLI, plugin, manager, tasks and every other adapter and fails if one names it).
|
|
13
|
+
|
|
14
|
+
Fixtures and fakes are source evidence. They do not prove OS confinement, provider behavior, sampling control, effective guidance delivery or model quality.
|
|
15
|
+
|
|
16
|
+
## Contract points and the check that observes each
|
|
17
|
+
|
|
18
|
+
| Point | Check |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| A real fake-provider run exports its sealed receipts, the denominator and no path | `test/guidance-probe-status.test.ts`: two witnessed arms export two succeeded receipts bound to their slots; the JSON names no workspace or retention location |
|
|
21
|
+
| Every reserved slot is in the denominator (AC4) | the same file: failed, timed out and cancelled arms count and keep the pair incomparable; a run the host could not witness is `unknown`; a slot that never started is `planned`, not a success |
|
|
22
|
+
| A fallback model or a drifted runtime never rounds to comparable (AC4) | status and gate files: a fallback served model with a drifted runtime is not comparable and has no success |
|
|
23
|
+
| Unknown stays unknown | a usage gap exports `usage_unknown` and prints `Token usage: unknown`, never zero |
|
|
24
|
+
| The comparable flag is the stricter of two sources | the export's flag equals the public status AND the sealed verdict; the parser refuses a comparable flag beside a reason or above a refusing status |
|
|
25
|
+
| Tamper refuses the whole read (AC6) | an edited receipt body, a receipt moved to another slot (swapped through a temporary id), and an edited export (state, digest, counts, slot id, an extra field, an unknown top-level field) never parse |
|
|
26
|
+
| A model-written name is screened | an output path under a denied glob withholds that receipt to its digest, the slot and denominator still count it; a label with a bidi override is stripped in the text |
|
|
27
|
+
| A location is a state, never a path | retained and pruned slots export `retained` and `pruned` and nothing names the directory |
|
|
28
|
+
| Read-only and bounded | three repeated reads change no row, launch nothing, send no message and make no PII screen or lineage call; a read-only Store serves the inputs |
|
|
29
|
+
| Authority | only the person or the current configured conductor reads; a stale session, a private turn, a review-only context and a non-operational conductor refuse |
|
|
30
|
+
| The control op, label, feature and CLI form are closed | `test/guidance-probe-status.test.ts`: `guidance probe receipts` is in `CONDUCTOR_DAEMON_OPERATIONS`, classified `conductor`, labelled from the wire op; the parser refuses a missing id, a short id, `--revision` and a duplicate `--id` |
|
|
31
|
+
| The provider forwards one field and checks the instance and feature | `test/guidance-probe-console.test.ts`: the scripted hub receives exactly `{ t, id, rid }` after a pinned console hello; forged fields, a bad id, an unknown project, a replaced instance and an older hub send nothing |
|
|
32
|
+
| A reply for another probe, a tampered export or a missed deadline shows nothing of itself | same file: the provider and the generated panel both refuse and carry no text, no `probe` and no source error beyond the hub's own bounded sentence |
|
|
33
|
+
| The generated panel is literal, current and effect-free | same file: late replies after a changed id, a hidden or destroyed panel cannot replace the view; no `host.action`, network, timer or HTML sink exists in the generated source |
|
|
34
|
+
| The real CLI prints the shared text, verified JSON, and refuses before sending | `test/guidance-probe-cli.test.ts`: a real process against a scripted hub; default text equals the shared lines, `--json` equals the verified export, an older hub is refused with an upgrade message and no request, a tampered export prints nothing and exits 1 |
|
|
35
|
+
| The gate runs the whole fake lifecycle (AC7 fake leg) | `test/guidance-probe-gate.test.ts`: register, baseline and candidate share every non-guidance byte (AC1), one attempt and call per slot (AC3), complete denominator and the stated incomparable reason (AC4), host-sealed bound receipts (AC4, AC6), no ordinary observer reached and public task bytes unchanged (AC5), a mid-run restart is `unknown_held` and never relaunched (AC3, AC6) |
|
|
36
|
+
| No path to a live probe | the gate asserts a start refuses before any row is written when no runner is configured, and that no source file selects `createGuidanceProbeLocalAdapter` |
|
|
37
|
+
|
|
38
|
+
## Mutation checks
|
|
39
|
+
|
|
40
|
+
Each of these changes was made, shown to fail at least one test, and reverted (the final tree equals the tested tree).
|
|
41
|
+
|
|
42
|
+
Status file: the privacy screen removed; the export leaking a retained location; a comparable flag not combined with the public status (see the finding below);
|
|
43
|
+
receipts read without the Store's cross-check; the parser skipping the receipt digest; the text printing the label raw; token usage printed as a number instead of
|
|
44
|
+
`unknown`. Console file: the manager forwarding any field; the manager skipping the probe id match; skipping the feature check; skipping the export parse; the panel
|
|
45
|
+
ignoring the returned probe id; the panel without its stale-read guard; the panel showing the whole reply beside a refusal. Gate file: the daemon naming the local
|
|
46
|
+
adapter; reconcile recording nothing; reconcile recording the dead session as a known failure.
|
|
47
|
+
|
|
48
|
+
One mutation survived its first test and is stated here instead of hidden. Removing the "public AND sealed" combination did not fail the first version of the
|
|
49
|
+
stricter-only test, because on real rows both verdicts read the same session authoring and agree: a sealed-only pass beside a refusing public status cannot be
|
|
50
|
+
produced from real data. The test was rewritten to what is observable (the shared reason, the counts, and the parser refusing a comparable flag that outranks either
|
|
51
|
+
source), and the combination in `Tasks` stays as defence in depth that this change does not claim to have a failing test for.
|
|
52
|
+
|
|
53
|
+
## Gates
|
|
54
|
+
|
|
55
|
+
Typecheck, the docs check, the hardcoded-values inventory, the bundle check, the four new test files and the existing probe, console and CLI-guard files were run on
|
|
56
|
+
dgx02 at the committed head and are reported with the head SHA in the PR and `hub_task_done`. Hosted CI is the gate for the full suite. The unsharded full suite
|
|
57
|
+
on dgx02 can stop at its hang-watch bound on a loaded host; that is recorded as not verified, never as a pass.
|
|
58
|
+
|
|
59
|
+
## Known gaps, not blocking
|
|
60
|
+
|
|
61
|
+
- AC7's authorized real local-worker trial, and with it real isolation evidence and effective guidance delivery to a model, is not run and is open on #1226.
|
|
62
|
+
- A sealed-only pass beside a refusing public status is unreachable from real rows, so the public-and-sealed combination in the export has no failing test of its own.
|
|
63
|
+
- The CLI refusal line keeps printable Unicode such as a bidi override, because it goes through the existing `terminalText`; the text this change builds strips
|
|
64
|
+
format characters. Tightening that shared helper is outside this change.
|
|
65
|
+
- Installed hub, native peer and account behaviour are unverified: the export is active only after release and a hub upgrade.
|