@staix/agent-hub 0.42.0 → 0.44.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 +42 -0
- package/README.md +2 -1
- package/docs/adding-an-ai-tool.md +2 -0
- package/docs/agent-notes/daemon.md +3 -3
- package/docs/agent-notes/local-worker.md +1 -0
- package/docs/agent-notes/tasks.md +3 -2
- package/docs/agent-notes/tests.md +2 -2
- package/docs/design/adapters.md +3 -0
- package/docs/design/agent-hub-architecture.md +2 -0
- package/docs/design/bus.md +2 -0
- package/docs/design/supervision.md +13 -1
- package/docs/design/task-board.md +13 -1
- package/docs/dogfood.md +13 -3
- package/docs/events.md +4 -2
- package/docs/memory.md +5 -3
- package/docs/operations.md +97 -17
- package/docs/quickstart.md +18 -2
- package/docs/research.md +2 -0
- package/docs/sdlc.md +6 -3
- package/docs/security.md +2 -2
- package/docs/verification/2026-11-11-supervision-pilot-1221.md +864 -0
- package/docs/verification/2026-11-18-0.43.0.md +56 -0
- package/docs/verification/2026-11-19-0.44.0.md +60 -0
- package/docs/verified.json +25 -25
- package/package.json +2 -2
- package/plugins/agent-hub/.claude-plugin/plugin.json +1 -1
- package/plugins/agent-hub/kimi-hook.js +486 -218
- package/plugins/agent-hub/server.js +505 -234
- package/src/adapters/claude-implementer.ts +11 -1
- package/src/adapters/claude-print-child.ts +4 -1
- package/src/adapters/conformance/fakes/acp-server.ts +2 -1
- package/src/adapters/conformance/fakes/app-server.ts +1 -1
- package/src/adapters/local-worker.ts +7 -3
- package/src/adapters/reviewer-print.ts +3 -1
- package/src/cli/help.ts +3 -3
- package/src/cli/identity.ts +2 -0
- package/src/cli/main.ts +57 -5
- package/src/cli/output.ts +2 -2
- package/src/cli/sdlc-output.ts +7 -1
- package/src/cli/upgrade-output.ts +43 -2
- package/src/cli/upgrade-stopped.ts +162 -0
- package/src/cli/upgrade-wait.ts +37 -0
- package/src/cli/upgrade.ts +9 -3
- package/src/hub/board.ts +17 -2
- package/src/hub/bus.ts +4 -0
- package/src/hub/claude-shell-wrapper.ts +2 -1
- package/src/hub/config-apply.ts +1 -0
- package/src/hub/control-write-trace.ts +39 -2
- package/src/hub/daemon.ts +141 -37
- package/src/hub/envelope.ts +1 -0
- package/src/hub/facts.ts +30 -0
- package/src/hub/handoff.ts +14 -0
- package/src/hub/hub-tools.ts +1 -1
- package/src/hub/questions.ts +7 -0
- package/src/hub/quota-events.ts +40 -0
- package/src/hub/recovery-store.ts +57 -0
- package/src/hub/report.ts +1 -1
- package/src/hub/research-quality.ts +5 -1
- package/src/hub/research-record.ts +5 -3
- package/src/hub/restart.ts +49 -2
- package/src/hub/runtime-capture-prune.ts +123 -4
- package/src/hub/runtime-prune-health.ts +10 -2
- package/src/hub/sdlc-merge.ts +7 -3
- package/src/hub/sdlc-metrics.ts +17 -8
- package/src/hub/sdlc.ts +18 -6
- package/src/hub/settings.ts +2 -0
- package/src/hub/snapshots.ts +43 -0
- package/src/hub/supervision-rules.ts +2 -2
- package/src/hub/task-shell-command.ts +124 -0
- package/src/hub/task-sweep.ts +6 -2
- package/src/hub/tasks.ts +131 -22
- package/src/hub/turn-attribution.ts +46 -0
- package/src/hub/worktree-shelf.ts +2 -1
- package/src/local/sandbox.ts +2 -1
- package/src/local/shell-environment.ts +6 -0
- package/src/memory/brief.ts +10 -1
- package/templates/AGENTS.block.md +1 -1
package/docs/memory.md
CHANGED
|
@@ -91,6 +91,8 @@ A person configures the private remote with `ahub memory sync --remote <private-
|
|
|
91
91
|
|
|
92
92
|
A running hub syncs 5 seconds after start and every `memory.sync_interval_min` minutes (default 10; 0 disables it) once a remote is set. Failure produces one log line and never blocks a turn; without a remote it does nothing and creates nothing. The package retains one sync per machine, public-GitHub-remote refusal and unknown-visibility warnings. Credential-helper use is restricted to the memory repository the hub creates, never a project's git repository, and never prompts. Transport, segment merge, lock and retained-history semantics belong to agent-mem.
|
|
93
93
|
|
|
94
|
+
The person can change the interval live with `ahub settings set memory.sync_interval_min 0` (or a whole number of minutes up to 1440). Turning it off stops future passes; a pass already running finishes. Enabling it schedules a first pass after 5 seconds.
|
|
95
|
+
|
|
94
96
|
## Reading it
|
|
95
97
|
|
|
96
98
|
- **Task briefs**: when a task is handed to an owner, its brief lists hub memory first (entries one or two hops from
|
|
@@ -212,7 +214,7 @@ Write screening examines both the JSON representation and literal structured key
|
|
|
212
214
|
|
|
213
215
|
## Agent-authored records (#1320)
|
|
214
216
|
|
|
215
|
-
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.
|
|
217
|
+
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.30.0 applies the effective machine/repository `records: false` setting to instruction, capture and Record preference. An unavailable policy disables this optional path.
|
|
216
218
|
|
|
217
219
|
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.
|
|
218
220
|
|
|
@@ -288,11 +290,11 @@ An unchanged failure emits one safe log line per episode. A complete bounded pol
|
|
|
288
290
|
|
|
289
291
|
`ahub memory declined [--json]` is a read-only inspection that an agent shell may also run (#1522). 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.
|
|
290
292
|
|
|
291
|
-
The exact-pinned agent-mem 0.
|
|
293
|
+
The exact-pinned agent-mem 0.30.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.
|
|
292
294
|
|
|
293
295
|
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.
|
|
294
296
|
|
|
295
|
-
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.
|
|
297
|
+
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.30.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:
|
|
296
298
|
|
|
297
299
|
```sh
|
|
298
300
|
amem migrate --sync-placement --dry-run --writer-root '<cli-install-root>' --writer-root '<host-amem-install-root>' --json
|
package/docs/operations.md
CHANGED
|
@@ -1304,7 +1304,9 @@ the selected Xcode or Command Line Tools dir (`xcode-select -p`; for an Xcode
|
|
|
1304
1304
|
app, its whole `Contents`, whose `SharedFrameworks` its tools load), write the
|
|
1305
1305
|
project and a temp dir of their own (`TMPDIR`, made for each command and
|
|
1306
1306
|
removed when it ends; one left by a hub crash, named `ahub-cmd-*`, goes with
|
|
1307
|
-
the OS temp cleanup), and nothing else; the shared temp dirs are closed.
|
|
1307
|
+
the OS temp cleanup), and nothing else; the shared temp dirs are closed. Bun's
|
|
1308
|
+
and npm's package caches default to that temp dir (`BUN_INSTALL_CACHE_DIR`,
|
|
1309
|
+
`NPM_CONFIG_CACHE`) unless the command's environment already names them (#1549).
|
|
1308
1310
|
|
|
1309
1311
|
Some names stay closed to those commands, and to Pi's, wherever they may
|
|
1310
1312
|
otherwise write: anything named `.git` at any depth, the `config` and `hooks`
|
|
@@ -1527,7 +1529,11 @@ The daemon samples its event loop every 100 ms. A missed tick delayed by at leas
|
|
|
1527
1529
|
Recently completed synchronous intervals are retained so a span that blocked the
|
|
1528
1530
|
loop can be identified after its callback has returned. An open asynchronous span
|
|
1529
1531
|
is only a concurrent wait, not proof that it occupied the CPU; untracked occupancy
|
|
1530
|
-
is reported as unknown.
|
|
1532
|
+
is reported as unknown. An asynchronous span that starts and settles inside one
|
|
1533
|
+
loop turn is counted as a synchronous interval, and after a span's first await
|
|
1534
|
+
the probe follows at most 16 microtask hops per request to record a continuation
|
|
1535
|
+
that runs synchronously; a block after a real I/O wait is beyond that bound, so
|
|
1536
|
+
such a slice is a lower bound (#1545). Background snapshot, queue/status and memory boundaries
|
|
1531
1537
|
use the fixed `background` kind rather than inventing a tool request.
|
|
1532
1538
|
|
|
1533
1539
|
Per observer, retained work is capped at 128 operations, 256 active span registrations, 512
|
|
@@ -1883,6 +1889,8 @@ PRs through `gh`, and the feature table in `docs/dogfood.md`. It covers the last
|
|
|
1883
1889
|
document as `--json` with `unknown` in place of null; missing or truncated evidence is unknown, never 0. It exports ids, timestamps and counts
|
|
1884
1890
|
only and runs no model. Its bounds and the weekly routine are in [dogfood](dogfood.md#weekly-scorecard).
|
|
1885
1891
|
|
|
1892
|
+
`ahub report` labels quota counts as `quota rows` and `hard rows`: they count recorded events, not provider polls. Its JSON retains `quota.readings` and `quota.hard` with the same recorded-row meaning.
|
|
1893
|
+
|
|
1886
1894
|
Per peer and model route, `ahub report` also counts model changes between consecutive
|
|
1887
1895
|
decisions, how many of them landed inside tool loops and, with `stay_switch` on, sessions
|
|
1888
1896
|
and the planner's switches (#197). With `stay_switch = "off"` session boundaries are not
|
|
@@ -2073,7 +2081,7 @@ ahub memory forget 1a2b3c4d # also promote, demote, supersede, rebu
|
|
|
2073
2081
|
|
|
2074
2082
|
`"memory": { "native": false }` in `.agenthub/config.json` turns it off for a project.
|
|
2075
2083
|
|
|
2076
|
-
The exact-pinned `@staix/agent-mem` 0.
|
|
2084
|
+
The exact-pinned `@staix/agent-mem` 0.30.0 resolves `AMEM_HOME`, then `$AGENTHUB_HOME/memory`, then `~/.agenthub/memory`. An absent `M/profile.json` selects shared v1; an explicit generation selects `M/generations/G` with the package's readonly legacy bridge. All daemon memory consumers and the hub memory/goal CLI use that selected profile. Invalid metadata or a missing selected generation makes native memory unavailable while the bus and board continue; there is no fallback to legacy writes. Inspect the daemon's memory binding/availability before interpreting missing memory as an empty store.
|
|
2077
2085
|
|
|
2078
2086
|
The daemon checks its selector at hub operation entry and before candidate/counter writes. It does not hot-switch handles or provide an atomic fence against selection changes during an in-flight core call. Quiesce consumers and close their handles before migration or selection changes; reopen through the supported session-preserving lifecycle afterward. Candidate/counter storage remains `M/candidates.db`, independent of `G`; since agent-mem 0.7.0 `amem review` also lists and accepts candidates on a selected generation. Every running hub using this home needs an authenticated receipt: a matching ready binding, or a generation-capable unbound receipt (`disabled` when native memory is off, `unavailable` when opening failed) proving it holds no memory handle. An unbound daemon and zero running hubs are quiesced for memory; a stale bound handle, unreadable registry or unknown runtime is not ready. Existing JSON memory/goal results remain unchanged; the additive binding receipt belongs to daemon status, profile-check and the decay object. This source integration does not authorize installing a new runtime, migrating real memory, restarting sessions or claiming real-machine sync/capture receipts. Migration/deactivation and their limits belong to [agent-mem](https://github.com/STAIxBWLB/agent-mem); see [the hub profile contract](memory.md#selected-memory-profile).
|
|
2079
2087
|
|
|
@@ -2174,8 +2182,14 @@ ahub undo <turn> --yes --context # Codex's latest turn: also drop it from Codex
|
|
|
2174
2182
|
cannot be undone. So does a turn whose boundary evidence is unknown: snapshot
|
|
2175
2183
|
Git calls made in one callback burst share a 250 ms budget, and a capture that
|
|
2176
2184
|
runs past it, fails, or sees HEAD move while it is taken is unknown, never a
|
|
2177
|
-
stale baseline (hub.log says `snapshot unavailable`
|
|
2185
|
+
stale baseline (for a task or review capture hub.log says `snapshot unavailable`
|
|
2186
|
+
once per burst; a turn boundary logs it only when a cooldown starts). A turn
|
|
2178
2187
|
whose diff or HEAD-move evidence cannot be read is unknown as well (#576).
|
|
2188
|
+
After five consecutive exhausted bursts in one execution root (the project
|
|
2189
|
+
root or a peer's worktree), turn boundaries there skip the capture for ten
|
|
2190
|
+
minutes and record unknown evidence; the first boundary after that tries
|
|
2191
|
+
again, one more exhausted burst starts the wait again, and a restart clears
|
|
2192
|
+
the count (#1550).
|
|
2179
2193
|
- Claude's turns are not recorded: its channel shows the hub no turn boundary.
|
|
2180
2194
|
Claude Code's own checkpoints cover its edits, though not its shell commands.
|
|
2181
2195
|
- The snapshots are unreferenced objects in the repository's own object store, so
|
|
@@ -2817,7 +2831,7 @@ A guarded file edit that the daemon keeps at its accepted value remains visible
|
|
|
2817
2831
|
| Routing | `tasks.rescreen_max` (1-100 attempts, default 10) | `config.local.json` | live; the next release-timer re-screen uses it |
|
|
2818
2832
|
| Routing | `tasks.split_min_observations` (3-100 measured tasks, default 5) | `config.local.json` | live; the next shadow split prediction uses it |
|
|
2819
2833
|
| Routing | `tasks.split_max_failure_share` (0-1, default 0.3) | `config.local.json` | live; the next shadow split prediction uses it |
|
|
2820
|
-
| Switches | `tasks.auto_pull` (default off: pull the top explicitly reserved ready card when a
|
|
2834
|
+
| Switches | `tasks.auto_pull` (default off: pull the top explicitly reserved ready card when a slot frees, a backlog plan or dependency approval readies it, or its peer first attaches idle) | `config.local.json` | live; the next trigger uses it |
|
|
2821
2835
|
| Routing | `tasks.queue_backpressure.max_queued` (0-10000), `.max_oldest_s` (0-604800); 0, the default, disables each ([backpressure](#queue-backpressure-on-automatic-task-offers-800)) | `config.local.json` | live |
|
|
2822
2836
|
| Roles | `planner` (one or up to eight planner holders) | `config.local.json` | at once |
|
|
2823
2837
|
| Routing | `bus.max_attempts` (1-100 attempts, default 3) | `config.local.json` | live; next safe-failure retry evaluation, retaining existing counts and quota pauses |
|
|
@@ -3704,7 +3718,7 @@ approval that leaves a backlog card with no unresolved dependency adds
|
|
|
3704
3718
|
per planner, ids only; a newer one merges and replaces the unsettled copy, which
|
|
3705
3719
|
survives a restart. By default nothing is pulled automatically: the planner reads the
|
|
3706
3720
|
board and decides. With `tasks.auto_pull` on (opt-in, see below) the hub itself pulls
|
|
3707
|
-
the top card explicitly reserved for
|
|
3721
|
+
the top eligible card explicitly reserved for a peer when an auto-pull trigger fires.
|
|
3708
3722
|
|
|
3709
3723
|
When `hub_task_done` leaves a review whose exact-head CI is not yet green (the
|
|
3710
3724
|
lifecycle must be on, the task linked to a PR and not private), the hub starts one watcher
|
|
@@ -3728,14 +3742,17 @@ once more after a fresh readiness read. A deadline tells the console only. No pe
|
|
|
3728
3742
|
CI, and nothing is polled outside a watcher.
|
|
3729
3743
|
|
|
3730
3744
|
`tasks.auto_pull` (default off, machine-local, live) lets the hub act on that
|
|
3731
|
-
wake-up (#785).
|
|
3732
|
-
|
|
3745
|
+
wake-up (#785, #1547). A slot release, an eligibility-changing backlog plan, a
|
|
3746
|
+
dependency approval that readies a reserved card, or the peer's first idle
|
|
3747
|
+
attachment queues a pull for that peer. The hub pulls the one top backlog card
|
|
3748
|
+
explicitly reserved for that peer, through the same planner pull a
|
|
3733
3749
|
planner makes: revision, dependency, reservation, pinned, frozen-release, P0 order
|
|
3734
3750
|
and WIP checks all apply unchanged, and a refusal becomes a console notice naming
|
|
3735
3751
|
why. Unreserved cards, cards reserved for another peer and private (PII) cards are
|
|
3736
|
-
never pulled. One card per
|
|
3737
|
-
the history entry reads `by: hub` with that planner and the
|
|
3738
|
-
`auto_pull:
|
|
3752
|
+
never pulled. One card per trigger, as the hub for the card's own planner of record:
|
|
3753
|
+
the history entry reads `by: hub` with that planner and a reason of the form
|
|
3754
|
+
`auto_pull: <cause> for <peer>; hub acted for planner <planner>`. The cause is
|
|
3755
|
+
`capacity released`, `backlog planned`, `backlog ready` or `peer available`. A hub that
|
|
3739
3756
|
is paused for recovery pulls nothing, also when the setting is turned off or recovery begins while a pull is already waiting on its screening: that pull writes nothing, and a recovery waits for pulls in flight. A committed `config.json` cannot turn it on: like
|
|
3740
3757
|
the other machine-local policies it is ignored there with a log line.
|
|
3741
3758
|
|
|
@@ -4059,6 +4076,36 @@ upgrade targets use the same version directory, with the verified registry
|
|
|
4059
4076
|
install kept separately in `registry/`. Recovery uses its authority receipt's
|
|
4060
4077
|
exact target path and records that selection through the updated startup path.
|
|
4061
4078
|
|
|
4079
|
+
A project whose hub is stopped upgrades without starting it (#1540).
|
|
4080
|
+
`ahub upgrade --to <version>` in such a project, or `ahub --project <id> upgrade
|
|
4081
|
+
--to <version>`, shows `stopped: runtime selection only`, with no peers and
|
|
4082
|
+
nothing carried over. With `--yes` it stages and verifies the target once, then
|
|
4083
|
+
rewrites that project's `runtime.json` through the same verified write a startup
|
|
4084
|
+
uses, under the registry's runtime-capture lock. It starts no daemon, opens or
|
|
4085
|
+
closes no terminal, touches no peer and records no recovery operation. The next
|
|
4086
|
+
`ahub up` with a CLI at that version or later starts the new runtime; an older
|
|
4087
|
+
CLI refuses with `this project runs X`. A project that reads as anything but a
|
|
4088
|
+
positive `stopped` (unknown, unavailable, starting, stopping, incompatible) is
|
|
4089
|
+
never retargeted, and a hub that starts between planning and the write is refused
|
|
4090
|
+
and never written over: the write rechecks the registry claim, the control
|
|
4091
|
+
manifest, the recovery hold, the restart snapshot and the recorded selection
|
|
4092
|
+
under the lock. These refuse and name their next step: a stopped project that
|
|
4093
|
+
holds an unreleased or unreadable restart snapshot, a missing project, a root
|
|
4094
|
+
that is not initialized, an unreadable or Git-tracked `runtime.json`, and a
|
|
4095
|
+
project under a recovery hold. The retarget is the person's choice of which code
|
|
4096
|
+
runs next, so a conductor or a `--live-test` delegation is refused.
|
|
4097
|
+
|
|
4098
|
+
`ahub upgrade --all-stopped --to <version>` covers every registered project that
|
|
4099
|
+
reads as `stopped`. Each project is planned and applied on its own and the
|
|
4100
|
+
package is staged once. A dry run lists one row per registered project: `retarget`,
|
|
4101
|
+
`already at <version>` (also for a newer recorded version, never a downgrade),
|
|
4102
|
+
`skipped: running` with that project's own `ahub --project <id> upgrade` command,
|
|
4103
|
+
or `refused: <cause>` with its next step. `--yes` writes the `retarget` rows only
|
|
4104
|
+
and requires `--to <exact-version>`. The result lists each project's outcome and
|
|
4105
|
+
the exit code is nonzero when a planned retarget failed; the successful rewrites
|
|
4106
|
+
stay and the failed projects are named. `--all-stopped` with `--project` is
|
|
4107
|
+
refused as conflicting selectors.
|
|
4108
|
+
|
|
4062
4109
|
This selector/refusal guarantee starts with 0.26.0. Published CLIs older than
|
|
4063
4110
|
0.26.0 ignore the runtime record. After a scoped upgrade, invoke `ahub up` with a
|
|
4064
4111
|
0.26.0-or-later CLI that is at least the selected project's version; keeping an
|
|
@@ -4078,13 +4125,33 @@ registry installs, unversioned coordinator sources, unknown layouts and symlinks
|
|
|
4078
4125
|
remain. Reserved `.runtime-prune-*` quarantine paths cannot launch a managed
|
|
4079
4126
|
runtime. Changed or unknown quarantined contents remain undeleted for inspection.
|
|
4080
4127
|
Admission is home-wide, at most once per hour with at most three removals per
|
|
4081
|
-
run.
|
|
4128
|
+
run. A start while a recovery hold exists (or cannot be read) schedules no pass;
|
|
4129
|
+
the recovery runner schedules one after it releases its lock, a pass deferred
|
|
4130
|
+
only by recovery coordination starts no one-hour wait, and `ahub doctor` reports
|
|
4131
|
+
that deferral without failing runtime pruning (#1546). `~/.agenthub/runtime-prune.db` records admission and the bounded outcome.
|
|
4082
4132
|
Admission stores the worker's PID and process signature. The next admission
|
|
4083
4133
|
atomically replaces a worker proven gone; live or uncertain owners remain
|
|
4084
4134
|
fenced. Worker completion uses the normal database wait bound, while startup
|
|
4085
4135
|
admission keeps its 1 ms contention bound. `ahub doctor` names an uncertain or
|
|
4086
4136
|
stuck ledger and leftover quarantine paths without changing either. Leftover
|
|
4087
4137
|
containers remain available for inspection even after a dead worker is replaced.
|
|
4138
|
+
Recovery receipts (`<hub home>/recovery/<operation-id>.json` and its
|
|
4139
|
+
`.json.runner.db`) follow a retention rule the hub applies itself at the start
|
|
4140
|
+
of each maintenance pass (#1541): it keeps every receipt that is not terminal,
|
|
4141
|
+
the newest 32 `completed` or `cancelled` receipts, and up to 64 more finished
|
|
4142
|
+
receipts that name a runtime a registered project or the live manager still
|
|
4143
|
+
selects; it removes older finished receipts together with their runner database,
|
|
4144
|
+
under the same exclusive runner claim every recovery command takes, so a live or
|
|
4145
|
+
unidentifiable runner keeps its receipt. It does nothing while any recovery
|
|
4146
|
+
hold (`recovery.lock` or `recovery/project-locks.db`) exists, and it never
|
|
4147
|
+
removes a capture: captures are still retained by `runtime.json` and the
|
|
4148
|
+
newest-three rule. An interrupted pass leaves at most a runner database with no
|
|
4149
|
+
receipt, which the next pass removes. The inventory walk keeps 128 receipts as
|
|
4150
|
+
a safety ceiling. Open receipts are the only way to reach it, and the deferral
|
|
4151
|
+
then names the open operation and the commands to finish it
|
|
4152
|
+
(`ahub recovery status <id>`, then `ahub recovery resume <id>` or
|
|
4153
|
+
`ahub recovery abort <id>`), not the ledger. `ahub doctor` prints that text with
|
|
4154
|
+
the same retention rule. Nothing asks you to delete a receipt by hand.
|
|
4088
4155
|
Startup still succeeds when maintenance defers. A damaged runtime
|
|
4089
4156
|
record/capture requires inspection or restoration.
|
|
4090
4157
|
Archiving the record deliberately resets first-use selection; archived copies
|
|
@@ -4368,6 +4435,17 @@ example `ahub recovery --color=never` or
|
|
|
4368
4435
|
the raw document, without a human suffix. `upgrade --json` reviews a JSON plan;
|
|
4369
4436
|
`--yes` is still needed to apply it without the interactive review.
|
|
4370
4437
|
|
|
4438
|
+
Under `--yes` the plan is printed without its closing "Nothing was changed"
|
|
4439
|
+
line, because the command goes on to apply it (#1540). For a running hub, when
|
|
4440
|
+
standard output is not a terminal, `ahub upgrade --yes` then waits until the
|
|
4441
|
+
recovery operation is completed, blocked or cancelled and exits nonzero unless it
|
|
4442
|
+
completed, so `ahub upgrade --to <v> --yes && ahub down` no longer races
|
|
4443
|
+
`recovery operation <id> is active`. A runner that never appears (10 s), ends
|
|
4444
|
+
with the receipt still open, or is still working after two hours is a failure
|
|
4445
|
+
that names `recovery status`. On a terminal it still returns as soon
|
|
4446
|
+
as the operation is scheduled, and `--json` prints the scheduled operation
|
|
4447
|
+
document as before.
|
|
4448
|
+
|
|
4371
4449
|
The plan screen lists each project with its hub version and, per attached peer,
|
|
4372
4450
|
its state, how it runs (`TUI` in a terminal the plan bound to its session,
|
|
4373
4451
|
`headless` as the hub's own process, `own` for a session the hub did not
|
|
@@ -4714,7 +4792,7 @@ next actions").
|
|
|
4714
4792
|
its own (that hub keeps running), stops a target hub it started and has not
|
|
4715
4793
|
released (one an older coordinator started is stopped at that release's
|
|
4716
4794
|
control protocol), moves that operation's
|
|
4717
|
-
`restart.json` aside as `restart.abandoned.<hash>.json` and leaves any other
|
|
4795
|
+
`restart.json` aside as `restart.abandoned.<hash>.json` (only the 5 newest released and abandoned copies are kept) and leaves any other
|
|
4718
4796
|
hub running; only then is the operation recorded `cancelled` and the lock
|
|
4719
4797
|
released. If it fails partway it keeps the lock, records what it did, and
|
|
4720
4798
|
`resume` refuses until you run it again. Once a stop-and-archive is recorded,
|
|
@@ -5397,7 +5475,7 @@ has appeared for `AHUB_CHECK_QUIET_S` seconds (300 by default, set to 300 in CI)
|
|
|
5397
5475
|
slow suite that is still passing tests is never cut. `scripts/progress-tee.sh` passes bun's
|
|
5398
5476
|
output through unchanged and appends one byte to a progress file for each of those lines;
|
|
5399
5477
|
the watchdog polls that file's size. On a stop it prints where the run is and the process
|
|
5400
|
-
table below it first. `AHUB_CHECK_HANG_S` (
|
|
5478
|
+
table below it first. `AHUB_CHECK_HANG_S` (2700 by default, 45 minutes: the owner raised it from 2250 on 2026-11-19 after healthy full runs on the remote host were ended at exit 143 while still printing passing results, #1564; #1086 had sized 2250 from two measured full runs on dgx02 of 1483 s and 1487 s of test time, and before that it was 960) is only the backstop for a run
|
|
5401
5479
|
that keeps printing results while hung; hosted CI sets 1500 on Linux inside a 35-minute
|
|
5402
5480
|
job limit (#378, #593, #752, task 516). The macOS leg runs as four shards and the Ubuntu leg as six (#548, #1490): `AHUB_CHECK_SHARD=i/n`
|
|
5403
5481
|
makes `scripts/check.sh` run slice `i` of the full suite through `bun test --shard=i/n --timings=scripts/test-timings.json`, which puts
|
|
@@ -6412,6 +6490,8 @@ view (#935), available through `acon ui`. It sends through the existing plugin
|
|
|
6412
6490
|
|
|
6413
6491
|
## Additional headless peer instances
|
|
6414
6492
|
|
|
6493
|
+
Per-turn Claude print children and local/Pi sandbox commands may receive `AGENTHUB_TASK_ID` and `AGENTHUB_TRIGGER` (`assign`, `review`, `message`, `manual` or `schedule`) when the host has an unambiguous attribution. `AGENTHUB_ATTEMPT_ID` is reserved for a host-known research attempt (`ra-` plus 12 lowercase hex digits); the current dispatch has no persisted attempt link, so it is normally absent. A private task ID is omitted for cloud children. These are hints only, not authority; absent values are unset, inherited values cannot override them, and long-lived sessions retain their existing environment.
|
|
6494
|
+
|
|
6415
6495
|
Declare extra instances only in an untracked `.agenthub/config.local.json`, then
|
|
6416
6496
|
restart the hub. For example, a reviewer can use:
|
|
6417
6497
|
|
|
@@ -6657,7 +6737,7 @@ Native launcher connections retry transport timeouts/unclean closes with bounded
|
|
|
6657
6737
|
|
|
6658
6738
|
## amem runtime (agent-mem#13 P4)
|
|
6659
6739
|
|
|
6660
|
-
The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.
|
|
6740
|
+
The hub exact-pins @staix/agent-mem <!-- facts:agent-mem-pin -->0.30.0<!-- /facts:agent-mem-pin --> for recall, curated evidence and local deterministic capture. No runtime call reaches a claude-mem worker; `memory.worker_url` is ignored. The person's `ahub memory import claude-mem` remains explicit and off by default. Existing profile, alias, PII and private-turn fences still apply. `ask --remember` and context checkpoints propose machine-local candidates, never automatic curated evidence. See [memory integration](memory.md#in-process-recall-and-capture-agent-mem13-p4) for changed behavior and bounded-view ceilings.
|
|
6661
6741
|
|
|
6662
6742
|
## Person-run backlog legs (#1176)
|
|
6663
6743
|
|
|
@@ -7301,11 +7381,11 @@ Corrupt or unreadable provenance stays unknown and held. The status next step di
|
|
|
7301
7381
|
|
|
7302
7382
|
A ready memory profile does not prove a successful sync. Read the separate automatic-sync result and timestamp in `ahub status` or Memory. It resets to not run after daemon restart; it is not a machine-global record of manual CLI attempts. Missing remote configuration (shared v1, generation and sharded homes alike) 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`.
|
|
7303
7383
|
|
|
7304
|
-
For policy-declined rows, a person or an agent shell runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.
|
|
7384
|
+
For policy-declined rows, a person or an agent shell runs `ahub memory declined --json` to inspect IDs and safe rule categories, never note text. The pinned agent-mem 0.30.0 public `inspectSyncPolicy` API bounds physical outbound inspection for shared-v1 and generation profiles. A complete result supplies the declined IDs and rules; `complete:false` means the scan is unavailable, stale or over its diagnostic bound, not zero declined rows. The command stays read-only and rechecks its profile binding. No migration or policy edit is performed automatically.
|
|
7305
7385
|
|
|
7306
7386
|
The hub projects verified withheld/exported counts when a trusted SDK sync returns a successful placement result. That projection is covered by an injected-result fixture, not an activated-store sync. Agent-mem requires a fresh `placementAttestation` even for an already active v3 store; since 0.35.0 the daemon builds one with the package's own `createPlacementAttestation` on every sync pass and supplies no writer facts of its own, so no attestation is fabricated. A refused attestation is the closed cause `writer` in status, the dashboard and the log: its category, its 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`). Activation remains a person-run action. A nonzero withheld count in a successful result is not a transport failure and does not mean those rows were deleted, rewritten or published. Inspect the IDs and rules before deliberately changing any source or approved policy; a forget operation does not remove its original text from physical history.
|
|
7307
7387
|
|
|
7308
|
-
A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.
|
|
7388
|
+
A legacy store without active per-row placement still blocks a sync containing declined rows. Status names inactive placement and the person-only `amem migrate --sync-placement --dry-run` preview, which requires every local writer installation through repeatable `--writer-root` flags. It keeps `ahub memory declined` as the safe inspection step. The native CLI supports activation from 0.22.0; the pinned core is 0.30.0. See the [activation preview and prerequisites](memory.md#automatic-sync-health-1173) before any separately authorized apply. Preview writes nothing, and activation does not migrate layouts, change policy or automatically raise a format floor. The hub does not invoke it or fabricate its proof.
|
|
7309
7389
|
|
|
7310
7390
|
The bounded diagnostic addresses #1173 AC4; AC5 has result projection and the host attestation. Whether an activated store syncs on a person's machine is not established by the isolated fixtures.
|
|
7311
7391
|
|
package/docs/quickstart.md
CHANGED
|
@@ -18,7 +18,7 @@ Or use the matching GitHub release:
|
|
|
18
18
|
|
|
19
19
|
<!-- facts:install-tag -->
|
|
20
20
|
```bash
|
|
21
|
-
bun add -g github:STAIxBWLB/agent-hub#v0.
|
|
21
|
+
bun add -g github:STAIxBWLB/agent-hub#v0.44.0
|
|
22
22
|
ahub setup
|
|
23
23
|
```
|
|
24
24
|
<!-- /facts:install-tag -->
|
|
@@ -49,6 +49,22 @@ move a running project to a newer release later, run `ahub upgrade` in a
|
|
|
49
49
|
terminal in that project: it reviews the plan with you, applies it and follows
|
|
50
50
|
it; other projects keep their version. It then names the `bun add -g` and
|
|
51
51
|
`ahub setup` step when your global CLI or plugin is older than the new daemon.
|
|
52
|
+
A project whose hub is stopped is upgraded without starting it: `ahub upgrade
|
|
53
|
+
--to <version>` in it only retargets its runtime selection, and `ahub upgrade
|
|
54
|
+
--all-stopped --to <version>` does that for every stopped project at once
|
|
55
|
+
(`--dry-run` lists each one first).
|
|
56
|
+
|
|
57
|
+
## Upgrading to 0.44.0
|
|
58
|
+
|
|
59
|
+
The memory library moves to agent-mem 0.30.0. No memory home or sync format floor is raised automatically; coordinate any later floor change across every installation sharing the home. Sandboxed commands get writable Bun and npm caches when the caller has not set their paths. Ready reserved backlog work can now be pulled automatically when it becomes eligible.
|
|
60
|
+
|
|
61
|
+
`ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.44.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
|
|
62
|
+
|
|
63
|
+
## Upgrading to 0.43.0
|
|
64
|
+
|
|
65
|
+
The memory library moves to agent-mem 0.29.0, which stops a hub memory sync from holding the daemon for minutes. If you turned the periodic sync off while waiting for that fix, turn it back on with `ahub settings set memory.sync_interval_min 10 --now` (the key now applies without a restart), or delete the `memory` block you added to `.agenthub/config.local.json`. Each memory profile rebuilds its index once on first open, so the first memory call after the upgrade can be slower on a large home; a 0.42.0 hub keeps its own index file and can still share the home. `ahub upgrade --all-stopped --to 0.43.0` retargets every stopped project without starting its hub. Nothing else changes until you use it.
|
|
66
|
+
|
|
67
|
+
`ahub upgrade` does not update the global CLI or the shared Claude plugin: run `bun add -g @staix/agent-hub@0.43.0` and then `ahub setup` yourself, and `ahub doctor` warns while either is older than a running daemon.
|
|
52
68
|
|
|
53
69
|
## Upgrading to 0.42.0
|
|
54
70
|
|
|
@@ -486,7 +502,7 @@ More: `ahub help`. How it is built and why: [`docs/specs/2026-09-19-agent-hub-de
|
|
|
486
502
|
|
|
487
503
|
## Shared memory
|
|
488
504
|
|
|
489
|
-
The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.
|
|
505
|
+
The hub exact-pins the first-party `@staix/agent-mem` <!-- facts:agent-mem-pin -->0.30.0<!-- /facts:agent-mem-pin --> core, including deterministic capture; no claude-mem worker is needed. Existing shared-v1 memory remains the default; upgrading does not migrate it. Managed agents use screened `hub_memory_search`, `hub_memory_show` and `hub_memory_graph` tools, or propose a correction with `hub_memory_correct`; only a person accepts candidates through the supported `amem review` path. Since agent-mem 0.7.0, `amem review` also accepts candidates on a selected generation.
|
|
490
506
|
|
|
491
507
|
Before any real generation migration, upgrade every hub sharing that memory home to 0.12.30 or later and check its authenticated binding with `ahub memory profile-check` in each custom registry. Ready bindings prove compatibility, not an atomic live cutover: quiesce consumers and close their handles before migrating, then reopen through the supported session-preserving lifecycle. Invalid or changed profiles disable native memory without falling back to legacy writes; the bus and board continue. See [memory operations](operations.md#hub-memory) for the remaining rollout gates.
|
|
492
508
|
|
package/docs/research.md
CHANGED
|
@@ -186,3 +186,5 @@ association, not cause. Controlled arms are `ahub bench run --addon <name>=on|of
|
|
|
186
186
|
taken from both are in `docs/addons/`.
|
|
187
187
|
|
|
188
188
|
Agents may read the measures and export (ids and counts only), `--dataset` included; `backfill` is the person's or the configured conductor's (#933), and an agent labels only its own task.
|
|
189
|
+
|
|
190
|
+
Quota rows are windowed by reading time (`measuredAt` when available, otherwise event time). Quota quality `readings` and `stalenessP95Ms` describe recorded rows. Gaps and gap duration preserve the unfiltered stream; intervals between recorded rows are either original silences of at least 15 minutes or shorter than 30 minutes for in-order readings.
|
package/docs/sdlc.md
CHANGED
|
@@ -409,9 +409,10 @@ S9 ceilings: a private build task with an issue reference cannot satisfy enforce
|
|
|
409
409
|
|
|
410
410
|
What each metric reads, and what it does not:
|
|
411
411
|
|
|
412
|
-
- `first_pass_check`
|
|
413
|
-
- `
|
|
414
|
-
- `
|
|
412
|
+
- `first_pass_check` uses the first completion check; if none exists, it uses the latest isolated run before the first done at that done's recorded head. Without matching evidence it is unknown.
|
|
413
|
+
- `accepted_to_plan_ms` measures task acceptance to plan review only when no spec-acceptance event was recorded. A carried spec acceptance counts as a spec-acceptance anchor.
|
|
414
|
+
- `stale_head_re_reviews` counts review rounds whose verdict was bound to a different head than the review was requested for (the `done`'s recorded head against the verdict's findings head), so it needs both heads on the round. New done entries record the requested commit independently of cost plans; older done entries use the cost head or the head of the bound spec report. A task with no such round is `unknown`, not 0. (A `done` after an `approved` is not a signal: the board cannot produce one.)
|
|
415
|
+
- `acceptance_to_merge_ms`, `same_head_ci_reruns`, `ci_runs_at_merge`, `github_reviews_at_merge` and `review_rounds_at_merge` come from the merge-time readback. The guarded merge (`ahub sdlc merge`, or the auto-merge after an approving verdict) reads the merged PR once, after the merge is observed, and records on the task's merge record `cost: { mergedAt, ciRuns, ciReruns, reviews }`: CI runs linked to any head of the PR (an attempt after the first of one run id is a rerun) and distinct GitHub reviews. The read is bounded (8 s, the same fixed queries as `ahub sdlc costs`), host-written and never a tool input, and it never decides the merge result. A CI figure is known only when the run list was complete, and a failed or partial read leaves the field `null`; a task whose merge was not read, merged before this record existed or merged by hand where the host did not observe it, is `unknown` for all of them, never 0. A PR merged outside the hub while its repository's merge mode is `off` is observed by the host for an approved task (`mergeReadback`, #1555: a pass every 5 minutes that reads at most three tasks and reads a task again no sooner than 10 minutes later, for 24 hours after the approval; only a merge at the reviewed head is recorded) and supplies the same figures when its cost read completes. `review_rounds_at_merge` counts the task's review handoffs (`done`) up to the merge. `merged` in the report says how many counted tasks have a read merge and how many do not. `ahub sdlc costs` still carries the per-PR cost table with its own scope.
|
|
415
416
|
- `stalls` counts open stalls on public tasks by kind and the dones recorded without writes.
|
|
416
417
|
|
|
417
418
|
`.agenthub/sdlc.toml` may set `[bands.<metric>]` for `acceptance_to_plan_ms`, `acceptance_to_first_review_ms`, `first_pass_approval`, `rework_rounds`, `first_pass_check`, `stale_head_re_reviews`, `hotfix_rate` or `security_open_alerts`. Every field is optional and bounded: `window` (4 to 200, default 20), `min_samples` (3 to 200, default 8, at most `window`), `log_sigma` 2, `diagnose_sigma` 3, `propose_sigma` 4 (ordered, 0.5 to 20), `drift_run` (3 to 50, default 6) and `min_delta` (the smallest step worth any tier: an hour for the times, one round, half a rate). An unknown metric or field is refused with its path. The newest value is compared with the mean and population standard deviation of the `window` values before it, on the bad side only (a longer time, more rework, a lower rate). The deviation is floored per metric (half an hour, or half a round or a rate) so a flat baseline does not turn one step into thousands of deviations. Fewer than `min_samples` before it fires nothing, and so does a step under `min_delta`, drift included. A run of `drift_run` newest values all more than one deviation on the bad side is at least `diagnose` even when none reaches a sigma tier, provided the newest step clears `min_delta`. Tiers:
|
|
@@ -724,3 +725,5 @@ Security finding text and paths remain in authorized private reports, not
|
|
|
724
725
|
public backlog cards, briefs or memory. Lifecycle off advertises no survey tool
|
|
725
726
|
or additional task readback. Live audit/survey dogfood (#1403 T8) still requires
|
|
726
727
|
the person's separate instruction; this feature adds no schedule or live run.
|
|
728
|
+
|
|
729
|
+
Externally observed merged PRs use host-only `mergeReadback` evidence. Its cost fields remain unknown if the bounded readback cannot complete. The latest configured security scan reports a per-source number or `unknown`; an unreadable source is never reported as zero.
|
package/docs/security.md
CHANGED
|
@@ -61,7 +61,7 @@ instead of changing the backend or copying dependency files.
|
|
|
61
61
|
|
|
62
62
|
## Native memory authority and profile selection
|
|
63
63
|
|
|
64
|
-
The portable core is the exact-pinned first-party `@staix/agent-mem` 0.
|
|
64
|
+
The portable core is the exact-pinned first-party `@staix/agent-mem` 0.30.0 package; it does not replace the hub's caller identity, PII policy or task-write authority. Deny, hardened git, real paths and process identity are single-sourced in its Node-safe platform entry. Current project privacy is applied by the hub before promotion and again before model-facing reads. Standalone person reads are unscreened, and the standalone `--policy-free` acknowledgement grants no hub or peer authority.
|
|
65
65
|
|
|
66
66
|
`hub_memory_search`, `hub_memory_show` and `hub_memory_graph` take the project from the daemon, require `memory_read`, refuse private turns and validate UTF-8 input before logs or storage work. Complete records and graph metadata are screened before counts and truncation. Search is at most 20 lines/4 KiB (default 8); show accepts at most 8 ids and returns at most 8 KiB; graph is at most 120 nodes/240 edges/6 KiB (default 60 nodes), with no edge lacking an endpoint. Unknown, ambiguous and withheld ids share one neutral refusal. Arguments and results are excluded from hub-managed capture; this does not govern a vendor's independent transcript or memory hooks.
|
|
67
67
|
|
|
@@ -1155,7 +1155,7 @@ it has no reach a same-user process lacks (see "What is not defended").
|
|
|
1155
1155
|
|
|
1156
1156
|
`hub_check_start` accepts only a current owner's in-progress task, its recorded branch/commit and either `typecheck` or one to 32 existing `test/*.test.ts` paths. `checks.runner = "container"` is a person opt-in in an untracked config file; a tracked config cannot grant it. Missing service/image, an unverified internal network, stale task/owner/native generation, unavailable dependencies or an invalid path fails closed. There is no host-shell, network or Seatbelt fallback.
|
|
1157
1157
|
|
|
1158
|
-
The runner uses Apple `container`, pinned Bun 1.4.
|
|
1158
|
+
The runner uses Apple `container`, pinned Bun 1.4.4 and a verified `hostOnly` internal network with DNS disabled, two CPUs and 4 GiB. It starts a named, labeled VM with a bounded idle process, copies a hub-owned snapshot into the running VM, then invokes a fixed `container exec` check. This run/copy/exec sequence is required because Apple `container copy` rejects a stopped container. No host directory, home, credential directory, hub state or socket is mounted. Source blobs are read from the exact Git commit; symlinks and gitlinks anywhere in the source refuse the run before exclusions. Directory prefixes and filenames are checked for NFC/Unicode case-fold collisions before staging writes, including denied entries; folding must reach a fixed point within a bounded number of passes or the run refuses. This is a conservative collision screen, not a claim of exact parity with every host filesystem. Denied and PII paths are excluded and counted. Dependency files require an equal lockfile, bounded regular files/directories and internal relative symlinks. No dependency installation or Internet access occurs in the VM.
|
|
1159
1159
|
|
|
1160
1160
|
The optional remote backend (#793) selects `checks.runner = "remote"` and a strict `checks.remote` object containing `host`, digest-pinned `image` and absolute `root`. Both the grant and destination must come from an untracked `config.local.json`; a tracked or shared-file grant is refused. The destination is host-owned configuration, never a peer argument. OpenSSH uses BatchMode, disables TTY allocation (`-T`), agent/X11 forwarding (`-a`, `-x`), configured forwardings and local SSH commands, and retains only the hub-owned agent socket for local SSH authentication. It uses fixed Docker operations, and every remote argument is shell-quoted because OpenSSH joins the command before the remote shell interprets it. SSH diagnostics are discarded. Only actual check execution merges remote command stderr into screened output; readiness JSON keeps stdout separate from withheld diagnostics. Exit 255 discards stdout too; retained container stdout is screened and destination/root strings are replaced before receipt/output persistence. Public image identity is digest-only. Platform comes from inspected Linux image metadata and the actual fixed Bun probe architecture, with only a numeric Docker version prefix. No host, account or remote root is included in those projections.
|
|
1161
1161
|
|