@indigoai-us/hq-cli 5.345.248 → 5.345.251

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 (114) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/contracts/host-canary-release.json +3 -3
  3. package/dist/command-catalog.generated.d.ts +288 -9
  4. package/dist/command-catalog.generated.js +355 -9
  5. package/dist/commands/bot.js +5 -1
  6. package/dist/commands/core-job-run-native.js +4 -0
  7. package/dist/commands/core-knowledge-prefs.d.ts +1 -1
  8. package/dist/commands/core-knowledge-prefs.js +1 -16
  9. package/dist/commands/core.js +0 -2
  10. package/dist/commands/daemon.js +21 -0
  11. package/dist/commands/lanes.d.ts +2 -0
  12. package/dist/commands/lanes.js +9 -4
  13. package/dist/commands/ontology-graph.d.ts +11 -3
  14. package/dist/commands/ontology-graph.js +138 -14
  15. package/dist/commands/sources.js +26 -8
  16. package/dist/commands/sync-core.js +6 -0
  17. package/dist/fast-scaffold.js +1 -3
  18. package/dist/hq-cloud-sync-runner/bin/sync-runner.js +281 -256
  19. package/dist/hq-cloud-sync-runner/package.json +1 -1
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +47 -0
  22. package/dist/lib/bot/fleet-cron.d.ts +2 -0
  23. package/dist/lib/bot/fleet-cron.js +5 -0
  24. package/dist/lib/daemon/installed-cli-restart.d.ts +57 -0
  25. package/dist/lib/daemon/installed-cli-restart.js +114 -0
  26. package/dist/lib/daemon/legacy-journal-gate.d.ts +32 -0
  27. package/dist/lib/daemon/legacy-journal-gate.js +102 -0
  28. package/dist/lib/daemon/machine-checks.d.ts +7 -0
  29. package/dist/lib/daemon/machine-checks.js +10 -0
  30. package/dist/lib/daemon/run.d.ts +3 -1
  31. package/dist/lib/daemon/run.js +48 -5
  32. package/dist/lib/flag-registry-worker-source.generated.d.ts +1 -1
  33. package/dist/lib/flag-registry-worker-source.generated.js +1 -1
  34. package/dist/lib/hook-engine/coverage.d.ts +99 -19
  35. package/dist/lib/hook-engine/coverage.js +269 -35
  36. package/dist/lib/hook-engine/native-stop-compatibility.json +9 -4
  37. package/dist/lib/hook-engine/registration-identity.d.ts +5 -0
  38. package/dist/lib/hook-engine/registration-identity.js +1 -1
  39. package/dist/lib/hook-engine/resolve.d.ts +23 -0
  40. package/dist/lib/hook-engine/resolve.js +48 -1
  41. package/dist/lib/hook-engine/stable-heal.d.ts +87 -0
  42. package/dist/lib/hook-engine/stable-heal.js +214 -0
  43. package/dist/lib/hot-channels/graph-context.d.ts +26 -1
  44. package/dist/lib/hot-channels/graph-context.js +80 -10
  45. package/dist/lib/hot-channels/run.d.ts +1 -0
  46. package/dist/lib/hot-channels/signals-pass.js +9 -4
  47. package/dist/lib/ontology-graph/model/files.d.ts +4 -0
  48. package/dist/lib/ontology-graph/model/files.js +23 -0
  49. package/dist/lib/ontology-graph/model/index.d.ts +11 -1
  50. package/dist/lib/ontology-graph/model/index.js +42 -18
  51. package/dist/lib/ontology-graph/model/pass-tasks.d.ts +9 -1
  52. package/dist/lib/ontology-graph/model/pass-tasks.js +7 -4
  53. package/dist/lib/ontology-graph/model/pass.d.ts +5 -0
  54. package/dist/lib/ontology-graph/model/pass.js +8 -8
  55. package/dist/lib/ontology-graph/model/pending-items.d.ts +31 -0
  56. package/dist/lib/ontology-graph/model/pending-items.js +113 -0
  57. package/dist/lib/ontology-graph/model/step.d.ts +48 -1
  58. package/dist/lib/ontology-graph/model/step.js +205 -36
  59. package/dist/lib/ontology-graph/model/tasks.d.ts +17 -1
  60. package/dist/lib/ontology-graph/model/tasks.js +28 -8
  61. package/dist/lib/ontology-graph/org/derive.d.ts +2 -0
  62. package/dist/lib/ontology-graph/org/derive.js +9 -2
  63. package/dist/lib/ontology-graph/org/index.d.ts +35 -6
  64. package/dist/lib/ontology-graph/org/index.js +136 -19
  65. package/dist/lib/ontology-graph/org/text.d.ts +2 -0
  66. package/dist/lib/ontology-graph/org/text.js +6 -0
  67. package/dist/lib/ontology-graph/org/types.d.ts +5 -0
  68. package/dist/lib/ontology-graph/pages/render.d.ts +2 -0
  69. package/dist/lib/ontology-graph/pages/render.js +11 -4
  70. package/dist/lib/ontology-graph/read/brief.d.ts +13 -3
  71. package/dist/lib/ontology-graph/read/brief.js +312 -62
  72. package/dist/lib/ontology-graph/read/index.d.ts +1 -1
  73. package/dist/lib/ontology-graph/read/index.js +14 -3
  74. package/dist/lib/ontology-graph/read/names.d.ts +6 -1
  75. package/dist/lib/ontology-graph/read/names.js +8 -3
  76. package/dist/lib/ontology-graph/read/reader-setting.d.ts +2 -0
  77. package/dist/lib/ontology-graph/read/reader-setting.js +4 -1
  78. package/dist/lib/ontology-graph/remodel/index.d.ts +174 -0
  79. package/dist/lib/ontology-graph/remodel/index.js +450 -0
  80. package/dist/lib/ontology-graph/replay/engine.d.ts +47 -1
  81. package/dist/lib/ontology-graph/replay/engine.js +68 -2
  82. package/dist/lib/ontology-graph/replay/index.d.ts +2 -1
  83. package/dist/lib/ontology-graph/replay/index.js +114 -8
  84. package/dist/lib/ontology-graph/schema/authority.d.ts +43 -0
  85. package/dist/lib/ontology-graph/schema/authority.js +39 -0
  86. package/dist/lib/ontology-graph/schema/index.d.ts +1 -1
  87. package/dist/lib/ontology-graph/schema/index.js +1 -1
  88. package/dist/lib/ontology-graph/setup/index.d.ts +88 -0
  89. package/dist/lib/ontology-graph/setup/index.js +489 -0
  90. package/dist/lib/ontology-graph/types.d.ts +28 -0
  91. package/dist/lib/ontology-graph/types.js +5 -0
  92. package/dist/lib/signals/failure-alert.js +4 -5
  93. package/dist/lib/signals/steps/adapters.js +3 -0
  94. package/dist/lib/sync-core/engine-holds.d.ts +1 -1
  95. package/dist/lib/sync-core/engine-holds.js +12 -2
  96. package/dist/lib/sync-core/hand-back.d.ts +2 -1
  97. package/dist/lib/sync-core/hand-back.js +16 -2
  98. package/dist/lib/sync-core/legacy-journal-export-child.d.ts +2 -0
  99. package/dist/lib/sync-core/legacy-journal-export-child.js +24 -0
  100. package/dist/lib/sync-core/legacy-journal-export.d.ts +39 -0
  101. package/dist/lib/sync-core/legacy-journal-export.js +241 -0
  102. package/dist/lib/sync-core/legacy-journal-reader.d.ts +15 -0
  103. package/dist/lib/sync-core/legacy-journal-reader.js +56 -0
  104. package/dist/lib/sync-core/reconcile.d.ts +3 -0
  105. package/dist/lib/sync-core/reconcile.js +43 -3
  106. package/dist/utils/cli-telemetry.d.ts +1 -0
  107. package/dist/utils/cli-telemetry.js +6 -3
  108. package/dist/utils/hook-engine-rollup.d.ts +96 -0
  109. package/dist/utils/hook-engine-rollup.js +725 -0
  110. package/dist/utils/sync-person.d.ts +15 -0
  111. package/dist/utils/sync-person.js +74 -0
  112. package/package.json +8 -8
  113. package/scripts/install-hook-engine.mjs +4 -0
  114. package/assets/scaffold/core/scripts/knowledge-prefs.sh +0 -55
package/CHANGELOG.md CHANGED
@@ -2,6 +2,149 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [5.345.251] — 2026-11-23
6
+ - Fixed: on hosted agents, the engine-log row for an advisory hook refusal no longer shows "reason withheld" on a slow or busy machine. The time limit for checking each reason now starts after the checker has loaded, and a slow log write no longer uses up the limit for the next row.
7
+ - Fixed: on hosted agents, when a native hook refuses after a tool call or before a model call, `hq-hook` now keeps running the remaining hooks, prints the reason and writes it to the engine log. Before, the first refusal stopped the remaining hooks and its reason was lost.
8
+ - Internal: The batch train now requires the Windows hook tests (Beaker) on every pull request that changes the hook paths. A red Windows run passes only when every failing test already fails on main's current Windows baseline; the train logs each such pass in its report and in one comment on the pull request. New Windows failures, a missing or stale baseline, or a Windows run that is missing, pending, skipped or cancelled keep the pull request out of the batch.
9
+ - Internal: The batch train no longer puts a pull request back to draft when its train run was red only because a self-hosted runner lost contact mid-job. It re-runs the failed jobs once and judges the re-run; if a runner is lost again, it stops without merging or drafting anything. A red run for any other reason is handled as before.
10
+ - Internal: The batch train no longer puts a pull request back to draft when its lone run failed only on tracked flaky tests (listed in issue #3576) that are outside its diff. The pull request is left out of that train with a comment and no failing status, and merges only from a later green train. Each head gets this once; a second tracked-flake failure on the same head goes back to draft as before.
11
+ - Internal: The main full suite workflow (`node20-full.yml`, formerly Node 20 only) now runs every leg of a full pull request run after each push to main and nightly: the unit shards and coverage merge on Node 20 and Node 22, typecheck and lint on both, the worker-scaffold shell suite, and the e2e build with all four shards. It runs on self-hosted runners only (idle Macs first on a main push, the AWS pools otherwise) and never deploys. A red run on main opens or comments on an issue labelled `ci-main-red`, and the next green run closes it.
12
+ - Internal: Pull request CI can run only the tests a change can reach. With the repository variable `HQ_CLI_PR_AFFECTED_TESTS` set to `on` (off by default), a pull request that changes Node source or test files runs the changed files' import graph plus every test that runs the CLI out of process, names a changed file, or walks the repo. Config, lockfile, workflow, script, template and test-setup changes, deletes and renames, large diffs and the `ci-full-suite` label still run the whole suite. e2e stays full for any source change. Merge trains and main keep the whole suite.
13
+ - Internal: the hq-hook PreToolUse dispatcher pins, the native gate fact check and the native image rule also accept the hq-core-staging main revision of `session-id.sh` (fd709b39a, d6a04155), with the matching `coverage.ts` entry. This only affects a root that pairs that file with a pinned `master-hook.sh`: a staging-main root stays on bash for PreToolUse because its `master-hook.sh` is not pinned. The native session bind, SessionStart and UserPromptSubmit still accept only the released revision.
14
+ - Internal: the hq-hook engine also accepts the hq-core-staging main revisions of `hqd-hook-shim.sh` and `hq-session.sh` (fd709b39a). On a staging-main root their native paths still wait for the `session-id.sh` and `master-hook.sh` pins. The native session bind prints `hq-session: invalid --session-id: '<id>'` for an invalid explicit id on that hq-session.sh revision, as the script does.
15
+ - Internal: the native Stop also accepts the `conduct-lanes-link-deliver.sh` (`944c727a`), `hq-autocommit.sh` (`66f5c09b`) and `35-work-mesh-session-start.sh` (`4ab85c27`) that hq-core v16.0.48, v16.0.49 and v16.0.50 ship, so those three files no longer hold a root on those cores on the shell Stop. A v16.0.49 or v16.0.50 root also needs its `master-hook.sh` accepted (hq-cli #3561). The new deliver hook calls `hq runners link _deliver`, the command the native Stop already runs; the autosave script still runs from the root's own sweep. The hq-core-staging main `hq-session.sh` and `session-id.sh` stay unpinned for Stop.
16
+ - Internal: The fleet-local env dump parity tests no longer flake on Linux. The harness that runs the pinned adapter's checks now drains grep's input after `grep -q` answers, so `printf` cannot take SIGPIPE under `pipefail` and turn a dump into an allow. The pinned adapter and the corpus are unchanged; a 200-run loop of the `env-start-of-second-line` row guards the fix.
17
+ - Fixed: on HQ 16.0.48 to 16.0.50, when a Grok turn is cancelled or fails, `hq-hook` now records the turn end in the Work Mesh again. Before, it refused these events because it only knew the 16.0.47 turn-end script.
18
+ - Changed: `hq-hook` now writes a reason to `~/.hq/logs/hook-engine.jsonl` each time it hands a hook event or a single hook back to the shell scripts (status `dispatch-declined`, and a `reason` field on `fallback` and `script-mismatch` lines). With `HQ_HOOK_TRACE` set it also prints that reason on stderr.
19
+ - Changed: the host canary record shipped with the CLI is refreshed for this release build.
20
+ - Internal: the hq-hook replay harness tests (`crates/hq-hook/tests/replay.rs`) now run on Windows. They passed Node a `\\?\D:\...` path from `canonicalize`, which Node cannot run as a main script (`EISDIR ... lstat 'D:'`), so every case failed in the Beaker Windows job. The tests now strip the verbatim prefix before handing a path to Node. `scripts/hook-engine-differential.mjs` also hands bash a forward-slash helper path on Windows, so the bundled helper finds its `lib/` folder instead of failing every case with "missing core/scripts/lib/trigger-fact-text.awk".
21
+ - Internal: on Windows, four replay tests now assert the harness's designed refusals instead of failing on them: `--report <file>` is refused while the stores are off until US-022, and the Grok adapter refuses a HOME holding `\`. Other platforms keep their full assertions.
22
+ - The ontology session brief now puts what the member works on and owns before
23
+ their teams and leads, and prints a reporting line only when a record backs
24
+ it. A manager, report, team or lead that a model wrote with confidence below
25
+ 0.70 is left out of the brief, `hq ontology lookup`, compiled entity pages
26
+ and the entity list sent with a signals document. The brief prints one line
27
+ saying how many it left out.
28
+ - The ontology session brief is now a map: what the company graph holds (a
29
+ count per kind), the commands to look things up (`lookup`, `neighbors`,
30
+ `search`, `traverse`, `activity`) with when to use the graph and when to
31
+ search the vault, and the names of active projects, customers and teammates.
32
+ It no longer prints roles, stages, owners, teams or recent changes; those
33
+ are one `hq ontology lookup` away. `hq ontology brief --style full` (or
34
+ `brief_style: full` in `personal/settings/ontology-reader.yaml`) writes the
35
+ earlier summary. Both styles stay under 1,500 tokens, show a person's name
36
+ in place of a raw Slack id, and label customers "most active" instead of
37
+ "top".
38
+ - `hq ontology remodel --company <slug> --from <model>` asks again, on the model
39
+ the graph is set to use now, what another model wrote (digests of meetings
40
+ and threads, and profiles: role, employer, stage, contacts), and closes the
41
+ old model's rows. The closed rows stay on file with the day and the source.
42
+ `--kinds role_title,affiliation,works_at` picks what is asked again,
43
+ `--dry-run` prints the row counts and an estimate of the input tokens without
44
+ calling a model, and `--budget-tokens`, `--max-input-tokens` and
45
+ `--max-output-tokens` work as on `update`. Rows the replay wrote (typed
46
+ relationships, extractions) are counted and left as they are; a rebuild asks
47
+ those again. A run that is interrupted is finished by the next run before it
48
+ does anything else.
49
+ - Model work left pending is now kept per item, not per model. After a larger
50
+ model finishes the pending work, a later `hq ontology update` on the smaller
51
+ model no longer sends the same items again. Stale entries already in the
52
+ pending file are dropped the next time any ontology command opens it.
53
+ - `hq ontology update --follow-up` sends follow-up work an earlier run left
54
+ pending (profiles, retyped links, decisions that replace each other, page
55
+ summaries, digests), even on a day with nothing new, within the daily cap. A
56
+ plain `update` does not send it and spends what it did before; its summary
57
+ says how many follow-up items are pending. Items the graph no longer asks
58
+ about are dropped with a count and the reason in the summary.
59
+ - Facts and relationships a model reads out of a document now carry the
60
+ model's own confidence instead of a flat 0.60, so a role or employer the
61
+ document states outright is shown by `lookup` and the pages, with the model
62
+ and the source on the same line, and an inferred one is still left out. Rows
63
+ already in a graph keep 0.60 until they are asked again.
64
+ - The session brief no longer prints a role that a model read out of a
65
+ document, at any confidence. It prints a role only from a record, a rule, a
66
+ person's answer or the old entity files.
67
+ - A project's owner that a model wrote at low confidence is no longer shown as
68
+ the owner in the brief, `lookup`, the pages or the signals context.
69
+ - `hq ontology status --company <slug>` prints on one screen which ontology
70
+ this machine's sessions read, the model the graph is built with, whether the
71
+ graph folder is there and whose it is, how many entities and rows it holds,
72
+ how much model work is pending, when it was last updated and how large the
73
+ session brief is. It reads only.
74
+ - `hq ontology reader [graph|entities] --company <slug>` shows or sets which
75
+ ontology this machine's sessions read, in place of a hand-written file.
76
+ `graph` is refused until the company's graph has been built on this machine.
77
+ Running it twice changes nothing, and every reply names the command that
78
+ switches back.
79
+ - `hq ontology model [<model>] --company <slug>` shows or sets the model the
80
+ graph is built with. The setting is per machine and is not synced, and the
81
+ command says so each time, so every teammate sets it on their own machine.
82
+ - `hq ontology rebuild` takes `--max-input-tokens` and `--max-output-tokens`,
83
+ as `hq ontology update` does, so a first build with a model can finish in one
84
+ run. The default cap is unchanged.
85
+ - A bot on a personal Outpost now runs its daily hot-signal-sync as the
86
+ Outpost's owner. Before, the Outpost's own sign-in has no email, so
87
+ `hq sources sync` and `hq signals run` stopped with "signed out of HQ" every
88
+ day. A machine sign-in that acts for no person now says "No person identity
89
+ on this machine" instead of asking you to run `hq login`, and `hq bot start`
90
+ does not add a hot-signal-sync job on such a machine.
91
+ - Fixed: lanes that run on an Outpost now show their final state on your Mac. Before, the background `hq daemon` kept reusing its first read of the Outpost, so it never saw the lane finish and after 15 minutes marked it failed with `remote_lost`. A long-running `hq monitor` had the same problem when it messaged an Outpost lane: it kept its first read, so it could not find a lane the Outpost created later.
92
+ - With the graph reader on, a signal now links to a person the source document
93
+ names only by a Slack id or an email. A Slack thread shows its author as a
94
+ Slack id, so before this most signals from Slack threads were written with no
95
+ `entity_refs`. The key must be a whole token and belong to exactly one
96
+ entity; a key two entities hold links nobody.
97
+ - A `participant_contribution` signal from a thread with one participant links
98
+ to that participant even when its text does not name them.
99
+ - Signal text shows the person's name from the graph where it had a raw Slack
100
+ id the graph resolves to one person. An id the graph does not know, and every
101
+ email, stays as written. Bare first names still do not link.
102
+ - Recognize hq-core v16.0.49 (`d5049d5f`) and v16.0.50 (`774bca73`) `.claude/hooks/master-hook.sh` hashes in `native-stop-compatibility.json` `generations.from104` so native Stop registration and runtime evaluation accept them without holding or refusing.
103
+ - Internal: the native Stop no longer refuses a session id that contains a dot (such as `v16.0.49-allow`). master-hook uses the Stop session id as written for the session folder, its `meta.yaml` company binding and the company Stop hooks; the native Stop's session snapshot and folder-hook company lookup now accept letters, digits, `.`, `_` and `-` (not `.` or `..`) and read the same folder, where they refused the Stop before.
104
+ - Port `agents-v2-adapter:PreToolUse` natively in `hq-hook` (`agents_v2_pre_tool_use`: fail-closed root/gate check, `HQ_COMPANY_SLUG` single-tenant scope pre-bind, inline core/template/sensitive-read/env-dump guards with exact `hq-agents-v2-hook-adapter.sh` wording, `hq_cli` Bash mapping, `pre_approval_request` exec/apply_patch handling, and synchronous settings refusal) and add differential parity tests against `hq-agents-v2` main `853859ac` (US-050-B).
105
+ - Internal: on hosted agents (`agents-v2`), `hq-hook` can now answer the session-end event itself instead of the hq-agents-v2 adapter, matching the fixed adapter (hq-agents-v2 #332): each hook runs once, the adapter's skip list and `HQ_AGENTS_V2_HOOK_SKIP` are applied natively (so the MCP cleanup still never runs there), the company scope is pre-bound from `HQ_COMPANY_SLUG`, and the Work Mesh session-end record names the harness `codex`. A `.claude/settings.json` command other than master-hook is refused natively rather than started. The event stays on the adapter when the installed adapter is not the fixed revision (for example the older `a8e9a7e`, where the MCP cleanup still runs) or when the HQ root has no `.claude/settings.json` or `hook-registry.json`. Other events and hosts are unchanged.
106
+
107
+ ## [5.345.250] — 2026-11-23
108
+ - 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.
109
+ - 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.
110
+ - 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.
111
+ - 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.
112
+ - 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".
113
+ - 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.
114
+ - 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.
115
+ - 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.
116
+ - Changed: the host canary record shipped with the CLI is refreshed for this release build.
117
+ - `hq ontology activity [<person>]` shows what each person does, from behavior in
118
+ the ontology graph: kinds of work with counts, what they ship and own, who they
119
+ work with and how that changed over time. It replaces `hq ontology org
120
+ observed|compare|person` as the visible command; the old names still work.
121
+ Role lines and who appears to direct whom are now shown only with `--roles`,
122
+ and the stated-versus-observed comparison only with `--compare`. Commits to a
123
+ repository named for marketing or design count as that work, and an action
124
+ item filed under a speaker label such as "Host" is no longer counted for a
125
+ person.
126
+ - `hq ontology lookup` no longer lists a role title or an affiliation that a
127
+ model wrote with confidence below 0.70. It prints how many such rows it left
128
+ out and tells the reader to check the sources, and `--json` carries the count
129
+ as `leftOutGuesses`. Rows from records, rules, people and the old entity
130
+ files are shown as before. The same rows are now left out of compiled entity
131
+ pages (and so `lookup --page`), the session brief and the entity list sent
132
+ with a signals document, and they no longer take the place of an established
133
+ value for the same field. `lookup` and the signals entity list also leave out
134
+ an employer relationship a model wrote below 0.70. A page counts what it left
135
+ out as `unconfirmed_model_guesses_left_out`.
136
+ - `hq ontology update` takes `--max-input-tokens <n>` and `--max-output-tokens <n>`
137
+ to raise the model step's cap per day for that one run. The default (150,000
138
+ input and 20,000 output tokens per model per day) is unchanged, so the
139
+ scheduled daily run behaves as before. The run summary of `rebuild` and
140
+ `update` now prints the cap, what the run used, and, when the daily cap or
141
+ `--budget-tokens` stopped the run, which one and how many items are pending.
142
+ `--json` carries the same as `modelCap`.
143
+ - 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.
144
+ - 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.
145
+ - 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.
146
+ - Run knowledge preference lookups in the CLI without bundling a second shell implementation.
147
+
5
148
  ## [5.345.248] — 2026-11-23
6
149
  - 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
150
  - 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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "hq.host-canary-release.v1",
3
- "cliVersion": "5.345.248",
3
+ "cliVersion": "5.345.251",
4
4
  "hosts": {
5
5
  "claude": [
6
6
  {
7
7
  "passed": true,
8
- "at": "2026-11-23T03:43:08.843Z",
9
- "engineVersion": "0.3.1+hq.5.345.248.src.d4a8d681bba7bc9474778bdabd9adcb19435ce292749e0a7151a7fec61b6386b",
8
+ "at": "2026-11-23T20:02:40.967Z",
9
+ "engineVersion": "0.3.1+hq.5.345.251.src.99cd299fb79b3367c65b2895f280daaa61a0b825b0223f002c5d4b56b189f195",
10
10
  "gateSha256": "a2879dfe692233f5953bac86672947bbd82f3c5247292f3efcb80f16c3d2c6b1"
11
11
  }
12
12
  ]
@@ -5693,6 +5693,124 @@ export declare const COMMAND_CATALOG: readonly [{
5693
5693
  readonly arguments: readonly [];
5694
5694
  readonly options: readonly [];
5695
5695
  readonly subcommands: readonly [{
5696
+ readonly name: "status";
5697
+ readonly description: "Show the reader, the model, the graph folder, its counts, pending model work, the last update and the brief (reads only)";
5698
+ readonly aliases: readonly [];
5699
+ readonly hidden: false;
5700
+ readonly helpOption: true;
5701
+ readonly helpCommand: false;
5702
+ readonly usage: "[options]";
5703
+ readonly helpText: readonly [];
5704
+ readonly arguments: readonly [];
5705
+ readonly options: readonly [{
5706
+ readonly flags: "--company <slug>";
5707
+ readonly description: "company whose graph to use";
5708
+ readonly hidden: false;
5709
+ }, {
5710
+ readonly flags: "--hq-root <path>";
5711
+ readonly description: "HQ installation to operate on";
5712
+ readonly hidden: false;
5713
+ }, {
5714
+ readonly flags: "--graph-root <path>";
5715
+ readonly description: "graph folder to use instead of companies/<slug>/.hq/ontology-graph (env HQ_ONTOLOGY_GRAPH_ROOT)";
5716
+ readonly hidden: false;
5717
+ }, {
5718
+ readonly flags: "--member <person uid>";
5719
+ readonly description: "member the graph is built or read for (env HQ_ONTOLOGY_MEMBER)";
5720
+ readonly hidden: false;
5721
+ }, {
5722
+ readonly flags: "--audience-key <key>";
5723
+ readonly description: "audience key the member holds; repeat for more (env HQ_ONTOLOGY_AUDIENCE_KEYS, comma-separated)";
5724
+ readonly hidden: false;
5725
+ }, {
5726
+ readonly flags: "--json";
5727
+ readonly description: "print JSON";
5728
+ readonly hidden: false;
5729
+ }];
5730
+ readonly subcommands: readonly [];
5731
+ }, {
5732
+ readonly name: "reader";
5733
+ readonly description: "Show or set which ontology this machine's sessions read for the company: graph, or entities (the old files)";
5734
+ readonly aliases: readonly [];
5735
+ readonly hidden: false;
5736
+ readonly helpOption: true;
5737
+ readonly helpCommand: false;
5738
+ readonly usage: "[options] [reader]";
5739
+ readonly helpText: readonly [];
5740
+ readonly arguments: readonly [{
5741
+ readonly name: "reader";
5742
+ readonly required: false;
5743
+ readonly variadic: false;
5744
+ readonly description: "graph or entities; leave out to show the setting";
5745
+ }];
5746
+ readonly options: readonly [{
5747
+ readonly flags: "--company <slug>";
5748
+ readonly description: "company whose graph to use";
5749
+ readonly hidden: false;
5750
+ }, {
5751
+ readonly flags: "--hq-root <path>";
5752
+ readonly description: "HQ installation to operate on";
5753
+ readonly hidden: false;
5754
+ }, {
5755
+ readonly flags: "--graph-root <path>";
5756
+ readonly description: "graph folder to use instead of companies/<slug>/.hq/ontology-graph (env HQ_ONTOLOGY_GRAPH_ROOT)";
5757
+ readonly hidden: false;
5758
+ }, {
5759
+ readonly flags: "--member <person uid>";
5760
+ readonly description: "member the graph is built or read for (env HQ_ONTOLOGY_MEMBER)";
5761
+ readonly hidden: false;
5762
+ }, {
5763
+ readonly flags: "--audience-key <key>";
5764
+ readonly description: "audience key the member holds; repeat for more (env HQ_ONTOLOGY_AUDIENCE_KEYS, comma-separated)";
5765
+ readonly hidden: false;
5766
+ }, {
5767
+ readonly flags: "--json";
5768
+ readonly description: "print JSON";
5769
+ readonly hidden: false;
5770
+ }];
5771
+ readonly subcommands: readonly [];
5772
+ }, {
5773
+ readonly name: "model";
5774
+ readonly description: "Show or set the model the graph's model step uses for the company on this machine (per machine; the setting does not sync)";
5775
+ readonly aliases: readonly [];
5776
+ readonly hidden: false;
5777
+ readonly helpOption: true;
5778
+ readonly helpCommand: false;
5779
+ readonly usage: "[options] [model]";
5780
+ readonly helpText: readonly [];
5781
+ readonly arguments: readonly [{
5782
+ readonly name: "model";
5783
+ readonly required: false;
5784
+ readonly variadic: false;
5785
+ readonly description: "model name, for example haiku, sonnet or opus; leave out to show the setting";
5786
+ }];
5787
+ readonly options: readonly [{
5788
+ readonly flags: "--company <slug>";
5789
+ readonly description: "company whose graph to use";
5790
+ readonly hidden: false;
5791
+ }, {
5792
+ readonly flags: "--hq-root <path>";
5793
+ readonly description: "HQ installation to operate on";
5794
+ readonly hidden: false;
5795
+ }, {
5796
+ readonly flags: "--graph-root <path>";
5797
+ readonly description: "graph folder to use instead of companies/<slug>/.hq/ontology-graph (env HQ_ONTOLOGY_GRAPH_ROOT)";
5798
+ readonly hidden: false;
5799
+ }, {
5800
+ readonly flags: "--member <person uid>";
5801
+ readonly description: "member the graph is built or read for (env HQ_ONTOLOGY_MEMBER)";
5802
+ readonly hidden: false;
5803
+ }, {
5804
+ readonly flags: "--audience-key <key>";
5805
+ readonly description: "audience key the member holds; repeat for more (env HQ_ONTOLOGY_AUDIENCE_KEYS, comma-separated)";
5806
+ readonly hidden: false;
5807
+ }, {
5808
+ readonly flags: "--json";
5809
+ readonly description: "print JSON";
5810
+ readonly hidden: false;
5811
+ }];
5812
+ readonly subcommands: readonly [];
5813
+ }, {
5696
5814
  readonly name: "rebuild";
5697
5815
  readonly description: "Rebuild the graph: import the old entity files, then replay the vault day by day";
5698
5816
  readonly aliases: readonly [];
@@ -5742,6 +5860,14 @@ export declare const COMMAND_CATALOG: readonly [{
5742
5860
  readonly flags: "--budget-tokens <n>";
5743
5861
  readonly description: "stop model calls after this many input tokens; 0 runs rules only";
5744
5862
  readonly hidden: false;
5863
+ }, {
5864
+ readonly flags: "--max-input-tokens <n>";
5865
+ readonly description: "model input tokens allowed per day for this run, counting the day's earlier runs (default 150000)";
5866
+ readonly hidden: false;
5867
+ }, {
5868
+ readonly flags: "--max-output-tokens <n>";
5869
+ readonly description: "model output tokens allowed per day for this run (default 20000)";
5870
+ readonly hidden: false;
5745
5871
  }, {
5746
5872
  readonly flags: "--no-model";
5747
5873
  readonly description: "rules only: make no model call and leave model work pending";
@@ -5802,12 +5928,84 @@ export declare const COMMAND_CATALOG: readonly [{
5802
5928
  readonly flags: "--full-listing";
5803
5929
  readonly description: "list the whole corpus again instead of only new and changed files";
5804
5930
  readonly hidden: false;
5931
+ }, {
5932
+ readonly flags: "--max-input-tokens <n>";
5933
+ readonly description: "model input tokens allowed per day for this run, counting the day's earlier runs (default 150000)";
5934
+ readonly hidden: false;
5935
+ }, {
5936
+ readonly flags: "--max-output-tokens <n>";
5937
+ readonly description: "model output tokens allowed per day for this run (default 20000)";
5938
+ readonly hidden: false;
5939
+ }, {
5940
+ readonly flags: "--follow-up";
5941
+ readonly description: "also send model work an earlier run left pending (profiles, retyped links, decisions, summaries), within the daily cap";
5942
+ readonly hidden: false;
5805
5943
  }, {
5806
5944
  readonly flags: "--dry-run";
5807
5945
  readonly description: "read and count, write nothing";
5808
5946
  readonly hidden: false;
5809
5947
  }];
5810
5948
  readonly subcommands: readonly [];
5949
+ }, {
5950
+ readonly name: "remodel";
5951
+ readonly description: "Ask again, on the model in use, what another model wrote, and close that model's rows (history kept)";
5952
+ readonly aliases: readonly [];
5953
+ readonly hidden: false;
5954
+ readonly helpOption: true;
5955
+ readonly helpCommand: false;
5956
+ readonly usage: "[options]";
5957
+ readonly helpText: readonly [];
5958
+ readonly arguments: readonly [];
5959
+ readonly options: readonly [{
5960
+ readonly flags: "--company <slug>";
5961
+ readonly description: "company whose graph to use";
5962
+ readonly hidden: false;
5963
+ }, {
5964
+ readonly flags: "--hq-root <path>";
5965
+ readonly description: "HQ installation to operate on";
5966
+ readonly hidden: false;
5967
+ }, {
5968
+ readonly flags: "--graph-root <path>";
5969
+ readonly description: "graph folder to use instead of companies/<slug>/.hq/ontology-graph (env HQ_ONTOLOGY_GRAPH_ROOT)";
5970
+ readonly hidden: false;
5971
+ }, {
5972
+ readonly flags: "--member <person uid>";
5973
+ readonly description: "member the graph is built or read for (env HQ_ONTOLOGY_MEMBER)";
5974
+ readonly hidden: false;
5975
+ }, {
5976
+ readonly flags: "--audience-key <key>";
5977
+ readonly description: "audience key the member holds; repeat for more (env HQ_ONTOLOGY_AUDIENCE_KEYS, comma-separated)";
5978
+ readonly hidden: false;
5979
+ }, {
5980
+ readonly flags: "--json";
5981
+ readonly description: "print JSON";
5982
+ readonly hidden: false;
5983
+ }, {
5984
+ readonly flags: "--from <model>";
5985
+ readonly description: "model whose rows to replace, for example haiku";
5986
+ readonly hidden: false;
5987
+ }, {
5988
+ readonly flags: "--kinds <list>";
5989
+ readonly description: "ask again only what wrote these fact fields and relationship verbs, comma-separated (role_title,affiliation,works_at)";
5990
+ readonly hidden: false;
5991
+ }, {
5992
+ readonly flags: "--budget-tokens <n>";
5993
+ readonly description: "stop model calls after this many input tokens";
5994
+ readonly hidden: false;
5995
+ }, {
5996
+ readonly flags: "--max-input-tokens <n>";
5997
+ readonly description: "model input tokens allowed per day for this run, counting the day's earlier runs (default 150000)";
5998
+ readonly hidden: false;
5999
+ }, {
6000
+ readonly flags: "--max-output-tokens <n>";
6001
+ readonly description: "model output tokens allowed per day for this run (default 20000)";
6002
+ readonly hidden: false;
6003
+ }, {
6004
+ readonly flags: "--dry-run";
6005
+ readonly description: "count the rows and estimate the tokens; call no model and write nothing";
6006
+ readonly hidden: false;
6007
+ }];
6008
+ readonly subcommands: readonly [];
5811
6009
  }, {
5812
6010
  readonly name: "lookup";
5813
6011
  readonly description: "Find an entity by name and print its facts, each with a source and date";
@@ -6027,7 +6225,7 @@ export declare const COMMAND_CATALOG: readonly [{
6027
6225
  readonly subcommands: readonly [];
6028
6226
  }, {
6029
6227
  readonly name: "brief";
6030
- readonly description: "Write brief.md, the short summary every session starts with";
6228
+ readonly description: "Write brief.md, the short text every session starts with: a map of the graph and how to look things up";
6031
6229
  readonly aliases: readonly [];
6032
6230
  readonly hidden: false;
6033
6231
  readonly helpOption: true;
@@ -6063,6 +6261,10 @@ export declare const COMMAND_CATALOG: readonly [{
6063
6261
  readonly flags: "--stdout";
6064
6262
  readonly description: "print the brief without writing it";
6065
6263
  readonly hidden: false;
6264
+ }, {
6265
+ readonly flags: "--style <style>";
6266
+ readonly description: "map: what the graph holds, the lookup commands and names worth looking up, with no facts. full: the earlier summary with facts in it. Default: brief_style in the reader setting, else map";
6267
+ readonly hidden: false;
6066
6268
  }];
6067
6269
  readonly subcommands: readonly [];
6068
6270
  }, {
@@ -6458,9 +6660,9 @@ export declare const COMMAND_CATALOG: readonly [{
6458
6660
  }];
6459
6661
  }, {
6460
6662
  readonly name: "org";
6461
- readonly description: "The org as observed from behavior in the graph, beside the stated one. Inferred, never a confirmed fact";
6663
+ readonly description: "Earlier name of `hq ontology activity`. Inferred from behavior, never a confirmed fact";
6462
6664
  readonly aliases: readonly [];
6463
- readonly hidden: false;
6665
+ readonly hidden: true;
6464
6666
  readonly helpOption: true;
6465
6667
  readonly helpCommand: true;
6466
6668
  readonly usage: "[options] [command]";
@@ -6469,7 +6671,7 @@ export declare const COMMAND_CATALOG: readonly [{
6469
6671
  readonly options: readonly [];
6470
6672
  readonly subcommands: readonly [{
6471
6673
  readonly name: "observed";
6472
- readonly description: "Print the observed org: role, areas, who appears to direct whom, groups and de facto owners. Stores nothing without --write";
6674
+ readonly description: "Same as `hq ontology activity`";
6473
6675
  readonly aliases: readonly [];
6474
6676
  readonly hidden: false;
6475
6677
  readonly helpOption: true;
@@ -6509,9 +6711,13 @@ export declare const COMMAND_CATALOG: readonly [{
6509
6711
  readonly flags: "--as-of <date>";
6510
6712
  readonly description: "the day the 30, 90 and 365 day windows end on (YYYY-MM-DD; default today)";
6511
6713
  readonly hidden: false;
6714
+ }, {
6715
+ readonly flags: "--roles";
6716
+ readonly description: "also show the inferred role line and who appears to direct whom";
6717
+ readonly hidden: false;
6512
6718
  }, {
6513
6719
  readonly flags: "--model";
6514
- readonly description: "phrase each active person's observed role with one small model call";
6720
+ readonly description: "with --roles, phrase each active person's role line with one small model call";
6515
6721
  readonly hidden: false;
6516
6722
  }, {
6517
6723
  readonly flags: "--write";
@@ -6521,7 +6727,7 @@ export declare const COMMAND_CATALOG: readonly [{
6521
6727
  readonly subcommands: readonly [];
6522
6728
  }, {
6523
6729
  readonly name: "compare";
6524
- readonly description: "Print stated beside observed: title, manager and listed owner against behavior. Changes nothing";
6730
+ readonly description: "Same as `hq ontology activity --compare`";
6525
6731
  readonly aliases: readonly [];
6526
6732
  readonly hidden: false;
6527
6733
  readonly helpOption: true;
@@ -6561,15 +6767,19 @@ export declare const COMMAND_CATALOG: readonly [{
6561
6767
  readonly flags: "--as-of <date>";
6562
6768
  readonly description: "the day the 30, 90 and 365 day windows end on (YYYY-MM-DD; default today)";
6563
6769
  readonly hidden: false;
6770
+ }, {
6771
+ readonly flags: "--roles";
6772
+ readonly description: "also show the inferred role line and who appears to direct whom";
6773
+ readonly hidden: false;
6564
6774
  }, {
6565
6775
  readonly flags: "--model";
6566
- readonly description: "phrase each active person's observed role with one small model call";
6776
+ readonly description: "with --roles, phrase each active person's role line with one small model call";
6567
6777
  readonly hidden: false;
6568
6778
  }];
6569
6779
  readonly subcommands: readonly [];
6570
6780
  }, {
6571
6781
  readonly name: "person";
6572
- readonly description: "Print one person's observed activity by window, coverage, edges and stated claims. Changes nothing";
6782
+ readonly description: "Same as `hq ontology activity <person>`";
6573
6783
  readonly aliases: readonly [];
6574
6784
  readonly hidden: false;
6575
6785
  readonly helpOption: true;
@@ -6614,13 +6824,82 @@ export declare const COMMAND_CATALOG: readonly [{
6614
6824
  readonly flags: "--as-of <date>";
6615
6825
  readonly description: "the day the 30, 90 and 365 day windows end on (YYYY-MM-DD; default today)";
6616
6826
  readonly hidden: false;
6827
+ }, {
6828
+ readonly flags: "--roles";
6829
+ readonly description: "also show the inferred role line and who appears to direct whom";
6830
+ readonly hidden: false;
6617
6831
  }, {
6618
6832
  readonly flags: "--model";
6619
- readonly description: "phrase each active person's observed role with one small model call";
6833
+ readonly description: "with --roles, phrase each active person's role line with one small model call";
6620
6834
  readonly hidden: false;
6621
6835
  }];
6622
6836
  readonly subcommands: readonly [];
6623
6837
  }];
6838
+ }, {
6839
+ readonly name: "activity";
6840
+ readonly description: "What each person does, from behavior in the graph: kinds of work with counts, what they ship and own, who they work with, change over time. Inferred; stores nothing without --write";
6841
+ readonly aliases: readonly [];
6842
+ readonly hidden: false;
6843
+ readonly helpOption: true;
6844
+ readonly helpCommand: false;
6845
+ readonly usage: "[options] [person]";
6846
+ readonly helpText: readonly [];
6847
+ readonly arguments: readonly [{
6848
+ readonly name: "person";
6849
+ readonly required: false;
6850
+ readonly variadic: false;
6851
+ readonly description: "one person's name or slug; without it, everyone";
6852
+ }];
6853
+ readonly options: readonly [{
6854
+ readonly flags: "--company <slug>";
6855
+ readonly description: "company whose graph to use";
6856
+ readonly hidden: false;
6857
+ }, {
6858
+ readonly flags: "--hq-root <path>";
6859
+ readonly description: "HQ installation to operate on";
6860
+ readonly hidden: false;
6861
+ }, {
6862
+ readonly flags: "--graph-root <path>";
6863
+ readonly description: "graph folder to use instead of companies/<slug>/.hq/ontology-graph (env HQ_ONTOLOGY_GRAPH_ROOT)";
6864
+ readonly hidden: false;
6865
+ }, {
6866
+ readonly flags: "--member <person uid>";
6867
+ readonly description: "member the graph is built or read for (env HQ_ONTOLOGY_MEMBER)";
6868
+ readonly hidden: false;
6869
+ }, {
6870
+ readonly flags: "--audience-key <key>";
6871
+ readonly description: "audience key the member holds; repeat for more (env HQ_ONTOLOGY_AUDIENCE_KEYS, comma-separated)";
6872
+ readonly hidden: false;
6873
+ }, {
6874
+ readonly flags: "--json";
6875
+ readonly description: "print JSON";
6876
+ readonly hidden: false;
6877
+ }, {
6878
+ readonly flags: "--view <view>";
6879
+ readonly description: "company (company-wide rows only) or member (also the rows only this member may read)";
6880
+ readonly hidden: false;
6881
+ }, {
6882
+ readonly flags: "--as-of <date>";
6883
+ readonly description: "the day the 30, 90 and 365 day windows end on (YYYY-MM-DD; default today)";
6884
+ readonly hidden: false;
6885
+ }, {
6886
+ readonly flags: "--roles";
6887
+ readonly description: "also show the inferred role line and who appears to direct whom";
6888
+ readonly hidden: false;
6889
+ }, {
6890
+ readonly flags: "--model";
6891
+ readonly description: "with --roles, phrase each active person's role line with one small model call";
6892
+ readonly hidden: false;
6893
+ }, {
6894
+ readonly flags: "--compare";
6895
+ readonly description: "print stated beside observed instead: title, manager and listed owner against behavior";
6896
+ readonly hidden: false;
6897
+ }, {
6898
+ readonly flags: "--write";
6899
+ readonly description: "also store the derived rows in the graph folder, marked as inferred";
6900
+ readonly hidden: false;
6901
+ }];
6902
+ readonly subcommands: readonly [];
6624
6903
  }, {
6625
6904
  readonly name: "daily";
6626
6905
  readonly description: "The daily job: update, lint, brief, once a day unless --force";