clearotron 0.5.0-beta.1 → 0.5.0-beta.10

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 (286) hide show
  1. package/.env.example +18 -2
  2. package/INSTALL.md +6 -5
  3. package/QUICKSTART.md +78 -0
  4. package/THIRD-PARTY-NOTICES.md +154 -97
  5. package/bin/onboard.mjs +9 -4
  6. package/bin/signa-sync.mjs +1 -1
  7. package/build-info.json +2 -2
  8. package/docs/DELIVERY.md +4 -5
  9. package/docs/architecture/03-run-lifecycle.md +7 -2
  10. package/docs/architecture/04-configuration-reference.md +4 -3
  11. package/docs/architecture/05-config-governance.md +3 -3
  12. package/docs/architecture/06-operations-runbook.md +35 -40
  13. package/docs/architecture/07-quality-and-audit.md +1 -5
  14. package/docs/configuration.md +1 -1
  15. package/driver/CHANGELOG.md +94 -0
  16. package/driver/accepted-order.mjs +139 -0
  17. package/driver/band-shape.mjs +47 -18
  18. package/driver/close-verify.mjs +3 -2
  19. package/driver/contract-e3-backlog.mjs +37 -36
  20. package/driver/contract-vocabulary.mjs +6 -6
  21. package/driver/corrections-delivered.mjs +7 -5
  22. package/driver/corrections-feedforward.mjs +118 -13
  23. package/driver/coverage-form-io.mjs +3 -1
  24. package/driver/coverage-form.mjs +108 -11
  25. package/driver/coverage-ledger.mjs +43 -9
  26. package/driver/declination-call.mjs +44 -17
  27. package/driver/declination-duty.mjs +43 -10
  28. package/driver/declination-tool.mjs +10 -1
  29. package/driver/degraded-parts.mjs +47 -4
  30. package/driver/deliver-trigger.sh +3 -2
  31. package/driver/derived-state.mjs +104 -0
  32. package/driver/driver.config.mjs +26 -28
  33. package/driver/engine/CONTRACT.md +5 -3
  34. package/driver/engine/mcp/README.md +1 -1
  35. package/driver/engine/mcp/band-server.mjs +27 -17
  36. package/driver/engine/mcp/clarivate-server.mjs +4 -1
  37. package/driver/engine/mcp/codex-config.mjs +12 -7
  38. package/driver/engine/mcp/correction-positions.mjs +18 -0
  39. package/driver/engine/mcp/corsearch-server.mjs +4 -1
  40. package/driver/engine/mcp/crowd-note.mjs +34 -0
  41. package/driver/engine/mcp/declination-server.mjs +6 -7
  42. package/driver/engine/mcp/dispositions-server.mjs +7 -0
  43. package/driver/engine/mcp/euipo-server.mjs +4 -1
  44. package/driver/engine/mcp/free-tier-server.mjs +4 -1
  45. package/driver/engine/mcp/gather-config.mjs +22 -3
  46. package/driver/engine/mcp/held-answers.mjs +100 -12
  47. package/driver/engine/mcp/perplexity-server.mjs +47 -3
  48. package/driver/engine/mcp/recording-server.mjs +24 -5
  49. package/driver/engine/mcp/signa-server.mjs +4 -1
  50. package/driver/engine/mcp/stdio-server.mjs +8 -3
  51. package/driver/engine/mcp/supplemental.mjs +72 -9
  52. package/driver/engine/mcp/uspto-local-server.mjs +4 -1
  53. package/driver/engine/openai-agent.mjs +150 -31
  54. package/driver/engine/probe.mjs +64 -9
  55. package/driver/engine/session-record.mjs +21 -3
  56. package/driver/envelope-settle.mjs +13 -3
  57. package/driver/finding-citations.mjs +38 -0
  58. package/driver/findings-model.mjs +51 -3
  59. package/driver/frame-diff-model.mjs +53 -1
  60. package/driver/gateway.mjs +69 -22
  61. package/driver/goods-evidence.mjs +70 -7
  62. package/driver/narrative-refutation-record.mjs +53 -6
  63. package/driver/not-searched-sentences.mjs +118 -0
  64. package/driver/outbox.mjs +2 -1
  65. package/driver/owner-screen.mjs +1 -1
  66. package/driver/owner-use-check.mjs +15 -6
  67. package/driver/package.json +1 -1
  68. package/driver/parts-not-completed.mjs +128 -0
  69. package/driver/pipeline-knockout.mjs +5 -4
  70. package/driver/pipeline.mjs +2265 -814
  71. package/driver/placement-decisions.mjs +41 -18
  72. package/driver/placement-form-io.mjs +21 -1
  73. package/driver/placement-form.mjs +40 -21
  74. package/driver/placement-union.mjs +56 -11
  75. package/driver/predelivery-lint.mjs +278 -31
  76. package/driver/publish/audit-from-spine.mjs +14 -5
  77. package/driver/publish/email-conditions.mjs +21 -0
  78. package/driver/publish/index.mjs +64 -19
  79. package/driver/publish/publish-inputs.mjs +8 -0
  80. package/driver/publish/render-knockout.mjs +23 -4
  81. package/driver/publish/render.mjs +48 -11
  82. package/driver/publish/report-data.mjs +4 -0
  83. package/driver/publish/search-depth.mjs +10 -3
  84. package/driver/publish/xlsx.mjs +30 -16
  85. package/driver/record-fold.mjs +21 -1
  86. package/driver/record-goods.mjs +24 -8
  87. package/driver/record-replay.mjs +40 -0
  88. package/driver/register-digest-record.mjs +76 -5
  89. package/driver/register-plan.mjs +131 -37
  90. package/driver/registration-scripts.mjs +56 -0
  91. package/driver/remedy-accounting.mjs +1 -1
  92. package/driver/repair-composers.mjs +156 -74
  93. package/driver/repair-targets.mjs +62 -7
  94. package/driver/replay-archive.mjs +2 -2
  95. package/driver/report-overview-record.mjs +1 -1
  96. package/driver/research-answers.mjs +294 -0
  97. package/driver/research-checks.mjs +84 -0
  98. package/driver/run-economics.mjs +3 -2
  99. package/driver/runner.mjs +4 -4
  100. package/driver/saved-findings-block.mjs +36 -0
  101. package/driver/saved-register-pages.mjs +144 -0
  102. package/driver/scope-ledger.mjs +13 -6
  103. package/driver/score-redaction.mjs +47 -2
  104. package/driver/skeptic-search.mjs +21 -3
  105. package/driver/skills/blind-frame/SKILL.md +1 -1
  106. package/driver/skills/case-law-citation/SKILL.md +5 -5
  107. package/driver/skills/case-law-citation/sources/courtlistener.md +2 -2
  108. package/driver/skills/case-law-citation/sources/eurlex.md +2 -2
  109. package/driver/skills/case-law-citation/sources/legaldatahunter.md +1 -1
  110. package/driver/skills/clearance-common-law/SKILL.md +26 -34
  111. package/driver/skills/clearance-common-law/perplexity-prompts.md +4 -6
  112. package/driver/skills/clearance-register/SKILL.md +22 -34
  113. package/driver/skills/clearance-register/digest.md +15 -11
  114. package/driver/skills/clearance-register/providers/clarivate.md +10 -8
  115. package/driver/skills/clearance-register/providers/corsearch.md +4 -5
  116. package/driver/skills/clearance-register/providers/euipo.md +1 -2
  117. package/driver/skills/clearance-register/providers/signa.md +11 -10
  118. package/driver/skills/clearance-register/providers/uspto-local.md +3 -3
  119. package/driver/skills/clearance-register/register-recipes.md +33 -42
  120. package/driver/skills/clearance-register/unit.md +20 -26
  121. package/driver/skills/clearance-search/SKILL.md +16 -32
  122. package/driver/skills/clearance-search/firm-wide-reasoning.md +3 -3
  123. package/driver/skills/clearance-search/phase2-execution.md +37 -46
  124. package/driver/skills/clearance-search/synthesis-rules.md +6 -5
  125. package/driver/skills/clearance-search/worked-examples.md +62 -62
  126. package/driver/skills/clearance-variants/SKILL.md +20 -20
  127. package/driver/skills/clearance-variants/transliteration-scripts.md +3 -3
  128. package/driver/skills/knockout-assess/SKILL.md +3 -2
  129. package/driver/skills/knockout-frame/SKILL.md +3 -3
  130. package/driver/skills/matter-frame/SKILL.md +1 -1
  131. package/driver/skills/narrative-refutation/SKILL.md +14 -17
  132. package/driver/skills/placement-inquiry/SKILL.md +9 -9
  133. package/driver/stage-context.mjs +80 -2
  134. package/driver/stages.mjs +164 -42
  135. package/driver/suite-census.json +864 -78
  136. package/driver/synthesis-record.mjs +442 -35
  137. package/driver/systemd/README.md +54 -150
  138. package/driver/terminal-clamp.mjs +21 -0
  139. package/driver/verify.mjs +36 -14
  140. package/mcp-server/CHANGELOG.md +36 -0
  141. package/mcp-server/package.json +1 -1
  142. package/mcp-server/server.mjs +1 -1
  143. package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
  144. package/node_modules/@isaacs/nonrecursive-glob-match/README.md +333 -0
  145. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +114 -0
  146. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
  147. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +762 -0
  148. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
  149. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
  150. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
  151. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
  152. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
  153. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
  154. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
  155. package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
  156. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +114 -0
  157. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
  158. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +758 -0
  159. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
  160. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
  161. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
  162. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
  163. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
  164. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
  165. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
  166. package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
  167. package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
  168. package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +900 -0
  169. package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
  170. package/node_modules/balanced-match/LICENSE.md +3 -1
  171. package/node_modules/balanced-match/README.md +15 -55
  172. package/node_modules/balanced-match/dist/commonjs/index.d.ts +9 -0
  173. package/node_modules/balanced-match/dist/commonjs/index.d.ts.map +1 -0
  174. package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
  175. package/node_modules/balanced-match/dist/commonjs/index.js.map +1 -0
  176. package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
  177. package/node_modules/balanced-match/dist/esm/index.d.ts +9 -0
  178. package/node_modules/balanced-match/dist/esm/index.d.ts.map +1 -0
  179. package/node_modules/balanced-match/dist/esm/index.js +54 -0
  180. package/node_modules/balanced-match/dist/esm/index.js.map +1 -0
  181. package/node_modules/balanced-match/dist/esm/package.json +3 -0
  182. package/node_modules/balanced-match/package.json +48 -28
  183. package/node_modules/brace-expansion/LICENSE +3 -1
  184. package/node_modules/brace-expansion/README.md +10 -56
  185. package/node_modules/brace-expansion/dist/commonjs/index.d.ts +12 -0
  186. package/node_modules/brace-expansion/dist/commonjs/index.d.ts.map +1 -0
  187. package/node_modules/brace-expansion/dist/commonjs/index.js +333 -0
  188. package/node_modules/brace-expansion/dist/commonjs/index.js.map +1 -0
  189. package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
  190. package/node_modules/brace-expansion/dist/esm/index.d.ts +12 -0
  191. package/node_modules/brace-expansion/dist/esm/index.d.ts.map +1 -0
  192. package/node_modules/brace-expansion/dist/esm/index.js +329 -0
  193. package/node_modules/brace-expansion/dist/esm/index.js.map +1 -0
  194. package/node_modules/brace-expansion/dist/esm/package.json +3 -0
  195. package/node_modules/brace-expansion/package.json +52 -37
  196. package/node_modules/minimatch/LICENSE.md +55 -0
  197. package/node_modules/minimatch/README.md +388 -109
  198. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
  199. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
  200. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
  201. package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
  202. package/node_modules/minimatch/dist/commonjs/escape.d.ts +15 -0
  203. package/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
  204. package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
  205. package/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
  206. package/node_modules/minimatch/dist/commonjs/index.d.ts +185 -0
  207. package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
  208. package/node_modules/minimatch/dist/commonjs/index.js +1550 -0
  209. package/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
  210. package/node_modules/minimatch/dist/commonjs/package.json +3 -0
  211. package/node_modules/minimatch/dist/commonjs/unescape.d.ts +22 -0
  212. package/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
  213. package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
  214. package/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
  215. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
  216. package/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
  217. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
  218. package/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
  219. package/node_modules/minimatch/dist/esm/escape.d.ts +15 -0
  220. package/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
  221. package/node_modules/minimatch/dist/esm/escape.js +26 -0
  222. package/node_modules/minimatch/dist/esm/escape.js.map +1 -0
  223. package/node_modules/minimatch/dist/esm/index.d.ts +185 -0
  224. package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
  225. package/node_modules/minimatch/dist/esm/index.js +1539 -0
  226. package/node_modules/minimatch/dist/esm/index.js.map +1 -0
  227. package/node_modules/minimatch/dist/esm/package.json +3 -0
  228. package/node_modules/minimatch/dist/esm/unescape.d.ts +22 -0
  229. package/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
  230. package/node_modules/minimatch/dist/esm/unescape.js +34 -0
  231. package/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
  232. package/node_modules/minimatch/package.json +58 -17
  233. package/package.json +2 -1
  234. package/portal-ui/package.json +1 -1
  235. package/providers/README.md +1 -1
  236. package/providers/_shared/README.md +1 -0
  237. package/providers/_shared/enumerate.mjs +11 -8
  238. package/providers/_shared/execute-plan.mjs +154 -14
  239. package/providers/_shared/follow-up-searches.mjs +59 -8
  240. package/providers/_shared/send-until.mjs +25 -0
  241. package/providers/clarivate/src/core.js +76 -7
  242. package/providers/euipo/src/core.js +3 -2
  243. package/providers/oauth-mcp-bridge/CHANGELOG.md +36 -0
  244. package/providers/oauth-mcp-bridge/package.json +1 -1
  245. package/providers/perplexity/src/core.js +42 -6
  246. package/providers/signa/src/core.js +76 -11
  247. package/providers/signa/src/offices.generated.js +15 -13
  248. package/scripts/band-shape-probe.mjs +1 -1
  249. package/scripts/deprecate-below.mjs +14 -3
  250. package/scripts/e2e-first-time.mjs +19 -8
  251. package/scripts/e2e-scenario-ops.mjs +17 -2
  252. package/scripts/freeze-example-run.mjs +12 -12
  253. package/scripts/release-duplicate-notes.mjs +5 -0
  254. package/scripts/release-notes-lint.mjs +14 -6
  255. package/scripts/score.mjs +30 -3
  256. package/scripts/third-party-notices.mjs +12 -0
  257. package/shared/client-failure-note.mjs +13 -0
  258. package/shared/inside-run.mjs +54 -0
  259. package/shared/names-in-force.mjs +2 -1
  260. package/shared/register-selection.mjs +2 -2
  261. package/shared/slices-taken-out.mjs +65 -0
  262. package/skills/clearotron-account/SKILL.md +1 -1
  263. package/skills/clearotron-ops/COURIER.md +11 -3
  264. package/skills/clearotron-ops/SKILL.md +4 -1
  265. package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  266. package/node_modules/balanced-match/index.js +0 -62
  267. package/node_modules/brace-expansion/index.js +0 -438
  268. package/node_modules/concat-map/.travis.yml +0 -4
  269. package/node_modules/concat-map/LICENSE +0 -18
  270. package/node_modules/concat-map/README.markdown +0 -62
  271. package/node_modules/concat-map/example/map.js +0 -6
  272. package/node_modules/concat-map/index.js +0 -13
  273. package/node_modules/concat-map/package.json +0 -43
  274. package/node_modules/concat-map/test/map.js +0 -39
  275. package/node_modules/minimatch/LICENSE +0 -15
  276. package/node_modules/minimatch/minimatch.js +0 -1005
  277. package/node_modules/readdir-glob/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  278. package/node_modules/readdir-glob/node_modules/brace-expansion/LICENSE +0 -21
  279. package/node_modules/readdir-glob/node_modules/brace-expansion/README.md +0 -157
  280. package/node_modules/readdir-glob/node_modules/brace-expansion/index.js +0 -394
  281. package/node_modules/readdir-glob/node_modules/brace-expansion/package.json +0 -49
  282. package/node_modules/readdir-glob/node_modules/minimatch/LICENSE +0 -15
  283. package/node_modules/readdir-glob/node_modules/minimatch/README.md +0 -296
  284. package/node_modules/readdir-glob/node_modules/minimatch/lib/path.js +0 -4
  285. package/node_modules/readdir-glob/node_modules/minimatch/minimatch.js +0 -996
  286. package/node_modules/readdir-glob/node_modules/minimatch/package.json +0 -35
package/.env.example CHANGED
@@ -109,7 +109,8 @@ CLEAROTRON_TOOL_ANSWER_BYTES=
109
109
  # Runtime-injected — do NOT set this by hand. The driver sets it to 1 in the band tool server's env for the
110
110
  # placement step alone (driver/stages.mjs GROUP_READING_STAGES): that step is offered band_lookup's group
111
111
  # filter and reads the band shape with the orders written for it. Every other step is served both without
112
- # them. Set by hand, it would offer every step the group pages, and nothing in a run records that it did.
112
+ # them. Leave it empty: a stage's program starts with a listed environment that does not carry this name,
113
+ # so a value set here reaches no tool server.
113
114
  # effect: silent-output-change
114
115
  # CLEAROTRON_BAND_GROUPS=
115
116
 
@@ -184,6 +185,21 @@ CLEAROTRON_DATABASE=clarivate
184
185
  # CLEAROTRON_GATHER_SESSION_KEY, CLEAROTRON_GATHER_SESSION_ID, CLEAROTRON_GATHER_AGENT,
185
186
  # CLEAROTRON_REGISTER_CALL_LOG, CLEAROTRON_REGISTER_RECORD_LOG
186
187
  #
188
+ # The time, in epoch milliseconds, at which a turn's register tools stop sending new questions, so the
189
+ # unit can write what it holds inside its own time. The driver writes it per turn into each register
190
+ # tool server's env, a quarter of the turn (at most five minutes) ahead of the turn's deadline. Leave it
191
+ # empty: a value set here would be read by the driver's own code-side executor as a fixed time.
192
+ # effect: tuning
193
+ CLEAROTRON_GATHER_SEND_UNTIL_MS=
194
+ #
195
+ # The records a correction's flags name, as a JSON list: the writer's save may add a finding for an
196
+ # excluded position that holds one of them. The driver writes it into the tool servers' env when it
197
+ # dispatches the correction and the correction's re-emit, and leaves it out of every other dispatch.
198
+ # Leave it empty: a stage's program starts with a listed environment that does not carry this name
199
+ # (driver/engine/engine-env.mjs), so a value set here reaches no tool server.
200
+ # effect: silent-output-change
201
+ CLEAROTRON_CORRECTION_POSITIONS=
202
+ #
187
203
  # THERE IS NO RETENTION SETTING AND NO CLEANUP JOB. CLEAROTRON_REGISTER_LEDGER_MAX_BYTES,
188
204
  # CLEAROTRON_REGISTER_LEDGER_KEEP and `npm run prune:ledger` are gone with the rotation tool, because the
189
205
  # thing they bounded no longer grows: RECORD BODIES ARE WRITTEN INTO THE RUN'S OWN DIRECTORY
@@ -272,7 +288,7 @@ OPENAI_API_KEY=
272
288
  # reason worth knowing before you leave it unset: an unset variable took Corsearch in silence, and the
273
289
  # credential guard could not catch it because both boxes carried CORSEARCH_SESSION_KEY.
274
290
  #
275
- # ADR-0001 recommends Signa, not Corsearch: one self-serve key, US + EU + WIPO and eight more offices.
291
+ # ADR-0001 recommends Signa, not Corsearch: one self-serve key, US + EU + WIPO and ten more offices.
276
292
  #
277
293
  # Corsearch.
278
294
  CORSEARCH_SESSION_KEY=changeme
package/INSTALL.md CHANGED
@@ -59,7 +59,7 @@ run is [mcp-server/CONNECT.md](mcp-server/CONNECT.md), and why something is the
59
59
  it first. VS Code's Remote-SSH port forwarding is the common case. If the page that opens is not this
60
60
  install's sign-in, run the same command again with `--port 28802`, or any free number.
61
61
 
62
- A *hosted* deployment needs Linux for one further thing, the systemd outbox trigger —
62
+ A *hosted* deployment runs the product as systemd user units, so it needs Linux —
63
63
  [driver/systemd/README.md](driver/systemd/README.md).
64
64
  - **Setup installs the reasoning program.** Clearotron runs each step of a clearance as a short,
65
65
  unattended session of Claude Code or the Codex CLI. Setup installs the one your engine uses, for this
@@ -117,7 +117,7 @@ run is [mcp-server/CONNECT.md](mcp-server/CONNECT.md), and why something is the
117
117
  Which register you pick is the first real decision, and the tiers are not equally easy to reach.
118
118
  [providers/README.md](providers/README.md) is the canonical ladder and
119
119
  [ADR-0001](docs/decisions/0001-register-ladder.md) is the reasoning. The short version: **Signa** is
120
- the recommended route (one self-serve key, eleven offices), **`free-tier`** is EU + US with no vendor
120
+ the recommended route (one self-serve key, thirteen offices), **`free-tier`** is EU + US with no vendor
121
121
  contract but a 41.5 GB build for the US half (§3a), and **Corsearch / Clarivate** are the widest
122
122
  coverage on a vendor-issued credential. Whatever the chosen register cannot reach becomes a disclosed
123
123
  deferred-coverage row rather than a silent gap, at every tier.
@@ -905,9 +905,10 @@ that proves the caller and passes the identity through. Which door runs and what
905
905
  once in [docs/SECURITY.md](docs/SECURITY.md); the procedure for standing the second one up, with a
906
906
  worked example, is [docs/PORTAL.md](docs/PORTAL.md#putting-your-own-login-provider-in-front).
907
907
 
908
- **Leaving `PORTAL_AUTH_MODE` unset selects auth-proxy, not local.** An install that sets nothing and has
909
- no proxy in front is the one shape to avoid — the portal refuses to start without an issuer. Say
910
- `PORTAL_AUTH_MODE=local` if you want the passphrase door.
908
+ **`clearotron start` always runs the local door,** and refuses to start if `PORTAL_AUTH_MODE` names
909
+ another one. Where you run the portal service yourself, without `clearotron start`, an unset
910
+ `PORTAL_AUTH_MODE` selects auth-proxy, and the portal refuses to start without an issuer. Set
911
+ `PORTAL_AUTH_MODE=local` there if you want the local door.
911
912
 
912
913
  ### It drains its own queue
913
914
 
package/QUICKSTART.md ADDED
@@ -0,0 +1,78 @@
1
+ # Quickstart
2
+
3
+ A first clearance in three commands, sized in minutes. [INSTALL.md](INSTALL.md) is the reference for
4
+ everything this page leaves out.
5
+
6
+ ## Before you start
7
+
8
+ Three self-serve accounts. Each is yours, signed in on your own machine — this product holds no keys
9
+ of its own and calls nothing on your behalf.
10
+
11
+ | What | Why | Where |
12
+ |---|---|---|
13
+ | A reasoning program | Every stage runs as a headless turn of it | [Claude Code](https://claude.com/claude-code) (`claude`) or the Codex CLI (`codex`). Setup installs it if the machine has none. Sign in with the program setup installed (doctor prints its path), or with `claude` or `codex login` if the machine has its own |
14
+ | A register | Sets what the search reaches, and what it costs | [Signa](https://signa.so) — one key, self-serve, US + EU + WIPO and ten more offices |
15
+ | Web research | Covers the open web and the marketplaces | [Perplexity](https://www.perplexity.ai) |
16
+
17
+ The register is the one with a real choice in it. EUIPO and a local USPTO index cost nothing and
18
+ reach one office each; Signa is the recommended paid route and the fastest to a real clearance.
19
+ [The six, and what each reaches](providers/README.md).
20
+
21
+ **macOS, Linux or Windows.** On Windows everything runs natively in PowerShell, with no WSL2, no Git and no
22
+ administrator rights: `npm install --global clearotron`, then `clearotron install`, which installs the AI
23
+ program you choose into your own user folder. On Windows and macOS Clearotron runs in the window you start
24
+ it from, and closing the window stops it.
25
+
26
+ [INSTALL.md](INSTALL.md) §1 has the exact version floor and why it is one.
27
+
28
+ ## Install
29
+
30
+ ```bash
31
+ npx clearotron install # offers to install the reasoning program if the machine has none, and shows you how to sign it in
32
+ clearotron doctor --probe-engine
33
+ ```
34
+
35
+ `install` puts the program under `~/.local` and needs no root, and every command after it here uses the
36
+ `clearotron` it installed. If `~/.local/bin` is not on your `PATH` yet, type `~/.local/bin/clearotron`. Installing with npm's own global form
37
+ instead is covered in [INSTALL.md](INSTALL.md) §2.
38
+
39
+ `doctor` is the one to read. It checks that the reasoning program is there, on `PATH` or as the copy
40
+ setup installed; that it is signed in, by running a turn rather than by finding the executable; and
41
+ that your register credential resolves. An executable that is signed out passes every other check and
42
+ fails at the first stage.
43
+
44
+ ## Run one
45
+
46
+ Write `job.json`:
47
+
48
+ ```json
49
+ {
50
+ "id": "job-2026-0001",
51
+ "forwarder": "alex",
52
+ "forwarderEmail": "alex@example.com",
53
+ "marks": [{ "ref": "TM-0001", "name": "IRONWHISK", "classes": [9, 42] }],
54
+ "goods": "cloud software for weather analytics",
55
+ "jurisdictions": ["US"],
56
+ "product": "knockout-search"
57
+ }
58
+ ```
59
+
60
+ ```bash
61
+ clearotron run --job job.json
62
+ ```
63
+
64
+ **Name `product`.** It orders a knockout search: the cheapest of the four and the fastest way to
65
+ prove the install works. Delete that line and the territories decide instead — and one country gives
66
+ you a full country search, the deepest of the four, with case law on. Narrowing the scope orders
67
+ **more** work, not less.
68
+
69
+ **A knockout search takes 5 to 10 minutes. The other three take 1.5 to 2.5 hours.** Every finished
70
+ stage stays on disk, so a run survives interruption and a resume re-runs only what is missing.
71
+
72
+ ## Then
73
+
74
+ - See it before you buy anything: `npx clearotron demo` replays a finished clearance with no account, no
75
+ key and no network.
76
+ - The four searches, and what each reaches: [README.md](README.md).
77
+ - Everything else — configuration, the config store, the portal, access control:
78
+ [INSTALL.md](INSTALL.md).
@@ -9,7 +9,7 @@ file rather than a courtesy.
9
9
  production tree; `--check` fails when it no longer matches. Development dependencies are excluded:
10
10
  they are not distributed, so they carry no obligation for anyone who installs this.
11
11
 
12
- 177 packages.
12
+ 176 packages.
13
13
 
14
14
  > **Declared but NOT INSTALLED, so not distributed and not attributed below:** `@cfworker/json-schema`.
15
15
  > npm lists these with no version and no path — an unmet or optional peer. Recorded because a name
@@ -80,7 +80,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
80
80
  THE SOFTWARE.
81
81
  ```
82
82
 
83
- ## @hono/node-server@1.19.17
83
+ ## @hono/node-server@2.1.5
84
84
 
85
85
  - **Licence declared:** `MIT`
86
86
  - **Repository:** https://github.com/honojs/node-server
@@ -110,6 +110,69 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
110
110
  SOFTWARE.
111
111
  ```
112
112
 
113
+ ## @isaacs/nonrecursive-glob-match@1.0.3
114
+
115
+ - **Licence declared:** `BlueOak-1.0.0`
116
+ - **Licence file:** `LICENSE.md`
117
+
118
+ ```
119
+ # Blue Oak Model License
120
+
121
+ Version 1.0.0
122
+
123
+ ## Purpose
124
+
125
+ This license gives everyone as much permission to work with
126
+ this software as possible, while protecting contributors
127
+ from liability.
128
+
129
+ ## Acceptance
130
+
131
+ In order to receive this license, you must agree to its
132
+ rules. The rules of this license are both obligations
133
+ under that agreement and conditions to your license.
134
+ You must not do anything with this software that triggers
135
+ a rule that you cannot or will not follow.
136
+
137
+ ## Copyright
138
+
139
+ Each contributor licenses you to do everything with this
140
+ software that would otherwise infringe that contributor's
141
+ copyright in it.
142
+
143
+ ## Notices
144
+
145
+ You must ensure that everyone who gets a copy of
146
+ any part of this software from you, with or without
147
+ changes, also gets the text of this license or a link to
148
+ <https://blueoakcouncil.org/license/1.0.0>.
149
+
150
+ ## Excuse
151
+
152
+ If anyone notifies you in writing that you have not
153
+ complied with [Notices](#notices), you can keep your
154
+ license by taking all practical steps to comply within 30
155
+ days after the notice. If you do not do so, your license
156
+ ends immediately.
157
+
158
+ ## Patent
159
+
160
+ Each contributor licenses you to do everything with this
161
+ software that would otherwise infringe any patent claims
162
+ they can license or become able to license.
163
+
164
+ ## Reliability
165
+
166
+ No contributor can revoke this license.
167
+
168
+ ## No Liability
169
+
170
+ ***As far as the law allows, this software comes as is,
171
+ without any warranty or condition, and no contributor
172
+ will be liable to anyone for any damages related to this
173
+ software or this license, under any kind of legal claim.***
174
+ ```
175
+
113
176
  ## @modelcontextprotocol/sdk@1.32.1
114
177
 
115
178
  - **Licence declared:** `MIT`
@@ -383,7 +446,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
383
446
  THE SOFTWARE.
384
447
  ```
385
448
 
386
- ## balanced-match@1.0.2
449
+ ## balanced-match@4.0.4
387
450
 
388
451
  - **Licence declared:** `MIT`
389
452
  - **Repository:** git://github.com/juliangruber/balanced-match
@@ -392,7 +455,9 @@ THE SOFTWARE.
392
455
  ```
393
456
  (MIT)
394
457
 
395
- Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;
458
+ Original code Copyright Julian Gruber <julian@juliangruber.com>
459
+
460
+ Port to TypeScript Copyright Isaac Z. Schlueter <i@izs.me>
396
461
 
397
462
  Permission is hereby granted, free of charge, to any person obtaining a copy of
398
463
  this software and associated documentation files (the "Software"), to deal in
@@ -534,7 +599,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
534
599
  THE SOFTWARE.
535
600
  ```
536
601
 
537
- ## body-parser@2.3.0
602
+ ## body-parser@2.4.0
538
603
 
539
604
  - **Licence declared:** `MIT`
540
605
  - **Repository:** expressjs/body-parser
@@ -566,46 +631,18 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
566
631
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
567
632
  ```
568
633
 
569
- ## brace-expansion@1.1.21
634
+ ## brace-expansion@5.0.12
570
635
 
571
636
  - **Licence declared:** `MIT`
572
- - **Repository:** git://github.com/juliangruber/brace-expansion
637
+ - **Repository:** https://github.com/juliangruber/brace-expansion
573
638
  - **Licence file:** `LICENSE`
574
639
 
575
640
  ```
576
641
  MIT License
577
642
 
578
- Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
579
-
580
- Permission is hereby granted, free of charge, to any person obtaining a copy
581
- of this software and associated documentation files (the "Software"), to deal
582
- in the Software without restriction, including without limitation the rights
583
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
584
- copies of the Software, and to permit persons to whom the Software is
585
- furnished to do so, subject to the following conditions:
586
-
587
- The above copyright notice and this permission notice shall be included in all
588
- copies or substantial portions of the Software.
589
-
590
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
591
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
592
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
593
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
594
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
595
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
596
- SOFTWARE.
597
- ```
598
-
599
- ## brace-expansion@2.1.7
600
-
601
- - **Licence declared:** `MIT`
602
- - **Repository:** git://github.com/juliangruber/brace-expansion
603
- - **Licence file:** `LICENSE`
604
-
605
- ```
606
- MIT License
643
+ Copyright Julian Gruber <julian@juliangruber.com>
607
644
 
608
- Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>
645
+ TypeScript port Copyright Isaac Z. Schlueter <i@izs.me>
609
646
 
610
647
  Permission is hereby granted, free of charge, to any person obtaining a copy
611
648
  of this software and associated documentation files (the "Software"), to deal
@@ -843,43 +880,47 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
843
880
  OTHER DEALINGS IN THE SOFTWARE.
844
881
  ```
845
882
 
846
- ## concat-map@0.0.1
883
+ ## content-disposition@1.1.0
847
884
 
848
885
  - **Licence declared:** `MIT`
849
- - **Repository:** git://github.com/substack/node-concat-map
886
+ - **Repository:** jshttp/content-disposition
850
887
  - **Licence file:** `LICENSE`
851
888
 
852
889
  ```
853
- This software is released under the MIT license:
890
+ (The MIT License)
854
891
 
855
- Permission is hereby granted, free of charge, to any person obtaining a copy of
856
- this software and associated documentation files (the "Software"), to deal in
857
- the Software without restriction, including without limitation the rights to
858
- use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
859
- the Software, and to permit persons to whom the Software is furnished to do so,
860
- subject to the following conditions:
892
+ Copyright (c) 2014-2017 Douglas Christopher Wilson
861
893
 
862
- The above copyright notice and this permission notice shall be included in all
863
- copies or substantial portions of the Software.
894
+ Permission is hereby granted, free of charge, to any person obtaining
895
+ a copy of this software and associated documentation files (the
896
+ 'Software'), to deal in the Software without restriction, including
897
+ without limitation the rights to use, copy, modify, merge, publish,
898
+ distribute, sublicense, and/or sell copies of the Software, and to
899
+ permit persons to whom the Software is furnished to do so, subject to
900
+ the following conditions:
864
901
 
865
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
866
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
867
- FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
868
- COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
869
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
870
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
902
+ The above copyright notice and this permission notice shall be
903
+ included in all copies or substantial portions of the Software.
904
+
905
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
906
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
907
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
908
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
909
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
910
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
911
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
871
912
  ```
872
913
 
873
- ## content-disposition@1.1.0
914
+ ## content-type@1.0.5
874
915
 
875
916
  - **Licence declared:** `MIT`
876
- - **Repository:** jshttp/content-disposition
917
+ - **Repository:** jshttp/content-type
877
918
  - **Licence file:** `LICENSE`
878
919
 
879
920
  ```
880
921
  (The MIT License)
881
922
 
882
- Copyright (c) 2014-2017 Douglas Christopher Wilson
923
+ Copyright (c) 2015 Douglas Christopher Wilson
883
924
 
884
925
  Permission is hereby granted, free of charge, to any person obtaining
885
926
  a copy of this software and associated documentation files (the
@@ -901,7 +942,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
901
942
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
902
943
  ```
903
944
 
904
- ## content-type@1.0.5
945
+ ## content-type@2.1.0
905
946
 
906
947
  - **Licence declared:** `MIT`
907
948
  - **Repository:** jshttp/content-type
@@ -1968,7 +2009,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1968
2009
  SOFTWARE.
1969
2010
  ```
1970
2011
 
1971
- ## fast-uri@3.1.8
2012
+ ## fast-uri@3.1.9
1972
2013
 
1973
2014
  - **Licence declared:** `BSD-3-Clause`
1974
2015
  - **Repository:** https://github.com/fastify/fast-uri
@@ -2626,7 +2667,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2626
2667
  PERFORMANCE OF THIS SOFTWARE.
2627
2668
  ```
2628
2669
 
2629
- ## ip-address@10.7.2
2670
+ ## ip-address@10.7.5
2630
2671
 
2631
2672
  - **Licence declared:** `MIT`
2632
2673
  - **Repository:** https://github.com/beaugunderson/ip-address
@@ -4384,52 +4425,68 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4384
4425
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4385
4426
  ```
4386
4427
 
4387
- ## minimatch@3.1.5
4428
+ ## minimatch@11.0.3
4388
4429
 
4389
- - **Licence declared:** `ISC`
4390
- - **Repository:** git://github.com/isaacs/minimatch
4391
- - **Licence file:** `LICENSE`
4430
+ - **Licence declared:** `BlueOak-1.0.0`
4431
+ - **Repository:** git@github.com:isaacs/minimatch
4432
+ - **Licence file:** `LICENSE.md`
4392
4433
 
4393
4434
  ```
4394
- The ISC License
4435
+ # Blue Oak Model License
4395
4436
 
4396
- Copyright (c) Isaac Z. Schlueter and Contributors
4437
+ Version 1.0.0
4397
4438
 
4398
- Permission to use, copy, modify, and/or distribute this software for any
4399
- purpose with or without fee is hereby granted, provided that the above
4400
- copyright notice and this permission notice appear in all copies.
4439
+ ## Purpose
4401
4440
 
4402
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
4403
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
4404
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
4405
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
4406
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
4407
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
4408
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4409
- ```
4441
+ This license gives everyone as much permission to work with
4442
+ this software as possible, while protecting contributors
4443
+ from liability.
4410
4444
 
4411
- ## minimatch@5.1.9
4445
+ ## Acceptance
4412
4446
 
4413
- - **Licence declared:** `ISC`
4414
- - **Repository:** git://github.com/isaacs/minimatch
4415
- - **Licence file:** `LICENSE`
4447
+ In order to receive this license, you must agree to its
4448
+ rules. The rules of this license are both obligations
4449
+ under that agreement and conditions to your license.
4450
+ You must not do anything with this software that triggers
4451
+ a rule that you cannot or will not follow.
4416
4452
 
4417
- ```
4418
- The ISC License
4453
+ ## Copyright
4419
4454
 
4420
- Copyright (c) Isaac Z. Schlueter and Contributors
4455
+ Each contributor licenses you to do everything with this
4456
+ software that would otherwise infringe that contributor's
4457
+ copyright in it.
4421
4458
 
4422
- Permission to use, copy, modify, and/or distribute this software for any
4423
- purpose with or without fee is hereby granted, provided that the above
4424
- copyright notice and this permission notice appear in all copies.
4459
+ ## Notices
4425
4460
 
4426
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
4427
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
4428
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
4429
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
4430
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
4431
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
4432
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4461
+ You must ensure that everyone who gets a copy of
4462
+ any part of this software from you, with or without
4463
+ changes, also gets the text of this license or a link to
4464
+ <https://blueoakcouncil.org/license/1.0.0>.
4465
+
4466
+ ## Excuse
4467
+
4468
+ If anyone notifies you in writing that you have not
4469
+ complied with [Notices](#notices), you can keep your
4470
+ license by taking all practical steps to comply within 30
4471
+ days after the notice. If you do not do so, your license
4472
+ ends immediately.
4473
+
4474
+ ## Patent
4475
+
4476
+ Each contributor licenses you to do everything with this
4477
+ software that would otherwise infringe any patent claims
4478
+ they can license or become able to license.
4479
+
4480
+ ## Reliability
4481
+
4482
+ No contributor can revoke this license.
4483
+
4484
+ ## No Liability
4485
+
4486
+ **_As far as the law allows, this software comes as is,
4487
+ without any warranty or condition, and no contributor
4488
+ will be liable to anyone for any damages related to this
4489
+ software or this license, under any kind of legal claim._**
4433
4490
  ```
4434
4491
 
4435
4492
  ## minimist@1.2.8
@@ -4927,7 +4984,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4927
4984
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4928
4985
  ```
4929
4986
 
4930
- ## qs@6.16.0
4987
+ ## qs@6.16.1
4931
4988
 
4932
4989
  - **Licence declared:** `BSD-3-Clause`
4933
4990
  - **Repository:** https://github.com/ljharb/qs
@@ -6193,7 +6250,7 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
6193
6250
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
6194
6251
  ```
6195
6252
 
6196
- ## undici@7.29.1
6253
+ ## undici@7.30.1
6197
6254
 
6198
6255
  - **Licence declared:** `MIT`
6199
6256
  - **Repository:** https://github.com/nodejs/undici
@@ -6476,7 +6533,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
6476
6533
  OTHER DEALINGS IN THE SOFTWARE.
6477
6534
  ```
6478
6535
 
6479
- ## zod@4.4.3
6536
+ ## zod@4.6.7
6480
6537
 
6481
6538
  - **Licence declared:** `MIT`
6482
6539
  - **Repository:** https://github.com/colinhacks/zod
package/bin/onboard.mjs CHANGED
@@ -1542,17 +1542,22 @@ export async function runCheck() {
1542
1542
  warn(couldNotDetermine("CLEAROTRON_BOX", unitEnv));
1543
1543
  } else {
1544
1544
  const raw = (boxFileEnv?.CLEAROTRON_BOX ?? "").trim();
1545
+ // THE ACCEPTED NAMES ARE NEVER PRINTED. They are the names of the deployments this build was made for,
1546
+ // and the line offered them to a newcomer to name their own machine after (measured on a fresh install
1547
+ // of a beta, 2026-11-03). An install without units says nothing of an unset name: nothing there reads
1548
+ // it. Installed units are warned, because the services read it, and `start --background` installs the
1549
+ // same units a hosted deployment runs, from the same renderer, so nothing here can tell the two apart.
1545
1550
  if (!raw) {
1546
1551
  // AN ABSENCE IS NOT A MISCONFIGURATION, and this command already separates the two — a machine
1547
1552
  // nobody has configured yet has no box, legitimately, and `--check` on one exits 0 by contract.
1548
1553
  // Reported at `!` so it is visible rather than silent, which is the whole requirement; raising it
1549
1554
  // to `✗` made every unconfigured machine fail its own acceptance arm, and said "fault" about a
1550
1555
  // state that is the normal beginning of an install.
1551
- warn(`no CLEAROTRON_BOX in ${boxSource} — this deployment does not name itself, so nothing below `
1552
- + `can be read as a statement about a particular box. Set it to one of: ${DEPLOYMENT_BOXES.join(", ")}`);
1556
+ if (hosted) warn(`no CLEAROTRON_BOX in ${boxSource} — this deployment does not name itself, so nothing below `
1557
+ + "can be read as a statement about a particular box");
1553
1558
  } else if (!DEPLOYMENT_BOXES.includes(raw)) {
1554
- problem(`CLEAROTRON_BOX is "${raw}" in ${boxSource}, which is not a box this build knows `
1555
- + `(${DEPLOYMENT_BOXES.join(", ")}). An unrecognised name reads as NO box everywhere it is `
1559
+ problem(`CLEAROTRON_BOX is "${raw}" in ${boxSource}, which is not a box this build knows. `
1560
+ + `An unrecognised name reads as NO box everywhere it is `
1556
1561
  + "consulted, which is quieter than a wrong one and just as wrong");
1557
1562
  } else {
1558
1563
  ok(`this box names itself "${raw}", from ${boxSource}`);
@@ -104,7 +104,7 @@ if (!live.length) die(`${offices.length} office(s) returned and NONE is status:l
104
104
  const stamp = String(process.env.SIGNA_SYNC_STAMP ?? "").trim() || new Date().toISOString();
105
105
 
106
106
  const body = `// SPDX-License-Identifier: AGPL-3.0-only
107
- // Copyright 2026 Cordillera Sàrl
107
+ // Copyright 2026 Cordillera Sàrl. Additional terms under section 7 of the AGPL-3.0 apply — see ADDITIONAL-TERMS.md
108
108
  // GENERATED by bin/signa-sync.mjs — do not edit by hand.
109
109
  //
110
110
  // This is the vendor's own office list, fetched and committed so that a change in what we claim to
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "39f3bdc47543630a4f206ac667aa0fd923a2b32b",
3
- "version": "0.5.0-beta.1"
2
+ "commit": "f3353125c597a723ebb03ac628c3113230408558",
3
+ "version": "0.5.0-beta.10"
4
4
  }
package/docs/DELIVERY.md CHANGED
@@ -142,7 +142,7 @@ drives the whole delivery side over the ops MCP face — mint its token verb-sco
142
142
  `sendPending` until a send is confirmed, whichever lane wrote the packet, and `mark_sent` is the only
143
143
  thing that clears it. Acknowledging the event instead removes the marker and leaves the run owed, so
144
144
  the backstop scan re-arms it and the requester is told again on the next sweep.
145
- 4. For the remaining kinds — `intake-rejected`, `duplicate-skipped`, `late-bind-ack` — route the
145
+ 4. For the remaining kinds — `intake-rejected`, `duplicate-skipped`, `pre-run-failed`, `late-bind-ack` — route the
146
146
  packet's `text` → **`ack_event(file)`** (idempotent; validated as a bare `*.pending` name). These
147
147
  describe something that did not become a run, so there is no run to settle.
148
148
 
@@ -188,10 +188,9 @@ double-sends (`.sent` guards it).
188
188
  ## Legacy notes
189
189
 
190
190
  - The `delivered` outbox marker's plain-text body (agent id) predates the JSON packets and is
191
- kept for compatibility with the existing watcher (`driver/deliver-trigger.sh` + the
192
- `driver/systemd/` reference units, which wake an agent). Those are **one deployment's reference
193
- integration**, not part of the headless product contract; the full packet is always in
194
- `_driver/delivery.json`.
191
+ kept for compatibility with `driver/deliver-trigger.sh`, **one deployment's reference wake**. Its units no
192
+ longer ship, and the packaged install runs no outbox watcher: the integrator wakes itself. The script is not
193
+ part of the headless product contract; the full packet is always in `_driver/delivery.json`.
195
194
 
196
195
  ## One report per run
197
196
 
@@ -244,8 +244,7 @@ Reading order for the phases, with what code decides at each:
244
244
  by receipt; survivors become a front-matter coverage note, not a halt.
245
245
  6. **Frame-diff + bounded reopen** — the blind frame is diffed against the run's own framing;
246
246
  directives (including deterministic mechanical form-gap directives) can reopen register and
247
- source arms once, under a fetch ceiling (`CLEAROTRON_REOPEN_MAX_FETCH`, default 150), with
248
- per-directive closure verification. The whole block is non-fatal; unclosed directives demote to
247
+ source arms once, with per-directive closure verification. The whole block is non-fatal; unclosed directives demote to
249
248
  disclosed deferrals that later clamp the verdict.
250
249
  7. **Placement → register-digest** — both fatal. Every digest pass (fresh, escalation, envelope,
251
250
  late-bind, stale-repair) goes through the single `runDigest` chokepoint, which drops stale ledgers,
@@ -439,6 +438,7 @@ node pipeline.mjs --job <file.json> [--agent <id>] # cold run (still take
439
438
  node pipeline.mjs --resume <codename> # idempotent resume: valid outputs skip
440
439
  node pipeline.mjs --resume <codename> --from <stage> # force re-run from a stage ordinal
441
440
  node pipeline.mjs --resume <codename> --experiment <stage> [--label <t>] # shadow dir
441
+ node pipeline.mjs --resume <codename> --experiment synthesis --research replay # research from the run's own answers
442
442
  ```
443
443
 
444
444
  - **Resume** refuses a delivered run (any of the three delivered markers above — re-handing off a
@@ -449,6 +449,11 @@ node pipeline.mjs --resume <codename> --experiment <stage> [--label <t>]
449
449
  - **`--experiment`** runs one stage in a shadow dir (`_experiments/<ts>-<tag>/`) on copies of its
450
450
  inputs, under a `clearance-exp-…` session key that is excluded from the run's provider-usage
451
451
  attribution. The canonical run is untouched.
452
+ - **`--research replay`** answers the arm's research from the answers the run saved
453
+ (`_driver/research-answers.jsonl`, copied into the shadow dir). A question the run asked gets the
454
+ run's latest answer to it; a question it did not ask, and any grid, is refused, and nothing is sent
455
+ to the research service. It is refused for a stage that holds no research tool, or a run that saved
456
+ no answers. The arm's `experiment-context.json` records `research: {mode, answers}`.
452
457
  - **Orphan self-resume**: a manually resumed run that parks has no queue sidecars; the runner scans
453
458
  run dirs for due, payload-complete `.postponed` sentinels not owned by any queue and resumes them
454
459
  (claim = atomic rename to `.resuming`).