clearotron 0.5.0 → 0.5.1-beta.0
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/CONTRIBUTING.md +2 -2
- package/INSTALL.md +334 -302
- package/QUICKSTART.md +12 -4
- package/README.md +12 -7
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/bin/README.md +14 -11
- package/bin/clearotron.mjs +1 -1
- package/bin/connect.mjs +73 -25
- package/bin/example.mjs +4 -2
- package/bin/onboard.mjs +562 -336
- package/bin/start.mjs +184 -36
- package/bin/update.mjs +26 -13
- package/build-info.json +2 -2
- package/docs/PORTAL.md +2 -2
- package/docs/architecture/02-architecture.md +3 -3
- package/docs/architecture/04-configuration-reference.md +1 -2
- package/docs/architecture/05-config-governance.md +1 -1
- package/docs/architecture/06-operations-runbook.md +1 -1
- package/driver/CHANGELOG.md +77 -0
- package/driver/README.md +2 -2
- package/driver/config-inventory.mjs +20 -11
- package/driver/contract-e3-backlog.mjs +27 -27
- package/driver/contract-e3-baseline.json +2 -2
- package/driver/contract-vocabulary.mjs +1 -1
- package/driver/degraded-parts.mjs +67 -3
- package/driver/dev-portal.mjs +1 -1
- package/driver/digest-queue.mjs +5 -5
- package/driver/driver.config.mjs +9 -9
- package/driver/engine/CONTRACT.md +1 -1
- package/driver/engine/anthropic-agent.mjs +4 -2
- package/driver/engine/mcp/band-server.mjs +1 -21
- package/driver/engine/mcp/clarivate-propose-tool.mjs +26 -0
- package/driver/engine/mcp/clarivate-server.mjs +2 -18
- package/driver/engine/mcp/fixture-register-server.mjs +33 -0
- package/driver/engine/mcp/gather-config.mjs +48 -7
- package/driver/engine/mcp/recording-server.mjs +206 -14
- package/driver/engine/mcp/supplemental.mjs +4 -2
- package/driver/engine/openai-agent.mjs +3 -1
- package/driver/engine/probe.mjs +10 -0
- package/driver/filing-goods.mjs +95 -0
- package/driver/findings-model.mjs +3 -0
- package/driver/gateway.mjs +42 -40
- package/driver/knockout-assess-record.mjs +54 -4
- package/driver/knockout-correction-record.mjs +342 -0
- package/driver/knockout-frame-record.mjs +4 -2
- package/driver/knockout-register-read.mjs +705 -0
- package/driver/knockout-register-record.mjs +222 -0
- package/driver/knockout-review-record.mjs +96 -25
- package/driver/narrative-refutation-record.mjs +87 -1
- package/driver/order-tables.mjs +23 -0
- package/driver/owner-use-check.mjs +5 -2
- package/driver/package.json +1 -1
- package/driver/partial-payload-baseline.json +8 -0
- package/driver/pipeline-knockout.mjs +506 -313
- package/driver/pipeline.mjs +179 -86
- package/driver/portal-local-auth.mjs +7 -1
- package/driver/portal-service.mjs +62 -6
- package/driver/progress.mjs +2 -2
- package/driver/publish/index.mjs +18 -21
- package/driver/publish/knockout.mjs +40 -18
- package/driver/publish/render-knockout.mjs +40 -27
- package/driver/publish/report-dates.mjs +43 -0
- package/driver/recall-reconciliation.mjs +2 -2
- package/driver/record-goods.mjs +50 -9
- package/driver/register-count.mjs +12 -59
- package/driver/register-fixture-marker.mjs +22 -0
- package/driver/register-plan.mjs +48 -0
- package/driver/register-records.mjs +84 -266
- package/driver/register-taint.mjs +2 -2
- package/driver/repair-composers.mjs +15 -8
- package/driver/result-noun-fields.mjs +6 -2
- package/driver/run-requirements.mjs +54 -4
- package/driver/runner.mjs +4 -13
- package/driver/skills/clearance-register/providers/clarivate.md +2 -2
- package/driver/skills/knockout-assess/SKILL.md +101 -100
- package/driver/skills/knockout-frame/SKILL.md +3 -1
- package/driver/skills/knockout-register-read/SKILL.md +77 -0
- package/driver/stages-knockout.mjs +159 -98
- package/driver/stages.mjs +4 -2
- package/driver/suite-census.json +389 -71
- package/driver/systemd/README.md +2 -2
- package/driver/verify-knockout.mjs +175 -39
- package/driver/verify.mjs +10 -9
- package/mcp-server/CHANGELOG.md +4 -0
- package/mcp-server/CONNECT.md +4 -0
- package/mcp-server/demo-mode.mjs +6 -0
- package/mcp-server/lib/demo-texts.mjs +38 -0
- package/mcp-server/lib/http-handler.mjs +7 -1
- package/mcp-server/lib/knockout.mjs +3 -2
- package/mcp-server/lib/options.mjs +3 -1
- package/mcp-server/lib/plan.mjs +6 -1
- package/mcp-server/mint-token.mjs +1 -1
- package/mcp-server/package.json +1 -1
- package/mcp-server/serve.mjs +11 -0
- package/mcp-server/server.mjs +13 -5
- package/package.json +1 -1
- package/portal-ui/dist/assets/{index-D2wrw9cH.css → index-AtB9ZpDH.css} +29 -0
- package/portal-ui/dist/assets/{index-DcLbvFmQ.js → index-C1oE78Wk.js} +161 -195
- package/portal-ui/dist/index.html +2 -2
- package/portal-ui/package.json +4 -4
- package/providers/README.md +4 -4
- package/providers/_shared/execute-plan.mjs +45 -1
- package/providers/_shared/term-shape.mjs +1 -1
- package/providers/clarivate/src/capabilities.js +7 -6
- package/providers/clarivate/src/core.js +11 -7
- package/providers/clarivate/src/wider-list.js +104 -0
- package/providers/oauth-mcp-bridge/CHANGELOG.md +4 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/providers/signa/src/capabilities.js +0 -9
- package/scripts/e2e-first-time.mjs +8 -7
- package/scripts/freeze-example-run.mjs +2 -2
- package/scripts/settings-render-check.mjs +5 -3
- package/scripts/test-run.mjs +8 -2
- package/shared/client-door.mjs +11 -8
- package/shared/connect-clients.mjs +10 -4
- package/shared/demo-connection.mjs +43 -0
- package/shared/demo-start-args.mjs +7 -2
- package/shared/invocation.mjs +18 -3
- package/shared/permanent-install.mjs +14 -0
- package/shared/scope.mjs +8 -1
- package/shared/stdio-connect.mjs +43 -21
- package/shared/trigger-lane.mjs +7 -0
- package/shared/tty-style.mjs +21 -5
|
@@ -143,17 +143,21 @@ export function billingRefusalWords(message) {
|
|
|
143
143
|
*/
|
|
144
144
|
export function runRequirements(env = {}, { registers = [], engines = {}, defaultEngine = null, resolveEngine = null } = {}) {
|
|
145
145
|
const out = [];
|
|
146
|
+
// What each row is about, for the words an install's operator is shown (whatIsMissing): set before each part below.
|
|
147
|
+
let about = "store";
|
|
146
148
|
const push = (name, blocking, why, at = ORDER) =>
|
|
147
|
-
out.push({ name, blocking, why, at, present: Boolean(val(env, name)) });
|
|
149
|
+
out.push({ name, blocking, why, at, about, present: Boolean(val(env, name)) });
|
|
148
150
|
|
|
149
151
|
// WRITTEN BY START ITSELF, so its absence is this product's fault and not a reader's — see the header.
|
|
150
152
|
push(POOL_ENV, true, "the directory a finished report is written into — without it a run has nowhere to deliver", START);
|
|
151
153
|
|
|
152
154
|
// ── THE REGISTER, AND ITS CREDENTIALS FROM THE PROVIDER'S OWN ROW ────────────────────────────────
|
|
153
155
|
const register = val(env, REGISTER_ENV);
|
|
156
|
+
about = "register";
|
|
154
157
|
push(REGISTER_ENV, true, "the register a search reads — the driver refuses by name at the first stage when it is unset, and there is no default");
|
|
155
158
|
const spec = (registers ?? []).find((p) => p.id === register);
|
|
156
159
|
if (spec) {
|
|
160
|
+
about = "credentials";
|
|
157
161
|
for (const k of spec.credentials ?? [])
|
|
158
162
|
push(k, true, `required by the ${spec.id} register — a run cannot verify a registry citation without it`);
|
|
159
163
|
// OPTIONAL ON THE PROVIDER'S OWN TERMS: an absent one narrows the offices searched and the run
|
|
@@ -165,10 +169,12 @@ export function runRequirements(env = {}, { registers = [], engines = {}, defaul
|
|
|
165
169
|
// that sentence and says it better. What is reported here is only that the NAME is set.
|
|
166
170
|
|
|
167
171
|
// ── THE ENGINE, AND THE BINARY IT DRIVES ─────────────────────────────────────────────────────────
|
|
172
|
+
about = "ai";
|
|
168
173
|
push(ENGINE_ENV, true, "which reasoning engine runs the stages");
|
|
169
174
|
const engineId = val(env, ENGINE_ENV) || defaultEngine || "";
|
|
170
175
|
const engine = (engines ?? {})[engineId];
|
|
171
176
|
if (engine?.env) {
|
|
177
|
+
about = "program";
|
|
172
178
|
push(engine.env, true, `the path to the ${engine.vendor} CLI this engine drives — a stage cannot dispatch without it`);
|
|
173
179
|
// FOUND IS WHAT COUNTS, NOT SET. A program on this environment's PATH, or the copy installed with
|
|
174
180
|
// Clearotron, needs no path written anywhere, and asking only whether the variable was set refused an
|
|
@@ -183,6 +189,7 @@ export function runRequirements(env = {}, { registers = [], engines = {}, defaul
|
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
191
|
if (engine?.authEnv) {
|
|
192
|
+
about = "payment";
|
|
186
193
|
const ways = payWays(engineId, engine);
|
|
187
194
|
const said = ways.map((m) => PAY_WORDS[m]);
|
|
188
195
|
push(engine.authEnv, false, `how the engine is paid for — ${said.length > 1 ? `${said.slice(0, -1).join(", ")} or ${said.at(-1)}` : said[0]}; `
|
|
@@ -244,7 +251,7 @@ export function runRequirements(env = {}, { registers = [], engines = {}, defaul
|
|
|
244
251
|
// And it is not an alternative to read or carry: `anyOf` is handed to the composer too, and the
|
|
245
252
|
// set-and-off line would travel through it.
|
|
246
253
|
const off = Object.values(CLOUD_SWITCH).filter((k) => val(env, k));
|
|
247
|
-
out.push({ name: CLOUD_SWITCH.vertex, anyOf: CLOUD_ROUTES.filter((k) => !off.includes(k)), blocking: true, at: ORDER, present: false,
|
|
254
|
+
out.push({ name: CLOUD_SWITCH.vertex, anyOf: CLOUD_ROUTES.filter((k) => !off.includes(k)), blocking: true, at: ORDER, about, present: false,
|
|
248
255
|
why: `${payWord} pays through a cloud account and nothing names which one — set `
|
|
249
256
|
+ `${["vertex", "foundry", "bedrock"].map((c) => `${CLOUD_SWITCH[c]}=1 for ${CLOUD_CREDENTIAL_CHECK[c].who}`).join(", ")}, `
|
|
250
257
|
+ `or ANTHROPIC_BASE_URL for a gateway`
|
|
@@ -296,6 +303,7 @@ export function runRequirements(env = {}, { registers = [], engines = {}, defaul
|
|
|
296
303
|
}
|
|
297
304
|
}
|
|
298
305
|
|
|
306
|
+
about = "research";
|
|
299
307
|
push(RESEARCH_ENV, false, "the three clearance searches carry the common-law grid and refuse at preflight without it; a Knockout search still runs and discloses the half it skipped");
|
|
300
308
|
|
|
301
309
|
return out;
|
|
@@ -337,6 +345,40 @@ export function missingRequirements(env = {}, tables = {}) {
|
|
|
337
345
|
};
|
|
338
346
|
}
|
|
339
347
|
|
|
348
|
+
// ── WHAT IS MISSING, IN THE WORDS THE PERSON WHO RUNS THE INSTALL IS SHOWN ─────────────────────────────────
|
|
349
|
+
//
|
|
350
|
+
// The owner's words (2026-11-06): one phrase per kind of missing setting, in this order, joined by "and". The
|
|
351
|
+
// portal's refusal to that person and `clearotron start`'s line about ordering both fill their gap with these.
|
|
352
|
+
const MISSING_WORDS = Object.freeze([
|
|
353
|
+
["ai", "no AI is chosen"],
|
|
354
|
+
["register", "no register is chosen"],
|
|
355
|
+
["credentials", "the register's credentials are missing"],
|
|
356
|
+
["program", "the AI's program is not installed"],
|
|
357
|
+
["payment", "the AI's payment is not set up"],
|
|
358
|
+
]);
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The phrases for what the order-time rows `rows` are about, joined by "and"; "" when none has one. With no AI
|
|
362
|
+
* chosen, the program and the payment rows are the default AI's, which nobody chose, so "no AI is chosen" says
|
|
363
|
+
* all of it.
|
|
364
|
+
*/
|
|
365
|
+
export function whatIsMissing(rows = []) {
|
|
366
|
+
const kinds = new Set(rows.map((r) => r.about));
|
|
367
|
+
if (kinds.has("ai")) { kinds.delete("program"); kinds.delete("payment"); }
|
|
368
|
+
return MISSING_WORDS.filter(([k]) => kinds.has(k)).map(([, words]) => words).join(" and ");
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* The first two sentences of the refusal the person who runs the install is shown, in the owner's words
|
|
373
|
+
* (2026-11-06): what the install lacks for a search (`missing`, as whatIsMissing words it) and the command
|
|
374
|
+
* that sets it up. `install` is that command as the reader types it: the portal names `clearotron install`,
|
|
375
|
+
* and `doctor` names it as it runs from where doctor ran. One composer, so the portal's sentence and
|
|
376
|
+
* doctor's opening cannot drift apart. PURE.
|
|
377
|
+
*/
|
|
378
|
+
export function cannotSearchYet(missing, install = "clearotron install") {
|
|
379
|
+
return `This install cannot run a search yet: ${missing}. Run \`${install}\` in a terminal to set it up.`;
|
|
380
|
+
}
|
|
381
|
+
|
|
340
382
|
/**
|
|
341
383
|
* The order-time refusal, in two vocabularies, from ONE list.
|
|
342
384
|
*
|
|
@@ -354,6 +396,7 @@ export function orderTimeRefusal(env = {}, tables = {}, { envFile = null, readFi
|
|
|
354
396
|
const missing = missingRequirements(env, tables).atOrder;
|
|
355
397
|
if (!missing.length) return null;
|
|
356
398
|
const names = missing.map((r) => r.name);
|
|
399
|
+
const gap = whatIsMissing(missing);
|
|
357
400
|
// EVERY FILE THAT REACHES THIS RUN, EACH NAMED BY WHAT READS IT — the rule `bin/start.mjs` already
|
|
358
401
|
// follows, for the reason it gives: two copies of this sentence is how one of them comes to name a file
|
|
359
402
|
// the reader cannot use. This copy named only `envFile`, the file background units read. A runner
|
|
@@ -381,16 +424,23 @@ export function orderTimeRefusal(env = {}, tables = {}, { envFile = null, readFi
|
|
|
381
424
|
: " Run `clearotron install` in a terminal to configure them, or set them in the file this install's units read.";
|
|
382
425
|
return {
|
|
383
426
|
names,
|
|
427
|
+
missing: gap,
|
|
384
428
|
operator: `this installation cannot run a search yet — it is installed but not configured:\n`
|
|
385
429
|
+ missing.map((r) => ` ${r.name} — ${r.why}`).join("\n")
|
|
386
430
|
+ `\n\n Nothing has been searched and nothing has been spent.${where}`,
|
|
387
431
|
// ONE SENTENCE, NO NAMES, AND NO PROMISE. "Contact" rather than "we have been notified": this
|
|
388
432
|
// product has no outbox on a box in this state, so a notice would be the F41 lie one level up.
|
|
389
|
-
client:
|
|
390
|
-
|
|
433
|
+
client: CLIENT_REFUSAL,
|
|
434
|
+
// THE PERSON WHO RUNS THE INSTALL is shown what is missing and the command that sets it, in the owner's words
|
|
435
|
+
// (2026-11-06). The portal shows this to a person who sees everything, the one its Installation settings
|
|
436
|
+
// page is for, and the client sentence to everyone else. A gap with no phrase keeps the client sentence.
|
|
437
|
+
installer: gap ? `${cannotSearchYet(gap)} Nothing has been searched and nothing has been charged.` : CLIENT_REFUSAL,
|
|
391
438
|
};
|
|
392
439
|
}
|
|
393
440
|
|
|
441
|
+
const CLIENT_REFUSAL = "This installation is not configured to run searches yet. Nothing has been searched and "
|
|
442
|
+
+ "nothing has been charged. Please contact whoever administers it.";
|
|
443
|
+
|
|
394
444
|
// THE ENV FILE `clearotron start` READ, when it started this runner: the one file a refusal can honestly
|
|
395
445
|
// name for a runner that read none itself (`startFile` above). A command-line flag rather than a variable,
|
|
396
446
|
// for two reasons. A unit's ExecStart is fixed at `--watch` and never carries it, so a runner holding it
|
package/driver/runner.mjs
CHANGED
|
@@ -29,6 +29,7 @@ import { driverDir, ensureDriverDir } from "../shared/driver-dir.mjs"; // —
|
|
|
29
29
|
import { isLiveQueueMarker, PROSE_PARTS, CLAIM_SIDECAR_SUFFIXES, TERMINAL_QUEUE_SUFFIXES, withFoldedGoods } from "./queue-markers.mjs";
|
|
30
30
|
import { matterLedgerPath, DEFAULT_CLIENT_DAILY_RUNS } from "./usage-ledger.mjs"; // ONE ledger-path calculation, shared with the portal pre-check
|
|
31
31
|
import { orderTimeRefusal, START_ENV_FILE_FLAG, startEnvFileOf } from "./run-requirements.mjs"; // one authority for what a run needs, and when it is asked for
|
|
32
|
+
import { runTables } from "./order-tables.mjs"; // the tables the portal's order door reads too, so the two cannot disagree
|
|
32
33
|
import { unitEnvPath, envFileRead } from "../shared/env-local.mjs"; // the file the units read, named by its one author
|
|
33
34
|
import { fileURLToPath } from "node:url";
|
|
34
35
|
import { config, preflightDeploymentUrls } from "./driver.config.mjs";
|
|
@@ -790,19 +791,9 @@ async function backstopFailureNotice({ res, job, agentId, base, codename, studio
|
|
|
790
791
|
// been notified" on a box with no outbox. `failAtIntake` writes the honest refusal and the run never
|
|
791
792
|
// starts, so nothing is spent and nothing is promised.
|
|
792
793
|
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
// is load-bearing: the register SELECTION table lives in `bin/onboard.mjs`, a CLI entry point, and a
|
|
797
|
-
// static import from `driver/` would point the driver at `bin/` — the cycle that makes `clearotron
|
|
798
|
-
// doctor` exit 13 after printing most of a report.
|
|
799
|
-
if (!__runTables) {
|
|
800
|
-
const { PROVIDERS } = await import("../bin/onboard.mjs");
|
|
801
|
-
const { ENGINE_BINARIES, DEFAULT_ENGINE_ID, resolveEngineProgram } = await import("./driver.config.mjs");
|
|
802
|
-
__runTables = { registers: PROVIDERS, engines: ENGINE_BINARIES, defaultEngine: DEFAULT_ENGINE_ID, resolveEngine: resolveEngineProgram };
|
|
803
|
-
}
|
|
804
|
-
return __runTables;
|
|
805
|
-
}
|
|
794
|
+
// The tables the intake wall checks an order against. They live in order-tables.mjs, which the portal's order door
|
|
795
|
+
// reads too, so the two ask one question of the same tables. Re-exported for the requirement-check wiring test.
|
|
796
|
+
export { runTables };
|
|
806
797
|
|
|
807
798
|
async function claimAndPrep(jsonFile, qdir, agentId) {
|
|
808
799
|
const base = jsonFile.replace(/\.json$/, "");
|
|
@@ -79,8 +79,8 @@ Two things to know when you read the results:
|
|
|
79
79
|
**A term you pass is never silently re-parsed.** Parentheses, or (outside `wildcard`) a stray `*`/`?`,
|
|
80
80
|
are **REJECTED** with a plain-English error and the slice defers — there is no escape syntax for those.
|
|
81
81
|
An operator word *inside* a phrase is handled for you: "BLACK AND DECKER" goes out as
|
|
82
|
-
`*BLACK
|
|
83
|
-
|
|
82
|
+
`*BLACK ADJ2 DECKER*`, its other words in order. The term that still defers is one made only of
|
|
83
|
+
operator words, such as `OR` alone.
|
|
84
84
|
|
|
85
85
|
`names[]` (an OR-stack) becomes ONE value joined with explicit ` OR `. The safe width is **496 terms** —
|
|
86
86
|
the bound is the JSON parser's document-nesting cap, which the register names in the refusal it answers a
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: knockout-assess
|
|
3
|
-
description: Rate every mark of a KNOCKOUT batch from its
|
|
3
|
+
description: Rate every mark of a KNOCKOUT batch from its research payload and the filings you hold, in the customer's configured band vocabulary. Triage judgment, receipted evidence, measured tone. Emits knockout-findings.json.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# Knockout assessment
|
|
6
|
+
# Knockout assessment
|
|
7
7
|
|
|
8
8
|
You rate each mark of the batch for **triage**: "is there an obvious blocker to USING this name in
|
|
9
|
-
the market?"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
the market?" This screens; it does not clear, and it gives no filing advice.
|
|
10
|
+
|
|
11
|
+
**What you hold is the whole evidence base:** the client's request, the plan with each mark's context
|
|
12
|
+
framing, each mark's raw research payload (`research/<mark>.md`), and, when the register component ran,
|
|
13
|
+
the filings the reading step carried forward, what it set aside, and the owner searches made for them.
|
|
14
|
+
|
|
15
|
+
**Rate in the frozen framework's words** (`_driver/framework.json`: the customer's own ladder when
|
|
16
|
+
configured, else the house triage ladder). State the band WORD. The only sub-gradation is
|
|
17
|
+
`ratingQualifier: "low"`. It CAPS a band ("Medium (low)", calibration rule 4) and there is no other value:
|
|
18
|
+
a band that needs sharpening is the band above it, stated as that word.
|
|
15
19
|
|
|
16
20
|
## Per mark — the mandatory sequence
|
|
17
21
|
|
|
18
|
-
1. **Context framing FIRST** (from the plan
|
|
19
|
-
phrase vs cultural echo. It frames what the name READS as, and the evidence bullets draw on it.
|
|
20
|
-
|
|
22
|
+
1. **Context framing FIRST** (from the plan, read against the client's request): coined vs common
|
|
23
|
+
phrase vs cultural echo. It frames what the name READS as, and the evidence bullets draw on it. It
|
|
24
|
+
does not set, floor or lift a band. A risk that belongs to the NAME rather than to one user is its
|
|
25
|
+
own `findings[]` record, rated there: Famous Brand and Cultural Reference are card types for that.
|
|
21
26
|
2. **Parody / evocation check**: does the name echo a famous mark or property even without identical
|
|
22
27
|
ownership ("Free Range 1s" echoes "Air Force 1s")? Flag it even when nobody owns the echoed form.
|
|
23
28
|
3. **Band per the framework ladder**, applying the calibration rules below.
|
|
@@ -31,15 +36,12 @@ there is no other value: a band that needs sharpening is the band above it, stat
|
|
|
31
36
|
`findings[]` record carries one conflicting name, its owner, its band, its evidence and its ground.
|
|
32
37
|
5. **`findings[]` — one typed record per conflicting name you actually found**, ordered most blocking
|
|
33
38
|
first and numbered `ordinal: 1…N` in that order (the ordinal is per MARK). The code then re-ranks on
|
|
34
|
-
the band and renumbers, so what your order decides is the order inside a band. A cited URL must
|
|
35
|
-
6.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
the register actually ran. Where it did not run, the estimate is still the honest answer and RF-15
|
|
41
|
-
says so.
|
|
42
|
-
*The number is kept and not reused* — see calibration rule 4 for why.
|
|
39
|
+
the band and renumbers, so what your order decides is the order inside a band. A cited URL must come from a recorded research payload for this batch, a filing held for this batch, or a recorded owner check linked to a held filing. The receipts gate refuses a citation the driver cannot trace, at the chunk, at the merged artifact, and again at publish.
|
|
40
|
+
6. **`registerEstimate`.** Use registerEstimate only where the register component was skipped, under
|
|
41
|
+
RF-15. An empty carried list does not establish that it was skipped. Use the run's recorded state; keep
|
|
42
|
+
a verified zero, a failed question, and an unread answer distinct. With held filings, weigh their
|
|
43
|
+
evidence. Where it is owed it is an EXPECTATION and labels itself as one, ending with a sentence in the
|
|
44
|
+
shape of "This is an expectation only, not a search result."
|
|
43
45
|
7. **Purple notes** (internal, for the reviewing lawyer): belt-and-braces additions, famous-brand
|
|
44
46
|
adjacency, institutional-knowledge gaps ("Confirm firm history on [MARK]"),
|
|
45
47
|
register-pending notes, prior-use mitigation.
|
|
@@ -48,47 +50,30 @@ there is no other value: a band that needs sharpening is the band above it, stat
|
|
|
48
50
|
|
|
49
51
|
1. **Class-specific ratings are mandatory** at the framework's material bands: "Medium (Classes 9,
|
|
50
52
|
25, 28, 41)", never a bare band — `classesDriving` carries the class list.
|
|
53
|
+
Use `classGroups` when separating the requested goods changes the advice under the frozen framework.
|
|
54
|
+
Different band words or qualifiers alone do not require a split. Where a split is needed, record one row
|
|
55
|
+
per distinct band and qualifier, with `band`, `ratingQualifier` where it applies, and `classes`. Every
|
|
56
|
+
class searched belongs to exactly one group. Combine classes with the same band and qualifier. `rating` and
|
|
57
|
+
`ratingQualifier` match the highest group under the framework's ladder and the existing qualifier rule;
|
|
58
|
+
`classesDriving` contains that group's classes. `basis` and the opening read explain what divides the
|
|
59
|
+
groups, and a finding or filing read that bears on only some classes says which. Keep evidence gaps
|
|
60
|
+
explicit. Where one conclusion answers the request across the classes searched, leave `classGroups` out.
|
|
61
|
+
Below the framework's material bands, keep one overall conclusion unless the distinction changes the
|
|
62
|
+
advice; explain useful goods distinctions in the reasoning. Divide on the requested goods and evidence,
|
|
63
|
+
never to soften a rating.
|
|
51
64
|
2. **Crowded field = diluted risk, not amplified.** Many small, non-enforcing players means any one
|
|
52
65
|
player's enforcement power is weaker — a crowded field typically caps at the middle band. The
|
|
53
66
|
gating precondition, and what a crowd may and may not do to a band, are in
|
|
54
67
|
`../clearance-search/firm-wide-reasoning.md` → *Volume is not a risk multiplier*; read it there rather
|
|
55
68
|
than from a summary here.
|
|
56
|
-
|
|
57
|
-
known-to-enforce rights holders" — is RETIRED. That is owner size and fame driving a band, which the
|
|
58
|
-
framework decks forbid in terms: "Optics — owner size, fame, partnership — never move the legal
|
|
59
|
-
read." It was the only instruction in this seat's context licensing that move, and the readiest
|
|
60
|
-
explanation for a famous owner's hit rated well above the lawyer's grade. The rest of the rule stands
|
|
61
|
-
and is doctrine.)*
|
|
62
|
-
3. **RETIRED — how ordinary the words are is a note for the reviewing lawyer, never a band.**
|
|
63
|
-
This forbade the lowest band for a common English phrase and put a floor a band above it. On a
|
|
64
|
-
scale that ends in Low it kept an everyday name off "no issues found"; on a client scale with no
|
|
65
|
-
Low band the floor landed one band higher still, and three names went out rated above every
|
|
66
|
-
conflict card on their own pages — twelve cards, all at the bottom band, under three names a band
|
|
67
|
-
above them, with nothing on the page to explain it. The reviewing lawyer rated the cards right and
|
|
68
|
-
the names wrong.
|
|
69
|
-
**Removed for every client, not only where it misfired** (owner, 2026-09-15). Keeping it on scales
|
|
70
|
-
that have a Low band was considered and rejected; so was explaining the gap on the report, because
|
|
71
|
-
a report that explains a wrong rating is still wrong.
|
|
72
|
-
Say what the words are in the reading — coined, compound, everyday phrase, cultural echo — and let
|
|
73
|
-
it inform the evidence bullets. It does not set, floor or lift a band. A risk that belongs to the
|
|
74
|
-
NAME rather than to one user is written as its own `findings[]` record and rated there; Famous
|
|
75
|
-
Brand and Cultural Reference are already card types for exactly that.
|
|
76
|
-
*The number is kept and not reused*, for the reason rule 4 gives below.
|
|
77
|
-
4. **RETIRED — the caveat is conditional now, and it is not this file's to state.**
|
|
78
|
-
This rule ordered the pending-register caveat on *every* summary, unconditionally. When the register
|
|
79
|
-
ran and surfaced live filings, that sentence tells a client its ratings are common-law only while the
|
|
80
|
-
same run holds the filings — which is what shipped. The replacement is RF-10 v3 in
|
|
81
|
-
`../clearance-search/firm-wide-reasoning.md`: when register analysis ran AND surfaced live filings, drop
|
|
82
|
-
the caveat and cite the register evidence directly; otherwise it stands.
|
|
83
|
-
*The number is kept and not reused.* `verify-knockout.mjs` and two other files address these rules by
|
|
84
|
-
number, so renumbering would silently repoint five live references at the wrong rule.5. **Dispute-type notation only when the customer's framework defines it** (e.g. an A–E / dispute
|
|
69
|
+
3. **Dispute-type notation only when the customer's framework defines it** (e.g. an A–E / dispute
|
|
85
70
|
matrix): use their notation exactly; the house triage ladder has none — never invent one.
|
|
86
|
-
|
|
71
|
+
4. **Enforcer profiling matters** at the material bands: portfolio brand? opposition history?
|
|
87
72
|
institutional or individual filer? "No large brands or assertive enforcers" can cap a middle band
|
|
88
73
|
at its "(low)" qualifier.
|
|
89
|
-
|
|
74
|
+
5. **Client's prior use mitigates, doesn't eliminate.** Rate the full external landscape first; note
|
|
90
75
|
the mitigation separately in a purple bullet.
|
|
91
|
-
|
|
76
|
+
6. **A NAME IS NEVER RATED ABOVE THE WORST CARD ON ITS PAGE.** The page is one judgment: the name's
|
|
92
77
|
band, its basis line, its Why and Why-not boxes and its opening read all have to agree with each
|
|
93
78
|
other and with the cards under them. A reader who sees a band on the name and a milder band on
|
|
94
79
|
every card beneath it has been given two answers and no way to choose.
|
|
@@ -103,9 +88,7 @@ there is no other value: a band that needs sharpening is the band above it, stat
|
|
|
103
88
|
reading, a risk that belongs to the NAME rather than to one user. Write it as a `findings[]`
|
|
104
89
|
record and rate it there, where a reader can see what it is and disagree with it. A band lifted
|
|
105
90
|
without a card is a conclusion with its evidence left out.
|
|
106
|
-
The driver checks this and REFUSES, naming the card it read: it never rewrites your band.
|
|
107
|
-
corrected band you reasoned is the product; a band a script lowered under prose that still argues
|
|
108
|
-
for the old one is worse than the defect it replaced.
|
|
91
|
+
The driver checks this and REFUSES, naming the card it read: it never rewrites your band.
|
|
109
92
|
|
|
110
93
|
## Degraded marks (research unavailable or null — never inflate)
|
|
111
94
|
|
|
@@ -117,10 +100,7 @@ there is no other value: a band that needs sharpening is the band above it, stat
|
|
|
117
100
|
|
|
118
101
|
## Assert nothing you did not examine (non-optional at every depth)
|
|
119
102
|
|
|
120
|
-
|
|
121
|
-
each mark, and — when the register component is configured — the filings it fetched and the owner searches
|
|
122
|
-
made for them. That is the whole evidence base. Everything below
|
|
123
|
-
follows from writing only what it supports.
|
|
103
|
+
Everything below follows from writing only what your evidence supports.
|
|
124
104
|
|
|
125
105
|
1. **A survivor is never "clear".** Never "clear", "clean", "no conflicts found", "clear to proceed".
|
|
126
106
|
The screen ending without a blocker is a result about the screen, not about the mark.
|
|
@@ -128,18 +108,17 @@ follows from writing only what it supports.
|
|
|
128
108
|
empty there — "no exact-name energy drink was identified in the supplement and grocery
|
|
129
109
|
marketplaces screened" is supportable; "there is no conflicting use" is not. `negatives[]` is
|
|
130
110
|
where a scoped absence belongs, and every entry carries the `source` that bounds it.
|
|
131
|
-
3. **
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
the shape of "This is an expectation only, not a search result."
|
|
111
|
+
3. **Weigh the filings; do not describe the search.** A filing you were handed is evidence like any
|
|
112
|
+
other: whose it is, what it covers, what it is worth against this name. Claim neither that the register
|
|
113
|
+
is clear nor that it is crowded.
|
|
135
114
|
4. **Crowded-field reasoning is about the field you actually screened.** Rule 2 of the calibration
|
|
136
115
|
rules is judgment over the marketplace and common-law evidence in this mark's own payload and its
|
|
137
116
|
`findings[]` — cite that evidence. It is never a claim about filings, families, or how many marks
|
|
138
117
|
share a token. `crowdedField: true` means "the payload I read
|
|
139
118
|
shows a crowded field", and if the payload does not show one, it is `false`.
|
|
140
119
|
|
|
141
|
-
The engine appends the depth boundary to `batch.standardCaveats` itself,
|
|
142
|
-
|
|
120
|
+
The engine appends the depth boundary to `batch.standardCaveats` itself, and the standing caveat where
|
|
121
|
+
one is owed, so never write your own version of either.
|
|
143
122
|
|
|
144
123
|
## Tone rules
|
|
145
124
|
|
|
@@ -223,8 +202,9 @@ never mentions the request is filed under the name and prints in the wrong place
|
|
|
223
202
|
|
|
224
203
|
A note about the name opens on what the lawyer should do about the name:
|
|
225
204
|
|
|
226
|
-
|
|
227
|
-
|
|
205
|
+
Use the missing-goods note only when no wording is held; open a shortened held record before concluding that wording is missing.
|
|
206
|
+
|
|
207
|
+
> "Goods wording is not held for this filing, so its relevance to the requested goods remains unresolved."
|
|
228
208
|
|
|
229
209
|
> "Search Classes 42 and 39 in their own right. Both carry live WAYPOINT filings, not spillover from
|
|
230
210
|
> Class 9."
|
|
@@ -255,19 +235,39 @@ load-bearing points, a blank line between blocks.
|
|
|
255
235
|
A single sub-header over one unbroken block is not structure. The blocks are what make the length
|
|
256
236
|
readable.
|
|
257
237
|
|
|
258
|
-
**Keep the length; make it consistent.** This is
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
judge it against the other marks in front of you and against `chunkSummary`, which is the **shorter**
|
|
264
|
-
digest above these.
|
|
238
|
+
**Keep the length; make it consistent.** This is the most useful part of a triage and it is not
|
|
239
|
+
rationed. This mark's opening read is the size of a single-mark report's opening read, and the marks of
|
|
240
|
+
one batch sit within reach of each other. One assessment several times its siblings' is out of family.
|
|
241
|
+
There is no word count; judge it against the other marks in front of you and against `chunkSummary`,
|
|
242
|
+
which is the **shorter** digest above these.
|
|
265
243
|
|
|
266
244
|
**Read the two sources together.** Where filings were handed to you for this mark, weigh them in the
|
|
267
|
-
*same passage* as the marketplace and common-law reading — what
|
|
268
|
-
|
|
269
|
-
with the reconciliation left to the reader.
|
|
270
|
-
|
|
245
|
+
*same passage* as the marketplace and common-law reading — what those filings show, what the screened
|
|
246
|
+
field adds to that reading, and what the two together mean for the band. Never one block per source
|
|
247
|
+
with the reconciliation left to the reader.
|
|
248
|
+
|
|
249
|
+
## The typed read (`basis`, `factors`, `counterFactors`, `mitigation`)
|
|
250
|
+
|
|
251
|
+
Every mark carries the read as typed fields, not as a paragraph:
|
|
252
|
+
|
|
253
|
+
- `basis`: ONE sentence: why this band, for this name, in these classes.
|
|
254
|
+
- `factors`: 2-4 strings, one line each: the load-bearing observations behind the band.
|
|
255
|
+
- `counterFactors`: 1-3 strings: what holds it at this band rather than the next one either way.
|
|
256
|
+
- `mitigation`: ONE line: the single thing that would move it. "" if nothing would.
|
|
257
|
+
|
|
258
|
+
Each is a standalone line: no semicolon chains, no clause stacking, no restating the band word. Write
|
|
259
|
+
each observation ONCE: a point made in `factors` is not repeated in `bullets`.
|
|
260
|
+
|
|
261
|
+
## What the register reading hands you
|
|
262
|
+
|
|
263
|
+
The step before you read the register name by name, and its work is yours to build on. On each name in the file you are
|
|
264
|
+
handed, `records` are the filings it carried forward, and `carriedBecause` says why. `setAsideRecords` are the filings it
|
|
265
|
+
read and set aside, with their goods views, and `reading.setAside` says why, by question. `terms` is each question with its
|
|
266
|
+
`state`: `read`, `narrowed`, `zero` (a verified zero), `failed` (no answer), `crowd-not-read` or `not-asked`. `reading.notAsked`
|
|
267
|
+
is what it did not ask, with its reason; a class it records there stays unresolved, neither searched nor clean.
|
|
268
|
+
`reading.openQuestions` is what it could not settle. Do not read the lists again to rebuild this. Reconsider a set-aside where the client's scope, the evidence or a
|
|
269
|
+
specific concern gives reason: read that question's whole list with `read_register_list` by its qid, which fetches nothing,
|
|
270
|
+
and cite the filing by its `recordId` as usual. It then reaches the report with the carried ones.
|
|
271
271
|
|
|
272
272
|
## Saying which filing you weighed (`registerReads`, `weighedFilings`)
|
|
273
273
|
|
|
@@ -278,9 +278,15 @@ your job. These two fields are how what you concluded reaches the reader instead
|
|
|
278
278
|
every id against that store and refuses one it does not hold — so the report can state a filing's
|
|
279
279
|
source as a fact rather than as a word you typed about your own sourcing.
|
|
280
280
|
|
|
281
|
+
A filing held for this batch may bear on more than one name. Weigh it against the particular name and its instructed scope, and cite its held recordId and source. Keep where it was found: using that filing does not mean its original search answered this name's register question.
|
|
282
|
+
|
|
283
|
+
When you use another name's research payload, explain how its held content bears on this name and its requested use. Keep the original search scope and provenance. A source's presence in the batch does not establish that it supports the claim.
|
|
284
|
+
|
|
285
|
+
A recorded owner check linked to a held filing is held evidence. You may cite a URL in its saved answer when it supports the finding; preserve the owner and filing it belongs to.
|
|
286
|
+
|
|
281
287
|
- **`registerReads`** — on the MARK. Rows of `{recordId, read, band?}` for a filing you weighed that did
|
|
282
|
-
**not** become a `findings[]` record. `read` is what you concluded about *that* filing:
|
|
283
|
-
on the rating, and why. It prints on that filing's card. `band` is **optional** and is how you rate that
|
|
288
|
+
**not** become a `findings[]` record. `read` is what you concluded about *that* filing: how its goods meet
|
|
289
|
+
the goods the client asked about, whether it bears on the rating, and why. It prints on that filing's card. `band` is **optional** and is how you rate that
|
|
284
290
|
filing on its own — in the framework's band words, the same vocabulary as the mark's rating. Send it
|
|
285
291
|
whenever you formed a view on the filing itself: a registered right is often the one hard legal fact on
|
|
286
292
|
the page, and with no band its card is the only one carrying no rating while softer uses around it carry
|
|
@@ -294,9 +300,8 @@ source as a fact rather than as a word you typed about your own sourcing.
|
|
|
294
300
|
line, which describes the card and claims nothing about the rating. So:
|
|
295
301
|
|
|
296
302
|
> **Never invent a read to fill a row, and never write "not weighed" as a read.** A filing you did not
|
|
297
|
-
> weigh simply gets no row.
|
|
298
|
-
>
|
|
299
|
-
> on it.
|
|
303
|
+
> weigh simply gets no row. A row written to look complete would tell the reader the rating turned, or
|
|
304
|
+
> did not turn, on a filing you never reasoned from.
|
|
300
305
|
|
|
301
306
|
## Saying what you put down (`setAside`)
|
|
302
307
|
|
|
@@ -304,9 +309,9 @@ line, which describes the card and claims nothing about the rating. So:
|
|
|
304
309
|
did not carry, not a reason to re-weigh anything: the rating you have already reached stands exactly as it
|
|
305
310
|
is, and nothing in this section asks you to raise or lower it.
|
|
306
311
|
|
|
307
|
-
The web search hands you every result it got. Some become `findings[]`. The rest you read and put down
|
|
308
|
-
|
|
309
|
-
|
|
312
|
+
The web search hands you every result it got. Some become `findings[]`. The rest you read and put down.
|
|
313
|
+
`setAside` is where that judgment goes, so a result you judged irrelevant and a result you never opened do
|
|
314
|
+
not look identical afterwards.
|
|
310
315
|
|
|
311
316
|
- **Rows of `{url, ground}`** on the MARK, for a result the search returned that you are **not** carrying
|
|
312
317
|
as a finding. `ground` is what it turned out to be, or why it does not bear on this name — one line.
|
|
@@ -329,10 +334,9 @@ looked identical afterwards. `setAside` is where the judgment goes.
|
|
|
329
334
|
- **Chunk summary** (`chunkSummary` — EVERY chunk emits one for ITS marks): marks grouped by band, why,
|
|
330
335
|
key evidence inline, practical mitigating factors. Code concatenates the chunks into the batch
|
|
331
336
|
executive summary, so a mark you skip here is missing from the report.
|
|
332
|
-
**
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
sub-header per mark carrying its band and what drives it, bullets where they help.
|
|
337
|
+
**Structure it:** a short opening line for what the batch shows, then one `## <MARK NAME>` sub-header
|
|
338
|
+
per mark carrying its band and what drives it, bullets where they help. A sub-header is `## ` or `### `,
|
|
339
|
+
never `# `.
|
|
336
340
|
**It stays the SHORTER digest above the per-mark assessments** — a reader opens it to decide which
|
|
337
341
|
name to read about, and the mark's own page carries the full read. Keep it tighter than any one
|
|
338
342
|
mark's `assessment`.
|
|
@@ -371,14 +375,10 @@ looked identical afterwards. `setAside` is where the judgment goes.
|
|
|
371
375
|
(the validator is `findings-model.mjs validateKnockoutFinding`, and it runs at the chunk and again on
|
|
372
376
|
the merged artifact):
|
|
373
377
|
|
|
374
|
-
- `ordinal` — integer ≥ 1, unique within the mark, most blocking first.
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
trail prints it as a RANGE (`<MARK> #1–#4`) — which is why a gap in the numbering cannot be allowed
|
|
379
|
-
to reach it, and why the machine writes it rather than asking you to. Two consequences for you:
|
|
380
|
-
number them 1, 2, 3 in your own blocking order, and **never cite a finding by its number in prose** —
|
|
381
|
-
`net`, `basis` and the bullets say what the conflict IS, never "see #3".
|
|
378
|
+
- `ordinal` — integer ≥ 1, unique within the mark, most blocking first. The code ranks the mark's
|
|
379
|
+
findings on their bands and renumbers them, and yours breaks ties inside a band. So number them 1, 2, 3 in
|
|
380
|
+
your own blocking order, and **never cite a finding by its number in prose** — `net`, `basis` and the
|
|
381
|
+
bullets say what the conflict IS, never "see #3".
|
|
382
382
|
- `name` — the conflicting name, verbatim as the evidence carries it. Never the mark being screened.
|
|
383
383
|
- `owner` — the party behind that name. If the searched material does not establish one, write
|
|
384
384
|
"not established on the searched material". **Never guess an owner**: an invented seller is an
|
|
@@ -392,8 +392,9 @@ the merged artifact):
|
|
|
392
392
|
semicolons stitching facts to a verdict, no arrows, and never an action ("we recommend…").
|
|
393
393
|
- `type` ∈ Famous Brand | Active Business | Cultural Reference | Domain | Descriptive Use | Negative
|
|
394
394
|
Association | Competitor Intelligence. It names what the finding IS, not how bad it is.
|
|
395
|
-
- `evidence` — a NON-EMPTY array of URLs
|
|
396
|
-
|
|
395
|
+
- `evidence` — a NON-EMPTY array of URLs, each from a recorded research payload for this batch, a filing
|
|
396
|
+
held for this batch, or a recorded owner check linked to a held filing. A finding nobody can open is a
|
|
397
|
+
bullet with a shape around it.
|
|
397
398
|
- `basis` — the ground the band rests on: what the evidence shows about use, reach and the owner. The
|
|
398
399
|
rank is read off the band, so a band with no stated basis is an unarguable ranking.
|
|
399
400
|
|
|
@@ -29,6 +29,7 @@ on every place you name for it (task 2d), and keeps what each search returned, w
|
|
|
29
29
|
and that pair moves a band. A `contextFraming` that repeats `batch.productContext` back gives the
|
|
30
30
|
rater nothing to reason with, and the per-name detail the requester supplied is then lost for the
|
|
31
31
|
rest of the run: nothing downstream re-reads the raw instructions.
|
|
32
|
+
Where the request does not state what a name is for, say so here and write what you infer as a possibility ("possibly a game title"), never as what the client intends.
|
|
32
33
|
2c. **`inUseAs` — how a name could already be in use off the register, in this client's field.** One
|
|
33
34
|
phrase that completes "Is this name already in use as …?", naming the kinds of use a name collides
|
|
34
35
|
with in this field: a character, a place, a title or an achievement inside a game, show, film or book
|
|
@@ -56,6 +57,7 @@ on every place you name for it (task 2d), and keeps what each search returned, w
|
|
|
56
57
|
them. Add the forms a buyer would type or a seller would list: the words joined or split, a hyphen, a
|
|
57
58
|
common misspelling, a transliteration a market uses. Each spelling is searched on every place in
|
|
58
59
|
task 2d.
|
|
60
|
+
2f. **`alternatives` — where the request gives one item in more than one spelling or word order ("LAKE MOON / MOON LAKE"), list each form as written.** `name` stays verbatim. Each form is searched on its own and stays tied to this row. Leave it out where the request gives one form. A slash does not make alternatives by itself, and two separate items stay two rows.
|
|
59
61
|
|
|
60
62
|
3. **Added classes** per mark: add a class only for the client's own goods, never for what a competitor
|
|
61
63
|
might hold, with one sentence saying why. Every addition is marked "belt-and-braces" in
|
|
@@ -87,7 +89,7 @@ on every place you name for it (task 2d), and keeps what each search returned, w
|
|
|
87
89
|
"contextFraming": "<what THIS name is for — see task 2b>",
|
|
88
90
|
"useKind": "<one to three words: this name's kind of use — see task 2c>",
|
|
89
91
|
"places": ["web", "<host>", "..."],
|
|
90
|
-
"spellings": ["<the name>", "<another form>"], "priorKnowledge": null,
|
|
92
|
+
"spellings": ["<the name>", "<another form>"], "alternatives": ["<task 2f, or leave out>"], "priorKnowledge": null,
|
|
91
93
|
"priority": 1 } ] }
|
|
92
94
|
```
|
|
93
95
|
|