@indigoai-us/hq-cli 5.345.219 → 5.345.221

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.
Files changed (199) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/dist/command-catalog.generated.d.ts +169 -3
  3. package/dist/command-catalog.generated.js +206 -3
  4. package/dist/commands/auth.js +4 -1
  5. package/dist/commands/bot-runtime.d.ts +18 -5
  6. package/dist/commands/bot-runtime.js +29 -12
  7. package/dist/commands/bot.d.ts +85 -0
  8. package/dist/commands/bot.js +245 -16
  9. package/dist/commands/cloud.d.ts +16 -0
  10. package/dist/commands/cloud.js +112 -102
  11. package/dist/commands/core-checkpoint-native.d.ts +13 -0
  12. package/dist/commands/core-checkpoint-native.js +167 -52
  13. package/dist/commands/core-hook-registration-plan.js +5 -4
  14. package/dist/commands/core-stop-autosave.d.ts +21 -0
  15. package/dist/commands/core-stop-autosave.js +300 -0
  16. package/dist/commands/core.js +2 -0
  17. package/dist/commands/daemon.d.ts +5 -0
  18. package/dist/commands/daemon.js +52 -9
  19. package/dist/commands/doctor-usage.d.ts +5 -0
  20. package/dist/commands/doctor-usage.js +25 -0
  21. package/dist/commands/env.d.ts +49 -4
  22. package/dist/commands/env.js +355 -5
  23. package/dist/commands/integrations.js +84 -3
  24. package/dist/commands/lanes-shared.d.ts +3 -0
  25. package/dist/commands/lanes.d.ts +3 -0
  26. package/dist/commands/lanes.js +87 -3
  27. package/dist/commands/packs.js +23 -0
  28. package/dist/commands/pkg-update.d.ts +6 -0
  29. package/dist/commands/pkg-update.js +15 -7
  30. package/dist/commands/run.js +55 -45
  31. package/dist/commands/sources.js +4 -3
  32. package/dist/commands/sync-core.d.ts +1 -0
  33. package/dist/commands/sync-core.js +77 -3
  34. package/dist/commands/whoami.js +96 -80
  35. package/dist/lib/bot/config.d.ts +17 -0
  36. package/dist/lib/bot/config.js +13 -0
  37. package/dist/lib/bot/fleet-cron.js +29 -4
  38. package/dist/lib/bot/fleet-local.d.ts +30 -2
  39. package/dist/lib/bot/fleet-local.js +60 -1
  40. package/dist/lib/bot/grok-login-scope.d.ts +36 -0
  41. package/dist/lib/bot/grok-login-scope.js +93 -0
  42. package/dist/lib/bot/inflight.d.ts +9 -0
  43. package/dist/lib/bot/jobs/hot-signal-sync.d.ts +51 -0
  44. package/dist/lib/bot/jobs/hot-signal-sync.js +90 -9
  45. package/dist/lib/bot/legacy-provider-login.d.ts +32 -9
  46. package/dist/lib/bot/legacy-provider-login.js +28 -22
  47. package/dist/lib/bot/run.d.ts +29 -5
  48. package/dist/lib/bot/run.js +203 -1
  49. package/dist/lib/bot/runtime-sign-in-check.js +6 -1
  50. package/dist/lib/bot/runtime-sign-in.d.ts +2 -0
  51. package/dist/lib/bot/signals-try-now.d.ts +76 -0
  52. package/dist/lib/bot/signals-try-now.js +111 -0
  53. package/dist/lib/capacity/collectors/claude-oauth.d.ts +22 -3
  54. package/dist/lib/capacity/collectors/claude-oauth.js +78 -22
  55. package/dist/lib/capacity/scheduler.d.ts +8 -0
  56. package/dist/lib/capacity/scheduler.js +5 -2
  57. package/dist/lib/core-utils/sentry-report.js +2 -0
  58. package/dist/lib/daemon/machine-checks.d.ts +22 -1
  59. package/dist/lib/daemon/machine-checks.js +54 -12
  60. package/dist/lib/daemon/run.js +71 -8
  61. package/dist/lib/daemon/runtime-notifications.d.ts +7 -0
  62. package/dist/lib/daemon/runtime-notifications.js +50 -0
  63. package/dist/lib/daemon/stop-autosave-lock.d.ts +19 -0
  64. package/dist/lib/daemon/stop-autosave-lock.js +166 -0
  65. package/dist/lib/daemon/stop-autosave.d.ts +28 -0
  66. package/dist/lib/daemon/stop-autosave.js +111 -0
  67. package/dist/lib/daemon/stop-diagnostics.d.ts +11 -0
  68. package/dist/lib/daemon/stop-diagnostics.js +136 -0
  69. package/dist/lib/daemon/stop-job-executor.d.ts +19 -0
  70. package/dist/lib/daemon/stop-job-executor.js +126 -0
  71. package/dist/lib/daemon/stop-jobs.d.ts +93 -0
  72. package/dist/lib/daemon/stop-jobs.js +599 -0
  73. package/dist/lib/doctor/checks/fleet-hook-core.d.ts +9 -1
  74. package/dist/lib/doctor/checks/fleet-hook-core.js +39 -15
  75. package/dist/lib/doctor/checks/host-core.js +1 -1
  76. package/dist/lib/environment/access-probes.d.ts +234 -0
  77. package/dist/lib/environment/access-probes.js +918 -0
  78. package/dist/lib/environment/profile.d.ts +15 -2
  79. package/dist/lib/environment/profile.js +55 -20
  80. package/dist/lib/environment/rfc3339.d.ts +8 -0
  81. package/dist/lib/environment/rfc3339.js +26 -0
  82. package/dist/lib/environment/work-requirements.d.ts +169 -0
  83. package/dist/lib/environment/work-requirements.js +389 -0
  84. package/dist/lib/hook-engine/coverage.d.ts +137 -7
  85. package/dist/lib/hook-engine/coverage.js +1424 -4
  86. package/dist/lib/hook-engine/fleet-registration.d.ts +17 -5
  87. package/dist/lib/hook-engine/fleet-registration.js +53 -17
  88. package/dist/lib/hook-engine/git-stop-config.json +513 -0
  89. package/dist/lib/hook-engine/native-stop-compatibility.json +311 -0
  90. package/dist/lib/hook-engine/reconcile.js +2 -2
  91. package/dist/lib/hot-channels/alert.d.ts +10 -1
  92. package/dist/lib/hot-channels/alert.js +38 -8
  93. package/dist/lib/hot-channels/signals-claude-login.d.ts +53 -0
  94. package/dist/lib/hot-channels/signals-claude-login.js +96 -0
  95. package/dist/lib/hot-channels/signals-pass.d.ts +143 -17
  96. package/dist/lib/hot-channels/signals-pass.js +324 -17
  97. package/dist/lib/hot-channels/signals-runtime.d.ts +30 -0
  98. package/dist/lib/hot-channels/signals-runtime.js +82 -0
  99. package/dist/lib/install/hook-target.js +1 -1
  100. package/dist/lib/lanes/host-capacity.d.ts +26 -2
  101. package/dist/lib/lanes/host-capacity.js +17 -2
  102. package/dist/lib/lanes/host-compute.d.ts +90 -0
  103. package/dist/lib/lanes/host-compute.js +185 -0
  104. package/dist/lib/lanes/index.d.ts +2 -0
  105. package/dist/lib/lanes/index.js +1 -0
  106. package/dist/lib/lanes/reconcile.js +22 -1
  107. package/dist/lib/lanes/resource-usage.d.ts +155 -0
  108. package/dist/lib/lanes/resource-usage.js +589 -0
  109. package/dist/lib/lanes/run-size.d.ts +46 -0
  110. package/dist/lib/lanes/run-size.js +197 -0
  111. package/dist/lib/lanes/store.js +27 -0
  112. package/dist/lib/lanes/throttle.d.ts +36 -1
  113. package/dist/lib/lanes/throttle.js +47 -10
  114. package/dist/lib/lanes/types.d.ts +40 -0
  115. package/dist/lib/lanes/types.js +2 -2
  116. package/dist/lib/lanes/watcher.js +13 -4
  117. package/dist/lib/lanes/worker-process.d.ts +25 -2
  118. package/dist/lib/lanes/worker-process.js +71 -19
  119. package/dist/lib/placement/match.d.ts +192 -0
  120. package/dist/lib/placement/match.js +667 -0
  121. package/dist/lib/safe-store.d.ts +14 -0
  122. package/dist/lib/safe-store.js +77 -4
  123. package/dist/lib/search-index/index.d.ts +88 -4
  124. package/dist/lib/search-index/index.js +299 -25
  125. package/dist/lib/search-index/max-doc-bytes.d.ts +17 -6
  126. package/dist/lib/search-index/max-doc-bytes.js +48 -23
  127. package/dist/lib/signals/codex-lockdown.d.ts +79 -0
  128. package/dist/lib/signals/codex-lockdown.js +271 -0
  129. package/dist/lib/signals/codex-login.d.ts +37 -0
  130. package/dist/lib/signals/codex-login.js +83 -0
  131. package/dist/lib/signals/engine.d.ts +28 -0
  132. package/dist/lib/signals/engine.js +77 -0
  133. package/dist/lib/signals/reply.d.ts +48 -0
  134. package/dist/lib/signals/reply.js +94 -12
  135. package/dist/lib/signals/run-record.js +6 -1
  136. package/dist/lib/signals/settings.d.ts +5 -0
  137. package/dist/lib/signals/settings.js +2 -0
  138. package/dist/lib/signals/steps/adapters.js +6 -0
  139. package/dist/lib/signals/steps/extract.d.ts +135 -12
  140. package/dist/lib/signals/steps/extract.js +416 -84
  141. package/dist/lib/signals/steps/types.d.ts +21 -0
  142. package/dist/lib/sync-core/engine-home.d.ts +41 -2
  143. package/dist/lib/sync-core/engine-home.js +132 -19
  144. package/dist/lib/sync-core/reconcile.js +1 -1
  145. package/dist/lib/sync-core/release-compare.d.ts +7 -0
  146. package/dist/lib/sync-core/release-compare.js +16 -0
  147. package/dist/lib/sync-core/release.d.ts +2 -1
  148. package/dist/lib/sync-core/release.js +2 -10
  149. package/dist/lib/sync-core/rollout-state.d.ts +2 -1
  150. package/dist/lib/sync-core/rollout-state.js +5 -2
  151. package/dist/lib/sync-core/vault-uid.d.ts +2 -0
  152. package/dist/lib/sync-core/vault-uid.js +4 -0
  153. package/dist/run/schema-env-overrides.d.ts +24 -0
  154. package/dist/run/schema-env-overrides.js +72 -0
  155. package/dist/schemas/hq-work-requirements.v1.schema.json +145 -0
  156. package/dist/utils/auth-session-check.d.ts +16 -0
  157. package/dist/utils/auth-session-check.js +16 -0
  158. package/dist/utils/client-health-contract.d.ts +6 -0
  159. package/dist/utils/client-health-contract.js +13 -0
  160. package/dist/utils/client-health.d.ts +7 -0
  161. package/dist/utils/client-health.js +22 -1
  162. package/dist/utils/command-usage.d.ts +40 -0
  163. package/dist/utils/command-usage.js +61 -0
  164. package/dist/utils/duplicate-command-usage.d.ts +72 -0
  165. package/dist/utils/duplicate-command-usage.js +125 -0
  166. package/dist/utils/host-registration.d.ts +1 -1
  167. package/dist/utils/host-registration.js +6 -1
  168. package/dist/utils/resident-package-preload.js +4 -0
  169. package/dist/utils/sentry-fingerprint.js +9 -0
  170. package/dist/utils/windows-bash.d.ts +2 -0
  171. package/dist/utils/windows-bash.js +2 -1
  172. package/package.json +15 -10
  173. package/scripts/bench-core-compare.mjs +313 -0
  174. package/scripts/bench-core.mjs +399 -12
  175. package/scripts/check-function-manifest.mjs +121 -7
  176. package/dist/commands/__fixtures__/access-vault.d.ts +0 -95
  177. package/dist/commands/__fixtures__/access-vault.js +0 -166
  178. package/dist/commands/__fixtures__/make-tar.d.ts +0 -38
  179. package/dist/commands/__fixtures__/make-tar.js +0 -102
  180. package/dist/commands/secrets-public-types.test-d.d.ts +0 -2
  181. package/dist/commands/secrets-public-types.test-d.js +0 -18
  182. package/dist/lib/decisions/fixtures/us001.d.ts +0 -137
  183. package/dist/lib/decisions/fixtures/us001.js +0 -21
  184. package/dist/lib/doctor/__testing__/fake-hq-tree.d.ts +0 -226
  185. package/dist/lib/doctor/__testing__/fake-hq-tree.js +0 -408
  186. package/dist/lib/doctor/__testing__/run-doctor.d.ts +0 -8
  187. package/dist/lib/doctor/__testing__/run-doctor.js +0 -69
  188. package/dist/lib/fingerprint/fixtures.d.ts +0 -19
  189. package/dist/lib/fingerprint/fixtures.js +0 -61
  190. package/dist/lib/hot-channels/adapters/__fixtures__/dummy.d.ts +0 -33
  191. package/dist/lib/hot-channels/adapters/__fixtures__/dummy.js +0 -53
  192. package/dist/lib/hot-channels/adapters/__fixtures__/meeting-providers.d.ts +0 -38
  193. package/dist/lib/hot-channels/adapters/__fixtures__/meeting-providers.js +0 -64
  194. package/dist/lib/mesh/live/daemon/mqtt-events.test-d.d.ts +0 -2
  195. package/dist/lib/mesh/live/daemon/mqtt-events.test-d.js +0 -10
  196. package/dist/lib/test-utils/isolated-flag-company-context.d.ts +0 -3
  197. package/dist/lib/test-utils/isolated-flag-company-context.js +0 -18
  198. package/scripts/hook-engine-manifest.mjs +0 -22
  199. package/scripts/mesh-daemon-if-stale.mjs +0 -20
package/CHANGELOG.md CHANGED
@@ -2,6 +2,176 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.345.221] — 2026-11-16
6
+ - `hq-hook run` now treats a hook event that names only an agent type (`agent_type`) or a parent session or thread id as coming from inside an agent, as HQ's bash hooks already do. When such a prompt or compaction event cannot be evaluated, it is now refused instead of let through.
7
+ - When the same hook registration is loaded twice, an earlier answer for a tool call is no longer reused for a call with the same id from another agent, or from the main thread. Each one is now evaluated on its own.
8
+ - The hook-core speed gate script `scripts/bench-core.mjs` takes `--save-baseline <file>` on a run that measures the old core, and keeps that report as the machine's baseline. Every report now also records when the run started and the machine's hostname.
9
+ - New `scripts/bench-core-compare.mjs` puts a later new-core report beside that baseline: old and new medians and the difference for each host and measurement. It refuses a baseline from another machine or one not captured first, and its exit code is the speed gate's own answer, so a failing gate never becomes a pass.
10
+ - The speed gate script (`scripts/bench-core.mjs`) now measures the two bot hosts, `fleet-local` and `agents-v2` (`--host bots` names both; the default stays `claude,codex,grok`). Each gets its own payload shape and event names; `--core new` runs `hq-hook run --host <bot host> <event>`, `--core selected` runs what the hq-fleet profile under `--home` registers (on `--root`, with `--fleet-profile` to pick one of several), and `--core old` needs the bot's adapter given with `--core-cmd old=<json array>`, failing with a usage error without one. Selected bot benchmarks reject unreadable hook commands and ambiguous profiles, and always replace native root arguments with the benchmark root.
11
+ - `hq daemon sync mode list [--json]` prints every membership's company and sync mode, the same table as `hq sync mode --show` (`--json` gives the same fields as an array).
12
+ - `hq daemon sync mode set <company> <mode>` now accepts every mode `hq sync mode` accepts, including `custom` with `--paths <csv>`, using the same validation, write and error messages; `hq sync mode` is unchanged.
13
+ - `hq doctor --only machine-checks` now runs the machine checks on Windows with the trusted Git Bash (never `System32\bash.exe`); with no Git Bash every check is reported UNTESTED, saying Git Bash was not found.
14
+ - `hq doctor usage --duplicates [--since <window>]` lists the nine duplicate command paths (`auth login`, `auth logout`, `auth status`, `sync status`, `sync mode`, `packages install`, `packages list`, `packages update`, `packages remove`) with their runs in the window (default `1d`, `Nh` or `Nd` up to `29d`), their state and the command to use instead. It exits 0 when none ran, 1 when one did, and 2 when the local count cannot be read (a missing or unsafe usage folder is "unknown", never zero). Counts are kept per UTC date, so the window covers each whole date it touches; the usage file format is unchanged.
15
+ - env: `hq env probe --company <slug> [--repo <name>] [--secret <NAME>] [--integration <slug>] [--data <path>] [--agent] [--write-profile <file>] [--json]` runs access probes by name and prints them as hq-environment-profile.v1 `readings.access` entries. Each probe line has probe, test, checks, ok, result, observed_at, ttl_seconds, source and, when it did not pass, a reason; no line has a value field.
16
+ - Probes: the company vault grant (`hq files browse companies/<slug>/`); repo reachable (`git ls-remote --exit-code origin HEAD` in the checkout under repos/private or repos/public, with GIT_TERMINAL_PROMPT=0, GCM_INTERACTIVE=never, an empty GIT_ASKPASS (so git runs no GIT_ASKPASS, core.askPass or SSH_ASKPASS program), SSH_ASKPASS cleared and SSH_ASKPASS_REQUIRE=never; `-o BatchMode=yes` is put right after the first word naming `ssh` or `ssh.exe` in the user's own GIT_SSH_COMMAND or core.sshCommand (past wrappers such as `env` or `torsocks` and words holding `=`), since ssh keeps the first value given for an option. core.sshCommand is batch-wrapped and passed as GIT_SSH_COMMAND even when GIT_SSH is set; a bare GIT_SSH with no core.sshCommand is left in charge. A command that names no ssh is not changed: it runs as it is when known not to prompt (plink `-batch`, BatchMode=yes), and otherwise the repo reading is unknown and git is not run); integration usable (`hq integrations list --usable`); local data present; and with `--agent` the checks of `hq agent probe` as identity, vault and DM readings (zero checks reads as unknown; a failed check's detail text is not copied into the reason).
17
+ - A secret gives two readings, `secret:<NAME>.exists` (vault HEAD through `hq secrets exists`) and `secret:<NAME>.resolvable`. For resolvable, `hq secrets exec` fetches the value (keeping its usual encrypted cache) and injects it into a child that checks only that it is non-empty and prints nothing; `hq env probe` never receives, prints, stores or writes the value. A name the identity cannot read gives ok false with a reason. A success served from the offline cache is recorded as unknown ("vault unreachable; result came from the local cache"). Error text is matched against known phrases after the secret name is removed from it, and is never copied into a reason.
18
+ - `--agent` runs only when this host's external agent kit is enrolled for `--company`, with or without `--write-profile`; otherwise the command exits 2 before any probe, and the message does not name the kit's company. `--secret`, `--repo`, `--integration` and `--data` names shaped like a credential are refused before any child process runs, without being echoed.
19
+ - A `--company` outside the session's locked company set is refused before any probe runs; the session id is taken from the caller's environment only, and a session id whose lock reads as empty (missing or invalid metadata, a missing or symlinked primary folder) is refused too. The shared lock reader, and so `hq secrets exec`, is unchanged. Exec error text has the company slug removed as well as the secret name before matching.
20
+ - `--data` paths under `companies/` must name `companies/<slug>/`. After symlinks are resolved (compared without case on macOS and Windows), the target may not fall inside any other company's resolved folder, wherever it points, and the company's own folder may not be a symlink.
21
+ - Children run in their own process group, which is killed on timeout; hq children get HQ_NO_BROWSER_LOGIN=1. While the probes that start children run (vault, repo, secret, integration, agent), SIGINT, SIGTERM and SIGHUP kill every child group, then the signal is raised again so the command ends by it. The handlers are removed before the local data probes, so a filesystem call stuck on a network mount stays interruptible. An HQ session with no company lock cannot run the probe; the message names `core/scripts/hq-session.sh add company <slug>`.
22
+ - Every reading is validated against `$defs/probe` before it is printed. `--write-profile` replaces readings with the same names (a hand-run `secret:<NAME>` reading is superseded by the two new ones) and writes the profile, keeping its file mode, only if it still validates. The profile is read again just before the write and the readings are merged onto that copy; the temp file has an unpredictable name and is created exclusively, so a planted file or symlink is not followed. A template profile, a profile for another company (the message does not name it), a profile path that is a symlink, or a profile path inside another company's folder (by name or after the folder is resolved) is refused before any probe runs.
23
+ - Known limits, left as they are: the lock check runs only when the caller's environment carries a session id, and it refuses any session whose lock reads as empty. A SIGKILL of `hq env probe` itself runs no cleanup, so its detached children keep running until they finish.
24
+ - Exit 0 when every probe passes, 1 when one does not, 2 for a bad request (including a missing `--company`) or a failed write. `validateEnvironmentAccessProbe` is exported from the profile module. `hq env validate` is unchanged.
25
+ - hq-hook: the native env-file content guard on Linux now denies `.env` content with a character outside ASCII in a multibyte locale (for example `\u{a0}KEY="bad "` in en_US.UTF-8), as the hook's contract says. With GNU awk on PATH it had been classifying such characters with glibc and allowing the ones glibc does not count as spaces (U+00A0, U+0085, U+2007, U+200B, U+202F, U+FEFF).
26
+ - env: `hq env match --requirements <file> --profiles <dir> [--now <date-time>] [--json]` filters hq-environment-profile.v1 profiles for one hq-work-requirements.v1 document with rules R1 to R9 and gives a first ranking of the (environment, login) pairs that remain. Each rejected environment and login carries one reason naming the rule and the field. Duplicate environment ids are rejected under R0, field `declared.id`, whatever the file order: another company's view never counts as a duplicate, identical copies collapse to one, an undated or future-dated copy is rejected without hiding the others, the same company's copy with the latest `view.generated_at` is kept, and when two distinct copies share the latest timestamp every copy is rejected. The output is labelled a first ranking, not a placement: the conductor engine makes the choice. A profile ranks only for the company whose view it is (R1, `view.company`). A login the owner holds pairs with work for any of his businesses and shows its owning company on the ranked pair; a login held by another person never pairs. A login whose holder is unknown never pairs either: an `account-owner:unknown` entry in a work document's `tolerates` is ignored on purpose, because the profile schema pairs work only with a login marked usable, which requires the owner as holder. A work pinned to an account is rejected on a template, which has no logins before start. A reading older than its ttl, with no `observed_at`, or dated more than 120 s (the clock-skew allowance) after the match time counts as unknown: room scores a quarter of the room points, compute scores the unknown-compute points, and an access probe fails R5. Work with no repo or data needs gets the same locality points (0) on every environment. The command skips dotfiles, including macOS `._*` files, and reports how many profiles it read (on stderr with `--json`, so stdout is the library result unchanged). The weights and the skew allowance are one table in `src/lib/placement/match.ts`, a library with no I/O. It does not reuse `pickAccount` from `src/lib/capacity/route.ts`: that module imports the lanes config reader, which reads files, and it scores the capacity view rather than profile room readings.
27
+ - Tightened native scope checks when the working directory is outside the detected binary installation root.
28
+ - `hq-hook run --host grok` no longer drops context that an allowed UserPromptSubmit adds. Grok discards that output, so the engine keeps it for the session (owner-only file under the hq-hook state folder, keyed by the payload's session id, capped at 4,000 characters, 10-minute expiry, no prompt text) and puts it in front of that session's next PostToolUse context, once. A store that refuses the file leaves the prompt allowed with one stderr line saying the context was not deferred. Refusals are unchanged. Off Unix the store is off and the context is dropped as before.
29
+ - A new Grok bot reuses another Fleet bot's Grok sign-in only when that bot has the same company scope: a company bot shares with bots of the same company, a personal bot with other personal bots on the same computer account (whatever their HQ owner). Before, `hq bot create --runtime grok` (and the move of a legacy Grok bot to the HQ Fleet Runtime) imported the first Grok sign-in any other bot on the computer held, so a bot of one company could start on the sign-in of another company's bot. A bot whose company cannot be read from its `bot.json` counts as another company.
30
+ - The HQ Fleet helper (0.4.31) copies the first other bot's Grok sign-in it finds and does not know companies. So while any other bot here holds a Grok sign-in of a different or unknown company, or the helper cannot answer for such a bot, hq-cli starts no Grok account sign-in: `hq bot create` imports nothing (the Grok CLI login included) and creates the bot stopped with `needsSignIn: true` and a `signInBlocked` reason, and `hq bot auth <name> --provider grok` (also `xai` and `xai-oauth`, in any case) refuses with a plain message instead of calling the helper. The check runs where hq-cli builds the helper's sign-in call, right before the call, so every command that reaches it is covered.
31
+ - This can hold back a Grok account sign-in on a computer with one company. Two known causes: a personal Grok bot that took over the Grok CLI login blocks company Grok bots, and a Fleet profile folder left behind by a deleted bot (a folder under `~/.hq-fleet/profiles` whose bot is not in `hq bot list`) blocks every Grok bot. To clear it, remove the leftover folder, or remove the other bot with `hq bot rm`. `hq bot auth <name> --provider grok --api-key` skips the check; it reads an xAI API key from stdin (paste the key and press Ctrl-D, or pipe it in). The helper's source stores the key without copying another bot's sign-in, but this path has not been run against a real Grok bot.
32
+ - Not covered, until a helper release with hq-fleet-local 66: when a running Grok bot's own sign-in stops refreshing, the helper itself can still copy another bot's Grok sign-in, across companies, without hq-cli. Sign-ins copied before this change keep working until they expire.
33
+ - `hq bot auth-status` and `hq bot sign-in` take `--kind <personal|company>` and `--company <slug>` to say which bot they answer for (default: a personal bot). `auth-status --provider grok` adds `blocked` with the reason when a Grok sign-in is held back, and `sign-in --provider grok` ends with `reason: "grok-login-held-back"` without starting the Grok CLI. `auth-status --provider grok` now always asks the other Fleet bots, even with a Grok CLI login.
34
+ - ChatGPT and Claude bots are unchanged: they sign in from the owner's own Codex CLI or Claude Code login, never from another bot.
35
+ - `scripts/host-canary.mjs` now runs on Windows: each host starts from its `.exe` or npm `.cmd` shim without a shell, with HOME and USERPROFILE set to a disposable home that holds a read-only copy of its one sign-in file, removed afterwards. A missing host, sign-in file, or (while any event stays on the old core) Git Bash fails that host instead of being skipped. macOS runs are unchanged, and the canary gate still refuses the switch on Windows. Windows environment keys are preserved regardless of casing.
36
+ - lanes: `hq runners capacity --json` prints a `compute` block (vcpu_online, load_1m, load_per_vcpu, mem_total_mb, mem_available_mb, disk_total_gb, disk_free_gb, observed_at, ttl_seconds 60, source) in the hq-environment-profile.v1 `readings.compute` shape, read from the lane admission samplers: os.cpus, MemAvailable on Linux or vm_stat free + inactive + speculative pages on macOS (the memory_pressure sysctls only if vm_stat fails), and statfs on the HQ root. It also prints `compute_stale`. A reading from another host that is older than its ttl is marked `compute_stale: true` and `computeHeadroom` returns no room for it; a malformed remote compute block is dropped without failing the snapshot. The admission memory gate is unchanged.
37
+ - hq-hook: fix the rust 1.100 `zombie_processes` Clippy error in the Linux-only state trace test helper that failed the v5.345.220 release tag, and run Linux Clippy (`--all-targets -D warnings`) on hq-hook pull requests so such lints surface before a tag.
38
+ - hq-hook: fix the `cargo fmt` drift in the session_setup integration test and the Clippy `nonminimal_bool` error in the monitor guard so main passes the Rust lint gates again; the guard decision is unchanged.
39
+ - hq-hook on Windows: the vault-write flag check now reads a native `USERPROFILE` or `HQ_STATE_DIR` (`C:\...`) as written instead of turning it into a path under the Git Bash root, the monitor guard's `HQ_ROOT` rebind reads a Git Bash `/c/...` root through its Windows name, a write target holding a PATH-like list keeps a drive path such as `C:/...` whole, and the core-write guard refuses a `bash.exe` outside a Git for Windows install. The Windows unit tests that failed the v5.345.220 release run now pass.
40
+ - The native env-file, command and grep guards now word jq's `Cannot index ... with string` error the way the installed jq does: jq 1.7.x, 1.8.0 and 1.8.1 print `"key"` (or only `string` for a key of 30 bytes or more), and jq 1.8.2 prints `("key")` shortened to 30 bytes. The jq release is read from its files without starting jq: the version string compiled into the `jq` executable, then a versioned install path (such as `Cellar/jq/1.8.2`), then the error format in the executable or the `libjq` it links. Before this, a Homebrew jq 1.8.2 got the 1.7 wording because the format lives in `libjq.1.dylib`, not the `jq` executable the port scanned. The command guard's `join` error no longer runs `jq --version` either, so no guard path starts or waits on a jq process for this. Verdicts are unchanged.
41
+ - lanes, signals (PS-011): lanes and signals runs now record how big each piece of work was and where it ran. A lane record carries `run_size`, which is printed by `hq runners show <id> --json` (top level and under `lane`) and on each `hq runners list --json` row. `run_size` holds `active_seconds`, `active_seconds_basis`, `peak_rss_mb`, `cpu_seconds`, `disk_written_mb`, `host_id`, `engine`, `account`, `repo` and `runs`. `hq runners list --json` adds `run_size_by_repo` with each repo's median `active_seconds` and `peak_rss_mb` and a `wall_clock_lanes_excluded` count. The medians cover the listed lanes that have a size. Each finished `hq signals run` record now has `host_id`, `engine`, `account` and `duration_seconds`. The steps, the summary file and dry runs are unchanged.
42
+ - Compatibility: records written before this release still load. They have no `run_size`, and a malformed one is treated as missing. Only the watcher and reconcile writers may set `run_size`. A primary's mirror copies it from the Outpost that owns the lane. An owner value that is missing or malformed never rewrites the mirror.
43
+ - How it is measured: the lane worker wrapper samples the worker's processes every 5 s (`HQ_LANE_RESOURCE_SAMPLE_MS`). That covers the wrapper's descendants and, because lanes start the wrapper detached, the process group it leads. The wrapper's own `ps` and `python3` are excluded. It writes `resource_usage` to `logs/worker-exit.json`. The watcher adds that run to `run_size`, as does reconcile when it classifies a dead local worker or before an account failover respawns one,, and never adds the same run twice. This includes a run whose lane stays blocked or waiting on a question.
44
+ - The worker's exit code is always written first. After the worker exits, the wrapper waits at most 250 ms for a sample still in progress and kills that sample's `ps` or `python3`. It never waits more than 500 ms for resource figures. Its signal handlers stay installed until `worker-exit.json` is in place, so a SIGTERM in that window cannot lose the exit record.
45
+ - `active_seconds`: wall time from worker start to worker exit, summed over runs. Time spent blocked, waiting on a question or queued has no worker process, so it is never counted. Remote Control lanes keep their claude process up while waiting for the user, so their run time includes idle waiting. They are marked `active_seconds_basis: "wall"` (other lanes are `"worker"`) and left out of the per-repo medians.
46
+ - `peak_rss_mb`: the largest summed resident memory of the tree at any one sample. A spike shorter than the sampling interval can be missed. Memory shared between processes is counted once for each process. Linux reads the page size from `getconf PAGESIZE`, falling back to `/proc/self/smaps`. If neither can be read, `peak_rss_mb` is null.
47
+ - `cpu_seconds`: user plus system time, taken as the larger of two lower bounds. The first sums each process's own CPU at its last sample. The second sums, at one sample, each live process's own CPU plus the CPU of children it has already waited for: Linux cutime/cstime, or macOS `ri_child_user_time` + `ri_child_system_time` from `proc_pid_rusage`. That second figure includes short tool calls that start and finish between samples. A process that may have exited and been waited for while the sample was being taken is left out of that sample's second figure, and out of Linux's per-sample disk sum. On macOS that is a process python3 no longer found; on Linux, one that no longer reads back with the same start time, which also covers a reused pid. This way its parent's reaped-children counters cannot count it a second time. On Linux the wrapper also reads its own reaped-children CPU after the worker exits, which covers every descendant that was waited for. On macOS child CPU covers direct children only (a grandchild started through a shell was not included when measured), so macOS stays a lower bound.
48
+ - `disk_written_mb`: bytes sent to storage. On Linux it uses `write_bytes` from `/proc/<pid>/io`, which already includes waited-for children. The value is the larger of the biggest single-sample sum and the wrapper's own `/proc/self/io` read after the worker exits. On macOS it is `ri_diskio_byteswritten` from `proc_pid_rusage`, per live process, read through the Command Line Tools `python3`. macOS ships no tool that prints per-process disk bytes, and the `/usr/bin/python3` stub is never run. macOS keeps no disk count for exited children, so a process loses what it wrote after its last sample. Without the Command Line Tools this field is null.
49
+ - Calibration on an Apple Silicon Mac: a worker that held 96 MiB, wrote 32 MiB and burned about 1.5 s of CPU recorded 172.4 MB peak, 1.51 s CPU and 32 MB written. `/usr/bin/time -l` reported 172 MB maximum RSS and 1.51 s CPU for the same worker.
50
+ - `host_id` is the canonical host id from PS-003: the Outpost marker, then the stable id in `~/.hq/lane-host.json`, then the hostname. `engine` and `account` are the provider and account of the lane's last run.
51
+ - For signals, `engine` is the runtime the extract step ran (claude, codex or grok), and null when no model turn ran. `account` takes one of four forms: `default` for the user's own Claude or Grok login; the folder name when `CLAUDE_CONFIG_DIR` is set; `custom` when that folder name contains `@`, `/` or `\`; or `bot:<name>` for the Executive bot's Codex login. `duration_seconds` is `finishedAt` minus `startedAt`.
52
+ - New `scripts/machine-checks-side-by-side.mjs` compares, for each of the twelve machine checks, the finding the old hook dispatcher would have shown with the `details.detail` that `hq doctor --only machine-checks --json` reports for an HQ root, and marks each row `same`, `different`, `not-compared` or `missing`. Without `--run` it only lists the scripts it would run and whether each exists, because some checks repair or install things.
53
+ - Unevaluated doctor rows and interrupted hooks are never certified as matching; doctor signals/timeouts fail the run, nonzero exits are reported, and hook stdout is capped at 64 KiB with a truncation note.
54
+ - Hook runs that exit nonzero or truncate their output are also marked `not-compared`, even when the captured text matches doctor.
55
+ - A nonzero doctor exit fails the comparison even when its JSON contains matching findings.
56
+ - The function manifest check has a new `--installed-core <dir>` mode that fails when an installed core still holds test or tooling files (`--keep`, `--keep-file` and `--tooling` set the exceptions and extra globs).
57
+ - With `core.next` on, Claude Code's Stop event now switches to the native hook core when the engine covers every Stop hook in the HQ root. The native Stop does master-hook's own Stop work (session metadata, dedupe, timeout journal and diagnostics, replay recording), observe-patterns in process, and queues the checkpoint jobs and the Bash autosave sweep for the hq daemon, which now drains that queue with typed operations and completion receipts. Personal, package and company Stop folder hooks, and registry Stop hooks with no native port, run as the external commands they are, after the native work, and read the input exactly as the host sent it (if those bytes are unavailable, the Stop is refused on every call): when such hooks exist, Claude Code's Stop call waits up to the timeout declared on HQ's Stop registration (600 seconds when none is declared), not the 5-second hook budget, so completed blocks retain their verdict; a hook cut short by the native deadline is refused on both fresh and retry Stops. Codex and Grok keep Stop on the shell adapters, whose own Stop step has no port yet.
58
+ - A Stop configuration the native core does not model (parallel dispatch, a custom registry matcher, order or execution setting, or Git settings that change what observe-patterns or the queued jobs see) keeps the shell registration at `hq reindex`. If the hook process sees anything it does not model anyway, it refuses every Stop with one message naming it, retries included, until the change is undone or `hq reindex` restores the shell registration: this covers those configurations, a hook-gate.sh that differs from the released forms (a second definition of a profile list, a changed `hq_hook_profile_allows`, any other statement), a company binding that points outside the HQ root, and a Stop payload hq-hook cannot decode (invalid JSON or UTF-8, a lone surrogate escape, NUL bytes, deep nesting, trailing data, a session id that is not a plain name, a different event name). These used to be refused once, or exit 1 with the Stop hooks skipped. An external Stop hook with an unknown result is refused on every call, including retries; an earlier completed block is preserved if a later hook times out. While a Stop hook that reads Git is registered and not turned off, any environment variable whose name starts with `GIT_` counts, except `GIT_EDITOR`, `GIT_PAGER`, `GIT_ASKPASS` and `GIT_TERMINAL_PROMPT`, which cannot change what those hooks' git commands print. A variable counts whatever its value: empty (git fails on an empty `GIT_DIR`), not UTF-8, or a `GIT_CONFIG_COUNT` that only sets `gc.*` or `maintenance.*` (git fails on a missing `GIT_CONFIG_VALUE_<n>` or a key it rejects). An `HQ_DISABLED_HOOKS` entry padded with a non-ASCII space no longer turns a ported Stop hook off, matching hook-gate.sh.
59
+ - The native Stop takes its HQ from the registration's `--hq-root`, as master-hook takes its own install, and never from the payload's working directory. A user-scope Stop in a project outside HQ now runs that HQ's registry, personal, package and company Stop hooks and keeps its session state in the HQ, not in the project; a session in a nested folder that looks like an HQ (such as `repos/private/hq-core-staging`) no longer runs that folder's hooks instead. Under the user-scope entry and the Codex and Grok entries, those hooks see `HQ_ROOT` and `CLAUDE_PROJECT_DIR` as the HQ, as the shell entries exported them; under Claude Code's project entry they see the host's own `HQ_ROOT` and `CLAUDE_PROJECT_DIR`, as master-hook passed them on. A registered root that is not an HQ install (no `core` folder) refuses every Stop, retries included, until `hq reindex` names the HQ again.
60
+ - The user-scope Claude Code Stop now skips exactly where the shell command skipped: when Claude Code's project folder is the HQ root itself, or the working folder is inside an HQ tree. A project folder elsewhere inside an HQ tree, or an inherited `GROK_WORKSPACE_ROOT`, no longer lets the Stop through without running the HQ's Stop hooks. Other events keep their current scope check.
61
+ - These Stops are now refused natively, retries included, where they used to run the wrong HQ's hooks or exit 1 (which every host takes as an allow): a Claude Code project Stop registration whose `--hq-root` is not the project it sits in (for example a copied or restored HQ whose `.claude/settings.json` still names the original; delete that entry and run `hq reindex`), a Stop command line hq-hook cannot read (`--hq-root=<root>`, an unknown option, a missing value), and a project Stop where the host's `HQ_ROOT` is an HQ that contains this one, which master-hook rebinds and the native Stop does not model.
62
+ - The native Stop now follows master-hook on four more inputs. A registry Stop hook marked `"safety": true` blocks on any exit other than 0 and 2 (exit 1, 127, a signal, a timeout) and runs under master-hook's 25-second cap and 240-second shared budget. Registry `args` are joined with spaces and split on spaces and tabs as master-hook's unquoted expansion splits them. A Stop payload with an `agent_id` takes its company from that agent's own `workspace/sessions/<session>/agents/<agent>/scope-capability.json`, not from `meta.yaml`. These are refused on every call, retries included: a `core/hooks/Stop/*.sh` file with no native port that appears after the native Stop was registered (run `hq reindex` to put master-hook back on Stop), registry `args` with a glob character, a number, a line break or a nested value, a `safety` flag on a ported hook's entry, and an agent Stop when `session-scope-capability.sh` is not a released version this hq-hook models or the agent's capability cannot be read the way jq reads it.
63
+ - The safety-guard budget of a native Stop now runs from the moment the hq-hook process started and counts at least as many whole seconds as master-hook's own count, so a guard that master-hook would block unrun because the 240-second budget was spent is blocked natively too, never run and allowed. A native Stop also refuses, on every call and retry, when one of the Stop hook scripts it ports (the three `core/hooks/Stop` leaves and the `.claude/hooks/<id>.sh` of each ported registry hook that will run) is not a released version this hq-cli ports, or cannot be read. Restore the released file, update hq-cli, or run `hq reindex`, which now keeps master-hook on Stop while such a script is on disk.
64
+ - The native Stop also refuses, on every call and retry, when a library or helper that a ported Stop hook script sources or runs (for example `core/scripts/lib/hook-stop-async.sh`, `work-mesh-enqueue.sh`, `transcript-tail.sh` or `core/scripts/hook-lib.sh`, and the files those use in turn) is not the released version this hq-cli ports, cannot be read, or is a file no release ships, such as `.claude/hooks/lib/parse-estimates.pl`. Restore the released file, update hq-cli, or run `hq reindex`, which keeps master-hook on Stop while such a file is on disk. The Stop files of stable core v16.0.46 and v16.0.47 are now accepted; HQs on older cores, whose libraries are older versions, stay on master-hook until core is updated. A library or helper that every released core ships and that is missing from the HQ is refused the same way (for example, without `core/scripts/lib/resolve-hq-bin.sh` the old lanes gate looked for `hq` on PATH alone and blocked). A safety guard in the Stop registry that comes after ported hooks now has each ported hook's kill timer counted against its 240-second budget, since master-hook runs those hooks as separate processes first; a guard that master-hook could have found out of budget is blocked natively, never run and allowed.
65
+ - The native lanes Monitor gate now looks for `hq` the way the released `resolve-hq-bin.sh` does: PATH first, then `~/.local/bin`, `~/.npm-global/bin`, the HQ app's toolchain folder (core v16.0.48 and later), `/usr/local/bin`, `/opt/homebrew/bin`, `/usr/bin` and `/bin`, using a folder and binary only when root or the user owns them and no other user can write to them, and appending that folder to the `PATH` `hq` gets. It no longer runs an `hq` from `~/.claude/local` or from a world-writable folder, which the shell gate refused.
66
+ - On Windows, the Stop autosave no longer skips every file. It compared Git's `C:/...` path with Node's `C:\...` path, which never matched.
67
+ - The native Stop now looks for `hq` on PATH as bash's `command -v` does. An `hq` on PATH that cannot be run (for example an `npm link` target rebuilt without its execute bit) is the one the lanes Monitor gate uses when no runnable `hq` comes after it; the gate fails on it as the shell gate did, instead of finding another `hq` in an install folder. An empty PATH entry is the working directory and a relative entry is read from it. Native hook PATH setup now also puts `~/.npm-global/bin` ahead of `~/.local/bin`, as every released hook-gate.sh does, and only skips a folder already on PATH when its text matches, as the shell does.
68
+ - On macOS the native Stop now decides which `hq` (and `id` and `find`) bash's lookup finds from the file's mode bits, as both macOS bashes do, so an `hq` with execute bits that an ACL or a `noexec` volume stops is the one the lanes gate runs and fails on, as the shell did. A leading `~` in a PATH entry (`export PATH="~/bin:$PATH"`) is expanded as bash expands it for the lanes gate and the checkpoint gate, and not for the conduct deliver hook, whose `env hq` does not expand it. The native Stop now refuses, on every call and retry, a Stop whose environment exports a bash function other than the usual host login functions, a PATH that is not UTF-8, a PATH entry starting with `~+`, `~-` or `~` and a digit, a `~` entry under `POSIXLY_CORRECT` or `POSIX_PEDANTIC`, and a hook-gate.sh whose `hq_augment_path` or `hq_highest_node_version` is not the released body (an edited or older copy, or a missing one).
69
+ - The native observe-patterns now folds case in ASCII only, as the shell's `grep -i` does on macOS in every locale. Commit summaries such as `ſcript` or `hooK` (with U+017F or the Kelvin sign) no longer produce an observation the shell never wrote.
70
+ - The native Stop and `hq reindex` now accept only plain Git config lines: blank lines, `#` or `;` comment lines, a `[section]` or `[section "subsection"]` header with at most a comment after it, and a `key` or `key = value` line whose value has no backslash, double quote or control character and may end in a comment. Any other line keeps master-hook ("unmodeled Git config syntax"): a backslash continuation or escape, a quoted value, CRLF line ends, a setting on the header line (`[core] repositoryformatversion = 1`), the legacy `[section.subsection]` header, or a non-ASCII header. git reads several of these differently from a line-by-line reader, for example a value ending in `\` that hides the next `[section]` header, so such a repository is no longer let through where git refuses it or reads another file. A leading UTF-8 byte-order mark is skipped, as git skips it.
71
+ - The native Stop and PreCompact accept the `core/scripts/hook-lib.sh` that hq-core v16.0.48-beta.98 ships.
72
+ - The native Stop and `hq reindex` now check Git config against an allowlist. In a section that git reads during observe-patterns' commands (for example `core`, `diff`, `color`, `user`, `push`, `fetch`, `trace2` or `safe`), a variable keeps the shell Stop unless it is one the native Stop models, with a value in that variable's strict grammar. Examples that keep the shell Stop: `core.filemode = maybe`, `core.deltaBaseCacheLimit = -0`, `core.disambiguate`, `[diff "color"]`, or a bare `trace2.*` key. A repository extension git refuses (for example `refStorage` under `repositoryformatversion = 0`) also keeps it. git dies on these, so the shell's observe-patterns writes nothing, where the native reader used to write an observation. The modeled variables cover a default `git init` and the common developer settings (`user.*`, `init.defaultBranch`, `push.default`, `fetch.prune`, `diff.algorithm`, `color.ui`, `core.editor`, `core.pager`, `core.excludesFile`, `core.hooksPath`, `safe.directory`, and so on). Values are read with git's own config syntax, so quoted values (`editor = "code --wait"`), escapes, inline `#` and `;` comments and a trailing `\` continuation are read as git reads them; a file git refuses with "bad config line" keeps the shell Stop, as do CR, NUL and the legacy `[section.sub]` header. The modeled variables also include `branch.autoSetupMerge`, `branch.autoSetupRebase`, `branch.sort`, the common `core.*` keys (`compression`, `quotePath`, `fsmonitor`, `untrackedCache`, `sshCommand`, `whitespace`, `sparseCheckout` and others), `log.date`, `log.decorate` (off or `auto`), `color.diff`, `color.status`, `color.branch` and `[color "diff"]` slots, `diff.colorMoved`, `diff.renames`, `diff.mnemonicPrefix`, `diff.tool`, `index.version`, `index.sparse`, `gc.auto`, `init.templateDir`, `feature.manyFiles`, `protocol.version`, `transfer.fsckObjects`, `fetch.writeCommitGraph`, `fetch.pruneTags`, `fetch.all`, `push.followTags`, `submodule.recurse`, `advice.*` and `pager.<command>`; `diff.algorithm` and the color words are matched ignoring case, as git matches them. `core.notesRef`, `log.showSignature = true` and `color.* = always` still keep the shell Stop, since they change what `git log` prints. `[include]` and `[includeIf]` files are now read and checked the same way, instead of always keeping the shell Stop, except an `includeIf "hasconfig:..."` include, which keeps it (git fails when the file it names sets a remote URL, whether or not the condition matches). For an HQ root inside another Git repository (a folder below the repository's top, at any depth), or a linked worktree (`git worktree add`), the native Stop now checks the config of the repository git finds: the parent's `.git/config`, or the worktree's shared config and its own `config.worktree`, plus the global and system files. Before, the folder inside a repository was not checked at all, and a linked worktree always kept the shell Stop. A layout the check does not model still keeps the shell Stop: a gitfile or `commondir` git cannot follow, a bare repository on the way up, a `.git` past a file-system boundary, a repository the current user does not own, or a project folder reached through a link whose path and real path lead to different repositories. The sections come from running git 2.50.1 over every documented and compiled-in config name in the system, global, local and worktree files (`crates/hq-hook/tests/git-config-lab/derive.mjs`).
73
+ - Native Stop and `hq reindex`: a repository with `extensions.worktreeConfig` in repository format 0 no longer keeps Stop on master-hook. Each value, read with git's own config tokenizer, must be a boolean git and gix read the same way (`true`, `yes`, `on`, `1`, `false`, `no`, `off`, `0` in any case, or a bare key); any other value, an empty one included, is still refused. The main worktree's `.git/config.worktree`, which git loads with the extension on, is checked under the same rules as `.git/config`, the Git config allowlist included, so a guarded key there is still refused. In a linked worktree, the worktree's own `config.worktree` is checked the same way; repository format 1 is still refused. A key on its section header's line and a value continued with a trailing backslash are read as git reads them, and a byte-order mark at the start of a file is skipped as git does; before, each of these could hide a guarded key. The native check and the reindex check run the same cases (`crates/hq-hook/tests/fixtures/stop-git-config/cases.json`). The native Stop also refuses edited PATH helpers in hook-gate.sh: a helper that changes the hook profile could previously make native Stop skip a hook that master-hook would run and block. A Stop registration timeout too large to represent now refuses every Stop instead of panicking before the hooks run. On Windows, absolute Git config and PATH locations now replace the HQ base path, matching the native reader, instead of being appended to it.
74
+ - Native Stop and `hq reindex`: the Git config check now refuses every way git takes repository config from somewhere other than `<root>/.git/config`: a `.git` symlink, a `.git` directory holding `commondir`, and, when `<root>/.git` is a directory git does not accept, a bare repository at the root or a `.git` or bare repository in a parent directory (when `.git` is missing, the repository git finds above the root is checked instead, as described above). It also scans the system config files git may read besides `/etc/gitconfig`: the `usr/share/git-core/gitconfig` of the developer directory `DEVELOPER_DIR` or `xcode-select` chose (Apple git), the Command Line Tools' and default Xcode's copies, Homebrew's and MacPorts' `etc/gitconfig`, `%PROGRAMDATA%\Git\config`, and `etc/gitconfig` and `share/git-core/gitconfig` under the installation of the git observe-patterns runs. That git is found as bash finds it after master-hook's `hq_augment_path` and observe-patterns' `cd "$HQ"`: a leading `~` in a `PATH` entry takes `HOME`, and empty and relative entries (and a relative `HOME`, `XDG_CONFIG_HOME` or `DEVELOPER_DIR`) are read from the HQ root. It must be Apple's `/usr/bin/git` on macOS or a native program named `git`; a script or a symlink to another program (asdf, mise and nix shims) is refused, as are an unset `PATH`, no git at all, `~user` entries, and `~` with `HOME` unset. A Homebrew git under `Cellar` also has `<prefix>/etc/gitconfig` scanned, and an empty `HOME` scans `/.gitconfig`, as git reads it. A developer-directory link or `PATH` entry that cannot be read is refused. A config line git rejects ("bad config line") is now refused too, instead of allowed. The paths live in `native-stop-compatibility.json`, shared by both checks.
75
+ - Native Stop and `hq reindex`: the Git check now also refuses a git whose path as found has a `..` component (git takes its system config folder from that path with `..` removed as text, while the kernel follows a symlink before the `..`), and repository state that changes what observe-patterns' `git log` walks: any entry under `.git/refs/replace`, a `refs/replace/` ref in `.git/packed-refs`, `.git/info/grafts`, and the `core.useReplaceRefs` key. The reindex check resolves paths physically, as the native check does, so a git stored under another case (`GIT`) is refused on both sides.
76
+ - Native Stop and `hq reindex`: the git observe-patterns runs is now found by bash's own test for a file it can run. On macOS that is the mode bits, as bash 3.2 and 5.3 there read them, not `access(X_OK)`: a `git` with no x bit that an ACL lets the user run is passed over for the next one on `PATH`, and a `git` with x bits whose ACL denies execute (bash picks it and fails with 126) is refused, as is a `git` with x bits that is not a regular file. Setuid, setgid and sticky bits are not x bits.
77
+ - A policy file a session actually reads is still recorded when the native hook core runs, matching the current retrieval ledger, on Claude Code, Codex, Grok and fleet-local, and in the HQ the hook is registered for when neither HQ_ROOT nor CLAUDE_PROJECT_DIR is set.
78
+ - The native hook engine now does three of core's PostToolUse hooks (hq-core-rust US-021, batch PO-1), with the shell hooks' v16.0.48-beta.68 behavior: the policy enforcement gate's PostToolUse half (read receipts and AskUserQuestion proofs, through the native gate), `screenshot-resize-trigger` (the per-event screenshot counter and its notices, which now go to stderr instead of plain stdout), and the PostToolUse half of `conduct-lanes-link-deliver` (queued conduct-link messages handed to the model as context). Each runs only where master-hook ran it: listed in the root's `hook-registry.json` under a matcher for the tool, script on disk, allowed by `hook-gate.sh` and `HQ_DISABLED_HOOKS`. An input the ports do not model (an unknown registry row shape or gate version, a resize script bash would run, a counter that is not a plain count, a Codex or Grok event that would reach these hooks) is blocked with one line instead of handed to bash. `hq-hook capabilities --json` claims the three for PostToolUse; PostToolUse still stays on the old dispatcher, because master-hook's own PostToolUse work, the Codex and Grok adapters', `inject-policy-on-trigger`, `redact-credential-output` and `pr-fingerprint-footer` are not ported.
79
+ - `hq-hook run` answers four more PreToolUse hooks in the new core:
80
+ `block-builtin-plan-mode-during-deep-plan` (a new native port),
81
+ `block-company-git-metadata`, `block-core-writes` and `block-env-dump`
82
+ (the native bridge ports, run in the chain). Each keeps master-hook's
83
+ profile gate, prefilter, tool PATH and safety-guard handling, and refuses
84
+ natively what it does not model. `hq-hook capabilities --json` lists them
85
+ under `covers.PreToolUse`; PreToolUse stays on the old dispatcher until
86
+ every hook of the event is covered.
87
+ - The native hook core can now write the Work Mesh session_end line itself (labelled with the Claude, Codex, Grok or agents-v2 harness, using the same sequence file as the Stop turn_end line). SessionEnd still runs the shell hook until its registration switches, and on Windows the native line is not written yet.
88
+ - The native hook engine now does the work of six SessionStart hooks itself (hook batch SS-2, hq-core-rust US-008, US-017, US-021): `usable-integrations`, `inject-local-context`, `auto-startwork`, `conduct-lanes-session-start`, `load-journal-index-on-start` and `hq-monitor-session-start`. Each prints what its shell hook printed, writes the same files and starts the same `hq` calls with the same time limits, checked against the shell hooks on the same inputs. `hq-hook capabilities --json` lists them under `covers` for SessionStart. SessionStart still runs on the old dispatcher until its other hooks are ported too. `session-title` is not ported: the native engine has no way to set a session title yet. `welcome-brief-ready` stays a daemon machine check: the batch neither runs nor claims it, so truncated context or failed host output cannot use up its one-time announcement, and the existing machine-check notice keeps its delivery acknowledgement. An input the ports do not model (for example `BASHOPTS` in the hook environment, or a fleet runtime's SessionStart) is refused instead of being handed to bash. On SessionStart no host can show a refusal, so the session still starts without the batch's context, and the refusal's reason reaches neither the person nor the model (Claude Code and Codex write only a note on stderr that a refusal was dropped).
89
+ - hq-hook: SessionStart folder hooks `50-agent-browser-presence-check` and `55-repo-rooted-hq-skills` now run in-process (US-021). A missing `agent-browser` on PATH, and a repo-rooted session below HQ, is added to the session context. Unmodelled input is denied. The other four Batch SS-4 hooks stay on bash. Browser lookup resolves relative PATH entries from the hook process directory and recognizes native `.exe` files on Windows. Registered sessions recover the HQ root when HQ_ROOT is unset, and an empty payload cwd uses the hook working directory. Repo-skills Bash parity tests use a vendored reference and fail when it cannot run.
90
+ - The native hook engine now does two UserPromptSubmit hooks of batch UP-1 itself (hq-core-rust US-021): the UserPromptSubmit half of `block-hq-worktree-session` (refuses a prompt in a session that runs HQ from a linked git worktree of itself, with the same notice and `Blocked by hook` line, and shares the per-session allow cache) and `rewrite-resume-sentinel` (adds the resume guidance for Claude Code's bare "Continue from where you left off." and appends its telemetry line). Both are claimed in `hq-hook capabilities --json`. UserPromptSubmit still runs on the old dispatcher until its other hooks are ported. Inputs the ports do not model are refused natively, never handed back to bash. Registry and gate config reads are limited to regular files of at most 1 MiB, and resume telemetry skips non-regular destinations without waiting for a FIFO reader, so these paths cannot discard a collected worktree refusal at the chain deadline. Cache temporary files are created exclusively so an existing symlink or FIFO cannot overwrite another file or stall the hook. Guard input reads validate the opened descriptor and enforce the 64 KiB cap while reading, including when a path changes after discovery.
91
+ - hq-hook: UserPromptSubmit folder hook `35-work-mesh-turn-start` now records the turn in-process (US-021). Unmodelled input is denied. The other three Batch UP-3 hooks stay on bash.
92
+ - UP-3 parity tests use a byte-verified, vendored HQ core reference and isolated temporary roots. Unix-only fixtures are gated on Windows; registration and production environment/kill-switch behavior have regression coverage.
93
+ - Preserve Bash fallback behavior for empty harness values and whitespace-only session overrides, keep default spool/sequence files under HOME, create their parent on first use, trim board context trailing newlines, and resolve relative PATH entries from the hook working directory.
94
+ - Treat false state fields as absent, matching jq fallback semantics and avoiding lifecycle events for a nonexistent project.
95
+ - `hq index` honours glob depth in collection masks and skips masks it cannot parse, so a top-level `*.md` collection no longer walks the whole tree and OOMs `qmd update`.
96
+ - Tests: each new-core hook registration (Claude Code exec form, Codex and Grok Build command strings) is now executed the way its host runs it, `/bin/sh -c` on macOS and Linux and Windows PowerShell on Windows, against a stub engine under an HQ root whose path has a space, an apostrophe and parentheses; the test checks the argv and stdin the engine receives and that no bash is in the chain.
97
+ - search index: `hq index sync` no longer stops when a company's `knowledge` or `projects` path is a file instead of a folder; that path is skipped and the rest is indexed.
98
+ - search index: when an unmanaged qmd collection already covers one of HQ's folders, `hq index sync` names that collection and warns that scoped search misses the folder until the duplicate is removed. Collisions with HQ-managed names remain fatal and reportable.
99
+ - search index: when macOS privacy settings or folder permissions stop the search index reading your HQ folder, or qmd cannot write its settings folder, hq now prints which folder is blocked and how to fix it, instead of a raw qmd stack trace.
100
+ - search index: a damaged search index file is now reported with its path and the rebuild step, instead of qmd's unrelated "Install Homebrew SQLite" advice.
101
+ - `hq signals run`: the extract step now counts a source as 0.10 USD against the run budget when the coding tool reports no cost for it (Codex always, Grok when its end event has none), so the budget stop works on those tools. A Codex turn that fails, times out or is refused by the lockdown is not charged. At the default 2.00 USD budget such a run now stops after 20 sources; before, it recorded 0 spend and never stopped at the budget. The 0.10 figure is an assumption, not a measured cost. Change it with `unpricedSourceEstimateUsd` in `core/settings/signals.yaml` (0 turns the charge off), or raise the cap with `--max-budget-usd`. The run record marks the spend as estimated (`detail.spendEstimated`, `detail.unpricedSources`, `detail.unpricedSourceEstimateUsd`), a stop on estimated spend records `detail.sourcesProcessed`, `detail.sourcesLeft` and a plain-words `detail.budgetStopReason`, and the reply says "Estimated spend" and explains the stop.
102
+ - `hq signals run`: signal candidates with no citation marker in the body are now counted in the run record under `detail.uncitedCandidates`, with their sources under `detail.uncitedSources`. Nothing is rejected or left unprocessed for a missing citation. Entity candidates are not counted.
103
+ - Incremental signal extraction: when Claude stops the turn at its budget cap the step now returns `budget-exceeded` and leaves the cursor in place. Before, it failed with a message to check the login.
104
+ - `hq signals run` on a Codex bot: the extract step's Codex turn is locked down.
105
+ - It runs the real `codex` found on PATH past HQ's `~/.hq/bin/codex` sign-in wrapper.
106
+ - Its sandbox can read Codex's built-in minimum of system paths (for example `/usr`, `/System`, `/etc` and `/Library/Preferences`), the Codex install folder and an empty temp folder, and it writes nothing. It never reads your home folder, `~/.hq` (HQ sign-in tokens, the secrets cache, bot and capacity logins), the bot's Codex login folder, or a parent of any of them. Your home is checked both as `$HOME` and as your account's home.
107
+ - The step fails with "codex install could not be resolved safely", and no turn runs, when the Codex install folder is a home folder, a dot folder in a home such as `~/.local`, `~/.nvm`, `~/.volta` or `~/.bun`, or a folder directly in a home such as `~/Downloads`. Deeper inside a home, only a real `@openai/codex` npm package, with its native `vendor` build, is accepted. A Codex installed any other way must be reinstalled elsewhere (Homebrew, the HQ toolchain, or a global npm package) before extract can use it.
108
+ - Codex tool features are turned off for the turn: shell, apps, plugins, hooks, browser and computer use, image tools, skills and web search. Codex 0.169.0 keeps a few tools that no flag removes: its code-mode `exec` wrapper, `wait`, `request_user_input` and the sub-agent tools. These stay inside the same sandbox with no network. A turn that reports any tool call fails the item.
109
+ - The turn gets only PATH and LANG from the bot's environment. HOME is an empty temp folder, and CODEX_HOME is the Executive bot's own Codex login folder, used in place so Codex refreshes it under its own lock. Nothing copies the login. Extract refuses to run on Codex when the bot has no Codex login of its own (it never borrows the caller's CODEX_HOME), when its login is your personal `~/.codex`, or when it is an HQ Fleet Runtime bot. The error names the fix: `hq bot login <name> --runtime codex`. It also refuses a login folder that holds `AGENTS.md`, `AGENTS.override.md` or user skills: Codex loads them as instructions, and no Codex flag turns that off.
110
+ - A grok Executive bot whose grok cannot be used now falls back to Claude only. It no longer falls back to Codex, because a Codex turn needs a bot that runs on Codex with its own login.
111
+ - Because the turn has no shell, HQ puts the source text in the prompt and writes the candidates itself from Codex's JSON reply, as it already does for Grok.
112
+ - Claude runs are unchanged.
113
+ - Hot-channel signals can run on your Executive bot's Codex instead of Claude Code, when that bot runs on Codex with its own Codex login (`hq bot login <name> --runtime codex`). Turn it on with `hq bot set <name> --signals-runtime bot` on the Executive bot, and off with `--signals-runtime claude`. It is off by default, so every bot keeps running signals on Claude Code until you turn it on. The scheduled sync and `hq sources sync` both follow the setting.
114
+ - `hq bot set` refuses the setting for an HQ Fleet Runtime bot (the Fleet runtime keeps its Codex login to itself), for a bot with no Codex login of its own or on your personal Codex login (`~/.codex`), and for a login folder holding AGENTS.md or skills, which Codex would load as instructions. If a refused bot has the setting anyway, `hq bot status` says why and signals fail as a Codex sign-in problem until it is fixed or turned off.
115
+ - With it on, each document is one Codex call under the same lockdown as the signals engine's extract step: every Codex tool and feature off, no network, read access only to an empty temporary folder and the Codex install folder, and a minimal environment. The call uses the bot's own Codex login in place, the same one its own turns use and `hq bot status` reports, so Codex keeps its login current the usual way; signals never copy or rewrite it. If the call fails, signals report a Codex failure and do not fall back to Claude Code.
116
+ - Signals keep taking their runtime from the Executive bot, as before. The Claude Code sign-in check before a signals run is unchanged: a check that hangs or fails still stops the run at once.
117
+ - `hq sync-core status` now shows each vault's latest engine cycle, read from the engine's `status.json`: when it ran, how many operations were planned, completed, pending, held and not applied, and any pause the engine reports. Before, it showed only the numbers recorded when the vault switched to the new engine. `--json` adds an `engine` object to each vault.
118
+ - The client-health heartbeat names the sync engine on devices where at least one vault runs on `hq-syncd` (`syncEngine`, `syncEngineVaults`, `versions.syncEngine`). Devices with every vault on the current sync send the same heartbeat as before.
119
+ - `hq sync-core status` shows a cycle that is still running: its phase, uploads and downloads done out of the total, failed transfers and the file being moved, and says when a transfer phase has written no progress for over two minutes. It also names the request breaker, a wait after failed transfers, and how many transfers the last cycle left for the next one. These come from fields newer sync engines write to `status.json`; with an engine that does not write them the output is unchanged.
120
+ - `hq whoami --check` prints what `hq whoami` prints and exits 1 when there is no usable session, the same exit status `hq auth status` gives, so callers that only read the exit code can move to `hq whoami`. Plain `hq whoami` still exits 0 when signed out.
121
+ - lanes: add the hq-work-requirements.v1 schema (src/schemas/hq-work-requirements.v1.schema.json) and its validator. `on_no_fit` gains `conductor-harness`, run on the conductor's own harness. `hq lanes create` now writes a derived requirements document into every new lane record (`work_requirements`, with `work_requirements_source: "derived"`): the lane's company as the rest of hq lanes resolves it (company, mesh company, project company), otherwise the caller's session lock (from the session id in the environment only), engines any, the repo under repos/ the lane was created in, and `on_no_fit: conductor-harness`. If the derivation fails the lane is still created, without the field, and a warning goes to stderr. `hq lanes repair-company` updates the company in derived requirements. Secret needs are names only. Lane records without the field, or with a malformed one, read as before.
122
+
123
+ ## [5.345.220] — 2026-11-15
124
+ - `hq capacity` no longer signs Claude accounts out every few days. Claude refresh tokens are single use, and three paths lost or wrongly revoked them. The token refresh now waits 30s instead of 10s, and the scheduler gives the claude-oauth run 180s so a timed-out run cannot overlap the next and reuse the same token. A finished lane that failed auth no longer marks the current token revoked; only `invalid_grant` from the token endpoint does, and only after a re-read shows no other process has already rotated the token (that case is recorded as `skipped-race` with a backoff). On macOS the rotated token is written when both Keychain selectors confirm the item is missing; other read failures fail closed as before.
125
+
126
+ - `hq index status` and `hq index sync` no longer report a missing qmd binary
127
+ when a large index overflows Node's 1 MiB spawn buffer (ENOBUFS). Captured
128
+ qmd output is allowed up to 64 MiB, and an overflow names the buffer instead
129
+ of `Unable to execute qmd`.
130
+
131
+ - `hq run` no longer lets an inherited process.env value replace a key declared in `.env.schema` (or `.env.local`). Varlock treated the caller's environment as an override, so a shell profile that still exported an old key silently skipped `hq()` after rotation. Schema and `.env.local` now win, matching `hq secrets exec` (feedback_d5698e57).
132
+
133
+ - `hq integrations approve` now reports a finished call whose result the gateway did not keep (`resultAvailable: false`) by printing the server's message, reason (for example `result_too_large`) and size instead of "result could not be read back, run approve again". It no longer suggests a retry, since the call already ran and will not run again. When the gateway returns the live result but did not keep it (`resultAvailable: true` with a reason), the result is printed followed by the server's note that a later approve cannot read it back. An explicit `resultAvailable` is authoritative, so a call that legitimately returns null is not reported as lost. `--json` passes `callAlreadyRan`, `resultAvailable`, `resultOmittedReason`, `resultBytes` and `message` through unchanged. Older gateways that send none of these fields keep the previous text.
134
+ - `hq-hook run` no longer lets a credential read through when a host delivers the same call id with the same content twice within 10 seconds (a doubled registration, or a provider that reuses an id) and a link named in the call now points at a credential file. The duplicate-event ledger used to repeat the earlier allow; the credential check now runs again before an allow is repeated, as the bash guard does on every delivery.
135
+ - `hq daemon sync status --local` prints the local sync journal summary, the same text, JSON and exit status as `hq sync status`, and accepts `--hq-root`, `--company`, `--all` and `--json`. Without `--local`, those journal options are refused and the daemon view is unchanged.
136
+ - The Stop gate's automatic checkpoint (`--trigger stop-gate-auto`) now updates one thread file per session instead of writing a new `T-*-auto-*.json` after every replied turn. The first automatic checkpoint of a session creates the thread and records its name in a per-session stamp; later ones reuse that file, keep its path and creation time, bump `updated_at`, and merge `files_touched`, learnings, insights, decisions and tags (`next_steps`, `conversation_summary` and `git` are replaced by the latest run, not merged; keys the maintenance sibling added are kept). `metadata.title` follows the latest summary only when the thread has no title or still carries the auto-generated one, so a title the sibling improved is kept. Writes are atomic (temp file plus rename) and there is no lockfile: concurrent same-session runs are not serialised. A file is never corrupted, and the existence re-check narrows resurrecting a thread the sibling renamed away to a very small window between the check and the rename. Two runs of the same session at the same instant can lose one union merge, and on the session's first turn they can fork a second thread (the last pointer write wins). A run that would change nothing leaves the file untouched. Explicit `/checkpoint` runs and other triggers still write a new thread each time.
137
+ - `hq-hook` no longer answers a Grok Build call after Grok has stopped waiting and let the call through, on three more paths. The time budget for a Grok call (4 seconds by default, 4.5 at most) now counts from the moment the process was created, so a slow start-up is included. With the new core off, the old Grok bridge is stopped, together with anything it started, if it has not answered within the budget, and the call is refused. The engine log line, and the record of a reminder that was shown, are now written after the answer, and together they can delay the exit by at most 0.2 seconds, so a stalled disk cannot hold the answer. The checks made before any answer (whether the call is inside an HQ folder, the kill switch in the home folder, and with the new core off the look-up of the Grok bridge) are now also limited to the budget: if a stalled disk or network folder holds them past it, the Grok call is refused in time instead of being let through. Claude Code and Codex calls are unchanged.
138
+ - The hq-hook unit tests compile again: two merged ports each added the same COVERS test, so one copy is removed.
139
+ - The `hq-hook` workflow installs the de_DE, fr_FR, en_US and en_GB UTF-8 locales on Linux runners. Three `block_core_writes` tests now probe the installed jq and yq instead of assuming the macOS builds: where Ubuntu's jq rejects `sNaN42` or the runner's yq reads a double-quoted `\/`, bash allows and the test requires the native hook to give the reference deny (never an allow). The NUL-warning locale test requires both to block when a locale is missing.
140
+ - `company_git_metadata` tests now take the bash exit from the installed jq when it is not the reference build: Ubuntu 24.04 jq rejects `nan123` and Ubuntu 26.04 jq reads 257 nested containers, so the bash hook allows or blocks differently there. The native deny is still asserted on every input.
141
+ - hq-hook: the path_rules tests run with an explicit environment (a fixed PATH) and pin conduct-link-inherit's refusal when PATH is unset; the conduct-link Windows lookup test now passes on case-sensitive Linux folders, and Unix-only test helpers no longer break the Windows Clippy build.
142
+ - Account for every injector fixture by role before differential replay and require all planned events to execute in an unfiltered run.
143
+ - Enforce function ownership, coverage and retirement rules in pull-request CI using a reviewed, provenance-pinned CLI manifest snapshot.
144
+ - The native credential check on the optional hook entrypoint now refuses the Git reads that the current shell guard (hq-core-staging #1889) refuses: `^@`, `^!` and `^-` revisions, a tab or `$'...'` quoting in a git command, `~+` and `~-` directories, git arguments with an unquoted glob or a brace expansion, aliases whose value comes from an expansion, and git aliases whose text holds quotes, a backslash or a line break. It also refuses a command word that is quoted, escaped, globbed, brace-expanded, split by a line continuation or expanded (such as `\git`, `g''it` or `{git,log}`) when it could run git, including after a prefix and its options (`env -i`, `nice -n 5`, `timeout 5`, `exec -a x`, `sudo`, `xargs` and similar), and an expanded command word in a command that names git; spell it `git` instead. The same checks apply inside `$(...)` and backtick substitutions, `sh -c`/`bash -c` strings and `eval`, and to a word anywhere in a command that could be git. Commands nested more than six substitutions or shell strings deep are refused. The revision and alias checks also read the command with its quoting removed, so `HEAD^"@"`, `HEAD^\@` and the same forms inside `bash -c` or `eval` are refused, as is a `^` or `~` followed by an expansion (`HEAD^$a`). A git argument with `@`, `!`, `-`, `+` or a second expansion after an expansion is refused too. `alias.` keys are matched in any case and through quotes. A command word spelled `GIT`, `Git`, `\GIT` or `/usr/bin/GIT` is refused, because on macOS and Windows it runs git. So is `git.exe` in any case, also when it is escaped, quoted or globbed (`\git.exe`, `g''it.exe`, `"git.EXE"`), has trailing dots or spaces, or sits in a Windows path such as `"C:\Program Files\Git\cmd\git.exe"`. Commands longer than 64 KiB are refused so that the check always answers well before the hook times out. These checks also apply when the tool call holds bytes that are not valid UTF-8, and a tool call the check cannot parse is refused. Before this, these calls were allowed and could print a tracked credential file. Because the check is conservative, some commands that only mention git (for example `grep git *.md`, or a git command with a tab in its message) are now refused too.
145
+ - PreCompact can now switch to the new hook core on Claude Code, Codex and Grok Build. The native core now does master-hook's own PreCompact work (session bind, twin dedupe, timeout journal rows, trace lines), gates the policy-ledger purge on `purge-policy-ledger-precompact` as `hook-gate.sh` did, and sends the Codex PreCompact banner as `systemMessage` as the Codex adapter did. `hq reindex` switches PreCompact only where the HQ root has no other PreCompact hooks and the host canary passes. Intended differences are listed in `crates/hq-hook/tests/fixtures/US-015-precompact/`.
146
+ - The native PreCompact works only in the HQ its registration names and refuses, in the host's own PreCompact format, what it does not model: a PreCompact hook or registry entry added since the last `hq reindex` (run `hq reindex` to keep PreCompact on the old dispatcher while it exists), a Claude Code `HQ_ROOT` or `CLAUDE_PROJECT_DIR` that names another HQ (an outer HQ that contains this one is handled as master-hook did), a registration command line hq-hook cannot read, a ported PreCompact hook script, a library one of them sources (`transcript-tail.sh`, `hook-lib.sh`), a `master-hook.sh`, or a file master-hook.sh sources or runs on PreCompact (`hook-gate.sh`, `hook-timeout-probe.sh`, `hook-timeout-watchdog.sh`, the HQ root resolver, the adapter core and its helpers, the flag readers and the hqd shim) that is not a released version, a ported registry entry whose fields, matcher, order or grouping are not the released ones (restore these with `/update-hq`; `hq reindex` does not clear them), cached registry rows the old dispatcher would run in place of the released ones (delete the cache file), and a session `company_slug` that is not a plain company folder name (rebind with `hq-session.sh set company_slug`). A refusal binds and purges nothing, and its text names `~/.hq/state/core-next.off` first: that file hands every hook event back to the old dispatcher at once, with no restart (`HQ_CORE_NEXT=off` needs the agent restarted). A registered PreCompact whose worker runs out of its budget before the session company and cached rows are checked is refused too, not answered with exit 1. A twin PreCompact's wait for its twin's verdict now ends on master-hook's whole-second clock, counted from the process start.
147
+ - Run the vault-write access guard natively for allow and block decisions, preserving pinned Bash ACL, shell parsing, diagnostics, and flag behavior with Mac and Windows differential coverage.
148
+ - Match hq-core-staging#1825 in the native vault-write guard: companies/ paths, company keys and grant paths compare without case, and symlinks into companies/ are checked by their real path. A missing tr, an unreadable working folder, settings.local.json or vault-access.json, or a Windows locale the host lacks is now denied natively instead of handed back to Bash.
149
+ - The native vault-write guard denies a Bash command that names a companies/ path and contains a non-ASCII Unicode space (U+00A0, U+2003, U+3000 and the like), which bash can read as a word break under a UTF-8 locale.
150
+ - `hq packs update --registry [slug]` checks the package registry for newer versions of installed registry packages and applies them, exactly as `hq packages update [slug]` does (same checks, output and exit status). Combining `--registry` with any content-pack option (`--json`, `--hq-root`, `--check-only`, `--refresh`, `--yes`, `--allow-hooks`, `--allow-mcp`, `--branch`) is a usage error. `hq packs update` without `--registry` and `hq packages update` are unchanged.
151
+ - The conduct-link inherit hook can join a session from a pending invite
152
+ in the native hook engine. PostToolUse still runs the bash hooks until
153
+ every PostToolUse hook is ported. The join
154
+ ends within the hook's time budget, and on a timeout every process it
155
+ started is stopped.
156
+ - The new hook core (`core.next`) now answers four more PreToolUse hooks natively, each under its old hook id and with the old hook's message: `block-plans-dir-during-deep-plan` (writes to `~/.claude/plans/` during `/deep-plan`), `block-qmd-model-download` (a foreground `qmd vsearch|query|embed|pull` with no local model), `block-raw-temp-home` (HOME pointed at a fresh `mktemp` folder; the hook's perl analyzer is ported in full) and `detect-secrets` (secret-shaped values in shell commands and file edits). They start no bash, jq or perl, honor `HQ_HOOK_PROFILE` and `HQ_DISABLED_HOOKS` as before, and refuse with a reason any input they do not model instead of allowing it. `hq-hook capabilities --json` lists them as covered for PreToolUse. PreToolUse stays on the old dispatcher until every hook it runs is covered.
157
+ - The new hook core (`hq-hook run`) now runs the `policy-enforcement-gate` PreToolUse registry row for every tool, natively, before the policy injector, as the old dispatcher did. Until now it ran the gate only inside the injector, which skips every tool but Bash, so an outbound MCP send (for example `mcp__slack__send_message`) in a session missing a required skill or brief was let through; it is now refused with the gate's own reason. The policy injector also honours `inject-policy-on-trigger`'s profile and `HQ_DISABLED_HOOKS` entry on PreToolUse for its reminder only: turned off, it adds and records no reminder, but a call it would refuse is still refused; with a `hook-gate.sh` whose profile lists cannot be read it runs in full, never turned off by `HQ_DISABLED_HOOKS` alone. A gate row in a shape the port does not model, or a gate script it does not reproduce, is refused with one line naming the hook. `hq-hook capabilities --json` lists both under `covers.PreToolUse`; PreToolUse stays on the old dispatcher until every PreToolUse hook, the dispatcher's own work and the Codex and Grok adapters' work are covered.
158
+ - The native hook engine now claims `warn-cross-company-settings` for PreToolUse (batch PT-2). The company scope check gives its warning, matching the shell hook on the same inputs: the last `companies/` segment of a path or working directory counts even when its name is empty, a repository working directory finds `companies/manifest.yaml` above its first `/repos/`, and the manifest line is matched as the hook's awk pattern matched it (a `.` matches any character). The warning is added context the model reads; the shell hook wrote it to stderr. A repository name the port does not model is refused instead of guessed. PreToolUse still runs on the shell dispatcher, because its other hooks are not ported yet.
159
+ - `mandatory-scope-authorizer` and `block-credential-file-read` stay unclaimed. Their native checks were ported from older shell revisions than the ones released since, so switching to them could let through a call the shell guard blocks. For example, the shell scope guard now checks the Skill tool and the native one does not.
160
+ - The new hook core (`core.next`) now does two more PreToolUse Bash guards natively: `core/hooks/PreToolUse/30-Bash--block-no-verify-bulk-add.sh` (blocks `git commit --no-verify` or `-n` and `git push --no-verify`, with the same message and the same `HQ_ALLOW_NO_VERIFY=1` escape) and `hq-monitor-guard` (with the `monitor.enabled` flag on, blocks a foreground `sleep` of 30 s or more, a sleep loop, `gh run watch` or `gh pr checks --watch`, and points at `hq monitor start`). The monitor guard still asks `hq monitor enabled`, as the bash hook did, but starts no bash and holds the call to 3 s and to the hook's time budget. Where the old hooks' answer depended on the shell's locale (a non-ASCII space such as U+0085 or U+00A0, or a control character such as U+001C, that one locale's `[[:space:]]` counts and another's does not), the ports refuse the call with a reason instead of guessing the locale. An input either port does not model is refused with a reason instead of being allowed. `hq-hook capabilities --json` lists both as covered for PreToolUse. PreToolUse stays on the old dispatcher until every hook it runs is covered. Probe cleanup also stays within its reserved budget, kills a leader that left its original process group directly, and refuses the call if the child cannot be reaped in time. The merged-batch coverage regression requires both PT-3 claims as well as unique event keys. Probe cleanup kills TERM-resistant descendants even when the probe leader exits during the grace period.
161
+ - hq-hook: SessionStart check `check-core-yaml-parity` now runs in-process (US-021). A drifted `hqVersion` between `core/core.yaml` and `repos/public/hq-core/core.yaml` is added to the session context, unless `HQ_HOOK_PROFILE` or `HQ_DISABLED_HOOKS` turns the hook off. Unmodelled input is denied. The machine checks in this batch (`check-stale-model-pin`, `check-hq-update`, `check-client-health`, `desktop-memory-leak-check`) stay with the daemon and `hq doctor`; the other SS-3 hooks stay on bash.
162
+ - Wake the hqd listener when the daemon config or sign-in token file changes, so a gate change is checked without waiting for the next shared read.
163
+ - When signals from hot-channel sync fail because Claude Code is signed out, the message now points to the HQ app first (Settings → AI tools, then Connect Claude, or Install Claude if it is not installed yet) and gives `claude auth login` as the fallback. The owner now gets the alert even when the run only had queued documents and landed nothing new, with at most one message per app per hour for one sign-out. Queued documents still run on the next run after sign-in. For bots that run the signals job, `hq bot status` and `hq bot list` check the Claude Code login that signals needs (one local `claude auth status` per call), show it next to the bot's own login with what signals last saw as context, and say how to run the queued documents now after a sign-in.
164
+ - Signals run records now say why a meetings folder was skipped, and a meetings `source.yaml` that cannot be read is reported as an error instead of being skipped quietly.
165
+ - The bot's signals reply in the HQ desktop app now links straight to today's brief with "Open today's brief", in place of the "Create today's brief" button. Replies sent anywhere else keep the button, and "Try now" works as before.
166
+ - The bot's signals reply no longer promises that your brief runs: a failed or partial run now says it does not stop your brief from building, and the "Create today's brief" button asks instead of saying your brief builds next when no brief job is scheduled.
167
+ - When the bot's morning signals reply offers "Try now", tapping it now runs signals once straight away and replies with the result, and a second tap while that run is going gets the same result instead of starting another run. A failed run's reply now says your brief still builds.
168
+ - The sync engine's config no longer carries `requests_per_day` once the engine on the machine is v0.1.29 or later, which has no daily request count. Engines up to v0.1.28 still get the line, and the next sync reconcile removes it from an existing engine home after the engine updates.
169
+ - The native hook engine now reads the company scope guard's kill switch (`hooks.multi-company-session-lock`) from the daemon's state file (hq-core-rust US-009). On a hook-cache miss, for a session whose primary company has a known uid, the native scope guard takes a fresh state file's value instead of always locking to the primary company, and the policy injector takes it instead of calling the flag registry. An explicit `false` from either the hook cache or the state file wins. A missing, stale, future-dated, corrupt, untrusted, other-scope or switched-off state file changes nothing: the scope guard keeps its stricter answer and the injector keeps its cold read.
170
+ - The published package no longer ships release or test tooling: `scripts/hook-engine-manifest.mjs` (run by prepack and postpublish in the source tree), `scripts/mesh-daemon-if-stale.mjs` (no longer run since the postinstall stopped calling it), and compiled test helpers under `dist/` (`__fixtures__`, `__testing__`, `lib/test-utils`, `*.test-d.*`, and the decisions and fingerprint test data). A new e2e test packs the package and fails if tooling ships or if a runtime file (main, bins, the postinstall script, runtime assets) is missing. What the installed CLI does is unchanged.
171
+ - `hq core hook-registration-plan --host agents-v2` now plans the hq-agents-v2 bot runtime's hooks (US-040). An event gets the native `hq-hook run --host agents-v2` entry only when core.next is on, no kill switch is set, the pinned engine passes its checks and advertises `agents-v2`, and it covers every old hook for the event, including `agents-v2-adapter:<Event>`. Otherwise the event keeps the shell adapter. The native entry's `--fleet-fallback` must be exactly `[<abs bash|sh>, <abs>/hq-agents-v2-hook-adapter.sh, <event>]`; any other fallback keeps the adapter. Other hosts are refused. A fallback that is not a list of strings now stops the plan with an error instead of crashing.
172
+ - `hq doctor` reports agents-v2 profiles: native or shell per event, with the host in the message (`pre_verify=native (agents-v2)`) and in `details.hosts`. It validates native agents-v2 entries against the agents-v2 fallback and coverage, recognizes `hq-agents-v2-hook-adapter.sh` as shell, reports `shell fallback` under a kill switch, and fails duplicate entries and events registered for both Fleet hosts. fleet-local reporting is unchanged.
173
+ - hq-hook: `capabilities --json` now lists `agents-v2` in `registration_hosts`. The native agents-v2 host now applies the adapter's `HQ_AGENTS_V2_UNKNOWN_TOOL` setting. Any value other than unset, empty or `warn` refuses a `pre_tool_call` for a tool with no HQ name. Before this change the native host let such a tool through where the adapter refused it.
174
+
5
175
  ## [5.345.219] — 2026-11-15
6
176
  - Add `hq agents create-external` so an admin can mint an external bot and
7
177
  a one-time enrollment code from the CLI. Console Add bot is hosted-only
@@ -539,6 +539,10 @@ export declare const COMMAND_CATALOG: readonly [{
539
539
  readonly flags: "--branch";
540
540
  readonly description: "Follow the source branch instead of SHA-pinning";
541
541
  readonly hidden: false;
542
+ }, {
543
+ readonly flags: "--registry";
544
+ readonly description: "Update installed registry packages instead (same as `hq packages update [slug]`; [name] is the package slug)";
545
+ readonly hidden: false;
542
546
  }];
543
547
  readonly subcommands: readonly [];
544
548
  }, {
@@ -670,6 +674,10 @@ export declare const COMMAND_CATALOG: readonly [{
670
674
  readonly flags: "--branch";
671
675
  readonly description: "Follow the source branch instead of SHA-pinning";
672
676
  readonly hidden: false;
677
+ }, {
678
+ readonly flags: "--registry";
679
+ readonly description: "Update installed registry packages instead (same as `hq packages update [slug]`; [name] is the package slug)";
680
+ readonly hidden: false;
673
681
  }];
674
682
  readonly subcommands: readonly [];
675
683
  }, {
@@ -1464,6 +1472,10 @@ export declare const COMMAND_CATALOG: readonly [{
1464
1472
  readonly flags: "--company <slug>";
1465
1473
  readonly description: "Also report this company's billing and usage notice";
1466
1474
  readonly hidden: false;
1475
+ }, {
1476
+ readonly flags: "--check";
1477
+ readonly description: "Exit 1 when there is no usable session, like `hq auth status`";
1478
+ readonly hidden: false;
1467
1479
  }];
1468
1480
  readonly subcommands: readonly [];
1469
1481
  }, {
@@ -9804,6 +9816,22 @@ export declare const COMMAND_CATALOG: readonly [{
9804
9816
  readonly hidden: false;
9805
9817
  }];
9806
9818
  readonly subcommands: readonly [];
9819
+ }, {
9820
+ readonly name: "stop-autosave";
9821
+ readonly description: "Drain the typed Stop autosave job";
9822
+ readonly aliases: readonly [];
9823
+ readonly hidden: false;
9824
+ readonly helpOption: true;
9825
+ readonly helpCommand: false;
9826
+ readonly usage: "[options]";
9827
+ readonly helpText: readonly [];
9828
+ readonly arguments: readonly [];
9829
+ readonly options: readonly [{
9830
+ readonly flags: "--session-id <id>";
9831
+ readonly description: "";
9832
+ readonly hidden: false;
9833
+ }];
9834
+ readonly subcommands: readonly [];
9807
9835
  }, {
9808
9836
  readonly name: "hook-registration-plan";
9809
9837
  readonly description: "Print the offline fleet hook registration plan without changing the installation";
@@ -12399,6 +12427,78 @@ export declare const COMMAND_CATALOG: readonly [{
12399
12427
  readonly hidden: false;
12400
12428
  }];
12401
12429
  readonly subcommands: readonly [];
12430
+ }, {
12431
+ readonly name: "probe";
12432
+ readonly description: "Run access probes by name and print them as hq-environment-profile.v1 readings.access entries: company vault grant, repos, secrets (exists by HEAD, and resolvable inside hq secrets exec; the value is never printed or stored), integrations and local data (exit 1 when a probe does not pass)";
12433
+ readonly aliases: readonly [];
12434
+ readonly hidden: false;
12435
+ readonly helpOption: true;
12436
+ readonly helpCommand: false;
12437
+ readonly usage: "[options]";
12438
+ readonly helpText: readonly [];
12439
+ readonly arguments: readonly [];
12440
+ readonly options: readonly [{
12441
+ readonly flags: "--company <slug>";
12442
+ readonly description: "Company whose vault, secrets and integrations are probed (required)";
12443
+ readonly hidden: false;
12444
+ }, {
12445
+ readonly flags: "--repo <name>";
12446
+ readonly description: "Checkout name under repos/private or repos/public; its origin must answer git ls-remote (repeatable, comma-separated)";
12447
+ readonly hidden: false;
12448
+ }, {
12449
+ readonly flags: "--secret <NAME>";
12450
+ readonly description: "Secret name to probe: exists, then resolvable by this identity (repeatable, comma-separated)";
12451
+ readonly hidden: false;
12452
+ }, {
12453
+ readonly flags: "--integration <slug>";
12454
+ readonly description: "App that must be connected and shared with this identity (repeatable, comma-separated)";
12455
+ readonly hidden: false;
12456
+ }, {
12457
+ readonly flags: "--data <path>";
12458
+ readonly description: "Path relative to the HQ root that must be present and not empty (repeatable, comma-separated)";
12459
+ readonly hidden: false;
12460
+ }, {
12461
+ readonly flags: "--agent";
12462
+ readonly description: "Also run hq agent probe (identity, vault, presence, DMs); it sends a self-DM and reports to the console";
12463
+ readonly hidden: false;
12464
+ }, {
12465
+ readonly flags: "--write-profile <file>";
12466
+ readonly description: "Store the readings in this profile's readings.access, replacing entries with the same names; the profile must validate afterwards";
12467
+ readonly hidden: false;
12468
+ }, {
12469
+ readonly flags: "--json";
12470
+ readonly description: "Print the result as JSON";
12471
+ readonly hidden: false;
12472
+ }];
12473
+ readonly subcommands: readonly [];
12474
+ }, {
12475
+ readonly name: "match";
12476
+ readonly description: "First ranking of environments for one piece of work: rules R1-R9 with one reason per rejection, then scores (read-only; not a placement, the conductor engine chooses)";
12477
+ readonly aliases: readonly [];
12478
+ readonly hidden: false;
12479
+ readonly helpOption: true;
12480
+ readonly helpCommand: false;
12481
+ readonly usage: "[options]";
12482
+ readonly helpText: readonly [];
12483
+ readonly arguments: readonly [];
12484
+ readonly options: readonly [{
12485
+ readonly flags: "--requirements <file>";
12486
+ readonly description: "hq-work-requirements.v1 JSON file";
12487
+ readonly hidden: false;
12488
+ }, {
12489
+ readonly flags: "--profiles <dir>";
12490
+ readonly description: "Directory of hq-environment-profile.v1 JSON files (every *.json in it, not recursive)";
12491
+ readonly hidden: false;
12492
+ }, {
12493
+ readonly flags: "--now <date-time>";
12494
+ readonly description: "Match time every reading is aged against (RFC 3339; default: the current time)";
12495
+ readonly hidden: false;
12496
+ }, {
12497
+ readonly flags: "--json";
12498
+ readonly description: "Print the result as JSON";
12499
+ readonly hidden: false;
12500
+ }];
12501
+ readonly subcommands: readonly [];
12402
12502
  }];
12403
12503
  }, {
12404
12504
  readonly name: "doctor";
@@ -12481,6 +12581,14 @@ export declare const COMMAND_CATALOG: readonly [{
12481
12581
  readonly flags: "--json";
12482
12582
  readonly description: "Emit the counts as JSON.";
12483
12583
  readonly hidden: false;
12584
+ }, {
12585
+ readonly flags: "--duplicates";
12586
+ readonly description: "List only the duplicate commands and their runs in the window; exit 0 when none ran, 1 when one did, 2 when the count cannot be read.";
12587
+ readonly hidden: false;
12588
+ }, {
12589
+ readonly flags: "--since <window>";
12590
+ readonly description: "Window for --duplicates: Nh or Nd, at most 29d (default 1d). Counts are per UTC date, so whole dates are counted.";
12591
+ readonly hidden: false;
12484
12592
  }];
12485
12593
  readonly subcommands: readonly [];
12486
12594
  }];
@@ -18970,7 +19078,7 @@ export declare const COMMAND_CATALOG: readonly [{
18970
19078
  }];
18971
19079
  }, {
18972
19080
  readonly name: "status";
18973
- readonly description: "Show sync ownership, heartbeat, last pass and log path";
19081
+ readonly description: "Show sync ownership, heartbeat, last pass and log path (--local: the local sync journal summary)";
18974
19082
  readonly aliases: readonly [];
18975
19083
  readonly hidden: false;
18976
19084
  readonly helpOption: true;
@@ -18982,6 +19090,22 @@ export declare const COMMAND_CATALOG: readonly [{
18982
19090
  readonly flags: "--json";
18983
19091
  readonly description: "Print machine-readable JSON";
18984
19092
  readonly hidden: false;
19093
+ }, {
19094
+ readonly flags: "--local";
19095
+ readonly description: "Show the local sync journal summary (what `hq sync status` prints) instead of the daemon's state";
19096
+ readonly hidden: false;
19097
+ }, {
19098
+ readonly flags: "--hq-root <path>";
19099
+ readonly description: "With --local: local HQ tree root";
19100
+ readonly hidden: false;
19101
+ }, {
19102
+ readonly flags: "--company <slug>";
19103
+ readonly description: "With --local: show only this company's journal (company slug)";
19104
+ readonly hidden: false;
19105
+ }, {
19106
+ readonly flags: "--all";
19107
+ readonly description: "With --local: list every local-only file instead of the first 20 per company";
19108
+ readonly hidden: false;
18985
19109
  }];
18986
19110
  readonly subcommands: readonly [];
18987
19111
  }, {
@@ -19097,8 +19221,24 @@ export declare const COMMAND_CATALOG: readonly [{
19097
19221
  readonly arguments: readonly [];
19098
19222
  readonly options: readonly [];
19099
19223
  readonly subcommands: readonly [{
19224
+ readonly name: "list";
19225
+ readonly description: "List every membership's company and current sync mode (same table as `hq sync mode --show`)";
19226
+ readonly aliases: readonly [];
19227
+ readonly hidden: false;
19228
+ readonly helpOption: true;
19229
+ readonly helpCommand: false;
19230
+ readonly usage: "[options]";
19231
+ readonly helpText: readonly [];
19232
+ readonly arguments: readonly [];
19233
+ readonly options: readonly [{
19234
+ readonly flags: "--json";
19235
+ readonly description: "Print machine-readable JSON";
19236
+ readonly hidden: false;
19237
+ }];
19238
+ readonly subcommands: readonly [];
19239
+ }, {
19100
19240
  readonly name: "get";
19101
- readonly description: "Read a company's current all/shared sync mode";
19241
+ readonly description: "Read a company's current sync mode";
19102
19242
  readonly aliases: readonly [];
19103
19243
  readonly hidden: false;
19104
19244
  readonly helpOption: true;
@@ -19119,7 +19259,7 @@ export declare const COMMAND_CATALOG: readonly [{
19119
19259
  readonly subcommands: readonly [];
19120
19260
  }, {
19121
19261
  readonly name: "set";
19122
- readonly description: "Set a company's sync mode to all or shared";
19262
+ readonly description: "Set a company's sync mode to shared, all or custom";
19123
19263
  readonly aliases: readonly [];
19124
19264
  readonly hidden: false;
19125
19265
  readonly helpOption: true;
@@ -19138,6 +19278,10 @@ export declare const COMMAND_CATALOG: readonly [{
19138
19278
  readonly description: "";
19139
19279
  }];
19140
19280
  readonly options: readonly [{
19281
+ readonly flags: "--paths <csv>";
19282
+ readonly description: "Comma-separated allowed prefixes (required when mode is 'custom')";
19283
+ readonly hidden: false;
19284
+ }, {
19141
19285
  readonly flags: "--json";
19142
19286
  readonly description: "Print machine-readable JSON";
19143
19287
  readonly hidden: false;
@@ -20178,6 +20322,15 @@ export declare const COMMAND_CATALOG: readonly [{
20178
20322
  readonly flags: "--provider <provider>";
20179
20323
  readonly description: "Brain: claude, codex (or chatgpt) or grok";
20180
20324
  readonly hidden: false;
20325
+ }, {
20326
+ readonly flags: "--kind <kind>";
20327
+ readonly description: "The bot the answer is for: personal (default) or company";
20328
+ readonly hidden: false;
20329
+ }, {
20330
+ readonly flags: "--company <slug>";
20331
+ readonly description: "The company of a company bot (repeatable); a Grok login is reused only within one company";
20332
+ readonly hidden: false;
20333
+ readonly defaultValue: readonly [];
20181
20334
  }, {
20182
20335
  readonly flags: "--json";
20183
20336
  readonly description: "Print machine-readable JSON: { provider, signedIn, source }";
@@ -20198,6 +20351,15 @@ export declare const COMMAND_CATALOG: readonly [{
20198
20351
  readonly flags: "--provider <provider>";
20199
20352
  readonly description: "Brain: codex (or chatgpt) or grok";
20200
20353
  readonly hidden: false;
20354
+ }, {
20355
+ readonly flags: "--kind <kind>";
20356
+ readonly description: "The bot the sign-in is for: personal (default) or company";
20357
+ readonly hidden: false;
20358
+ }, {
20359
+ readonly flags: "--company <slug>";
20360
+ readonly description: "The company of a company bot (repeatable)";
20361
+ readonly hidden: false;
20362
+ readonly defaultValue: readonly [];
20201
20363
  }, {
20202
20364
  readonly flags: "--json";
20203
20365
  readonly description: "Print one JSON line per event (device code, messages) and a final result";
@@ -20315,6 +20477,10 @@ export declare const COMMAND_CATALOG: readonly [{
20315
20477
  readonly flags: "--effort <level>";
20316
20478
  readonly description: "Thinking level (claude low|medium|high|xhigh|max; codex minimal|low|medium|high|xhigh; grok low|medium|high|xhigh), or default (medium)";
20317
20479
  readonly hidden: false;
20480
+ }, {
20481
+ readonly flags: "--signals-runtime <bot|claude>";
20482
+ readonly description: "Where hot-channel signals run: bot (the Executive Codex bot's own Codex) or claude (Claude Code, the default). Set on the Executive bot; local to this computer, from the next sync";
20483
+ readonly hidden: false;
20318
20484
  }, {
20319
20485
  readonly flags: "--json";
20320
20486
  readonly description: "Print machine-readable JSON";