clearotron 0.7.0-beta.0 → 0.7.0-beta.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.
- package/build-info.json +2 -2
- package/docs/architecture/04-configuration-reference.md +105 -8
- package/driver/CHANGELOG.md +38 -0
- package/driver/cancel.mjs +19 -0
- package/driver/contract-e3-backlog.mjs +40 -40
- package/driver/contract-vocabulary.mjs +1 -1
- package/driver/driver.config.mjs +1 -2
- package/driver/engine/session-record.mjs +44 -2
- package/driver/findings-model.mjs +14 -2
- package/driver/follow-up-twins.mjs +86 -0
- package/driver/gateway.mjs +10 -2
- package/driver/jx-units.mjs +3 -1
- package/driver/manuals-inline.mjs +98 -0
- package/driver/manuals-seen.mjs +4 -16
- package/driver/mark-logos.mjs +31 -1
- package/driver/owner-use-check.mjs +5 -1
- package/driver/package.json +1 -1
- package/driver/pipeline-knockout.mjs +19 -4
- package/driver/pipeline.mjs +36 -8
- package/driver/portal-report.mjs +2 -2
- package/driver/portal-runs.mjs +13 -7
- package/driver/predelivery-lint.mjs +7 -5
- package/driver/publish/email-conditions.mjs +20 -3
- package/driver/publish/index.mjs +218 -139
- package/driver/publish/knockout.mjs +252 -228
- package/driver/publish/pool-admin.mjs +2 -2
- package/driver/publish/regions.mjs +4 -0
- package/driver/publish/register-record-html.mjs +105 -0
- package/driver/publish/register-record.mjs +26 -11
- package/driver/publish/render-knockout.mjs +108 -33
- package/driver/publish/render.mjs +311 -149
- package/driver/publish/report-data.mjs +1 -1
- package/driver/publish/report-document.mjs +353 -0
- package/driver/publish/search-depth.mjs +88 -7
- package/driver/publish/shell.mjs +41 -1
- package/driver/publish/strings.mjs +152 -4
- package/driver/publish/templates/clearance-print.css +23 -0
- package/driver/publish/templates/knockout.css +24 -0
- package/driver/publish/templates/report.css +40 -1
- package/driver/publish/xlsx.mjs +16 -20
- package/driver/register-count.mjs +5 -1
- package/driver/registry-fidelity.mjs +152 -29
- package/driver/repair-composers.mjs +2 -2
- package/driver/replay-archive.mjs +4 -3
- package/driver/run-delivered.mjs +8 -7
- package/driver/run-record.mjs +1 -0
- package/driver/skills/clearance-search/report-prose.md +3 -0
- package/driver/skills/knockout-assess/SKILL.md +8 -0
- package/driver/stage-freshness.mjs +8 -5
- package/driver/stages.mjs +66 -40
- package/driver/steps/delivery.mjs +9 -5
- package/driver/steps/overview-and-cards.mjs +4 -1
- package/driver/steps/register-sweep.mjs +5 -4
- package/driver/steps/skeptic-and-follow-up.mjs +3 -2
- package/driver/steps/verdict-gate.mjs +2 -1
- package/driver/suite-census.json +224 -32
- package/driver/synthesis-record.mjs +4 -3
- package/driver/withdrawn-rating.mjs +72 -0
- package/mcp-server/CHANGELOG.md +4 -0
- package/mcp-server/lib/brief.mjs +4 -1
- package/mcp-server/lib/evidence.mjs +66 -22
- package/mcp-server/lib/findings.mjs +19 -2
- package/mcp-server/lib/knockout.mjs +12 -3
- package/mcp-server/package.json +1 -1
- package/mcp-server/server.mjs +19 -2
- package/package.json +1 -1
- package/portal-ui/dist/assets/{index-CtkllKJ2.js → index-BBlN4CYq.js} +13 -3
- package/portal-ui/dist/index.html +1 -1
- package/portal-ui/package.json +1 -1
- package/providers/jx/src/core.js +4 -4
- package/providers/jx/src/judge.js +1 -3
- package/providers/jx/src/nativeread.js +1 -3
- package/providers/oauth-mcp-bridge/CHANGELOG.md +4 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/scripts/added-reference-check.mjs +35 -7
- package/scripts/e2e-first-time.mjs +1 -1
- package/scripts/env-audit.mjs +16 -9
- package/scripts/mint-public-residue.mjs +3 -3
- package/shared/brand.mjs +8 -1
- package/shared/names-in-force.mjs +0 -1
- package/shared/reference-guard-classes.mjs +43 -2
- package/shared/source-spans.mjs +91 -0
package/build-info.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
> Part of the architecture pack (`docs/architecture/`). The driver's module tree and the headless
|
|
4
4
|
> integrator contract are in [`driver/README.md`](../../driver/README.md).
|
|
5
5
|
|
|
6
|
-
> **Scope note:** this reference
|
|
7
|
-
>
|
|
8
|
-
>
|
|
9
|
-
>
|
|
10
|
-
>
|
|
11
|
-
> product from harness-only, and lists the product names
|
|
6
|
+
> **Scope note:** this reference has a row for every setting product code reads, named in the row's
|
|
7
|
+
> first column. When adding a setting anywhere in the repo, add its row here; a setting named only in
|
|
8
|
+
> another row's text is not found by a reader looking it up, and the audit counts it as missing.
|
|
9
|
+
> [05-config-governance.md](05-config-governance.md) carries the same settings with their ownership
|
|
10
|
+
> tiers and the drift and rotation map. `node scripts/env-audit.mjs` reports every name read by code,
|
|
11
|
+
> splits product from harness-only, and lists the product names with no row here; the
|
|
12
12
|
> placeholder-default guards in `driver/test/deployment-hostnames.test.mjs` enforce the fallback
|
|
13
13
|
> rules mechanically.
|
|
14
14
|
|
|
@@ -216,6 +216,7 @@ deployment may override (verify live values per deployment).
|
|
|
216
216
|
| `CLEAROTRON_ACCESS_DOMAIN` | unset (note omitted) | Identity domain named in the delivery email's access note ("sign in with a `<domain>` account"). Unset ⇒ the note is omitted rather than naming the wrong domain. |
|
|
217
217
|
| `CLEAROTRON_RUN_LOCK_DIR` | `<workspaceRoot>/clearance-run-locks` | Run-slot lock dir (turn locks under `…/turns`). |
|
|
218
218
|
| `CLEAROTRON_OUTBOX_DIR` | `<workspaceRoot>/clearance-outbox` | Delivery outbox (`<runId>.pending` wake markers). Renamed from `clearance-outbox`; when this variable is unset the old directory is still READ, so a box that never pinned it does not orphan markers it has already written. Writers use the new name only. |
|
|
219
|
+
| `CLEAROTRON_ACCESS_FILE` | `<base>/grants.json`: the base is the parent of `CLEAROTRON_REPORTS_DIR` when that is set, else `~/trademark` (`~/trademark-demo` for the demo) | The grants file: each person who may use the portal, and each connection `clearotron connect` records. `clearotron start` writes it the first time it runs and passes its path to the services it starts; `clearotron grant`, `connect` and `disconnect` edit it. Set this only when the file lives elsewhere. *(read from `bin/start.mjs`, `bin/grant.mjs`, `bin/connect.mjs`, `bin/disconnect.mjs`)* |
|
|
219
220
|
| `CLEAROTRON_OAUTH_BRIDGE` | module-relative `providers/oauth-mcp-bridge/bridge.mjs` | Case-law MCP bridge script. (Portable since the module-relative default; set explicitly only for a bridge outside the repo tree.) |
|
|
220
221
|
| `CLEAROTRON_REGISTER_CALL_LOG` | `~/trademark/telemetry/register-calls.jsonl`, or the existing file wherever it already is | Billing-grade provider-call ledger, shared by whichever ONE register provider is wired — not a vendor artifact. Every read site derives the default from`homedir()` at call time (2026-07-19: two sites had hardcoded a literal home directory, splitting the ledger under any other service account — guarded by `test/deployment-hostnames.test.mjs`). |
|
|
221
222
|
| `CLEAROTRON_REGISTER_RECORD_LOG` | **runtime-injected per run**: `<runDir>/_driver/register-record-bodies.jsonl` | Citation-fidelity log: the BODY of every fetched official record. ** moved it INTO the run** — created with the run, unioned into the run's`_records/`, archived and purged with it. There is no retention setting and no cleanup job, because it no longer grows on the box: held globally it reached 432 MB in 61 days on production and needed a rotation timer on every install. **Do not set this by hand** — a fixed value pins every run's bodies to one file and restores the problem. A box upgraded across still holds its old global file; nothing writes or reads it, the driver names it once per process on stderr, and archiving it is one`mv`. An empty log cannot read as verified: the run's successful `record_fetch` rows in the (still global) call ledger are compared against the assembled record set, and a gap is reported as a failure. |
|
|
@@ -229,6 +230,20 @@ deployment may override (verify live values per deployment).
|
|
|
229
230
|
| `CLEAROTRON_ENGINES_DIR` | unset ⇒ `~/.local/share/clearotron/engines` | The folder `clearotron install` installs the chosen engine's program into, `clearotron update` refreshes, and the engine resolver reads as its last step after the explicit setting and `PATH`: an npm project holding `node_modules/@anthropic-ai/claude-code` or `node_modules/@openai/codex`, where an empty directory means there is none. The test suite points it at an empty directory, so a test never reaches a program the developer's own setup installed. |
|
|
230
231
|
| `FEEDBACK_GH_TOKEN` | unset ⇒ `gh`'s own auth | GitHub token for the unattended feedback minter (`scripts/feedback-mint.mjs`), for a service account with no `gh auth` login. Present ⇒ exported to `gh` as `GH_TOKEN` for that call only. A credential: it is not a placeholder value and must not be committed. |
|
|
231
232
|
| `USPTO_API_KEY` | unset ⇒ the download path refuses | API key for the USPTO bulk download path in `bin/uspto-sync.mjs`. The INGEST path needs no key and says so; only the download half reads this. A credential. |
|
|
233
|
+
| `CLEAROTRON_CUSTOMERS_DIR` | unset ⇒ the bundled demo roster | The config store's company profiles. *(read from `driver/profiles.mjs`)* |
|
|
234
|
+
| `CLEAROTRON_RECIPES_DIR` | unset ⇒ saved searches off | The store saved searches are read from and written to. Unset, the portal answers its saved-search routes with 404 and the recipe service refuses to start. *(read from `driver/portal-service.mjs`, `driver/recipe-service.mjs`)* |
|
|
235
|
+
| `CLEAROTRON_QUEUE_DIR` | unset | A queue folder drained in addition to each workspace's own queue. A job claimed from it runs as `CLEAROTRON_DEFAULT_AGENT`. *(read from `driver/driver.config.mjs`)* |
|
|
236
|
+
| `CLEAROTRON_WORKSPACE_PREFIX` | `workspace-` | The prefix of the per-agent folders under `CLEAROTRON_WORK_DIR`. *(read from `driver/driver.config.mjs`)* |
|
|
237
|
+
| `CLEAROTRON_DEFAULT_AGENT` | `localagent` | The agent id a job runs as when nothing names one, such as a job claimed from `CLEAROTRON_QUEUE_DIR`. *(read from `driver/driver.config.mjs`)* |
|
|
238
|
+
| `CLEAROTRON_STAFF_POOL_ROOT` | unset ⇒ the publish pool | The pool the staff profiles page is written into when that page is regenerated from the command line. *(read from `driver/publish/profiles-page.mjs`)* |
|
|
239
|
+
| `PROFILE_REPO_ROOT` | the install's own folder | The git repository the profile service commits profile changes in. With `CLEAROTRON_INSTRUCTIONS_DIR` unset, the portal also reads the config store's manuals from it. *(read from `driver/profile-service.mjs`, `driver/portal-service.mjs`)* |
|
|
240
|
+
| `RECIPE_REPO_ROOT` | unset ⇒ `PROFILE_REPO_ROOT` | The git repository saved searches are committed in, which holds `CLEAROTRON_RECIPES_DIR`. *(read from `bin/start.mjs`, `driver/portal-service.mjs`)* |
|
|
241
|
+
| `PORTAL_AUDIT` | `portal-audit.log` beside the installed code | The portal's audit log: every admin write, refusal and 500. *(read from `driver/portal-service.mjs`)* |
|
|
242
|
+
| `PROFILE_AUDIT` | `_audit.log` in the profile store | The profile service's audit log. *(read from `driver/profile-service.mjs`)* |
|
|
243
|
+
| `RECIPE_AUDIT` | `_audit.log` in `CLEAROTRON_RECIPES_DIR` | The recipe service's audit log. *(read from `driver/recipe-service.mjs`)* |
|
|
244
|
+
| `TRADEMARK_MCP_AUDIT_LOG` | `~/trademark/telemetry/trademark-mcp-access.jsonl`, or the file at its older location if one exists there | The staff MCP door's access log. *(read from `mcp-server/lib/audit.mjs`)* |
|
|
245
|
+
| `TRADEMARK_MCP_TOKEN_DENYLIST` | a file in the install's home | The list of revoked access keys, which the doors read and refuse. *(read from `shared/client-door.mjs`, `mcp-server/mint-token.mjs`)* |
|
|
246
|
+
| `TRADEMARK_MCP_KEY_SOCKET` | unset ⇒ no key door | The local key door, and it is a PATH rather than a port on purpose: a tunnel forwards to a port and cannot reach a unix socket, so the transport separates programs on this machine holding a scoped access key from people arriving through a tunnel. Unset means no key door, and a deployment gets exactly the door it had before. |
|
|
232
247
|
|
|
233
248
|
### Concurrency and admission
|
|
234
249
|
|
|
@@ -236,6 +251,7 @@ deployment may override (verify live values per deployment).
|
|
|
236
251
|
|---|---|---|
|
|
237
252
|
| `CLEAROTRON_MAX_CONCURRENT_RUNS` | **2** (min 1; re-read at call time) | Global run-slot cap — concurrently executing whole runs, however launched (manual CLI runs included). A deployment's `.env` may set a different value; read the live value rather than this column when you need the one in force. A value that is not a number is refused at the read, by name; the staff status page and the portal report the cap as absent with the reason rather than stating a number nobody chose. |
|
|
238
253
|
| `CLEAROTRON_GATHER_CONCURRENCY` | 7 | Parallel gather members per run (also batches escalation re-runs, the closure fan-out, the envelope close and the frame-reopen sweep). A split gather is three common-law seats + four register units = 7, so the default runs them in one wave; it was 6 before the meaning seat got its own dispatch. Report cards have their own knob, `CLEAROTRON_CARD_CONCURRENCY` (default 8). |
|
|
254
|
+
| `CLEAROTRON_CARD_CONCURRENCY` | 8 | How many report cards are written at once, a cap shared with the report overview while it runs. A value that is not a number falls back to 8, and the run's record says so, rather than refusing mid-run (see the rule above the tables). *(read from `driver/driver.config.mjs`, `driver/steps/overview-and-cards.mjs`)* |
|
|
239
255
|
| `CLEAROTRON_RUN_LOCK_POLL_MS` | 15000 | Run-slot acquire poll cadence. |
|
|
240
256
|
| `CLEAROTRON_ADMISSION_BUDGET_MS` | 7200000 (2 h) | Runner stops claiming new jobs after this per activation; leftovers re-trigger a fresh activation. |
|
|
241
257
|
| `CLEAROTRON_QUEUE_SCAN_MS` | 10000 (min 1000) | Mid-drain re-scan for newly arrived jobs. |
|
|
@@ -265,11 +281,22 @@ deployment may override (verify live values per deployment).
|
|
|
265
281
|
| `CLEAROTRON_RATE_LIMIT_PROBE_MS` | `600000` (10 min) | How long a run parked on a provider cap waits before re-probing. Clamped to a 60s minimum — a probe loop tighter than that bills the cap it is waiting on. |
|
|
266
282
|
| `CLEAROTRON_RATE_LIMIT_PROBE_CEILING_MS` | `2400000` (40 min) | The longest that backoff may grow to. Also clamped to 60s minimum. |
|
|
267
283
|
| `CLEAROTRON_WALL_RESCUE` | **on** | The wall-clock rescue that salvages a torn draft when a stage hits its wall. `0`/`off`/`false`/`no` disarms it; anything else, including unset, leaves it armed. |
|
|
284
|
+
| `CLEAROTRON_OUTBOX_BACKOFF_BASE_SEC` | `60` | The first wait before a failed delivery wake is retried, in seconds; it doubles with each consecutive failure. *(read from `driver/outbox-backoff.mjs`)* |
|
|
285
|
+
| `CLEAROTRON_OUTBOX_BACKOFF_CAP_SEC` | `900` | The longest wait between delivery retries, in seconds. *(read from `driver/outbox-backoff.mjs`)* |
|
|
286
|
+
| `CLEAROTRON_OUTBOX_BACKOFF_MAX_RETRIES` | `5` | Consecutive failures before the outbox gives up on a delivery. *(read from `driver/outbox-backoff.mjs`)* |
|
|
287
|
+
| `CLEAROTRON_OUTBOX_GIVEUP_COOLDOWN_SEC` | `3600` | How long a given-up delivery waits before it is tried again, in seconds. Note that this one drops `BACKOFF` from the prefix. *(read from `driver/outbox-backoff.mjs`)* |
|
|
288
|
+
| `CLEAROTRON_OUTBOX_NOPROGRESS_MAX` | `5` | Consecutive wakes that return ok without delivering anything before the marker is set aside and an alert is queued. *(read from `driver/outbox-backoff.mjs`)* |
|
|
289
|
+
| `CLEAROTRON_HTTP_TIMEOUT_MS` | 30 minutes | How long the engine's outbound HTTP waits for a response's headers, in the tool servers and the driver. Under a second, or not a number, falls back to the default. *(read from `driver/engine/mcp/http-dispatcher.mjs`)* |
|
|
290
|
+
| `CLEAROTRON_SPAWN_GRACE_MS` | 2 s, and only where it exceeds the stall window | A floor under the stall window at a stage program's start, so its start-up is not charged to the stall clock. *(read from `driver/engine/common.mjs`)* |
|
|
291
|
+
| `CLEAROTRON_MIN_TOKENS_PER_SEC` | `1` | The trickle floor, counted in output tokens per second of ACTIVE time (elapsed minus tool wait). A turn under the floor is stopped there and recorded as a stall. `0` disables the floor entirely and is read as "no floor", never as a floor of zero. |
|
|
292
|
+
| `CLEAROTRON_MIN_TOKENS_WARMUP_MS` | 5 minutes | How long a turn is left alone before the trickle floor applies. |
|
|
293
|
+
| `CLEAROTRON_JX_SERP_DEADLINE_MS` | 5 minutes | The wall clock for the whole native-language web grid; `0` is a valid instant deadline. *(read from `driver/jx-units.mjs`)* |
|
|
268
294
|
|
|
269
295
|
### Pipeline feature gates and caps
|
|
270
296
|
|
|
271
|
-
The **gates** default on, and `0` disables most of them.
|
|
272
|
-
`CLEAROTRON_PLAN_DISPATCH
|
|
297
|
+
The **gates** default on, and `0` disables most of them. Three do not read it that way:
|
|
298
|
+
`CLEAROTRON_PLAN_DISPATCH`, `CLEAROTRON_MODEL_WIRE_CHECK` and `CLEAROTRON_FORM_REPAIR` go through
|
|
299
|
+
`envGateOn` and so take any off-word. (`CLEAROTRON_COMMONLAW_SPLIT`
|
|
273
300
|
was the other, and its `!== "off"` test meant `0` left the split armed — a spelling trap that is gone
|
|
274
301
|
with the switch, deleted by item 8.) The numeric
|
|
275
302
|
**caps** and the policy enum in the last three rows are not on/off switches at all: `0` disables none of
|
|
@@ -282,6 +309,11 @@ unrecognised policy value that leaves the default behaviour standing.
|
|
|
282
309
|
| `CLEAROTRON_FRAME_REOPEN` (+ `CLEAROTRON_FRAME_REOPEN_MAX`, default 1) | The bounded frame-diff reopen. |
|
|
283
310
|
| `CLEAROTRON_REGISTER_GAP_CLAMP` | The registerGap verdict clamp arm. |
|
|
284
311
|
| `CLEAROTRON_UNREACHABLE_SENIOR` (`open-item` \| `clamp`, default `open-item`) | Policy when a verdict-driving senior right can't be retrieved. |
|
|
312
|
+
| `CLEAROTRON_SATPROBE_CODESIDE` | The code-side saturation probe in the register sweep. It needs an `executePlan` adapter (it rides the same lane as `CLEAROTRON_PLAN_DISPATCH`). *(read from `driver/steps/register-sweep.mjs`)* |
|
|
313
|
+
| `CLEAROTRON_BAND_TRUTH_GATE` | The band truth gate in the register sweep. **Never disable in prod — restores the fabrication.** *(read from `driver/steps/register-sweep.mjs`)* |
|
|
314
|
+
| `CLEAROTRON_MODEL_WIRE_CHECK` (`0`, `off`, `false` or `no` disables) | Fails a turn whose provider reports a different model FAMILY than the driver asked for; disarming it silences the refusal and never the record: `modelActual`/`modelMismatch` keep landing on every dispatch row. *(the off-words read from `driver/driver.config.mjs`)* |
|
|
315
|
+
| `CLEAROTRON_FORM_REPAIR` (`0`, `off`, `false` or `no` disables) | Repairs a form-class stage failure inside the dispatch, up to twice; disarmed, the defect falls through to the retry ladder exactly as it did before, visibly, and is never swallowed as "validated fine". *(the off-words read from `driver/driver.config.mjs`)* |
|
|
316
|
+
| `CLEAROTRON_WHATSAPP_OPERATOR_COPY` (`0`, `false` or `no` disables) | Keeps or drops the operator's own copy of the completion notice. It is independent of `CLEAROTRON_REQUESTER_WHATSAPP`: an operator can stop receiving copies of other people's runs without changing who the requester notice reaches. |
|
|
285
317
|
|
|
286
318
|
### Payload ceilings
|
|
287
319
|
|
|
@@ -293,6 +325,8 @@ of truncations.
|
|
|
293
325
|
|---|---|---|
|
|
294
326
|
| `CLEAROTRON_BAND_RESPONSE_CHARS` | five sixths of `CLEAROTRON_TOOL_ANSWER_BYTES`: 37,500 on the Claude engine, 30,000 on the OpenAI engine; 70,000 with no answer size | Characters per band-server response, the band summary's parts included; a summary part is never longer than 70,000 whatever this says. Floor 4096. The sixth left over is room for the quotes and line breaks a printout adds and for a banner, so a band answer is never split again into answer parts. On the OpenAI engine it is at most 30,000; a smaller value set here still applies. |
|
|
295
327
|
| `CLEAROTRON_TOOL_ANSWER_BYTES` | 45,000 on the Claude engine, 36,000 on the OpenAI engine | Bytes per tool answer from every local tool server and the case-law bridge, counted as a quoted string (a quote or line break counts two). A longer answer is served in parts, each naming the next, and the tool runs once: a later part is read from the answer the server holds. Each engine writes its size into every server's entry: Claude Code saves an answer longer than 50,000 characters to a file the model must read for itself, and Codex removes the middle of a tool read longer than about 39,000 bytes. A smaller value set here still applies on both. A server started outside a stage, with no size, serves every answer whole. Floor 8192. |
|
|
328
|
+
| `CLEAROTRON_ENUMERATE_NAMES_CHUNK` | `80` | How many names one register enumerate call carries before it is split into windows. *(read from `providers/clarivate/src/core.js`)* |
|
|
329
|
+
| `TRADEMARK_MCP_MAX_BYTES` | 64 MiB | The largest file an MCP face reads; a larger one fails and names this setting. *(read from `mcp-server/lib/util.mjs`)* |
|
|
296
330
|
|
|
297
331
|
### Surfaces beside the driver — portal, demo, e2e harness
|
|
298
332
|
|
|
@@ -308,6 +342,7 @@ because the rule is about what PRODUCT CODE reads, not about what a run reads.
|
|
|
308
342
|
| `CLEAROTRON_ADMINISTRATOR_CONTACT` | unset | Who a signed-in person contacts to change the address, the permissions or the companies on their sign-in: a mail address (with or without `mailto:`) or an http(s) address. The portal reads it where it reads the organisation name and sends it on the same `/me` answer; Preferences then links the words "Clearotron administrator" to it. Unset, or any value that is neither a mail nor a web address, ⇒ the words are plain text. Effect class `deployment`; the full contract is its row in `.env.example`. |
|
|
309
343
|
| `PORTAL_LOCAL_CREDENTIAL` | `~/.cordillera/portal-local-credential.json` | Where local sign-in keeps its passphrase DIGEST. `clearotron start` points it inside the install's own base directory for a new install, so it mints its own passphrase instead of adopting a digest another install left; an install that has been signing in with the shared file keeps it. `npx clearotron demo` always points it inside the demo's own base directory and mints a new passphrase there on every start, so a demo never inherits a digest minted for another address, and removing the demo stays one `rm -rf`. |
|
|
310
344
|
| `PORTAL_LOCAL_PASSPHRASE` | unset | **NEVER set this in a file.** An internal one-shot handoff, not an operator control: on a first FOREGROUND start the supervisor mints the passphrase and hands it to the portal it spawns *at the spawn call*, so the closing summary can print the value beside the address rather than sending a first-time reader back into eleven startup log lines for the one value in this product that cannot be read back. It is deliberately absent from the composed child environments, because that composition is what `--background` writes into the units' env file — a passphrase there would be a permanent plaintext copy on disk and the product's own sentence, "it is stored only as a digest", would stop being true. Setting it in any env file recreates exactly that. Lost passphrase: `clearotron passphrase --reset`. |
|
|
345
|
+
| `PORTAL_SERVICE_HOST`, `PORTAL_SERVICE_PORT` | `127.0.0.1`, `18802` | The address the portal listens on. `clearotron start` sets both from the ports it resolves. In `local` sign-in mode the portal refuses to start on any address but loopback, because the passphrase and the session cookie would cross the network in plain text. *(read from `driver/portal-service.mjs`, `bin/start.mjs`)* |
|
|
311
346
|
| `PORTAL_URL` | `http://127.0.0.1:18802`, or built from `PORTAL_SERVICE_HOST`/`PORTAL_SERVICE_PORT` | Where the deploy tick's live-surface check expects to reach the portal. |
|
|
312
347
|
| `PORTAL_OPS_TOKEN_FILE` | `~/.config/systemd/user/trademark-portal.service.d/secrets.conf` | The systemd drop-in the live-surface check reads `PORTAL_OPS_TOKEN` out of. It reads the FILE rather than the environment so a check run by hand sees the same token the service does. |
|
|
313
348
|
| `CLEAROTRON_INVOKED_AS` | unset (⇒ the verb's own `argv[1]`) | How the reader typed the command, so every command a verb prints for them to type next is spelled the way they type it: `clearotron …` after a global install, `npx clearotron …` otherwise. The dispatcher runs each verb as a process of its own, whose `argv[1]` is always `bin/<verb>.mjs`, so `bin/clearotron.mjs` passes its own `argv[1]` down in this name. **Set by the dispatcher, never by an operator.** Effect class `deployment`; the full contract is its row in `.env.example`. |
|
|
@@ -323,6 +358,50 @@ because the rule is about what PRODUCT CODE reads, not about what a run reads.
|
|
|
323
358
|
| `CLEAROTRON_AGENTS` | derived | Comma-separated agent ids for `scripts/purge-runs.mjs` to sweep. |
|
|
324
359
|
| `CLEAROTRON_E2E_DIR` | **none — the script refuses without it** | The config repo's `e2e/` directory. There is one suite and it is not in this repo (ruling 2026-08-07), so the comparison script names the variable rather than defaulting anywhere. |
|
|
325
360
|
| `CLEAROTRON_E2E_EXPECT_DEMO_ROSTER` | unset | `1` makes the live-surface check REQUIRE the bundled demo roster. For a box that is meant to ship the demos; off elsewhere, so a real deployment is not failed for lacking them. |
|
|
361
|
+
| `CLEAROTRON_BOX` | none — required (unset or unrecognised ⇒ the unit-inventory line fails and names this variable) | Which deployment this is (`prod` \| `test`), for `scripts/live-surface-check.mjs`'s unit inventory. Self-declared, never inferred from the login name. |
|
|
362
|
+
| `CLEAROTRON_BRAND_NAME` / `CLEAROTRON_BRAND_TAGLINE` / `CLEAROTRON_BRAND_PRODUCT` | reference-deployment literals in `shared/brand.mjs` | Installation brand seam (single-sourced). |
|
|
363
|
+
| `CLEAROTRON_AGENT_WHATSAPP` | unset ⇒ an empty roster | A JSON map of agent id → chat number for the completion notice. Every user of a deployment shares one agent, so this reaches the operator and never the person who ordered the search. Unset is an EMPTY roster and never a demo one. *(the JSON map read from `driver/stages.mjs`)* |
|
|
364
|
+
| `CLEAROTRON_REQUESTER_WHATSAPP` | empty | A JSON map of requester email or handle → number: who the completion notice reaches. It holds contact data; treat it as a mirror-aware value wherever an integrator holds a copy. |
|
|
365
|
+
| `TRADEMARK_MSGID_DOMAIN` | `enqueue.local` | The domain in the message id of a job queued through the staff MCP door. *(read from `mcp-server/lib/ops.mjs`)* |
|
|
366
|
+
| `TRADEMARK_MCP_HTTP_PORT` | `18790` | The staff MCP door's port. Every caller there gets the read tools; an ops token also gets the write tools that start and stop runs, `start_run` among them. *(read from `mcp-server/http-server.mjs`)* |
|
|
367
|
+
| `TRADEMARK_MCP_HTTP_HOST` | `127.0.0.1` | The address the staff MCP door listens on; in `token` mode it must be a loopback address. *(read from `mcp-server/http-server.mjs`)* |
|
|
368
|
+
| `TRADEMARK_MCP_ALLOWED_HOSTS` | **none — set it** | The `host:port` values the staff MCP door answers to. With authentication on, or in `token` mode, unset refuses to start, because DNS-rebinding protection would be off. *(read from `mcp-server/http-server.mjs`)* |
|
|
369
|
+
| `TRADEMARK_MCP_SESSION_TTL_MS` | 30 minutes | Session lifetime on the staff MCP door. *(read from `mcp-server/http-server.mjs`)* |
|
|
370
|
+
| `TRADEMARK_MCP_SESSION_MAX` | `500` | Most sessions the staff MCP door holds at once. *(read from `mcp-server/http-server.mjs`)* |
|
|
371
|
+
| `TRADEMARK_MCP_RATE_PER_MIN` | `120` | Request rate limit on the staff MCP door, per minute. *(read from `mcp-server/http-server.mjs`)* |
|
|
372
|
+
| `TRADEMARK_MCP_OPS_RATE_PER_MIN` | `30` | Rate limit on the staff MCP door's ops requests, per minute. *(read from `mcp-server/http-server.mjs`)* |
|
|
373
|
+
| `TRADEMARK_MCP_AUTH_MODE` | unset ⇒ `cf-access` | Selects the door: unset or `cf-access` is a JWT-fronting proxy at the edge; `token` requires a valid HMAC-signed scoped access key on **every** request and runs no auth proxy at all. An unrecognised value is fatal. |
|
|
374
|
+
| `TRADEMARK_MCP_OIDC_ISSUER` / `TRADEMARK_MCP_JWKS_URL` | unset ⇒ the shapes derived from `CF_ACCESS_TEAM` | The issuer, and the signing-key set, the staff MCP door verifies sign-in tokens against. *(read from `mcp-server/http-server.mjs`)* |
|
|
375
|
+
| `TRADEMARK_MCP_EMAIL_CLAIM` | `email` | The token claim the staff MCP door reads the email address from. *(read from `mcp-server/http-server.mjs`)* |
|
|
376
|
+
| `TRADEMARK_MCP_AUTH_HEADER` | `cf-access-jwt-assertion` | The request header carrying the sign-in token to the staff MCP door; lowercased when read. *(read from `mcp-server/http-server.mjs`)* |
|
|
377
|
+
| `CLIENT_MCP_HTTP_PORT` | `18811` | The client MCP door's port. It was 18795, which collided with a co-hosted warm-MCP block, so keep any unit override that names a port. |
|
|
378
|
+
| `CLIENT_MCP_HTTP_HOST` | `127.0.0.1` | The address the client MCP door listens on. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
379
|
+
| `CLIENT_MCP_ALLOWED_HOSTS` | **none — set it** | The `host:port` values the client MCP door answers to. With authentication on, or in key-only mode, unset refuses to start. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
380
|
+
| `CLIENT_MCP_SESSION_TTL_MS` | 30 minutes | Session lifetime on the client MCP door. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
381
|
+
| `CLIENT_MCP_SESSION_MAX` | `500` | Most sessions the client MCP door holds at once. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
382
|
+
| `CLIENT_MCP_RATE_PER_MIN` | `120` | Request rate limit on the client MCP door, per minute. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
383
|
+
| `CLIENT_MCP_OIDC_ISSUER` / `CLIENT_MCP_JWKS_URL` / `CLIENT_MCP_EMAIL_CLAIM` / `CLIENT_MCP_AUTH_HEADER` | unset ⇒ the staff face's matching value, then the shapes derived from `CF_ACCESS_TEAM` | The client MCP door's issuer, signing-key set, email claim and token header. |
|
|
384
|
+
| `CF_ACCESS_TEAM` | **none — set it, or an issuer** | The JWT-fronting proxy's team, from which the doors derive their issuer and signing-key shapes. With `CLEAROTRON_OIDC_AUDIENCE` and `MCP_ALLOWED_EMAIL_DOMAINS` it appears in unit files as a **mirror of the dashboard**, not a second setup; they must match the edge. The boot guard is an audience PLUS either a team or an issuer. |
|
|
385
|
+
| `CLEAROTRON_OIDC_AUDIENCE` | **none — set it** | The proxy application's audience tag, which the portal, the staff MCP door and the profile and recipe services verify. A mirror of the dashboard; missing it is a refusal to start. *(which services verify it, read from `driver/portal-service.mjs`, `driver/profile-service.mjs`, `driver/recipe-service.mjs`, `mcp-server/http-server.mjs`)* |
|
|
386
|
+
| `CLEAROTRON_CLIENT_OIDC_AUDIENCE` | **none — set it** | The audience the client MCP door verifies. It may not be one of the audiences `CLEAROTRON_OIDC_AUDIENCE` accepts. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
387
|
+
| `MCP_ALLOWED_EMAIL_DOMAINS` | **none — set it, or `MCP_ALLOWED_EMAILS`** | Comma-separated email domains the doors admit; a mirror of the dashboard. The portal and the staff MCP door start with this or `MCP_ALLOWED_EMAILS`; the profile service and the recipe service require this one when sign-in is on. *(read from `driver/portal-service.mjs`, `driver/profile-service.mjs`, `driver/recipe-service.mjs`, `mcp-server/http-server.mjs`)* |
|
|
388
|
+
| `MCP_ALLOWED_EMAILS` | unset | Comma-separated email addresses the portal and the staff MCP door admit, beside `MCP_ALLOWED_EMAIL_DOMAINS`. *(read from `driver/portal-service.mjs`, `mcp-server/http-server.mjs`)* |
|
|
389
|
+
| `PORTAL_AUTH_MODE` | unset ⇒ `auth-proxy` | Selects the door: unset or `auth-proxy` (the default for a hosted deployment) means any login system in front that authenticates in the browser and forwards a verifiable JWT per request; `local` means one address and one passphrase on loopback. `cf-access` is the older word for `auth-proxy`, accepted forever and meaning exactly the same thing. |
|
|
390
|
+
| `PORTAL_OIDC_ISSUER` / `PORTAL_JWKS_URL` | unset ⇒ the shapes derived from `CF_ACCESS_TEAM` | Bringing your own login provider: the issuer, and the signing-key set, the portal verifies against. |
|
|
391
|
+
| `PORTAL_EMAIL_CLAIM` | `email` | The token claim the portal reads the email address from. *(read from `driver/portal-service.mjs`)* |
|
|
392
|
+
| `PORTAL_AUTH_HEADER` | `cf-access-jwt-assertion` | The request header carrying the sign-in token to the portal. Lowercased when read, because Node lowercases incoming header names. *(the default read from `driver/portal-service.mjs`)* |
|
|
393
|
+
| `PORTAL_LOCAL_USER` | none — required in `local` mode | The one email address that signs in to the portal in `local` mode. The service refuses to start without it, and the address must ALSO be enrolled in `CLEAROTRON_ACCESS_FILE`, because signing in is not being enrolled. |
|
|
394
|
+
| `PORTAL_LOCAL_WORKER` | unset | Set only by `bin/start.mjs` when it supervises a worker, and what licenses the portal to say a queued job is waiting for one. |
|
|
395
|
+
| `PORTAL_MCP_URL` | unset ⇒ starting and stopping a run is not wired | The staff MCP door the portal sends start and stop requests to, with `PORTAL_OPS_TOKEN`. `clearotron start` derives it from its resolved ports. *(read from `driver/portal-service.mjs`)* |
|
|
396
|
+
| `PORTAL_OPS_TOKEN` | unset ⇒ starting and stopping a run is not wired | The access key the portal presents to the staff MCP door at `PORTAL_MCP_URL` to start and stop runs. `clearotron start` mints it, capped to the companies on the roster when it started. *(read from `driver/portal-service.mjs`, `bin/brandowner.mjs`, `bin/onboard.mjs`)* |
|
|
397
|
+
| `PORTAL_RATE_PER_MIN` | `120` | Request rate limit on the portal, per minute. *(read from `driver/portal-service.mjs`)* |
|
|
398
|
+
| `PORTAL_PORT` / `PORTAL_HOST` | `18899` / `127.0.0.1` | The dev cockpit's port and address. *(read from `driver/dev-portal.mjs`)* |
|
|
399
|
+
| `PROFILE_PORT` / `PROFILE_HOST` | `18794` / `127.0.0.1` | The profile service's port and address. *(read from `driver/profile-service.mjs`)* |
|
|
400
|
+
| `PROFILE_RATE_PER_MIN` | `60` | Request rate limit on the profile service, per minute. *(read from `driver/profile-service.mjs`)* |
|
|
401
|
+
| `PROFILE_OIDC_ISSUER` / `PROFILE_JWKS_URL` / `PROFILE_EMAIL_CLAIM` / `PROFILE_AUTH_HEADER` | unset ⇒ the shapes derived from `CF_ACCESS_TEAM`; `email`; `cf-access-jwt-assertion` | The profile service's issuer, signing-key set, email claim and token header. *(read from `driver/profile-service.mjs`)* |
|
|
402
|
+
| `RECIPE_PORT` / `RECIPE_HOST` | `18801` / `127.0.0.1` | The recipe service's port and address. *(read from `driver/recipe-service.mjs`)* |
|
|
403
|
+
| `RECIPE_RATE_PER_MIN` | `60` | Request rate limit on the recipe service, per minute. *(read from `driver/recipe-service.mjs`)* |
|
|
404
|
+
| `RECIPE_OIDC_ISSUER` / `RECIPE_JWKS_URL` / `RECIPE_EMAIL_CLAIM` / `RECIPE_AUTH_HEADER` | unset ⇒ the shapes derived from `CF_ACCESS_TEAM`; `email`; `cf-access-jwt-assertion` | The recipe service's issuer, signing-key set, email claim and token header. *(read from `driver/recipe-service.mjs`)* |
|
|
326
405
|
|
|
327
406
|
### Gates that are OFF by default
|
|
328
407
|
|
|
@@ -332,6 +411,11 @@ cannot be read as one list.
|
|
|
332
411
|
| Var | Default | Meaning |
|
|
333
412
|
|---|---|---|
|
|
334
413
|
| `CLEAROTRON_SCREEN_GATE_UNNAMED` | unset (⇒ evidence only) | `enforce` arms the unnamed-row screen gate as terminal. Unset, the run RECORDS whether it enumerated anything under each unnamed row and does not fail — the evidence a decision about the semantics would be built from. Named in `.env.example`; this is the reference row. |
|
|
414
|
+
| `TRADEMARK_MCP_AUTH_DISABLED` / `TRADEMARK_MCP_DEV` | unset | Dev seams — never set in prod. `1` on both turns authentication off on the staff MCP door; the first without the second refuses to start, and it contradicts `TRADEMARK_MCP_AUTH_MODE=token`. *(read from `mcp-server/http-server.mjs`)* |
|
|
415
|
+
| `CLIENT_MCP_AUTH_DISABLED` / `CLIENT_MCP_DEV` | unset | Dev seams — never set in prod. `1` on both turns authentication off on the client MCP door; the first without the second refuses to start. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
416
|
+
| `PROFILE_AUTH_DISABLED` / `PROFILE_DEV` | unset | Auth seams for the profile service. `1` on both turns its authentication off; the first without the second refuses to start. *(read from `driver/profile-service.mjs`)* |
|
|
417
|
+
| `RECIPE_AUTH_DISABLED` / `RECIPE_DEV` | unset | Auth seams for the recipe service. `1` on both turns its authentication off; the first without the second refuses to start. *(read from `driver/recipe-service.mjs`)* |
|
|
418
|
+
| `CLIENT_MCP_TOKEN_ONLY` | unset | `1` runs the client MCP door as a key-only door: every request carries a scoped access key. It requires `TRADEMARK_MCP_TOKEN_SECRET`, `CLIENT_MCP_ACCOUNT_ACCESS=1` and `CLIENT_MCP_ALLOWED_HOSTS`, and refuses `CLIENT_MCP_AUTH_DISABLED`. *(read from `mcp-server/http-server-client.mjs`)* |
|
|
335
419
|
|
|
336
420
|
|
|
337
421
|
### Credentials and gather services (names only — values live in the deployment `.env`)
|
|
@@ -346,6 +430,7 @@ cannot be read as one list.
|
|
|
346
430
|
| `AWS_REGION` / `AWS_PROFILE` / `AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY` / `AWS_SESSION_TOKEN` | Bedrock's region, optionally the AWS profile, and the standard AWS key variables (the session token only for temporary credentials), read by the Claude program. Without the keys it uses the machine's other AWS credentials, such as an instance role. |
|
|
347
431
|
| `ANTHROPIC_BASE_URL` / `ANTHROPIC_AUTH_TOKEN` | A gateway in front of a cloud, and its token, read by the Claude program. With no cloud switch, `ANTHROPIC_BASE_URL` is the gateway form of `CLEAROTRON_AI_BILLING=cloud`; the gateway's credential must then be the token, because `ANTHROPIC_API_KEY` is deleted. |
|
|
348
432
|
| `ANTHROPIC_DEFAULT_OPUS_MODEL` / `ANTHROPIC_DEFAULT_SONNET_MODEL` / `ANTHROPIC_DEFAULT_HAIKU_MODEL` / `ANTHROPIC_DEFAULT_FABLE_MODEL` | The model each tier's alias resolves to, read by the Claude program: on Foundry, the deployment names; anywhere, a way to hold a tier still. Set the fable one to your Fable deployment's name if you set `CLEAROTRON_SYNTHESIS_MODEL=fable`; setup does not ask for it. |
|
|
433
|
+
| `CODEX_API_KEY` | unset | The OpenAI key the `openai-agent` engine bills under `CLEAROTRON_AI_BILLING=api-key`. With that billing and no key, the engine refuses rather than billing the ChatGPT subscription instead. *(read from `driver/engine/auth.mjs`, `driver/driver.config.mjs`)* |
|
|
349
434
|
| `OPENAI_API_KEY` | **Read only to be DELETED.** The `openai-agent` adapter strips it from the `codex exec` environment under subscription billing, so an unrelated key exported on the box cannot spoil a clean subscription bill. It is never the api-key credential for this product — that is `CODEX_API_KEY`. Listed because a reader who has one set needs to know it is removed. |
|
|
350
435
|
| `CORSEARCH_SESSION_KEY` | Register provider auth (session cookie). **Preflighted at run start — a missing credential fails fast before any model spend.** |
|
|
351
436
|
| `CLARIVATE_API_KEY` / `CLARIVATE_API_BASE` | Clarivate adapter — on the engine path: `providers/clarivate/src/mount.js` in `gather-config.mjs`'s stage-grant table, plus driver-side `recordFetch` / `countHits` / `listRecords` / `executePlan`. `CLARIVATE_API_BASE` overrides the core's `DEFAULT_BASE`. |
|
|
@@ -355,6 +440,11 @@ cannot be read as one list.
|
|
|
355
440
|
| `CLEAROTRON_MCP_URL` | Staff "Ask your AI" connector base, baked into the report at render — there is one report, and `portal-report.mjs` strips the block for non-staff readers at serve time. Fails closed → link omitted when unset. |
|
|
356
441
|
| `CLEAROTRON_CLIENT_MCP_URL` | The client connector's "Ask your AI" base address, served LIVE by the portal's `/portal/api/mcp-access` (the Connect your AI page) — set it on the portal unit, or the screen shows its (correct) empty state. The render no longer reads it: the baked block is the staff connector above. Fails closed → `{url:null}` when unset. **Never pin a placeholder value:** the fail-closed branch keys on the var being EMPTY, so a placeholder host defeats the guard and hands out a dead connector address. |
|
|
357
442
|
| `CLIENT_MCP_ACCOUNT_ACCESS` | `1` admits the signed-in principal from outside your staff (kind `account`) on the client MCP surface: no token, scoped to the companies the CF-verified email is granted. Off by default. Set WITHOUT `CLEAROTRON_ACCESS_FILE` ⇒ fatal start (`accountsForEmail` answers `"*"` with no guest list, and an unscoped wildcard must never be admitted). See `docs/CLIENT-MCP.md` — enabling this for a company with no `runCaps.dailyRuns` lets it start paid searches all day. |
|
|
443
|
+
| `PORTAL_SECRET` | The portal. Required in BOTH modes, and signs both token families; unset refuses to start. *(the refusal read from `driver/portal-service.mjs`)* |
|
|
444
|
+
| `SERPAPI_API_KEY` | The SerpAPI web search behind the grid's marketplace cells; absent, those cells are not searched. *(read from `driver/driver.config.mjs`)* |
|
|
445
|
+
| `TRADEMARK_MCP_TOKEN_SECRET` | Signs and verifies the scoped access keys the doors accept. *(read from `shared/scope.mjs`, `driver/systemd/render-units.mjs`)* |
|
|
446
|
+
| `TRADEMARK_MCP_TOKEN_SECRET_PREVIOUS` | The previous signing secret, still accepted during a rotation window. *(read from `shared/scope.mjs`)* |
|
|
447
|
+
| `OAUTH_BRIDGE_CREDS_DIR` / `OAUTH_BRIDGE_CLIENT_NAME` | The case-law bridge: where its sign-in lives (unset ⇒ `~/.config/trademark-oauth-mcp`), and the name it registers under (unset ⇒ `trademark-oauth-mcp-bridge`). *(read from `providers/oauth-mcp-bridge/bridge.mjs`)* |
|
|
358
448
|
|
|
359
449
|
### Scrub guard
|
|
360
450
|
|
|
@@ -378,6 +468,13 @@ cannot be read as one list.
|
|
|
378
468
|
| `PORTAL_READ_MODEL` | `sonnet` | The model the portal's own compose-read turn uses. Distinct from the pipeline's tiers: this is a portal surface, not a stage. |
|
|
379
469
|
| `CLEAROTRON_ORDER_PROBE_SEED` | unset | Seed for `scripts/band-shape-probe.mjs`, so an ordering probe can be replayed. A diagnostic script's knob, not a run's. |
|
|
380
470
|
| `PROBE_TERM` | `DELTA` | The mark word `providers/uspto-local/bin/verify-index.mjs` searches when verifying a built local USPTO index. A diagnostic script's knob, not a run's. Change it when a row reports MEASURES NOTHING: that means the term had no exact hit, so the row's timing is not a result. |
|
|
471
|
+
| `CLEAROTRON_KNOCKOUT_MODEL` | unset ⇒ opus | Model override for every Knockout stage. *(read from `driver/pipeline-knockout.mjs`)* |
|
|
472
|
+
| `CLEAROTRON_JX_FIXTURES` | unset ⇒ live | A folder of canned answers the native-language lanes read instead of calling out: the $0 test seam. *(read from `driver/jx-units.mjs`, `driver/jx.mjs`)* |
|
|
473
|
+
| `CLEAROTRON_KNOCKOUT_SWEEP_FIXTURES` | unset ⇒ live | A folder of saved grid ledgers and answers the Knockout's web sweep reads instead of calling out. *(read from `driver/pipeline-knockout.mjs`)* |
|
|
474
|
+
| `SIGNA_FIXTURES_DIR` | the provider's own test fixtures | The fixtures the Signa provider's mock lane reads. *(read from `providers/signa/src/core.js`)* |
|
|
475
|
+
| `CLEAROTRON_REPLAY_SNAPSHOT` / `CLEAROTRON_REPLAY_ROOTS` | a snapshot file in the home folder / every workspace under `CLEAROTRON_WORK_DIR` | The validator-replay harness's recorded verdict snapshot, and the colon-separated run roots it replays. *(read from `driver/replay-archive.mjs`)* |
|
|
476
|
+
| `SIGNA_SYNC_STAMP` | unset ⇒ the clock | Read only by `bin/signa-sync.mjs`, to make its output reproducible: it pins the generated office snapshot's `fetched_at`, so the same vendor response yields the same bytes. Unset in every deployment, and never read at run time. |
|
|
477
|
+
| `CLEAROTRON_DOCTOR_ASSUME_PINNED` | unset | A CI workspace declaration, read only by `bin/onboard.mjs`, and only to answer whether this checkout being behind its upstream is a question worth asking. |
|
|
381
478
|
|
|
382
479
|
### Retired — set these and nothing happens
|
|
383
480
|
|
package/driver/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# clearotron-driver
|
|
2
2
|
|
|
3
|
+
## 0.7.0-beta.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- New: On a clearance report, each conflict now opens its cited registrations with the register's own record, before the analysis. A closed "Register record" drop-down lists, for each registration, the mark and its type, the goods and services, the owner and the owner's country, the country, the status with its dates, and the register number. Goods show in English: the register's own where it has it, otherwise the provider's machine translation, marked as one. A card lists up to eight registrations and points to the audit workbook for the rest. Drop-down titles now read clearly in the dark theme.
|
|
8
|
+
- New: A clearance report shows the logo of each cited registration that has one, on a line of its own under the owner, captioned with its register. The logo is saved with the search and carried inside the report. Where a logo could not be fetched, its place reads "Logo not retrieved" and opens the register's record. A row in "Marks that can coexist" shows up to three small logos.
|
|
9
|
+
- New: On a Knockout report, each listed filing whose record the search saved opens it in a "Register record" drop-down under its row, with the same facts a clearance report shows. A filing with a logo shows it under the mark name.
|
|
10
|
+
- New: On a clearance report, full cards stay for the conflicts that set the report's risk. The conflicts rated lower become short cards behind one closed heading, such as "7 more conflicts rated Manageable", and are left out of the exported PDF unless you tick them. Each short card still opens to its full detail.
|
|
11
|
+
- New: An exported clearance PDF now prints each ticked conflict whole, with its register record and reasoning, and every other part of the report as it reads on screen: a section you left closed prints its heading only. A Knockout PDF still prints everything open.
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Fixed: The connector's evidence list now says a register record was retrieved when the search fetched and saved it. A finding that named its registration but carried no link of its own was listed as not retrieved, as though it rested on the write-up alone, although the record had been fetched. A link now counts only when it names the saved record exactly: a registration whose number merely begins with a saved one's no longer reads as retrieved. On the sample searches, 17 records now read as retrieved.
|
|
16
|
+
- For operators: A step that starts a fresh model session now receives its manuals in its opening message, on both engines. It used to be told which manual files to read, and opened each one itself. A resumed session is not sent them again. Each attempt's record in the run log lists the manuals it carried.
|
|
17
|
+
- Fixed: On a clearance for named countries, the audit workbook's register searches were headed "vendor register, worldwide". They are now headed "REGISTER", and the rows beneath say where each search ran.
|
|
18
|
+
- Fixed: On a large clearance, a register record's text could show a garbled character (�) where the record holds an accented or non-Latin letter. Records now keep every letter as the register holds it.
|
|
19
|
+
- Fixed: A clearance report no longer names a local script as searched without saying where its search did not complete. When a script was searched in some territories and not in others, Left open names those territories, or counts them with the full list when there are four or more. It also says when a planned worldwide search in that script did not complete, and when a planned search in it did not complete and its territory was not recorded.
|
|
20
|
+
- Fixed: Stopping a search now stops its spending. A Knockout stopped while it read the register went on to search its filings' owners on the web, a paid search each, until the service itself was stopped. Now a stopped search, Knockout or clearance, starts no further register request, web search or record fetch, and ends as stopped. A request already under way still finishes, and a stop pressed once the report is being published does not prevent its delivery, as before.
|
|
21
|
+
- Fixed: The portal's About page now names the bracket mark, the product's own mark, in its trade-mark notice. It used to name a mountain mark that the product does not carry.
|
|
22
|
+
- Fixed: An earlier right that could not be rated, because its record does not show which goods it covers, no longer drops out of the report. It is listed under "Left open" on the report page and in the audit workbook, with the right named and the reason it could not be rated, and it is not counted among the rated conflicts.
|
|
23
|
+
- Fixed: In the dark theme, the section link for the part of the report you are reading can now be read. It printed near-black on the dark bar, on clearance and Knockout reports alike.
|
|
24
|
+
- Fixed: In a clearance report, every link to a finding now leads to it. Links from the rights-holders key, the chart and the rating's finding numbers reach findings shown as a one-line row or ruled out, and the link to the common-law findings reaches them. The rating no longer cites a withdrawn finding the report does not show.
|
|
25
|
+
- Fixed: On a phone, a Knockout report's risk scale no longer prints its band words on top of one another. It shows the scale's two end words, and the pill above the needle names the name's own band.
|
|
26
|
+
- Fixed: "Left open" no longer lists an unfinished register search twice when the search records which kind of search it was and one open row already reports it. Where the record cannot say which search a row is, both rows stay.
|
|
27
|
+
- Fixed: A clearance report no longer says "the name searched in local script" in its summary. Under "What was searched", "Local-script spellings" now rests on searches of the name in a non-Latin script that completed, and reads Not searched when the search's record shows none did. A report without that record makes no claim either way.
|
|
28
|
+
- Fixed: On a clearance report, a single conflict rated below the report's risk now sits behind its own closed heading, "1 more conflict rated Manageable", like several do, where it printed as a full card.
|
|
29
|
+
- Fixed: On New clearance, taking a company's places down to one country no longer drops that country too. Where showed Worldwide while the bar below still named the company's full list, and the search could not be ordered until the reader added back a country they had kept. The country left now stays, and Where and the bar name it.
|
|
30
|
+
- Fixed: A register record now names the language of the goods it holds for registrations from Signa, and for Clarivate's Chinese, Greek and Swedish records. On a phone, a Knockout filing's register record and the counts card's close-variations line now fit the screen without scrolling sideways.
|
|
31
|
+
- Fixed: On a clearance report, the section links at the top now use each heading's own words: Summary, What happens next, Conflicts, Also considered and What was searched. Conflicts opens the list of conflicts, not the chart above it. The fold under the answer is labelled "What this depends on", and the section of marks that can sit beside yours is headed "Marks that can coexist".
|
|
32
|
+
- Fixed: On New clearance, removing every one of a company's places now leaves the bar below saying what Where says. Where read Worldwide while the bar still named the places the reader had removed.
|
|
33
|
+
- Fixed: The configuration reference now has a row for every setting the product reads. It used to leave out about one setting in two, among them the portal, profile and recipe services' ports and sign-in settings and the delivery retry timings, so a reader who looked one up there could conclude it did not exist.
|
|
34
|
+
- Fixed: An assistant connected to a clearance now gets the report's own answers about a finding and about what was searched. Asked about a finding, it was given the owner, status and classes the assessment wrote, even where the report showed different ones from the register's saved record. It now gets the ones the report shows, with each registration the finding cites listed separately. Asked what was searched, it listed a row twice that the report shows once. A Knockout's answer about what was searched now uses the register results the report was published with.
|
|
35
|
+
- Fixed: A clearance's cover email now states the same rating as its report. Where the assessment did not complete, the report states no rating, but the email still gave one, and the "Only you can close these" box that goes with a conditional rating. Both came from a verdict saved by the unfinished assessment. The email now gives no rating, and lists what the report lists under "Before you can rely on this result", under that heading, where the report lists anything there. On a report whose saved verdict predates the derived rating, the email used the label written into the report and now uses the rating the report derives. A Knockout's cover email now states the same register counts as its report: a Knockout resumed after its report was published could email counts the report showed as not available.
|
|
36
|
+
- New: Under "What was searched", "Local-script spellings" names the non-Latin scripts in which a search of the name completed. Under "Left open", the report names any planned script in which no search completed.
|
|
37
|
+
- Fixed: A clearance's exported PDF prints its verdict caption whole again, without the "What this depends on" label. With the print option that opens only the ticked cards, the caption had printed only its first sentence.
|
|
38
|
+
- Fixed: A worldwide report now names ARIPO, OAPI and Kosovo where its list of places where nothing was found printed the codes AP, OA and XK.
|
|
39
|
+
- Fixed: A worldwide search now lists the Chinese-, Japanese- and Korean-script register searches it did not run under "Left open". It did not when the account's default territories included none of those markets.
|
|
40
|
+
|
|
3
41
|
## 0.7.0-beta.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
package/driver/cancel.mjs
CHANGED
|
@@ -84,6 +84,25 @@ export function assertNotCancelledBeforePublish(runDir, lane = "run") {
|
|
|
84
84
|
throw new RunCancelled(`publish (${lane})`, rec);
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/**
|
|
88
|
+
* A CALL THAT SPENDS, MADE TO READ THE STOP FIRST. The gateway reads the stop before a model turn, and only there; the
|
|
89
|
+
* register counts and listings, the web searches and the owner checks that the code makes itself went around it, so a
|
|
90
|
+
* stopped Knockout kept making paid searches after the stop (measured 2026-11-19: six owner checks after it). Each call
|
|
91
|
+
* through this wrapper reads the stop before it starts, and a stopped run starts none: a call already started finishes,
|
|
92
|
+
* as a dispatched turn does.
|
|
93
|
+
*
|
|
94
|
+
* ONLY BEFORE THE PUBLISH READ. Past `assertNotCancelledBeforePublish` a stop can no longer prevent delivery, so the
|
|
95
|
+
* calls that build what is delivered (the logos, a record's body for the page) are not wrapped: refusing one there
|
|
96
|
+
* would leave a report half delivered rather than not delivered.
|
|
97
|
+
*/
|
|
98
|
+
export function stopsWithTheRun(runDir, label, fn) {
|
|
99
|
+
if (typeof fn !== "function") return fn;
|
|
100
|
+
return async (...args) => {
|
|
101
|
+
if (isCancelled(runDir)) throw new RunCancelled(label, readCancel(runDir));
|
|
102
|
+
return fn(...args);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
/**
|
|
88
107
|
* Thrown by the gateway when a run is asked to stop, and caught by both pipelines' run-level handlers.
|
|
89
108
|
*
|