@indigoai-us/hq-cli 5.345.246 → 5.345.248

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 (256) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/assets/lanes-hooks/hq-lanes-drain.sh +1 -1
  3. package/contracts/host-canary-release.json +14 -0
  4. package/dist/command-catalog.generated.d.ts +1116 -3
  5. package/dist/command-catalog.generated.js +1373 -3
  6. package/dist/command-registration-plan.d.ts +6 -0
  7. package/dist/command-registration-plan.js +1 -0
  8. package/dist/commands/install-global.d.ts +15 -0
  9. package/dist/commands/install-global.js +98 -4
  10. package/dist/commands/lanes-hold.js +7 -7
  11. package/dist/commands/lanes-resume.js +2 -2
  12. package/dist/commands/lanes-review.js +1 -1
  13. package/dist/commands/lanes-session-start.d.ts +1 -1
  14. package/dist/commands/lanes-session-start.js +3 -3
  15. package/dist/commands/lanes-shared.d.ts +1 -1
  16. package/dist/commands/lanes.d.ts +2 -2
  17. package/dist/commands/lanes.js +50 -50
  18. package/dist/commands/mcp-registration.d.ts +17 -0
  19. package/dist/commands/mcp-registration.js +119 -0
  20. package/dist/commands/mesh.d.ts +25 -0
  21. package/dist/commands/mesh.js +48 -8
  22. package/dist/commands/ontology-graph.d.ts +62 -0
  23. package/dist/commands/ontology-graph.js +439 -0
  24. package/dist/commands/pkg-install.js +1 -1
  25. package/dist/commands/reindex.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/lanes-monitor-check-argv.d.ts +1 -1
  28. package/dist/lanes-monitor-check-argv.js +1 -1
  29. package/dist/lanes-monitor-check-fast.d.ts +1 -1
  30. package/dist/lanes-monitor-check-fast.js +1 -1
  31. package/dist/lanes-session-start-argv.d.ts +1 -1
  32. package/dist/lanes-session-start-argv.js +1 -1
  33. package/dist/lib/capacity/sign-in.d.ts +1 -1
  34. package/dist/lib/capacity/sign-in.js +1 -1
  35. package/dist/lib/daemon/hook-requests-conduct-link.js +2 -2
  36. package/dist/lib/daemon/lanes-monitor-state.d.ts +2 -2
  37. package/dist/lib/daemon/lanes-monitor-state.js +2 -2
  38. package/dist/lib/daemon/merge-sections.d.ts +3 -3
  39. package/dist/lib/daemon/merge-sections.js +7 -7
  40. package/dist/lib/daemon/remote-control-pools.js +1 -1
  41. package/dist/lib/daemon/run.js +1 -1
  42. package/dist/lib/daemon/state-file.d.ts +1 -1
  43. package/dist/lib/daemon/state-file.js +1 -1
  44. package/dist/lib/doctor/checks/antigravity-wiring.d.ts +21 -0
  45. package/dist/lib/doctor/checks/antigravity-wiring.js +75 -0
  46. package/dist/lib/doctor/checks/anywhere.js +30 -0
  47. package/dist/lib/doctor/checks/runtime-probe.js +13 -0
  48. package/dist/lib/doctor/platform.d.ts +1 -1
  49. package/dist/lib/doctor/platform.js +5 -0
  50. package/dist/lib/doctor/registry.js +3 -0
  51. package/dist/lib/flag-snapshot-file.d.ts +2 -0
  52. package/dist/lib/flag-snapshot-file.js +118 -48
  53. package/dist/lib/hook-engine/canary-gate.d.ts +57 -3
  54. package/dist/lib/hook-engine/canary-gate.js +138 -6
  55. package/dist/lib/hook-engine/coverage.d.ts +91 -0
  56. package/dist/lib/hook-engine/coverage.js +184 -0
  57. package/dist/lib/hot-channels/graph-context.d.ts +105 -0
  58. package/dist/lib/hot-channels/graph-context.js +377 -0
  59. package/dist/lib/hot-channels/signals-pass.js +27 -1
  60. package/dist/lib/install/antigravity-targets.d.ts +39 -0
  61. package/dist/lib/install/antigravity-targets.js +122 -0
  62. package/dist/lib/lanes/claude-credential.d.ts +1 -1
  63. package/dist/lib/lanes/claude-credential.js +1 -1
  64. package/dist/lib/lanes/delivery-core.d.ts +1 -1
  65. package/dist/lib/lanes/delivery-core.js +1 -1
  66. package/dist/lib/lanes/delivery.d.ts +10 -10
  67. package/dist/lib/lanes/delivery.js +8 -8
  68. package/dist/lib/lanes/dropbox.d.ts +1 -1
  69. package/dist/lib/lanes/dropbox.js +1 -1
  70. package/dist/lib/lanes/hooks-install.js +2 -2
  71. package/dist/lib/lanes/index.d.ts +1 -1
  72. package/dist/lib/lanes/index.js +1 -1
  73. package/dist/lib/lanes/monitor.js +1 -1
  74. package/dist/lib/lanes/quota-notice.js +1 -1
  75. package/dist/lib/lanes/quota.d.ts +1 -1
  76. package/dist/lib/lanes/quota.js +1 -1
  77. package/dist/lib/lanes/repo-merge-hold.d.ts +2 -2
  78. package/dist/lib/lanes/repo-merge-hold.js +2 -2
  79. package/dist/lib/lanes/spawn.d.ts +4 -4
  80. package/dist/lib/lanes/spawn.js +5 -5
  81. package/dist/lib/mesh/live/company-flag-refresh.d.ts +61 -0
  82. package/dist/lib/mesh/live/company-flag-refresh.js +159 -0
  83. package/dist/lib/mesh/live/company-reporting-gaps.d.ts +61 -0
  84. package/dist/lib/mesh/live/company-reporting-gaps.js +238 -0
  85. package/dist/lib/mesh/live/daemon/duplicate-unit.d.ts +156 -0
  86. package/dist/lib/mesh/live/daemon/duplicate-unit.js +616 -0
  87. package/dist/lib/mesh/live/daemon/run.d.ts +13 -0
  88. package/dist/lib/mesh/live/daemon/run.js +35 -2
  89. package/dist/lib/mesh/live/direct-drain.js +1 -1
  90. package/dist/lib/mesh/live/emit.d.ts +3 -0
  91. package/dist/lib/mesh/live/emit.js +32 -9
  92. package/dist/lib/mesh/live/flush.d.ts +3 -0
  93. package/dist/lib/mesh/live/flush.js +115 -32
  94. package/dist/lib/mesh/live/liveness-carry.d.ts +1 -1
  95. package/dist/lib/mesh/live/liveness-carry.js +1 -1
  96. package/dist/lib/mesh/live/reporting-privacy.d.ts +119 -3
  97. package/dist/lib/mesh/live/reporting-privacy.js +235 -11
  98. package/dist/lib/mesh/live/spool.d.ts +17 -2
  99. package/dist/lib/mesh/live/spool.js +22 -6
  100. package/dist/lib/ontology-graph/legacy/coverage.d.ts +67 -0
  101. package/dist/lib/ontology-graph/legacy/coverage.js +192 -0
  102. package/dist/lib/ontology-graph/legacy/index.d.ts +199 -0
  103. package/dist/lib/ontology-graph/legacy/index.js +1150 -0
  104. package/dist/lib/ontology-graph/legacy/parse.d.ts +49 -0
  105. package/dist/lib/ontology-graph/legacy/parse.js +126 -0
  106. package/dist/lib/ontology-graph/legacy/report.d.ts +14 -0
  107. package/dist/lib/ontology-graph/legacy/report.js +254 -0
  108. package/dist/lib/ontology-graph/legacy/verb-map.d.ts +35 -0
  109. package/dist/lib/ontology-graph/legacy/verb-map.js +84 -0
  110. package/dist/lib/ontology-graph/lint/checks.d.ts +140 -0
  111. package/dist/lib/ontology-graph/lint/checks.js +717 -0
  112. package/dist/lib/ontology-graph/lint/coverage.d.ts +106 -0
  113. package/dist/lib/ontology-graph/lint/coverage.js +241 -0
  114. package/dist/lib/ontology-graph/lint/daily-job.d.ts +259 -0
  115. package/dist/lib/ontology-graph/lint/daily-job.js +595 -0
  116. package/dist/lib/ontology-graph/lint/index.d.ts +65 -0
  117. package/dist/lib/ontology-graph/lint/index.js +176 -0
  118. package/dist/lib/ontology-graph/model/files.d.ts +20 -0
  119. package/dist/lib/ontology-graph/model/files.js +89 -0
  120. package/dist/lib/ontology-graph/model/index.d.ts +65 -0
  121. package/dist/lib/ontology-graph/model/index.js +100 -0
  122. package/dist/lib/ontology-graph/model/pass-tasks.d.ts +156 -0
  123. package/dist/lib/ontology-graph/model/pass-tasks.js +345 -0
  124. package/dist/lib/ontology-graph/model/pass.d.ts +109 -0
  125. package/dist/lib/ontology-graph/model/pass.js +958 -0
  126. package/dist/lib/ontology-graph/model/runner.d.ts +50 -0
  127. package/dist/lib/ontology-graph/model/runner.js +160 -0
  128. package/dist/lib/ontology-graph/model/step.d.ts +195 -0
  129. package/dist/lib/ontology-graph/model/step.js +523 -0
  130. package/dist/lib/ontology-graph/model/tasks.d.ts +183 -0
  131. package/dist/lib/ontology-graph/model/tasks.js +349 -0
  132. package/dist/lib/ontology-graph/not-implemented.d.ts +5 -0
  133. package/dist/lib/ontology-graph/not-implemented.js +8 -0
  134. package/dist/lib/ontology-graph/org/compare.d.ts +28 -0
  135. package/dist/lib/ontology-graph/org/compare.js +239 -0
  136. package/dist/lib/ontology-graph/org/derive.d.ts +65 -0
  137. package/dist/lib/ontology-graph/org/derive.js +352 -0
  138. package/dist/lib/ontology-graph/org/index.d.ts +73 -0
  139. package/dist/lib/ontology-graph/org/index.js +513 -0
  140. package/dist/lib/ontology-graph/org/load.d.ts +31 -0
  141. package/dist/lib/ontology-graph/org/load.js +476 -0
  142. package/dist/lib/ontology-graph/org/role.d.ts +38 -0
  143. package/dist/lib/ontology-graph/org/role.js +268 -0
  144. package/dist/lib/ontology-graph/org/structure.d.ts +63 -0
  145. package/dist/lib/ontology-graph/org/structure.js +437 -0
  146. package/dist/lib/ontology-graph/org/text.d.ts +95 -0
  147. package/dist/lib/ontology-graph/org/text.js +315 -0
  148. package/dist/lib/ontology-graph/org/types.d.ts +452 -0
  149. package/dist/lib/ontology-graph/org/types.js +80 -0
  150. package/dist/lib/ontology-graph/pages/index.d.ts +64 -0
  151. package/dist/lib/ontology-graph/pages/index.js +193 -0
  152. package/dist/lib/ontology-graph/pages/render.d.ts +142 -0
  153. package/dist/lib/ontology-graph/pages/render.js +682 -0
  154. package/dist/lib/ontology-graph/proposals/apply.d.ts +109 -0
  155. package/dist/lib/ontology-graph/proposals/apply.js +468 -0
  156. package/dist/lib/ontology-graph/proposals/group.d.ts +63 -0
  157. package/dist/lib/ontology-graph/proposals/group.js +232 -0
  158. package/dist/lib/ontology-graph/proposals/index.d.ts +173 -0
  159. package/dist/lib/ontology-graph/proposals/index.js +474 -0
  160. package/dist/lib/ontology-graph/proposals/model.d.ts +162 -0
  161. package/dist/lib/ontology-graph/proposals/model.js +196 -0
  162. package/dist/lib/ontology-graph/proposals/org-chart.d.ts +82 -0
  163. package/dist/lib/ontology-graph/proposals/org-chart.js +340 -0
  164. package/dist/lib/ontology-graph/read/brief.d.ts +26 -0
  165. package/dist/lib/ontology-graph/read/brief.js +251 -0
  166. package/dist/lib/ontology-graph/read/graph-index.d.ts +76 -0
  167. package/dist/lib/ontology-graph/read/graph-index.js +198 -0
  168. package/dist/lib/ontology-graph/read/index.d.ts +59 -0
  169. package/dist/lib/ontology-graph/read/index.js +792 -0
  170. package/dist/lib/ontology-graph/read/member.d.ts +7 -0
  171. package/dist/lib/ontology-graph/read/member.js +34 -0
  172. package/dist/lib/ontology-graph/read/names.d.ts +44 -0
  173. package/dist/lib/ontology-graph/read/names.js +292 -0
  174. package/dist/lib/ontology-graph/read/reader-setting.d.ts +19 -0
  175. package/dist/lib/ontology-graph/read/reader-setting.js +62 -0
  176. package/dist/lib/ontology-graph/read/test-graph.d.ts +37 -0
  177. package/dist/lib/ontology-graph/read/test-graph.js +150 -0
  178. package/dist/lib/ontology-graph/replay/buffered-store.d.ts +33 -0
  179. package/dist/lib/ontology-graph/replay/buffered-store.js +50 -0
  180. package/dist/lib/ontology-graph/replay/config.d.ts +41 -0
  181. package/dist/lib/ontology-graph/replay/config.js +105 -0
  182. package/dist/lib/ontology-graph/replay/engine.d.ts +100 -0
  183. package/dist/lib/ontology-graph/replay/engine.js +1174 -0
  184. package/dist/lib/ontology-graph/replay/extractors.d.ts +59 -0
  185. package/dist/lib/ontology-graph/replay/extractors.js +1555 -0
  186. package/dist/lib/ontology-graph/replay/index.d.ts +90 -0
  187. package/dist/lib/ontology-graph/replay/index.js +220 -0
  188. package/dist/lib/ontology-graph/replay/listing-manifest.d.ts +66 -0
  189. package/dist/lib/ontology-graph/replay/listing-manifest.js +242 -0
  190. package/dist/lib/ontology-graph/replay/member.d.ts +19 -0
  191. package/dist/lib/ontology-graph/replay/member.js +65 -0
  192. package/dist/lib/ontology-graph/replay/mentions.d.ts +58 -0
  193. package/dist/lib/ontology-graph/replay/mentions.js +239 -0
  194. package/dist/lib/ontology-graph/replay/readers.d.ts +98 -0
  195. package/dist/lib/ontology-graph/replay/readers.js +1251 -0
  196. package/dist/lib/ontology-graph/replay/rules.d.ts +127 -0
  197. package/dist/lib/ontology-graph/replay/rules.js +374 -0
  198. package/dist/lib/ontology-graph/replay/scope.d.ts +35 -0
  199. package/dist/lib/ontology-graph/replay/scope.js +115 -0
  200. package/dist/lib/ontology-graph/replay/transcripts.d.ts +39 -0
  201. package/dist/lib/ontology-graph/replay/transcripts.js +224 -0
  202. package/dist/lib/ontology-graph/replay/util.d.ts +55 -0
  203. package/dist/lib/ontology-graph/replay/util.js +256 -0
  204. package/dist/lib/ontology-graph/resolve/entity-index.d.ts +159 -0
  205. package/dist/lib/ontology-graph/resolve/entity-index.js +652 -0
  206. package/dist/lib/ontology-graph/resolve/index.d.ts +113 -0
  207. package/dist/lib/ontology-graph/resolve/index.js +214 -0
  208. package/dist/lib/ontology-graph/resolve/machine.d.ts +34 -0
  209. package/dist/lib/ontology-graph/resolve/machine.js +95 -0
  210. package/dist/lib/ontology-graph/resolve/normalize.d.ts +35 -0
  211. package/dist/lib/ontology-graph/resolve/normalize.js +124 -0
  212. package/dist/lib/ontology-graph/resolve/org-chart.d.ts +107 -0
  213. package/dist/lib/ontology-graph/resolve/org-chart.js +578 -0
  214. package/dist/lib/ontology-graph/resolve/org-layer.d.ts +78 -0
  215. package/dist/lib/ontology-graph/resolve/org-layer.js +159 -0
  216. package/dist/lib/ontology-graph/resolve/org-seed.d.ts +141 -0
  217. package/dist/lib/ontology-graph/resolve/org-seed.js +631 -0
  218. package/dist/lib/ontology-graph/resolve/org-sources.d.ts +165 -0
  219. package/dist/lib/ontology-graph/resolve/org-sources.js +634 -0
  220. package/dist/lib/ontology-graph/resolve/roster.d.ts +76 -0
  221. package/dist/lib/ontology-graph/resolve/roster.js +226 -0
  222. package/dist/lib/ontology-graph/resolve/seed.d.ts +267 -0
  223. package/dist/lib/ontology-graph/resolve/seed.js +1198 -0
  224. package/dist/lib/ontology-graph/resolve/upsert.d.ts +58 -0
  225. package/dist/lib/ontology-graph/resolve/upsert.js +139 -0
  226. package/dist/lib/ontology-graph/resolve/writer.d.ts +128 -0
  227. package/dist/lib/ontology-graph/resolve/writer.js +351 -0
  228. package/dist/lib/ontology-graph/schema/authority.d.ts +73 -0
  229. package/dist/lib/ontology-graph/schema/authority.js +157 -0
  230. package/dist/lib/ontology-graph/schema/default-schema.d.ts +10 -0
  231. package/dist/lib/ontology-graph/schema/default-schema.js +242 -0
  232. package/dist/lib/ontology-graph/schema/grammar.d.ts +57 -0
  233. package/dist/lib/ontology-graph/schema/grammar.js +409 -0
  234. package/dist/lib/ontology-graph/schema/index.d.ts +12 -0
  235. package/dist/lib/ontology-graph/schema/index.js +10 -0
  236. package/dist/lib/ontology-graph/schema/validate.d.ts +13 -0
  237. package/dist/lib/ontology-graph/schema/validate.js +132 -0
  238. package/dist/lib/ontology-graph/store/files.d.ts +34 -0
  239. package/dist/lib/ontology-graph/store/files.js +207 -0
  240. package/dist/lib/ontology-graph/store/fs.d.ts +30 -0
  241. package/dist/lib/ontology-graph/store/fs.js +101 -0
  242. package/dist/lib/ontology-graph/store/graph-store.d.ts +14 -0
  243. package/dist/lib/ontology-graph/store/graph-store.js +520 -0
  244. package/dist/lib/ontology-graph/store/index.d.ts +18 -0
  245. package/dist/lib/ontology-graph/store/index.js +15 -0
  246. package/dist/lib/ontology-graph/store/ingest.d.ts +37 -0
  247. package/dist/lib/ontology-graph/store/ingest.js +323 -0
  248. package/dist/lib/ontology-graph/store/paths.d.ts +114 -0
  249. package/dist/lib/ontology-graph/store/paths.js +232 -0
  250. package/dist/lib/ontology-graph/types.d.ts +1183 -0
  251. package/dist/lib/ontology-graph/types.js +131 -0
  252. package/dist/lib/secret-scan/gitleaks-rules.generated.js +1 -1
  253. package/dist/utils/frontmatter.d.ts +14 -0
  254. package/dist/utils/frontmatter.js +18 -0
  255. package/dist/utils/interactive-caller.js +1 -1
  256. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -2,6 +2,69 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.345.248] — 2026-11-23
6
+ - Internal: The `e2e (node 22)` gate no longer fails after two minutes while `e2e cli build artifact` is still queued. GitHub lists the e2e shards only once that build has finished, so the gate's waiter now keeps waiting for them while the build is queued or running, fails at once if the build fails, and starts its two-minute grace for missing shards when the build finishes.
7
+ - Internal: `hq-hook PR tests` now also runs when a draft pull request is marked ready for review. Its jobs skip on drafts, so a pull request opened as a draft and marked ready without a later push never ran the hook tests, the Grok comparison or the Windows Clippy cross-check.
8
+ - New `hq ontology` commands build and read a local ontology graph for one company:
9
+ sourced facts and typed relationships, rebuilt from the files on this machine
10
+ (`rebuild`, `update`, `lookup`, `neighbors`, `search`, `traverse`, `brief`, `lint`,
11
+ `proposals`, `org-chart`, `daily`, `job`). The graph stays in
12
+ `companies/<slug>/.hq/ontology-graph/` and is never uploaded. Each graph folder
13
+ belongs to one company.
14
+ - New `hq ontology org observed|compare|person <name>` commands show the org as
15
+ observed from behavior in the ontology graph: what each person does by time
16
+ window, who appears to direct whom, who works with whom, working groups and the
17
+ de facto owner of each active project and customer. `compare` prints the stated
18
+ title, manager and listed owner beside the observed ones and reports where they
19
+ differ without changing either. Every line is marked as inferred and the output
20
+ lists the known limits of the derivation. The commands only print;
21
+ `observed --write` also stores the rows, marked as inferred and apart from
22
+ facts, in the company's own graph folder. Nothing is uploaded.
23
+ - Internal: On Windows when the hook bash is not Git for Windows' bash, the native hook engine leaves the nine ports that deny natively there (block-company-git-metadata, block-core-writes, block-env-dump, block-numbered-policy-sibling, block-plans-dir-during-deep-plan, block-repo-edits-use-worktree, detect-secrets, env-file-no-trailing-newline, validate-policy-frontmatter) to the bash hooks; the core.next dispatcher uses the same Windows-aware script revisions as the bridge; and a `hook-engine-port-<id>-v2` flag key now counts for its port (the stronger of the two modes wins; older engines ignore it).
24
+ - Changed: on Apple-silicon Macs, this release ships a passing Claude Code host canary for its own hq-hook build, so with core.next on, `hq reindex` can move Claude Code to the new hook engine on HQ roots whose hq-core gate matches (hq-core 16.0.50). Codex, Grok Build, Intel Macs and Linux stay on the old hooks in this release.
25
+ - Native hooks now accept ordinary Git diffs with supported global options, revision ranges and exclusion pathspecs, including after Python environment activation or Rust formatting. Large ASCII pathspec listings finish faster. Machines on hq-core 16.0.51-beta.44 now get the native credential guard instead of the bash fallback, with that release's template .env names (such as config.example.env) allowed.
26
+ - On Linux machines that run Work Mesh from the system unit
27
+ `/etc/systemd/system/hq-mesh-daemon.service`, `hq mesh daemon run` now removes
28
+ a leftover per-user `hq-mesh-daemon.service` that kept restarting next to it.
29
+ Only the system unit's daemon removes it, after holding the user unit's own
30
+ daemon lock (`$HOME/.hq/work-mesh/daemon` or `$HQ_WORK_MESH_ROOT/daemon`, as
31
+ the user unit's environment sets them) for 30 seconds with the system unit
32
+ still running. When that environment cannot be worked out, nothing is
33
+ removed. It first
34
+ copies the unit to `hq-mesh-daemon.service.removed.bak` in that daemon folder
35
+ and flushes it to disk (to restore it, copy it back to
36
+ `~/.config/systemd/user/hq-mesh-daemon.service`), and records the result in
37
+ `duplicate-unit.json` there. If a file cannot be deleted, the result is
38
+ recorded as `partial-removal` and the removal is retried. A daemon started
39
+ by the user unit never deletes anything: it exits only while the system
40
+ unit's main process holds this home's lock, and otherwise starts as before.
41
+ Nothing happens unless systemd reports that the system unit runs as the
42
+ same user, or when the system unit has failed.
43
+ - Internal: the release workflow checks a shipped host canary file against the tag's version (`scripts/release-canary.mjs --check --version`), because the tagged commit's package.json still holds the previous release at that step. Without the flag the check reads package.json as before.
44
+ - Changed: with core.next on, `hq reindex` can now move Claude Code, Codex and Grok Build to the new hook engine on a normal machine. Each release ships the host canary runs we made for its exact hq-hook builds, per host, and the gate accepts one when the engine build and your HQ root's hq-core gate match. A canary you ran yourself on the same build still decides first. Windows stays on the old hooks. A release that ships a canary file cannot be published unless that file is current and passing.
45
+ - Changed: `hq scan secrets` now skips a detected value only when it is exactly `true`, `false` or `null`. Before, it also skipped any value that contained `false`, started with `true` or ended with `null`, so a scan can now report findings it did not report before.
46
+ - Fixed: user-visible messages and help now name `hq runners`; `hq lanes` still works as an alias.
47
+ - Work Mesh: a person setting that cannot be read (a timeout or a missing sign-in) no longer counts as HQ Anywhere off, so it no longer records when HQ Anywhere was first seen off. With HQ Anywhere off, a company session's events from before that time are parked once instead of staying in the queue, so `hq daemon doctor` no longer reports the queue as stuck. Events held while company reporting was not required for a company are not sent when it becomes required.
48
+ - Work Mesh: the mesh daemon now keeps the flag snapshot of every company with recent company sessions on the computer fresh, refreshing one that is missing or more than 6 hours old every 15 minutes, so company reporting settings reach sessions started from the desktop app or after a day without a company command.
49
+ - Flag snapshots: the CLI and the native hook engine now read a snapshot the same way. A value that is not true or false no longer hides the other flags in the snapshot, the newer of the main and fallback copies is used on every platform, and both accept only one RFC 3339 time format for when the snapshot was fetched.
50
+ - Work Mesh: with HQ Anywhere off, parked events are dropped after 30 days only while the setting is confirmed off. Events parked while the person setting could not be read are not aged then, and once HQ Anywhere is confirmed off their 30 days start from that point.
51
+ - Work Mesh: a fleet agent's session is exempt from the company enforcement period's cutoff by its own record, not by the environment of the process that sends its events, so a fleet process no longer sends a member's events from the hold and the member's daemon no longer holds a fleet session's events. A daemon that reads the person setting as unread and later as off now restarts the 30 days of the events parked meanwhile without waiting for a restart.
52
+ - Work Mesh: a company "reporting required" snapshot more than a day old still counts as off, but no longer ends the company's enforcement period when it last said on. With HQ Anywhere off, only events from when the snapshot went stale until it is read fresh and on again are held. Events from while it was still fresh are sent as before, so a laptop that was offline for more than a day no longer loses the first day's company events. One flush or emit now reads each session's fleet record once.
53
+ - Work Mesh: the stale stretch is also kept when an hq command refreshes the company snapshot before the mesh daemon has seen it stale (for example, the daemon was not running), so events from that stretch are held too.
54
+ - `hq ontology daily` no longer waits forever on a lock left by a run that is gone:
55
+ a lock older than six hours is taken, and `--force` takes one older than an hour.
56
+ - `hq ontology rebuild` keeps sessions that ran in a worktree folder since removed,
57
+ when git still records that folder as a worktree of one of the company's own repos.
58
+
59
+ ## [5.345.247] — 2026-11-23
60
+ - Added (`hq install --global`, `hq doctor`): Google Antigravity is a supported host. When Antigravity is detected (or with `--runtime antigravity`), HQ writes an always-on global rule at `~/.gemini/config/rules/hq.md` that points at the HQ charter and registers the `hq` MCP server in `~/.gemini/config/mcp_config.json`, keeping other servers. An invalid file, or an existing `hq` entry with a different definition, is left unchanged with a warning and the rest of the install continues. Only the core `hq` server is written; pack and integration MCP servers are not registered in Antigravity. `hq doctor` detects the Antigravity app and reports the rule and MCP wiring. Antigravity hooks are not wired yet.
61
+ - Internal: The `hq-hook PR tests` jobs no longer run on GitHub-hosted runners for same-repo pull requests or the daily run. The test shards and the Grok comparison always take the Mac pool and wait in its queue when the Macs are busy; they no longer wait for the route job, which now only reports the pool's queue and load. The Windows Clippy cross-check runs on the Mac pool too. Fork pull requests, `HQ_MAC_RUNNERS=off` and the `ci-hosted-runners` label keep ubuntu-latest. The Mac load limit is now measured against the Docker VM's CPU count (12 and 14) instead of the container's cap (6), and the queue threshold matches the pool's five runners.
62
+ - Fix `conduct_link::tests::a_timeout_ends_the_whole_process_group` on Linux containers without a zombie-reaping PID 1 by treating `/proc/<pid>/stat` zombie/dead states (`Z`/`X`/`x`) as terminated in `alive()`.
63
+ - Fixed: the native hook packages built for a release tag now report that release in `hq-hook --version`, matching the package version.
64
+ - Fixed: `hq reindex` keeps an event on the shell hook when the HQ root's copy of a script the native hook engine rebuilds for that event (the Work Mesh turn-end hook, the policy enforcement gate, the Codex and Grok adapters, the session scope library) is a revision the engine does not rebuild, so a newer or edited core no longer has those events refused after the switch.
65
+ - Internal: the native model of master-hook's own PreToolUse work now follows hq-core v16.0.50 and covers the Codex adapter as well as Claude Code. It skips hqd's policy check (the native scope guard and policy injector already run for the event), refuses with master-hook's own line when the hook registry cannot be read, and refuses Codex payloads it cannot match to what the adapter gave master-hook. The engine now lists every file the native PreToolUse reproduces at pinned versions (master-hook.sh and the files it sources, the vault-write guard and the credential guard), for the hold that will keep an HQ with other versions on the old dispatcher. Nothing is registered and PreToolUse does not switch on any host yet.
66
+ - Internal: on Grok Build, the repository merge-hold check and the write-guard shadow record now run in the native hook engine instead of the shell hooks. One shared helper rebuilds the payload the hq-core v16.0.50 Grok adapter hands its hooks (the command and path it reads, its session id and working folder), the shadow record is written under the adapter's HQ root, and the merge-hold records are read under that root as well as the one the environment names. A merge whose command the adapter would have read differently from the native engine is refused. Claude Code and Codex are unchanged; local bots (`fleet-local`) and hosted agents (`agents-v2`) keep the shell hooks.
67
+
5
68
  ## [5.345.246] — 2026-11-23
6
69
  - Fixed: the agent MCP tool `hq_dm_send` no longer answers "sent to <recipient>" when the server saved a DM but held it back from the recipient (`delivery: "held"`, for example an agent-to-agent DM stopped by the bot loop breaker). It now returns a warning that the DM was not delivered, with the server's explanation and reason, so the sending agent knows to resend later.
7
70
  - Internal: Pushes to `train/**` branches run the same Linux checks as a merge-queue run, on the self-hosted pools only. This is the trigger for the merge lane's batch train, which tests main plus a batch of ready pull requests before any of them merges.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bash
2
- # hq-lanes-drain.sh — PreToolUse drain for a running `hq lanes` worker (spec §6.5).
2
+ # hq-lanes-drain.sh — PreToolUse drain for a running `hq runners` worker (spec §6.5).
3
3
  #
4
4
  # Registered once under $GROK_HOME/hooks/. Resolves the lane from HQ_LANE_ID.
5
5
  # The no-op path is the most important behaviour: this hook runs on every grok
@@ -0,0 +1,14 @@
1
+ {
2
+ "schema": "hq.host-canary-release.v1",
3
+ "cliVersion": "5.345.248",
4
+ "hosts": {
5
+ "claude": [
6
+ {
7
+ "passed": true,
8
+ "at": "2026-11-23T03:43:08.843Z",
9
+ "engineVersion": "0.3.1+hq.5.345.248.src.d4a8d681bba7bc9474778bdabd9adcb19435ce292749e0a7151a7fec61b6386b",
10
+ "gateSha256": "a2879dfe692233f5953bac86672947bbd82f3c5247292f3efcb80f16c3d2c6b1"
11
+ }
12
+ ]
13
+ }
14
+ }