@staix/agent-hub 0.38.0 → 0.40.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 +84 -0
- package/README.md +28 -12
- package/docs/adding-an-ai-tool.md +7 -5
- package/docs/agent-notes/README.md +23 -0
- package/docs/agent-notes/adapters.md +9 -5
- package/docs/agent-notes/benchmarks.md +2 -0
- package/docs/agent-notes/budget.md +9 -0
- package/docs/agent-notes/bus.md +1 -0
- package/docs/agent-notes/daemon.md +21 -9
- package/docs/agent-notes/local-worker.md +4 -2
- package/docs/agent-notes/security-review.md +56 -0
- package/docs/agent-notes/tasks.md +22 -6
- package/docs/agent-notes/tests.md +10 -9
- package/docs/contracts/companion-cli-v1.json +4 -0
- package/docs/design/adapters.md +142 -0
- package/docs/design/agent-hub-architecture.md +46 -1
- package/docs/design/agent-hub.md +10 -0
- package/docs/design/bus.md +7 -0
- package/docs/design/cli-output.md +183 -0
- package/docs/design/execution-reference.md +6 -1
- package/docs/design/roadmap.md +191 -0
- package/docs/design/task-board.md +185 -5
- package/docs/dogfood.md +30 -9
- package/docs/events.md +7 -7
- package/docs/memory.md +5 -5
- package/docs/operations.md +315 -54
- package/docs/profiles.md +101 -8
- package/docs/quickstart.md +47 -6
- package/docs/research.md +6 -3
- package/docs/roles.md +52 -0
- package/docs/sdlc.md +190 -2
- package/docs/security.md +90 -15
- package/docs/text-projection.md +1 -0
- package/docs/verification/2026-11-13-claude-implementer-2.1.323.md +59 -0
- package/docs/verification/2026-11-13-codex-01672-reviewer-isolation.md +69 -0
- package/docs/verification/2026-11-14-0.39.0.md +51 -0
- package/docs/verification/2026-11-14-codex-0169-reviewer-isolation.md +70 -0
- package/docs/verification/2026-11-14-codex-0169-reviewer-tool-call.md +48 -0
- package/docs/verification/2026-11-14-pi-152-compat.md +45 -0
- package/docs/verification/2026-11-15-0.40.0.md +39 -0
- package/docs/verification/2026-11-16-pi-loopback-1447.md +39 -0
- package/docs/verification/pi-152-model-free.ts +57 -0
- package/docs/verification/pi-152-native.mjs +21 -0
- package/docs/verified.json +48 -25
- package/package.json +4 -4
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +2266 -530
- package/plugins/agent-hub/kimi-review-policy-worker.js +16 -11
- package/plugins/agent-hub/server.js +2423 -645
- package/src/adapters/acp-model-policy.ts +1 -1
- package/src/adapters/acp-session-model.ts +35 -0
- package/src/adapters/acp.ts +14 -0
- package/src/adapters/agy/definition.ts +2 -2
- package/src/adapters/agy/hooks.ts +7 -0
- package/src/adapters/claude-channel.ts +1 -1
- package/src/adapters/claude-implementer.ts +8 -0
- package/src/adapters/claude-print-child.ts +26 -2
- package/src/adapters/claude-print.ts +4 -0
- package/src/adapters/codex-appserver.ts +90 -16
- package/src/adapters/codex-review-isolation.ts +63 -17
- package/src/adapters/compat.ts +10 -10
- package/src/adapters/conformance/fakes/acp-server.ts +11 -2
- package/src/adapters/conformance/fakes/app-server.ts +5 -1
- package/src/adapters/conformance/fakes/pi-rpc.ts +1 -1
- package/src/adapters/definitions/builtin-metadata.ts +12 -12
- package/src/adapters/definitions/native-cli-jcode-mcp.ts +18 -3
- package/src/adapters/definitions/native-config-defaults.ts +1 -1
- package/src/adapters/definitions/native-config-policy.ts +1 -1
- package/src/adapters/definitions/native-quota.ts +122 -0
- package/src/adapters/definitions/native-recovery.ts +3 -0
- package/src/adapters/definitions/qwen.ts +2 -2
- package/src/adapters/kimi-review.ts +23 -0
- package/src/adapters/kimi-wire-usage.ts +39 -16
- package/src/adapters/local-worker.ts +9 -4
- package/src/adapters/pi-state-model.ts +12 -0
- package/src/adapters/pi.ts +76 -11
- package/src/adapters/print-result-model.ts +24 -0
- package/src/adapters/registry-types.ts +12 -2
- package/src/adapters/registry.ts +19 -2
- package/src/adapters/reviewer-print.ts +132 -16
- package/src/adapters/role-eligibility.ts +99 -0
- package/src/adapters/same-directory.ts +16 -0
- package/src/cli/agy-mcp.ts +18 -7
- package/src/cli/answer-args.ts +11 -3
- package/src/cli/console-question.ts +1 -1
- package/src/cli/console-state.ts +98 -11
- package/src/cli/console.ts +6 -2
- package/src/cli/error-format.ts +19 -0
- package/src/cli/free-text.ts +20 -0
- package/src/cli/handoff-args.ts +1 -1
- package/src/cli/help.ts +350 -30
- package/src/cli/identity-audit.ts +8 -7
- package/src/cli/identity.ts +27 -4
- package/src/cli/init-prompt.ts +31 -2
- package/src/cli/init-roles.ts +156 -0
- package/src/cli/init-settings.ts +24 -2
- package/src/cli/init.ts +232 -17
- package/src/cli/main.js +2 -2
- package/src/cli/main.ts +250 -69
- package/src/cli/model.ts +1 -1
- package/src/cli/output-standard.ts +56 -0
- package/src/cli/output.ts +199 -9
- package/src/cli/preview.ts +1 -1
- package/src/cli/recovery-launch.ts +114 -0
- package/src/cli/recovery-package.ts +14 -7
- package/src/cli/recovery-version-preflight.ts +104 -0
- package/src/cli/roadmap.ts +215 -0
- package/src/cli/role-doctor.ts +39 -0
- package/src/cli/sdlc-output.ts +66 -1
- package/src/cli/smoke-pty-bridge.ts +7 -24
- package/src/cli/study-output.ts +54 -0
- package/src/cli/study.ts +14 -1
- package/src/cli/task-output.ts +3 -1
- package/src/cli/terminal-recovery.ts +14 -0
- package/src/cli/upgrade-presentation-flags.ts +2 -2
- package/src/cli/upgrade-presentation.ts +4 -0
- package/src/cli/upgrade-restore-state.ts +12 -3
- package/src/cli/upgrade-runtime.ts +40 -2
- package/src/cli/upgrade.ts +8 -4
- package/src/hub/advisor-survey.ts +139 -0
- package/src/hub/audit-source.ts +66 -0
- package/src/hub/board.ts +677 -15
- package/src/hub/budget.ts +54 -4
- package/src/hub/bus.ts +9 -0
- package/src/hub/check-runner.ts +3 -4
- package/src/hub/ci-watch.ts +19 -4
- package/src/hub/conductor.ts +14 -8
- package/src/hub/config-apply.ts +2 -1
- package/src/hub/config-edit-host.ts +77 -5
- package/src/hub/considered-findings.ts +47 -0
- package/src/hub/control-client.ts +1 -1
- package/src/hub/daemon.ts +585 -98
- package/src/hub/deliverable-files.ts +17 -1
- package/src/hub/dogfood-profile.ts +3 -2
- package/src/hub/events.ts +25 -4
- package/src/hub/execution-reference.ts +1 -1
- package/src/hub/folder-trigger.ts +11 -4
- package/src/hub/github-import.ts +81 -0
- package/src/hub/hub-tools.ts +117 -20
- package/src/hub/install-policy.ts +23 -0
- package/src/hub/kimi-usage.ts +34 -2
- package/src/hub/lifecycle-schema.ts +3 -3
- package/src/hub/memory-profile.ts +9 -1
- package/src/hub/memory-sync-state.ts +1 -0
- package/src/hub/model-overrides.ts +2 -1
- package/src/hub/no-writes.ts +5 -0
- package/src/hub/operational-authority.ts +8 -1
- package/src/hub/operational-view.ts +6 -2
- package/src/hub/peers.ts +2 -0
- package/src/hub/pi-failure.ts +7 -0
- package/src/hub/plan-conformance.ts +20 -2
- package/src/hub/question-desk.ts +26 -7
- package/src/hub/questions.ts +33 -5
- package/src/hub/quota-account.ts +34 -0
- package/src/hub/recovery-policy.ts +18 -4
- package/src/hub/research-evidence.ts +51 -3
- package/src/hub/research.ts +77 -13
- package/src/hub/restart.ts +21 -0
- package/src/hub/review-budget.ts +88 -0
- package/src/hub/review-findings.ts +93 -12
- package/src/hub/reviewer-pool-config.ts +6 -2
- package/src/hub/reviewer-pool.ts +39 -6
- package/src/hub/roadmap-triage.ts +86 -0
- package/src/hub/roadmap-unplaced.ts +169 -0
- package/src/hub/roadmap-view.ts +83 -0
- package/src/hub/roadmap.ts +127 -0
- package/src/hub/routing.ts +7 -3
- package/src/hub/sdlc-merge.ts +6 -5
- package/src/hub/sdlc-queue.ts +17 -7
- package/src/hub/sdlc-release.ts +1 -1
- package/src/hub/sdlc.ts +47 -8
- package/src/hub/security-audit.ts +178 -0
- package/src/hub/security-pass.ts +115 -0
- package/src/hub/settings.ts +11 -5
- package/src/hub/source-read.ts +80 -2
- package/src/hub/sources.ts +57 -9
- package/src/hub/specs-task.ts +7 -0
- package/src/hub/startup-event-seeds.ts +5 -3
- package/src/hub/startup-timing.ts +1 -0
- package/src/hub/synthesis-readiness.ts +279 -0
- package/src/hub/task-sweep.ts +29 -2
- package/src/hub/task-worktree.ts +37 -0
- package/src/hub/tasks.ts +1464 -76
- package/src/hub/text-projection.ts +11 -1
- package/src/memory/capture.ts +2 -1
- package/src/pi/dependency-publish.ts +50 -0
- package/src/pi/extension.ts +1 -1
- package/src/pi/launch.ts +1 -1
- package/src/pi/task-dependencies.ts +249 -0
- package/src/ui/index.html +56 -13
- package/src/ui/office-model.ts +11 -3
- package/src/ui/office-space.ts +50 -30
- package/src/ui/plugin-questions.ts +5 -0
- package/src/ui/plugin.ts +27 -12
- package/templates/config.json +1 -1
package/docs/sdlc.md
CHANGED
|
@@ -76,6 +76,80 @@ S0/S8 establish vocabulary and checklist compatibility only. Later slices must r
|
|
|
76
76
|
|
|
77
77
|
The repository uses feature branches and PRs. Release PRs require merge commits because documentation stamps name release-branch ancestors. Do not describe squash as a universal release practice. Worktree/branch cleanup follows confirmed merge; installation and native readback are separate live receipts. A successful source gate cannot certify those receipts.
|
|
78
78
|
|
|
79
|
+
## Moving from GSD
|
|
80
|
+
|
|
81
|
+
This is a migration from the GSD planning tool and its `.planning/` artifacts.
|
|
82
|
+
The retired `gsd-lite` setting below is a different compatibility path. The hub
|
|
83
|
+
uses the issue as the spec and the board as the current work record.
|
|
84
|
+
|
|
85
|
+
| GSD artifact | Hub destination |
|
|
86
|
+
| --- | --- |
|
|
87
|
+
| Milestone | Release line and release train |
|
|
88
|
+
| Phase and plan | Board task with a file/symbol plan and dependencies |
|
|
89
|
+
| Requirements and acceptance | Spec issue acceptance criteria and a head-bound `criteria` receipt |
|
|
90
|
+
| `.planning/STATE.md` | Task board and `ahub sdlc status` |
|
|
91
|
+
| CONTEXT decisions, `D-xx` and `GATE-xx` | The spec issue's Decisions section, retaining the IDs; `hub_remember` for a public operational decision |
|
|
92
|
+
|
|
93
|
+
Archive `.planning/`; do not delete it. First find scripts and tests that read
|
|
94
|
+
its plans, receipts, decisions or gates, then preserve those paths or update
|
|
95
|
+
readers in a reviewed change before relocating anything. Keep the original
|
|
96
|
+
artifacts and their references in version control. Archiving marks them historical;
|
|
97
|
+
it does not make their evidence disposable. Move current scope and acceptance
|
|
98
|
+
criteria into spec issues and board tasks without inventing completed gates.
|
|
99
|
+
|
|
100
|
+
Review the project's AGENTS.md and README in the same migration: replace GSD
|
|
101
|
+
execution instructions and milestone-based version rules with the project's
|
|
102
|
+
current task, review and release rules. Preserve historical decision references.
|
|
103
|
+
The init notice only points here; it never imports or edits `.planning/`.
|
|
104
|
+
|
|
105
|
+
Set the release policy in committed `.agenthub/config.json` before requesting
|
|
106
|
+
release authorization. For a project with `package.json` and no
|
|
107
|
+
`docs/verified.json`, the relevant fragment is:
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"release": {
|
|
112
|
+
"version": "package.json",
|
|
113
|
+
"docs": "none"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
`release.version` may instead be `release-notes` with `release.notesPath`
|
|
119
|
+
(default `docs/releases/v{version}.md`), or `none` for an exact-commit version
|
|
120
|
+
binding. Use `release.docs: "checker"` when retaining `docs/verified.json`.
|
|
121
|
+
`none` is refused while that manifest exists; local config does not override
|
|
122
|
+
committed release policy. This exemption skips documentation checking only,
|
|
123
|
+
without supplying release consent, a tag or publication.
|
|
124
|
+
|
|
125
|
+
Initialization and person-only setup steps below run from a separate person-owned terminal.
|
|
126
|
+
An agent or delegated live test cannot impersonate that person. Command forms
|
|
127
|
+
are the ones printed by `ahub help`; placeholders name values to choose.
|
|
128
|
+
|
|
129
|
+
1. Enable `advise` first with `ahub init --sdlc advise`, then review its shared
|
|
130
|
+
changes. To edit existing lifecycle settings, use the help form
|
|
131
|
+
`ahub settings edit <config.local.json|sdlc.toml> (set <path> <json> | remove <path>)... [--reason <text>] [--preview] [--yes] | backups [--json]`.
|
|
132
|
+
For example, `ahub settings edit sdlc.toml set mode '"advise"'`.
|
|
133
|
+
For an already initialized project with a running hub, the person may instead
|
|
134
|
+
directly instruct its uniquely configured conductor, in that conductor's own
|
|
135
|
+
session, to run `ahub sdlc configure --mode advise --required-checks 'unit,lint'`.
|
|
136
|
+
This optional subsequent step stages only off/advise and check names for the
|
|
137
|
+
next start; it cannot initialize the project or enable enforce. The
|
|
138
|
+
[instruction and audit rules](#instructed-conductor-configuration-1432) apply.
|
|
139
|
+
2. Record the long-term goal with
|
|
140
|
+
`ahub goal new <title> [--milestone <text>]... [--depends <id>]... [--shared]`.
|
|
141
|
+
3. Create its release line with `ahub release new <name> <goal> <order>`.
|
|
142
|
+
The goal argument describes what this release aims to deliver. Creating a
|
|
143
|
+
release line records planning intent only; it does not ship anything.
|
|
144
|
+
4. Have the planner file the spec issues and board tasks, retaining the old
|
|
145
|
+
decision IDs and acceptance evidence. Inspect `ahub sdlc status`; the person
|
|
146
|
+
accepts each spec with `ahub sdlc accept <task> --issue <n>`.
|
|
147
|
+
5. After required CI checks and the new task flow have been checked, the person
|
|
148
|
+
may select `ahub init --sdlc enforce --required-checks <a,b,...>`.
|
|
149
|
+
Release authorization remains a separate decision with
|
|
150
|
+
`ahub sdlc authorize-release <version>` after committing the release policy
|
|
151
|
+
and preparing the release candidate.
|
|
152
|
+
|
|
79
153
|
## Configuration and persistence contract
|
|
80
154
|
|
|
81
155
|
.agenthub/sdlc.toml contains mode off|advise|enforce and a bounded ordered stage list, using the built-in stages above by default. The loader validates built-in mappings and bounded custom stage/gate/actor definitions; custom guidance does not grant authority. Unknown stages/gates, duplicate stages, cycles, unbounded lists and unknown keys are refused with a field-level reason. A project file may define guidance/gates, but it does not expand capabilities or permissions.
|
|
@@ -88,6 +162,8 @@ A reviewer records the head it actually reviewed. If GitHub no longer reports th
|
|
|
88
162
|
|
|
89
163
|
Use structured gh JSON/GraphQL read-only calls (the guarded merge below is the one exception) with validated repository and numeric artifact identities. No shell interpolation, PR/issue body fetching, token logging or unbounded comment storage. Failure yields unknown. Required checks come from repository rules or explicitly configured names; an empty/unknown set is not silently green. Review-thread status is counted, not copied. Cancellation and task-owner generation fencing prevent a late read from approving reassigned work.
|
|
90
164
|
|
|
165
|
+
GitHub may return more than one row for a named check after a rerun or cancellation. When every row has a workflow identity and start time, and those identify one uniquely newest run of the same workflow, the hub evaluates that run and drops older rows. If workflow identity or ordering is ambiguous, it retains the rows; duplicate evidence remains a blocker rather than a guessed pass. In the CI watcher, cancelled attempts and a draft PR's deferred `check (macos-latest)` read as pending so the watcher can wait for a replacement run; the aggregate draft check still must pass before review readiness.
|
|
166
|
+
|
|
91
167
|
ahub sdlc status and explain expose mode, stage, gate, observed/reviewed/local-check heads, next actor and next action. Console/dashboard derive the same result. Merge ordering compares exact PR path sets, reports intersections and never guesses an automatic landing order where dependencies are unknown. Release readiness lists merged work since the tag, stale/nonancestor documentation stamps and open native/live receipts; each unknown remains visible.
|
|
92
168
|
|
|
93
169
|
## Composition and measurement
|
|
@@ -379,7 +455,7 @@ A review request is premature if its task head does not match the PR head, confi
|
|
|
379
455
|
|
|
380
456
|
**Evidence in the review request (#824).** A fresh reviewer cannot run tests or read `gh`, so the request carries the hub's own reading of the admission it already made, for every reviewer: `Hub-verified at <head>: required checks <names> passed at this exact head; no bot review thread is waiting for a reply` (plus `via identical-tree run <n>` when the hub reused one), or in advise mode `Hub-verified at <head>: not ready: <blockers>`. No admission (lifecycle off) and a PII task get no block, and no new `gh` call is made for it: it renders what `reviewRequestAdmission` read. `ReviewReadiness.checks` names the required checks that were judged. When the admission is ready and the hub ran no check of its own, the checklist's check line says CI passed at this exact head and that test execution or CI evidence is not an unmet item (name a specific missing test or behaviour instead); otherwise the old wording stays. The text comes only from the hub's reads and recorded `check passed` events, never from the builder's summary or a `hub_sdlc_record` claim, and a review-only reviewer still gets no builder summary (#223 R2).
|
|
381
457
|
|
|
382
|
-
CI controllers are serialized per pull request (`check-pr-<number>`) and for main pushes and ordinary dispatches (`check-main`), for the entire workflow
|
|
458
|
+
CI controllers are serialized per pull request (`check-pr-<number>`) and for main pushes and ordinary dispatches (`check-main`), for the entire workflow (#609); macOS timing dispatches use their own macos-timing group. Within a PR a newer head replaces the older run: `queue: single` replaces a pending one and `cancel-in-progress` (pull requests only, #1490) cancels an in-progress one, and a cancelled run is never a full-gate proof because reuse needs all three required jobs to have succeeded. A draft PR does not start the macOS shards and its required `check (macos-latest)` fails with "macOS deferred" (never a skip, which a proof could borrow); `gh pr ready` starts a run that includes them. Main never cancels and keeps `queue: max`, which preserves up to 100 waiting controllers ([GitHub concurrency documentation](https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/control-workflow-concurrency)). Different PRs run side by side: a repository-wide lock serialized every PR (17-18 min alone, 40-54 min with 4-5 PRs in flight on 2026-10-20). Two groups admitting the same tree at the same instant can run it twice; that duplicate costs one run and never a false green. Required job names and read-only token permissions are unchanged. Before PR or push gates, `scripts/ci-reuse.mjs` reuses successful full proof for the identical Git tree, including its workflow. On reuse the shard jobs are skipped, and the aggregate jobs `check (ubuntu-latest)`, `check (macos-latest)` and `seeded guards` report their exact required names. They run only a `Reuse verified identical-tree full gate` marker step naming the original proof; full setup and gates are skipped. Skipped jobs and successful reuse-reporting jobs never count as fresh full proof. A running identical-tree gate refuses duplicate admission; unknown active coverage refuses safely. Only a 404, a timeout on the individual read limit, or malformed successful proof is dropped: a failed successful-run list drops that proof phase, while a failed commit or jobs read drops only that candidate and continues the bounded search. Other failures (5xx, 403, 429, response size bounds, authentication and unclassified errors) remain unknown. Exhausting the overall deadline or request budget stays unknown even when a request reports a timeout. Without verified proof, a complete empty active scan requires a fresh gate. An unreadable, truncated or unidentifiable active inventory, or exhaustion of the shared request budget or deadline, stays unknown and refuses admission. The release reader (`--require`) still refuses without verified identical-tree full proof. Metadata reads are bounded to 100 recent successes/active runs and 240 calls within 60 seconds. Pending serialized controllers are not admitted gates. Run focused tests and `scripts/check.sh --changed` locally; CI carries the full-suite gate; a known flake warrants only one rerun of its failed job with recorded evidence.
|
|
383
459
|
|
|
384
460
|
`hub_sdlc_costs` and the person's `ahub sdlc costs [owner/repo]` report linked merged PRs without changing the board. A review round is a board done-to-verdict handoff, not each reviewer in a multi-reviewer round. An observed handoff still counts when its declared scope was none. The report counts distinct check-workflow run ids, extra attempts (`run_attempt - 1`), full re-reviews, delta rounds and summed review intervals, with GitHub review counts alongside them. Unspecified scope and unavailable evidence stay unknown/incomplete. Only current public links are projected; a private counterpart withholds the whole PR. Up to 16 linked PR reads share 20 seconds; each PR covers at most 100 commits, reviews and recent check-workflow runs, and the pure aggregator bounds 500 tasks, 200 PRs and 10,000 history entries. Truncation is explicit. S10 exposes pure band-breach proposal data; S7 owns rolling baselines, band configuration, automatic scheduling and board-card creation.
|
|
385
461
|
|
|
@@ -417,12 +493,25 @@ Train history retains at most 256 events. Configuration no-ops retain the revisi
|
|
|
417
493
|
|
|
418
494
|
Verdict history retains each report and its reviewed head. Within a task, the semantic id remains the finding identity when its pass is reclassified; a disposition for that id settles the same finding across passes. Open Important findings carry forward across heads until a reviewer explicitly sets fixed or false_positive, or the person sets accepted with a rationale. Omitting an id never settles it; nits stay on their original head. Review requests list carried public ids, pass, severity and optional path; private finding details stay withheld. Head selection uses the first valid full SHA from the PR head, reviewed head, local head, then commit metadata; unresolved non-empty reports refuse in enforce. A supplied head must match the resolved task head when one exists, and that resolution is rechecked after asynchronous screening. Status and the merge queue show counts for the current head. In enforce, approval refuses while any Important finding remains open; advise exposes the count without blocking. Existing verdicts without structured findings stay compatible.
|
|
419
495
|
|
|
420
|
-
|
|
496
|
+
With the lifecycle on (`advise` or `enforce`; #1403 A1, B4), an item may also carry these fields, and `off` refuses them as unknown fields and advertises none of them:
|
|
497
|
+
|
|
498
|
+
- `state` (`confirmed` or `needs_validation`) and `boundary` (`principal`, `control`, `resource`, `result`: the lower-trust actor, the control that was meant to hold, the resource affected and the result observed, each at most 512 bytes and sanitized like `rationale`). An open `important` finding with `pass: "security"` must carry both, and the refusal names the four boundary fields; nits, other passes and settled findings need neither, and the fields are refused on them.
|
|
499
|
+
- `blocker` (the missing fact), required with `needs_validation` and refused with `confirmed`. A `needs_validation` finding is a source-grounded hypothesis: it does not block approval in any mode and is counted apart (`needsValidation` in the findings tally), and on approval the hub files one read-only `triage` backlog card that names the blocker.
|
|
500
|
+
- `origin` (`introduced` or `pre_existing`; omitted means `introduced`, so existing reports behave exactly as before). A `pre_existing` important finding does not block approval and does not carry to a later head (it is counted as `preExisting`); on approval the hub files one `plan` backlog card for it. A later `open` report of an id that still blocks cannot lower it with `pre_existing` or `needs_validation`: only an explicit disposition settles it.
|
|
501
|
+
|
|
502
|
+
Each follow-up card carries a `Finding follow-up key:` marker (task, pass, id, kind) so an approval repeated by another verdict never files a second one. A card names the task, the finding id and pass and, for a hypothesis, its blocker; never the boundary text or the path, which stay in the task's review history under the privacy boundary below. The hub opens no GitHub issue for a security finding. PII and private-turn tasks, withheld reports and findings whose text the privacy gate refuses get no card.
|
|
503
|
+
|
|
504
|
+
Finding text passes through the task privacy boundary. PII tasks remain stubs; withheld reports expose only counts on ordinary tasks. When the same public, non-withheld semantic pass/id pair appears on a second distinct task, Tasks proposes one durable, marker-deduplicated backlog plan (excluding false positives) to amend AGENTS.md or an area note. A positional id (a single letter or a label word such as `nit` followed by digits, optionally after a pass prefix: `N1`, `F5`, `nit-1`, `bugs:3`) is local to one review and never counts toward that card; only a semantic id recurs. Only hub-proposed plan cards supply dedupe markers. The proposal grants no editing or acceptance authority.
|
|
421
505
|
|
|
422
506
|
## Plan conformance (#481 S2)
|
|
423
507
|
|
|
424
508
|
Plans accept optional `proof` (test paths or check names) and `risks`, each at most 32 strings of 512 characters. They share the task-text privacy screen; enabled SDLC schemas advertise them while ordinary off-mode schemas stay unchanged. File coverage compares repository-relative identities for literal file or directory prefixes in `plan.paths`, with no glob expansion. Repository-root entries (including normalized `.` or `./`) never cover the inventory and leave conformance unknown. Absolute entries map only through verified same-repository aliases; an unverified mapping remains unknown. Symbols, proof and risks do not cover files. A planned path left untouched is advice; a changed path outside the plan is a departure. Missing plans, unsafe or unmappable paths, truncated inventories, renamed/copied files without both path identities, and failed metadata reads remain unknown.
|
|
425
509
|
|
|
510
|
+
|
|
511
|
+
With the lifecycle enabled, a plan also accepts `base` (the full lowercase 40-character commit it was written against), `out_of_scope` (excluded literal paths), `stop_if` (conditions to stop and report), and ordered `steps` with a required `description` and optional `verify` text containing the command and expected result. Each list holds at most 32 items; each exclusion, condition, description and verification text is at most 512 characters. These fields share the task privacy screen and stored plan revision. Verification text is never executed by the hub. A changed file under `out_of_scope` is a departure even when a broader `paths` prefix includes it; review/status and merge queue use the same exclusions.
|
|
512
|
+
|
|
513
|
+
`hub_task_accept` and `hub_task_done` report `drift: none`, `drift: changed (<paths>)` or `drift: unknown` when the plan has a base. At accept, this compares only `plan.paths` from the exact base to the local remote-tracking default-branch tip, resolved through `refs/remotes/origin/HEAD`; no task head is required. At done, the endpoint is the unique merge-base of the recorded task head (`refs.commit`, otherwise its recorded lifecycle head) and that default tip, so task-owned commits are excluded. The base must be an ancestor of the selected upstream endpoint; reversed or unrelated lineage stays unknown. The bounded local Git source validates commit objects, rechecks the default tip and lists changed names without fetch, network, lazy object fetch or patch reads. Missing default refs, missing done heads, shallow/missing/ambiguous history, foreign scope, incomplete or unsafe inventory, and failed reads stay unknown. The checkout HEAD and a guessed `main` branch are never substituted. The tip is the local tracking ref, not a claim of freshness from a remote server. Private tasks/turns disclose no drift. Drift is advice in both advise and enforce and never blocks acceptance, completion or approval. Drift includes changes under an excluded path when it lies inside `plan.paths`: the exclusion makes the change a conformance departure rather than hiding it from base drift. Drift is separate from PR conformance and its existing approval gate. Off-mode tools advertise none of these new fields, ignore them on input, and add no drift read or readback.
|
|
514
|
+
|
|
426
515
|
Review/status use the same bounded PR file metadata reader as the merge queue; no patch or body is fetched. In enforce, approval requires known coverage of every changed path or a current person acceptance of the departure. Request changes, amend the plan through `hub_task_accept`, and call done again before approval. Off adds no conformance gate; advise reports departures without blocking.
|
|
427
516
|
|
|
428
517
|
The person may instead run `ahub sdlc accept-departure <task> <head> <reason...>`. Acceptance requires a currently known departure, never unknown or already covered conformance. The hub reads and captures the complete current repo/PR/head inventory, verified task repository scope and the plan fingerprint/revision; changing the plan, repository refs/scope, link, head or inventory invalidates that acceptance. Departure consent also expires on hub restart: amend the plan or accept again in the new host lifetime. This fail-closed ceiling prevents a rejected, unpersisted readback from reviving old consent; a durable host observation journal is the upgrade path. The reason is bounded to 2048 characters, sanitized and privacy-screened. There is no peer tool or live-test delegation for this person-only operation. Private PR inventories are unavailable to this remote readback; amend the private plan instead. Public private-task projections show only whether a departure acceptance exists.
|
|
@@ -468,6 +557,71 @@ The guarded merge reads the eval check run before its final PR read and judges t
|
|
|
468
557
|
|
|
469
558
|
A private (PII) task reads no eval metadata and records none.
|
|
470
559
|
|
|
560
|
+
## Security pass for sensitive paths (hub task 895, #1403 A2)
|
|
561
|
+
|
|
562
|
+
`.agenthub/sdlc.toml` may name the paths whose change needs a recorded security pass:
|
|
563
|
+
|
|
564
|
+
```toml
|
|
565
|
+
[security]
|
|
566
|
+
paths = ["src/local/**", ".github/workflows/**", "scripts/release-*"]
|
|
567
|
+
companions = ["agents", "local-ipc"]
|
|
568
|
+
```
|
|
569
|
+
|
|
570
|
+
- `paths` uses the `config_paths` pattern language (literal names, `*` and `?` inside a segment, a whole-segment `**`; a trailing slash or a bare prefix is refused at load with the language spelled out). `companions` is optional, a unique list from `agents`, `supply-chain`, `local-ipc` and `data-isolation`; it names which parts of `docs/agent-notes/security-review.md` the reviewer reads. No `[security]` table, or `mode = "off"`, changes nothing and `hub_review` does not advertise `security_pass`.
|
|
571
|
+
- The decision uses the PR's complete file inventory, the one plan conformance reads (metadata, never patches). `securityPass` reads `required` (a changed path matches and no pass names the PR's current head), `recorded`, `not_required` (the complete inventory matches nothing) or `unknown`. An incomplete or unreadable inventory is `unknown`, never `not_required`. The readback carries a count of matching paths and the companions, never the path names.
|
|
572
|
+
- A reviewer records the pass on the verdict: `hub_review` `security_pass: {covered: [...], not_covered: [...]}` or `ahub review <id> approved --security-pass '{"covered":["local runner"],"not_covered":[]}'`. It names at least one unit (up to 32, 120 bytes each, no unit in both lists), so a partial pass says what it did not read, and it binds to the head the verdict reviewed: a later head needs a new pass. A pass on a PR that needs none is stored and harmless.
|
|
573
|
+
- `advise` records an approval without a pass and adds the requirement to the advice. `enforce` refuses the approval (before any board effect) and blocks the merge queue row and the merge gate, for `required` and for `unknown`. The review request tells the reviewer a pass is required, or that applicability is unknown, and points to the checklist. PII tasks carry no pass.
|
|
574
|
+
- `ahub sdlc status` and the merge queue show a `security pass` line; the queue shows the strictest state when a PR has several holders.
|
|
575
|
+
|
|
576
|
+
## Security audit with a coverage ledger (hub task 896, #1403 A4, A5)
|
|
577
|
+
|
|
578
|
+
A recurring, read-only read of the security-sensitive surfaces, on request. It needs the lifecycle on (`advise` or `enforce`) and the `[security]` table above.
|
|
579
|
+
|
|
580
|
+
- `ahub sdlc audit start [--profile quick|standard] [--since <ref>]` (the person, or the one configured conductor) files one `review`-class task and seeds the ledger in `hub.db`: one unit per `[security] paths` surface and companion, `planned`. `standard` reads each surface against each configured companion; `quick` reads each surface once against the general checklist. `--since <ref>` keeps only the surfaces with a changed path since that ref. One audit is open at a time. A refusal (wrong caller, lifecycle off, no table, an unreadable head or change list) writes nothing.
|
|
581
|
+
- Only the hub writes the ledger. The assigned auditor (the task's owner, while it is in progress) reports through `hub_audit_report`, advertised only with the lifecycle on: `units` (`covered`, `deferred` with a reason of at most 200 bytes, or `out_of_scope`, never `planned`) and `findings` in the `hub_review` shape with `pass: security` and the boundary contract of the findings section. A report is one transaction, and a unit or finding that fails validation changes nothing.
|
|
582
|
+
- A `confirmed` important security finding is a `candidate` until a different reviewer-role peer (or the person) sends `verify: [{finding, verdict: verified|rejected}]`. The finder cannot verify its own finding, and a decided finding is not rewritten by a later report: the result lists such a re-filed finding in `notUpdated`, so the auditor sees it. A report is one transaction, so a verification that loses a race rolls back the units, findings and other verifications of that call. A verified open important finding is settled with `settle: [{finding, disposition: fixed|false_positive}]` by a reviewer-role peer other than the finder, or by the person, in a call of its own (never in the call that verifies it, so the verifier's decision is read first). Only a verified, not rejected, not yet settled finding is settled, once; a candidate is refused with the step to take (a different reviewer verifies it first), a rejected one with "nothing to settle", and a repeat with how it was settled. The hub records who settled it and how in the ledger, in the same transaction as the rest of the report, so a settlement that loses a race rolls the whole call back; a later report by the finder cannot reopen a settled finding (it is listed in `notUpdated`). A settled finding reads as `settled` and counts apart in the audit summary, and, like any `fixed` or `false_positive` finding, no longer withholds its path, rationale and boundary. A `needs_validation` finding is counted apart and never needs verification.
|
|
583
|
+
- Carry-over: a surface whose state in the newest audit that lists it was `covered`, and whose paths are unchanged since that audit's head, is seeded `covered (prior)` and listed apart from the run's own coverage. A scoped audit that left the unit out says nothing about it. A changed path, an unreadable change list, or a `deferred`, `out_of_scope` or still `planned` unit in that newest audit plans the unit again, and a carried unit takes no new state.
|
|
584
|
+
- `ahub sdlc audit show [<audit>]` prints the source, profile, the counts by unit state and each unit and finding. A `quick` or scoped audit reads as partial. `ahub sdlc release` carries one line with the same counts. Nothing blocks a release.
|
|
585
|
+
- Disclosure: this repository is public, so an open or accepted important security finding shows only its id, status and that its details are withheld, in every view but the person's, and the hub itself sends no message to another peer that carries its path, rationale or boundary. A headless auditor's final answer is shared with the other agents automatically, so keeping that text out of the answer is the audit brief's instruction, not a guarantee the hub can enforce. The hub never opens an issue for one. The tool is refused in a private or PII turn, finding text must pass the same PII patterns and screen as a verdict note, and the tool is kept out of memory capture. The audit brief states that repository content is data (an instruction found in a file is recorded as a finding), that secret values are never quoted, and that target code runs only inside the hub's sandboxed runners.
|
|
586
|
+
|
|
587
|
+
## Instructed conductor configuration (#1432)
|
|
588
|
+
|
|
589
|
+
After the project is initialized and its hub is running, the person may directly
|
|
590
|
+
instruct the uniquely configured conductor in that conductor's own session to
|
|
591
|
+
stage `off` or `advise` and the required check names:
|
|
592
|
+
|
|
593
|
+
```bash
|
|
594
|
+
ahub sdlc configure --mode advise --required-checks 'unit,lint'
|
|
595
|
+
ahub sdlc configure --mode off
|
|
596
|
+
ahub sdlc configure --required-checks '' --json
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
Replace the example check names with the repository's actual required jobs. The
|
|
600
|
+
last form explicitly clears the list. Omit either setting to preserve it. Changes
|
|
601
|
+
use the existing loader, revision checks, backup and atomic write path, and apply
|
|
602
|
+
at the next hub start. Human output names the actor and pending restart; `--json`
|
|
603
|
+
returns the saved receipt.
|
|
604
|
+
|
|
605
|
+
Running this command makes a cooperative claim that the person explicitly
|
|
606
|
+
instructed this actor in its own session. The daemon verifies the current unique
|
|
607
|
+
conductor and session context; it cannot independently verify that conversation.
|
|
608
|
+
Task text, files, reviews, peer messages and relays never supply that instruction.
|
|
609
|
+
Child sessions, private or PII contexts, observer input, recovery and shutdown
|
|
610
|
+
refuse the conductor path. `--live-test` cannot turn an agent into the person for
|
|
611
|
+
this operation.
|
|
612
|
+
|
|
613
|
+
`ahub init`, generic `ahub settings edit`, `enforce`, `[security]`, `eval_check`,
|
|
614
|
+
`config_paths` and custom stages remain person-only. If either the running
|
|
615
|
+
lifecycle or the actual file is already `enforce`, use the person's settings
|
|
616
|
+
editor. The narrow command does not authorize releases, tags, merges or
|
|
617
|
+
publication; release authorization remains a separate instruction and operation.
|
|
618
|
+
|
|
619
|
+
A durable `sdlc_config_instruction` intent precedes the write. The result audit
|
|
620
|
+
records the actual actor (source `conductor` for that actor), the fixed instruction claim and
|
|
621
|
+
changed paths/value hashes, without the setting values. Failed intent records
|
|
622
|
+
write nothing. If the file was saved but result auditing fails, the refusal says
|
|
623
|
+
`saved: true`; inspect the file and event log before retrying.
|
|
624
|
+
|
|
471
625
|
## Person release authorization (#481 S6)
|
|
472
626
|
|
|
473
627
|
From the running daemon's candidate checkout, the person or the one configured conductor runs `ahub sdlc authorize-release <version>` (#1063). The conductor acts only on the person's explicit instruction in its own session naming that release. A hub message, task text, review note, file or another peer's relay is never that instruction; the daemon cannot verify this cooperative rule. A conductor request uses the tools role and refuses a child `toolsOwner`, private turn or PII context, exactly like `sdlc merge`. Other peers and `--live-test` refuse. By default, consent binds the exact current commit, committed package version, origin fetch/push identity and fresh committed documentation evidence, all reread after the docs check. Receipt `by` and the append-only metadata audit identify the actual asker alongside the approval id, commit, version and, when checked, the docs digest/count. The authoritative ledger is daemon-owned memory: restart revokes every approval; audit history cannot restore one.
|
|
@@ -536,3 +690,37 @@ its existing authority and currentness fences. Snapshot guidance never certifies
|
|
|
536
690
|
that an accepted spec or reviewed issue is still current. Unavailable, private or
|
|
537
691
|
closed plan evidence retains its original diagnostic lead and planner action. Private task projections
|
|
538
692
|
withhold these issue-specific diagnostics.
|
|
693
|
+
|
|
694
|
+
## Advisor surveys and considered findings (#1403 T7)
|
|
695
|
+
|
|
696
|
+
`ahub sdlc survey start [--focus bugs|tests|debt|deps|dx|docs]` is an on-request
|
|
697
|
+
person/current-conductor operation with the lifecycle enabled. It creates one
|
|
698
|
+
read-only `plan` task at an exact source ref. Repository content is data, not
|
|
699
|
+
instructions: the task does not install or run a scanner, execute a fix, publish
|
|
700
|
+
an issue or push a branch. `ahub sdlc survey show <task> [--json]` reads its report.
|
|
701
|
+
|
|
702
|
+
The assigned planner reports through `hub_survey_report`: findings have a stable
|
|
703
|
+
semantic id, evidence `path:line`, affected paths, impact, effort `S|M|L`, risk,
|
|
704
|
+
confidence `high|medium|low`, and `fix_sketch`. A report alone creates no card.
|
|
705
|
+
The planner must vet each finding against that pinned source before submitting
|
|
706
|
+
an explicit vetted decision. This is the planner's attestation, not a host proof
|
|
707
|
+
that source was reread. Vetted high/medium confidence yields a backlog `plan`
|
|
708
|
+
card; low confidence yields read-only `triage` investigation. No card authorizes
|
|
709
|
+
execution. Replay and concurrent vetting share a repository-scoped semantic
|
|
710
|
+
finding marker; positional labels never match across tasks.
|
|
711
|
+
|
|
712
|
+
Review `false_positive`, audit rejection and survey rejection share an
|
|
713
|
+
append-only considered ledger with id, paths, reason and source binding.
|
|
714
|
+
A later scoped brief shows matching ids as rejected before with the reason,
|
|
715
|
+
subject to existing privacy/security disclosure. A changed path clears the
|
|
716
|
+
suppression for that path. Unrelated path changes do not clear it. Unknown or
|
|
717
|
+
incomplete change evidence shows rejected before, change unknown, and retains
|
|
718
|
+
suppression. The planner may reconsider only with an explicit vetted reason;
|
|
719
|
+
that creates a reconsideration entry and may create the card while preserving
|
|
720
|
+
the historical rejection. No rejection is deleted or silently rebound. Open host-created cards alone dedupe a matching marker. Approved or cancelled cards remain history: when the rejection no longer suppresses the finding, a new vetted card names the prior closed card as "hub task N" and the reason it reopened. Closing a card never clears an unchanged rejection.
|
|
721
|
+
|
|
722
|
+
Private turns, child contexts, recovery and ended role authority refuse writes.
|
|
723
|
+
Security finding text and paths remain in authorized private reports, not
|
|
724
|
+
public backlog cards, briefs or memory. Lifecycle off advertises no survey tool
|
|
725
|
+
or additional task readback. Live audit/survey dogfood (#1403 T8) still requires
|
|
726
|
+
the person's separate instruction; this feature adds no schedule or live run.
|
package/docs/security.md
CHANGED
|
@@ -24,9 +24,44 @@ agent-hub connects agents that can each run commands. This page says what the hu
|
|
|
24
24
|
- **Secrets stay where they are read.** The gateway key and Cloudflare Access values are read inside the gateway client and go only into request headers: never into logs, errors, envelopes, tool output, memory. Subscription logins of Claude, Codex and Kimi are never proxied or pooled.
|
|
25
25
|
- **The hub's own model calls are fenced.** Digest condensation, task triage and the PII screen read agent-written text as data; their output is capped text framed as untrusted, or a value checked against a closed list. It is never used as a route, a peer id, a tool call or an instruction. The hub model's intake split (#511) is JSON that must pass the same parts schema a planner's `hub_backlog_split` takes and may name only the request's own sources; it only writes draft backlog cards that wait for a person's or the conductor's `intake approve`, and a PII request goes only to a model reached on campus, else stays unsplit.
|
|
26
26
|
|
|
27
|
+
## Pi prepared dependencies (#1447 T5)
|
|
28
|
+
|
|
29
|
+
The localhost listener grant is a no-go for the tested Seatbelt rules: the
|
|
30
|
+
native proof did not establish both a working listener and denial of non-loopback
|
|
31
|
+
peers. Pi's network profile and proxy environment remain unchanged. The opt-in
|
|
32
|
+
isolated check runner provides separate Linux test evidence, not a Pi sandbox
|
|
33
|
+
listener grant. See `docs/verification/2026-11-16-pi-loopback-1447.md`.
|
|
34
|
+
|
|
35
|
+
Preparation is a host operation after guarded acceptance and before the tool
|
|
36
|
+
reply. Its immutable input snapshot comes from the recorded task-worktree base
|
|
37
|
+
commit through hardened Git object reads. A changed task input is not installed.
|
|
38
|
+
Manifest lifecycle hooks, explicit trusted dependencies, runtime Bun preload,
|
|
39
|
+
installer script settings, paths escaping the snapshot and unsupported layouts
|
|
40
|
+
refuse preparation. Trusted dependency code is limited to the lockfile and install
|
|
41
|
+
inputs recorded by the task worktree's base commit, with the same repository-code
|
|
42
|
+
trust as installing that checked-out base on the person's behalf.
|
|
43
|
+
|
|
44
|
+
The fixed installer runs in private host-protected state with an isolated HOME,
|
|
45
|
+
explicit shared Bun cache and a deadline. No ambient tokens or installer output
|
|
46
|
+
reach peer text. Publication is a same-device rename to an absent target through
|
|
47
|
+
a trusted helper that verifies its kernel CWD against the held worktree inode;
|
|
48
|
+
project preload and dotenv are disabled for that helper. Existing directories,
|
|
49
|
+
files, symlinks, changed roots and cross-device publication refuse. No dependency
|
|
50
|
+
tree is copied. Temporary-state cleanup is attempted on every outcome; cleanup
|
|
51
|
+
failures do not change task acceptance. Failures keep the task accepted and give
|
|
52
|
+
fixed not-prepared guidance; changed ownership, session
|
|
53
|
+
or privacy after the await cannot return a stale successful acceptance. Full
|
|
54
|
+
verification remains with CI and the remote runner.
|
|
55
|
+
|
|
56
|
+
A bounded `lstat` walk never follows dependency symlinks and rejects every
|
|
57
|
+
regular file with multiple hardlinks before publication. This prevents project
|
|
58
|
+
writes from reaching a shared cache inode. Hardlink-producing backends, including
|
|
59
|
+
Linux's default when cache and installation share a filesystem, remain unprepared
|
|
60
|
+
instead of changing the backend or copying dependency files.
|
|
61
|
+
|
|
27
62
|
## Native memory authority and profile selection
|
|
28
63
|
|
|
29
|
-
The portable core is the exact-pinned first-party `@staix/agent-mem` 0.
|
|
64
|
+
The portable core is the exact-pinned first-party `@staix/agent-mem` 0.26.3 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
|
|
30
65
|
|
|
31
66
|
`hub_memory_search`, `hub_memory_show` and `hub_memory_graph` take the project from the daemon, require `memory_read`, refuse private turns and validate UTF-8 input before logs or storage work. Complete records and graph metadata are screened before counts and truncation. Search is at most 20 lines/4 KiB (default 8); show accepts at most 8 ids and returns at most 8 KiB; graph is at most 120 nodes/240 edges/6 KiB (default 60 nodes), with no edge lacking an endpoint. Unknown, ambiguous and withheld ids share one neutral refusal. Arguments and results are excluded from hub-managed capture; this does not govern a vendor's independent transcript or memory hooks.
|
|
32
67
|
|
|
@@ -425,7 +460,7 @@ and flag. The current daemon emits `agent_cli` with `delegated: true` and
|
|
|
425
460
|
`refused: false` for the negotiated outcome. Allowed-class commands retain the peer identity and capability checks, including
|
|
426
461
|
messages, proposals and reviews. Peer starts, pause and resume may delegate
|
|
427
462
|
operational console authority; task assign/escalate under the flag refuse. `--as-user`, person task labels,
|
|
428
|
-
person-authored planning/release/memory/goal writes, SDLC record, spec and plan-departure acceptance, release authorization, design-spec stamps (`ahub specs stamp`), agent version trust, benchmark run,
|
|
463
|
+
person-authored planning/release/memory/goal writes, SDLC record, spec and plan-departure acceptance, instructed `sdlc configure`, `sdlc survey` other than `show`, release authorization, design-spec stamps (`ahub specs stamp`), agent version trust, benchmark run,
|
|
429
464
|
`ahub recovery reattach`, a `--fresh-session` dispose that would replace a repaired
|
|
430
465
|
session's conversation (or whose scope cannot be read), `ahub answer` with an
|
|
431
466
|
operand and the `ahub results` receipt forms are refused; presentation flags such as `--color` or `--verbose` before
|
|
@@ -451,7 +486,11 @@ error only when no typed cause exists: its first line, passed through the
|
|
|
451
486
|
console's terminal sanitizer with control characters removed, capped at 512
|
|
452
487
|
code points and marked as an untyped recorded error. A restart snapshot whose
|
|
453
488
|
kept hub notices fail validation is reported with a fixed message, never with
|
|
454
|
-
its content.
|
|
489
|
+
its content. A refused restoration launch (#1426) leaves a private per-attempt
|
|
490
|
+
exit observation that the reader accepts only with the matching nonce and peer
|
|
491
|
+
and as a bounded complete record; status shows `version_refused` or
|
|
492
|
+
`launch_exit`, the exit code and a privacy-screened first hub refusal line, and
|
|
493
|
+
the observation is never evidence of native readiness or ownership.
|
|
455
494
|
|
|
456
495
|
This is an honest default against accidental impersonation and injected commands.
|
|
457
496
|
It does not make the token inaccessible to an agent with unrestricted project
|
|
@@ -485,7 +524,10 @@ before. A restart, upgrade or recovery onto a daemon without `session_identity`
|
|
|
485
524
|
is refused while an unsettled delivery holds a session's message.
|
|
486
525
|
|
|
487
526
|
Steering tools require an explicit `conductor` role, independent of default-allow
|
|
488
|
-
capabilities. Only one peer may hold that role.
|
|
527
|
+
capabilities. Only one peer may hold that role. The loader ignores a `conductor`
|
|
528
|
+
entry on a peer whose kind is not `conductorEligible` or whose effective start
|
|
529
|
+
mode is headless, with a notice; nobody else gains the role, so the person
|
|
530
|
+
conducts from `ahub console` (#1408). Two task-scoped exceptions need
|
|
489
531
|
no role: a task's current owner and reviewer may read its public view with
|
|
490
532
|
`hub_task_show`, and the peer that proposed a task may redirect it with
|
|
491
533
|
`hub_task_assign` while it is proposed, nobody ever accepted it and its latest
|
|
@@ -498,7 +540,8 @@ run the closed operational family of #812 and #933: `roster add|remove`,
|
|
|
498
540
|
`stop <peer>`, `queue show|resolve|discard`, `doctor --orphans --kill`, `logs`,
|
|
499
541
|
`export`, `settings set` on thirteen named live keys, `board import`,
|
|
500
542
|
`intake approve`, `schedule run|pause|resume`, `research backfill`, `bench run`,
|
|
501
|
-
`source add`, `goal link`
|
|
543
|
+
`source add`, `goal link`, `sdlc survey start|show`, the instructed `sdlc configure`
|
|
544
|
+
(#1432, below) and starting a launcher-only peer the conductor may
|
|
502
545
|
start (Jcode). Memory changes and the other `goal` changes stay the person's
|
|
503
546
|
while amem records their actor as the user. `task unassign` is a conductor form;
|
|
504
547
|
it keeps the conductor as the board actor. `task cancel` remains separately
|
|
@@ -517,7 +560,7 @@ Logs and export are bounded public projections; orphan cleanup signals only a
|
|
|
517
560
|
positively identified hub-owned process in the selected project, and stop keeps
|
|
518
561
|
its ownership and recovery guards. Other agents may run only the read-only
|
|
519
562
|
forms of #812 (`doctor`, `projects`, `models status`, `recovery status`, `queue
|
|
520
|
-
list`, `roster`, `settings` reads, `sdlc status|explain|queue|release`,
|
|
563
|
+
list`, `roster`, `roles`, `settings` reads, `sdlc status|explain|queue|release`,
|
|
521
564
|
`release show` and `--dry-run` upgrade/restart previews) through public views,
|
|
522
565
|
never console identity. `backlog list`, `release list` and `sdlc costs|metrics`
|
|
523
566
|
remain Console for ordinary agents.
|
|
@@ -673,7 +716,9 @@ public task (`review_blob`).
|
|
|
673
716
|
- **Space.** The Space scene is built only from the office model the dashboard
|
|
674
717
|
already allowlists (#264): peer ids, conditions and counts, task ids, classes,
|
|
675
718
|
states, owners and public titles, approval counts, and overlap, conflict, cohort
|
|
676
|
-
and message link ids
|
|
719
|
+
and message link ids, plus (#1375) one group per project titled by its id or
|
|
720
|
+
label, each peer's configured roles (at most 4 of 32 characters) and, while it
|
|
721
|
+
works, the open turn's start time. No envelope body, task detail, approval title, reason, path
|
|
677
722
|
or symbol reaches it, a PII task never joins a link, and the scene is trimmed to
|
|
678
723
|
acon's caps. `test/acon-plugin.test.ts` pins this with a marker fixture.
|
|
679
724
|
|
|
@@ -746,9 +791,9 @@ never-ask still requires the person's confirmation. qwen_cmd is machine-local an
|
|
|
746
791
|
never editable through settings. Legacy benchmark adapters remain unmanaged by
|
|
747
792
|
this production table. Startup diagnostics withhold native host/payload details.
|
|
748
793
|
|
|
749
|
-
Jcode is optional, source/version-fenced and runs native tools without a hub sandbox or hub permission-mode mapping. .jcode joins the scoped-grant exclusion, including lexical/resolved aliases. Only a person writes its unique project MCP entry; foreign/override/symlink entries refuse. The hub owns a private daemon/socket and ACP group, never the global daemon, and copies no credentials. It accepts a plain jcode release from 0.98.0 up to, not including, 1.0.0 (#529; only 0.98.1, 0.99.0 and 0.99.1 are verified, and another version in that line starts with a note), or an exact version the person trusts (#691), and runs every owned jcode process (probe, serve, ACP and TUI) with `JCODE_NO_TELEMETRY=1`, because jcode's telemetry can report the provider account's email. Native diagnostics withhold payloads/hosts. Hub tools are bound to an owned launch (task 368): the shared project entry names no peer, each owned Jcode process carries its own peer id and launch id, the daemon admits a hub-tools connection for a Jcode peer only with the id of that peer's current owned launch, and a tools-mode server started without a peer id refuses every tool. Extra Jcode instances (#685, at most 8) are declared only through `instances` in an untracked `.agenthub/config.local.json`, start headless, and each needs its own `jcode_home`, which may not be the base home or another instance's, nor nested in or around one, however it is spelled. Unproved conversation loads refuse; no fresh replacement is called a restore. A finished task's advisory about the project root checkout names the branch only after the hub's whole public-text screen (`Tasks.publicMetadataText`: a PII pattern, a secret shape and a project-private path) passes it and it is a plain ref name; otherwise a generic sentence carries no part of it (#572). Native TUI launch exposes its private socket/session tuple only to the authenticated console, bound to the same live owned socket and session after read-only native persistence proof. Tools/status do not receive it. The TUI has no single-writer guard: person input may interleave with ACP. Native policy remains unmanaged and closing the frontend does not stop ACP. An `important` message reaches a busy Jcode as a soft interrupt written to the hub's own private server socket for the owned session (#572); the hub never cancels a turn to deliver, and a steer that was sent but not acknowledged, or whose turn ended first, is held as `needs_review`, never replayed. Jcode has no switch to choose its MCP servers, so the owned serve and ACP processes load every server named in `<JCODE_HOME>/mcp.json` and the project's `.jcode/mcp.json`, `.mcp.json` and `.claude/mcp.json`, besides the hub's own; `ahub doctor` lists their names only. Point `jcode_home` at a separate home, or remove a server from those files, to keep it out.
|
|
794
|
+
Jcode is optional, source/version-fenced and runs native tools without a hub sandbox or hub permission-mode mapping. .jcode joins the scoped-grant exclusion, including lexical/resolved aliases. Only a person writes its unique project MCP entry; foreign/override/symlink entries refuse. Its `AGENTHUB_PROJECT_DIR` is compared by real path, so a hub-written entry stays the hub's own after the project directory moves and its old path is left as a symlink; the rest of the entry's shape still must match exactly, and a refusal names the differing field (#1423). The hub owns a private daemon/socket and ACP group, never the global daemon, and copies no credentials. It accepts a plain jcode release from 0.98.0 up to, not including, 1.0.0 (#529; only 0.98.1, 0.99.0 and 0.99.1 are verified, and another version in that line starts with a note), or an exact version the person trusts (#691), and runs every owned jcode process (probe, serve, ACP and TUI) with `JCODE_NO_TELEMETRY=1`, because jcode's telemetry can report the provider account's email. Native diagnostics withhold payloads/hosts. Hub tools are bound to an owned launch (task 368): the shared project entry names no peer, each owned Jcode process carries its own peer id and launch id, the daemon admits a hub-tools connection for a Jcode peer only with the id of that peer's current owned launch, and a tools-mode server started without a peer id refuses every tool. Extra Jcode instances (#685, at most 8) are declared only through `instances` in an untracked `.agenthub/config.local.json`, start headless, and each needs its own `jcode_home`, which may not be the base home or another instance's, nor nested in or around one, however it is spelled. Unproved conversation loads refuse; no fresh replacement is called a restore. A finished task's advisory about the project root checkout names the branch only after the hub's whole public-text screen (`Tasks.publicMetadataText`: a PII pattern, a secret shape and a project-private path) passes it and it is a plain ref name; otherwise a generic sentence carries no part of it (#572). Native TUI launch exposes its private socket/session tuple only to the authenticated console, bound to the same live owned socket and session after read-only native persistence proof. Tools/status do not receive it. The TUI has no single-writer guard: person input may interleave with ACP. Native policy remains unmanaged and closing the frontend does not stop ACP. An `important` message reaches a busy Jcode as a soft interrupt written to the hub's own private server socket for the owned session (#572); the hub never cancels a turn to deliver, and a steer that was sent but not acknowledged, or whose turn ended first, is held as `needs_review`, never replayed. Jcode has no switch to choose its MCP servers, so the owned serve and ACP processes load every server named in `<JCODE_HOME>/mcp.json` and the project's `.jcode/mcp.json`, `.mcp.json` and `.claude/mcp.json`, besides the hub's own; `ahub doctor` lists their names only. Point `jcode_home` at a separate home, or remove a server from those files, to keep it out.
|
|
750
795
|
|
|
751
|
-
Antigravity (`agy`, #485) is optional, cloud and off roster by default. The launcher accepts the Antigravity CLI 1.4.x line and exact 1.5.3; only 1.4.2, 1.4.7, 1.4.12 and 1.5.3 have a native receipt ([1.4.7](verification/2026-10-26-agy-1.4.7.md), [1.4.12](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3](verification/2026-11-08-agy-1.5.3.md)), so another 1.4.x patch launches with a warning that it is unverified, and every other version, other 1.5.x included, is refused before a hub connection or plugin write (#589) unless the person trusts that exact version (#691). It runs native tools under its own unmanaged permissions, without a hub sandbox or hub permission-mode mapping; headless, resume, unattended and native permission flags are refused. Its roles are capped at implementer and verifier, so it never plans, reviews or receives PII work. Only the person's `ahub agy` launcher writes its three plugin files in `.agents/plugins/agent-hub/` (`plugin.json`, `mcp_config.json`, `hooks.json`): linked or foreign entries refuse before any write, cleanup removes only that launch's matching files, and it never writes project-level `.agents/hooks.json` or the person's `~/.gemini` settings. Conductor starts are refused, and a declared agy extra instance is refused at config load (#625). Hook authority (`native_hook_launch`) comes only from that launcher, belongs to the console socket that began it and ends when that socket closes; hook input over 1 MiB is refused, and observations are bound to the daemon, launch, native session and project.
|
|
796
|
+
Antigravity (`agy`, #485) is optional, cloud and off roster by default. The launcher accepts the Antigravity CLI 1.4.x line and exact 1.5.3; only 1.4.2, 1.4.7, 1.4.12 and 1.5.3 have a native receipt ([1.4.7](verification/2026-10-26-agy-1.4.7.md), [1.4.12](verification/2026-11-03-agy-1.4.12-launcher-nonce.md), [1.5.3](verification/2026-11-08-agy-1.5.3.md)), so another 1.4.x patch launches with a warning that it is unverified, and every other version, other 1.5.x included, is refused before a hub connection or plugin write (#589) unless the person trusts that exact version (#691). It runs native tools under its own unmanaged permissions, without a hub sandbox or hub permission-mode mapping; headless, resume, unattended and native permission flags are refused. Its roles are capped at implementer and verifier, so it never plans, reviews or receives PII work. Only the person's `ahub agy` launcher writes its three plugin files in `.agents/plugins/agent-hub/` (`plugin.json`, `mcp_config.json`, `hooks.json`): linked or foreign entries refuse before any write (`AGENTHUB_PROJECT_DIR` and `AGENTHUB_STATE_DIR` in its MCP entry and hook commands are compared by real path, #1423), cleanup removes only that launch's matching files, and it never writes project-level `.agents/hooks.json` or the person's `~/.gemini` settings. Conductor starts are refused, and a declared agy extra instance is refused at config load (#625). Hook authority (`native_hook_launch`) comes only from that launcher, belongs to the console socket that began it and ends when that socket closes; hook input over 1 MiB is refused, and observations are bound to the daemon, launch, native session and project.
|
|
752
797
|
|
|
753
798
|
Configured ACP adapters (#451 A3) are declared only by the person, in a Git-confirmed untracked `.agenthub/config.local.json`. The whole declaration (command, argv, identity, roles and mode maps) is machine-local authority: a shared or tracked declaration is ignored with a notice, settings never edit it, and changes need a hub restart. The hub runs only the declared argv, never a module or callback. Argv that selects a leader, attach, connect or remote mode is refused, and a Grok declaration needs `--no-leader`. Each start requires the pinned native identity, an exact `session/load` echo on resume, and positive ownership of the spawned process and its original process group; unknown ownership refuses, and stop signals only that verified group. An agent that hands its work to a process outside that group is outside this boundary. Without a mode map native policy is unmanaged, and there is no hub sandbox either way. Configured kinds are cloud peers (never PII), headless only and off roster by default, and the hub makes no quota, context or controlled-recovery claims for them. A read-only instance needs the native read-only mode acknowledged before a prompt and is limited to read and review hub tools, both in the published MCP list and at the host; its native non-read tool requests are rejected, and no setting or runtime change can raise it. These agents' stderr and error text are withheld from logs, and previews redact the executable, argv and session id.
|
|
754
799
|
|
|
@@ -892,7 +937,7 @@ A terminal Claude implementer or verifier instance (#525-5) owns write-class tas
|
|
|
892
937
|
|
|
893
938
|
A planner-only instance (#525-6: `planner` without `implementer` or `verifier`) plans on the project checkout, so a declared `worktree` is refused. A Codex planner's `thread/start` and `thread/resume` are requested read-only, and a thread is adopted only when Codex's reply positively confirms a read-only sandbox; an unconfirmed or malformed reply refuses that RPC and closes the link before the hub adopts the thread or delivers work, and the current roles are rechecked before each injection. This is an initial ceiling, not confinement of the person's attached TUI, which can change its native sandbox later. A declared planner-only Claude channel instance gets no automatic grant from its facts hook for any tool but Read, LS, Glob and Grep, whatever the permission mode.
|
|
894
939
|
|
|
895
|
-
The headless Claude implementer (#525-4) runs one owned `claude -p` child per turn in its declared worktree, with `--setting-sources ""`, `--strict-mcp-config`, native permission mode `default`, the hub's managed PreToolUse hook and `--permission-prompt-tool mcp__agent-hub__hub_permission_request`; never `--bare`, `acceptEdits`, `dontAsk` or `bypassPermissions`, and `never-ask` is refused. Each task keeps its own persisted session; unscoped chat reuses one only while exactly one task is in progress, and a `hub_inbox` read refuses a batch attributed to another task. The approval path fails closed: `hub_permission_request` is accepted only from the current child's launch and generation, goes to the console's existing approval queue and `approvals.timeout_s`, and offers allow-once and deny only, with no allow-always or session grant. A timeout, a prompt failure, a disconnect, a hub that is down or refusing, or a stale child binding answers deny; a failed hook decides nothing, so the call still waits for a person. The approval title is the tool name and a JSON rendering of the arguments passed through `sanitize()` and the public-text screen (any PII, secret or private-path match withholds the whole value as `[withheld]`, before any cut), never task text, cut at 600 characters with a `[cut, N chars]` marker; the original arguments stay with the child and are not logged. The MCP wire cannot tell a native permission dispatch from a call the model makes itself; a person allow still refers only to its original arguments. Automatic Bash authorization uses the separate single-use host wrapper contract below, never a caller-supplied tool id as native provenance. A stop holds an uncertain delivery until the owned process group is confirmed gone. The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) is model-free on Claude Code 2.1.309, [repeated on 2.1.310](verification/2026-10-26-claude-implementer-2.1.310.md), [on 2.1.314](verification/2026-10-31-claude-implementer-2.1.314.md), [on 2.1.316](verification/2026-10-31-claude-implementer-2.1.316.md) [on 2.1.318](verification/2026-11-05-claude-implementer-2.1.318.md), [on 2.1.319](verification/2026-11-06-claude-implementer-2.1.319.md)
|
|
940
|
+
The headless Claude implementer (#525-4) runs one owned `claude -p` child per turn in its declared worktree, with `--setting-sources ""`, `--strict-mcp-config`, native permission mode `default`, the hub's managed PreToolUse hook and `--permission-prompt-tool mcp__agent-hub__hub_permission_request`; never `--bare`, `acceptEdits`, `dontAsk` or `bypassPermissions`, and `never-ask` is refused. Each task keeps its own persisted session; unscoped chat reuses one only while exactly one task is in progress, and a `hub_inbox` read refuses a batch attributed to another task. The approval path fails closed: `hub_permission_request` is accepted only from the current child's launch and generation, goes to the console's existing approval queue and `approvals.timeout_s`, and offers allow-once and deny only, with no allow-always or session grant. A timeout, a prompt failure, a disconnect, a hub that is down or refusing, or a stale child binding answers deny; a failed hook decides nothing, so the call still waits for a person. The approval title is the tool name and a JSON rendering of the arguments passed through `sanitize()` and the public-text screen (any PII, secret or private-path match withholds the whole value as `[withheld]`, before any cut), never task text, cut at 600 characters with a `[cut, N chars]` marker; the original arguments stay with the child and are not logged. The MCP wire cannot tell a native permission dispatch from a call the model makes itself; a person allow still refers only to its original arguments. Automatic Bash authorization uses the separate single-use host wrapper contract below, never a caller-supplied tool id as native provenance. A stop holds an uncertain delivery until the owned process group is confirmed gone. The [native permission receipt](verification/2026-10-23-headless-claude-permissions.md) is model-free on Claude Code 2.1.309, [repeated on 2.1.310](verification/2026-10-26-claude-implementer-2.1.310.md), [on 2.1.314](verification/2026-10-31-claude-implementer-2.1.314.md), [on 2.1.316](verification/2026-10-31-claude-implementer-2.1.316.md) [on 2.1.318](verification/2026-11-05-claude-implementer-2.1.318.md), [on 2.1.319](verification/2026-11-06-claude-implementer-2.1.319.md), [on 2.1.322](verification/2026-11-10-claude-implementer-2.1.322.md) and [on 2.1.323](verification/2026-11-13-claude-implementer-2.1.323.md); it is not sandbox proof, and a real account, model and person interaction remains a live leg.
|
|
896
941
|
|
|
897
942
|
The #845 host shell wrapper is the only automatic Bash path for a headless implementer. In `ask-when-needed`, a complete public input must pass the existing #816 read-only proof or the closed task-command proof, with an active owned task and registered worktree. Enabled action-policy classes still ask, and `ask`, PII handling and the `never-ask` refusal are unchanged. The native request and authenticated host response both name wrapper protocol 1, so an older plugin cannot drop the rewrite and execute an original command automatically.
|
|
898
943
|
|
|
@@ -900,10 +945,12 @@ A grant uses a random, expiring single-use nonce and an in-memory record bound t
|
|
|
900
945
|
|
|
901
946
|
Task branch authority uses recorded `refs.branch`, otherwise a host-observed non-default attached branch on the first eligible task-command request, excluding `main`, `master`, unknown/detached HEAD and another open task's branch. The binding is a normal `Tasks` write with history and an opaque canonical-root hash; a changed branch or worktree asks and never rebinds. Push grants accept only `git push origin <bound>` or `git push -u origin <bound>`; force, refspec, deletion and other remotes ask. Every origin push URL is checked against the captured project repository and PR argv pins that repository. Execution uses an explicit same-branch refspec; configured remote.origin.push/mirror refuses. Project/worktree PATH directories and aliases are removed, and gh child Git inherits core SAFE_CONFIG through fixed environment configuration. PR body-file content is bounded, screened and snapshotted into executed --body bytes. See [the design contract](specs/2026-09-19-agent-hub-design.md#headless-implementer-host-shell-execution-845) for the exact closed forms and [the native receipt](verification/2026-10-26-headless-claude-shell-context.md) for verification limits.
|
|
902
947
|
|
|
903
|
-
The fresh Codex reviewer (#519) needs `review_mode: "fresh"` and a compat-admitted Codex (receipt-verified 0.146.0, 0.163.0, 0.164.0 and 0.
|
|
948
|
+
The fresh Codex reviewer (#519) needs `review_mode: "fresh"` and a compat-admitted Codex (receipt-verified 0.146.0, 0.163.0, 0.164.0, 0.166.0 and 0.169.0; `ahub agents` shows the current policy); an unverified/untrusted version is unavailable. Before each review it requires a model-free isolation receipt: binary and config unchanged, only the two hub tools in the configured MCP inventory (each approved by its own name, never by a server-wide default, #783), plugins, hooks and Apps disabled (Apps by a separate feature readback), and a named filesystem profile whose fixtures prove public reads, private-path denial (exact, glob and symlink), standard host credential denial and write denial. The fixture root is made in the system temp directory, or in the hub's own `reviewer-proof` directory when a deny entry covers the temp directory (#1493); when both are covered the proof refuses as `fixture_root_denied`, which names no entry. Credential and tool-home roots are denied even with an empty `local.deny`; that list does not cover every personal file. A dangling or unreadable credential root refuses the reviewer, and the reason names only its path class (`~/.docker`, `$DOCKER_CONFIG`), never the path or its contents. A failed per-review start names one class from a closed list (`version`, `binary`, `mcp_inventory`, `plugins_hooks_apps`, `sandbox_proof`, `credential_root`, `fixture_root_denied`, `timeout`, `unknown`) with a fixed sentence in the unavailable reason, `hub.log` and the `reviewer` line of `ahub status`; it never carries a path, native CLI text or a token (#722). Its shell is sandboxed read-only, not Claude's Read/Grep/Glob whitelist. Network and web search are configured disabled but not observed: managed requirements can still select cached web search, and no run has shown the review selecting the profile through `default_permissions`. A failed receipt or start never falls back to a continuing native session, and a child that ends without a saved verdict is never approval. The agy reviewer slot is an unavailable placeholder and never runs; it binds nothing, so agy's own `hub_task_show` reads are not fenced as a review (#792).
|
|
904
949
|
|
|
905
950
|
The fresh Kimi reviewer (#533) needs `review_mode: "fresh"` and a compat-admitted Kimi Code (receipt-verified 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.4.1 and 2.5.1; `ahub agents` shows the current policy) with its native OAuth login; an unverified/untrusted version, or a failed preparation, is unavailable. The [2.3.0](verification/2026-10-22-kimi-qwen-compat.md), [2.3.1](verification/2026-10-25-kimi-231-reviewer-compat.md) and [2.5.1](verification/2026-11-06-kimi-251-reviewer-compat.md) receipts are model-free and do not prove real login or a model review. It is a native tool-authority boundary, not a sandbox: no Seatbelt wraps it, and same-user native code is not isolated from the filesystem or network. Each review starts a new child in a private `KIMI_CODE_HOME` with managed-provider-only config, a clean temporary working directory and an empty skills directory. Its agent may use only `hub_review` and `hub_task_show`, served by a loopback MCP session bound to the task, head and review revision that never carries the hub's control token; it has no native read, file or shell tool and sees only the screened review brief and host facts. Its `credentials/` and `oauth/` directories and `device_id` link to the person's native ones, so refresh keeps Kimi's own lock and atomic rename; no token is copied and `KIMI_DISABLE_OAUTH_LOCK` is never set. A stop revokes its verdict authority before termination; killing it mid-refresh may require a native re-login. Private tasks are never given to it, and a child that ends without a saved verdict is never approval.
|
|
906
951
|
|
|
952
|
+
Reviewer quota admission (#1446, #1466, #1467) adds no account transport and no resume authority. A hard quota refusal is admitted only from a pinned outer native envelope (Claude `rate_limit_event`/`assistant.error`, pinned Codex refusal prefixes inside outer `error`/`turn.failed`), or for Kimi from a hub-owned nonzero child whose complete bounded own stderr starts `error: failed to run prompt: provider.` and contains `usage limit` (always an unknown reset); stdout, model or tool text and wire-log errors are never quota evidence, and the raw message is not kept. It pauses the canonical account through Budget, and only Budget's existing policy resumes it. The Kimi reviewer's usage is read from its private profile's session index and wire log after the owned group settles and before cleanup; a journal intent must be acknowledged before spawn and a terminal record after the read, events carry only an opaque attempt id, enums, counts and times, and an unmatched or damaged history makes the soft count unknown across restart. `review.gate`, `review.unknown_quota` and `review.max_minutes` are `raises`-risk settings: a person terminal or settings session only, never an ordinary dashboard session or the conductor. `review.unknown_quota = "pass"` or `review.gate = "off"` loosens admission only; actual Budget and manual pauses and the role, health and same-family checks still apply. Codex quota reads (#1440) keep only window fields and an allowlist of reset-credit count, proven earliest expiry and the `ordinaryUsageAllowed`/`hasCredits`/`unlimited` flags, in memory; balances, account and credit ids and descriptions are discarded at the adapter, and no credit flag changes a pause.
|
|
953
|
+
|
|
907
954
|
The review brief (#520) withholds private changes whole (both sides of a move) and counts them; a rule file that fails the private-data screen is named, not shown. Attributes and rules are read at the merge base, so a change cannot loosen its own review. Optional changed symbols (#684) come from ripwire 0.6.7 on the daemon's host PATH, run as an owned process on a disposable snapshot of the task's commit; each path, name and kind passes the hub's public metadata screen before the brief, the console's task detail or the dashboard shows it, a private task stores and shows none, and a failed or missing read is `unknown`, never a gate. Spec acceptance, plan review, plan conformance, premature-review, cost, test-integrity (#481 S4), issue and PR identity linking (#694) and dogfood scorecard (#687) reads fetch GitHub metadata only (edit times, check states, thread authorship and resolution, changed file names, open PR heads, workflow run conclusions), never issue bodies, comments or patches. Required-check discovery at `ahub init --sdlc advise|enforce` (#1344) makes at most three capped GitHub reads (the default branch, the latest completed default-branch run, that run's jobs), each bounded to 5 s within a 20 s deadline, and otherwise reads only literal job names from `.github/workflows/*.yml`, refusing links. Issue identity linking at propose and accept (#723) parses the task's title and refs locally, reads nothing from GitHub and skips PII tasks. The CI workflow keeps `contents: read` and `actions: read`.
|
|
908
955
|
|
|
909
956
|
Deliverable records (#509a). `hub_task_done` and `hub_sdlc_record` name files as `{path, format, version?}`; the hub hashes them itself and refuses a claimed `sha256`, `hash` or `bytes` and any field it does not own. Paths resolve under the owner's execution root with `realPath` and `guardPath` in read mode: outside the project, the secrets denylist, the hub's own state (`.git`, `.agenthub`), a dangling link, a non-regular file and more than 256 MiB each or 512 MiB together are refused, with the path as given and never a resolved one. The file is opened without following a final link and its device, inode, size and time are compared with what was checked, before and after the read, so a swapped or changing file is refused rather than recorded half-read; a bad call writes nothing. A declared worktree instance whose root is not proven refuses, and a later read of it reports `unknown`. No hash of hub state is ever taken, and a file the hub cannot read or vouch for is `unknown`, never `unchanged`. A reviewer's approval re-hashes the files and is refused when one changed, went missing or is unknown; only the person may approve the current bytes, which are then measured and bound. For a PII task, a file under `pii.paths` or a path matching a PII pattern, `publicDeliverables` is the one projection every peer view, review request, status and log uses: id, hash and size only. The board keeps the path, as it keeps a PII task's text. `ahub deliverables` (#509b) from an agent shell lists only the tasks `hub_task_show` would show that agent (#933), and `--live-test` cannot delegate it. It lists the board's records through `publicDeliverables` and opens a file only with `--check`, through the same reader and limits. The dashboard's Deliverables chip and task group use the same projection of the same records and never read a file on the poll; a `changed` mark there is only as fresh as the last live read in this daemon.
|
|
@@ -912,6 +959,12 @@ Person-directed release authorization (#481 S6, #1063, #1381). `ahub sdlc author
|
|
|
912
959
|
|
|
913
960
|
Merge adoption and carried spec consent (#1348, #1361). `ahub sdlc adopt-merge <task> --pr <n>` is the person's or the current configured conductor's; another caller is refused, `--live-test` cannot delegate it as the person, and a private task or private turn refuses for every actor before any GitHub read. It reads one bounded GraphQL snapshot and requires the PR merged at the task's last recorded full head with every configured required check green there, no unresolved or unknown review thread, no pending or unknown review request, no change request and no open Important finding. It records `merged outside the hub` under the actual actor and moves the task to `approved`, without inventing a reviewer verdict or reviewed head, running `gh pr merge` or removing a branch or worktree. A superseding task may carry an older cancelled task's person spec consent only for the same canonical repository and issue, named by a whole local `supersededBy` reference, when a fresh host GitHub read proves the same issue `lastEditedAt`; no issue body is read, caller timestamps cannot grant it, unknown or truncated metadata leaves consent absent, and manual acceptance stays person-only.
|
|
914
961
|
|
|
962
|
+
Instructed SDLC configuration (#1432). `ahub sdlc configure [--mode off|advise] [--required-checks <names>]` is the person's, or the uniquely configured conductor's when the person directly instructed it in its own session; a hub message, task text, review, file or relay is never that instruction, and the daemon cannot verify the conversation (a cooperative claim, as for release consent). The conductor path refuses a child `toolsOwner`, a private or PII context, observer input, recovery and shutdown, and `--live-test` cannot delegate it. It stages only `off`/`advise` and check names for the next start: `ahub init`, `enforce` (or a running or saved `enforce`), `[security]`, `eval_check`, `config_paths` and custom stages stay with the person's settings editor, and it authorizes no merge, tag, release or publication. A retained `sdlc_config_instruction` intent precedes the write and a `config_edit` result audit with the actual actor follows it, both without values; an intent that cannot be retained writes nothing.
|
|
963
|
+
|
|
964
|
+
Security findings, the security pass and the audit ledger (#1403 T1, A2, A4, A5; lifecycle `advise` or `enforce` only). An open `important` finding with `pass: "security"` must carry the `principal`/`control`/`resource`/`result` boundary; the hub opens no GitHub issue for a security finding, and a follow-up card names the task, finding id and pass, never the boundary text or path. `[security] paths` in `.agenthub/sdlc.toml` makes a PR whose complete file inventory matches need a recorded `security_pass` bound to the reviewed head; an incomplete inventory is `unknown`, never `not_required`, and `enforce` refuses the approval and blocks the merge gate for both. Readbacks carry a count of matching paths, never their names. `ahub sdlc audit start|show` is admitted by the daemon for the person or the configured conductor; only the hub writes the ledger, the assigned auditor reports through `hub_audit_report` (refused in a private or PII turn, finding text screened like a verdict note, never captured to memory), and a confirmed important finding stays a candidate until a different reviewer-role peer or the person verifies it, then is settled `fixed` or `false_positive` in a separate call by someone other than the finder. Until settled, an open or accepted important security finding shows only its id, status and that its details are withheld in every view but the person's, and the hub sends no peer message with its path, rationale or boundary. A headless auditor's final answer is still shared automatically, so keeping that text out of it is the brief's instruction, not something the hub enforces.
|
|
965
|
+
|
|
966
|
+
Advisor surveys (#1403 T7). `ahub sdlc survey start [--focus ...]` (person or configured conductor, lifecycle on) files one read-only `plan` task at an exact source ref; repository content is data, and the task installs or runs no scanner, executes no fix, publishes no issue and pushes nothing. The planner's vetting in `hub_survey_report` is its attestation, not a host proof that the source was reread; no resulting card authorizes execution. Private turns, child contexts, recovery and ended role authority refuse writes, security finding text and paths stay in the authorized report, not in public cards, briefs or memory, and survey reports are never captured. `--live-test` refuses every form but `show`.
|
|
967
|
+
|
|
915
968
|
SDLC metrics and control bands (#481 S7). `ahub sdlc metrics` and `hub_sdlc_metrics` are planner or person only, read-only, and refused during a private or PII turn. A private task is counted as withheld and read for nothing else; the report calls no model and makes no GitHub read. Band breaches are written only by the daemon's evaluator through Tasks, never while it is stopping, recovering or has a storage error. A `diagnose` or `propose` card is a backlog task (`triage` or `plan`) whose text is fixed words, numbers and task ids, never task text; it passes the PII signal check and the candidate-text screen before it is written, and no GitHub issue is created. A `log` breach is one hub notice, remembered in the board's `band_notices` table as a marker (`<metric>:#<task>:log`, checked against a fixed pattern) and a time, nothing else.
|
|
916
969
|
|
|
917
970
|
Design specs (#1097, #1102, #1107). `hub_specs` is read-only and refused during a private or PII turn. PII tasks and private turns publish no spec paths through task notices. `spec_ack` on `hub_task_done` is refused for private work and while specs review is off. Each id and reason must be public metadata, a withheld reason is refused, and the acknowledgements are recorded at the exact head. `ahub specs stamp` is person-only: refused for an agent identity and under `--live-test`, and refused without a terminal even with `--yes`. After the person answers, it rechecks HEAD, the state of each covered path and every target file's bytes, and any change refuses the whole run.
|
|
@@ -938,7 +991,7 @@ Submodules (#1123, the person's ruling of 2026-11-03: deny `.git` writes, submod
|
|
|
938
991
|
|
|
939
992
|
Campaign authority is the person's. `ahub study draft|revise|approve|approve-protocol|close`
|
|
940
993
|
are Console in `classifyPeerCommand`, and the daemon answers the `study_*` operations
|
|
941
|
-
to the console role only; `ahub study show`
|
|
994
|
+
to the console role only; `ahub study show`, `study experiments` and `study evidence <ev-id>` are the only forms an agent shell may run (`study evidence --task` and `study check` stay Console).
|
|
942
995
|
Agents use hub tools instead: `hub_study_draft` and `hub_study_revise` take the
|
|
943
996
|
configured planner's planning authority and store drafts only, `hub_study_show` is
|
|
944
997
|
read-only for every connection, and `hub_study_handoff` takes only the current
|
|
@@ -970,7 +1023,7 @@ role admission.
|
|
|
970
1023
|
separate `runner-attested` level described below; their fields never overwrite
|
|
971
1024
|
declared or host-measured evidence. Public experiment recording tools and the
|
|
972
1025
|
receipt CLI are the separate #602 slice.
|
|
973
|
-
- **Claim evidence links (#931 T1).** `hub_evidence_record` is published only to
|
|
1026
|
+
- **Claim evidence links (#931 T1-T3).** `hub_evidence_record` is published only to
|
|
974
1027
|
research-profile peers. It admits only the current in-progress owner of a stored
|
|
975
1028
|
research task, outside a private turn, on a non-PII task and a registered public
|
|
976
1029
|
source whose raw hash matches. The checks repeat after screening and inside the
|
|
@@ -978,6 +1031,21 @@ role admission.
|
|
|
978
1031
|
provenance, never an entailment judgment or host verification; person verdicts
|
|
979
1032
|
stay the only judgment record. Receipts carry the link id, revision and task id
|
|
980
1033
|
only, and arguments and results are excluded from capture.
|
|
1034
|
+
`hub_evidence_read` (and `ahub study evidence`) resolves a link under the
|
|
1035
|
+
existing task-show authority and rechecks the claim list, registered source,
|
|
1036
|
+
full screened projection, current converter fingerprint and privacy after
|
|
1037
|
+
every await. Only `resolved` returns a sanitized excerpt of at most 4096 UTF-8
|
|
1038
|
+
bytes; `stale`, `unavailable` and `private` carry ids only, and a later private
|
|
1039
|
+
upgrade withholds the source id, hashes, locator and excerpt, even from a
|
|
1040
|
+
formerly public link. No excerpt is cached or captured. A withdrawal is the
|
|
1041
|
+
owner's or the person's next revision; earlier revisions stay.
|
|
1042
|
+
`ahub study check <task> <manifest.json>` is the person's explicit, bounded,
|
|
1043
|
+
offline readiness check: it fetches nothing and runs no semantic judge, may
|
|
1044
|
+
call the configured privacy screen, and treats unknown screening, missing,
|
|
1045
|
+
private or truncated inputs as never ready. `ready` is structural provenance,
|
|
1046
|
+
not truth. A manifest-bound verdict (`ahub task claim ... --manifest
|
|
1047
|
+
--disposition`) stays the person's and is refused against a hub without
|
|
1048
|
+
`research_synthesis`.
|
|
981
1049
|
- **Privacy.** A campaign whose parent task is PII, or that names a private source,
|
|
982
1050
|
is private, and so is an attempt with a private task, input or output path.
|
|
983
1051
|
Public views keep ids, counts, states and provenance and stub every question,
|
|
@@ -1106,6 +1174,8 @@ Only an unchanged task/owner/native-generation binding receives an agent result.
|
|
|
1106
1174
|
Routing receives capability availability and its reason as pure inputs. Capability admission applies to task owners only: non-PII implement/test/bulk-edit owners require tests, and non-PII issue-backed owners in every class (including review-class owners) require spec access. Designated reviewers are not gated by these owner-only capabilities; roster, privacy, role and other eligibility rules still apply. PII tasks are exempt from these two capability requirements and retain the existing local-only owner and person reviewer rules; spec/check tools still refuse them. Explicit nominations and reservations cannot bypass these checks. Inactive sandboxed peers establish their GitHub probe at first spec use, and every explicit local/Pi start path refreshes it (including a prior authentication failure) with concurrent probes shared; host-provided embeddings can inject bounded probe implementations without implicitly contacting real accounts in fixtures. Neither path grants a model control over the probes.
|
|
1107
1175
|
|
|
1108
1176
|
|
|
1177
|
+
Plan intent fields (#1403 T6, lifecycle on). A plan's `base`, `out_of_scope`, `stop_if` and `steps` share the task privacy screen and stored plan revision, and a step's `verify` text is never executed by the hub. Base drift lists changed names from the local remote-tracking default branch and commit objects only, with no fetch, network request, lazy object fetch or patch read; the checkout HEAD or a guessed `main` is never substituted, private tasks and turns disclose no drift, and drift is advice that never gates acceptance, completion or approval.
|
|
1178
|
+
|
|
1109
1179
|
## Structured capture write screening
|
|
1110
1180
|
|
|
1111
1181
|
The amem host screens the actual data that may persist, including literal keys/values and its JSON form. It decodes authoritative tool argument/result JSON once before any excerpt cap, so escaping cannot hide whitespace-matching PII, a private data path or a structured secret key/value. It does not recursively interpret arbitrary embedded encodings. Non-persisted host locators (cwd and transport/session identifiers) are kept outside text-policy content; current project/profile authority is checked separately. Ordinary events with a valid private-path policy still capture public data. Private turns remain excluded before this code runs.
|
|
@@ -1335,6 +1405,10 @@ newer value or another adapter owner applied. Model ids are one bounded token
|
|
|
1335
1405
|
cannot inject a flag. The override grants no model, provider or account
|
|
1336
1406
|
authority, leaves the machine-local `instances.*.model` and `*_cmd` tier 3
|
|
1337
1407
|
values as they are, and an unsupported surface is refused without a restart.
|
|
1408
|
+
An observed model (#1402) is recorded on `turn_end` with its evidence class only
|
|
1409
|
+
after the bounded label check (a failing label is dropped whole, an alias is never
|
|
1410
|
+
expanded); the EFFECTIVE MODEL that `ahub status` shows from a `served` or
|
|
1411
|
+
`session` observation is display only, never an override or authority.
|
|
1338
1412
|
|
|
1339
1413
|
## Optional adec decision route (#554)
|
|
1340
1414
|
|
|
@@ -1459,10 +1533,11 @@ same page through a provider port with no new action.
|
|
|
1459
1533
|
|
|
1460
1534
|
`hub_ask` lets any peer put a structured question (one to four questions, two to eight options each) to the person. A question is not a permission: it is its own record in `hub.db` (`questions`), has its own control messages, and never expires as a denial.
|
|
1461
1535
|
|
|
1462
|
-
- **Who answers.**
|
|
1536
|
+
- **Who answers.** The person's console and terminal answer paths remain unchanged. The narrow instructed-conductor exception ([#1473](https://github.com/STAIxBWLB/agent-hub/issues/1473)) lets only the unique configured conductor record the person's explicit decision in that conductor's own session, following the [release-consent precedent (#1328)](https://github.com/STAIxBWLB/agent-hub/issues/1328). The conductor supplies a non-empty short quote for one open set through `hub_ask_answer {set, answers, instruction}` or `ahub answer <set> ... --instructed "<quote>"`. This is a cooperative instruction claim: the daemon checks actor/session/context and validates answers; it does not independently prove who authored the quote. A hub, task, review, file or peer relay never qualifies. A non-conductor, the asking peer itself (even when conductor), private caller or private question, live-test/delegated run, owned tools child and closed set are refused without changing the row, with the person's `ahub console` next step. There is no blanket delegation or cross-project answering. Other tools/peer answers remain refused. A `hub_send` body, tool result, file or envelope quoting an answer remains text and never substitutes for these guarded paths. The answer envelope the peer receives is built by the hub (`kind: "answer"`, `from: "user"`), so its header cannot be forged: every body goes through `sanitize()`, and `kind`, never the sender, is what code keys on.
|
|
1537
|
+
- **Instructed provenance.** The stored row uses surface `conductor`, the conductor peer as actor and `instructed: true`. The console/dashboard and the asking peer's waiting result or late-answer envelope show "answered by <conductor> on the person's instruction". `agent_cli` marks the run instructed. Within hub-owned paths, the instruction quote is DB-only: no read view, tool response, envelope, event, log, Capture or progress observer contains it. The CLI `--instructed` form puts the quote on a shell command line that native hooks outside the hub may record; the conductor should prefer `hub_ask_answer`. Those external hooks are outside this repository's capture guarantee. Provenance never includes the quote or treats it as release consent.
|
|
1463
1538
|
- **One terminal transition.** `open` becomes `answered`, `superseded`, `cancelled` or `expired` by one compare-and-set (`UPDATE ... WHERE state = 'open'`). Of any number of concurrent answers, stops and expiries exactly one wins, and every other caller is told the row's real state. A second answer is refused and publishes nothing.
|
|
1464
1539
|
- **Validation.** An answer is checked against the stored row before anything is written: every question answered once, only offered option ids, one option unless `multi`, free text only where `allowOther` and at most 500 characters. The refusal names the question by position and never echoes the offered or submitted text. Input is closed and bounded the same way (`parseAsk`).
|
|
1465
|
-
- **Answering from acon (#1053 T5).** The plugin accepts an `answer` action only when the console advertises `action.meta` and passes its own `meta` (`via: "console"`, a verified `identity` and `node`), which the page cannot set. Without it, or with page-supplied `identity`, `surface`, `questionSet`, `projectId` or `instanceId` fields, the action is refused before any request reaches the hub (`test/questions-plugin.test.ts`). The project and set come from the inbox item id the plugin built, never from the page. The plugin reaches the hub through a dedicated manager port (`projectConsole(...).answer`), not through the dashboard action whitelist, so the dashboard page of `ahub ui --all` and the manager's `ui_action` whitelist have no `answer` action, and a page can never answer for the person. The hub re-validates every answer against the stored row. The verified `identity` the plugin read from the console's own `meta` rides with the answer (`answer { ..., surface: "acon", person }`); the hub records it, one bounded line, on the answered row and on the `question` event, and reads `person` only for the `acon` surface, so a terminal or console answer cannot claim another person. It is never question or answer text. The acon types of the form and of the submitted answer (`ActionMeta`, `InboxVerb`, `VerbForm`, `InboxAnswers`) are type-only imports from the exact-pinned `@staix/agent-console/contract` entry, never hand-copied. `ahub answer` with any operand is refused in `liveTestRefusal` (a delegated `--live-test` run is promoted to console identity, so without it an agent shell could answer its own `hub_ask` as the person); only the bare listing is allowed there.
|
|
1540
|
+
- **Answering from acon (#1053 T5).** The plugin accepts an `answer` action only when the console advertises `action.meta` and passes its own `meta` (`via: "console"`, a verified `identity` and `node`), which the page cannot set. Without it, or with page-supplied `identity`, `surface`, `questionSet`, `projectId` or `instanceId` fields, the action is refused before any request reaches the hub (`test/questions-plugin.test.ts`). The project and set come from the inbox item id the plugin built, never from the page. The plugin reaches the hub through a dedicated manager port (`projectConsole(...).answer`), not through the dashboard action whitelist, so the dashboard page of `ahub ui --all` and the manager's `ui_action` whitelist have no `answer` action, and a page can never answer for the person. The hub re-validates every answer against the stored row. The verified `identity` the plugin read from the console's own `meta` rides with the answer (`answer { ..., surface: "acon", person }`); the hub records it, one bounded line, on the answered row and on the `question` event, and reads `person` only for the `acon` surface, so a terminal or console answer cannot claim another person. It is never question or answer text. The acon types of the form and of the submitted answer (`ActionMeta`, `InboxVerb`, `VerbForm`, `InboxAnswers`) are type-only imports from the exact-pinned `@staix/agent-console/contract` entry, never hand-copied. `ahub answer` with any answering operand, including `--instructed`, is refused in `liveTestRefusal` (a delegated `--live-test` run is promoted to console identity, so without it an agent shell could answer its own `hub_ask` as the person); only the bare listing is allowed there.
|
|
1466
1541
|
- **Residual.** The same as `permit`: a vendor agent that can read the control token can act as the console (see "What is not defended"). This feature does not narrow that and does not widen it.
|
|
1467
1542
|
- **Privacy.** Question and answer text live in `hub.db` and in the envelope addressed to the asking peer, nowhere else: never `hub.log` (an `answer` or question-notice envelope logs a fixed stub), never `events.jsonl` (the `question` event carries the set id, peer, event name, counts, latency, surface and a closed reason), never the console tail or the dashboard feed (`redactBusEvent` stubs the body), never memory capture (`QUESTION_TOOLS`) or the progress observer. A question asked in a PII turn, or about a PII task, is stored `private` and its late envelope is private too. The inbox title of a private question is a stub (`<peer> asks a question`); its text is only in the answer form, the person's own answer surface, and the status attention model, the stream line and the CLI audit carry ids only. `test/questions-console-daemon.test.ts` pins these with a PII task, the status reply, the dashboard snapshot, `hub.log`, `events.jsonl` and memory capture.
|
|
1468
1543
|
- **Not defended.** A peer that is cancelled, superseded or restarted loses a pending question's wait, never its row, until the person or `questions.ttl_s` settles it. An answer a person gives is shown to the asking peer in full; do not ask the person for a secret.
|
package/docs/text-projection.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- Facts excludes private paths before conversion. The converter reads an immutable snapshot in an owned temporary directory, from its own scratch directory, with literal read grants for that file and for the program and script files its argv names (relative ones are passed as absolute paths, and the directories above an in-project script can be listed) (nothing else in the project is readable, even under a `local.read_allow` entry that encloses it, so a converter that follows an include or loads a sibling helper module fails), uses the existing macOS no-network/read-only sandbox and has a 5-second deadline, 16 MiB input cap and 256 KiB stdout/stderr cap. A trusted helper owns and stops its process group; converter stderr is never published.
|
|
6
6
|
- Output caches in state by raw content hash, extension and argv/program/script metadata fingerprint. Invalid/oversized cache or failing/unavailable conversion falls back to the existing raw/binary facts behavior, with one bounded notice per extension. A conversion that fails with its full deadline is not tried again for the same bytes and command while its entry lives in the failure record, which is in memory, bounded at 1024 entries, and cleared when full or at restart (#382).
|
|
7
7
|
- Raw hashes and git blob identities remain the change identities. Projected text only supplies presentation diffs. A projected read or patch cannot establish raw-file write attribution. Existing text privacy checks and header sanitization still apply.
|
|
8
|
+
- A research source registered through a converter binds that extension's current converter fingerprint (argv/program/script metadata and project root) and its full output, at most 256 KiB (#931). After the `text_projection` entry for that extension changes, `hub_evidence_read` reports its evidence links `stale` (`projection_changed`), or `unavailable` once the entry is removed; re-registering the same bytes does not rebind them (docs/profiles.md, "Claim evidence links").
|
|
8
9
|
- Converter programs may require temporary writes/caches; those fail under this read-only policy. Use a converter that emits stdout. The owner and other native same-user processes remain outside this boundary.
|
|
9
10
|
- Linux retains no-sandbox/no-converter behavior. No native model/account study runs. Shadow repositories and profile override/glob follow-ups remain open in #259.
|
|
10
11
|
|