@aligndottech/cli 0.63.0 → 0.64.1

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 (318) hide show
  1. package/README.md +3 -2
  2. package/dist/cli.d.ts +2 -2
  3. package/dist/cli.js +6 -6
  4. package/dist/cli.js.map +1 -1
  5. package/dist/commands/adjudicate.d.ts +3 -3
  6. package/dist/commands/capture.js +2 -2
  7. package/dist/commands/capture.js.map +1 -1
  8. package/dist/commands/check.d.ts +1 -1
  9. package/dist/commands/check.js +30 -30
  10. package/dist/commands/check.js.map +1 -1
  11. package/dist/commands/connect-agents.d.ts +4 -2
  12. package/dist/commands/connect-agents.d.ts.map +1 -1
  13. package/dist/commands/connect-agents.js +7 -7
  14. package/dist/commands/connect-agents.js.map +1 -1
  15. package/dist/commands/connect.d.ts +1 -1
  16. package/dist/commands/connector/index.js +1 -1
  17. package/dist/commands/connector/index.js.map +1 -1
  18. package/dist/commands/context.d.ts +4 -4
  19. package/dist/commands/context.js +7 -7
  20. package/dist/commands/context.js.map +1 -1
  21. package/dist/commands/decisions/index.js +4 -4
  22. package/dist/commands/decisions/index.js.map +1 -1
  23. package/dist/commands/default-action.d.ts.map +1 -1
  24. package/dist/commands/default-action.js +8 -5
  25. package/dist/commands/default-action.js.map +1 -1
  26. package/dist/commands/glossary.d.ts +1 -1
  27. package/dist/commands/import/confluence.js +1 -1
  28. package/dist/commands/import/confluence.js.map +1 -1
  29. package/dist/commands/import/git.js +4 -4
  30. package/dist/commands/import/git.js.map +1 -1
  31. package/dist/commands/import/jira.js +1 -1
  32. package/dist/commands/import/jira.js.map +1 -1
  33. package/dist/commands/import/sessions.d.ts +6 -6
  34. package/dist/commands/import/sessions.js +10 -10
  35. package/dist/commands/import/sessions.js.map +1 -1
  36. package/dist/commands/import.d.ts +2 -2
  37. package/dist/commands/import.js +2 -2
  38. package/dist/commands/invite.d.ts +1 -1
  39. package/dist/commands/invite.js +1 -1
  40. package/dist/commands/invite.js.map +1 -1
  41. package/dist/commands/local.js +3 -3
  42. package/dist/commands/local.js.map +1 -1
  43. package/dist/commands/mcp.d.ts +4 -4
  44. package/dist/commands/mcp.d.ts.map +1 -1
  45. package/dist/commands/mcp.js +34 -35
  46. package/dist/commands/mcp.js.map +1 -1
  47. package/dist/commands/ratify.d.ts +1 -1
  48. package/dist/commands/ratify.js +1 -1
  49. package/dist/commands/ratify.js.map +1 -1
  50. package/dist/commands/registry.d.ts +2 -2
  51. package/dist/commands/registry.js +3 -3
  52. package/dist/commands/registry.js.map +1 -1
  53. package/dist/commands/search.js +2 -2
  54. package/dist/commands/search.js.map +1 -1
  55. package/dist/commands/setup.d.ts +14 -10
  56. package/dist/commands/setup.d.ts.map +1 -1
  57. package/dist/commands/setup.js +133 -75
  58. package/dist/commands/setup.js.map +1 -1
  59. package/dist/commands/status.js +2 -2
  60. package/dist/commands/status.js.map +1 -1
  61. package/dist/commands/telemetry.d.ts +2 -2
  62. package/dist/commands/telemetry.js +3 -3
  63. package/dist/commands/telemetry.js.map +1 -1
  64. package/dist/commands/why.js +31 -31
  65. package/dist/commands/why.js.map +1 -1
  66. package/dist/detector/local-model-default.d.ts +1 -1
  67. package/dist/detector/local-model-default.js +1 -1
  68. package/dist/index.js +2 -2
  69. package/dist/index.js.map +1 -1
  70. package/dist/lib/access-capability.d.ts +1 -1
  71. package/dist/lib/access-capability.js +1 -1
  72. package/dist/lib/advisory-verdict.d.ts +3 -3
  73. package/dist/lib/advisory-verdict.js +3 -3
  74. package/dist/lib/agent-rules.d.ts +9 -0
  75. package/dist/lib/agent-rules.d.ts.map +1 -1
  76. package/dist/lib/agent-rules.js +55 -39
  77. package/dist/lib/agent-rules.js.map +1 -1
  78. package/dist/lib/approve-suggestions.d.ts +1 -1
  79. package/dist/lib/approve-suggestions.js +1 -1
  80. package/dist/lib/as-of.d.ts +6 -6
  81. package/dist/lib/as-of.js +6 -6
  82. package/dist/lib/ask-evidence.js +1 -1
  83. package/dist/lib/ask-key-offer.js +1 -1
  84. package/dist/lib/ask-listing.js +1 -1
  85. package/dist/lib/brand.d.ts +2 -2
  86. package/dist/lib/brand.js +3 -3
  87. package/dist/lib/capture-report.d.ts +1 -1
  88. package/dist/lib/capture-report.d.ts.map +1 -1
  89. package/dist/lib/capture-report.js +3 -3
  90. package/dist/lib/capture-report.js.map +1 -1
  91. package/dist/lib/capture-sources.d.ts +1 -1
  92. package/dist/lib/capture-sources.js +1 -1
  93. package/dist/lib/check-depth.d.ts +1 -1
  94. package/dist/lib/check-depth.js +1 -1
  95. package/dist/lib/claude-presence.d.ts +1 -1
  96. package/dist/lib/claude-presence.js +1 -1
  97. package/dist/lib/cli-oauth.js +1 -1
  98. package/dist/lib/cli-oauth.js.map +1 -1
  99. package/dist/lib/commands-doc.d.ts +1 -1
  100. package/dist/lib/commands-doc.js +1 -1
  101. package/dist/lib/commit-cite.js +2 -2
  102. package/dist/lib/commit-shape.d.ts +1 -1
  103. package/dist/lib/commit-shape.js +1 -1
  104. package/dist/lib/config.d.ts +6 -6
  105. package/dist/lib/config.js +7 -7
  106. package/dist/lib/config.js.map +1 -1
  107. package/dist/lib/connect-prompt.d.ts +1 -1
  108. package/dist/lib/connect-prompt.js +1 -1
  109. package/dist/lib/decider-kind.d.ts +4 -4
  110. package/dist/lib/decider-kind.js +4 -4
  111. package/dist/lib/decision-links.d.ts +7 -8
  112. package/dist/lib/decision-links.d.ts.map +1 -1
  113. package/dist/lib/decision-links.js +8 -9
  114. package/dist/lib/decision-links.js.map +1 -1
  115. package/dist/lib/decision-refs.d.ts +3 -3
  116. package/dist/lib/decision-refs.js +4 -4
  117. package/dist/lib/decision-refs.js.map +1 -1
  118. package/dist/lib/decision-relations.d.ts +4 -4
  119. package/dist/lib/decision-relations.js +4 -4
  120. package/dist/lib/decision-render.d.ts +2 -2
  121. package/dist/lib/decision-render.d.ts.map +1 -1
  122. package/dist/lib/decision-render.js +5 -5
  123. package/dist/lib/decision-render.js.map +1 -1
  124. package/dist/lib/decisions-context.d.ts +4 -4
  125. package/dist/lib/decisions-context.js +5 -5
  126. package/dist/lib/decisions-context.js.map +1 -1
  127. package/dist/lib/doctor-mcp.js +1 -1
  128. package/dist/lib/doctor.d.ts +2 -2
  129. package/dist/lib/embedding-assets.js +1 -1
  130. package/dist/lib/embedding-runtime.js +1 -1
  131. package/dist/lib/fetchers/capture.d.ts +1 -1
  132. package/dist/lib/fetchers/docs.d.ts +1 -1
  133. package/dist/lib/fetchers/docs.js +5 -5
  134. package/dist/lib/fetchers/docs.js.map +1 -1
  135. package/dist/lib/fetchers/git.d.ts +1 -1
  136. package/dist/lib/fetchers/git.js +1 -1
  137. package/dist/lib/fetchers/github.d.ts +2 -2
  138. package/dist/lib/fetchers/github.js +2 -2
  139. package/dist/lib/fetchers/linear.js +1 -1
  140. package/dist/lib/fetchers/slack.d.ts +2 -2
  141. package/dist/lib/fetchers/slack.js +2 -2
  142. package/dist/lib/first-decision.d.ts +1 -1
  143. package/dist/lib/first-decision.js +1 -1
  144. package/dist/lib/first-run-pr-import.d.ts +1 -1
  145. package/dist/lib/format-date.d.ts +1 -1
  146. package/dist/lib/format-date.js +1 -1
  147. package/dist/lib/found-summary.js +4 -4
  148. package/dist/lib/found-summary.js.map +1 -1
  149. package/dist/lib/gateway-client.d.ts +27 -27
  150. package/dist/lib/gateway-client.d.ts.map +1 -1
  151. package/dist/lib/gateway-client.js +30 -30
  152. package/dist/lib/gateway-client.js.map +1 -1
  153. package/dist/lib/git.d.ts +10 -10
  154. package/dist/lib/git.d.ts.map +1 -1
  155. package/dist/lib/git.js +12 -12
  156. package/dist/lib/git.js.map +1 -1
  157. package/dist/lib/hook-context.js +1 -1
  158. package/dist/lib/hook-payload.d.ts +1 -1
  159. package/dist/lib/hybrid-rank.d.ts +3 -3
  160. package/dist/lib/hybrid-rank.d.ts.map +1 -1
  161. package/dist/lib/hybrid-rank.js +3 -3
  162. package/dist/lib/hybrid-rank.js.map +1 -1
  163. package/dist/lib/import-defaults.d.ts +5 -5
  164. package/dist/lib/import-defaults.js +3 -3
  165. package/dist/lib/inline-rules.d.ts +1 -1
  166. package/dist/lib/inline-rules.js +1 -1
  167. package/dist/lib/invite-prompt.d.ts +1 -1
  168. package/dist/lib/invite-prompt.js +1 -1
  169. package/dist/lib/launch/mcp-child-env.js +1 -1
  170. package/dist/lib/launch/mcp-child-env.js.map +1 -1
  171. package/dist/lib/launch/strict-entry.js +2 -2
  172. package/dist/lib/launch/strict-entry.js.map +1 -1
  173. package/dist/lib/lexical-store.d.ts +1 -1
  174. package/dist/lib/lexical-store.js +1 -1
  175. package/dist/lib/lexical-terms.d.ts +1 -1
  176. package/dist/lib/lexical-terms.js +1 -1
  177. package/dist/lib/lexical-text.d.ts +2 -2
  178. package/dist/lib/lexical-text.js +2 -2
  179. package/dist/lib/llm-providers.d.ts +1 -1
  180. package/dist/lib/llm-providers.js +2 -2
  181. package/dist/lib/llm-providers.js.map +1 -1
  182. package/dist/lib/llm-trace.d.ts +1 -1
  183. package/dist/lib/llm-trace.js +1 -1
  184. package/dist/lib/llm-trace.js.map +1 -1
  185. package/dist/lib/local-candidate-classify.d.ts +1 -1
  186. package/dist/lib/local-candidate-classify.js +3 -3
  187. package/dist/lib/local-candidate-classify.js.map +1 -1
  188. package/dist/lib/local-db-migrate.d.ts +6 -6
  189. package/dist/lib/local-db-migrate.js +9 -9
  190. package/dist/lib/local-db-migrate.js.map +1 -1
  191. package/dist/lib/local-db-v11.d.ts +1 -1
  192. package/dist/lib/local-db.d.ts +33 -33
  193. package/dist/lib/local-db.d.ts.map +1 -1
  194. package/dist/lib/local-db.js +27 -27
  195. package/dist/lib/local-db.js.map +1 -1
  196. package/dist/lib/local-embeddings-native.js +1 -1
  197. package/dist/lib/local-embeddings.d.ts +2 -2
  198. package/dist/lib/local-embeddings.js +2 -2
  199. package/dist/lib/local-embeddings.js.map +1 -1
  200. package/dist/lib/local-gateway-client.d.ts +5 -5
  201. package/dist/lib/local-gateway-client.js +40 -40
  202. package/dist/lib/local-gateway-client.js.map +1 -1
  203. package/dist/lib/local-ingest.d.ts +3 -3
  204. package/dist/lib/local-ingest.js +3 -3
  205. package/dist/lib/local-link-pass.js +1 -1
  206. package/dist/lib/local-link-pass.js.map +1 -1
  207. package/dist/lib/local-llm.d.ts +21 -22
  208. package/dist/lib/local-llm.d.ts.map +1 -1
  209. package/dist/lib/local-llm.js +28 -30
  210. package/dist/lib/local-llm.js.map +1 -1
  211. package/dist/lib/local-mode.d.ts +1 -1
  212. package/dist/lib/local-mode.js +2 -2
  213. package/dist/lib/local-mode.js.map +1 -1
  214. package/dist/lib/local-provenance.d.ts +1 -1
  215. package/dist/lib/local-provenance.js +1 -1
  216. package/dist/lib/local-relationship-classifier.d.ts +6 -6
  217. package/dist/lib/local-relationship-classifier.js +7 -7
  218. package/dist/lib/local-relationship-classifier.js.map +1 -1
  219. package/dist/lib/local-thresholds.d.ts +3 -3
  220. package/dist/lib/local-thresholds.js +4 -4
  221. package/dist/lib/local-thresholds.js.map +1 -1
  222. package/dist/lib/mcp/share-status-tool.js +1 -1
  223. package/dist/lib/mcp/share-tool.js +1 -1
  224. package/dist/lib/mcp-setup.d.ts +11 -4
  225. package/dist/lib/mcp-setup.d.ts.map +1 -1
  226. package/dist/lib/mcp-setup.js +22 -12
  227. package/dist/lib/mcp-setup.js.map +1 -1
  228. package/dist/lib/mcp-timeline-tools.d.ts +5 -5
  229. package/dist/lib/mcp-timeline-tools.d.ts.map +1 -1
  230. package/dist/lib/mcp-timeline-tools.js +22 -23
  231. package/dist/lib/mcp-timeline-tools.js.map +1 -1
  232. package/dist/lib/next-step.d.ts +11 -5
  233. package/dist/lib/next-step.d.ts.map +1 -1
  234. package/dist/lib/next-step.js +12 -4
  235. package/dist/lib/next-step.js.map +1 -1
  236. package/dist/lib/personal-import.d.ts +3 -3
  237. package/dist/lib/personal-import.d.ts.map +1 -1
  238. package/dist/lib/personal-import.js +4 -4
  239. package/dist/lib/personal-import.js.map +1 -1
  240. package/dist/lib/personal-oauth.js +3 -3
  241. package/dist/lib/personal-oauth.js.map +1 -1
  242. package/dist/lib/query-expand.d.ts +1 -1
  243. package/dist/lib/query-expand.js +1 -1
  244. package/dist/lib/read-value-rollup.d.ts +2 -2
  245. package/dist/lib/read-value-rollup.js +3 -3
  246. package/dist/lib/read-value-rollup.js.map +1 -1
  247. package/dist/lib/reason-extract.d.ts +1 -1
  248. package/dist/lib/reason-extract.js +1 -1
  249. package/dist/lib/repo-identity.d.ts +2 -2
  250. package/dist/lib/repo-identity.js +3 -3
  251. package/dist/lib/resolve-env.d.ts +1 -1
  252. package/dist/lib/resolve-env.js +1 -1
  253. package/dist/lib/scope-defaults.js +1 -1
  254. package/dist/lib/scope-real.d.ts.map +1 -1
  255. package/dist/lib/scope-real.js +1 -1
  256. package/dist/lib/scope-real.js.map +1 -1
  257. package/dist/lib/search-query.d.ts +2 -2
  258. package/dist/lib/search-query.js +2 -2
  259. package/dist/lib/search-rerank.d.ts +1 -1
  260. package/dist/lib/search-rerank.js +1 -1
  261. package/dist/lib/sessions/confirm-freetext.d.ts +3 -3
  262. package/dist/lib/sessions/confirm-freetext.d.ts.map +1 -1
  263. package/dist/lib/sessions/confirm-freetext.js +2 -2
  264. package/dist/lib/sessions/extract-freetext.d.ts +3 -3
  265. package/dist/lib/sessions/extract-freetext.d.ts.map +1 -1
  266. package/dist/lib/sessions/import-summary.d.ts +1 -1
  267. package/dist/lib/sessions/import-summary.js +1 -1
  268. package/dist/lib/sessions/memory-files.d.ts +1 -1
  269. package/dist/lib/sessions/memory-files.js +5 -5
  270. package/dist/lib/sessions/source-url.d.ts +2 -2
  271. package/dist/lib/sessions/source-url.js +2 -2
  272. package/dist/lib/sessions/types.d.ts +6 -6
  273. package/dist/lib/sessions/types.js +4 -4
  274. package/dist/lib/setup-funnel.d.ts +2 -2
  275. package/dist/lib/setup-ux.d.ts +2 -2
  276. package/dist/lib/setup-ux.js +3 -3
  277. package/dist/lib/setup-ux.js.map +1 -1
  278. package/dist/lib/share/approval.js +1 -1
  279. package/dist/lib/share/browser-flow.d.ts +1 -1
  280. package/dist/lib/share/browser-flow.js +1 -1
  281. package/dist/lib/share/command.js +1 -1
  282. package/dist/lib/share/envelope.js +1 -1
  283. package/dist/lib/share/pending.d.ts +1 -1
  284. package/dist/lib/share/requests-client.d.ts +1 -1
  285. package/dist/lib/share/run.d.ts +1 -1
  286. package/dist/lib/sparse-graph.d.ts +20 -0
  287. package/dist/lib/sparse-graph.d.ts.map +1 -0
  288. package/dist/lib/sparse-graph.js +39 -0
  289. package/dist/lib/sparse-graph.js.map +1 -0
  290. package/dist/lib/suppress-sqlite-warning.d.ts +1 -1
  291. package/dist/lib/sync/real-env.d.ts.map +1 -1
  292. package/dist/lib/telemetry-env.d.ts +3 -3
  293. package/dist/lib/telemetry-env.js +1 -1
  294. package/dist/lib/token-estimate.d.ts +1 -1
  295. package/dist/lib/token-estimate.js +3 -3
  296. package/dist/lib/token-estimate.js.map +1 -1
  297. package/dist/lib/token-scope-gate.d.ts +1 -1
  298. package/dist/lib/token-scope-gate.js +1 -1
  299. package/dist/lib/trusted-align-bin.d.ts +2 -2
  300. package/dist/lib/trusted-align-bin.d.ts.map +1 -1
  301. package/dist/lib/trusted-align-bin.js +2 -2
  302. package/dist/lib/trusted-align-bin.js.map +1 -1
  303. package/dist/lib/usage-telemetry.d.ts +17 -17
  304. package/dist/lib/usage-telemetry.js +24 -24
  305. package/dist/lib/usage-telemetry.js.map +1 -1
  306. package/dist/lib/user-hooks.d.ts +1 -1
  307. package/dist/lib/user-hooks.d.ts.map +1 -1
  308. package/dist/lib/user-hooks.js +3 -3
  309. package/dist/lib/user-hooks.js.map +1 -1
  310. package/dist/lib/value-rollup.d.ts +7 -7
  311. package/dist/lib/value-rollup.d.ts.map +1 -1
  312. package/dist/lib/value-rollup.js +12 -12
  313. package/dist/lib/value-rollup.js.map +1 -1
  314. package/dist/lib/write-confirm.d.ts +53 -0
  315. package/dist/lib/write-confirm.d.ts.map +1 -0
  316. package/dist/lib/write-confirm.js +70 -0
  317. package/dist/lib/write-confirm.js.map +1 -0
  318. package/package.json +7 -7
@@ -2,9 +2,9 @@ import { type CaptureFetchResult, type WindowedOpts } from './capture.js';
2
2
  /**
3
3
  * Read-only personal Slack import (canonical fetcher in connector-core).
4
4
  *
5
- * ALI-786 finding 1 (a 0.29.1 field report: deletion tombstones - "This message was
5
+ * A finding (a 0.29.1 field report: deletion tombstones - "This message was
6
6
  * deleted." - captured as decisions) is already fixed upstream, not here: SlackFetcher's
7
- * SYSTEM_SUBTYPES set (connector-core >=0.6.0, ALI-828) excludes a `tombstone` subtype
7
+ * SYSTEM_SUBTYPES set (connector-core >=0.6.0) excludes a `tombstone` subtype
8
8
  * message from ever becoming a thread's title/identity, and this package.json pins
9
9
  * ^0.7.0. Do not add a second tombstone filter in this wrapper - connector-core is the
10
10
  * one owner of Slack's subtype vocabulary, and a duplicate copy here would drift the
@@ -3,9 +3,9 @@ import { withCaptureReport } from './capture.js';
3
3
  /**
4
4
  * Read-only personal Slack import (canonical fetcher in connector-core).
5
5
  *
6
- * ALI-786 finding 1 (a 0.29.1 field report: deletion tombstones - "This message was
6
+ * A finding (a 0.29.1 field report: deletion tombstones - "This message was
7
7
  * deleted." - captured as decisions) is already fixed upstream, not here: SlackFetcher's
8
- * SYSTEM_SUBTYPES set (connector-core >=0.6.0, ALI-828) excludes a `tombstone` subtype
8
+ * SYSTEM_SUBTYPES set (connector-core >=0.6.0) excludes a `tombstone` subtype
9
9
  * message from ever becoming a thread's title/identity, and this package.json pins
10
10
  * ^0.7.0. Do not add a second tombstone filter in this wrapper - connector-core is the
11
11
  * one owner of Slack's subtype vocabulary, and a duplicate copy here would drift the
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ALI-950: the question the outro and the second-run card hand the agent names a REAL
2
+ * The question the outro and the second-run card hand the agent names a REAL
3
3
  * decision from the graph, so "why did we X" is checkable against the repo the user is
4
4
  * sitting in. Read straight back from the graph rather than trusting an import's tally
5
5
  * (the same rule as the local found-summary), and one read answers both "is there
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ALI-950: the question the outro and the second-run card hand the agent names a REAL
2
+ * The question the outro and the second-run card hand the agent names a REAL
3
3
  * decision from the graph, so "why did we X" is checkable against the repo the user is
4
4
  * sitting in. Read straight back from the graph rather than trusting an import's tally
5
5
  * (the same rule as the local found-summary), and one read answers both "is there
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ALI-1749 / ALI-1782: first run reads the merged PR descriptions of a GitHub origin.
2
+ * First run reads the merged PR descriptions of a GitHub origin.
3
3
  *
4
4
  * Why: most commits never state a reason (measured null "no stated reason" rate: fastify 96.7%,
5
5
  * vite 96.7%, pnpm 74.0%), because squash-merge repos keep the reason in the PR description, not
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Human-friendly timestamps for CLI output (ALI-118): relative for recent
2
+ * Human-friendly timestamps for CLI output: relative for recent
3
3
  * decisions ("today", "3 days ago") so recency is obvious at a glance, absolute
4
4
  * ("30 May 2026") once it's older. `now` is injectable for deterministic tests.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Human-friendly timestamps for CLI output (ALI-118): relative for recent
2
+ * Human-friendly timestamps for CLI output: relative for recent
3
3
  * decisions ("today", "3 days ago") so recency is obvious at a glance, absolute
4
4
  * ("30 May 2026") once it's older. `now` is injectable for deterministic tests.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * ALI-794: the "here's what I found" summary - the first thing a fresh user sees,
2
+ * The "here's what I found" summary - the first thing a fresh user sees,
3
3
  * before any credential is asked for.
4
4
  *
5
5
  * It replaces the bare `Imported N decisions from Git` spinner line, which reports
@@ -15,7 +15,7 @@ import { localCitationFor } from './commit-cite.js';
15
15
  /** How many decisions the summary names. Five fits a terminal without scrolling. */
16
16
  export const FOUND_SUMMARY_MAX = 5;
17
17
  /**
18
- * ALI-1772: subjects that read as housekeeping, not as a choice. The importer keeps them (a
18
+ * Subjects that read as housekeeping, not as a choice. The importer keeps them (a
19
19
  * docs commit can state a reason), so this only decides what the first-run box SHOWS first.
20
20
  * Conventional `type:` / `type(scope):` shapes only, so prose like "document the retry
21
21
  * policy" is not demoted; plus git's own Merge subjects (not prose like "Merge the two workers") and a `[DRAFT` / `[WIP` marker.
@@ -52,7 +52,7 @@ export function buildFoundSummary(db) {
52
52
  }
53
53
  export function renderFoundSummary(s, opts = {}) {
54
54
  if (s.total === 0) {
55
- // A row of zeros reads as a broken tool, which is the ALI-503 lesson applied to
55
+ // A row of zeros reads as a broken tool, which is the lesson applied to
56
56
  // the first run. Say what is true and let the caller suggest a next source.
57
57
  return ' No decisions found in this history yet.';
58
58
  }
@@ -66,7 +66,7 @@ export function renderFoundSummary(s, opts = {}) {
66
66
  // "candidate": the importer keeps commits whose message states a reason. That is a text
67
67
  // heuristic, so the box does not claim to know which of them were real decisions.
68
68
  const lines = [counts];
69
- // What kind of source the count came from, said only when there is one to say (ALI-1782).
69
+ // What kind of source the count came from, said only when there is one to say.
70
70
  if (opts.prDescriptions !== undefined && opts.prDescriptions > 0)
71
71
  lines.push(` including ${opts.prDescriptions} from PR descriptions`);
72
72
  if (s.recent.length > 0) {
@@ -1 +1 @@
1
- {"version":3,"file":"found-summary.js","sourceRoot":"","sources":["../../src/lib/found-summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,oFAAoF;AACpF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAuBnC;;;;;GAKG;AACH,MAAM,oBAAoB,GAAG,mIAAmI,CAAC;AAEjK,MAAM,UAAU,iBAAiB,CAAC,EAAkB;IAClD,+EAA+E;IAC/E,gFAAgF;IAChF,uDAAuD;IACvD,MAAM,KAAK,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC;IAEtC,mFAAmF;IACnF,kFAAkF;IAClF,qDAAqD;IACrD,MAAM,OAAO,GAAG,IAAI,GAAG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AAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
@@ -3,7 +3,7 @@ import type { TopicTimelineResult } from './mcp-timeline-tools.js';
3
3
  import type { DecisionRelation } from './decision-relations.js';
4
4
  import type { StarterRuleOffer } from './inline-rules.js';
5
5
  /**
6
- * ALI-403: identify the CLI to the gateway on every call.
6
+ * Identify the CLI to the gateway on every call.
7
7
  *
8
8
  * Without this the CLI is anonymous - a request from `align` carries exactly the same
9
9
  * identifying headers as one from the web app, so cloud-mode CLI usage is only visible as
@@ -49,7 +49,7 @@ import type { StarterRuleOffer } from './inline-rules.js';
49
49
  export declare function encodePathSegment(value: string): string;
50
50
  export declare const CLIENT_IDENTITY_HEADERS: Readonly<Record<string, string>>;
51
51
  /**
52
- * What getConflicts returns (ALI-587). `conflict_count` is the gateway's exact whole-set
52
+ * What getConflicts returns. `conflict_count` is the gateway's exact whole-set
53
53
  * total (`pagination.total_count`, computed without any cursor), so it stays honest however
54
54
  * many links the page holds; `showing` and `message` appear only when the rendered list is
55
55
  * smaller than that total. Declared here, not re-typed in tests - the MCP tool serialises
@@ -82,19 +82,19 @@ export interface CapturedDecision {
82
82
  /**
83
83
  * Where it was decided. The /snapshots wire has always carried this
84
84
  * (gateway listSnapshots selects it); the type just never declared it,
85
- * so nothing downstream could cite a decision (ALI-602 needs to).
85
+ * so nothing downstream could cite a decision.
86
86
  */
87
87
  source_url?: string | null;
88
88
  /** The minute the row was imported (local) or captured (cloud). */
89
89
  created_at?: string;
90
- /** ALI-829: when the decision was MADE, from the source's own timestamp. Absent, never
90
+ /** When the decision was MADE, from the source's own timestamp. Absent, never
91
91
  * null, when the source did not say. The local client returns it whenever the row has
92
92
  * one; the cloud gateway stores it from ingest (this client renames the item's
93
93
  * created_at to decided_at on the wire) and returns it where its routes select it. */
94
94
  decided_at?: string;
95
- /** ALI-831: who decided, and whether a human has stood behind it. Present on every local
96
- * payload; the cloud returns them where its routes select them (ALI-680's provenance
97
- * view, and `/snapshots` once ALI-832 widens it). 'unknown' is a row captured before
95
+ /** Who decided, and whether a human has stood behind it. Present on every local
96
+ * payload; the cloud returns them where its routes select them (the provenance
97
+ * view, and `/snapshots` once it is widened). 'unknown' is a row captured before
98
98
  * decider tracking. Ratification is not restricted to agent-decided rows - `align
99
99
  * ratify` accepts any local id - so `ratified` can be true on a human row too; it is
100
100
  * only *shown* for an agent claim, because deciderLabel returns null unless
@@ -141,7 +141,7 @@ export interface SearchResults {
141
141
  count: number;
142
142
  strategy: 'semantic' | 'keyword';
143
143
  /**
144
- * ALI-798: which repo local mode scoped this search to, or null if it searched
144
+ * Which repo local mode scoped this search to, or null if it searched
145
145
  * everything (outside a git repo, or `--all`). Absent in cloud mode, which has no
146
146
  * repo dimension - a caller distinguishes "unscoped" (null) from "not applicable"
147
147
  * (undefined) when deciding whether to print "answering from X".
@@ -151,7 +151,7 @@ export interface SearchResults {
151
151
  notes?: string[];
152
152
  }
153
153
  /**
154
- * Why an alignment check could not reach a verdict (ALI-414 / ALI-348).
154
+ * Why an alignment check could not reach a verdict.
155
155
  *
156
156
  * The `brain_*` codes come from the cloud gateway (`/alignment/check`), the rest
157
157
  * from the local embedded client. Both are listed because this one type describes
@@ -159,7 +159,7 @@ export interface SearchResults {
159
159
  *
160
160
  * This spells the local half twice, here and as `ClassifierFailureReason`. That drift
161
161
  * cannot ship silently: `local-gateway-client.ts` assigns one to the other, so adding a
162
- * classifier reason without adding it here fails `tsc`, which is how ALI-420 found it.
162
+ * classifier reason without adding it here fails `tsc`, which is how it was found.
163
163
  */
164
164
  export type UnknownReason = 'brain_timeout' | 'brain_error' | 'brain_degraded' | 'no_llm_key' | 'classifier_error' | 'classifier_unparseable' | 'unvetted_local_model';
165
165
  export interface AlignmentResult {
@@ -167,13 +167,13 @@ export interface AlignmentResult {
167
167
  * `unknown` means the check did NOT run - it is not a pass. Anything that cannot
168
168
  * produce a verdict (no LLM key, a classifier that timed out, unparseable output)
169
169
  * lands here rather than in `aligned`, so a consumer that branches on `status`
170
- * cannot mistake "could not check" for "checked, no conflict". See ALI-414.
170
+ * cannot mistake "could not check" for "checked, no conflict".
171
171
  */
172
172
  status: 'aligned' | 'conflicting' | 'no-context' | 'unknown' | 'retrieved';
173
173
  /** Populated only when `status` is `unknown`. */
174
174
  reason?: UnknownReason;
175
175
  /**
176
- * WHICH KIND of unknown, and therefore what remedies it (ALI-710).
176
+ * WHICH KIND of unknown, and therefore what remedies it.
177
177
  *
178
178
  * 'unavailable' - the check could not run, and a re-run can heal it.
179
179
  * 'non_verdict' - the judge ran and abstained. A re-run returns the same answer forever,
@@ -188,7 +188,7 @@ export interface AlignmentResult {
188
188
  * stable non-verdicts, absent on aligned/no-context and on outages, so its absence is
189
189
  * what stops a person signing off an outage. `align adjudicate` takes it (the gateway
190
190
  * refuses adjudication of anything but a non-verdict); for a conflict it is what
191
- * rating and the PR-outcome join key on (ALI-761).
191
+ * rating and the PR-outcome join key on.
192
192
  */
193
193
  check_event_id?: string;
194
194
  /**
@@ -255,7 +255,7 @@ export interface WhoAmI {
255
255
  id: string;
256
256
  name: string;
257
257
  };
258
- /** ISO timestamp, or null for a token with no expiry or a cookie session. Absent on a gateway older than ALI-1836. */
258
+ /** ISO timestamp, or null for a token with no expiry or a cookie session. Absent on a gateway that predates the field. */
259
259
  expires_at?: string | null;
260
260
  }
261
261
  export interface ImportJob {
@@ -386,17 +386,17 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
386
386
  all?: boolean;
387
387
  }): Promise<SearchResults>;
388
388
  listDecisions(params?: Record<string, string | number | boolean>): Promise<CapturedDecision[]>;
389
- /** ALI-1648: the tenant's starter rules and which it accepted (GET /starter-rules). Cloud only. */
389
+ /** The tenant's starter rules and which it accepted (GET /starter-rules). Cloud only. */
390
390
  getStarterRules(): Promise<{
391
391
  templates: StarterRuleOffer[];
392
392
  }>;
393
393
  /**
394
- * ALI-1070 follow-up, SECURITY (Copilot, #296 inline at mcp.ts:222).
394
+ * SECURITY (Copilot review, #296).
395
395
  *
396
396
  * `encodeURIComponent` on the segment, matching ratifyDecision and adjudicateCheck in this
397
397
  * file and the new getDecisionTimeline. It was the one id-in-path method here that
398
398
  * interpolated raw, which was survivable while every caller passed an id the USER had
399
- * typed - and ALI-1070 routed an AGENT-CONTROLLED `decision_id` into it through the
399
+ * typed - and the timeline tools routed an AGENT-CONTROLLED `decision_id` into it through the
400
400
  * rationale tool. `../auth/me` is not an invalid id, it is a different GET endpoint: URL
401
401
  * parsing resolves the dot segments before the request leaves, so the caller's PAT is
402
402
  * attached to a request for a route they did not name. Measured: the built URL's pathname
@@ -411,7 +411,7 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
411
411
  spaces: unknown[];
412
412
  }>;
413
413
  /**
414
- * Answer a check that reached the judge and declined to rule (ALI-710).
414
+ * Answer a check that reached the judge and declined to rule.
415
415
  *
416
416
  * The gateway refuses a caller it can identify as an agent, so this is a human's act by
417
417
  * construction rather than by convention. It also refuses an event that is not a
@@ -419,7 +419,7 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
419
419
  * an outage is not something a person can sign off.
420
420
  */
421
421
  /**
422
- * ALI-831: the human act, cloud half - the ALI-680 route, which refuses a service
422
+ * The human act, cloud half - the route, which refuses a service
423
423
  * account (403) so an agent cannot ratify its own premise. `opts` is accepted for
424
424
  * signature parity with the local client and ignored: the cloud attributes the act to
425
425
  * the logged-in user, never to a name the caller supplies.
@@ -432,7 +432,7 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
432
432
  ratifiedAt: string | null;
433
433
  }>;
434
434
  /**
435
- * ALI-1578: the org alias glossary (gateway routes/glossary/glossaryRoutes.ts). Cloud only;
435
+ * The org alias glossary (gateway routes/glossary/glossaryRoutes.ts). Cloud only;
436
436
  * the local client has none, so the local-mode proxy answers these with its cloud-only error.
437
437
  * Read and propose only: confirm and reject are a person's act in the web app (/settings/glossary),
438
438
  * so this client has no call for them.
@@ -453,7 +453,7 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
453
453
  depth?: CheckDepth;
454
454
  title?: string;
455
455
  /**
456
- * ALI-761: who is running the check ('github-actions' from the align-check action)
456
+ * Who is running the check ('github-actions' from the align-check action)
457
457
  * and what it is checking ('github:acme/repo#12', the PR HEAD sha). Sent as a
458
458
  * header + two body fields, CHECK-SCOPED on purpose: a client-wide platform claim
459
459
  * would also relabel `align adjudicate`, which the gateway refuses from agents.
@@ -463,7 +463,7 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
463
463
  subjectKey?: string;
464
464
  headSha?: string;
465
465
  /**
466
- * ALI-1420: `align mcp --created-before`. The gateway bounds candidate retrieval by it,
466
+ * `align mcp --created-before`. The gateway bounds candidate retrieval by it,
467
467
  * so the judge's verdict is reached over the graph as it stood - a client-side filter
468
468
  * afterwards cannot undo a verdict that already saw post-cutoff decisions.
469
469
  */
@@ -478,18 +478,18 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
478
478
  recorded: boolean;
479
479
  }>;
480
480
  /**
481
- * ALI-1438: with `createdBefore` the gateway still returns the verdict but stores no
481
+ * With `createdBefore` the gateway still returns the verdict but stores no
482
482
  * decision_drift_checks row, so a frozen run leaves nothing behind. No cutoff, no key.
483
483
  */
484
484
  checkDrift(decisionId: string, content: string, sourceType?: string, createdBefore?: string): Promise<unknown>;
485
485
  /**
486
- * ALI-1420: `createdBefore` bounds the traversal itself on the gateway. An edge recorded after
486
+ * `createdBefore` bounds the traversal itself on the gateway. An edge recorded after
487
487
  * the cutoff between two older decisions carries no timestamp in this response, so only the
488
488
  * server can leave it out.
489
489
  */
490
490
  getImpact(decisionId: string, createdBefore?: string): Promise<unknown>;
491
491
  /**
492
- * ALI-1070: everything the team decided about a TOPIC, in time order, across tools.
492
+ * Everything the team decided about a TOPIC, in time order, across tools.
493
493
  *
494
494
  * `authMiddleware` only, so this PAT already reaches it - there is nothing new to
495
495
  * configure. The gateway fetches a brain embedding with `.catch(() => null)`, so a dead
@@ -503,10 +503,10 @@ declare function buildHttpGatewayClient(env: EnvironmentConfig): {
503
503
  * connector's client defaults the same way).
504
504
  */
505
505
  getTopicTimeline(topic: string, limit?: number, createdBefore?: string): Promise<TopicTimelineResult>;
506
- /** ALI-1070: ONE decision's change history - GET /decisions/:id/history, authMiddleware only. */
506
+ /** ONE decision's change history - GET /decisions/:id/history, authMiddleware only. */
507
507
  getDecisionTimeline(decisionId: string): Promise<unknown>;
508
508
  /**
509
- * ALI-1411: `createdBefore` rides the endpoint's legacy TIMESTAMP cursor, which bounds the
509
+ * `createdBefore` rides the endpoint's legacy TIMESTAMP cursor, which bounds the
510
510
  * data query to `dl.created_at < cursor` server-side - the one as-of bound this route has.
511
511
  * Any cursor makes the gateway skip its count query, so every count field comes back null
512
512
  * and the total below falls back to the page; the MCP layer (lib/as-of.ts) recounts from
@@ -1 +1 @@
1
- {"version":3,"file":"gateway-client.d.ts","sourceRoot":"","sources":["../../src/lib/gateway-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAM1D;;;;;;;;;GASG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAoCvD;AAED,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAInE,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EA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,CAAC;QAAE,KAAK,EAAE,YAAY,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;uBAyBjC,OAAO,CAAC,SAAS,EAAE,CAAC;IAI7C;oFACgF;uBACvD,eAAe,EAAE,SAAS;QAAE,eAAe,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAoBlJ;;;;;;OAMG;sBACqB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QAAE,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,OAAO,CAAC,kBAAkB,CAAC;EAgBjH;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAsBrG"}
@@ -4,7 +4,7 @@ import pkg from '../../package.json' with { type: 'json' };
4
4
  /** Page size for GET /import/suggestions: the gateway's cap (it returns 50 when none is sent). */
5
5
  const SUGGESTION_PAGE_SIZE = 100;
6
6
  /**
7
- * ALI-403: identify the CLI to the gateway on every call.
7
+ * Identify the CLI to the gateway on every call.
8
8
  *
9
9
  * Without this the CLI is anonymous - a request from `align` carries exactly the same
10
10
  * identifying headers as one from the web app, so cloud-mode CLI usage is only visible as
@@ -142,7 +142,7 @@ function buildHttpGatewayClient(env) {
142
142
  return h;
143
143
  }
144
144
  /**
145
- * ALI-462: refuse a tenant that nothing authenticates, before the request goes out.
145
+ * Refuse a tenant that nothing authenticates, before the request goes out.
146
146
  *
147
147
  * `ALIGN_TENANT_ID` and `ALIGN_TOKEN` are read independently (`config.ts`), so a tenant
148
148
  * with no token is representable. No CLI flow produces it - `login-flow.ts` sets the token
@@ -152,7 +152,7 @@ function buildHttpGatewayClient(env) {
152
152
  * Against a gated route that config is a bare 401 explaining nothing. Against an ungated
153
153
  * one it is worse: the gateway honours `x-tenant-id` when there is no auth context, so it
154
154
  * serves a tenant the caller was never authorised for. Twelve such routes are still
155
- * ungated (ALI-459, blocked by ALI-458), so this is live rather than theoretical.
155
+ * ungated, so this is live rather than theoretical.
156
156
  *
157
157
  * `demo` mode is deliberately exempt. Addressing a local gateway by tenant header with no
158
158
  * bearer is precisely what demo mode is for, and an existing test pins it. `local-embedded`
@@ -169,7 +169,7 @@ function buildHttpGatewayClient(env) {
169
169
  'either unset it or set ALIGN_TOKEN alongside it.');
170
170
  }
171
171
  /**
172
- * ALI-786: `demo` mode is `local`'s only non-`auth` default (nothing in this CLI sets it
172
+ * `demo` mode is `local`'s only non-`auth` default (nothing in this CLI sets it
173
173
  * deliberately any more - `local-embedded` is what `align setup --local` configures), so
174
174
  * a `local` env still carrying it, with the untouched default URL and no token or tenant
175
175
  * ever saved, means local mode was never set up here - not "a gateway that happens to be
@@ -191,7 +191,7 @@ function buildHttpGatewayClient(env) {
191
191
  'or pass --env preview / --env prod to use a cloud environment instead.');
192
192
  }
193
193
  /**
194
- * ALI-1777: a built-in cloud env (prod, preview) at its own default URL with no token
194
+ * A built-in cloud env (prod, preview) at its own default URL with no token
195
195
  * means this machine was never set up, which a bare "Gateway returned 401 ... unauthorized"
196
196
  * did not say. Thrown before the dial, like the two checks above. A SAVED token the gateway
197
197
  * rejects is not this case and still reports the 401. A self-hosted
@@ -231,7 +231,7 @@ function buildHttpGatewayClient(env) {
231
231
  try {
232
232
  const body = await res.json();
233
233
  detail = visibleText(String(body?.detail || body?.error || ''));
234
- // ALI-1836: the gateway's 401 text for a dead token is "Invalid or expired ... token". It
234
+ // The gateway's 401 text for a dead token is "Invalid or expired ... token". It
235
235
  // gives the same text for an unknown token, so say "no longer valid" too. Revoked,
236
236
  // deactivated and missing-credential 401s carry other text and keep the generic message.
237
237
  expired = res.status === 401 && /\bexpired\b/i.test(String(body?.message ?? ''));
@@ -300,11 +300,11 @@ function buildHttpGatewayClient(env) {
300
300
  // `scope` is accepted so callers (ask, search) can pass the same four arguments
301
301
  // regardless of which client resolveEnv handed back - see the file-top comment on
302
302
  // "local mode returns the SAME shapes as the cloud client". The cloud gateway has no
303
- // repo dimension (ALI-798 is local-only), so this is silently ignored HERE - the
303
+ // repo dimension, so this is silently ignored HERE - the
304
304
  // command layer is what warns when a user asks for repo scoping in cloud mode,
305
305
  // because only it knows whether the user actually typed the flag.
306
306
  //
307
- // ALI-1082: `createdBefore` is a NEW, explicitly named third parameter, not a reuse of
307
+ // `createdBefore` is a NEW, explicitly named third parameter, not a reuse of
308
308
  // `_scope` (a different concept - repo scoping vs a time bound) shifted to the fourth
309
309
  // slot. Every call site passing a positional `scope` argument had to move it from
310
310
  // third to fourth (mcp.ts's dispatchTool, why.ts x3, search.ts) - tsc catches a caller
@@ -319,17 +319,17 @@ function buildHttpGatewayClient(env) {
319
319
  const qs = new URLSearchParams(Object.entries(params).map(([k, v]) => [k, String(v)]));
320
320
  return request(`/snapshots?${qs}`);
321
321
  },
322
- /** ALI-1648: the tenant's starter rules and which it accepted (GET /starter-rules). Cloud only. */
322
+ /** The tenant's starter rules and which it accepted (GET /starter-rules). Cloud only. */
323
323
  async getStarterRules() {
324
324
  return request('/starter-rules');
325
325
  },
326
326
  /**
327
- * ALI-1070 follow-up, SECURITY (Copilot, #296 inline at mcp.ts:222).
327
+ * SECURITY (Copilot review, #296).
328
328
  *
329
329
  * `encodeURIComponent` on the segment, matching ratifyDecision and adjudicateCheck in this
330
330
  * file and the new getDecisionTimeline. It was the one id-in-path method here that
331
331
  * interpolated raw, which was survivable while every caller passed an id the USER had
332
- * typed - and ALI-1070 routed an AGENT-CONTROLLED `decision_id` into it through the
332
+ * typed - and the timeline tools routed an AGENT-CONTROLLED `decision_id` into it through the
333
333
  * rationale tool. `../auth/me` is not an invalid id, it is a different GET endpoint: URL
334
334
  * parsing resolves the dot segments before the request leaves, so the caller's PAT is
335
335
  * attached to a request for a route they did not name. Measured: the built URL's pathname
@@ -345,12 +345,12 @@ function buildHttpGatewayClient(env) {
345
345
  // `depth: 'related'` returns the same embedding retrieval this endpoint already does and
346
346
  // skips the ~11s LLM adjudication (gateway #1415). The editor hook uses it because every
347
347
  // host budget is <=10s; `align check` and the PR bot keep the default 'full'.
348
- // `depth: 'exhaustive'` is the other end (ALI-708): the gateway's similarity cost gate
348
+ // `depth: 'exhaustive'` is the other end: the gateway's similarity cost gate
349
349
  // does not skip adjudication, for callers whose failure policy makes `unknown` fatal.
350
350
  // Requires a gateway that knows the member - an older one rejects the VALUE with a 400
351
351
  // (unknown keys it strips, unknown enum values it refuses), so ship the gateway first.
352
352
  /**
353
- * Answer a check that reached the judge and declined to rule (ALI-710).
353
+ * Answer a check that reached the judge and declined to rule.
354
354
  *
355
355
  * The gateway refuses a caller it can identify as an agent, so this is a human's act by
356
356
  * construction rather than by convention. It also refuses an event that is not a
@@ -358,7 +358,7 @@ function buildHttpGatewayClient(env) {
358
358
  * an outage is not something a person can sign off.
359
359
  */
360
360
  /**
361
- * ALI-831: the human act, cloud half - the ALI-680 route, which refuses a service
361
+ * The human act, cloud half - the route, which refuses a service
362
362
  * account (403) so an agent cannot ratify its own premise. `opts` is accepted for
363
363
  * signature parity with the local client and ignored: the cloud attributes the act to
364
364
  * the logged-in user, never to a name the caller supplies.
@@ -368,7 +368,7 @@ function buildHttpGatewayClient(env) {
368
368
  return { alreadyRatified: res.already_ratified, ratifiedBy: res.ratified_by, ratifiedAt: res.ratified_at };
369
369
  },
370
370
  /**
371
- * ALI-1578: the org alias glossary (gateway routes/glossary/glossaryRoutes.ts). Cloud only;
371
+ * The org alias glossary (gateway routes/glossary/glossaryRoutes.ts). Cloud only;
372
372
  * the local client has none, so the local-mode proxy answers these with its cloud-only error.
373
373
  * Read and propose only: confirm and reject are a person's act in the web app (/settings/glossary),
374
374
  * so this client has no call for them.
@@ -421,7 +421,7 @@ function buildHttpGatewayClient(env) {
421
421
  });
422
422
  },
423
423
  /**
424
- * ALI-1438: with `createdBefore` the gateway still returns the verdict but stores no
424
+ * With `createdBefore` the gateway still returns the verdict but stores no
425
425
  * decision_drift_checks row, so a frozen run leaves nothing behind. No cutoff, no key.
426
426
  */
427
427
  async checkDrift(decisionId, content, sourceType = 'manual_input', createdBefore) {
@@ -435,7 +435,7 @@ function buildHttpGatewayClient(env) {
435
435
  });
436
436
  },
437
437
  /**
438
- * ALI-1420: `createdBefore` bounds the traversal itself on the gateway. An edge recorded after
438
+ * `createdBefore` bounds the traversal itself on the gateway. An edge recorded after
439
439
  * the cutoff between two older decisions carries no timestamp in this response, so only the
440
440
  * server can leave it out.
441
441
  */
@@ -444,7 +444,7 @@ function buildHttpGatewayClient(env) {
444
444
  return request(`/decisions/${encodePathSegment(decisionId)}/impact${asOf}`);
445
445
  },
446
446
  /**
447
- * ALI-1070: everything the team decided about a TOPIC, in time order, across tools.
447
+ * Everything the team decided about a TOPIC, in time order, across tools.
448
448
  *
449
449
  * `authMiddleware` only, so this PAT already reaches it - there is nothing new to
450
450
  * configure. The gateway fetches a brain embedding with `.catch(() => null)`, so a dead
@@ -458,25 +458,25 @@ function buildHttpGatewayClient(env) {
458
458
  * connector's client defaults the same way).
459
459
  */
460
460
  async getTopicTimeline(topic, limit = 50, createdBefore) {
461
- // ALI-1420: bounded server-side so the limit is spent on rows that existed at the cutoff.
461
+ // Bounded server-side so the limit is spent on rows that existed at the cutoff.
462
462
  return request('/decisions/topic-timeline', {
463
463
  method: 'POST',
464
464
  body: JSON.stringify({ topic, limit, ...(createdBefore ? { created_before: createdBefore } : {}) }),
465
465
  });
466
466
  },
467
- /** ALI-1070: ONE decision's change history - GET /decisions/:id/history, authMiddleware only. */
467
+ /** ONE decision's change history - GET /decisions/:id/history, authMiddleware only. */
468
468
  async getDecisionTimeline(decisionId) {
469
469
  return request(`/decisions/${encodePathSegment(decisionId)}/history`);
470
470
  },
471
471
  /**
472
- * ALI-1411: `createdBefore` rides the endpoint's legacy TIMESTAMP cursor, which bounds the
472
+ * `createdBefore` rides the endpoint's legacy TIMESTAMP cursor, which bounds the
473
473
  * data query to `dl.created_at < cursor` server-side - the one as-of bound this route has.
474
474
  * Any cursor makes the gateway skip its count query, so every count field comes back null
475
475
  * and the total below falls back to the page; the MCP layer (lib/as-of.ts) recounts from
476
476
  * the delivered links and never reports a gateway count under a cutoff.
477
477
  */
478
478
  async getConflicts(opts = {}) {
479
- // ALI-587. One 50-row fetch was served to agents as the complete conflict set, with
479
+ // One 50-row fetch was served to agents as the complete conflict set, with
480
480
  // nothing marking a tenant past 50 links as partial. The honest total costs nothing
481
481
  // extra: the gateway computes pagination.total_count over the WHOLE matching set on
482
482
  // every paginated call (its count query deliberately excludes the cursor), so a
@@ -485,7 +485,7 @@ function buildHttpGatewayClient(env) {
485
485
  // walked - plus a second round trip on the agent hot path, which is why this is
486
486
  // deliberately not a cursor-following port of mcp-align's getAllDecisionLinkPages
487
487
  // (that client filters fetched rows locally, so it needs them; this one does not).
488
- // unresolved_only (ALI-587, decided once with mcp-align): this tool reports ACTIVE
488
+ // unresolved_only (decided once with mcp-align): this tool reports ACTIVE
489
489
  // conflicts, so resolved links are excluded - and the gateway applies the same
490
490
  // predicate to its count query, so total_count and the links describe one population.
491
491
  const data = await request(`/decision-links?relation=conflicts_with,contradicts&unresolved_only=true&paginated=true&limit=50${opts.createdBefore ? `&cursor=${encodeURIComponent(opts.createdBefore)}` : ''}`);
@@ -510,7 +510,7 @@ function buildHttpGatewayClient(env) {
510
510
  : {}),
511
511
  };
512
512
  },
513
- // ALI-215 value-moment signals (all authMiddleware-only, free-CLI reachable).
513
+ // Value-moment signals (all authMiddleware-only, free-CLI reachable).
514
514
  async getStats() {
515
515
  return request('/stats');
516
516
  },
@@ -558,7 +558,7 @@ function buildHttpGatewayClient(env) {
558
558
  return data.scan_runs;
559
559
  },
560
560
  // GET /import/suggestions returns { suggestions, counts } - uses job_id not import_job_id.
561
- // ALI-1585: with no limit the gateway returns 50 rows (cap 100), so a single call silently
561
+ // With no limit the gateway returns 50 rows (cap 100), so a single call silently
562
562
  // dropped the rest of a big scan. Page with limit=100&offset=N until a short page.
563
563
  async listSuggestions(jobId, status = 'pending') {
564
564
  const all = [];
@@ -590,7 +590,7 @@ function buildHttpGatewayClient(env) {
590
590
  return request('/spaces');
591
591
  },
592
592
  async listDecisionLinks(filters) {
593
- // ALI-587: the legacy non-paginated branch hard-caps at 100 rows server-side and
593
+ // The legacy non-paginated branch hard-caps at 100 rows server-side and
594
594
  // returns a bare array - no envelope, so the caller could not even say "showing
595
595
  // first 100". The paginated branch keeps the same page size and carries total_count
596
596
  // over the whole matching set (computed cursor-free), so the listing can be honest.
@@ -615,8 +615,8 @@ function buildHttpGatewayClient(env) {
615
615
  /** `classify` is the local client's option (see local-gateway-client.ts ingestOne); the cloud
616
616
  * gateway decides enrichment itself, so it is accepted here and never sent. */
617
617
  async ingestBatch(items, opts) {
618
- // ALI-829: the fetchers carry the source's own date as `created_at`; the gateway's
619
- // BatchIngestSchema (align-stack ingestRoutes.ts, ALI-622) takes it as `decided_at`
618
+ // The fetchers carry the source's own date as `created_at`; the gateway's
619
+ // BatchIngestSchema (align-stack ingestRoutes.ts) takes it as `decided_at`
620
620
  // and strips unknown keys, so sent under the wrong name it silently vanishes. One
621
621
  // rename at the wire, and a cloud row gets the same date a local row does.
622
622
  // Typed locally: connector-core 0.5.0's FetcherItem has no created_at (0.6.0's does),
@@ -625,7 +625,7 @@ function buildHttpGatewayClient(env) {
625
625
  ...rest,
626
626
  ...(created_at ? { decided_at: created_at } : {}),
627
627
  }));
628
- // defer_enrichment (ALI-114): the gateway inserts snapshots with raw titles
628
+ // defer_enrichment: the gateway inserts snapshots with raw titles
629
629
  // and runs synthesis + relationship analysis in the background, returning
630
630
  // immediately. Older gateways ignore the unknown field (Zod strips it).
631
631
  return request('/ingest/batch', {
@@ -643,7 +643,7 @@ function buildHttpGatewayClient(env) {
643
643
  async shareBatch(items) {
644
644
  return request('/ingest/batch', { method: 'POST', redirect: 'error', body: JSON.stringify({ decisions: toBatchDecisions(items) }) });
645
645
  },
646
- // ALI-1540: browser approval. The routes and their parsing live in share/requests-client.ts.
646
+ // Browser approval. The routes and their parsing live in share/requests-client.ts.
647
647
  ...shareRequestMethods(request),
648
648
  /** L9: retract a share (the existing archive route; it is the only undo the server has). */
649
649
  async archiveDecision(id) {