@staix/agent-hub 0.37.0 → 0.39.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 +55 -0
- package/README.md +17 -7
- package/docs/adding-an-ai-tool.md +6 -4
- package/docs/agent-notes/README.md +16 -0
- package/docs/agent-notes/adapters.md +4 -2
- package/docs/agent-notes/budget.md +8 -0
- package/docs/agent-notes/daemon.md +15 -8
- package/docs/agent-notes/local-worker.md +1 -1
- package/docs/agent-notes/security-review.md +55 -0
- package/docs/agent-notes/tasks.md +15 -4
- package/docs/agent-notes/tests.md +3 -2
- package/docs/design/adapters.md +51 -0
- package/docs/design/agent-hub-architecture.md +29 -1
- package/docs/design/guidance-probes.md +365 -0
- package/docs/design/task-board.md +151 -5
- package/docs/dogfood.md +22 -7
- package/docs/events.md +3 -3
- package/docs/memory.md +5 -5
- package/docs/operations.md +189 -32
- package/docs/profiles.md +101 -9
- package/docs/quickstart.md +38 -4
- package/docs/research.md +6 -3
- package/docs/roles.md +52 -0
- package/docs/sdlc.md +187 -1
- package/docs/security.md +56 -13
- package/docs/text-projection.md +1 -0
- package/docs/verification/2026-11-11-0.38.0.md +41 -0
- package/docs/verification/2026-11-11-guidance-probe-t3-1226.md +85 -0
- package/docs/verification/2026-11-11-guidance-probe-t4-1226.md +65 -0
- package/docs/verification/2026-11-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/verified.json +48 -25
- package/package.json +3 -3
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +1989 -474
- package/plugins/agent-hub/server.js +2056 -512
- 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 +1 -1
- package/src/adapters/agy/hooks.ts +7 -0
- package/src/adapters/claude-channel.ts +3 -2
- 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 +2 -0
- package/src/adapters/compat.ts +4 -4
- 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 +6 -6
- package/src/adapters/definitions/native-cli-jcode-mcp.ts +18 -3
- package/src/adapters/definitions/native-quota.ts +122 -0
- package/src/adapters/definitions/native-recovery.ts +3 -0
- package/src/adapters/definitions/qwen.ts +1 -1
- package/src/adapters/kimi-review.ts +23 -0
- package/src/adapters/kimi-wire-usage.ts +39 -16
- package/src/adapters/local-probe.ts +65 -6
- package/src/adapters/local-worker.ts +6 -3
- package/src/adapters/pi-state-model.ts +12 -0
- package/src/adapters/pi.ts +22 -0
- package/src/adapters/print-result-model.ts +24 -0
- package/src/adapters/registry-types.ts +10 -1
- package/src/adapters/registry.ts +19 -2
- package/src/adapters/reviewer-print.ts +130 -15
- 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/console-state.ts +3 -1
- package/src/cli/free-text.ts +20 -0
- package/src/cli/handoff-args.ts +1 -1
- package/src/cli/help.ts +61 -6
- package/src/cli/identity.ts +10 -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 +141 -17
- package/src/cli/main.ts +216 -56
- package/src/cli/model.ts +1 -1
- package/src/cli/output.ts +64 -5
- 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/role-doctor.ts +39 -0
- package/src/cli/sdlc-output.ts +66 -1
- package/src/cli/study-output.ts +54 -0
- package/src/cli/study.ts +14 -1
- package/src/cli/terminal-recovery.ts +14 -0
- package/src/cli/upgrade-presentation.ts +4 -0
- package/src/cli/upgrade-restore-state.ts +12 -3
- package/src/cli/upgrade-runtime.ts +41 -3
- 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 +479 -14
- package/src/hub/budget.ts +54 -4
- package/src/hub/bus.ts +2 -2
- 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 +373 -66
- package/src/hub/deliverable-files.ts +17 -1
- package/src/hub/dogfood-profile.ts +3 -2
- package/src/hub/envelope.ts +6 -1
- package/src/hub/events.ts +23 -2
- package/src/hub/folder-trigger.ts +11 -4
- package/src/hub/guidance-probe-store.ts +345 -14
- package/src/hub/guidance-probes.ts +338 -4
- package/src/hub/hub-tools.ts +88 -16
- package/src/hub/kimi-usage.ts +34 -2
- package/src/hub/lifecycle-schema.ts +3 -3
- package/src/hub/manager.ts +24 -1
- 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 +2 -0
- package/src/hub/operational-authority.ts +8 -2
- package/src/hub/operational-view.ts +5 -1
- package/src/hub/peers.ts +2 -0
- package/src/hub/person-command.ts +25 -0
- package/src/hub/plan-conformance.ts +20 -2
- 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 +14 -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/routing.ts +7 -3
- package/src/hub/sdlc-merge.ts +1 -1
- package/src/hub/sdlc-queue.ts +14 -4
- package/src/hub/sdlc-release.ts +1 -1
- package/src/hub/sdlc.ts +10 -6
- 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/startup-event-seeds.ts +5 -3
- package/src/hub/startup-timing.ts +1 -0
- package/src/hub/supervision.ts +3 -2
- package/src/hub/synthesis-readiness.ts +279 -0
- package/src/hub/tasks.ts +1131 -72
- package/src/hub/text-projection.ts +11 -1
- package/src/local/probe-types.ts +2 -0
- package/src/local/probe-workspace.ts +191 -2
- package/src/memory/capture.ts +2 -1
- package/src/ui/guidance-panel.ts +34 -2
- package/src/ui/guidance-view.ts +33 -0
- package/src/ui/index.html +3 -0
- package/src/ui/office-model.ts +11 -3
- package/src/ui/office-space.ts +50 -30
- package/src/ui/plugin.ts +31 -14
- package/templates/AGENTS.block.md +14 -14
- package/templates/profiles/general.json +1 -1
- package/templates/profiles/research.json +1 -1
- package/templates/profiles/writing.json +1 -1
|
@@ -10,6 +10,7 @@ implements: []
|
|
|
10
10
|
covers: [task-board]
|
|
11
11
|
tags: [agent-hub, dogfood]
|
|
12
12
|
paths:
|
|
13
|
+
- src/hub/review-budget.ts
|
|
13
14
|
- src/hub/tasks.ts
|
|
14
15
|
- src/hub/sdlc.ts
|
|
15
16
|
- src/hub/build-entry.ts
|
|
@@ -39,6 +40,7 @@ paths:
|
|
|
39
40
|
- src/hub/deliverables.ts
|
|
40
41
|
- src/hub/deliverable-files.ts
|
|
41
42
|
- src/hub/plan-conformance.ts
|
|
43
|
+
- src/hub/audit-source.ts
|
|
42
44
|
- src/hub/sdlc-merge.ts
|
|
43
45
|
- src/hub/sdlc-mirror.ts
|
|
44
46
|
- src/hub/ci-watch.ts
|
|
@@ -128,7 +130,7 @@ before and after each awaited GitHub read and immediately before the write.
|
|
|
128
130
|
Recovery, shutdown and storage holds refuse adoption.
|
|
129
131
|
|
|
130
132
|
Eligible task states are exactly `in_progress`, `in_review` and
|
|
131
|
-
`changes_requested`, with all Important findings dispositioned. `proposed` and
|
|
133
|
+
`changes_requested`, with all Important findings dispositioned (an open Important marked `needs_validation` or `pre_existing` under an enabled lifecycle, #1403, is a recorded non-blocker: it is counted apart, does not carry as an obligation, and on approval yields one marker-deduplicated backlog card through `Tasks`; with the lifecycle off these fields are refused). `proposed` and
|
|
132
134
|
`backlog` tasks must be assigned and accepted first. `approved` and `cancelled`
|
|
133
135
|
are already closed. Each refusal names the state and the next step. The Board
|
|
134
136
|
transition is host-only and requires the current flow revision; the generic
|
|
@@ -208,15 +210,120 @@ Public receipts contain only link ID, revision and task ID. The tool is excluded
|
|
|
208
210
|
from argument/result capture and from read-only publication; dev-profile tool
|
|
209
211
|
lists retain their existing shape.
|
|
210
212
|
|
|
211
|
-
|
|
212
|
-
hash is checked against registry metadata.
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
At recording, projection hashes/version remain caller-declared bindings and the
|
|
214
|
+
raw source hash is checked against registry metadata. T2 adds the public
|
|
215
|
+
`hub_evidence_read` projection through the existing task-show authority. It
|
|
216
|
+
re-resolves the current claim revision and screened, complete registered source
|
|
217
|
+
projection on every read, with fresh privacy and authorization fences. Unicode
|
|
218
|
+
scalar-value locators are explicitly converted from source-read ranges. Missing,
|
|
219
|
+
truncated, legacy-unbound or changed material is unavailable or stale; private
|
|
220
|
+
upgrades return IDs only, never a source ID, path/origin, excerpt or narrative.
|
|
221
|
+
Resolved excerpts are capped at 4096 UTF-8 bytes and never cached or captured.
|
|
222
|
+
Before handing a passage to a peer, the host latches its existing review-input
|
|
223
|
+
observer exclusion. Derived answers and completion/review prose stay out of
|
|
224
|
+
shared memory and public observer projections; the local worker also excludes
|
|
225
|
+
the whole tool batch and its retained history. Ordinary replacement input follows
|
|
226
|
+
the existing observer-release rules, without changing private-task authority.
|
|
227
|
+
|
|
228
|
+
The existing source registry owns an optional projection receipt bound to raw
|
|
229
|
+
SHA-256, complete text SHA-256 and the genuine converter fingerprint (or named
|
|
230
|
+
UTF-8 decoder). This adds no source registration authority or second source
|
|
231
|
+
store. A read does not retrofit a receipt or execute a network fetch. A bounded
|
|
232
|
+
latest-link inventory and current screened metadata collapse overlapping origins
|
|
233
|
+
into opaque connected groups; unknown/private/overflow evidence gives no group
|
|
234
|
+
count. Group counts are provenance, never an independence or truth verdict.
|
|
235
|
+
#901 keeps the sole person-judgment record. The explicit synthesis check below
|
|
236
|
+
consumes it without deriving a verdict from evidence relations.
|
|
215
237
|
Stored evidence adds a conditional `research_evidence` recovery feature and
|
|
216
238
|
`{links, revisions, digest}` integrity section. An absent section is the empty
|
|
217
239
|
store, preserving older recovery records; an empty database requires no new
|
|
218
240
|
feature. Provenance never manufactures a person verdict or readiness result.
|
|
219
241
|
|
|
242
|
+
### Explicit synthesis readiness (#931 T3)
|
|
243
|
+
|
|
244
|
+
`ahub study evidence --task <task>` exposes bounded authoring bindings, not
|
|
245
|
+
source or claim prose. `ahub study check <task> <manifest.json>` accepts only a
|
|
246
|
+
version-1 manifest naming the task incarnation, registered Markdown/BibTeX
|
|
247
|
+
deliverable IDs and SHA-256 hashes, current #901 claim identities/revisions,
|
|
248
|
+
complete latest-link inventory revision/hash per claim, and selected evidence
|
|
249
|
+
IDs/revisions with citation keys. The hash includes every latest inventory row,
|
|
250
|
+
including unselected counterevidence and withdrawn links. No second claim or
|
|
251
|
+
judgment identity/store is created.
|
|
252
|
+
The manifest shape permits at most 64 KiB, 50 claims, 128 selected links total
|
|
253
|
+
and 128 ASCII characters per citation key. The existing bounded latest-link
|
|
254
|
+
inventory must be complete. Guarded document/bibliography reads use 256 KiB and
|
|
255
|
+
4 MiB; one check refuses above 64 MiB of active registered raw source inputs.
|
|
256
|
+
|
|
257
|
+
`EvidenceLinkV1.status` may be `withdrawn` only on a later append-only revision.
|
|
258
|
+
Legacy omission means active and keeps its original canonical bytes/ID;
|
|
259
|
+
explicit active input normalizes to omission. Withdrawn rows remain in complete
|
|
260
|
+
inventory bindings but supply no active locator. A link that was ever
|
|
261
|
+
`contradicts` remains unresolved after withdrawal or reclassification: its state
|
|
262
|
+
is `withdrawn`, never silently `none`. Only a person's resolved/qualified
|
|
263
|
+
disposition bound to the current manifest clears it, whoever withdrew it. The owner or
|
|
264
|
+
console person uses the existing writer for withdrawal; the active task's owner
|
|
265
|
+
is fenced separately from the actual recorded actor. Source, claim and privacy
|
|
266
|
+
admission stay unchanged. The person exception permits withdrawal, not initial
|
|
267
|
+
active-link creation. Historical revisions retain current privacy checks.
|
|
268
|
+
Person withdrawal also requires an in-progress public research task. Closed
|
|
269
|
+
task evidence stays final: corrections require a follow-up research task and
|
|
270
|
+
its own manifest binding, and a refusal names that next step. The earlier task's
|
|
271
|
+
manifest cannot be applied to the new task incarnation.
|
|
272
|
+
The host verifies each retained revision's canonical hash and contiguous
|
|
273
|
+
sequence within 1,024 revisions per claim. Missing, corrupt or over-window
|
|
274
|
+
history is unknown and cannot verify readiness. Current privacy also covers
|
|
275
|
+
historical source references used by this observation. The history spans claim
|
|
276
|
+
revisions of the same claimId and contributes its verified commitment to the
|
|
277
|
+
existing inventory revision/hash. Moving a link to another claim revision or
|
|
278
|
+
restoring the exact #901 claim list cannot discard its former contradiction
|
|
279
|
+
or re-bind an earlier person disposition. #901 identity and verdict restoration
|
|
280
|
+
remain unchanged.
|
|
281
|
+
Recovery requires `research_evidence_withdrawal` only while a persisted
|
|
282
|
+
withdrawal revision needs its newer parser. Active-only legacy stores retain
|
|
283
|
+
their existing compatibility requirement.
|
|
284
|
+
|
|
285
|
+
The existing person-only #901 `ClaimVerdict` may carry optional
|
|
286
|
+
`synthesis: {manifestSha256, disposition: resolved|qualified}`. The console
|
|
287
|
+
`ahub task claim` takes paired `--manifest <manifest.json>` and `--disposition`
|
|
288
|
+
flags. The descriptor is transient. At entry, the hub independently refreshes
|
|
289
|
+
current bindings and recomputes its canonical manifest hash; a mismatch names
|
|
290
|
+
the current hash and refuses before the existing history write, inside the
|
|
291
|
+
final snapshot fence. No changed inventory silently re-binds an earlier
|
|
292
|
+
disposition. It records no claim or qualification prose. A disposition closes an open contradiction
|
|
293
|
+
only when its manifest hash, claim revision, full inventory and artifact/source
|
|
294
|
+
bindings are current. Agent/model relation labels never supply this authority.
|
|
295
|
+
The CLI requires `research_synthesis` from the authenticated welcome before
|
|
296
|
+
requesting the new study operations or sending an extended `claim_verdict`.
|
|
297
|
+
Without it, upgrade/restart is required before any verdict mutation is sent;
|
|
298
|
+
an older daemon must never silently turn a requested synthesis disposition into
|
|
299
|
+
a plain verdict. Ordinary #901 verdicts retain their earlier compatibility.
|
|
300
|
+
|
|
301
|
+
Tasks owns both reads. The host obtains current state; callers cannot supply
|
|
302
|
+
screened artifacts, provenance resolutions or person authority. Artifact reads
|
|
303
|
+
use the guarded #509 path/hash boundary. Every active inventory link resolves
|
|
304
|
+
through screened source-read/projection checks. Final raw/projection/converter
|
|
305
|
+
and artifact identity/stat fences run after asynchronous reads. Current task,
|
|
306
|
+
actor, policy, inventory and privacy are checked again. Any concurrent board
|
|
307
|
+
write conservatively stales the batch; a task-scoped evidence generation is the
|
|
308
|
+
later narrowing path. A private upgrade returns only a neutral task/status
|
|
309
|
+
stub. Incomplete inventories and unavailable observations cannot verify
|
|
310
|
+
readiness. The observer latch precedes evidence-derived inputs.
|
|
311
|
+
|
|
312
|
+
The pure offline checker reports citation resolution, source/locator freshness,
|
|
313
|
+
person-judgment presence, contradiction state and unchanged deliverables
|
|
314
|
+
separately. The person verdict class (`supported`, `unsupported`, `unclear`)
|
|
315
|
+
is shown independently from judgment presence. Any is a recorded assessment
|
|
316
|
+
for structural readiness; ready never means the person supported the claim.
|
|
317
|
+
Every currently declared claim must be covered. A model's relation
|
|
318
|
+
label or matching passage cannot certify semantic support. Offline forbids
|
|
319
|
+
document fetching and network source reads, while the existing configured
|
|
320
|
+
privacy screen may run. An unavailable or unknown screen is never clear; the
|
|
321
|
+
observational read cannot change source privacy because screening did not clear.
|
|
322
|
+
Actual source privacy upgrades still suppress the result. No earlier readiness
|
|
323
|
+
binding remains current after a claim, artifact, projection or inventory
|
|
324
|
+
change. The command runs only explicitly and preserves legacy citation-script
|
|
325
|
+
semantics and ordinary dev-profile completion behavior.
|
|
326
|
+
|
|
220
327
|
## Execution-reference admission (#1220 T2)
|
|
221
328
|
|
|
222
329
|
`Tasks.linkExecutionReference` admits deduplicated inert metadata using the current
|
|
@@ -250,6 +357,9 @@ Agent list reads return bounded, newest-updated compact pages built from public
|
|
|
250
357
|
|
|
251
358
|
Lifecycle policy can be off, advisory or enforced; this is separate from always-applicable role and privacy invariants. Plans, cost/check scope, review findings and external evidence retain their own typed provenance. Research campaigns and experiments likewise distinguish declared, host-observed and runner-attested facts instead of promoting prose to a signed result ([#481](https://github.com/STAIxBWLB/agent-hub/issues/481), [#932](https://github.com/STAIxBWLB/agent-hub/issues/932), [#1018](https://github.com/STAIxBWLB/agent-hub/issues/1018)). Detailed research contracts remain in the [campaign design](../specs/2026-11-01-research-campaigns-design.md).
|
|
252
359
|
|
|
360
|
+
|
|
361
|
+
Enabled lifecycle plans may retain a full base commit, excluded literal paths, stop conditions and ordered steps with verification text. Exclusions override broader includes in PR conformance, including the merge queue. Accept drift compares the base with the local remote-tracking default tip resolved through `refs/remotes/origin/HEAD`, without requiring a task head. Done drift compares the base with the unique merge-base of the recorded task head and that default tip, excluding own commits. Require the base to be an ancestor of the selected endpoint, recheck the default tip, and keep missing, shallow, ambiguous, reversed, foreign or incomplete evidence unknown. Use bounded hardened local-only Git and privacy-screened names; never fetch, use checkout HEAD or guess a default branch. Drift is advisory in every lifecycle mode, independent of the existing PR conformance approval gate. Verification text grants no execution authority. Off exposes no new plan schema or drift readback ([#1403](https://github.com/STAIxBWLB/agent-hub/issues/1403)).
|
|
362
|
+
|
|
253
363
|
When the specs policy is enabled, covering design specs participate in proposal/accept notices and completion/review reports. Report mode informs; require mode needs an updated spec or a recorded acknowledgement for each applicable unchanged spec. Commitless and verified no-change work remains quiet, and private evidence is withheld rather than exposed to satisfy a report. These modes preserve owner choice while making design drift visible ([#1064](https://github.com/STAIxBWLB/agent-hub/issues/1064)).
|
|
254
364
|
|
|
255
365
|
## Worktree shelf (#1057)
|
|
@@ -305,3 +415,39 @@ Fresh GraphQL review reads retain the original success proof: a CheckRun must be
|
|
|
305
415
|
COMPLETED with conclusion SUCCESS; a StatusContext must have state SUCCESS.
|
|
306
416
|
Common normalization cannot turn malformed fresh proof into admission. The shared
|
|
307
417
|
parser and cached evidence schema retain their existing contracts.
|
|
418
|
+
|
|
419
|
+
## Reviewer quota waits (#1446)
|
|
420
|
+
|
|
421
|
+
Automatic reviewer selection shares `review.gate` (default 0.8) across routing and explain using canonical-account projected headroom. Unknown/no-source readings skip by default (`review.unknown_quota = "skip"`). Explicit `pass` admits unknown readings but preserves the known numeric floor; an admitted unknown never participates in a quota wait. `review.gate = "off"` disables floor checks, unknown checks and every quota wait. Actual Budget/manual pauses and all other routing constraints remain binding. With a numeric gate, a quota-only exhausted pool may wait only when every declared candidate is actually paused or at the known floor and each has a known reset; other blockers prevent waiting. Persist task incarnation, opaque head/repo binding, first start and deadline in ordinary role history. The first `task_sweep.review_min` deadline is the sole hard cap; reset timestamps only wake a recheck (including Budget's existing reset plus 60-second grace), and later signals/restarts cannot extend the cap. Expiry or unknown under the skip policy returns to existing fallback. Head/private/close/stop changes cancel timers. Quota does not join the permanent per-head failure set. `review.max_minutes` defaults to 20; a child-specific generation fence and existing owned teardown produce a typed timeout without closing the task.
|
|
422
|
+
|
|
423
|
+
Quota deadline fallback and native input admission are separate: a person fallback needs no native readiness read, and a failed agent readiness read falls to the person under the same incarnation/head/privacy/recovery fence. `reviewer_quota` is required for a controlled recovery target when new wait/accounting history or explicit reviewer quota policy exists, including `review.gate = "off"` or any `review.unknown_quota` value (even default `skip`); it is not a blanket version floor.
|
|
424
|
+
|
|
425
|
+
## Advisor survey and rejection ledger (#1403 T7)
|
|
426
|
+
|
|
427
|
+
Only Tasks starts a survey or changes its private ledger. The person or current
|
|
428
|
+
configured conductor starts one read-only planner task at a pinned repository
|
|
429
|
+
commit. Assigned in-progress planner reports contain closed bounded findings
|
|
430
|
+
and explicit code-vetting decisions. High/medium vetted confidence yields one
|
|
431
|
+
backlog plan card per semantic repository/pass/id key; low yields a read-only
|
|
432
|
+
investigation. Candidates do not produce cards. Dedupe lookup, generation/flow
|
|
433
|
+
fences, ledger decisions and card creation share one Board transaction after
|
|
434
|
+
privacy screens; no source I/O or await occurs inside it.
|
|
435
|
+
|
|
436
|
+
False-positive review dispositions, rejected audit candidates, successfully
|
|
437
|
+
settled false-positive audit findings and survey rejections retain immutable
|
|
438
|
+
considered entries. Audit entries bind the stored rejection/settlement actor and
|
|
439
|
+
pinned audit source; a missing verifier reason uses "reason not recorded", never
|
|
440
|
+
the finder rationale. Fixed audit settlements do not enter this rejection ledger.
|
|
441
|
+
Matching uses the same semantic
|
|
442
|
+
id/positional exclusion convention as review recurrence. Repository identity,
|
|
443
|
+
source commit and literal affected paths scope suppression. A complete diff
|
|
444
|
+
clears only changed paths; unknown evidence never clears rejection. Explicit
|
|
445
|
+
planner vetted reason records reconsideration and permits a new card without
|
|
446
|
+
deleting historical rejection. Dedupe covers only open host-created cards. A closed approved/cancelled marker permits a new unsuppressed vetted card, whose screened detail names the prior "hub task N" and reopening reason; a closed card never clears an active rejection. Peer-authored marker copies confer no dedupe authority. Unknown path/ref records remain historical,
|
|
447
|
+
never invented unchanged proof. Public projections preserve existing security
|
|
448
|
+
and PII boundaries; internal repository keys are not public markers. Survey
|
|
449
|
+
arguments/results stay out of capture. Malformed tool reports are pre-effect refusals with a fixed field/rule and resend hint, without echoing caller values or unknown key text. Successful report mutations count as native task effects; show-only reads and refused parsing do not. Stored-data parser failures retain generic storage errors. Off exposes no new tool/task fields,
|
|
450
|
+
and no background scanner, timer or model judge is introduced. Live pilots
|
|
451
|
+
require the person's separate instruction.
|
|
452
|
+
|
|
453
|
+
Survey reports accept at most 64 candidates and 64 KiB per normalized request. A candidate has at most 64 literal paths (512 bytes each) and 2048-byte narrative fields. Generated card detail, including any reopening reason, is at most 8 KiB; oversized combinations refuse with a shortening next step. Historical readback returns at most 16 reasons per key; a 1000-row history window that cannot be read completely remains unknown and suppressed. The bounded 32-key/3072-byte brief is a summary, not a complete rejection inventory. `advisor_surveys` advertises parser/recovery support independently of lifecycle mode, but survey tools and task metadata are published only when enabled. Persisted survey or considered state requires that feature and its conditional integrity proof on recovery; empty legacy stores keep their existing format floor.
|
package/docs/dogfood.md
CHANGED
|
@@ -20,6 +20,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
20
20
|
| `ahub down` (counterpart of `ahub up`) | on: an alias of `ahub kill` for stopping this project's hub | the person stops the hub with `ahub down` and `ahub status` then reports it stopped; test/identity.test.ts keeps it person-only (`console`) and labelled `down`, and test/help.test.ts holds its help entry |
|
|
21
21
|
| Daemon startup timing and pending readiness (#1232) | isolated source/fixture coverage; the running development hub is unchanged until release and restart | one `startup timings ms:` line per completed startup; representative synthetic benchmark under 5 s with one streaming seed pass, no full-file event read and no abandoned snapshot body read; private copied-state observations and separate bounded rollup I/O are in the startup receipt; fake-clock and real owned-child tests cover the 12 s notice, late confirmation, cancellation and 120 s outer bound |
|
|
22
22
|
| Person takeover of a channel peer (#1174) | source and isolated fake-session coverage; active after release and plugin upgrade; no live handover receipt yet | one explicit takeover request, old next-tool person-detachment cause, standby attachment identity, no process stop or automatic delivery replay; fake CLI/console authority and stale-generation regressions |
|
|
23
|
+
| Conductor on the console peers panel (#1414) | on here after release: the peers panel labels the conductor beside the planner from the hub's settled flow roles; fixture coverage only (`test/planner-designation.test.ts`) | the console peer label agrees with `ahub status --json` `roleInfo.<peer>.flowRoles` for the conductor on this repository's hub |
|
|
23
24
|
| Owner attachment in detailed status (#1310) | on here, display only: `ahub status` and `ahub status --json` name the current owner of an attached channel peer (pid, attach time, native session or `unverified`), withheld from `status.json` and every non-console reader. Coverage is fixture-only so far: a fake hello pid, and the native session through agy `native_facts` fixtures. No live Kimi or Claude plugin attach has been observed | the share of pull-only queue incidents (a queued peer that does not answer) diagnosed from the owner line without inferring the owner from process start times, counted by hand from the incident notes until a record carries it; `test/owner-attachment.test.ts` for the lifecycle (attach, takeover, detach, roster removal, stop) |
|
|
24
25
|
| Encrypted rooms (#446 X1) | off; source-only crypto/wire, with no broker, room link, invitation CLI or delivery enabled | real WebCrypto vectors and negative wire fixtures; atomic memory fake ports establish ordering only; durable X3 state and the X7 two-machine person receipt remain unverified |
|
|
25
26
|
| Blind room broker (#446 X2) | off; standalone source/fixture work, no public TLS service or hub room link configured here | fake-client auth/fan-out/revocation/restart, ciphertext-only child-process canary, owner admission/offline room reset, queue caps/TTL/FIFO/migration, safe directory modes, and person-only CLI tests; live proxy/account/X7 receipts remain unverified |
|
|
@@ -28,7 +29,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
28
29
|
| Room automatic resend and late settlement (#1204 T2) | off here; source and isolated in-process broker coverage after validation; release and person enrollment/exposure required; live two-machine behavior remains unverified | AC2-AC4: receiver offline for 15 minutes then each application admitted once; pre-enqueue refusal retries without uncertainty; ACK deadline resends within the original TTL; signed late receipt settles once; local receipt commit survives restart before broker storage; no person-disposition override or native/task-read evidence |
|
|
29
30
|
| Room liveness and epoch-change preview (#1204 T3, #736) | source and isolated fixtures, validation pending; rooms remain off here and installed/two-machine behavior is unverified | `rooms-liveness-link-736.test.ts`: signed offline within five seconds, idle crossed-request convergence and no reply loop, synchronous stop fence/FIFO preservation; `rooms-presence-aging-736.test.ts`: three local periods to advisory unknown without changing outbound admissibility, legacy untracked behavior, restart and clock rollback; `rooms-rotation-736.test.ts`: sorted ids-only preview, changed id-set/digest refusal, sealed hold versus Bus-only queue, unchanged person/terminal disposition; `rooms-liveness-status-736.test.ts`: native state preserved, broker upgrade guidance and named epoch-rotated cause; defaults 30 s refresh, 90 s aging, 2 s stop bound; exact-head gate and live proof remain separate |
|
|
30
31
|
| Room health and codec compatibility (#1204 T4, #737) | source and isolated fixtures; installed rooms remain off here | metadata-only refused counts, outbox depth/ages, closed causes, store-open retry/stop and clock rollback; Bus recovery edge wakes receive-only admission; selective three-member traffic emits no false gap; broker opt-in preserves released-broker ephemeral/liveness and legacy presence; immediate-online and forced-refresh feature sends defer pending observations under the original TTL, known unsupported codecs refuse before wire effects; dgx02 and hosted evidence recorded in the PR, native/account and two-machine receipts remain unverified |
|
|
31
|
-
| Guidance probes (#1226 T1/T2) | off here; production has no runner and refuses before reservation; confined adapter remains host-only and unwired, with no real worker/model trial | T1 manifest/CAS/shared-budget/recovery tests plus `test/guidance-probe-local-worker.test.ts`, `test/guidance-probe-input-matrix.test.ts` and `test/guidance-probe-sandbox.test.ts` cover exact request binding, role data, observer exclusion and budget/authority refusals; model-free macOS canary is the confinement gate, Linux proves unavailability only; real model behavior,
|
|
32
|
+
| Guidance probes (#1226 T1/T2/T3/T4 partial) | off here; production has no runner and refuses before reservation; confined adapter remains host-only and unwired, with no real worker/model trial; T3 adds host-sealed receipts, an outcome denominator and owned-output prune that run only against fakes and fixtures; T4 adds the producer receipt read (`ahub guidance probe receipts`, the Guidance panel) and the fake-provider check gate, active after release and hub upgrade; **AC7's authorized live local-worker trial is not run and stays open** | T1 manifest/CAS/shared-budget/recovery tests plus `test/guidance-probe-local-worker.test.ts`, `test/guidance-probe-input-matrix.test.ts` and `test/guidance-probe-sandbox.test.ts` cover exact request binding, role data, observer exclusion and budget/authority refusals; model-free macOS canary is the confinement gate, Linux proves unavailability only; `test/guidance-probe-receipts.test.ts`, `test/guidance-probe-receipts-store.test.ts` and `test/guidance-probe-cleanup.test.ts` cover sealing with the host's own fingerprints, atomic settle-and-seal, replay stability, crash reconcile at daemon start and recovery release, the unknown-not-failed denominator, stricter-only comparability and identity-checked prune that never touches a receipt; T4: `test/guidance-probe-status.test.ts` (a real fake-provider run exports the sealed receipts and the full denominator, a tampered or moved receipt refuses the whole read, an output name that fails the public-field screen is withheld to its digest, a retained directory shows as a state and never a path), `test/guidance-probe-console.test.ts` (the real generated panel and provider over a scripted control port: one exact id forwarded, a reply for another probe or a late one shows nothing, no action advertised), `test/guidance-probe-cli.test.ts` (the real CLI process: shared text by default, verified JSON with `--json`, an older hub refused before a request) and `test/guidance-probe-gate.test.ts` (register, run, seal and read end to end, a mid-run restart recorded unknown and never relaunched, no source selects the local adapter); the metric that shows it works is the denominator: in any read, `counts` adds up to the declared slots and a slot with no receipt is `unknown`, never absent; real model behavior, real isolation, effective guidance delivery and separately authorized live evidence remain unverified |
|
|
32
33
|
| Worktree shelf (#1057): `ahub worktrees`, `tidy`, `tidy --confirm <fingerprint>`, the Agents panel section, Park/Pin, the explicit PR refresh and the inbox alert | fixture-only until a person uses it, and only after release and upgrade: this repository keeps every task in `.worktrees/<name>`, so it is the first real use, but nothing here has run `tidy --confirm` yet, and `worktrees.quiet_days` stays 7 until the owner has used it for a week | `ahub worktrees` live and settled counts over a week, and how many settled rows a person then Pins (a Pin means a rule was wrong); `tidy` preview refusals by reason (`task not approved or cancelled`, `unpushed commits`, `branch changed since preview`); after a confirm, `git worktree list` against the preview; test/worktree-shelf.test.ts, test/worktree-tidy.test.ts and test/worktree-panel.test.ts (a PII row stays live and redacted, a branch switch refuses, no GitHub call on a read, the daemon removes nothing) |
|
|
33
34
|
| Message bus, digests, priorities | on | `ahub report`: messages, digests, overflow, undeliverable; delivery latency from events |
|
|
34
35
|
| Control-send recipient normalization (#963) | active after release and hub upgrade; this PR does not change the running hub | string recipients reach only the named peer, invalid shapes publish nothing, omitted/empty arrays preserve broadcast; real native recipient behavior remains unverified |
|
|
@@ -64,6 +65,9 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
64
65
|
| Confirmation-point inventory (#999 T0) | source and test coverage; `ahub autonomy status` reads the inventory after this feature is released, with no default prompt change from the data alone | `test/confirmation-matrix.test.ts`: every adapter-catalog kind has a tool-approval and a classed-action row per environment, kinds facts equal the definitions, cited source lines exist; the `unknown` rows are the list T4's live receipt must close |
|
|
65
66
|
| Named CI and build-entry diagnostics (#1328 T2) | Source and fixture coverage; installed runtime adoption here is unverified | `test/required-check-blockers.test.ts` and `test/task-entry-blockers.test.ts`: named status checks, ordered actor/command guidance, pure routing parity, real eligibility and private projection |
|
|
66
67
|
| Repository required checks at init (#1328 T1) | This repository retains its native CI floor; discovery and empty enforce refusal run in isolated fixtures, never against the working configuration | `test/init-required-checks.test.ts`, init prompt/settings suites and settings read tests measure discovered names, bounded reads, zero-write refusal and running/file values |
|
|
68
|
+
| Planner pull routing diagnostics (#1430) | source and isolated fixtures; no live planner pull performed for validation | unreserved refusals retain each owner routing reason alongside WIP/hold detail, omit task text, and name hub_backlog_plan fields.reserved then pull again; backlog assignment gives the same next step |
|
|
69
|
+
| GSD migration guidance (#1431) | isolated init fixtures; this repository has no live GSD migration | advise/enforce init adds one pointer only for GSD frontmatter; no-marker output is byte-identical and .planning artifacts retain their bytes and modification times; docs command forms match help |
|
|
70
|
+
| Instructed conductor SDLC configuration (#1432) | off until a direct person instruction in the current conductor's own session; no live migration performed | `ahub sdlc configure` intent/result events record the actor and changed paths; measure saved off/advise/check-list edits, refusal reasons and pending restarts. Scoped host/control/CLI fixtures cover loader, audit, privacy, role/session and enforce boundaries; init and generic settings remain person-only |
|
|
67
71
|
| Project autonomy preset (#999 T1) | off on this repository until released and explicitly enabled by the person; project scope only | focused person-only, retained-consent, metadata-independent off and authenticated/fallback preset undo tests; the preset writes `action_policy.floor` (#999 T3) and off removes it; status leads with a peer table separating current modes from desired defaults, groups identical floor verdicts and unknowns once with peer lists (#1137), and reads each floor class from the host verdict (`floorEnforcement`), naming the unverified guard where the hub does not see the call first; the Orca zero-prompt native task remains T4 |
|
|
68
72
|
| Machine autonomy and used Claude homes (#999 T2) | off until released and explicitly opted in by the person; no real home is changed by fixture tests | trusted-default/unsafe-default startup consent, all-project preview/apply, init inheritance with unchanged absent-file ask defaults, and isolated per-home plugin/hook setup/status tests; #1069 covers preserving project/local plugin rows while configuring only user scope, plus recording `start.agents` after a failed home step; metric: applied/refused registered targets and missing/unknown discovered-home states; #1245 fixtures cover a verified current alias surviving A-to-B upgrades without marketplace removal, exactly one managed hook, actionable non-user-row refusals, stale-hook doctor warnings in an unselected default home, and PATH-selected global CLI update advice with a pure handoff doctor pointer; real-home setup remains unverified for that change; native Orca receipt remains T4 |
|
|
69
73
|
| Model-free compat receipt harness (#1248 T1) | disposable-runner command after merge; local personal Mac refused, automation off pending T2, native candidate qualification unverified | fake-only pass/fail/model-not-run and leg/total deadlines, SRI-before-effects and archive refusal tests; JSON/Markdown artifacts, scoped owned stop and lifetime cleanup reported unproven; detached-helper and output-parent-swap regressions; promoted Kimi/Qwen native producers have fake protocol coverage; reconstructed Jcode has an actual 0.99.1 Linux control with four native legs passing and telemetry/context binding failing, without a qualification or trust change |
|
|
@@ -99,6 +103,11 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
99
103
|
| Console symbol-overlap advice (#684, #379) | on after release; read-only task detail, observed names only | other task IDs/shared paths and screened different-symbol verdict; no pair involving PII, no claim on unknown/incomplete evidence |
|
|
100
104
|
| Dashboard task sheet Code group (#684 phase 2c) | on after release; read-only, observed names only, none for a private task | task sheet Code group shows the changed symbols or `unknown (no code facts)`; symbol clicks that reach a non-empty graph once phase 3 lands |
|
|
101
105
|
| Review brief, review findings, Important gate (#481 S3) | advise | Important findings per PR, rounds to approval |
|
|
106
|
+
| Security finding boundary and finding origin (#1403 T1) | source and fixture coverage after merge and plugin upgrade (`test/security-findings.test.ts`); runs only with the lifecycle in `advise` or `enforce` (off refuses and does not advertise the fields); no live review has used them yet | per approval: the findings tally counts `needsValidation` and `preExisting` (shown by `ahub sdlc status` and the merge queue), and the follow-up cards filed (backlog cards whose detail starts `Finding follow-up key:`), which should be one per such finding and none for a repeated approval; refusals that name the four boundary fields show how often a security finding arrived without one |
|
|
107
|
+
| Security pass for sensitive paths (#1403 T2) | source and fixture coverage after merge and plugin upgrade (`test/security-pass.test.ts`); needs a `[security]` table in `.agenthub/sdlc.toml` and the lifecycle in `advise` or `enforce`, which this repository has not set yet (off, or no table, advertises and requires nothing); no live review has recorded a pass | per sensitive PR: the queue row's `securityPass` state at approval (`required` at approval means the reviewer was asked and did not record one), and how often a pass lists `not_covered` units; no pass is counted that names no unit |
|
|
108
|
+
| Security audit with a coverage ledger (#1403 T4) | source and fixture coverage after merge and plugin upgrade (`test/security-audit.test.ts`); needs a `[security]` table in `.agenthub/sdlc.toml` and the lifecycle in `advise` or `enforce`, which this repository has not set yet; no live audit has run (the live `quick` pass is #1403 T8 and needs the person's approval) | per audit: the unit counts by state (`ahub sdlc audit show`, also the `security audit` line of `ahub sdlc release`), how many units end `deferred`, the confirmed important findings that stay `candidate` for lack of a second reviewer, and the verified ones a second reviewer later settled `fixed` or `false_positive` (the `settled` count of `ahub sdlc audit show`) |
|
|
109
|
+
| Advisor surveys and considered findings (#1403 T7) | not invoked here; starts only on explicit person/conductor request, no live survey receipt collected | `ahub sdlc survey start` and `show <task>` record the share of vetted candidates that become deduped backlog plans/investigations, rejected-before suppression, unknown diffs and explicit reconsiderations. The survey pure/Board/Tasks/daemon/CLI fixtures cover synthetic admission, privacy and conditional recovery; fixtures do not establish native or live source-review acceptance |
|
|
110
|
+
| Conductor eligibility and the doctor roles row (#1408 T1) | source and fixture coverage after merge and daemon restart (`test/role-eligibility.test.ts`); this repository names no conductor (the shipped default), so nothing changes here; a project that named a headless or non-interactive conductor loses the role with a notice | `ahub doctor` shows one `roles` row per project, and a warning row means a conductor was ignored, no planner is eligible or reviews fall to the person; `roles.<peer>: conductor ignored` notices in `ahub status` count the projects that needed the fix |
|
|
102
111
|
| Anchored review comments and findings (#1056) | source and synthetic-fixture coverage; active after release and hub upgrade; the owner's live document package-format confirmation remains open | draft/edit peer turns (target 0); one envelope and one history count per explicit Send; anchored/moved/outdated/unavailable counts; console-only refusals and quote/body canaries in logs, capture and public views; immutable shared acon fixtures; explicit refresh, task-bound memory versus current-turn capture scope, pruned reviewer requests, refused terminal resend, anchored-batch sibling remember/propose refusals, invocation answers after mid-turn inbox pulls, actionable provenance refusals, anchored-submission final-answer/history canaries, same-session restart retention, real sessionless WsPeer handoff and ordinary-input release, unidentified earlier-SID holds and reconnect status, safe first-SID confirmation, legacy coverage completion and NULL-receipt pruning, corrupt-provenance status, clean new-session admission, evidence-backed sticky restored pull-only holds, saved-package recovery and final-only resolution regression fixtures |
|
|
103
112
|
| Memory sync health and write policy (#1173, #743) | source adoption of exact-pinned agent-mem 0.23.0 and isolated fixtures; not deployed here; AC4 bounded diagnostics available, AC5 result counts and host attestation; the daemon passes agent-mem's createPlacementAttestation on every sync pass and a refusal is the closed cause `writer` (fixture-tested; an activated store is not exercised here); legacy activation remains person-only; #1173 stays open; activation, live rollout and successful person-home sync unverified | automatic sync outcome/cause/count; SDK successful-placement result projection with withheld/exported counts (fixture seam; active-v3 sync unverified); legacy declined-sync refusal names inactive placement and the person-only activation preview; refused writer attestation names its category, cause class and next step; bounded SDK inspection of physical declined IDs and safe rule categories, with explicit incomplete results; one failure log per unchanged known signature; existing declined long-write and kept-short promotion fences |
|
|
104
113
|
| Spec acceptance (#481 S1) | advise | build entries without acceptance |
|
|
@@ -111,7 +120,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
111
120
|
| Opt-in auto pull (#785 P1c) | source/fixture coverage and a real daemon test; off by default, active only where a person sets `tasks.auto_pull` in `config.local.json` | `backlog pulled` history entries with `by: hub` and an `auto_pull:` note; at most one per capacity release; no pull with the setting off, for unreserved, PII, pinned, frozen or dependency-blocked cards |
|
|
112
121
|
| Opt-in assignment queue backpressure (#800) | off by default; this change enables no live repository policy | `ahub route explain` and status queue-count/age/unknown reasons beside WIP; bounded summary reads, held-offer release, post-await offline/not-attached origin retention with plan-policy handoff, and role-scoped override regressions; no delivery disposition or routing-template change |
|
|
113
122
|
| Per-head CI watcher and `ci_completed` (#785 P1b) | source/fixture coverage with a fake gh; active after release and hub upgrade | one `ci_completed:` task notice per head to owner and reviewer, a premature review re-offered once green; watchers started per `hub_task_done` head and gone at the result, deadline, newer head, verdict or shutdown; no gh read outside a watcher |
|
|
114
|
-
| Plan conformance (#481 S2) | advise | PRs with files outside the plan |
|
|
123
|
+
| Plan conformance (#481 S2, #1403 T6) | advise | PRs with files outside the plan or under exclusions; accept base-to-local remote-tracking default tip (no task head needed); done base-to-unique merge-base of recorded task head/default tip, excluding own commits. Real temp Git graphs cover upstream/own/integrated/unrelated/shallow/ambiguous/missing refs and changed/none/unknown advice; default tip rechecked, no fetch or checkout-HEAD substitution, no live drift receipt yet |
|
|
115
124
|
| Test integrity for bug fixes (#481 S4) | advise | bug PRs without a red-first receipt, modified pre-existing tests |
|
|
116
125
|
| Eval gate for agent configuration (#481 S5) | advise; mechanism only, `eval_check` is not set here until the person chooses a suite (#251, #266), so configuration PRs show `eval check not configured` as a note | configuration PRs with a missing, failing or unreported eval check; recorded pass rate and suite on the approval note |
|
|
117
126
|
| Merge-time PR readback, release metrics and security-scan baseline (#481 S7, AC12) | source and fixture coverage with a fake gh and real train transitions; the readback is on wherever auto merge is `on`, release metrics need shipped trains with recorded history, and the security scan and its bands stay off here until `[security_scan]` and `[bands.security_open_alerts]` are set | `cost` on merge records, `ahub sdlc metrics` review/CI-at-merge rows, the releases row of `ahub sdlc release`, `security_scans` rows and `security_open_alerts` cards |
|
|
@@ -150,7 +159,7 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
150
159
|
|
|
151
160
|
| Feature | State here | Measured by |
|
|
152
161
|
| --- | --- | --- |
|
|
153
|
-
| Quota budgets and pauses | on; this repository's hubs run the 0.99 gate from the machine-local `budget.gate` since 2026-11-07 (#1292), and projects created before #1292 still pin 0.9 in their tracked config until the key is removed | pauses, resets, time paused (#683); for #1292, the count of soft `budget_pause` rows per week before and after the change, and the window share each pause's `reason` names (`5h window at 99%`; a hard refusal names the provider instead). The ledger row has no numeric `used` field, so the share is read from that reason text |
|
|
162
|
+
| Quota budgets and pauses | on; this repository's hubs run the 0.99 gate from the machine-local `budget.gate` since 2026-11-07 (#1292), and projects created before #1292 still pin 0.9 in their tracked config until the key is removed | pauses, resets, time paused (#683); for #1292, the count of soft `budget_pause` rows per week before and after the change, and the window share each pause's `reason` names (`5h window at 99%`; a hard refusal names the provider instead). The ledger row has no numeric `used` field, so the share is read from that reason text; #1440 source/fake-clock fixtures prove a paused Codex account polls every 60 s, resumes only through Budget.evaluate, restores normal cadence and cancels on detach/stop; budget text/JSON exposes only count/time/flag diagnostics, credits never change admission, capped expiry remains unknown, and real account reset/credit-funded turns remain unverified; #1446 adds default review floor 0.8/cap 20 min, strict all-candidate known-reset wait, immutable deadline/restart/fallback and owned Kimi accounting fixtures. Native Kimi quota diagnostic is observed 2.2.0/unverified 2.5.2, reset unknown; live reviewer quota/reset remains unverified; #1467 synthetic admission/config/routing/budget fixtures measure off admitting missing/above-floor readings with zero quota waits, pass admitting unknown while preserving known-floor skips, actual/manual pauses remaining blocked, rule readback, and explicit-policy recovery refusal on unsupported targets. Neither opt-out has been applied to this repository's running configuration or verified with live accounts |
|
|
154
163
|
| Token usage per peer and task | `ahub report` and, from the roll-up in `hub.db`, `ahub usage [--by peer\|task\|issue\|pr\|release\|day\|model]`, `usage limits` and `usage total` (#683 U2); console tab `7` (U3) and dashboard Usage view (U4) shipped | tokens per merged PR |
|
|
155
164
|
| Operational settings mechanism (#489 H1) | available after release; this PR does not change this hub's running configuration; planner FYI interval defaults to the existing 10 minutes | shared descriptor/schema/UI/apply parity, independent legacy-default pins, real planner-notice boundary and settings inherit/undo/reload fixtures; native console/dashboard editing remains unverified |
|
|
156
165
|
| Recovery and upgrade wait settings (#489 H4, task 445) | available after release; this PR does not change this hub's running configuration: the five `recovery.*` settings default to the waits they replace (managed attach 600 s, unmanaged reconnect 90 s, control request 30 s, shutdown 30 s, terminal idle 120 s) and nothing is set in this repository's config | every default equals its old constant (pinned with independent literals), every person-visible wait refuses a value below what shipped, a bad or unreadable file is the default and never an error inside a recovery, the coordinator reads both layers and the file at each wait, and inherit and undo go through the local file; the waits' use inside the real recovery driver (a configured value changing an actual attachment, shutdown or control wait) is covered only as far as the tests in this PR reach, and no real upgrade was run with a configured value |
|
|
@@ -180,7 +189,11 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
180
189
|
| Paged `hub_task_list` (#1083) | on after release and upgrade, for agents (an agent session's `ahub board` follows the pages); the person's console and `ahub board` from a terminal keep the bare array. Fixture coverage only (`test/task-list-page.test.ts`: a real daemon with 600 seeded tasks; `test/board-agent-paged.test.ts`: the real `ahub board` and `--columns` under an agent identity over a two-page board). A real conductor session reading the live board is not recorded here | the size of a conductor's `hub_task_list` result on the live board (expected: under 64 KB, a `next` cursor while more exist); a page walk that ends with no task repeated; `ahub board` run from an agent shell listing as many tasks as `ahub board` from a terminal; any peer or script that still fails parsing `hub_task_list` as a bare array |
|
|
181
190
|
| `ahub init` guided prompt (#1065 T2) | on wherever a person runs `ahub init` at a terminal on a new project with no flag and no `--yes`; fixture coverage only (the real CLI under a scripted pty in a temporary HOME: `test/init-prompt.test.ts`). A person answering it on a real new project is not yet recorded and not run here | `ahub init` runs by a person that end with `wrote ...` after the plan, against runs that end `nothing was written` (N, Ctrl-C, Ctrl-D, three bad answers); no `Write this?` line in any log of a peer, live-test or piped run; the settings a person changes from the default, per question |
|
|
182
191
|
| `ahub init` settings flags (#1065 T1) | on wherever a person runs `ahub init`, new or existing project; fixture coverage only (the real CLI against scratch projects and a scratch hub home). The guided prompt (T2) and the specs rows (T3) are not built, and a person using the flags on a real project is not yet recorded | each `--dry-run --json` `settings` row is a change a person asked for (key, file, old and new value), `ahub init` refusals name the allowed values, and `git diff` of `.agenthub/config.json` after an init with flags shows only the named keys |
|
|
192
|
+
| Runnable person commands and the single-source AGENTS block (#1399) | on after release and upgrade: hold notices, `ahub status` and `ahub queue show` print the full `ahub queue resolve` command; this repository's block is the template. A project initialised earlier keeps its old block until `ahub init` runs there; fixture coverage only, no live relay to a person measured | `test/person-command.test.ts`: the hold notice's command passes the CLI argument rule with id, revision, action and reason; every profile renders every template bullet; a stale block is detected and refreshed with surrounding text kept. `ahub doctor` row `hub instructions` on a real project |
|
|
183
193
|
| Init research default and completion guidance (#1328 T6) | available at init; live new-project adoption unverified, fake-HOME fixtures only (`test/init-settings.test.ts`, `test/init-prompt.test.ts`, `test/autonomy-defaults.test.ts`, `test/setup-research.test.ts`); no real setup or settings were changed by this task | new-project effective `research.enabled` equals the trusted explicit setup choice unless an init flag overrides it; init preserves the machine defaults bytes; ordinary setup leaves research unchanged; successful-init output names commit/start and advise/enforce person steps, with no next-steps block on a preview or refusal |
|
|
194
|
+
| Tracked or untracked hub config at init (#1411 T1) | on here: this repository tracks `.agenthub/config.json` (#1412) and `.agenthub/sdlc.toml` (hub task 905, the #1411 follow-up), with `routing.toml` left local; `--track-config` / `--no-track-config` and the prompt question run in scratch git repositories only (`test/init-track-config.test.ts`). A person choosing either on a real new project is not yet recorded | `git ls-files .agenthub` after an init with each choice (the shared files committed, or none); `ahub init --track-config` refusals naming the ignore rule with nothing written; the AGENTS block's roles sentence matching the choice; a key set in both `config.json` and `config.local.json` read as the local value |
|
|
195
|
+
| `ahub roles` and the doctor shared-config row (#1411 T2) | on here after release and upgrade: this repository tracks `.agenthub/config.json`, so the doctor row should read `tracked`; `ahub roles` from a `.worktrees/` checkout reads the main worktree's hub. Fixture coverage only (`test/roles-output.test.ts` with a fake hub and a linked worktree, `test/init-track-config.test.ts` for the doctor row) | `ahub roles --json` from a task worktree equal to the project root's; the `shared config` doctor row on this repository reading `tracked` |
|
|
196
|
+
| Conductor, planner and reviewer at init (hub task 900, #1408 T2) | available at init; this repository's roles are already set in its tracked `.agenthub/config.json`, so it is not run here; fixture coverage only (`test/init-roles.test.ts` against scratch projects, the guided prompt in `test/init-prompt.test.ts`). A person choosing roles on a real new project is not yet recorded | `ahub init --conductor/--planner/--reviewer --dry-run --json` shows only `roles.<peer>` rows for the peers whose roles change; an ineligible choice (a headless conductor, a kind that cannot plan or review) is refused with the reason and the eligible peers and nothing written; `ahub roles` and the doctor `roles` row after the init name the chosen holders |
|
|
184
197
|
| Jcode usage and context readings (#801) | source/fixture coverage and one isolated live probe of 0.99.1 against a fake gateway (docs/verification/2026-10-28-jcode-0.99.1-usage.md); a real account and provider remain unverified; no native quota reader (Jcode gives no window length) | `ahub status` and the dashboard show `jcode_usage_update` occupancy, `ahub usage` and `ahub report` rows for source `jcode_acp`, and `ahub budget` still says `no reading` for Jcode |
|
|
185
198
|
|
|
186
199
|
## Operations
|
|
@@ -199,9 +212,10 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
199
212
|
| Cross-hub read invocations (#446 X6) | off until both persons expose peers and independently pin the exact capability/digest/read class; discovery is manual; two-daemon broker/crypto fixtures are the verification target, live X7 receipts remain unverified | source/target invocation ids, request admission versus capability result and result transport outcomes; needs_review counts and no duplicate native dispatch |
|
|
200
213
|
| Headless amem Records (#1320) | source and disposable fixtures only; off in the running hub until release/upgrade and coordinated shared-home upgrades; production source uses the exact 0.23.1 policy API; no native/provider-backed receipt | Record capture accepted/dropped counts, forwarded answer/digest bytes, injected brief/recall bytes; proven saved-ID/anchor overlap compaction, unchanged unrelated notes, privacy/owner/steering fences and restart fallback in `test/headless-record*.test.ts` |
|
|
201
214
|
| Research record v2 and dataset export (#1277; person, memory and budget hand-off blocks #1278, #1279, task 802) | off here: `research.enabled` is not set in this repository's config; source and fixture coverage after merge (`test/research-record-v2.test.ts`, `test/research-quality.test.ts`, `test/research-dataset*.test.ts`: a real `hub.db` with hand-computed blocks, the privacy canary and the CLI over two registered projects); no live research pilot has run | `ahub research export --dataset <dir>` then `quality.json`: per-field `unknown` share (a share near 1 for a block means its source is not reaching the record), token attribution share, quota gaps |
|
|
215
|
+
| Observed model per turn (#1402 T1 to T5) | source and fixture coverage after merge and release; the running hub reports it after upgrade and restart. Live per-agent ids are unrecorded (no model call was made for it), so each agent's source below is from its native schema or the repo's receipts | the share of approved tasks whose owner model is known at `served` or `session` grade: `ahub research` prints `owner model known (served or session): N of M tasks`, and `by model` stops reading `unknown` for them (a `configured` grade counts as a model but not toward that share). `ahub status` and `ahub model list` show the last observed model with its grade (`observed (served)` / `observed (session)`) in place of `not reported` when no override, instance, launch or native baseline model is known. Sources: Codex thread/start and `model/rerouted`, Claude print `modelUsage`, ACP `currentModelId`, Pi `get_state`, Antigravity hook `modelName`; records written before #1402 stay `unknown` until `ahub research backfill` |
|
|
202
216
|
| Dogfood scorecard (#687) | on after release; read-only weekly receipt | `ahub report --dogfood --since 7d --json`; bounded evidence and explicit unknowns |
|
|
203
217
|
| Claim verdicts and fact_check provenance (#901) | source/fixture coverage; the live research pilot (a person entering verdicts with `ahub task claim`) remains unverified | `ahub report --dogfood` research rows: `claims.reachedPersonVerdict`, per-slot `personVerdict`/`modelLabel`/`agreement`, `factCheck.selection`/`passed`/`failed`/`missingKeysPerRun`; null until a verdict or a keyed check is recorded |
|
|
204
|
-
| Claim evidence links (#931 T1) | source/isolated fixtures after merge; this dev-profile repository publishes no evidence writer and has no live research evidence pilot |
|
|
218
|
+
| Claim evidence links and synthesis readiness (#931 T1-T3) | source/isolated fixtures after merge; this dev-profile repository publishes no evidence writer and has no live research evidence pilot | Unicode scalar offsets, complete/version-bound projections, duplicate-origin groups and private-upgrade readback; explicit offline manifests bind registered artifact hashes and the complete latest-link inventory; ready-then-new-counterevidence, changed claims/projections/artifacts, missing judgments, open/withdrawn historical contradictions, person disposition and privacy-race fixtures; separate citation/provenance/judgment statuses never certify truth; live research acceptance remains unverified |
|
|
205
219
|
| Research campaigns (#930 T1) | source and CPU-only fixtures; no real campaign here; the public study CLI and tools are the T3 row below | draft versus child counts, stable unit/task ids across approved revisions and restart, intake reuse, stale role/source/revision refusals, private views, rollback and research_records recovery floors; no live/model receipt claimed |
|
|
206
220
|
| Study CLI, tools and readback (#930 T3, #601) | Fake peers and a real daemon over its control socket, plus the real `ahub` process against that daemon; no native peer or live model has run a campaign here, so fake versus native evidence stays separate (the `research-live-example` claim in docs/profiles.md is still open) | `test/study-daemon.test.ts` (person's draft, approve and close; no agent reaches an approve or close op; planner drafts and cannot approve; read-only show; a private source shows no source id, question, scope or path; handoff only from the bound owner with every missing field named; the three-source, two-peer example moving from none to incomplete to complete), `test/output-cli.test.ts` (parse before connecting, `--json` byte for byte), `test/study-guidance.test.ts` (guidance names only published tools) |
|
|
207
221
|
| Research dispatch and coverage (#930 T2) | Source/isolated fixtures only; no live research campaign | `test/research-dispatch.test.ts` and projection/recovery fixtures: no expired/revised dispatch, named-budget coverage, handoffs and shared ledger |
|
|
@@ -233,9 +247,9 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
233
247
|
| Budget window kinds and notes (#285 phase 4) | on after the release; `ahub budget`, the console peer detail, the dashboard Usage budgets row and `ahub doctor` (`kimi usage source`) run here | each window shows its kind and source, a peer without a number says why (Pi, local and Kimi included); a manual `ahub budget set` value outranks the Kimi count at the gate; the doctor row reads ok while the wire log counts |
|
|
234
248
|
| Settings reload | on | reloads applied, pending restarts |
|
|
235
249
|
| Config editing from the console and dashboard (#689) | on after release; `ahub settings edit` and console key `c` run here, the dashboard Structure group needs `ahub ui --settings`; executable keys stay console only | `config_edit` events (edits applied by tier and source), refusals shown with the loader reason, restarts left pending |
|
|
236
|
-
| Upgrade and recovery | on, per release | upgrade receipts in `docs/verification
|
|
250
|
+
| Upgrade and recovery (#1426) | on, per release; new launch-refusal diagnostics and target-version preflight have synthetic coverage only until release, no live restoration receipt yet | upgrade receipts in `docs/verification/`; red AC2 exhausts virtual 600000ms on old code, refusal/resume fixtures retain Pi and Codex conversations and typed causes; no real native/account call |
|
|
237
251
|
| Office planning view (#264 phase 5) | source/fixture implementation; available after release when the person selects Flat or Isometric (Off by default); the live two-agent, both-theme AC9 browser look remains unverified | `test/office-model.test.ts` pins Backlog count/order/cap, reserved/pin/waits and release/planner metadata; `test/office-view.test.ts` pins dock and overflow navigation, keyboard access, stable wall-to-To do card nodes, geometry, reduced motion and light/dark token contrast; served-page raw/gzip deltas are measured against the PR merge base |
|
|
238
|
-
| acon console plugin (#935) | off here until a person runs `ahub setup` after the release and `acon ui` on this machine; the plugin registers per agenthub home, not per repository | `acon plugins` shows `ahub verified`; the console's agent-hub panel shows this repository's live board, and an approval answered from the console inbox appears in hub.log as `answered option allow_once by dashboard`. Space (#1012): adopted with the plugin, no separate switch; acon's Space view (Flat, Room, 3D) shows this repository's peers as actors (state and marks matching the dashboard's office), the board columns as queue/work/review/done zones with the same counts, and overlap links plus message arcs (broadcasts to every other desk) as links; clicking an actor or card opens this project's agents or board panel; incremental Space (#1380) keeps a daemon cursor and OfficeScene per project, coalesces concurrent reads and caches the running listing for 10 s, refreshing it in the background on a later poll. A viewer holding the combined cursor receives `changed:false` when the public scene, per-project cursors and membership are unchanged, including wall-clock message-link expiry. `test/acon-space-1380.test.ts` pins unchanged replies, changed-project reads, listing refresh, restart/refusal and privacy; current daemons still return full office bodies even with a cursor, so wire/body savings and the live console warm p95 remain unverified |
|
|
252
|
+
| acon console plugin (#935) | off here until a person runs `ahub setup` after the release and `acon ui` on this machine; the plugin registers per agenthub home, not per repository | `acon plugins` shows `ahub verified`; the console's agent-hub panel shows this repository's live board, and an approval answered from the console inbox appears in hub.log as `answered option allow_once by dashboard`. Space (#1012): adopted with the plugin, no separate switch; acon's Space view (Flat, Room, 3D) shows this repository's peers as actors (state and marks matching the dashboard's office), the board columns as queue/work/review/done zones with the same counts, and overlap links plus message arcs (broadcasts to every other desk) as links; clicking an actor or card opens this project's agents or board panel; incremental Space (#1380) keeps a daemon cursor and OfficeScene per project, coalesces concurrent reads and caches the running listing for 10 s, refreshing it in the background on a later poll. A viewer holding the combined cursor receives `changed:false` when the public scene, per-project cursors and membership are unchanged, including wall-clock message-link expiry. `test/acon-space-1380.test.ts` pins unchanged replies, changed-project reads, listing refresh, restart/refusal and privacy; current daemons still return full office bodies even with a cursor, so wire/body savings and the live console warm p95 remain unverified. A project is a Space group since #1375: the scene declares one group per project, every actor, zone and card carries its group, actor names carry no project prefix, and an actor adds the project's configured roles (at most 4 names of 32 characters) and `since` (the open turn's start, only while the actor is working, because no other state has a change time here); the trim follows acon 0.2.0 (actors 96, groups 200, cards 200, links 128) and the manifest declares `inboxMaxAgeMs` 1000 and `spaceMaxAgeMs` 2000, one poll interval. `test/acon-plugin.test.ts` checks the mapped scene with acon's own `spaceSceneProblems` and pins each cap against acon's own number. The first cold inbox call (#1375 AC6) measured 1.0 to 1.1 s here with 21 registered projects, split into 74 ms of plugin load, 628 to 740 ms for the first project listing and 250 to 319 ms for the project `agents` snapshots; a poll inside the 1 s fresh window costs 0 ms and one with the cache bypassed 258 ms. So the cold cost is the listing, which the inbox does not reuse (Space does), plus one snapshot per project, and the ~2 s observed is the per-project snapshot budget (`inboxProjectBudgetMs`) a slow project is waited out on, a project that misses it adding no rows to that first poll; #1375 left the inbox path unchanged. The live acon `perf-snapshots` measurement (AC7) stays a person-run leg and is unverified |
|
|
239
253
|
| Agent CLI version policy and trust (#691) | on after the release: Codex 0.163.0 verified by the [2026-10-22 receipt](verification/2026-10-22-codex-reviewer-isolation.md) and 0.164.0 by the [2026-10-24 receipt](verification/2026-10-24-codex-0164-reviewer-isolation.md); Kimi 2.3.0 and Qwen 0.26.0 verified by the [model-free receipt](verification/2026-10-22-kimi-qwen-compat.md), Kimi 2.3.1 by the [2026-10-25 model-free receipt](verification/2026-10-25-kimi-231-reviewer-compat.md) and 2.3.2 by the [2026-10-26 one](verification/2026-10-26-kimi-232-reviewer-compat.md), with account/provider live legs unverified; Qwen basic ACP 0.27.0 has a [macOS arm64 account-free receipt](verification/2026-11-09-qwen-0270-acp.md), while historical setter A/B/B has an unknown third-request purpose; the [suggestions-off repeat](verification/2026-11-11-qwen-setter-suggestions-off.md) passes ordinary A/B/A on 0.26.9/0.27.0, with production setter admission still unavailable; agy exact 1.5.3 has an [account-free receipt](verification/2026-11-08-agy-1.5.3.md); effective after release and upgrade, with the 1.4.x line unchanged | model-free isolation receipts, `ahub agents` verdicts, versions trusted per machine, lead time from an `agent-compat` issue to a receipt |
|
|
240
254
|
| Peer child environment isolation (#1077) | source and fixture coverage; no native account or Orca session used | daemon peer children, version probes and process-table helpers contain no `ORCA_*`; person-owned native launches keep their fixture pane's `ORCA_*` context while replacing agent identity; explicit Claude/Codex selectors pass through where the adapter inherits them; preload clears ambient selectors without changing fixture home bytes |
|
|
241
255
|
| Qwen's own TUI over dual output (#286 Part 3) | live dual-output TUI use here is unverified; source/account-free fixtures only. The limits (a hub deny completes its known delivery without an answer but fences later input until a new personal turn or verified generation; a stalled turn is stopped only with Esc in the Qwen terminal) are for the person at that terminal to accept. Verified on Qwen 0.26.1 under an isolated HOME by the [2026-10-25 receipt](verification/2026-10-25-qwen-dual-output-t0.md); the live account leg is the person's. The [2026-11-10 fixture receipt](verification/2026-11-10-qwen-0270-dual-output.md) passes required normal-Bus Q2 and Q3/Q5/Q6/Q7 on matched private 0.26.1/0.27.0 on macOS arm64, qualifying exact dual-output 0.27.0 after release; the [0.27.1 receipt](verification/2026-11-10-qwen-0271-dual-output.md) repeats it on exact 0.27.1 against matched 0.27.0; real-model/Linux/live-here use remain unverified | `test/qwen-dual.test.ts` against a fake dual-output Qwen; fixture Q2 final USER/Stop/ordinary-provider counts 2/2/2, five Q3 cases, Q5/Q6/Q7 and final closure; in real use `ahub status` stalled/detached notices per peer and the `needs_review` count of Qwen deliveries (an Esc or an exited terminal ends a turn that way; a deny completes while its durable input fence remains). Task 859 fake controls measure zero second submits before recovery proof and offline at the 30 s operational deadline; no native deny-completion ACK is qualified |
|
|
@@ -252,7 +266,8 @@ agent-hub is developed with agent-hub. This page lists every feature, whether it
|
|
|
252
266
|
|
|
253
267
|
## Decisions
|
|
254
268
|
|
|
255
|
-
- 2026-10-22: SDLC mode `advise` (`.agenthub/sdlc.toml`, machine-local). Move to `enforce` after one week of advise data, when the person decides that the false-blocker rate is low. Record the decision here.
|
|
269
|
+
- 2026-10-22: SDLC mode `advise` (`.agenthub/sdlc.toml`, machine-local at the time; tracked since 2026-11-13, see below). Move to `enforce` after one week of advise data, when the person decides that the false-blocker rate is low. Record the decision here.
|
|
270
|
+
- 2026-11-13: `.agenthub/sdlc.toml` is tracked like `.agenthub/config.json`, and `routing.toml` stays local. The daemon fixtures that start at this checkout root supply their own lifecycle config, so this repository's mode no longer changes their output (hub task 905, the #1411 follow-up).
|
|
256
271
|
|
|
257
272
|
## Weekly scorecard
|
|
258
273
|
|
package/docs/events.md
CHANGED
|
@@ -40,13 +40,13 @@ marked `private: true`, and PII tasks `pii: true`.
|
|
|
40
40
|
| `visual` | `id`, `kind` (`mermaid`, `comparison`, `table`, `beforeAfter`), payload UTF-8 `bytes`, image `files` count, optional numeric `task`: a bounded public visual was stored (#1058). Never the title, source, comparison/table text, path or image bytes. Ordinary delivery records carry only the visual stub and id. |
|
|
41
41
|
| `native_thread` | `peer` (`codex`), `thread` (its native thread id), `fresh` (`true` when the TUI started the thread, `false` when it resumed one): each thread the Codex adapter adopts, before any turn on it. The upgrade planner reads it: a thread with no rollout that the hub saw start, with no `turn_start` since, is planned as a fresh start (issue #215) |
|
|
42
42
|
| `turn_start` | `peer`, `turn` (`<peer>#<hub run>.<n>`, unique across restarts). A turn follows the adapter: pausing a busy peer does not end it |
|
|
43
|
-
| `turn_end` | `peer`, `turn`, `ms`, `tokens` (when the adapter reported any during the turn), `files` and `snapshotMs` (when snapshots are on: how many files the turn changed, and the time both snapshots took); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`) frozen at turn start, `pii: true` for an attributed PII task |
|
|
43
|
+
| `turn_end` | `peer`, `turn`, `ms`, `tokens` (when the adapter reported any during the turn), `files` and `snapshotMs` (when snapshots are on: how many files the turn changed, and the time both snapshots took); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`) frozen at turn start, `pii: true` for an attributed PII task; optional `model` and `modelEvidence`, both or neither (#1402): the model id the adapter observed for the turn, with how it was learned, strongest first: `served` (the provider or the native transcript named it for this turn's responses), `session` (the native session's current model id), `configured` (only the hub's own override or launch flag is known). An alias is recorded as the native surface reported it, never expanded; a label that fails the safe-label check is dropped with its evidence |
|
|
44
44
|
| `tokens` | `peer`, `n` (tokens added since the previous report), optional `source: kimi_wire` and opaque `id` (the native row, used to keep a partial-write retry exactly once), optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`), `pii: true` for an attributed PII task |
|
|
45
45
|
| `usage` | `peer`, `source` (`omniroute`, `claude_transcript`, `claude_result`, `codex_appserver`, `kimi_wire`, `jcode_acp`, `agy_transcript`), opaque `id`, optional `measuredAt` (provider/source time), the `requestedModel`, `servedModel` and `provider` labels, and any provider-reported counters (`inputTokens`, `outputTokens`, `cacheReadTokens`, `cacheWriteTokens`, `reasoningTokens`, `totalTokens`); optional numeric `task`, `attribution` (`delivery`, `single_open`, `unattributed`), `pii: true` for an attributed PII task. Missing counters stay unknown. |
|
|
46
46
|
| `task` | `id`, `event` (the board history event, e.g. `proposed`, `assigned`, `done`, `check failed`, `blocked`, `ready`), `by`, `state`, `owner`, `reviewer`, `class`, `pii`, and `reason` when the board recorded a move reason (`manual`, `budget`, `offline`, `idle`, `rejections`, `declined`, `inference_failed`, `delivery_failed`). The research record (docs/research.md, #1277) reads these for every terminal task, approved or cancelled; no new event type was added |
|
|
47
47
|
| `overlap` | `task`, `owner`, `others` (`task`, `owner`, `paths`, and `symbols` when plans name the same symbol; a name that matches a PII pattern is left out, so either list can be empty), the structured twin of the console notice |
|
|
48
48
|
| `permission_mode` | `peer`, `from`, `to` (`ask`, `ask-when-needed`, `never-ask`): a person set a peer's permission mode (`from` equals `to` when it was already in force) or confirmed a never-ask default (issue #242) |
|
|
49
|
-
| `settings` | `key` (a registry key such as `permission.kimi` or `routing.classes.implement.peers`), `from`, `to` (the value before and after: the one in force for a setting that applies at once, the stored one for a setting read at a start; a closed word, a boolean, a list of peer ids, a route id, or null for none), `source` (`dashboard`, `terminal`, `conductor`), optional `peer` and `reason`, and `undo: true` for an undo: a person changed a setting from the dashboard or `ahub settings` (issue #269). A mode change also writes its `permission_mode` event |
|
|
49
|
+
| `settings` | `key` (a registry key such as `permission.kimi` or `routing.classes.implement.peers`), `from`, `to` (the value before and after: the one in force for a setting that applies at once, the stored one for a setting read at a start; a closed word, a boolean, a number, a list of peer ids, a route id, or null for none), `source` (`dashboard`, `terminal`, `conductor`), optional `peer` and `reason`, and `undo: true` for an undo: a person changed a setting from the dashboard or `ahub settings` (issue #269). A mode change also writes its `permission_mode` event |
|
|
50
50
|
| `permission` | `id`, `peer`, `event` (`requested`, then one of `answered`, `expired`, `cancelled`) and, on the closing event, `latencyMs`, `surface` (`console`, `dashboard`, `terminal`: where a person answered; absent when the hub closed the request) and `option` (the kind of the option chosen: `allow_once`, `allow_always`, `reject_once`, `reject_always`): one approval request relayed to the console and how it ended. `expired` is `approvals.timeout_s` without an answer. `cancelled` with a `surface` is a person's deny in the console or by `ahub permit <id> deny` (a deny on the dashboard is `answered` with a reject option); without one, the hub withdrew the request (its call or turn ended, the peer was stopped, or the hub is stopping). Never the title or the tool. From #1278 it also carries `task` (a board task id) and `attribution` (`delivery`, `single_open`, `unattributed`, the rule `turn_end` and `tokens` use; `task` is absent when unattributed), resolved when the event's subject opens (a permission when requested, a question when asked, a completion's run when it starts) and repeated on every later event of it, so an answer given after the task closed still names the task it was asked under; `pii: true` when that task is PII. Ids and a closed word only. |
|
|
51
51
|
| `question` | `set`, `peer`, `event` (`asked`, `answered`, `pending`, `superseded`, `cancelled`, `expired`, `unavailable`) and, where they apply, `latencyMs`, `person` (only with `surface: acon`: the console's verified identity, one bounded line), `surface` (`terminal`: `ahub answer`; `console`: the `A` key; `dashboard`: reserved, no surface sets it today; `acon`: the plugin's answer with the console's person meta), `reason` (`superseded`, `stopped`, `turn_aborted`, `session_changed`, `expired`, `unattended`), `questions` (a count) and `private`: one question a peer asked the person through `hub_ask` and how it ended (#1053). Never a prompt, an option, an answer or any other text. The attention need a question raises (`question`, in `status.needs` and `attentionItems`) is not an event: it carries the set id, the peer and the time only. From #1278 it also carries `task` (a board task id) and `attribution` (`delivery`, `single_open`, `unattributed`, the rule `turn_end` and `tokens` use; `task` is absent when unattributed), resolved when the event's subject opens (a permission when requested, a question when asked, a completion's run when it starts) and repeated on every later event of it, so an answer given after the task closed still names the task it was asked under. A question answered after the hub restarted while it was open (or after the bounded map dropped it) is `unattributed`, never the peer's task of the moment: the opening answer lives in memory only; `pii: true` when that task is PII. Ids and a closed word only. |
|
|
52
52
|
| `completion` | `id`, `peer`, `outcome` (`done`, `failed`, `limit`, `interrupted`), `ms` (start of the run to settle): a run a person started settled (#1054). A run starts at the `turn_start` that consumes the person's message and settles only when the adapter's `settle` signal fired and nothing else is pending (no queued continuation, open permission or question, owned child, running check, held delivery, native background task or unknown native inventory); a restart or launcher loss cut short settles `interrupted`, once. An explicit person Stop and a budget pause create none. Never the prompt, the reply, an error, a task command or any other text: the envelope ids live in `hub.db` and are read through the usual privacy path; native-person results are private stubs. From #1278 it also carries `task` (a board task id) and `attribution` (`delivery`, `single_open`, `unattributed`, the rule `turn_end` and `tokens` use; `task` is absent when unattributed), resolved when the event's subject opens (a permission when requested, a question when asked, a completion's run when it starts) and repeated on every later event of it, so an answer given after the task closed still names the task it was asked under; `pii: true` when that task is PII. Ids and a closed word only. |
|
|
@@ -59,7 +59,7 @@ marked `private: true`, and PII tasks `pii: true`.
|
|
|
59
59
|
| `quota_reset` | `peer`, `window`, `cause` (`resets_at_moved`: the window's `resetsAt` moved forward by more than 15 minutes, since a provider's `resetsAt` wobbles by seconds inside one window; `used_dropped`: `used` fell by 0.5 or more inside one window id), `resetsAt`, `previousResetsAt`, `used`, `previousUsed`, optional `measuredAt`. Derived from two readings, one entry per peer, window and `resetsAt`, also across a restart. |
|
|
60
60
|
| `conflict` | `peer`, `task` (its task in progress, when it had one), `other` (the other owner's open task), `owner`, `paths` (names that match a PII pattern left out, so it can be empty), `concurrent` (another peer worked during the turn), `turns` (the two turn ids, when two overlapping turns' snapshots both hold the change) |
|
|
61
61
|
|
|
62
|
-
The hub also writes `release_authorization`, `role`, `config_edit`, `invocation`, `attach` and `planning` events, and optional fields not listed above; `HubEvent` in `src/hub/events.ts` is the full schema.
|
|
62
|
+
The hub also writes `release_authorization`, `role`, `config_edit` (for an instructed `ahub sdlc configure`, #1432: `by` names the session that ran it, `source` is `conductor` when that was not the console user, and `instructionClaim: person_direct_instruction`), `sdlc_config_instruction` (`by`, the key `paths`, `instructionClaim`; no value: the intent record written before that edit, which writes nothing if it cannot be retained), `reviewer_accounting` (`peer` as the account, an opaque `attempt` id and `outcome` `started`, `complete` or `unknown`: an owned reviewer run on the Kimi account, whose `kimi_wire` usage counts toward `budget.kimi_tokens_5h`, #1466; never a native session, home or model text), `invocation`, `attach` and `planning` events, and optional fields not listed above; `HubEvent` in `src/hub/events.ts` is the full schema.
|
|
63
63
|
|
|
64
64
|
Token usage by adapter:
|
|
65
65
|
|
package/docs/memory.md
CHANGED
|
@@ -195,7 +195,7 @@ Changes from the worker integration are deliberate:
|
|
|
195
195
|
- Task briefs and ask use curated amem entries with authentic `mem:` identifiers. Raw capture is not evidence. The existing native graph-neighbourhood/fails-first path is retained.
|
|
196
196
|
- Recent recall supplements long-term notes with short-term curated notes. It does not recreate claude-mem's model-produced observation summaries. Those historical rows require the explicit person-run import.
|
|
197
197
|
- Local capture deterministically appends SessionStart, tool events, Stop excerpts and SessionEnd. Host session/turn/step/invocation identity distinguishes actual executions even when a provider reuses its tool-call id; a replay of the same observation dedupes. There is no model summarizer, worker, watcher or network call. Published CaptureStore owns bounded excerpts, cap/retention, contention spool and replay. The bound handle is reused; effective R6 config is checked before each append and a change reopens it before writing. Refusal and daemon shutdown close it.
|
|
198
|
-
- The host excludes private turns, PII tasks, private paths, memory/tool bookkeeping and secrets before capture. It screens complete input/output before truncation. Whole-row privacy screening also precedes read selection and rendering.
|
|
198
|
+
- The host excludes private turns, PII tasks, private paths, memory/tool bookkeeping and secrets before capture. Source and evidence reads (`hub_source_read`, `hub_evidence_read`), evidence records, guidance and lineage calls, and SDLC audit and survey reports (`hub_audit_report`, `hub_survey_report`) are never captured. It screens complete input/output before truncation. Whole-row privacy screening also precedes read selection and rendering.
|
|
199
199
|
- Native task notes are written once. Auxiliary checkpoint and model-answer writes are candidates, not another curated copy; their submitted metadata is retained in the candidate text and their note kind is preserved. The complete candidate must fit the package's 4000-character limit, or the save is unavailable. Model answers are excluded from every curated read projection even if an old import contains one.
|
|
200
200
|
- Supplemental reads use bounded exact-project pages with explicit coverage; see "P4 supplemental read and capture bounds" below. Published SearchIndex supplies ranking after screening, with a term-wise labelled fallback when FTS5 is absent.
|
|
201
201
|
|
|
@@ -209,7 +209,7 @@ Write screening examines both the JSON representation and literal structured key
|
|
|
209
209
|
|
|
210
210
|
## Agent-authored records (#1320)
|
|
211
211
|
|
|
212
|
-
Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from exact-pinned amem 0.
|
|
212
|
+
Managed headless Codex, Kimi, Qwen, Jcode, Pi and local turns receive the package-owned Record instruction once per owned turn. Claude sessions keep their own amem hook path; isolated reviewers and person-owned TUI prompts receive no new instruction. The public `recordsEnabled` accessor from exact-pinned amem 0.26.0 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
|
|
213
213
|
|
|
214
214
|
The hub imports the instruction and parser from agent-mem. Valid final-answer records become `Record` capture rows with project and peer attribution, not curated notes or approved evidence. Complete text and anchors clear current secret, PII, private-path and deny policy before storage. Private, PII, review-scoped, remote, unbound and incomplete turns are excluded. Owner, turn, session, profile and policy must remain current; unsafe steering excludes the rest of that turn. No model or network call is added.
|
|
215
215
|
|
|
@@ -277,7 +277,7 @@ PII questions and private task contexts do not query the corpus or shared observ
|
|
|
277
277
|
|
|
278
278
|
## Automatic sync health (#1173)
|
|
279
279
|
|
|
280
|
-
Profile readiness and sync health are separate. `ahub status` and the dashboard Memory row show the current daemon's last automatic sync attempt: not run, not-configured, stopped, ok, or failed with a closed cause, declined count when known, and a next step. Upstream error text, remote URLs, row IDs and private patterns do not enter this status. This state is process-local; a restart starts at not run until its first attempt. Missing remote configuration is the neutral `not-configured` state; an interrupted/stopped attempt is neutral `stopped`. Both keep their safe next step and produce no failure log under `quietSyncError`. A successful attempt resets the failure episode.
|
|
280
|
+
Profile readiness and sync health are separate. `ahub status` and the dashboard Memory row show the current daemon's last automatic sync attempt: not run, not-configured, stopped, ok, or failed with a closed cause, declined count when known, and a next step. Upstream error text, remote URLs, row IDs and private patterns do not enter this status. This state is process-local; a restart starts at not run until its first attempt. Missing remote configuration is the neutral `not-configured` state; agent-mem 0.26.0 reads the configured transport before outbound screening, so an unconfigured home reports it without inspecting rows. The host recognizes shared-v1, generation and sharded missing-remote messages as neutral. An interrupted/stopped attempt is neutral `stopped`. Both keep their safe next step and produce no failure log under `quietSyncError`. A successful attempt resets the failure episode.
|
|
281
281
|
|
|
282
282
|
Sync uses the configured agent-mem standalone policy, narrowed by the hub's current deny paths, PII patterns and project-private paths. Direct long-term writes clear that same policy before append. The core promotion callback rechecks each authored note payload: a declined note stays short while allowed notes can promote. Source logs are not rewritten. A policy is captured per attempt; the existing profile/selector and hub policy-version fences still apply, without claiming an atomic cross-process policy transaction.
|
|
283
283
|
|
|
@@ -285,11 +285,11 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
|
|
|
285
285
|
|
|
286
286
|
`ahub memory declined [--json]` is a person-only, read-only inspection. It reports physical outbound row IDs and safe policy categories, never title, body, path nodes or literal private patterns. Reads defer promotions and recheck the profile binding. Forgotten originals still matter: `forget` changes materialized visibility but leaves the source row in append-only history. Do not use it as a promise to clear a sync refusal.
|
|
287
287
|
|
|
288
|
-
The exact-pinned agent-mem 0.
|
|
288
|
+
The exact-pinned agent-mem 0.26.0 supplies bounded `inspectSyncPolicy` inspection for shared-v1 and generation profiles. A complete result lists the declined IDs and safe rule categories for the inspected physical outbound history, including originals hidden by a later forget. An incomplete `input-bound` result may now carry an optional `bound` receipt (`kind`, `limit`, `observed`, `nextStep`); `complete` and `reason` keep their shapes. An unavailable, stale or bounded-out inspection remains explicitly incomplete; it never proves that no declined rows exist. The hub uses the public SDK rather than private helpers, snapshots of full history or its own portable log reader.
|
|
289
289
|
|
|
290
290
|
The package also owns per-row local placement. The hub adopts only the projection of a successful trusted SDK placement result: `ok` with its verified withheld/exported counts. Since agent-mem 0.23.0 the daemon passes `placementAttestation` on every `syncMemory` pass, built by the package's own `createPlacementAttestation` for the memory home (`hostPlacementAttestation`, `src/hub/memory-sync-attestation.ts`). A legacy or shared-v1 store ignores it. The hub supplies no writer facts of its own, never fabricates the proof and builds a new one per pass, so no measurement outlives it. A refusal (`PlacementWriterContextError`) is its own closed cause `writer` in status, the dashboard and the log: the category (`running CLI`, `host package`, `setup receipt`, `declared writer`, `active locator`, `home floor`, `writer renewal`, or `unknown` for an unrecognized SDK category), the cause class (`missing`, `changed`, `unavailable`) and the next step (repair the amem install and its host pin, then a person runs `amem migrate --sync-placement --dry-run`). The package's message, paths and versions never enter status or logs. It logs once per episode like every other cause. Count projection does not delete or rewrite notes, change policy or promote a declined row; transport failures remain failures.
|
|
291
291
|
|
|
292
|
-
Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.24.0/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's pin (0.
|
|
292
|
+
Legacy stores without active per-row placement still refuse a sync containing declined rows. The native amem CLI has person-only activation from 0.22.0 ([activation documentation](https://github.com/STAIxBWLB/agent-mem/blob/v0.24.0/README.md#initial-sync-placement-activation)). A person using a CLI upgraded with the hub's pin (0.26.0; a 0.22.1 install sharing the home drops Record entries, see [Agent-authored records](#agent-authored-records-1320)) can preview it with every local writer installation declared, including the CLI and hub library installs:
|
|
293
293
|
|
|
294
294
|
```sh
|
|
295
295
|
amem migrate --sync-placement --dry-run --writer-root '<cli-install-root>' --writer-root '<host-amem-install-root>' --json
|