@indigoai-us/hq-cli 5.345.247 → 5.345.250
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -0
- package/assets/lanes-hooks/hq-lanes-drain.sh +1 -1
- package/contracts/host-canary-release.json +14 -0
- package/dist/command-catalog.generated.d.ts +1198 -0
- package/dist/command-catalog.generated.js +1476 -0
- package/dist/command-registration-plan.d.ts +6 -0
- package/dist/command-registration-plan.js +1 -0
- package/dist/commands/core-job-run-native.js +4 -0
- package/dist/commands/core-knowledge-prefs.d.ts +1 -1
- package/dist/commands/core-knowledge-prefs.js +1 -16
- package/dist/commands/core.js +0 -2
- package/dist/commands/daemon.js +21 -0
- package/dist/commands/lanes-hold.js +7 -7
- package/dist/commands/lanes-resume.js +2 -2
- package/dist/commands/lanes-review.js +1 -1
- package/dist/commands/lanes-session-start.d.ts +1 -1
- package/dist/commands/lanes-session-start.js +3 -3
- package/dist/commands/lanes-shared.d.ts +1 -1
- package/dist/commands/lanes.d.ts +2 -2
- package/dist/commands/lanes.js +50 -50
- package/dist/commands/mesh.d.ts +25 -0
- package/dist/commands/mesh.js +48 -8
- package/dist/commands/ontology-graph.d.ts +63 -0
- package/dist/commands/ontology-graph.js +470 -0
- package/dist/commands/sync-core.js +6 -0
- package/dist/fast-scaffold.js +1 -3
- package/dist/hq-cloud-sync-runner/bin/sync-runner.js +281 -256
- package/dist/hq-cloud-sync-runner/package.json +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +48 -1
- package/dist/lanes-monitor-check-argv.d.ts +1 -1
- package/dist/lanes-monitor-check-argv.js +1 -1
- package/dist/lanes-monitor-check-fast.d.ts +1 -1
- package/dist/lanes-monitor-check-fast.js +1 -1
- package/dist/lanes-session-start-argv.d.ts +1 -1
- package/dist/lanes-session-start-argv.js +1 -1
- package/dist/lib/capacity/sign-in.d.ts +1 -1
- package/dist/lib/capacity/sign-in.js +1 -1
- package/dist/lib/daemon/hook-requests-conduct-link.js +2 -2
- package/dist/lib/daemon/installed-cli-restart.d.ts +57 -0
- package/dist/lib/daemon/installed-cli-restart.js +114 -0
- package/dist/lib/daemon/lanes-monitor-state.d.ts +2 -2
- package/dist/lib/daemon/lanes-monitor-state.js +2 -2
- package/dist/lib/daemon/legacy-journal-gate.d.ts +32 -0
- package/dist/lib/daemon/legacy-journal-gate.js +102 -0
- package/dist/lib/daemon/machine-checks.d.ts +7 -0
- package/dist/lib/daemon/machine-checks.js +10 -0
- package/dist/lib/daemon/merge-sections.d.ts +3 -3
- package/dist/lib/daemon/merge-sections.js +7 -7
- package/dist/lib/daemon/remote-control-pools.js +1 -1
- package/dist/lib/daemon/run.d.ts +3 -1
- package/dist/lib/daemon/run.js +49 -6
- package/dist/lib/daemon/state-file.d.ts +1 -1
- package/dist/lib/daemon/state-file.js +1 -1
- package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
- package/dist/lib/flag-registry-worker-source.generated.js +1 -1
- package/dist/lib/flag-snapshot-file.d.ts +2 -0
- package/dist/lib/flag-snapshot-file.js +118 -48
- package/dist/lib/hook-engine/canary-gate.d.ts +57 -3
- package/dist/lib/hook-engine/canary-gate.js +138 -6
- package/dist/lib/hook-engine/coverage.d.ts +82 -13
- package/dist/lib/hook-engine/coverage.js +214 -18
- package/dist/lib/hook-engine/registration-identity.d.ts +5 -0
- package/dist/lib/hook-engine/registration-identity.js +1 -1
- package/dist/lib/hook-engine/resolve.d.ts +23 -0
- package/dist/lib/hook-engine/resolve.js +48 -1
- package/dist/lib/hook-engine/stable-heal.d.ts +87 -0
- package/dist/lib/hook-engine/stable-heal.js +214 -0
- package/dist/lib/hot-channels/graph-context.d.ts +105 -0
- package/dist/lib/hot-channels/graph-context.js +380 -0
- package/dist/lib/hot-channels/signals-pass.js +27 -1
- package/dist/lib/lanes/claude-credential.d.ts +1 -1
- package/dist/lib/lanes/claude-credential.js +1 -1
- package/dist/lib/lanes/delivery-core.d.ts +1 -1
- package/dist/lib/lanes/delivery-core.js +1 -1
- package/dist/lib/lanes/delivery.d.ts +10 -10
- package/dist/lib/lanes/delivery.js +8 -8
- package/dist/lib/lanes/dropbox.d.ts +1 -1
- package/dist/lib/lanes/dropbox.js +1 -1
- package/dist/lib/lanes/hooks-install.js +2 -2
- package/dist/lib/lanes/index.d.ts +1 -1
- package/dist/lib/lanes/index.js +1 -1
- package/dist/lib/lanes/monitor.js +1 -1
- package/dist/lib/lanes/quota-notice.js +1 -1
- package/dist/lib/lanes/quota.d.ts +1 -1
- package/dist/lib/lanes/quota.js +1 -1
- package/dist/lib/lanes/repo-merge-hold.d.ts +2 -2
- package/dist/lib/lanes/repo-merge-hold.js +2 -2
- package/dist/lib/lanes/spawn.d.ts +4 -4
- package/dist/lib/lanes/spawn.js +5 -5
- package/dist/lib/mesh/live/company-flag-refresh.d.ts +61 -0
- package/dist/lib/mesh/live/company-flag-refresh.js +159 -0
- package/dist/lib/mesh/live/company-reporting-gaps.d.ts +61 -0
- package/dist/lib/mesh/live/company-reporting-gaps.js +238 -0
- package/dist/lib/mesh/live/daemon/duplicate-unit.d.ts +156 -0
- package/dist/lib/mesh/live/daemon/duplicate-unit.js +616 -0
- package/dist/lib/mesh/live/daemon/run.d.ts +13 -0
- package/dist/lib/mesh/live/daemon/run.js +35 -2
- package/dist/lib/mesh/live/direct-drain.js +1 -1
- package/dist/lib/mesh/live/emit.d.ts +3 -0
- package/dist/lib/mesh/live/emit.js +32 -9
- package/dist/lib/mesh/live/flush.d.ts +3 -0
- package/dist/lib/mesh/live/flush.js +115 -32
- package/dist/lib/mesh/live/liveness-carry.d.ts +1 -1
- package/dist/lib/mesh/live/liveness-carry.js +1 -1
- package/dist/lib/mesh/live/reporting-privacy.d.ts +119 -3
- package/dist/lib/mesh/live/reporting-privacy.js +235 -11
- package/dist/lib/mesh/live/spool.d.ts +17 -2
- package/dist/lib/mesh/live/spool.js +22 -6
- package/dist/lib/ontology-graph/legacy/coverage.d.ts +67 -0
- package/dist/lib/ontology-graph/legacy/coverage.js +192 -0
- package/dist/lib/ontology-graph/legacy/index.d.ts +199 -0
- package/dist/lib/ontology-graph/legacy/index.js +1150 -0
- package/dist/lib/ontology-graph/legacy/parse.d.ts +49 -0
- package/dist/lib/ontology-graph/legacy/parse.js +126 -0
- package/dist/lib/ontology-graph/legacy/report.d.ts +14 -0
- package/dist/lib/ontology-graph/legacy/report.js +254 -0
- package/dist/lib/ontology-graph/legacy/verb-map.d.ts +35 -0
- package/dist/lib/ontology-graph/legacy/verb-map.js +84 -0
- package/dist/lib/ontology-graph/lint/checks.d.ts +140 -0
- package/dist/lib/ontology-graph/lint/checks.js +717 -0
- package/dist/lib/ontology-graph/lint/coverage.d.ts +106 -0
- package/dist/lib/ontology-graph/lint/coverage.js +241 -0
- package/dist/lib/ontology-graph/lint/daily-job.d.ts +259 -0
- package/dist/lib/ontology-graph/lint/daily-job.js +595 -0
- package/dist/lib/ontology-graph/lint/index.d.ts +65 -0
- package/dist/lib/ontology-graph/lint/index.js +176 -0
- package/dist/lib/ontology-graph/model/files.d.ts +20 -0
- package/dist/lib/ontology-graph/model/files.js +89 -0
- package/dist/lib/ontology-graph/model/index.d.ts +65 -0
- package/dist/lib/ontology-graph/model/index.js +100 -0
- package/dist/lib/ontology-graph/model/pass-tasks.d.ts +156 -0
- package/dist/lib/ontology-graph/model/pass-tasks.js +345 -0
- package/dist/lib/ontology-graph/model/pass.d.ts +109 -0
- package/dist/lib/ontology-graph/model/pass.js +958 -0
- package/dist/lib/ontology-graph/model/runner.d.ts +50 -0
- package/dist/lib/ontology-graph/model/runner.js +160 -0
- package/dist/lib/ontology-graph/model/step.d.ts +197 -0
- package/dist/lib/ontology-graph/model/step.js +526 -0
- package/dist/lib/ontology-graph/model/tasks.d.ts +183 -0
- package/dist/lib/ontology-graph/model/tasks.js +349 -0
- package/dist/lib/ontology-graph/not-implemented.d.ts +5 -0
- package/dist/lib/ontology-graph/not-implemented.js +8 -0
- package/dist/lib/ontology-graph/org/compare.d.ts +28 -0
- package/dist/lib/ontology-graph/org/compare.js +239 -0
- package/dist/lib/ontology-graph/org/derive.d.ts +67 -0
- package/dist/lib/ontology-graph/org/derive.js +359 -0
- package/dist/lib/ontology-graph/org/index.d.ts +102 -0
- package/dist/lib/ontology-graph/org/index.js +630 -0
- package/dist/lib/ontology-graph/org/load.d.ts +31 -0
- package/dist/lib/ontology-graph/org/load.js +476 -0
- package/dist/lib/ontology-graph/org/role.d.ts +38 -0
- package/dist/lib/ontology-graph/org/role.js +268 -0
- package/dist/lib/ontology-graph/org/structure.d.ts +63 -0
- package/dist/lib/ontology-graph/org/structure.js +437 -0
- package/dist/lib/ontology-graph/org/text.d.ts +97 -0
- package/dist/lib/ontology-graph/org/text.js +321 -0
- package/dist/lib/ontology-graph/org/types.d.ts +457 -0
- package/dist/lib/ontology-graph/org/types.js +80 -0
- package/dist/lib/ontology-graph/pages/index.d.ts +64 -0
- package/dist/lib/ontology-graph/pages/index.js +193 -0
- package/dist/lib/ontology-graph/pages/render.d.ts +144 -0
- package/dist/lib/ontology-graph/pages/render.js +688 -0
- package/dist/lib/ontology-graph/proposals/apply.d.ts +109 -0
- package/dist/lib/ontology-graph/proposals/apply.js +468 -0
- package/dist/lib/ontology-graph/proposals/group.d.ts +63 -0
- package/dist/lib/ontology-graph/proposals/group.js +232 -0
- package/dist/lib/ontology-graph/proposals/index.d.ts +173 -0
- package/dist/lib/ontology-graph/proposals/index.js +474 -0
- package/dist/lib/ontology-graph/proposals/model.d.ts +162 -0
- package/dist/lib/ontology-graph/proposals/model.js +196 -0
- package/dist/lib/ontology-graph/proposals/org-chart.d.ts +82 -0
- package/dist/lib/ontology-graph/proposals/org-chart.js +340 -0
- package/dist/lib/ontology-graph/read/brief.d.ts +26 -0
- package/dist/lib/ontology-graph/read/brief.js +254 -0
- package/dist/lib/ontology-graph/read/graph-index.d.ts +76 -0
- package/dist/lib/ontology-graph/read/graph-index.js +198 -0
- package/dist/lib/ontology-graph/read/index.d.ts +59 -0
- package/dist/lib/ontology-graph/read/index.js +803 -0
- package/dist/lib/ontology-graph/read/member.d.ts +7 -0
- package/dist/lib/ontology-graph/read/member.js +34 -0
- package/dist/lib/ontology-graph/read/names.d.ts +49 -0
- package/dist/lib/ontology-graph/read/names.js +297 -0
- package/dist/lib/ontology-graph/read/reader-setting.d.ts +19 -0
- package/dist/lib/ontology-graph/read/reader-setting.js +62 -0
- package/dist/lib/ontology-graph/read/test-graph.d.ts +37 -0
- package/dist/lib/ontology-graph/read/test-graph.js +150 -0
- package/dist/lib/ontology-graph/replay/buffered-store.d.ts +33 -0
- package/dist/lib/ontology-graph/replay/buffered-store.js +50 -0
- package/dist/lib/ontology-graph/replay/config.d.ts +41 -0
- package/dist/lib/ontology-graph/replay/config.js +105 -0
- package/dist/lib/ontology-graph/replay/engine.d.ts +146 -0
- package/dist/lib/ontology-graph/replay/engine.js +1240 -0
- package/dist/lib/ontology-graph/replay/extractors.d.ts +59 -0
- package/dist/lib/ontology-graph/replay/extractors.js +1555 -0
- package/dist/lib/ontology-graph/replay/index.d.ts +91 -0
- package/dist/lib/ontology-graph/replay/index.js +220 -0
- package/dist/lib/ontology-graph/replay/listing-manifest.d.ts +66 -0
- package/dist/lib/ontology-graph/replay/listing-manifest.js +242 -0
- package/dist/lib/ontology-graph/replay/member.d.ts +19 -0
- package/dist/lib/ontology-graph/replay/member.js +65 -0
- package/dist/lib/ontology-graph/replay/mentions.d.ts +58 -0
- package/dist/lib/ontology-graph/replay/mentions.js +239 -0
- package/dist/lib/ontology-graph/replay/readers.d.ts +98 -0
- package/dist/lib/ontology-graph/replay/readers.js +1251 -0
- package/dist/lib/ontology-graph/replay/rules.d.ts +127 -0
- package/dist/lib/ontology-graph/replay/rules.js +374 -0
- package/dist/lib/ontology-graph/replay/scope.d.ts +35 -0
- package/dist/lib/ontology-graph/replay/scope.js +115 -0
- package/dist/lib/ontology-graph/replay/transcripts.d.ts +39 -0
- package/dist/lib/ontology-graph/replay/transcripts.js +224 -0
- package/dist/lib/ontology-graph/replay/util.d.ts +55 -0
- package/dist/lib/ontology-graph/replay/util.js +256 -0
- package/dist/lib/ontology-graph/resolve/entity-index.d.ts +159 -0
- package/dist/lib/ontology-graph/resolve/entity-index.js +652 -0
- package/dist/lib/ontology-graph/resolve/index.d.ts +113 -0
- package/dist/lib/ontology-graph/resolve/index.js +214 -0
- package/dist/lib/ontology-graph/resolve/machine.d.ts +34 -0
- package/dist/lib/ontology-graph/resolve/machine.js +95 -0
- package/dist/lib/ontology-graph/resolve/normalize.d.ts +35 -0
- package/dist/lib/ontology-graph/resolve/normalize.js +124 -0
- package/dist/lib/ontology-graph/resolve/org-chart.d.ts +107 -0
- package/dist/lib/ontology-graph/resolve/org-chart.js +578 -0
- package/dist/lib/ontology-graph/resolve/org-layer.d.ts +78 -0
- package/dist/lib/ontology-graph/resolve/org-layer.js +159 -0
- package/dist/lib/ontology-graph/resolve/org-seed.d.ts +141 -0
- package/dist/lib/ontology-graph/resolve/org-seed.js +631 -0
- package/dist/lib/ontology-graph/resolve/org-sources.d.ts +165 -0
- package/dist/lib/ontology-graph/resolve/org-sources.js +634 -0
- package/dist/lib/ontology-graph/resolve/roster.d.ts +76 -0
- package/dist/lib/ontology-graph/resolve/roster.js +226 -0
- package/dist/lib/ontology-graph/resolve/seed.d.ts +267 -0
- package/dist/lib/ontology-graph/resolve/seed.js +1198 -0
- package/dist/lib/ontology-graph/resolve/upsert.d.ts +58 -0
- package/dist/lib/ontology-graph/resolve/upsert.js +139 -0
- package/dist/lib/ontology-graph/resolve/writer.d.ts +128 -0
- package/dist/lib/ontology-graph/resolve/writer.js +351 -0
- package/dist/lib/ontology-graph/schema/authority.d.ts +107 -0
- package/dist/lib/ontology-graph/schema/authority.js +186 -0
- package/dist/lib/ontology-graph/schema/default-schema.d.ts +10 -0
- package/dist/lib/ontology-graph/schema/default-schema.js +242 -0
- package/dist/lib/ontology-graph/schema/grammar.d.ts +57 -0
- package/dist/lib/ontology-graph/schema/grammar.js +409 -0
- package/dist/lib/ontology-graph/schema/index.d.ts +12 -0
- package/dist/lib/ontology-graph/schema/index.js +10 -0
- package/dist/lib/ontology-graph/schema/validate.d.ts +13 -0
- package/dist/lib/ontology-graph/schema/validate.js +132 -0
- package/dist/lib/ontology-graph/store/files.d.ts +34 -0
- package/dist/lib/ontology-graph/store/files.js +207 -0
- package/dist/lib/ontology-graph/store/fs.d.ts +30 -0
- package/dist/lib/ontology-graph/store/fs.js +101 -0
- package/dist/lib/ontology-graph/store/graph-store.d.ts +14 -0
- package/dist/lib/ontology-graph/store/graph-store.js +520 -0
- package/dist/lib/ontology-graph/store/index.d.ts +18 -0
- package/dist/lib/ontology-graph/store/index.js +15 -0
- package/dist/lib/ontology-graph/store/ingest.d.ts +37 -0
- package/dist/lib/ontology-graph/store/ingest.js +323 -0
- package/dist/lib/ontology-graph/store/paths.d.ts +114 -0
- package/dist/lib/ontology-graph/store/paths.js +232 -0
- package/dist/lib/ontology-graph/types.d.ts +1190 -0
- package/dist/lib/ontology-graph/types.js +131 -0
- package/dist/lib/secret-scan/gitleaks-rules.generated.js +1 -1
- package/dist/lib/sync-core/engine-holds.d.ts +1 -1
- package/dist/lib/sync-core/engine-holds.js +12 -2
- package/dist/lib/sync-core/hand-back.d.ts +2 -1
- package/dist/lib/sync-core/hand-back.js +16 -2
- package/dist/lib/sync-core/legacy-journal-export-child.d.ts +2 -0
- package/dist/lib/sync-core/legacy-journal-export-child.js +24 -0
- package/dist/lib/sync-core/legacy-journal-export.d.ts +39 -0
- package/dist/lib/sync-core/legacy-journal-export.js +241 -0
- package/dist/lib/sync-core/legacy-journal-reader.d.ts +15 -0
- package/dist/lib/sync-core/legacy-journal-reader.js +56 -0
- package/dist/lib/sync-core/reconcile.d.ts +3 -0
- package/dist/lib/sync-core/reconcile.js +43 -3
- package/dist/utils/cli-telemetry.d.ts +1 -0
- package/dist/utils/cli-telemetry.js +6 -3
- package/dist/utils/frontmatter.d.ts +14 -0
- package/dist/utils/frontmatter.js +18 -0
- package/dist/utils/hook-engine-rollup.d.ts +96 -0
- package/dist/utils/hook-engine-rollup.js +725 -0
- package/dist/utils/interactive-caller.js +1 -1
- package/package.json +9 -9
- package/scripts/install-hook-engine.mjs +4 -0
- package/assets/scaffold/core/scripts/knowledge-prefs.sh +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,101 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [5.345.250] — 2026-11-23
|
|
6
|
+
- Internal: the batch train runner (`scripts/ci/batch-train.py`) is committed with tests. When main moves outside the train after part of a batch has merged, the runner re-reads main and builds a fresh train for the pull requests that did not merge, instead of stopping on the old main. Every pull request that drops out of a train build, for example on a merge conflict, is logged with its reason.
|
|
7
|
+
- Internal: `hq-hook PR tests` now runs on same-repository draft pull requests that change the hook crate, on the same Mac pool runners a ready pull request uses, following the owner's 2026-11-21 draft rule in ci.yml. Fork drafts, `HQ_DRAFT_PR_CI=off`, `HQ_MAC_RUNNERS=off` and the `ci-hosted-runners` label still skip it, so a draft never runs on a GitHub-hosted runner. Before this, a draft such as hq-cli #3490 had no Rust checks until it was marked ready.
|
|
8
|
+
- Internal: `hq-hook PR tests` now runs Windows Clippy on the team's self-hosted Windows runner for same-repo pull requests that change the hook crate, plus the Windows hook tests the diff touches (scripts/ci/hq-hook-windows-test-scope.mjs). A manual run of `hq-hook` takes a `platforms` choice (linux, windows, macos, all): `windows` runs the full Windows suite and starts no macOS job.
|
|
9
|
+
- Fixed: the scaffold bundle freshness check passes again. The scaffold manifest still listed `knowledge-prefs.sh` after its bundled copy was retired, so the check failed on main and on the 5.345.249 tag.
|
|
10
|
+
- Fixed: the daemon now restarts itself onto a newer hq CLI that the desktop app, `hq update` or npm installed, even when its updater is turned off. A daemon already stuck on an older release is restarted by the first service it starts from the new CLI, with no manual step. Before, a daemon could keep running an old release for days, so fixes such as the lanes reconcile repair in 5.345.246 never took effect and `hq daemon status` kept showing "last run failed".
|
|
11
|
+
- Added: the HQ daemon sends a daily count of hook-engine failures (fallbacks, mismatches, script mismatches, host-guard refusals, bad exit codes, timeouts, dispatch failures, run denies and run faults) from `~/.hq/logs/hook-engine.jsonl`. It runs on the daemon's hourly machine-check timer, only while that schedule is on, and sends the rows of completed UTC days from the last seven days, reading at most 16 MiB of log and sending at most 500 groups per run; groups over that limit are dropped. Each event carries the UTC day it counts, a consent basis, an idempotency key (a random id for the run, the day and a counter) and the group's values. Every value is a closed label, a count, a timing, an exit code, a timed-out flag, the engine version or the HQ release number: no hashes, paths, row text, free-text reasons, custom hook names or company ids leave the machine. On each tick it reads `HQ_TELEMETRY` from the daemon's own environment, the sign-in and the person's telemetry choice. If `HQ_TELEMETRY` is off, nobody is signed in or the person has not opted in, the rows logged up to that tick are dropped. If a different person is signed in, or the saved state has no usable time for the last tick that confirmed the opt-in, it starts again from the end of the log. If no tick confirmed the same person's opt-in for more than two hours and fifteen minutes (a stopped or sleeping machine, the schedule being off, answers that could not be read), the rows whose own time falls after the last confirming tick and up to the current one are dropped, and rows from before it are still sent, so a laptop that sleeps overnight keeps the day it logged before sleeping. Rows without a readable time are never sent. A telemetry choice or a sign-in that changes and changes back between two ticks inside that window is not seen. A send that fails with a retryable answer is retried with the same events on a later tick, with no limit on how long, so a batch that waits can be older than seven days when it goes out; a batch the server rejects is dropped. An agent machine needs no opt-in and marks its rows `agent-required`; a person's rows are marked `opted-in`. The log's place is kept by its exact file id, so it also works on Windows volumes whose file ids are larger than a JavaScript safe integer.
|
|
12
|
+
- After an update, the first `hq` command now re-runs `hq reindex` in the background for each HQ root that uses the new hook core. This moves `~/.hq/bin/hq-hook/stable` to the newly installed engine only through the same host canary gate and checks a manual reindex applies, so `hq doctor` no longer fails after every update until someone runs `hq reindex` by hand. The installer itself moves nothing; it says that the next command will finish the job.
|
|
13
|
+
- 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` keeps Claude Code on the new hook engine after updating, 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.
|
|
14
|
+
- Changed: the host canary record shipped with the CLI is refreshed for this release build.
|
|
15
|
+
- `hq ontology activity [<person>]` shows what each person does, from behavior in
|
|
16
|
+
the ontology graph: kinds of work with counts, what they ship and own, who they
|
|
17
|
+
work with and how that changed over time. It replaces `hq ontology org
|
|
18
|
+
observed|compare|person` as the visible command; the old names still work.
|
|
19
|
+
Role lines and who appears to direct whom are now shown only with `--roles`,
|
|
20
|
+
and the stated-versus-observed comparison only with `--compare`. Commits to a
|
|
21
|
+
repository named for marketing or design count as that work, and an action
|
|
22
|
+
item filed under a speaker label such as "Host" is no longer counted for a
|
|
23
|
+
person.
|
|
24
|
+
- `hq ontology lookup` no longer lists a role title or an affiliation that a
|
|
25
|
+
model wrote with confidence below 0.70. It prints how many such rows it left
|
|
26
|
+
out and tells the reader to check the sources, and `--json` carries the count
|
|
27
|
+
as `leftOutGuesses`. Rows from records, rules, people and the old entity
|
|
28
|
+
files are shown as before. The same rows are now left out of compiled entity
|
|
29
|
+
pages (and so `lookup --page`), the session brief and the entity list sent
|
|
30
|
+
with a signals document, and they no longer take the place of an established
|
|
31
|
+
value for the same field. `lookup` and the signals entity list also leave out
|
|
32
|
+
an employer relationship a model wrote below 0.70. A page counts what it left
|
|
33
|
+
out as `unconfirmed_model_guesses_left_out`.
|
|
34
|
+
- `hq ontology update` takes `--max-input-tokens <n>` and `--max-output-tokens <n>`
|
|
35
|
+
to raise the model step's cap per day for that one run. The default (150,000
|
|
36
|
+
input and 20,000 output tokens per model per day) is unchanged, so the
|
|
37
|
+
scheduled daily run behaves as before. The run summary of `rebuild` and
|
|
38
|
+
`update` now prints the cap, what the run used, and, when the daily cap or
|
|
39
|
+
`--budget-tokens` stopped the run, which one and how many items are pending.
|
|
40
|
+
`--json` carries the same as `modelCap`.
|
|
41
|
+
- Changed: `hq reindex` keeps PreToolUse on the shell dispatcher on a host where the native engine claims it, when the HQ root's dispatcher files, Codex adapter or pinned PreToolUse guards are not the revisions the native engine reproduces.
|
|
42
|
+
- Fixed: when a vault went back from the new sync engine to the current sync while the engine was holding files it would have replaced with the vault's copies (a `mass_overwrite` hold), `hq sync-core reconcile` reported the engine's hold file as unreadable. If the same hold also held deletes, those deletes were not passed to the current sync's keep list, so the current sync could apply them. Reconcile now reads such a hold and passes its held deletes on. A kind of hold this hq does not know is skipped with a warning, and the deletes held beside it are still passed on.
|
|
43
|
+
- Fixed: when a company vault moves from the current sync to the new sync engine, HQ can now give the engine a copy of what the current sync last synced for each file (`legacy-journal/<slug>.json` in the vault's engine home). The engine uses it to tell an old local copy, which it should replace with the vault's file, from a local edit that was never uploaded, which it should upload, where before it treated both as conflicts. The copy is written once the current sync has let go of the company and before the engine starts; a company already on the engine gets it on the next `hq sync-core reconcile`. It is removed when the company goes back to the current sync. The journal is read with hq-cloud 6.18.122's `readJournalWithoutWrites`, which changes nothing in the current sync's state folder; this release moves the bundled hq-cloud to 6.18.122. On a machine whose daemon still runs an older hq-cloud, or if the copy cannot be made, HQ logs why and the engine runs as before.
|
|
44
|
+
- Run knowledge preference lookups in the CLI without bundling a second shell implementation.
|
|
45
|
+
|
|
46
|
+
## [5.345.248] — 2026-11-23
|
|
47
|
+
- 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.
|
|
48
|
+
- 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.
|
|
49
|
+
- New `hq ontology` commands build and read a local ontology graph for one company:
|
|
50
|
+
sourced facts and typed relationships, rebuilt from the files on this machine
|
|
51
|
+
(`rebuild`, `update`, `lookup`, `neighbors`, `search`, `traverse`, `brief`, `lint`,
|
|
52
|
+
`proposals`, `org-chart`, `daily`, `job`). The graph stays in
|
|
53
|
+
`companies/<slug>/.hq/ontology-graph/` and is never uploaded. Each graph folder
|
|
54
|
+
belongs to one company.
|
|
55
|
+
- New `hq ontology org observed|compare|person <name>` commands show the org as
|
|
56
|
+
observed from behavior in the ontology graph: what each person does by time
|
|
57
|
+
window, who appears to direct whom, who works with whom, working groups and the
|
|
58
|
+
de facto owner of each active project and customer. `compare` prints the stated
|
|
59
|
+
title, manager and listed owner beside the observed ones and reports where they
|
|
60
|
+
differ without changing either. Every line is marked as inferred and the output
|
|
61
|
+
lists the known limits of the derivation. The commands only print;
|
|
62
|
+
`observed --write` also stores the rows, marked as inferred and apart from
|
|
63
|
+
facts, in the company's own graph folder. Nothing is uploaded.
|
|
64
|
+
- 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).
|
|
65
|
+
- 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.
|
|
66
|
+
- 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.
|
|
67
|
+
- On Linux machines that run Work Mesh from the system unit
|
|
68
|
+
`/etc/systemd/system/hq-mesh-daemon.service`, `hq mesh daemon run` now removes
|
|
69
|
+
a leftover per-user `hq-mesh-daemon.service` that kept restarting next to it.
|
|
70
|
+
Only the system unit's daemon removes it, after holding the user unit's own
|
|
71
|
+
daemon lock (`$HOME/.hq/work-mesh/daemon` or `$HQ_WORK_MESH_ROOT/daemon`, as
|
|
72
|
+
the user unit's environment sets them) for 30 seconds with the system unit
|
|
73
|
+
still running. When that environment cannot be worked out, nothing is
|
|
74
|
+
removed. It first
|
|
75
|
+
copies the unit to `hq-mesh-daemon.service.removed.bak` in that daemon folder
|
|
76
|
+
and flushes it to disk (to restore it, copy it back to
|
|
77
|
+
`~/.config/systemd/user/hq-mesh-daemon.service`), and records the result in
|
|
78
|
+
`duplicate-unit.json` there. If a file cannot be deleted, the result is
|
|
79
|
+
recorded as `partial-removal` and the removal is retried. A daemon started
|
|
80
|
+
by the user unit never deletes anything: it exits only while the system
|
|
81
|
+
unit's main process holds this home's lock, and otherwise starts as before.
|
|
82
|
+
Nothing happens unless systemd reports that the system unit runs as the
|
|
83
|
+
same user, or when the system unit has failed.
|
|
84
|
+
- 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.
|
|
85
|
+
- 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.
|
|
86
|
+
- 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.
|
|
87
|
+
- Fixed: user-visible messages and help now name `hq runners`; `hq lanes` still works as an alias.
|
|
88
|
+
- 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.
|
|
89
|
+
- 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.
|
|
90
|
+
- 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.
|
|
91
|
+
- 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.
|
|
92
|
+
- 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.
|
|
93
|
+
- 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.
|
|
94
|
+
- 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.
|
|
95
|
+
- `hq ontology daily` no longer waits forever on a lock left by a run that is gone:
|
|
96
|
+
a lock older than six hours is taken, and `--force` takes one older than an hour.
|
|
97
|
+
- `hq ontology rebuild` keeps sessions that ran in a worktree folder since removed,
|
|
98
|
+
when git still records that folder as a worktree of one of the company's own repos.
|
|
99
|
+
|
|
5
100
|
## [5.345.247] — 2026-11-23
|
|
6
101
|
- 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.
|
|
7
102
|
- 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.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# hq-lanes-drain.sh — PreToolUse drain for a running `hq
|
|
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.250",
|
|
4
|
+
"hosts": {
|
|
5
|
+
"claude": [
|
|
6
|
+
{
|
|
7
|
+
"passed": true,
|
|
8
|
+
"at": "2026-11-23T07:39:40.796Z",
|
|
9
|
+
"engineVersion": "0.3.1+hq.5.345.250.src.a33e9846b38c54900ba8dde4a7cbe1f726801b015a94ffd7927de7ca01204cef",
|
|
10
|
+
"gateSha256": "a2879dfe692233f5953bac86672947bbd82f3c5247292f3efcb80f16c3d2c6b1"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|