@staix/agent-hub 0.50.0 → 0.51.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 +16 -0
- package/README.md +1 -1
- package/docs/adding-an-ai-tool.md +2 -2
- package/docs/agent-notes/README.md +1 -0
- package/docs/agent-notes/adapters.md +3 -3
- package/docs/agent-notes/daemon.md +1 -1
- package/docs/agent-notes/local-worker.md +3 -3
- package/docs/agent-notes/tasks.md +5 -1
- package/docs/design/adapters.md +17 -0
- package/docs/design/cli-output-inventory.md +22 -17
- package/docs/design/roadmap.md +1 -1
- package/docs/design/task-board.md +34 -0
- package/docs/dogfood.md +7 -3
- package/docs/operations.md +49 -3
- package/docs/quickstart.md +18 -1
- package/docs/roadmap.json +20 -20
- package/docs/roadmap.md +2 -2
- package/docs/sdlc.md +3 -2
- package/docs/specs/2026-09-19-agent-hub-design.md +1 -0
- package/docs/verification/2026-11-29-agy-1.5.20.md +33 -0
- package/docs/verification/2026-11-29-claude-profile-hook.md +12 -0
- package/docs/verification/2026-11-29-idle-daemon-footprint.md +75 -0
- package/docs/verification/2026-11-29-kimi-281-reviewer-compat.md +38 -0
- package/docs/verification/2026-11-29-kimi-tui-281.md +12 -0
- package/docs/verification/2026-11-30-0.51.0.md +91 -0
- package/docs/verification/2026-11-30-account-switch-1806.md +445 -0
- package/docs/verified.json +31 -27
- package/package.json +1 -1
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +1329 -24654
- package/plugins/agent-hub/server.js +612 -413
- package/scripts/check-docs.mjs +1 -1
- package/src/adapters/acp.ts +13 -13
- package/src/adapters/agy/definition.ts +2 -2
- package/src/adapters/agy/entry.ts +2 -0
- package/src/adapters/claude-channel-evidence.ts +7 -3
- package/src/adapters/compat.ts +4 -3
- package/src/adapters/definitions/builtin-metadata.ts +2 -2
- package/src/adapters/definitions/native-cli-claude-launch.ts +3 -1
- package/src/adapters/definitions/native-cli-entry-claude.ts +17 -2
- package/src/adapters/definitions/native-cli-entry-codex.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-jcode.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-kimi.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-pi.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-qwen.ts +2 -0
- package/src/adapters/definitions/native-cli-entry-types.ts +3 -1
- package/src/adapters/definitions/native-cli-jcode-home-init.ts +1 -1
- package/src/adapters/definitions/native-cli-preview-common.ts +1 -1
- package/src/adapters/definitions/native-config-defaults.ts +1 -1
- package/src/adapters/jcode.ts +16 -0
- package/src/adapters/native-facts-hooks.ts +12 -0
- package/src/cli/autonomy-offline.ts +1 -1
- package/src/cli/bench.ts +1 -1
- package/src/cli/claude-profile-hook.ts +31 -11
- package/src/cli/commands/releases.ts +82 -0
- package/src/cli/conductor-recovery.ts +1 -1
- package/src/cli/facts-hook.ts +11 -4
- package/src/cli/help.ts +8 -6
- package/src/cli/identity.ts +5 -1
- package/src/cli/init-prompt.ts +1 -1
- package/src/cli/init-settings.ts +4 -35
- package/src/cli/init.ts +1 -1
- package/src/cli/json-text-spans.ts +57 -0
- package/src/cli/launch-check.ts +157 -0
- package/src/cli/launch.ts +19 -1
- package/src/cli/main.ts +44 -3
- package/src/cli/memory.ts +1 -1
- package/src/cli/output.ts +14 -1
- package/src/cli/preview.ts +1 -1
- package/src/cli/recovery-launch.ts +1 -1
- package/src/cli/setup-homes.ts +2 -2
- package/src/cli/start-agents-run.ts +85 -7
- package/src/cli/start-check.ts +28 -0
- package/src/cli/upgrade-runtime.ts +1 -1
- package/src/cli/warn-line.ts +1 -1
- package/src/hub/ci-watch.ts +311 -79
- package/src/hub/config-apply.ts +1 -1
- package/src/hub/config.ts +518 -0
- package/src/hub/control-client.ts +1 -1
- package/src/hub/daemon.ts +76 -513
- package/src/hub/delivery-public.ts +11 -0
- package/src/hub/hub-check.ts +125 -0
- package/src/hub/path-policy.ts +1 -1
- package/src/hub/permission-mode.ts +3 -40
- package/src/hub/permission-paths.ts +41 -0
- package/src/hub/recovery-policy.ts +1 -1
- package/src/hub/releases-inventory.ts +198 -0
- package/src/hub/runtime-capture-prune.ts +25 -3
- package/src/hub/runtime-prune-health.ts +8 -1
- package/src/hub/sdlc-release-authorization.ts +42 -21
- package/src/hub/sdlc-release-diagnostics.ts +5 -0
- package/src/hub/sdlc-release-policy.ts +21 -7
- package/src/hub/sdlc-release.ts +80 -20
- package/src/hub/sdlc.ts +7 -3
- package/src/hub/tasks.ts +138 -36
- package/src/ui/plugin.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ Issue and pull request numbers in the entries for 0.7.7 and earlier refer to the
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.51.0
|
|
8
|
+
|
|
9
|
+
- Release N-1 for 0.51.x is published 0.50.0, which declares agent-mem `>=0.42.0 <1.0.0`; its fixture lock pins the 0.43.0 that the 0.50.0 release resolved (with cli-output 0.1.4 and mcp-stdio 0.5.0), with control protocol 17 (descriptor floor 16). Wire and protocol, file and format floors, CLI and MCP tools stay compatible both ways, with one exception: a 0.50.0 hub refuses the new optional `ci_shard_retries` field in `.agenthub/sdlc.toml` at startup, so leave it unset until every hub that reads the file runs 0.51.0. No capability or format ceiling is raised. The N-1 fixture and matrix pin that package; the separate protocol-16 fixture stays at 0.25.0.
|
|
10
|
+
- Approving a dependency now tells the owner of each owned dependent with nothing left to wait for (`ready: hub task N approved; nothing left to wait for`), and the planner notice lists such tasks as `owned_ready` (Refs #1801).
|
|
11
|
+
- Report Claude channel argument failures before launch, with a retry command (Refs #1798).
|
|
12
|
+
- Restore channel push for managed Claude launches by keeping the development-channel flag ahead of the generated session ID (Refs #1794).
|
|
13
|
+
- Verify Kimi Code 2.8.1 for fresh reviewers on macOS arm64. Interactive TUI completion stays verified at 2.5.2 (Refs #888).
|
|
14
|
+
- Release authorization can use a committed project documentation checker and bind it to the candidate receipt (Refs #1775).
|
|
15
|
+
- Add opt-in automatic retries for one failed required CI shard on ready PRs. Retry counts are tied to the PR head and survive hub restarts (Refs #1801).
|
|
16
|
+
- Notify owners when draft CI finishes and tell reviewers and conductors when an approved PR is ready to merge. The same watcher reports conflicts and missing runs (Refs #1801).
|
|
17
|
+
- Claude profile hooks installed by `ahub setup` skip Bun outside hub sessions and refresh older hook commands in place (Refs #1783).
|
|
18
|
+
- Every `ahub <agent>` wrapper prints a `Hub check` before the agent starts when stderr is a terminal (nothing prints, and `ahub claude` makes no connection for it, when stderr is redirected: `ahub status` shows the same state), and Claude shows it again when the session starts, only once its own channel is verified as this session's (Refs #1798).
|
|
19
|
+
- `ahub status` and `--json` carry one `hubCheck` (version, control port and each peer's expected and observed link, evidence, queued count and next step), a peer whose link is weaker than expected is an Attention item, `ahub up` prints a `Hub check` block after a bounded `--wait`, and a refused jcode hello is shown only while the owned launch is live (Refs #1798).
|
|
20
|
+
- `ahub releases list` shows every entry under the hub home's `releases` directory with its kind, version, digest, size and what refers to it, and `ahub releases prune` previews, then with `--apply` removes, coordinator sources and registry installs that no project `runtime.json`, recovery operation or live process refers to. An unreadable reference keeps the entry, and unknown layouts and symlinks are never removed (Refs #1781).
|
|
21
|
+
- `ahub status` no longer reports a live owned jcode launch as detached when a tools hello is refused (it shows the refused hello), and `ahub queue show` prints the stored failure reason (the public stub for a private delivery) while ACP failure paths record a specific cause (Refs #1795).
|
|
22
|
+
|
|
7
23
|
## 0.50.0
|
|
8
24
|
|
|
9
25
|
- Release N-1 for 0.50.x is published 0.49.1, which declares agent-mem `>=0.42.0 <1.0.0`; its fixture lock pins the 0.42.0 that the 0.49.1 release resolved (with cli-output 0.1.4 and mcp-stdio 0.4.0), with control protocol 17 (descriptor floor 16). Wire and protocol, file and format floors, CLI and MCP tools stay compatible both ways; no capability or format ceiling is raised. The N-1 fixture and matrix pin that package; the separate protocol-16 fixture stays at 0.25.0.
|
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Code, Codex, Kimi Code, Pi and a hub-owned local worker (plus Qwen Code, Jcode a
|
|
|
5
5
|
Antigravity if you want them) share a message bus, a task board and a memory, each
|
|
6
6
|
connected through its own native interface.
|
|
7
7
|
|
|
8
|
-
Status: 0.
|
|
8
|
+
Status: 0.51.0, control protocol 17 (accepts 16). Bun + TypeScript, one loopback daemon per
|
|
9
9
|
project. Site: [agent-hub.staix.net](https://agent-hub.staix.net).
|
|
10
10
|
|
|
11
11
|
Inspect bounded task and attempt metadata with `ahub lineage show`; admit external
|
|
@@ -13,7 +13,7 @@ Under **Adapter API 1** (issue #451), every tool is integrated as an `AdapterDef
|
|
|
13
13
|
3. **Strict Conformance**: Every builtin adapter must run the conformance test kit (`test/conformance/`). Unsupported legs must provide explicit, documented reasons rather than silent test skips. (A4 exports the same callable contracts for external package CI.)
|
|
14
14
|
4. **Trust & Security Boundaries**:
|
|
15
15
|
- **On-prem vs. Cloud**: `trust.onPrem` controls whether private/PII tasks may be routed to the agent. A cloud agent (`trust.onPrem: false`) never receives PII task text or memory entries.
|
|
16
|
-
- **Path Protection**: Any workspace configuration directory owned by the agent (e.g., `.agents/`, `.codex/`) must be listed in `AGENT_CONFIG_SEGMENTS` (`src/hub/permission-
|
|
16
|
+
- **Path Protection**: Any workspace configuration directory owned by the agent (e.g., `.agents/`, `.codex/`) must be listed in `AGENT_CONFIG_SEGMENTS` (`src/hub/permission-paths.ts`) so agents cannot self-modify their own hooks or plugins.
|
|
17
17
|
- **Process Isolation**: Spawns must run in their own process groups and are stopped as a whole group by the hub.
|
|
18
18
|
|
|
19
19
|
---
|
|
@@ -242,7 +242,7 @@ When adding or updating an adapter, verify each item before opening a PR:
|
|
|
242
242
|
- [ ] **T0 Receipt Recorded**: Document native CLI version, observed hook payloads, and protocol outputs in `docs/verification/YYYY-MM-DD-<kind>-t0.md`.
|
|
243
243
|
- [ ] **Registered in ADAPTERS**: the definition is declared under `src/adapters/definitions/` (or its own directory) with explicit `displayName`, `family`, `transport`, `trust` and `projection`, and listed in `ADAPTERS` (`src/adapters/registry.ts`). The peer lists are derived from it. The hand-kept cross-release copies in `src/hub/peer-catalog.ts` and `src/hub/start-mode.ts` and the pinned tests listed in `docs/agent-notes/adapters.md` change with it, and the PR names them as expected test changes.
|
|
244
244
|
- [ ] **Hub skills host**: for a builtin kind that reads a user skill directory, add it to `SKILL_HOSTS` and `hostSkillDir` in `src/adapters/definitions/native-cli-skills.ts` and record the directory's source in `docs/agent-notes/adapters.md` ("Other hosts' user skill directories"); for one that reads none, add it to the exclusions in `test/skills-install.test.ts`, which fails while `SKILL_HOSTS` differs from `SUPPORTED_PEERS` minus claude and local.
|
|
245
|
-
- [ ] **Config Path Protection**: Agent configuration directories added to `AGENT_CONFIG_SEGMENTS` in `src/hub/permission-
|
|
245
|
+
- [ ] **Config Path Protection**: Agent configuration directories added to `AGENT_CONFIG_SEGMENTS` in `src/hub/permission-paths.ts`.
|
|
246
246
|
- [ ] **PII Safety Verified**: Cloud models have `trust.onPrem: false`; verify PII markers refuse routing to this peer.
|
|
247
247
|
- [ ] **Process Group Teardown**: Daemon-spawned processes use process groups and exit cleanly on stop.
|
|
248
248
|
- [ ] **Conformance Kit Passes**: `bun test test/conformance` passes with zero regressions and no silent skips.
|
|
@@ -122,6 +122,7 @@ revision preserves both behaviors; capture still uses its stricter turn fence.
|
|
|
122
122
|
|
|
123
123
|
## Changes
|
|
124
124
|
|
|
125
|
+
- 2026-11-30: #1801 starts draft CI observation when a PR head is recorded. A reviewer can record the same identity when the owner cannot see the lifecycle tool, without claiming a local result.
|
|
125
126
|
- 2026-11-15: #1447 T5 prepares dependencies from reviewed Git-base install inputs because validating a peer-writable manifest and later running it on the host leaves a race. Fixed readiness guidance does not turn an installer failure into failed acceptance. The localhost listener leg moved to a follow-up, and this slice keeps Pi's network profile unchanged.
|
|
126
127
|
- 2026-11-15: #1447 T4 reproduces a digest prepared before a task-move notice was queued. Conditional queue re-selection keeps that notice in the next host turn without changing durable ACKs; the later provider-prompt window remains unmeasured and open. Checkpoint ownership epochs prevent a pending notice from permitting former-owner summary effects.
|
|
127
128
|
- 2026-11-14: #1473 follows the #1328 cooperative direct-instruction precedent for one conductor-recorded question answer. Visible actor provenance avoids a second terminal step while a DB-only quote and unchanged person/private/self-answer boundaries keep the claim separate from blanket delegation or release consent.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Native adapters and spawned agents
|
|
2
2
|
|
|
3
|
-
Scope: the Codex, ACP and Pi adapters and the Pi extension (turn `generation` and `activity` events), peer turn state, approvals, and the agent processes the hub spawns and stops. Read before editing `src/adapters/`, `src/pi/`, `src/hub/peers.ts`, `src/hub/peer-activity.ts`, `src/hub/permission-mode.ts`, `src/hub/tool-refusal.ts`, `src/hub/action-enforce.ts`, `src/hub/permission-payload.ts`, `src/hub/claude-shell-wrapper.ts`, `src/hub/task-shell-command.ts`, `src/hub/task-shell-default.ts`, `src/hub/task-shell-proof.ts`, `src/hub/task-shell-sandbox.ts`, `src/cli/claude-shell-wrapper.ts`, `src/hub/child-process.ts`, `src/hub/lifecycle.ts` (shutdown deadline), `src/hub/start-mode.ts`, `src/hub/terminal-open.ts`, `src/memory/capture.ts` (session end), `src/hub/native-hook-launch.ts`, `src/hub/peer-catalog.ts`, the launcher-managed MCP entries (`src/cli/agy-mcp.ts`, `src/cli/kimi-mcp.ts`, `src/cli/jcode-mcp.ts`), `src/cli/configured-acp-entry.ts`, the version policy (`src/adapters/compat.ts`, `src/cli/agents.ts`) or the process-tree stop in `scripts/benchmarks/teardown.ts`, or before adding a native peer.
|
|
3
|
+
Scope: the Codex, ACP and Pi adapters and the Pi extension (turn `generation` and `activity` events), peer turn state, approvals, and the agent processes the hub spawns and stops. Read before editing `src/adapters/`, `src/pi/`, `src/hub/peers.ts`, `src/hub/peer-activity.ts`, `src/hub/permission-mode.ts`, `src/hub/permission-paths.ts`, `src/hub/tool-refusal.ts`, `src/hub/action-enforce.ts`, `src/hub/permission-payload.ts`, `src/hub/claude-shell-wrapper.ts`, `src/hub/task-shell-command.ts`, `src/hub/task-shell-default.ts`, `src/hub/task-shell-proof.ts`, `src/hub/task-shell-sandbox.ts`, `src/cli/claude-shell-wrapper.ts`, `src/hub/child-process.ts`, `src/hub/lifecycle.ts` (shutdown deadline), `src/hub/start-mode.ts`, `src/hub/terminal-open.ts`, `src/memory/capture.ts` (session end), `src/hub/native-hook-launch.ts`, `src/hub/peer-catalog.ts`, the launcher-managed MCP entries (`src/cli/agy-mcp.ts`, `src/cli/kimi-mcp.ts`, `src/cli/jcode-mcp.ts`), `src/cli/configured-acp-entry.ts`, the version policy (`src/adapters/compat.ts`, `src/cli/agents.ts`) or the process-tree stop in `scripts/benchmarks/teardown.ts`, or before adding a native peer.
|
|
4
4
|
|
|
5
5
|
- For conceptual architecture, definition fields, generic ACP config and the new-adapter review checklist, see [Adding an AI Tool](../adding-an-ai-tool.md). For definition interfaces, see [registry-types.ts](../../src/adapters/registry-types.ts).
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ Scope: the Codex, ACP and Pi adapters and the Pi extension (turn `generation` an
|
|
|
14
14
|
- Native branch ratchet (#625): `test/daemon-native-branches.test.ts` counts every call of a native class predicate (an `is*Peer` imported from an adapter module other than `registry.ts`) per enclosing function in `src/hub/daemon.ts` and `src/hub/claude-launch-proof.ts`, and the counts must equal `test/daemon-native-branches.json` (`predicate`, `function`, `count`, `reason`). A PR that adds, moves or removes such a call edits its row by hand with a concrete reason; never regenerate the table from a test. Bind a predicate alias with `const` only and never call one through a computed namespace key: the scan refuses both.
|
|
15
15
|
- Native proof state (`frontendProxy`, builtin `statusNotice`, `revertTurn` with `session.nativeRevert`, the Claude launch proof and terminal execution root) is read in the daemon only after `isFixedBuiltinDefinition(definitionOf(peer))`: a same-name foreign definition gets none of it. A product of a definition that is not a fixed builtin may not have a `frontendProxy`, `statusNotice` or `revertTurn` member at all, even undefined (`assertNativeProofPorts`, run by `createFromDefinition` and the conformance kit). Use `frontendProxyState` for the daemon proxy reads: absence keeps the generic path, present undefined refuses with `frontend proxy state unknown`. Keep approval policies and restoration debt inside CodexPeer. The remaining Codex `actionEnforcement`/`actionGated` predicate is intentional until a separately specified action-policy port; never add it to `FrontendProxyPort`.
|
|
16
16
|
- Adding a native peer: declare its `AdapterDefinition` under `src/adapters/definitions/` (or its own directory, as agy) and list it in `ADAPTERS` (`src/adapters/registry.ts`). `KNOWN_PEERS`, `OPTIONAL_PEERS`, `SUPPORTED_PEERS`, `START_MODE_PEERS` (a kind with both a TUI and a headless form), `ROLE_ORDER`, `HELP_ORDER` and `PLANNER_PEERS` are derived from it by `deriveAdapterLists`: set `optional`, `projection` (`roleRank`, `startRank`, `helpRank`, `plannerEligible`, `conductorEligible`, `reviewerEligible`; absent eligibility is false; a configured or external definition cannot) and, for an `ahub <kind>` launcher, `cli.entry`, `cli.usage`, `cli.preview` and `cli.startWords`, never a list edit (`builtinCliEntries(definitions)` projects the entries). The literal cross-release copies `KNOWN_PEERS` and `OPTIONAL_PEERS` in `src/hub/peer-catalog.ts` and `START_MODE_PEERS` in `src/hub/start-mode.ts` stay hand-kept for older coordinators: `test/registry-guard.test.ts` fails when one differs from the derived list. Adding a peer is the one change that updates their probe counts and `VENDORS` in `test/helpers/registry-inventory.ts` (`REGISTRY_COMPATIBILITY_PROBES`), the probe literal in `test/adapter-registry-a2.test.ts`, the `ADAPTERS` order in `test/adapter-registry.test.ts` and the literal in `test/adapter-catalog-a2.test.ts`; say so in the PR as an expected test change. `isSupportedPeer` answers from `ADAPTERS`, and for a declared instance from its kind's runtime definition unless the instance resolves to an unavailable reviewer variant; `isKnownPeer` and `defaultPeerRoles` answer from `definitionOf`; `STARTABLE_PEERS` reuses `SUPPORTED_PEERS`. Role eligibility (#1408) is read only through `roleEligibility` / `applyRoleCeiling` (`src/adapters/role-eligibility.ts`): a new kind changes the generated table in `docs/roles.md` (`renderEligibilityTable`; `test/roles-doc.test.ts` fails until the doc matches) and, when `conductorEligible`, the pinned conductor set in `test/conformance/conductor.test.ts`, and the conductor-start wording comes from `conductorStartText()` (`src/adapters/registry.ts`), never a text edit. It also adds the kind's `kinds` entry and its rows to `templates/presets/confirmation-matrix.json` (#999 T0): `test/confirmation-matrix.test.ts` fails without a tool-approval and a classed-action row per environment, and when the entry's forms, pull-only forms, conductor start or hub-mode fact differ from the definition. Add the same kind to `kinds` in `templates/presets/autonomous.json`, with a permission per form (`null` where the hub mode is `unmanaged`, or for `tui` under `unmanaged-in-tui`) and a start per environment: `test/autonomy.test.ts` fails when the preset and matrix kinds differ or a mode is unsupported. A builtin kind that reads a user skill directory joins `SKILL_HOSTS` and `hostSkillDir` (`src/adapters/definitions/native-cli-skills.ts`); one that reads none joins the exclusions in `test/skills-install.test.ts`.
|
|
17
|
-
- When an adapter lands, add its project config directories to `AGENT_CONFIG_SEGMENTS` (`src/hub/permission-
|
|
17
|
+
- When an adapter lands, add its project config directories to `AGENT_CONFIG_SEGMENTS` (`src/hub/permission-paths.ts`); scoped automatic writes must ask there, while explicit approval and `never-ask` keep their existing behavior.
|
|
18
18
|
- Load external modules only at daemon startup from trusted untracked local declarations: verify the self-contained bundle and content pin before importing captured bytes. Keep CLI/reload paths metadata-only, modules restart-bound and never settings-editable, builtin capabilities restricted, and external-kind instances admitted only under the accepted #754 headless opt-in, live captured catalog, separate worktree and host-managed current-owner proof; preserve the live-module controlled-recovery refusal. Export conformance registrations and fake assets without starting them on import.
|
|
19
19
|
- Bind scanned external runtime SDK imports to this daemon's own `/adapter` entry; never resolve them against project packages. Refuse `/conformance`, `bun:ffi`, `bun:test` and CommonJS loading at runtime. Isolate module refusals from hub startup and retain unknown module roster rows as inert when metadata is unavailable.
|
|
20
20
|
- Require the immutable captured project catalog at instance, roster, execution and permission resolver boundaries; choose a builtin catalog explicitly only for builtin-only callers; accept `adapters` only as wholly machine-local trusted data and require restart for changes. Refuse missing/mismatched pins, non-echoed load sessions, leader/attach argv and unknown owned-group evidence; require an explicit standalone `--no-leader` before argv termination for Grok (kind, executable or pinned native name); signal only the original verified group. Keep unmapped policy unmanaged, absent budgets exempt and read-only instances non-raisable through native acknowledgement plus host/MCP mutation gates. Claim native support only with its isolated T0 receipt.
|
|
@@ -122,7 +122,7 @@ Scope: the Codex, ACP and Pi adapters and the Pi extension (turn `generation` an
|
|
|
122
122
|
- Antigravity P1 (`src/adapters/agy/`): keep it optional, cloud, off roster by default, implementer/verifier only and pull-only. Until per-mode native prompt behavior is verified, reject hub permission/unattended mappings, headless starts and resume selectors; do not infer a quota source. The launcher refuses extra instances, any `agy --version` not admitted by `assessVersion("agy", ...)` (`COMPAT.agy` in `src/adapters/compat.ts` is the verified-set/warning-line source of truth; exact person trust is separate, #691), and a hub without the `native_hook_launch` feature.
|
|
123
123
|
- A project MCP entry the hub wrote is its own after the project directory moved (#1423): the directory fields are compared by real path (`sameDirectory`, `src/adapters/same-directory.ts`), not by text: `AGENTHUB_PROJECT_DIR` in the Jcode entry (`foreignField`), and `AGENTHUB_PROJECT_DIR` and `AGENTHUB_STATE_DIR` in agy's MCP entry and hook commands; a refusal names the differing field and the remedy. `jcodeMcpReady` still requires the exact current entry, so the launcher rewrites a moved one. Never loosen the rest of the shape (command, args, mode, peer id): only the directory fields follow a symlink. Kimi's entry is rewritten from the current paths and has no ownership check.
|
|
124
124
|
- Only the person's `ahub agy` launcher manages `.agents/plugins/agent-hub/{plugin.json,mcp_config.json,hooks.json}`. Refuse linked/foreign entries before any write; cleanup only the matching launch. Never write project-level `.agents/hooks.json` or personal Gemini settings. The plugin MCP server is named `agent-hub_agent-hub` by the pinned native client.
|
|
125
|
-
- Managed native facts use the definition's typed `NativeFactsPort` and the daemon's ephemeral `native_hook_launch` authority. Bind every observation to the daemon, launch, native session, project and current socket generation, and bind `WsPeer`'s live `nativeSession` (`bindNativeSession`) from `case "native_facts"` while keeping new `WsPeer` instances free of `nativeSession` until observed. Normal `Stop` (`NO_TOOL_CALL`) requires `fullyIdle` and a fresh validated completion row (a missing readback keeps the peer busy); terminal non-normal `Stop` reasons (`USER_CANCELED`, `ERROR`, `MAX_INVOCATIONS`, `MAX_FORCED_INVOCATIONS`, `MAX_TOKEN_BUDGET_EXCEEDED`, `TERMINAL_STEP_TYPE`, `TERMINAL_CUSTOM_HOOK`) with `fullyIdle` acknowledge any pending transcript facts/usage, clear the active turn, end any waiting cohort turn, record a closed-reason `native_turn_end` event (`reason` without `id`), settle any open #1054 run by its closed reason (pull-only `agy` opens none), and return the peer to `idle` (#1280). Native fact acknowledgement accepts only `SYSTEM_SDK` rows (`EPHEMERAL_MESSAGE` in 1.4.x, `SYSTEM_MESSAGE` in 1.5.x) in the exact session transcript path, extracts completed `PLANNER_RESPONSE` token counters (`input_tokens` excludes `cache_read_tokens`: cache reads exceeded input on 2947 of 3021 real 1.5.x rows, so `totalTokens` is their sum, not a double count) into `source: "agy_transcript"` usage events (deduped by hashed `(session, step_index)` across restarts), and advances the per-launch transcript cursor only after a scan that reached the previous cursor (or the 4 MiB lookback ceiling). `decodeAgyHook` normalizes `Read` (`view_file` `AbsolutePath`, `read_file` `Path`, with `StartLine`/`EndLine`/`ByteOffset` carried as `offset`/`limit` so partial reads never count as a whole-file view), `Write` (`write_to_file` `TargetFile`/`CodeContent`, `write_file` `Path`/`Content` when not `Append`), and `Edit` (`replace_all` only when `AllowMultiple` is true: a missing flag reads as a single replacement because no native receipt shows the default) (`replace_file_content` `TargetFile`/`TargetContent`/`ReplacementContent`, `edit_file` `Path`/`Target`/`Replacement`). The daemon records Pre/PostToolUse through `Facts.preTool`/`postTool` and offers nothing on them (#555, #1280). `INSTRUCTION_FILES` (`src/hub/permission-
|
|
125
|
+
- Managed native facts use the definition's typed `NativeFactsPort` and the daemon's ephemeral `native_hook_launch` authority. Bind every observation to the daemon, launch, native session, project and current socket generation, and bind `WsPeer`'s live `nativeSession` (`bindNativeSession`) from `case "native_facts"` while keeping new `WsPeer` instances free of `nativeSession` until observed. Normal `Stop` (`NO_TOOL_CALL`) requires `fullyIdle` and a fresh validated completion row (a missing readback keeps the peer busy); terminal non-normal `Stop` reasons (`USER_CANCELED`, `ERROR`, `MAX_INVOCATIONS`, `MAX_FORCED_INVOCATIONS`, `MAX_TOKEN_BUDGET_EXCEEDED`, `TERMINAL_STEP_TYPE`, `TERMINAL_CUSTOM_HOOK`) with `fullyIdle` acknowledge any pending transcript facts/usage, clear the active turn, end any waiting cohort turn, record a closed-reason `native_turn_end` event (`reason` without `id`), settle any open #1054 run by its closed reason (pull-only `agy` opens none), and return the peer to `idle` (#1280). Native fact acknowledgement accepts only `SYSTEM_SDK` rows (`EPHEMERAL_MESSAGE` in 1.4.x, `SYSTEM_MESSAGE` in 1.5.x) in the exact session transcript path, extracts completed `PLANNER_RESPONSE` token counters (`input_tokens` excludes `cache_read_tokens`: cache reads exceeded input on 2947 of 3021 real 1.5.x rows, so `totalTokens` is their sum, not a double count) into `source: "agy_transcript"` usage events (deduped by hashed `(session, step_index)` across restarts), and advances the per-launch transcript cursor only after a scan that reached the previous cursor (or the 4 MiB lookback ceiling). `decodeAgyHook` normalizes `Read` (`view_file` `AbsolutePath`, `read_file` `Path`, with `StartLine`/`EndLine`/`ByteOffset` carried as `offset`/`limit` so partial reads never count as a whole-file view), `Write` (`write_to_file` `TargetFile`/`CodeContent`, `write_file` `Path`/`Content` when not `Append`), and `Edit` (`replace_all` only when `AllowMultiple` is true: a missing flag reads as a single replacement because no native receipt shows the default) (`replace_file_content` `TargetFile`/`TargetContent`/`ReplacementContent`, `edit_file` `Path`/`Target`/`Replacement`). The daemon records Pre/PostToolUse through `Facts.preTool`/`postTool` and offers nothing on them (#555, #1280). `INSTRUCTION_FILES` (`src/hub/permission-paths.ts`) includes `gemini.md` alongside `agents.md`, `claude.md` and `qwen.md`. Pull-only `agy` has no push, so on `SessionStart`/`PreInvocation` the daemon appends a count-only line (`[agent-hub: N message(s) waiting (M important); call hub_inbox]`, never a body or sender) to the injected message when `bus.queued(peer) > 0`, with or without a fact offer (#1280 P2). `agy acp` was probed model-free (`docs/verification/2026-11-08-agy-acp-t0.md`); its `AcpPeer` wiring waits for one authorized model-backed receipt.
|
|
126
126
|
- `terminalOwner(launchId)` (`src/hub/peers.ts`, #482) answers only for the adapter's current native TUI owner bound to that launch (Codex: the claimed link with that `launchId`, both sockets open; the launcher sends the id as the upgrade's bearer token through `--remote-auth-token-env`, because `codex --remote` refuses any path or query (#586); Pi: a started, verified TUI owner on its requested session); a start acknowledgement is never ownership. A Codex link that is not the claimed one or has a closed socket never adopts a thread.
|
|
127
127
|
|
|
128
128
|
## Reviewers
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
- Console attention navigation selects a delivery only by an exact visible row id. A missing id or row prints read-only guidance; never select by peer or fall back to the first Queue row.
|
|
32
32
|
|
|
33
|
-
Scope: the operator console, control WS and its protocol, state files, the dashboard listener and settings, the Claude channel's reconnect, `ahub setup`, git snapshots, upgrade and recovery. Read before editing `src/adapters/definitions/native-recovery*.ts`, `src/adapters/definitions/native-policy-aux.ts`, `src/adapters/definitions/native-config-*.ts`, `src/adapters/definitions/native-cli-*.ts`, `src/cli/console.ts`, `src/cli/console-state.ts`, `src/cli/console-versions.ts`, `src/cli/attention.ts`, `src/ui/needs.ts`, `src/hub/daemon.ts`, `src/hub/ui.ts`, `src/hub/settings.ts`, `src/hub/control-client.ts`, `src/adapters/claude-channel.ts`, `src/hub/restart.ts`, `src/hub/recovery-store.ts`, `src/hub/snapshots.ts`, `src/hub/manager.ts`, `src/hub/lifecycle.ts`, the runtime selection and retention modules (`src/hub/project-runtime-state.ts`, `src/hub/project-runtime.ts`, `src/hub/runtime-capture-prune.ts`, `src/hub/runtime-prune-health.ts`, `src/hub/registry.ts`), `src/hub/crash.ts`, `src/hub/start-mode.ts`, `src/hub/terminal-open.ts`, `src/hub/recovery-error.ts`, `src/hub/db-timeout.ts`, `src/hub/db-schema.ts`, `src/hub/protocol-window.ts`, `src/hub/config-reload.ts`, `src/hub/config-apply.ts`, `src/hub/config-tier.ts`, `src/hub/config-edit.ts`, `src/hub/config-edit-host.ts`, `src/hub/claude-launch-proof.ts`, the session and provenance modules (`src/hub/session-identity.ts`, `src/hub/provenance.ts`, `src/hub/channel-project.ts`), `src/hub/recovery-continuity.ts`, `src/cli/recovery-presentation-options.ts`, `src/cli/setup.ts`, the default agent set (`src/hub/start-agents.ts`, `src/cli/start-agents-run.ts`), `src/cli/upgrade*.ts`, `src/cli/runtime-version-warning.ts`, `src/cli/terminal-recovery.ts`, `src/cli/recovery-package.ts`, `src/cli/facts-hook.ts`, `src/hub/usage.ts`, `src/hub/memory-profile.ts`, the memory code modules (`src/hub/memory-symbols.ts`, `src/hub/memory-code-overlay.ts`, `src/hub/memory-code-head.ts`, `src/hub/memory-stale-anchors.ts`, `src/cli/memory.ts`), the task brief host (`src/memory/brief.ts`, `src/hub/memory-plan-guard.ts`), `src/hub/native-hook-launch.ts`, `src/cli/output.ts`, `src/cli/warn-line.ts`, `src/ui/index.html`, the dashboard view models (`src/ui/roadmap-model.ts`, `src/ui/overview-model.ts`), the acon plugin (`src/ui/plugin.ts`, `src/ui/office-space.ts`, `src/cli/acon-register.ts`), `ahub study` (`src/cli/study.ts`, `src/cli/study-output.ts`), `src/hub/task-code-group.ts` (dashboard Code group), the agent drift sweep (`src/hub/agent-drift.ts`, `src/cli/agents.ts`) or the instance modules (`src/hub/instances.ts`, `src/hub/instance-config.ts`, `src/hub/instance-execution.ts`), or before adding a native peer.
|
|
33
|
+
Scope: the operator console, control WS and its protocol, state files, the dashboard listener and settings, the Claude channel's reconnect, `ahub setup`, git snapshots, upgrade and recovery. Read before editing `src/adapters/definitions/native-recovery*.ts`, `src/adapters/definitions/native-policy-aux.ts`, `src/adapters/definitions/native-config-*.ts`, `src/adapters/definitions/native-cli-*.ts`, `src/cli/console.ts`, `src/cli/console-state.ts`, `src/cli/console-versions.ts`, `src/cli/attention.ts`, `src/ui/needs.ts`, `src/hub/daemon.ts`, `src/hub/config.ts`, `src/hub/ui.ts`, `src/hub/settings.ts`, `src/hub/control-client.ts`, `src/adapters/claude-channel.ts`, `src/hub/restart.ts`, `src/hub/recovery-store.ts`, `src/hub/snapshots.ts`, `src/hub/manager.ts`, `src/hub/lifecycle.ts`, the runtime selection and retention modules (`src/hub/project-runtime-state.ts`, `src/hub/project-runtime.ts`, `src/hub/runtime-capture-prune.ts`, `src/hub/runtime-prune-health.ts`, `src/hub/registry.ts`), `src/hub/crash.ts`, `src/hub/start-mode.ts`, `src/hub/terminal-open.ts`, `src/hub/recovery-error.ts`, `src/hub/db-timeout.ts`, `src/hub/db-schema.ts`, `src/hub/protocol-window.ts`, `src/hub/config-reload.ts`, `src/hub/config-apply.ts`, `src/hub/config-tier.ts`, `src/hub/config-edit.ts`, `src/hub/config-edit-host.ts`, `src/hub/claude-launch-proof.ts`, the session and provenance modules (`src/hub/session-identity.ts`, `src/hub/provenance.ts`, `src/hub/channel-project.ts`), `src/hub/recovery-continuity.ts`, `src/cli/recovery-presentation-options.ts`, `src/cli/setup.ts`, the default agent set (`src/hub/start-agents.ts`, `src/cli/start-agents-run.ts`), `src/cli/upgrade*.ts`, `src/cli/runtime-version-warning.ts`, `src/cli/terminal-recovery.ts`, `src/cli/recovery-package.ts`, `src/cli/facts-hook.ts`, `src/hub/usage.ts`, `src/hub/memory-profile.ts`, the memory code modules (`src/hub/memory-symbols.ts`, `src/hub/memory-code-overlay.ts`, `src/hub/memory-code-head.ts`, `src/hub/memory-stale-anchors.ts`, `src/cli/memory.ts`), the task brief host (`src/memory/brief.ts`, `src/hub/memory-plan-guard.ts`), `src/hub/native-hook-launch.ts`, `src/cli/output.ts`, `src/cli/warn-line.ts`, `src/ui/index.html`, the dashboard view models (`src/ui/roadmap-model.ts`, `src/ui/overview-model.ts`), the acon plugin (`src/ui/plugin.ts`, `src/ui/office-space.ts`, `src/cli/acon-register.ts`), `ahub study` (`src/cli/study.ts`, `src/cli/study-output.ts`), `src/hub/task-code-group.ts` (dashboard Code group), the agent drift sweep (`src/hub/agent-drift.ts`, `src/cli/agents.ts`) or the instance modules (`src/hub/instances.ts`, `src/hub/instance-config.ts`, `src/hub/instance-execution.ts`), or before adding a native peer.
|
|
34
34
|
|
|
35
35
|
- The plugin bundle is installed apart from the daemon. Breaking a control WS message contract bumps `PROTOCOL` in `control-client.ts`; a new request answered as unknown or an optional field preserves it, as does additive optional public task metadata in `ui_snapshot` that older clients ignore (such as `deps` in #246).
|
|
36
36
|
- `hub_invoke` over the control WS (#445, #991): the daemon binds each admission to its socket and `rid` with an `AbortController` (`invocationRequests`, at most 64 per connection; a duplicate `rid` refuses). `request_cancel` and socket close abort it, and every check after an await confirms the socket is open and still maps that `rid` to the same controller before any effect. Clients go through `ControlClient.request`, whose `controlRequestTimeout` raises a `hub_invoke` wait to `INVOCATION_CONTROL_TIMEOUT_MS`; never call it with a shorter bound.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Local worker and sandbox
|
|
2
2
|
|
|
3
|
-
Scope: the hub-native local worker, its tools, path guard, denylist and seatbelt sandbox. Read before editing `src/adapters/local-worker.ts`, `src/local/`, `src/memory/capture.ts` (reads the denylist), `src/hub/facts.ts` (denylist and large-file stamps), `src/hub/git.ts`, the grant filter in `src/hub/permission-mode.ts`, or the sandbox root in `src/hub/instance-execution.ts`.
|
|
3
|
+
Scope: the hub-native local worker, its tools, path guard, denylist and seatbelt sandbox. Read before editing `src/adapters/local-worker.ts`, `src/local/`, `src/memory/capture.ts` (reads the denylist), `src/hub/facts.ts` (denylist and large-file stamps), `src/hub/git.ts`, the grant filter in `src/hub/permission-mode.ts` and `src/hub/permission-paths.ts`, or the sandbox root in `src/hub/instance-execution.ts`.
|
|
4
4
|
|
|
5
5
|
- Before editing a probe-only lifecycle, capability or sandbox branch, read `docs/design/guidance-probes.md` (T2 confined adapter contract).
|
|
6
6
|
- Nothing the local worker executes may run outside `sandboxedExec`; a new tool that spawns a process goes through it, and a tool that touches a path goes through `guardPath`.
|
|
@@ -23,9 +23,9 @@ Scope: the hub-native local worker, its tools, path guard, denylist and seatbelt
|
|
|
23
23
|
- `ctx.permit` answers a `ToolApproval` (`true`, `false`, `"expired"`, `"aborted"`, #253): only `true` permits an effect, so never test it for truthiness. A tool returns `approvalError`'s text for the rest: a denial, the expiry (which tells the model not to retry) or the withdrawal. A turn that two unanswered approvals ended (`ApprovalWaitStop`; counting rule: `adapters.md`) completes its missing tool results, settles its delivery `completed` with the reason and is never handed back for replay, also when no tool had a side effect.
|
|
24
24
|
- `Facts` (`src/hub/facts.ts`, #428) names a large file whose ctime is under `RACY_MS` by its git blob id: in `load()` and `observe()` only through `racyBlob()` (per-file `RACY_HASH_MAX_BYTES`, per-store `RACY_BURST_BYTES` per event-loop turn, memo cleared at `boundary()`), past which it keeps the stat-only stamp and makes no claim; `atHead()` keeps its own `HASHED_BYTES` bound, `tree()` reads large files by stat only, and `largeBlob()` caches only settled stamps.
|
|
25
25
|
- Hub tool calls (`hub_send`, `TASK_TOOL_NAMES`, `CONDUCTOR_TOOL_NAMES`) are never passed to `capture.observe`; `Tasks` alone decides what hub tool text reaches memory (#230). Keep `hub_ask_answer` explicitly excluded from `observeTool` too: its question and answer are not capture evidence (authority and read-view rules: `daemon.md` and `tasks.md`). Every live `capture.observe` passes a host `sourceId` (`<session>.<turn>.<step>.<n>`, #752); a new host caller supplies one too. Capture stores `paths` only for `read`/`write`/`edit` and only project-relative ones: command argv is never path metadata.
|
|
26
|
-
- A tool that asks for approval passes its name to `ctx.permit`, and `write`/`edit` also the `guardPath` result, never the model's path string: also pass the original path separately through every permit wrapper, and every tool its parsed arguments as `input` (the always-ask classifier reads it, #750; rule: `adapters.md`); `ask-when-needed` grants only when both the original project-relative spelling and the real path avoid protected names through `grantablePath` (`src/hub/permission-
|
|
26
|
+
- A tool that asks for approval passes its name to `ctx.permit`, and `write`/`edit` also the `guardPath` result, never the model's path string: also pass the original path separately through every permit wrapper, and every tool its parsed arguments as `input` (the always-ask classifier reads it, #750; rule: `adapters.md`); `ask-when-needed` grants only when both the original project-relative spelling and the real path avoid protected names through `grantablePath` (`src/hub/permission-paths.ts`). `bash` and mutating `git` pass no path. After the awaited approval `write`/`edit` run `guardPath` again and refuse a target that changed (#242).
|
|
27
27
|
|
|
28
|
-
- Honor the live `protect_instruction_files` policy in scoped grants for the instruction names in `INSTRUCTION_FILES` (`src/hub/permission-
|
|
28
|
+
- Honor the live `protect_instruction_files` policy in scoped grants for the instruction names in `INSTRUCTION_FILES` (`src/hub/permission-paths.ts`: `AGENTS.md`, `CLAUDE.md`, `QWEN.md`, `GEMINI.md`); keep reads, explicit approval and never-ask unchanged. Only the settings registry writes this machine-local policy (#323).
|
|
29
29
|
|
|
30
30
|
- Bounded task wait (#1454): the daemon passes `taskWait` to `LocalPeer`; `profileTaskTools` includes `hub_task_wait` only when the idle sweep is enabled. Do not infer or read that setting in the worker; the authority and wait rules live in `tasks.md`.
|
|
31
31
|
|
|
@@ -26,7 +26,10 @@ Scope: the task flow, assignment, the state machine and the hub's MCP tools. Rea
|
|
|
26
26
|
- Opt-in auto pull (#785 P1c, `tasks.auto_pull`, `Tasks.queueAutoPulls`, `autoPull`, `topReservedReady`): `writePlannerNotices` collects the peers whose WIP this write lowered and, only when `TasksDeps.autoPull()` is true (read at each release, so a reload applies to the next one), queues one `autoPull(peer)` per peer on a promise chain, so two releases never pick the same card and each job re-reads the board. It takes the top backlog card explicitly reserved for that peer (`topReservedReady(peer, undefined, true)`, the rule the notice's `reserved ready #id` line also uses; never an unreserved card, never PII, which `topReservedReady` skips for a pull), finds the card's own planner of record (`taskPlanner(card)[0]`, which must be rostered) and calls `pullPlanned(HUB, input, { onBehalfOf: planner })`. `onBehalfOf` is accepted only with `by === HUB`; the planner's authority is what `planningAuthority` checks, the actor in history and the planning telemetry stays `hub`, and the planner binding records the planner it acted for. Every other check is `pullPlanned`'s own, unchanged, and a refusal is one console notice with the public title (never detail). A held or recovering hub, a storage error or the setting off pulls nothing, and that is checked twice: at entry and again by `pullPlanned`'s `opts.guard` (`autoPullAdmitted`) wherever authority is rechecked, which includes right before the assignment or board write after the awaited PII screen and `planReviewGap`, so turning the setting off or starting recovery or shutdown mid-admission writes nothing and reports nothing. `autoPullsPending()` counts queued and running pulls and `recoveryReady` waits for it (also named in the recovery view's blockers), as it does for `checksPending`. The key is in `ALL_MACHINE_LOCAL` (`config-trust.ts`) so a committed config is ignored for it, and it is not in `CONDUCTOR_SETTING_KEYS`: an agent never turns it on. Never add a timer or sweep that pulls. Also queue the reserved peer after backlog planning changes eligibility, after a dependency approval readies its backlog card, and when an idle peer is registered or first becomes idle after registration; use the same serialized admission and recheck once per attachment. Automatic distribution (#1626): `assignOwner` excludes peers at their WIP cap, with a held queue or backing off after a capacity decline for every owner choice the hub makes without a named owner (`hubOfferFull`, counting `readyInFlight` and `pendingClaims` like `reservedHold`); a person's or conductor's explicit assignment, a claim and a roster move are unchanged. `capacityBackoff` is in memory by design (a restart reattaches peers idle, which ends it) and ends at the peer's next idle state. A capacity decline of a pulled card goes back to backlog with its reservation through the untouched-return path; a plain decline clears it. When `topReservedReady` finds nothing, `fillSlot` offers the first ready unowned `proposed` task through `assignOwner` with that peer as the only candidate, one per trigger on the `autoPulls` chain. Never offer a peer a task it would have to refuse.
|
|
27
27
|
- Bounded waits (#1454, `Tasks.wait`, `taskWait`, `hub_task_wait`): a wait is one quiet `wait recorded` history entry with `wait: {until, owner}` and the public reason as its note, never a column or a second write. `taskWait` (`src/hub/task-sweep.ts`) parses whether the latest wait remains in force from history alone (latest wait entry names the current owner, nothing state-changing after it); callers use that result for idle-sweep timing and to surface an expired wait as `wait-passed` in planner grooming. A new event that must not end a wait joins `WAIT_KEEPING_EVENTS` beside its `QUIET_EVENTS` line. `nextSweep` reads it for `idle-owner` only; never let it touch `review-pending`, `unaccepted-assignment` or `ready-unassigned`. The tool is published only while `task_sweep.enabled` (`profileTaskTools(..., wait)`, status field `taskWait`), and `Tasks.wait` refuses with the same condition, so sweep off changes no tool list. Refusals are `PreEffectToolRefusal` naming cause and next step; the reason is screened and refused, not cut, on an ordinary task.
|
|
28
28
|
- Planned start (#1092): `plannedStartPending` (`src/hub/task-sweep.ts`) is the only test that a card's `plannedStart` is still ahead. Every automatic path skips such a card: dependent readiness, `backlog_ready` notices, the reserved-ready pick, auto pull and its `guard`, a hub-actor (`by === HUB`) offer, pull or assign of an ownerless backlog or proposed card, and the idle sweep. The planner digest shows it as `scheduled`. A new automatic path asks it too.
|
|
29
|
-
- Per-head CI watcher (#
|
|
29
|
+
- Per-head CI watcher (#1801 T1, `src/hub/ci-watch.ts`, `Tasks.watchCi`, `ciWatchCurrent`, `ciCompleted`): start on the first lifecycle record, wait or completion naming an exact PR head. Keep one chained unref'd timer across draft work, review and approval. A phase change renews its deadline without duplicating the watcher. Cancel on a newer head, merge, close, task cancellation or daemon shutdown. Each poll uses one bounded metadata-only `gh api graphql` call for the head, mergeability, draft transition, checks and thread resolution. Never fetch bodies, paginate or poll from a peer turn. Partial evidence is pending. The draft macOS deferral is excluded from draft owner notices, and a ready PR's old macOS aggregate remains pending if its workflow run predates the latest ReadyForReview event or cannot be placed on either side of it. Only a later run can report that aggregate's failure.
|
|
30
|
+
- Required CI shard reruns (#1801 T3): save the reservation before sending the request. Count a failure as new only by that check's own `startedAt`. Ignore `runAttempt` and check IDs for freshness. Charge an unconfirmed request to its reservation and keep the existing deadline. Skip reruns when the aggregate fails alone. Report the final failure once per check and start time.
|
|
31
|
+
- After each draft push, the owner records `pr`, the full SHA as `localHead` and an actual `localResult` only if available using `hub_sdlc_record`. Without that tool, the owner sends the PR number and full head to the reviewer with `hub_send` without `[FYI]`. The reviewer records `pr` and `localHead` without inventing a result. Either way, the owner ends its turn and waits for the draft CI notice.
|
|
32
|
+
- CI notices are ids-only task envelopes at `status` weight. Draft results go to the owner, review results to owner and reviewer, and approved results to reviewer and conductor. Approved merge readiness requires green required checks and zero unresolved threads. Two consecutive conflicting reads tell the owner and conductor once per head. After ten minutes on that head, a successful empty-check observation with no run ever seen sends a missing-run notice once. Unreadable snapshots do not count. Skip missing-run while the PR is conflicting. If the conflict clears on that head, a successful empty read can trigger the notice. Keep watching until the phase deadline. Non-conflict outcomes are deduplicated per head and phase. Keep the separate, once-only fresh admission when re-offering a held review. Never watch a private task.
|
|
30
33
|
- Required checks (#1344): resolve the names only through `requiredChecksFor` / `requiredCheckNames` (`src/hub/sdlc-merge.ts`, `src/hub/sdlc.ts`); the built-in `check (...)` and `seeded guards` set applies only to this repository, and an empty set elsewhere is a `required checks unknown` blocker, never a pass.
|
|
31
34
|
- Draft review (#1576): admit the failed macOS aggregate only with exact-head job-step proof of its draft deferral, a matching fresh PR snapshot and every other required check green. Only on that proven draft may approval defer missing GitHub approval and known outstanding review requests; preserve change-request and unresolved-thread blockers. Never treat that admission as a successful full gate or weaken merge and identical-tree proof.
|
|
32
35
|
- Build-entry guidance (#1354, `buildEntryDiagnostic` in `src/hub/build-entry.ts`) is pure display data: routing and `route explain` may show it but never read GitHub or change eligibility because of it.
|
|
@@ -166,3 +169,4 @@ Scope: the task flow, assignment, the state machine and the hub's MCP tools. Rea
|
|
|
166
169
|
- Cross-project handoff (#604, agent-hub#1030, `src/hub/handoff.ts`, `Tasks.handoff*`, `Board.handoff*`): the pure core (`parseHandoff`, `resolveTarget`, `checkTarget`, `handoffEventFor`, `followBackLine`) takes no clock, file or socket; the daemon's `handoffOut` is the one origin path (parse closed, `handoffOutAuthority`: the person, a configured planner or the conductor, refused in a private turn and for a `[pii]` own task; then registry, the target's own status descriptor, the target's reply) and a refusal at any step leaves no row in either board. The target's `Tasks.handoffIn` parses again (a control message is data from another process), sanitizes, refuses a PII pattern or an uncleared screen, asks the daemon's recovery fence before and after the screen's await, and proposes through `Board.proposeHandoff(HUB, ...)` (the handoff idempotency rule above): the origin peer is a record in `task_handoff_origin` and never an actor, a roster peer or a `PeerId` that `Tasks` admits. The spec `issue` is kept as a line of the task's detail. Once the task and its origin row are written nothing fails the handoff (a link, notice or assignment failure becomes the reply's `note`), so the origin always learns the task id. `handoffStatesFor` answers only for tasks whose recorded origin is the asking project, with the fields a live event carries. The inbound `task_handoff`, `task_handoff_event`, `task_handoff_states` and `task_handoff_by_key` control messages are console-role only (the daemon answers an agent connection with a reason, and an unknown one with the usual "does not know"). Follow-back is read from the history entry's event and the task's state (`handoffEventFor`: observed names `accepted`, `done` (in_review, or approved for a class with no reviewer), `approved`, `declined`, `cancelled`, and `changes_requested` and `reopened` (#1203 T2, sent only to an origin that advertises `task_handoff_seq`)), carries only an event name, a PR number, a full SHA and `seq` (the target task's flow revision; an event not newer than the stored `seq` changes nothing), and never throws after a board write; the origin's outbound row is idempotent, and the catch-up (`handoffCatchUp`) asks each running target at start, every 5 minutes and when its control descriptor changes, over every row `handoffCatchUpRow` keeps (open, or approved within `HANDOFF_APPROVED_GRACE_MS`); transport, queueing and key-retry rules are in `daemon.md`. The tables are additive and `task_handoff` is its own recovery label while either holds a row (`Board.hasHandoffState`). `HANDOFF_TOOLS` keep the arguments and results out of memory capture. Never add text from the target to the follow-back line. Duplicate handoffs (#1175): `duplicateIssueTasks` (pure, `src/hub/handoff.ts`) is the one finder and `Tasks.handoffIn` runs it after its last await, right before `board.proposeHandoff`, over the board rows with every `[pii]` row left out, so a refusal writes nothing and names only ids; a sender's `duplicate_ok` (bounded, kept as a detail line) skips it, and a handoff with no `issue` is never refused. Never move the check before the PII screen's await, never name a title in the refusal, and never offer or escalate on a task the check refused. The conductor's cancel of an unaccepted handed-off task is `Tasks.conductorHandoffCancel`, asked inside both `validate()` runs of `Tasks.cancel` (the same `configuredManualConductor` and roster check the unassign path uses), limited to `proposed` or `backlog` with `board.handoffOrigin` set and no `taskHasStarted` or `taskHasWorkEvidence`; the board write records the conductor as the actor, and the follow-back is unchanged.
|
|
167
170
|
|
|
168
171
|
- Reviewer quota admission (#1446): real host routing injects `review.gate` (default 0.8), `review.unknown_quota` (default skip) and current account headroom. Default skip refuses unknown readings; explicit pass admits unknown only while retaining the numeric known floor. Gate off bypasses floor/unknown checks and every quota wait. Preserve actual Budget/manual pauses and all role/health/failure/same-family guards under both opt-outs. Use the same pure selector and rule explanation for assignment, explain and budget readback. With a numeric gate, wait only if every declared reviewer is actually quota-paused or has a known reading at/above the floor, each with a known reset and no other blocker. Bind the first deadline to task incarnation and head/repo; use the first `task_sweep.review_min` deadline as the sole hard cap, never extend it on events/restart (resets only wake rechecks through the existing Budget expiry grace), and cancel old timers on head/privacy/close/stop. Expiry or unknown under skip uses existing planner/person fallback; an admitted unknown never supplies wait evidence. Quota is not a permanent failed reviewer for that head. Per-child `review.max_minutes` (default 20) samples once, ignores activity, and uses existing owned teardown before typed timeout/re-offer.
|
|
172
|
+
- Dependency readiness (#1801): approving a dependency sends each owned, unstarted dependent with nothing left to wait for one ids-only `ready: hub task N approved` status notice to its owner (`ownedReadyDependents` in `releaseDependents`; unowned ones keep `offerReady`), and the planner notice lists them as `owned_ready: #id (owner)`. A reopened and re-approved dependency notifies again.
|
package/docs/design/adapters.md
CHANGED
|
@@ -143,6 +143,23 @@ The Claude plugin's inherited launcher marker is insufficient to enable push. In
|
|
|
143
143
|
|
|
144
144
|
The flattened process row is a conservative launch observation, not authentication or proof of registration or model consumption. Unsupported invocation layouts remain pull-only. An attached peer's status reports its mode and a closed evidence label without command text. Evidence belongs to that socket's attachment and is omitted when no current attachment exists. Older clients that omit the optional evidence field retain their prior behavior and report `unreported`; no control protocol version changes. The separate delivery-settlement contract handles an accepted notification that remains unconfirmed. The [investigation report](../verification/2026-11-04-1171-channel-client-evidence.md) distinguishes static client inspection, passive process observation and synthetic fixtures.
|
|
145
145
|
|
|
146
|
+
## Hub check at an agent's start (#1798 T3)
|
|
147
|
+
|
|
148
|
+
Every `ahub <agent>` TUI wrapper (claude, codex, kimi, jcode, pi, qwen, agy; not `local`, not a hub-started headless path, not `--print-command` or `--dry-run`) prints a short `Hub check` to stderr, only when stderr is a terminal (`process.stderr.isTTY === true`, checked in `printLaunchCheck` and again in the Claude `beforeSpawn` callback, which then makes no connection; with stderr redirected `ahub status` shows the same state), before it execs or spawns the agent, from the `hubCheck` the daemon returned in the status read the wrapper already makes for this launch. The Claude TUI path has none, so it makes one connection attempt at the spawn boundary (`runClaudeLaunch`'s `beforeSpawn`, through the entry context's `connectOnce`): no retry, no instance check, one 3-second deadline for connect and request, and a late connection is closed with no request sent. The agent has not started, so the line is neutral, never a mark: `<agent>: starting, expected link <push|pull>, <n> queued` (or `queue unknown` with no row) and `ahub status` to check again after it starts. The expected link comes from the row, else from `expectedHubLink` for the wrapper's definition and form. A row that is not offline adds `state before this launch: <state>` with its cause, without its mark or next step, and never claims that an earlier session is still attached. The only warning is a check that could not be read, or a snapshot with no `hubCheck`, with `ahub status` as its next step; it never blocks the launch. Every printed line is cleaned (`plain` from `warn-line.ts`, line breaks replaced by a space).
|
|
149
|
+
|
|
150
|
+
| Agent | Before launch | Inside the session |
|
|
151
|
+
|---|---|---|
|
|
152
|
+
| Claude | wrapper line | `SessionStart` entry (startup and resume only), verified for this session through the daemon's `thisLaunch` display hint |
|
|
153
|
+
| Codex, jcode, Pi, Qwen | wrapper line (TUI launches only) | none |
|
|
154
|
+
| Kimi | wrapper line | none: our managed plugin registers no `SessionStart` event (`src/cli/kimi-plugin.ts`), and no user-visible start output is confirmed |
|
|
155
|
+
| agy | wrapper line | none: `SessionStart` can add an `ephemeralMessage` for the model, but output visible to the person and how often it fires are not confirmed, so only the wrapper shows the check |
|
|
156
|
+
|
|
157
|
+
Claude's session-start entry is opt-in (`FactsHook.startCheck`, set only by the interactive `ahub claude` entry and its preview) and is its own command: the same `facts-hook.ts` run with `AGENTHUB_HOOK_PURPOSE='start-check'`, which only that exact value selects before `factsHook` is called and which never falls through to it. It sends no `facts` or `native_facts` request, records no native session or turn and turns on no idle, facts or sweep behavior. Where the observation entry also fires on `SessionStart`, the check is a second, separate entry. Its total time (process start included) stays clearly below the entry's 5-second timeout, a read failure or timeout prints a warning payload with its next step and exits 0 with a valid document, and an unanswered check is never shown as OK. `clear` and `compact` print nothing. Its lines are cleaned before they are joined.
|
|
158
|
+
|
|
159
|
+
The daemon answers one optional boolean on the existing plain `status` request, `thisLaunch`, only to a tools connection that acts as its own named Claude channel peer (not a minted session, not a hub-owned child) and carries a non-empty launch id. It is true only if that peer is attached and its current socket (not a standby) holds the same launch id, and false otherwise; everyone else gets no field. It is computed per request, never cached, never part of `hubCheck` or the status file, and the launch id is never returned or logged. It is a display hint: anyone who holds the control token can send any launch id, so it never decides admission, routing, delivery or permissions. The hook shows OK only when `thisLaunch` is true and its `hubCheck` row is OK in the same reply; false re-reads within the bound and then shows `pending`; a missing field (an older hub) reads `this session's link could not be verified`.
|
|
160
|
+
|
|
161
|
+
Unmet on purpose: AC4's in-session check inside Kimi and inside agy. #1798 stays open.
|
|
162
|
+
|
|
146
163
|
## Person takeover of a channel peer (#1174)
|
|
147
164
|
|
|
148
165
|
An opted-in channel process may retain a live, non-owning standby connection when
|
|
@@ -5,7 +5,7 @@ Snapshot recorded 2026-11-25 for #1654 T1.
|
|
|
5
5
|
Generated from the built-in dispatch table, adapter entries and HELP. Width is measured in terminal cells on color-off help at 80 columns.
|
|
6
6
|
Overview summaries are recorded verbatim for the T2 grammar pass. Help-only entries include global forms.
|
|
7
7
|
|
|
8
|
-
Overview width: 79 cells. Dispatch entries:
|
|
8
|
+
Overview width: 79 cells. Dispatch entries: 91. Help command words: 93.
|
|
9
9
|
|
|
10
10
|
| Command | Dispatch | Help width | Overview summary (cells) | Example | Flags | Observed help deviations |
|
|
11
11
|
| --- | --- | ---: | --- | --- | --- | --- |
|
|
@@ -64,6 +64,7 @@ Overview width: 79 cells. Dispatch entries: 90. Help command words: 92.
|
|
|
64
64
|
| recovery | main.ts | 80 | Daemon and runtime / inspect, resume or abort a held operation (41) | Yes | --json --color --fresh-session --reason --stop-and-archive | Repeated forms |
|
|
65
65
|
| recovery-run | main.ts | 71 | Daemon and runtime / internal: a detached recovery runner (36) | No | - | Internal, Repeated forms |
|
|
66
66
|
| release | main.ts | 80 | Tasks and review / plan and ship releases (22) | Yes | --json --color | Repeated forms |
|
|
67
|
+
| releases | main.ts | 77 | Tasks and review / list and prune hub runtime copies (33) | Yes | --json --kind --older-than --apply | Repeated forms |
|
|
67
68
|
| remember | main.ts | 44 | Tasks and review / save a note to shared memory (28) | Yes | - | Repeated forms |
|
|
68
69
|
| report | main.ts | 79 | History and reports / turns, tokens, messages and task events (39) | Yes | --since --by --json --color --dogfood | Repeated forms |
|
|
69
70
|
| research | main.ts | 80 | History and reports / success and rework rates per approved task (42) | Yes | --since --all --json --format --dataset | Repeated forms |
|
|
@@ -95,7 +96,7 @@ Overview width: 79 cells. Dispatch entries: 90. Help command words: 92.
|
|
|
95
96
|
| turns | main.ts | 74 | History and reports / recent turns and the files each changed (39) | Yes | --limit --json --color | Repeated forms |
|
|
96
97
|
| ui | main.ts | 78 | Dashboard / open the local dashboard (24) | Yes | --no-open --json --settings --all --stop | Repeated forms |
|
|
97
98
|
| undo | main.ts | 79 | History and reports / put back the files a turn changed (33) | Yes | --yes --context | Repeated forms |
|
|
98
|
-
| up | main.ts |
|
|
99
|
+
| up | main.ts | 80 | Daemon and runtime / start the daemon and this project's default agents (50) | Yes | --unattended --no-console --no-agents --wait --json | Repeated forms |
|
|
99
100
|
| upgrade | main.ts | 79 | Daemon and runtime / review and upgrade this project (31) | Yes | --project --all-stopped --to --dry-run --yes --json --verbose --color | Repeated forms |
|
|
100
101
|
| usage | main.ts | 79 | History and reports / tokens per group from the roll-up (33) | Yes | --since --by --json --color --peer --limit | Repeated forms |
|
|
101
102
|
| version | main.ts | 40 | Projects / print the installed version (27) | Yes | --version | Repeated forms |
|
|
@@ -124,7 +125,7 @@ A delegated call needs its own renderer or a fixture before the human-view width
|
|
|
124
125
|
| init | fail (5), console.log (11), console.error (1) |
|
|
125
126
|
| daemon | console.error (2) |
|
|
126
127
|
| console | fail (2) |
|
|
127
|
-
| up | console.error (2), console.log (2) |
|
|
128
|
+
| up | fail (1), console.error (2), process.stderr.write (1), console.log (2) |
|
|
128
129
|
| claude | Delegated / no direct output call |
|
|
129
130
|
| codex | Delegated / no direct output call |
|
|
130
131
|
| kimi | Delegated / no direct output call |
|
|
@@ -147,6 +148,7 @@ A delegated call needs its own renderer or a fixture before the human-view width
|
|
|
147
148
|
| release | showToolText (1), fail (3) |
|
|
148
149
|
| smoke | fail (6), console.log (2) |
|
|
149
150
|
| room | fail (2) |
|
|
151
|
+
| releases | fail (1) |
|
|
150
152
|
| broker | fail (1) |
|
|
151
153
|
| source | console.log (2), printOutput (2), renderSourceList (1), fail (4), renderSourceAdd (1) |
|
|
152
154
|
| schedule | showToolText (3), renderScheduleList (1), fail (1), renderScheduleRun (1), renderScheduleChange (1) |
|
|
@@ -207,20 +209,20 @@ Interpolated and daemon-supplied strings require runtime fixtures. They are coun
|
|
|
207
209
|
|
|
208
210
|
| Command | Text source | Stream | Literal width |
|
|
209
211
|
| --- | --- | --- | ---: |
|
|
210
|
-
| recovery | src/cli/main.ts:
|
|
211
|
-
| recovery | src/cli/main.ts:
|
|
212
|
-
| projects | src/cli/main.ts:
|
|
213
|
-
| ui | src/cli/main.ts:
|
|
214
|
-
| ui | src/cli/main.ts:
|
|
215
|
-
| models | src/cli/main.ts:
|
|
216
|
-
| say | src/cli/main.ts:
|
|
217
|
-
| roadmap | src/cli/main.ts:
|
|
218
|
-
| deliverables | src/cli/main.ts:
|
|
219
|
-
| roster | src/cli/main.ts:
|
|
220
|
-
| roster | src/cli/main.ts:
|
|
221
|
-
| autonomy | src/cli/main.ts:
|
|
222
|
-
| bench | src/cli/main.ts:
|
|
223
|
-
| usage | src/cli/main.ts:
|
|
212
|
+
| recovery | src/cli/main.ts:1072 | stdout | 29 |
|
|
213
|
+
| recovery | src/cli/main.ts:1105 | stdout | 60 |
|
|
214
|
+
| projects | src/cli/main.ts:1199 | stdout | 45 |
|
|
215
|
+
| ui | src/cli/main.ts:1223 | stdout | 57 |
|
|
216
|
+
| ui | src/cli/main.ts:1246 | stdout | 76 |
|
|
217
|
+
| models | src/cli/main.ts:1645 | stdout | 11 |
|
|
218
|
+
| say | src/cli/main.ts:1669 | stdout | 46 |
|
|
219
|
+
| roadmap | src/cli/main.ts:1873 | stdout | 46 |
|
|
220
|
+
| deliverables | src/cli/main.ts:2117 | stdout | 70 |
|
|
221
|
+
| roster | src/cli/main.ts:2668 | stdout | 19 |
|
|
222
|
+
| roster | src/cli/main.ts:2675 | stdout | 19 |
|
|
223
|
+
| autonomy | src/cli/main.ts:2726 | stdout | 75 |
|
|
224
|
+
| bench | src/cli/main.ts:3033 | stdout | 107 |
|
|
225
|
+
| usage | src/cli/main.ts:3217 | stderr | 121 |
|
|
224
226
|
|
|
225
227
|
## Renderer candidates
|
|
226
228
|
|
|
@@ -246,6 +248,7 @@ The separate report-by-task fixture measures 79 cells.
|
|
|
246
248
|
| src/cli/help.ts:renderOverview | CLI | Direct | LayoutReport, blank, paint, wrap | 79 |
|
|
247
249
|
| src/cli/intake-output.ts:renderIntake | CLI | Direct | Report, grid | 76 |
|
|
248
250
|
| src/cli/intake-output.ts:renderIntakeChange | CLI | Direct | Report, grid | 54 |
|
|
251
|
+
| src/cli/launch-check.ts:renderLaunchCheck | CLI | - | Inline / indirect | Unmeasured |
|
|
249
252
|
| src/cli/learn-output.ts:renderLearnList | CLI | Direct | Report, grid | 55 |
|
|
250
253
|
| src/cli/learn-output.ts:renderLearnAccepted | CLI | Direct | Report, grid | Unmeasured |
|
|
251
254
|
| src/cli/learn-output.ts:renderLearnChange | CLI | Direct | Report | 70 |
|
|
@@ -345,6 +348,8 @@ The separate report-by-task fixture measures 79 cells.
|
|
|
345
348
|
| src/hub/dogfood.ts:formatDogfood | Hub | - | Inline / indirect | 43 |
|
|
346
349
|
| src/hub/envelope.ts:renderDigest | Hub | - | Inline / indirect | 1483 |
|
|
347
350
|
| src/hub/guidance-variants.ts:renderGuidanceVariantV1 | Hub | - | Inline / indirect | Guidance payload for agents |
|
|
351
|
+
| src/hub/hub-check.ts:renderHubCheck | Hub | - | Inline / indirect | Unmeasured |
|
|
352
|
+
| src/hub/hub-check.ts:renderHubCheckUnavailable | Hub | - | Inline / indirect | Unmeasured |
|
|
348
353
|
| src/hub/invocations.ts:renderInvocationResult | Hub | - | Inline / indirect | 109 |
|
|
349
354
|
| src/hub/memory-profile-check.ts:formatMemoryProfileCheck | Hub | - | Inline / indirect | 27 |
|
|
350
355
|
| src/hub/memory-stale-anchors.ts:formatMemoryStaleAnchors | Hub | - | Inline / indirect | 59 |
|
package/docs/design/roadmap.md
CHANGED
|
@@ -310,7 +310,7 @@ A local milestone has at most one remote number per repository. R3's `milestone_
|
|
|
310
310
|
|
|
311
311
|
`ahub roadmap check` and `ahub roadmap export` share one live issue-state resolver over screened roadmap references. It reads at most 100 unique refs with at most four requests in flight, a 20-second shared deadline and a 10-second limit per call. Unreadable, unattempted and late results stay `unknown`. The export uses only those live states and derives its issue totals from them. Plan-review evidence remains available to its existing readers. `ahub roadmap export` renders deterministic JSON and Markdown from the screened snapshot and these live states. `--write` writes only `docs/roadmap.md` and `docs/roadmap.json` in the caller's Git worktree after proving it shares the selected repository, enforcing its current deny, read-only and PII path policy and refusing symlinks or hardlinks. A partially completed two-file write is reported. `--issue <n> --apply --confirm <fingerprint>` updates that issue body only after a matching preview, under the same person/conductor policy. The fingerprint binds repository, issue and rendered body.
|
|
312
312
|
|
|
313
|
-
Task state and merge changes schedule affected public milestones for an ids-only supervision notice. The existing five-minute merge-readback sweep rechecks unresolved findings, including the close-lag boundary. The hub's own pass reuses one working-tree spec check for up to 60 s across its milestone reads (#1738), so spec freshness in a finding can be up to a minute old. Reads by the person and peers check again, once per read: a roadmap check keeps the one spec check it started with across all of its issue reads. A durable marker suppresses a finding already delivered; an unavailable feed or evidence is retried on a later change or sweep. Private tasks are never named. `scripts/check-roadmap.mjs` is a standalone Node validator: it checks the generated JSON's schema, linked spec IDs and tracked spec paths, and
|
|
313
|
+
Task state and merge changes schedule affected public milestones for an ids-only supervision notice. The existing five-minute merge-readback sweep rechecks unresolved findings, including the close-lag boundary. The hub's own pass reuses one working-tree spec check for up to 60 s across its milestone reads (#1738), so spec freshness in a finding can be up to a minute old. Reads by the person and peers check again, once per read: a roadmap check keeps the one spec check it started with across all of its issue reads. A durable marker suppresses a finding already delivered; an unavailable feed or evidence is retried on a later change or sweep. Private tasks are never named. `scripts/check-roadmap.mjs` is a standalone Node validator: it checks the generated JSON's schema, linked spec IDs and tracked spec paths, and compares every issue state with GitHub when a token is available. A ref recorded as `unknown` differs if GitHub resolves it to `open` or `closed`. CI blocks live drift in PRs that change either generated export. Other PRs and pushes to main use `--warn-drift`, which annotates drift and unreadable issue states. Structural errors fail in both modes, with or without a token. `scripts/check.sh` and the hosted decision job run the validator. The Node-only release docs checker exempts three records from its stamp manifest: `docs/roadmap.md`, `docs/smoke.md` and `docs/gsd-collaboration-analysis.md`. The roadmap validator covers the generated roadmap page.
|
|
314
314
|
|
|
315
315
|
## Dashboard and console surfaces (R5)
|
|
316
316
|
|
|
@@ -481,6 +481,40 @@ without adding writable settings or widening caller authority. See
|
|
|
481
481
|
[SDLC required checks](../sdlc.md#required-checks-at-initialization) for bounds and
|
|
482
482
|
unsupported workflow shapes.
|
|
483
483
|
|
|
484
|
+
A task's CI watcher starts at the first exact-head PR lifecycle record, recorded
|
|
485
|
+
wait or submission. It remains attached across draft work, review and
|
|
486
|
+
approval, with a deadline per phase, and stops on a different head, merge,
|
|
487
|
+
close or cancellation. Each poll is one bounded, metadata-only
|
|
488
|
+
`gh api graphql` read. It reads check contexts, draft and conflict state,
|
|
489
|
+
the latest ReadyForReview timestamp and unresolved thread flags. Missing,
|
|
490
|
+
errored or paginated proof is pending. A macOS aggregate from a pre-ready
|
|
491
|
+
workflow run cannot report a ready failure. Draft results go to the owner,
|
|
492
|
+
in-review results to the owner and reviewer, and approved results to the
|
|
493
|
+
reviewer and conductor. Merge readiness requires exact-head required checks
|
|
494
|
+
and zero unresolved threads. Two consecutive conflicts notify the owner and conductor once per head.
|
|
495
|
+
After ten minutes, a successful empty rollup tells them that no run has been
|
|
496
|
+
observed if the watcher has never seen a run on that head. An unreadable
|
|
497
|
+
response does not establish absence. Suppress the missing-run notice while the
|
|
498
|
+
PR is conflicting. If the conflict clears on the same head, report a still-missing
|
|
499
|
+
run after a successful read. The watcher keeps running until its phase deadline.
|
|
500
|
+
Each notice carries identifiers and check names only. Merge remains a
|
|
501
|
+
separate guarded action.
|
|
502
|
+
When the only missing prerequisite is an attributable run still in progress, the watcher waits for completion. A reservation records the check start time. Copied shard or aggregate results cannot spend another retry or trigger a final failure notice. A confirmed retry renews its phase deadline once. The watcher reports the final result even if a failure was already reported before the retry.
|
|
503
|
+
|
|
504
|
+
On a ready PR in review or approved, a configured retry budget can rerun one
|
|
505
|
+
failed required shard from a verified workflow run. The hub reserves each
|
|
506
|
+
attempt in task history before dispatch. Reservations bind the job, run
|
|
507
|
+
attempt and PR head, survive hub restarts and reset for a new head. A failed
|
|
508
|
+
dispatch consumes its reservation because GitHub may already have accepted it.
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
Approving a dependency sends one `ready` task notice to the owner of each
|
|
512
|
+
owned, unstarted dependent with no remaining dependency or planned-start
|
|
513
|
+
hold. Reopening and approving the dependency again sends a new notice if the
|
|
514
|
+
dependent still qualifies. The planner's `Planner work ready:` notice lists
|
|
515
|
+
these cards as `owned_ready: #id (owner)`. Unowned dependents still use the normal
|
|
516
|
+
offer path.
|
|
517
|
+
|
|
484
518
|
## Entry diagnostics (#1328 T2)
|
|
485
519
|
|
|
486
520
|
Build-entry guidance is pure snapshot data, ordered as missing issue identity,
|
package/docs/dogfood.md
CHANGED
|
@@ -19,6 +19,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
19
19
|
| Hub skills on other agent hosts (#1622, hub task 1063) | source and fixture coverage; available after release and `ahub setup` | `ahub doctor` `hub skills` per-host counts of installed, stale, modified, foreign and linked; `ahub setup --undo` removes only unmodified hub trees |
|
|
20
20
|
| Hub-owned jcode home, `jcode_mcp_allow` and roster add preflight (#1627, #1621) | source and isolated probe (`docs/verification/2026-11-22-jcode-separate-home.md`); this repository sets neither `jcode_home` nor `jcode_mcp_allow` yet | doctor `jcode MCP servers` row reads ok with allowed names listed; init reruns report drift only; preflight refuses without a terminal or `--yes` |
|
|
21
21
|
| Doctor routing classes warning (#1626, hub task 1069) | on after release; `ahub doctor` runs here | count of rostered implementers named as in no `[classes.*].peers` list; zero false reports for unrostered or non-implementer peers |
|
|
22
|
+
| Claude profile hook shell guard (#1783) | source and shell fixtures; active after release and `ahub setup` for the selected home | zero runtime starts without a hub target or with a launch marker, and one delivery from a managed session's own hook. See the [macOS before/after receipt](verification/2026-11-29-claude-profile-hook.md). |
|
|
22
23
|
| Claude instruction receipt (#1622 step 3b) | fixture coverage only; no command authority is granted in this step | count pending-to-confirmed outcomes without prompt text after a verified native session; forged or unbound receipts must confirm zero times |
|
|
23
24
|
| Exact instructed command (#1622 step 4) | isolated installed-copy and scratch-daemon fixtures; source-checkout runtimes refuse | one confirmed command consumes one receipt; replay, unclassified and PII forms execute zero times |
|
|
24
25
|
| Exact instructed claim verdict (#1622 follow-up) | isolated installed-copy and scratch-daemon fixtures; available after release and restart | one confirmed no-manifest task claim records its exact slot and verdict once; substitution, replay and file-backed forms execute zero times |
|
|
@@ -40,9 +41,11 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
40
41
|
| Distinguishable sessions and sender provenance (#1036, `session_identity`) | on after release and upgrade: a connection that names a peer id but is not that peer's current session is a distinct `<peer>~<origin>` session that can send and read, holds none of the peer's roles and replaces nobody; the channel plugin binds to its own project; every envelope and attach event records the connection. Nothing is refused to a connection that worked before. The recovery label `session_identity` applies once an unsettled delivery holds a session's message | `grep '"session":true' .agenthub/state/events.jsonl` lists every message a foreign session sent, with its minted id and no path or text; a recipient's header shows `from "claude~<id>"` for it; test/identity-provenance.test.ts (AC1, AC3, AC4, recovery label) and test/identity-channel-project.test.ts (AC2, real plugin against a new and an old hub) hold it. Not authentication: a same-user process can always act as the user |
|
|
41
42
|
| Claude channel attach evidence (#1171) | source and fixture coverage after merge and plugin/daemon upgrade; native Claude push proof remains unverified until a live `ahub claude` session | `ahub status` shows `channel` or `tools-only` with its evidence label; a marker-inheriting non-channel parent remains pull-only and its delivery is read by `hub_inbox` (`test/claude-channel-evidence.test.ts`, `test/daemon.test.ts`); inspect native TUI attaches separately, since fixtures use a synthetic parent row |
|
|
42
43
|
| Jcode peer detached from the hub (#1668) | source and fixture coverage after merge and daemon upgrade; a real TUI that reaps the socket and re-serves it is not recorded here, because no Jcode TUI runs on this repository | `ahub status` lists the peer in Attention and `ahub status --json` carries `peers.<id>.detached` with the cause and `ahub jcode` (or `ahub jcode --as <id>`), and a hub-owned launch of that peer clears it; `test/jcode-instance-daemon.test.ts` holds AC1 and AC2 (the record, the clear, a start refused before it reaches the peer that keeps it, and an off-roster hello that records nothing), `test/status-default-view.test.ts` the two renderings, and the refusal text and close code are unchanged with no listener added (AC3) |
|
|
44
|
+
| Hub check: `hubCheck` in the status reply, a downgraded-link Attention item and the `ahub up` block (#1798) | source and fixture coverage after merge and daemon upgrade; runs on this repository's own hub once released | `ahub status --json` `hubCheck.degraded` is empty on a healthy hub, and the minutes from a downgraded Claude attach to the person's first corrective `ahub claude` (the Attention item shows it at once instead of only in the peer table); the wrapper line (shown only when stderr is a terminal) and the Claude session-start notice run on this repository once released, and the share of Claude starts whose notice reads verified rather than `pending` or unverified shows whether the in-session check is believed |
|
|
43
45
|
| Accepted channel delivery settlement (#1172) | source and fixture coverage after merge and plugin/daemon upgrade; native channel handling and long-running-session behavior remain unverified | `bus.accepted_settle_ms` defaults to 10 minutes; explicit channel `hub_inbox` metadata shows accepted/held ids and revisions even when a pull is blocked; a timeout becomes `needs_review` without replay; an important/task/review timeout yields one ids-only status notice when the configured conductor feed is on, with `feed: off` remaining an opt-out; daemon and MCP fixtures cover timeout and opt-out; live accepted-to-completed/timeout behavior remains unverified |
|
|
44
46
|
| Cross-project task handoff with state follow-back (#604, `task_handoff`) | on after release and upgrade: `ahub task handoff` and `hub_task_handoff` register work for another registered project that runs agent-hub on this machine as an ownerless proposal on its board; the requesting peer is told each state change as a `kind: task` message. Nothing is queued, and the origin has no authority there | `ahub board --handoffs` lists what this project handed over with the last state each target reported; `ahub board` and `ahub task show` in the target name the origin project and peer; a handoff for a spec issue that already has an open task there is refused with the task ids unless `duplicate_ok` gives a reason, and the receiving conductor can cancel an unaccepted handoff (#1175; the share of refused handoffs and the cancels the person no longer has to run show whether duplicates still reach the board); a handoff the target did not confirm (a timeout, #1203 T1) is reported as `outcome_unknown` with a key and a retry with `--key` files it once, and a follow-back names the target's task (`refs.handoff`) so a local task of the same number cannot drop it (count `outcome_unknown` refusals, and any target task filed twice for one origin: there should be none; from T2 (#733) the origin also asks every 5 minutes and when a target restarts, so a missed notify arrives within a period: compare how long a handoff row stays behind its target (its `updated` against the target's state), and count `changes requested` and `reopened` messages, which used to be silent; from T3 (#734) `ahub task handoff --list` shows each handoff's age and whether its target is reachable, unreachable (with the cause) or moved, `--sync` asks the targets now, a wire-version refusal is `older_target` and an instance mismatch is `mismatch` instead of "not running", and failed notifications or other catch-up failures log one line per target and cause per 15 minutes; a proven-stopped target logs once per state change (#1550 AC2): count the `handoff catch-up of ... failed` and `... skipped` lines in `hub.log` by cause, how often `--list` shows a target unreachable or moved for more than a day, and whether `--sync` is ever needed after a restart (it should not be: the catch-up reads the state within a period); T1 and T2 and T3 of #1203 are now all built; test/handoff-daemon.test.ts runs two real daemons (AC1 to AC5, #1175, the recovery label and #1203 T1 AC1 and AC4, T2 AC2, AC3 and AC5, T3 AC6 and AC7), test/handoff-core.test.ts and test/handoff-board.test.ts hold the pure core and the tables |
|
|
45
47
|
| Staged project upgrades (#1039) | off: available for the person to upgrade projects independently; this development hub is not upgraded by a fixture | test/published-protocol-compat.test.ts uses both the published 0.25.0 protocol-floor and release N-1 (pinned in `PUBLISHED_FIXTURES`) clients/plugins and reverse daemons; test/staged-upgrade.test.ts checks independent holds and scoped effects; test/staged-runtime-daemon.test.ts checks a real release-root daemon after mutable install removal; test/board-schema-guard.test.ts checks named pre-effect refusal and WAL metadata; `test/project-runtime.test.ts` and `test/project-runtime-lifecycle.test.ts` cover updated resolver retention/refusal and real lifecycle/dashboard routing with synthetic captured daemons; `test/runtime-capture-prune.test.ts` covers references, bounded retention and publication races; `test/upgrade-stopped-project.test.ts` verifies no preservation for stopped projects. These fixtures do not prove published pre-0.26 CLI behavior |
|
|
48
|
+
| Release inventory and prune (#1781): `ahub releases list` and `ahub releases prune [--apply]` | on after release for the person on this machine; the background worker's limits are unchanged and it is not run by a fixture here. `--apply` is the person's own: an agent session is refused, `--live-test` included | `test/releases-inventory.test.ts` on a fixture hub home: four-kind classification naming the referring project, preview removes nothing, referenced entries (project, recovery receipt, live process) and unknown, symlinked and legacy-install-with-unknown entries stay, an unreadable state directory or process table keeps everything with a cause, a changed or too-young entry is skipped, a failed delete names its quarantine path. The metric is bytes under `releases` after a prune: `ahub releases list --json` sums only leaf entries |
|
|
46
49
|
| Stopped-project runtime retarget (#1540): `ahub upgrade [--all-stopped] --to <v>` | source and fixture coverage, active after release; this development hub is not upgraded by it, and a real `ahub up` of a retargeted project is not run here | `test/upgrade-stopped-retarget.test.ts`: dry-run rows (retarget, current, running, refused), the verified `runtime.json` rewrite with no daemon, terminal, peer or recovery operation, the start-between-plan-and-write refusals, one staging for the batch and a nonzero exit on a failed retarget; `--yes` waits through a pipe for the recovery operation (AC10) |
|
|
47
50
|
| Approval head binding and re-review (#1047, #1121) | source/fixture coverage; the #1121 stale-head protections and actionable refusals await release and upgrade; live re-file verification not run | `test/review-head-binding.test.ts` covers both-head refusals, moved-PR commitless re-files and omitted-head stale approvals; `test/task-review-refile.test.ts` covers owner re-submit, reviewer withdrawal, legacy verdict heads, merged/cancelled refusals and held-screen races; `test/sdlc-queue.test.ts` and `test/sdlc-merge.test.ts` reject stale approval at queue and dispatch. `ahub task show <id> --json` exposes `approval.head`, `latestHead`, `mismatch` and `current`; verdict history retains `reviewedHead` |
|
|
48
51
|
| Default agent set started by `ahub up` (#608, `start.agents`) | off here: this repository's agents are started by their own terminals; it is a machine-local setting and a committed config cannot turn it on. On for a person who runs `ahub setup` and `ahub up` on a project that lists agents. | each `ahub up` prints one line per agent (started, already attached, or the refusal with the manual command); the `peer_start` replies in `hub.log` and the terminal provider's recorded starts show whether a listed agent attached, and `ahub status` shows its state after |
|
|
@@ -157,11 +160,12 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
157
160
|
| Lifecycle identity linked by the hub (#694, #723) | on in advise; links at propose and accept from the title and `refs.repo`, with a groom backfill as the safety net | open tasks still showing `issue identity missing` right after propose (should be only titles that name no issue or a qualified title without `refs.repo`) |
|
|
158
161
|
| Planner plan review (#481 S9) | advise | plans reviewed before build |
|
|
159
162
|
| Planner board-changed notice (#758) | on here, with the lifecycle in `advise`: `claude` is the planner, so a card another peer proposes or re-plans reaches it once at task weight, and its own writes, state moves, reviews and assignments cost it no turn | per planner and week: `task`-kind hub envelopes whose body starts `The board changed` (target: one per planning change, none after the planner's own write), the same envelopes at `fyi` priority (recorded, no turn: at most one per 10 minutes), and the count still queued at once (target: at most one). Read from `ahub logs` and the event log; the 12 copies in 44 minutes seen on 2026-10-24 are the baseline |
|
|
160
|
-
| Planner capacity and dependency notices (#785 P1a) | source/fixture coverage; active after release and hub upgrade | write-triggered `capacity_released` and `
|
|
163
|
+
| Planner capacity and dependency notices (#785 P1a) | source/fixture coverage; active after release and hub upgrade | write-triggered `capacity_released`, `backlog_ready` and `owned_ready` lines in `Planner work ready:` task envelopes; at most one queued envelope per effective planner, peer/WIP/card ids only; no automatic pull |
|
|
161
164
|
| Release preparation and guarded tag (#787 P3b) | scratch-repo fixtures with a local bare remote; the real history was dry-run in a disposable clone; release branches are prepared with it, and since #1273 it also renders the generated README facts blocks | `scripts/release-prepare.ts` run on a `release/<version>` branch and a release PR that carries the version, CHANGELOG, report and stamps; `scripts/release-tag.ts` refusing without the person's consent and pushing one tag after it; native version-named receipts retained while dated release reports are excluded (#1004 fixture) |
|
|
162
165
|
| Opt-in auto pull (#785 P1c) | source/fixture coverage and a real daemon test; off by default, active only where a person sets `tasks.auto_pull` in `config.local.json` | `backlog pulled` history entries with `by: hub` and an `auto_pull:` note; at most one per trigger and peer; no pull with the setting off, for unreserved, PII, pinned, frozen or dependency-blocked cards |
|
|
163
166
|
| Opt-in assignment queue backpressure (#800) | off by default; this change enables no live repository policy | `ahub route explain` and status queue-count/age/unknown reasons beside WIP; bounded summary reads, held-offer release, post-await offline/not-attached origin retention with plan-policy handoff, and role-scoped override regressions; no delivery disposition or routing-template change |
|
|
164
|
-
| Per-head CI watcher and `ci_completed` (#785 P1b, #1490
|
|
167
|
+
| Per-head CI watcher and `ci_completed` (#785 P1b, #1490, #1801 T1) | source and fake GitHub fixtures, active after release and hub upgrade | minutes from exact-head CI completion to the next owner action on a draft or conductor action after approval. Record conflict and missing-run notices separately. The watcher uses one metadata read per poll, and merge-ready needs green checks and zero unresolved threads. |
|
|
168
|
+
| Required CI shard reruns (#1801 T3, AC7) | off in this repository (default 0). Enabling reruns is a separate change after every hub that reads this repository's `.agenthub/sdlc.toml` runs 0.51.0. | After enabling, count `ci_rerun` requests per merged PR and how many of the requested reruns passed. |
|
|
165
169
|
| Plan conformance (#481 S2, #1403 T6) | advise | PRs with files outside the plan or under exclusions; accept base-to-local remote-tracking default tip (no task head needed); done base-to-unique merge-base of recorded task head/default tip, excluding own commits. Real temp Git graphs cover upstream/own/integrated/unrelated/shallow/ambiguous/missing refs and changed/none/unknown advice; default tip rechecked, no fetch or checkout-HEAD substitution, no live drift receipt yet |
|
|
166
170
|
| Test integrity for bug fixes (#481 S4) | advise | bug PRs without a red-first receipt, modified pre-existing tests |
|
|
167
171
|
| Eval gate for agent configuration (#481 S5) | advise; mechanism only, `eval_check` is not set here until the person chooses a suite (#251, #266), so configuration PRs show `eval check not configured` as a note | configuration PRs with a missing, failing or unreported eval check; recorded pass rate and suite on the approval note |
|
|
@@ -306,7 +310,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
306
310
|
| acon lineage read declaration (#1632) | pinned agent-console 0.2.0 loads the manifest and keeps the lineage route unavailable; 0.3.x acceptance is pending | pinned console route returns 400 for lineage, its shell displays the one-line refresh error, and dashboard navigation gains no tab |
|
|
307
311
|
| Configured print adapter (#1515) | source and isolated conformance fixtures; real non-ACP CLI receipt is person-run | stdout delivery and truncation, timeout and stderr failure, sandbox write denial and reviewer-pool exclusion |
|
|
308
312
|
| Peer activity category (#1512 T2) | source and isolated fixtures; live dashboard and Space presentation are deferred | live JSON status emits only the kind and start time, clears at lifecycle boundaries, omits private activity and leaves no persisted row |
|
|
309
|
-
| Agent CLI version policy and trust (#691) | on after the release: Kimi Code 2.
|
|
313
|
+
| Agent CLI version policy and trust (#691) | on after the release: Kimi Code 2.8.1 passed all nine [model-free reviewer proofs](verification/2026-11-29-kimi-281-reviewer-compat.md) with scratch trust and with the verified pin alone, and its [interactive TUI legs remain unverified](verification/2026-11-29-kimi-tui-281.md); Claude Code 2.1.332 headless implementer passed all 22 [model-free native cases](verification/2026-11-25-claude-implementer-2.1.332.md) in this repository; Codex 0.163.0 verified by the [2026-10-22 receipt](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 by the [2026-10-24 receipt](verification/2026-10-24-codex-0164-reviewer-isolation.md); Kimi 2.3.0 and Qwen 0.26.0 verified by the [model-free receipt](verification/2026-10-22-kimi-qwen-compat.md), Kimi 2.3.1 by the [2026-10-25 model-free receipt](verification/2026-10-25-kimi-231-reviewer-compat.md) and 2.3.2 by the [2026-10-26 one](verification/2026-10-26-kimi-232-reviewer-compat.md), with account/provider live legs unverified; Qwen basic ACP 0.27.0 has a [macOS arm64 account-free receipt](verification/2026-11-09-qwen-0270-acp.md), while historical setter A/B/B has an unknown third-request purpose; the [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) passes ordinary A/B/A on 0.26.9/0.27.0, with production setter admission still unavailable; agy exact 1.5.3 has an [account-free receipt](verification/2026-11-08-agy-1.5.3.md); effective after release and upgrade, with the 1.4.x line unchanged | model-free isolation receipts, `ahub agents` verdicts, versions trusted per machine, lead time from an `agent-compat` issue to a receipt |
|
|
310
314
|
| Peer child environment isolation (#1077) | source and fixture coverage; no native account or Orca session used | daemon peer children, version probes and process-table helpers contain no `ORCA_*`; person-owned native launches keep their fixture pane's `ORCA_*` context while replacing agent identity; explicit Claude/Codex selectors pass through where the adapter inherits them; preload clears ambient selectors without changing fixture home bytes |
|
|
311
315
|
| Qwen's own TUI over dual output (#286 Part 3) | live dual-output TUI use here is unverified; source/account-free fixtures only. The limits (a hub deny completes its known delivery without an answer but fences later input until a new personal turn or verified generation; a stalled turn is stopped only with Esc in the Qwen terminal) are for the person at that terminal to accept. Verified on Qwen 0.26.1 under an isolated HOME by the [2026-10-25 receipt](verification/2026-10-25-qwen-dual-output-t0.md); the live account leg is the person's. The [2026-11-10 fixture receipt](verification/2026-11-10-qwen-0270-dual-output.md) passes required normal-Bus Q2 and Q3/Q5/Q6/Q7 on matched private 0.26.1/0.27.0 on macOS arm64, qualifying exact dual-output 0.27.0 after release; the [0.27.1 receipt](verification/2026-11-10-qwen-0271-dual-output.md) repeats it on exact 0.27.1 against matched 0.27.0; real-model/Linux/live-here use remain unverified | `test/qwen-dual.test.ts` against a fake dual-output Qwen; fixture Q2 final USER/Stop/ordinary-provider counts 2/2/2, five Q3 cases, Q5/Q6/Q7 and final closure; in real use `ahub status` stalled/detached notices per peer and the `needs_review` count of Qwen deliveries (an Esc or an exited terminal ends a turn that way; a deny completes while its durable input fence remains). Task 859 fake controls measure zero second submits before recovery proof and offline at the 30 s operational deadline; no native deny-completion ACK is qualified |
|
|
312
316
|
| Benchmarks (#251, #637) | off: `bench.enabled = false`. The task-routing gate (#637 part 1) is on in CI for every PR: `routing-receipt` fails a change to `templates/routing.toml` without a matching receipt; the model-routing gate (#637 part 2) is the second step of the same workflow: `scripts/check-model-routing-receipt.ts` fails a change to the model-routing keys without a matching `-modelrouting-` receipt, and wants a by-hand `--live` half when an alias or judge moves | bench receipts; `docs/verification/*-routing-*.md` and `*-modelrouting-*.md` receipts; a `routing-eval` check run on every PR with `eval_pass_rate=` and `eval_suite=` in its title (name it as `eval_check` to make it the eval gate); `bun scripts/benchmarks/routing-gate.ts` and `model-routing-gate.ts` print the default's numbers (100% on both splits); the live half (served model ids) has not been run against a gateway yet |
|