clearotron 0.6.0-beta.0 → 0.6.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.
Files changed (41) hide show
  1. package/bin/start.mjs +39 -15
  2. package/build-info.json +2 -2
  3. package/driver/CHANGELOG.md +73 -0
  4. package/driver/band-shape.mjs +21 -3
  5. package/driver/commonlaw-carry-floor.json +3 -3
  6. package/driver/contract-arm2-baseline.json +2 -3
  7. package/driver/contract-e3-backlog.mjs +28 -28
  8. package/driver/demo-posture.mjs +17 -0
  9. package/driver/engine/anthropic-agent.mjs +5 -5
  10. package/driver/engine/mcp/band-server.mjs +14 -7
  11. package/driver/goods-evidence.mjs +16 -8
  12. package/driver/named-band.mjs +60 -3
  13. package/driver/package.json +1 -1
  14. package/driver/pipeline.mjs +130 -13
  15. package/driver/portal-service.mjs +4 -1
  16. package/driver/predelivery-lint.mjs +9 -0
  17. package/driver/publish/templates/report.css +6 -6
  18. package/driver/record-goods.mjs +74 -18
  19. package/driver/skills/clearance-register/digest.md +6 -6
  20. package/driver/skills/placement-inquiry/SKILL.md +2 -2
  21. package/driver/stages.mjs +1 -5
  22. package/driver/steps/frame-comparison.mjs +6 -1
  23. package/driver/steps/skeptic-and-follow-up.mjs +8 -3
  24. package/driver/suite-census.json +53 -5
  25. package/driver/unexecuted-asserts.json +2 -2
  26. package/mcp-server/CHANGELOG.md +8 -0
  27. package/mcp-server/http-server.mjs +10 -11
  28. package/mcp-server/package.json +1 -1
  29. package/node_modules/buffers/package.json +1 -1
  30. package/package.json +1 -1
  31. package/portal-ui/dist/assets/{index-AtB9ZpDH.css → index-izLa9apq.css} +2 -2
  32. package/portal-ui/dist/index.html +4 -4
  33. package/portal-ui/package.json +1 -1
  34. package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
  35. package/providers/oauth-mcp-bridge/package.json +1 -1
  36. package/scripts/e2e-first-time.mjs +1 -1
  37. package/scripts/render-check.mjs +1 -1
  38. package/scripts/unexecuted-asserts.mjs +2 -2
  39. package/shared/customer-store.mjs +3 -2
  40. package/vendor/buffers/package.json +1 -1
  41. /package/portal-ui/dist/assets/{index-D5rkCjDc.js → index-CYaO2ygd.js} +0 -0
@@ -41,7 +41,7 @@
41
41
  The visible sentence loses its bottom margin (the fold row carries the spacing instead) so a folded
42
42
  caption occupies the same vertical run as an unfolded one. `details.sub-more` is styled here and NOT
43
43
  in the frozen renderer, and the existing @media print rule that forces every <details> open already
44
- covers it — the exported PDF carries the whole caption, which is #470's rule for print. */
44
+ covers it — the exported PDF carries the whole caption, which is the rule for print. */
45
45
  details.sub-more{margin:0 0 30px;max-width:700px}
46
46
  details.sub-more>summary{cursor:pointer;list-style:none;font-size:12.5px;font-weight:700;
47
47
  letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
@@ -397,19 +397,19 @@
397
397
  hash pins the renderer's bytes and the render arms grep its HTML, and on screen a mis-ruled
398
398
  disclosure is correct. It is the private print control that walks a rendered page on both lanes
399
399
  and refuses a disclosure ruled by neither mechanism, and it runs by hand. Two folds have now
400
- shipped mis-ruled and been caught there rather than in CI. `details.sub-more` (#470) was in NEITHER, so the exported PDF — the
400
+ shipped mis-ruled and been caught there rather than in CI. `details.sub-more` was in NEITHER, so the exported PDF — the
401
401
  client-facing legal document — printed an inert "MORE" label and a right-pointing COLLAPSED marker
402
402
  in the hero, directly above text that was already fully expanded. Measured in Chrome: the caption's
403
403
  own content was carried correctly and only the control leaked, which is why the commit that added
404
404
  the fold could check the half it thought about and ship the half it did not. */
405
405
  details.drill>summary,details.method>summary,details.sub-more>summary,
406
406
  /* An answer's "More" is a pure toggle: it carries no content of its own, so on paper it would be an
407
- inert label over text the rule below has already expanded — the defect #470 shipped. */
407
+ inert label over text the rule below has already expanded — a defect that once shipped. */
408
408
  details.ans-more>summary{display:none!important}
409
409
  /* The caption fold made this line load-bearing for the document's CONTENT, not just its completeness. The
410
410
  legal/practical reads now live inside .drillbody, so without this rule the exported PDF would
411
411
  carry the one-line verdicts and none of the reasoning behind them. The export prints everything a
412
- reader could open — ruled on #470, deliberately unchanged. Ticked-card selection (.print-hidden)
412
+ reader could open — a deliberate rule, unchanged. Ticked-card selection (.print-hidden)
413
413
  and internal notes (.int-note, hidden above) are the only two things print ever drops. */
414
414
  details>*:not(summary){display:block!important}
415
415
  details>summary{list-style:none;cursor:default}
@@ -465,7 +465,7 @@
465
465
  /* ── P5 (charter 2026-07-30) — content model: legal/practical split · manageable category · the
466
466
  four answers. This file is NOT hash-frozen; the render emits the markup, the rules live here. */
467
467
  /* the legal vs practical pair — two labelled reads, never blurred.
468
- #470: these moved out of the card body and into the "Full detail & provenance" drawer, where they
468
+ These moved out of the card body and into the "Full detail & provenance" drawer, where they
469
469
  LEAD, so they are sized for the drawer's own reading text (.drillbody is 13.5px/1.62) instead of the
470
470
  tighter card body they used to sit in. The first block has no top margin — .drillbody's padding is
471
471
  the gap — and the last one is spaced off the structured <ul> that follows it. */
@@ -492,7 +492,7 @@
492
492
  browser's default weight, under the browser's default triangle, at the foot of a document whose
493
493
  every other section carries a numbered spine header. The section that states what the search did
494
494
  NOT cover was the one region on the page a reader's eye had no reason to stop at.
495
- This is the styling half of #763 and it costs no hash bump — the markup is unchanged. */
495
+ This is the styling half of that change and it costs no hash bump — the markup is unchanged. */
496
496
  details.scope>summary{cursor:pointer;list-style:none;margin:22px 0 0;padding:12px 0 10px;
497
497
  border-top:1px solid var(--line);font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
498
498
  details.scope>summary::-webkit-details-marker{display:none}
@@ -15,6 +15,7 @@
15
15
  // UNKNOWN IS NOT A MISMATCH. A record with no goods on file passes a goods filter, the way a record that
16
16
  // names no class passes the class scope (band-shape.mjs `inScope`): a filter must never hide a record for
17
17
  // what the run simply does not hold.
18
+ import { createHash } from "node:crypto";
18
19
  import { readFileSync, readdirSync, existsSync } from "node:fs";
19
20
  import { join } from "node:path";
20
21
  import { normalizeRecordUri } from "./registry-fidelity.mjs";
@@ -280,6 +281,14 @@ export function rowGoods(row, pages = null) {
280
281
  const page = mark && serial ? savedPageStatement(pages, serial, whole.classes[0], whole.text) : null;
281
282
  out.push(page ? { ...whole, text: page.text, page: { question: page.question } } : { ...whole, ...mark });
282
283
  }
284
+ // A CLASS WHOSE TEXT THE MERGED BAND SET ASIDE (named-band.mjs `rowAsHanded`, outside the order's classes) is an entry
285
+ // marked `setAside` with no text: the class is on the record, and its wording is not here, which establishes nothing
286
+ // about it. It is never the register listing no goods, and never a search not made.
287
+ // Where the merge saved the shape's own goods test's answer on the record's whole wording (`setAsideTestAnswer`), the
288
+ // entry carries it, and only a test on the same word list reads it (`goodsWordCounter`'s `setAsideTest`).
289
+ const aside = Array.isArray(row?.goods_set_aside?.classes) ? row.goods_set_aside.classes : [];
290
+ const test = row?.goods_set_aside?.test && typeof row.goods_set_aside.test === "object" ? row.goods_set_aside.test : null;
291
+ for (const n of aside) out.push({ classes: [String(n)], text: "", setAside: true, ...(test ? { test } : {}) });
283
292
  return out.length ? out : null;
284
293
  }
285
294
 
@@ -292,16 +301,19 @@ export const statementCut = (goods) => (goods ?? []).some((g) => g?.cut === true
292
301
 
293
302
  /** Is a statement of these goods one whose completeness is not established (`rowGoods`, `recordGoods`)? PURE. */
294
303
  export const completenessUnknown = (goods) => (goods ?? []).some((g) => g?.unknown === true);
295
- /** Could words cut off, or not shown, from these goods be the client's? Then a statement matching none is unknown. PURE. */
296
- const notWhole = (goods) => statementCut(goods) || completenessUnknown(goods);
304
+ /** Was a class's wording set aside from the merged band (`rowGoods`)? Its words may be the client's. PURE. */
305
+ export const statementSetAside = (goods) => (goods ?? []).some((g) => g?.setAside === true);
306
+ /** Could words cut off, not shown, or set aside from these goods be the client's? Then a statement matching none is unknown. PURE. */
307
+ const notWhole = (goods) => statementCut(goods) || completenessUnknown(goods) || statementSetAside(goods);
297
308
 
298
- /** How many records rest on each kind of goods evidence: a held body, a row's whole statements, a row's statements cut short or not established whole, or none. PURE. */
309
+ /** How many records rest on each kind of goods evidence: a held body, a row's whole statements, a row's statements cut short or not established whole, a row whose other classes' wording was set aside, or none. PURE. */
299
310
  export function goodsEvidence(records, goods) {
300
- const out = { held: 0, complete: 0, cut: 0, unknown: 0, none: 0 };
311
+ const out = { held: 0, complete: 0, cut: 0, unknown: 0, setAside: 0, none: 0 };
301
312
  for (const r of Array.isArray(records) ? records : []) {
302
313
  if (goods?.held?.(r)) { out.held++; continue; }
303
314
  const g = goods ? goods.of(r) : null;
304
- if (!g) out.none++; else if (statementCut(g)) out.cut++; else if (completenessUnknown(g)) out.unknown++; else out.complete++;
315
+ if (!g) out.none++; else if (statementCut(g)) out.cut++; else if (completenessUnknown(g)) out.unknown++;
316
+ else if (statementSetAside(g)) out.setAside++; else out.complete++;
305
317
  }
306
318
  return out;
307
319
  }
@@ -338,13 +350,16 @@ export function goodsWordForms(word) {
338
350
  * word or phrase matches its singular and plural forms (`goodsWordForms`), at word boundaries, never as the
339
351
  * start of a longer word. PURE.
340
352
  */
341
- export function goodsWordCounter(words, { stems = false } = {}) {
353
+ export function goodsWordCounter(words, { stems = false, setAsideTest = false, testKey = null } = {}) {
342
354
  // A phrase's words are separated by spaces or hyphens alike: "mobile phone" is "mobile-phone".
343
355
  const phrase = (w) => w.split(/[\s-]+/).filter(Boolean).map((x) => (stems ? `(?:${goodsWordForms(x).map(escape).join("|")})` : escape(x))).join("[\\s-]+");
344
- const res = (Array.isArray(words) ? words : [words])
345
- .map((w) => fold(w).trim()).filter(Boolean)
346
- .map((w) => new RegExp(`(^|[^\\p{L}\\p{N}])${phrase(w)}($|[^\\p{L}\\p{N}])`, "u"));
356
+ const list = (Array.isArray(words) ? words : [words]).map((w) => fold(w).trim()).filter(Boolean);
357
+ const res = list.map((w) => new RegExp(`(^|[^\\p{L}\\p{N}])${phrase(w)}($|[^\\p{L}\\p{N}])`, "u"));
358
+ const key = setAsideTest ? (testKey ?? goodsTestKey(words, { stems })) : null;
347
359
  return (goods) => {
360
+ // A record whose wording the merge set aside is read on the answer the merge saved for this same list.
361
+ const saved = key ? savedAnswer(goods, key) : undefined;
362
+ if (saved !== undefined) return !res.length || saved == null ? null : list.filter((w) => saved.has(w)).length;
348
363
  const readable = (goods ?? []).filter((g) => g.en !== false);
349
364
  if (!res.length || !readable.length) return null;
350
365
  const text = fold(readable.map((g) => (g.alt ? `${g.text}\n${g.alt}` : g.text)).join("\n"));
@@ -353,6 +368,34 @@ export function goodsWordCounter(words, { stems = false } = {}) {
353
368
  };
354
369
  }
355
370
 
371
+ /**
372
+ * THE SHAPE'S OWN TEST, ANSWERED ON THE WORDING THE MERGE HELD. Before a class's wording is set aside (named-band.mjs
373
+ * `rowAsHanded`), the merge runs the band shape's goods test (`shapeGoodsTest`) on the record's whole wording, every
374
+ * statement joined as the test joins them, and saves the answer on the record with a key for the word list: the words
375
+ * matched, an empty list for a known zero, or null where the test could not tell (wording cut, completeness not
376
+ * established, or a class in no language the engine reads). A test on that same list returns the saved answer for the
377
+ * record as a whole, so a phrase across the boundary of a removed statement is neither lost nor made. Any other list,
378
+ * such as a lookup's own goods words, is not answered, and a set-aside class stays "cannot tell" to it. The answer
379
+ * describes the wording at the merge: a register page the run saves later is read by `band_record`, not by it. PURE.
380
+ */
381
+ export function goodsTestKey(words, { stems = false } = {}) {
382
+ const list = [...new Set((Array.isArray(words) ? words : [words]).map((w) => fold(w).trim()).filter(Boolean))].sort();
383
+ return createHash("sha256").update(JSON.stringify({ stems: Boolean(stems), words: list })).digest("hex").slice(0, 16);
384
+ }
385
+ export function setAsideTestAnswer(statements, { words = [], stems = false } = {}) {
386
+ const list = (Array.isArray(words) ? words : [words]).map((w) => String(w ?? "").trim()).filter(Boolean);
387
+ if (!list.length || !Array.isArray(statements) || !statements.length) return null;
388
+ return { key: goodsTestKey(list, { stems }), matched: goodsWordsMatched(list, { stems })(statements) };
389
+ }
390
+ // The answer the merge saved for a record, where it saved one for this word list: the folded words matched, or null
391
+ // where the test could not tell. undefined where nothing was saved for this list, and the record is read as it stands.
392
+ const savedAnswer = (goods, key) => {
393
+ const aside = (goods ?? []).filter((g) => g?.setAside === true);
394
+ if (!aside.length || !aside.every((g) => g?.test?.key === key)) return undefined;
395
+ const matched = aside[0].test.matched;
396
+ return Array.isArray(matched) ? new Set(matched.map((w) => fold(w).trim())) : null;
397
+ };
398
+
356
399
  /**
357
400
  * Does a class of these goods have no statement the engine can read? A record whose readable statements match
358
401
  * no word, while one of its classes is written only in a language the engine cannot use, is unknown to the
@@ -375,10 +418,13 @@ export function classUnread(goods) {
375
418
  * null when the record has no goods on file or there are no words. A shape line shows them as "k of N:
376
419
  * the words", which is the goods ground made visible on the line. PURE.
377
420
  */
378
- export function goodsWordsMatched(words, { stems = false } = {}) {
421
+ export function goodsWordsMatched(words, { stems = false, setAsideTest = false } = {}) {
379
422
  const list = (Array.isArray(words) ? words : [words]).map((w) => String(w ?? "").trim()).filter(Boolean);
423
+ const key = setAsideTest ? goodsTestKey(list, { stems }) : null;
380
424
  const tests = list.map((w) => [w, goodsWordCounter([w], { stems })]);
381
425
  return (goods) => {
426
+ const saved = key ? savedAnswer(goods, key) : undefined;
427
+ if (saved !== undefined) return !list.length || saved == null ? null : list.filter((w) => saved.has(fold(w).trim()));
382
428
  if (!list.length || !(goods ?? []).some((g) => g.en !== false)) return null;
383
429
  const hit = tests.filter(([, t]) => t(goods) === 1).map(([w]) => w);
384
430
  return hit.length === 0 && (classUnread(goods) || notWhole(goods)) ? null : hit;
@@ -419,9 +465,22 @@ export function instructedOrder(P, job = null) {
419
465
  * band's, so the shape tests goods whenever either is held. The saved pages are read once, for the first record with
420
466
  * no body held.
421
467
  */
422
- export function bandShapeGoods(P, records = []) {
468
+ /**
469
+ * The words the band shape's goods test reads: the particular goods when the variants stage names them, as stems, else
470
+ * the goods words (ruled 2026-10-12), with the manifest they came from. The merge reads the same list, to record the
471
+ * test's answer for wording it sets aside (named-band.mjs `rowAsHanded`). IMPURE: reads the run's variant manifest.
472
+ */
473
+ export function shapeGoodsTest(P) {
423
474
  let model = null;
424
475
  try { if (existsSync(P.variantManifestModel)) model = parseVariantManifestModel(readFileSync(P.variantManifestModel, "utf8")); } catch { model = null; }
476
+ const product = Array.isArray(model?.product_words) && model.product_words.length;
477
+ const words = product ? model.product_words : Array.isArray(model?.goods_words) ? model.goods_words : [];
478
+ // the word list the shape groups on is matched as stems, whichever source it came from
479
+ return { model, words, stems: true, source: product ? "product_words" : words.length ? "goods_words" : "none" };
480
+ }
481
+
482
+ export function bandShapeGoods(P, records = []) {
483
+ const { model, words, source, stems } = shapeGoodsTest(P);
425
484
  let searched = "";
426
485
  try {
427
486
  const plan = readJson(P.registerPlan);
@@ -429,16 +488,13 @@ export function bandShapeGoods(P, records = []) {
429
488
  } catch { searched = ""; }
430
489
  const manifestDominant = String(model?.dominant_element ?? "");
431
490
  const index = bandGoodsIndex(P.runDir);
432
- // The particular goods when the variants stage names them, as stems, else the goods words (ruled 2026-10-12).
433
- const product = Array.isArray(model?.product_words) && model.product_words.length;
434
- const words = product ? model.product_words : Array.isArray(model?.goods_words) ? model.goods_words : [];
435
- const stems = true; // the word list the shape groups on is matched as stems, whichever source it came from
436
- const hits = goodsWordCounter(words, { stems });
491
+ // A set-aside class is read through the answer the merge recorded for this same list (`setAsideTestAnswer`).
492
+ const hits = goodsWordCounter(words, { stems, setAsideTest: true });
437
493
  const held = (r) => goodsFor(index, r);
438
494
  let pages = null;
439
495
  const saved = () => (pages ??= savedStatusPages(P.runDir)());
440
496
  const rowsHold = Array.isArray(records) && records.some((r) => r && typeof r === "object" && rowGoods(r));
441
- const goods = index.size || rowsHold ? { of: (r) => held(r) ?? rowGoods(r, saved()), held: (r) => held(r) != null, hits, matched: goodsWordsMatched(words, { stems }) } : null;
442
- const goodsTest = { source: product ? "product_words" : words.length ? "goods_words" : "none", words };
497
+ const goods = index.size || rowsHold ? { of: (r) => held(r) ?? rowGoods(r, saved()), held: (r) => held(r) != null, hits, matched: goodsWordsMatched(words, { stems, setAsideTest: true }) } : null;
498
+ const goodsTest = { source, words };
443
499
  return { goods, goodsTest, goodsWordCount: words.length, dominantTerm: searched || manifestDominant, manifestDominant };
444
500
  }
@@ -94,7 +94,7 @@ row on goods/services (brand-json lacks G&S) — those are decided on the record
94
94
 
95
95
  When a kept conflict's owner holds several registrations of the same mark, identify the senior live leg (earliest filing, registered before pending), read it with `band_record` if held, and cite its uri; if it is not held, say so.
96
96
 
97
- A field-irrelevance drop is a `negative_rows` entry with ground `off-field`, one uri per entry, decided on the record's goods read with `band_record`.
97
+ A field-irrelevance drop is a `negative_rows` entry with ground `off-field`, one uri per entry, decided on the record's goods read with `band_record`; goods text set aside for a class outside the order's classes is unread, not unrelated, and decides no drop.
98
98
 
99
99
  One entry, one record, one reason. A `drop_reason` is the judgment alone — the uri, verdict, class and
100
100
  status are rendered beside it: `dropped — off-field (relevance gate): DUSK-only hit; the
@@ -334,16 +334,16 @@ loop and never a no-deliver halt.
334
334
 
335
335
  # MODE B — DIGEST (combine the complete named band → register findings)
336
336
 
337
- You are JUDGMENT, not the machine. The funnel (the unit-mode workers) either **enumerated** a search to completion or reported it **incomplete** (a crowd descriptor). The complete named band remains available as evidence. Read the candidates placement carried forward and their supporting evidence through the band tools. Carry placement's accepted set-asides forward with their grounds and exceptions under the placement rules.
337
+ You are JUDGMENT, not the machine. The funnel (the unit-mode workers) either **enumerated** a search to completion or reported it **incomplete** (a crowd descriptor). The band retains every enumerated record and crowd descriptor; its outside-class goods omissions are named. Read the candidates placement carried forward and their supporting evidence through the band tools. Carry placement's accepted set-asides forward with their grounds and exceptions under the placement rules.
338
338
 
339
339
  Your task gives the paths to: the per-axis prose digests (`register-units/<axis>.md` — audit-trail summary only), the variant manifest, `matter-context.md`, and `placement-recommendations.md`. The **band itself is read through the band tools** — you hold `band_shape` / `band_lookup` / `band_record`, and every call you make lands in the run's reading audit (that on-the-record trail is the point: the reading layer is as auditable as the frozen search plan).
340
340
 
341
341
  **The band is the material you judge — read it through the band tools (never by slicing files with shell):**
342
342
  - **`band_shape` FIRST** — the deterministic shape of the complete merged band (all axes, de-duplicated): totals, mechanical similarity tiers, floors, class/status/registry/recency census, owner concentrations, crowd descriptors, and blind spots. A floor is marked on its line in the band; a crowded group may show only its first page. A large shape is served in parts. Read the parts and records your reasoning about the carried candidates and accepted placement decisions needs. The tiers are string mechanics, never a relevance or risk judgment. Use the existing placement rules when checking a floor's ending: a validated decision counts only for the records it covers, and an unsupported decision must be flagged.
343
- - **`band_lookup`** — pull the records your reasoning needs: by owner, class, tier, plan entry (`qid` — the exact join to the frozen plan's execution ledger), slice (`_query`), mark text, status. Records carry `record_id, mark_text, classes, status, owner_name, owner_country, application_date, registration_date, expiry_date, jurisdictions, screen_verdict` (+ `_query`). These are the real records — the firewall is lifted, nothing was pre-gated. Matching un-enumerated crowds ride along on every lookup, so a counted-only zone can never read back as a clean.
344
- - **`band_record`** — the official registry record fetched into this run for a given `record_id`, when detail beyond the band row decides a point. Read-only: an unfetched record is an honest gap to state, never a value to guess.
343
+ - **`band_lookup`** — pull the records your reasoning needs: by owner, class, tier, plan entry (`qid` — the exact join to the frozen plan's execution ledger), slice (`_query`), mark text, status. Records carry `record_id, mark_text, classes, status, owner_name, owner_country, application_date, registration_date, expiry_date, jurisdictions, screen_verdict` (+ `_query`). These are the real records — the firewall is lifted, nothing was pre-gated. Every record is kept; only the goods text of a class outside the order's classes is set aside. The band row names omitted classes in `goods_set_aside`. When the goods served come from the trimmed search answer, `goods_from` names those omissions; a separately fetched official record may supply their wording. Matching un-enumerated crowds ride along on every lookup, so a counted-only zone can never read back as a clean.
344
+ - **`band_record`** — the official registry record fetched into this run for a given `record_id`, served whole, when detail beyond the band row decides a point. For a record not fetched, it serves the goods the register's search answer listed, each with its source and completeness, and names a class whose goods text the band set aside. Read-only: what it cannot serve is an honest gap to state, never a value to guess.
345
345
  - An incomplete crowd descriptor is a count, not a finding or a clean search. Carry forward the recorded crowd decision. Where a narrowed list that was read answered the question, or the reading step validly set the crowd aside with its count and reason, apply the coverage form's withheld-by-judgment status: that is finished work. An unanswered slice that matters remains a material gap under the coverage rules. Never label an unenumerated crowd confirmed-clean merely because it is immaterial, or reopen a settled crowd merely because its descriptor remains in the evidence.
346
- - Where the prose digest and the band material disagree, the **band wins** (it is the complete record; the prose is a summary). If the shape reports an axis absent, or a lookup errors because the band is missing/unreadable, that axis's complete band did not cross the firewall — that is a **coverage failure → set that axis's form row `coverage-limited`/`deferred` (CONDITIONAL), never an empty/clean result**, do not fall back to calling the axis clean off the prose. (The fresh-run fan-in gate also hard-fails a missing band, so a clean can never ship over an unsearched band.)
346
+ - Where the prose digest and the band disagree about records, counts, or search execution, use the band. The merged band omits goods descriptions for classes outside the order; that omission does not contradict wording in an earlier unit digest. Use `band_record` for the goods evidence it can serve, and state any remaining limitation. The unit's summary is not a fetched official record. If the shape reports an axis absent, or a lookup errors because the band is missing/unreadable, that axis's complete band did not cross the firewall — that is a **coverage failure → set that axis's form row `coverage-limited`/`deferred` (CONDITIONAL), never an empty/clean result**, do not fall back to calling the axis clean off the prose. (The fresh-run fan-in gate also hard-fails a missing band, so a clean can never ship over an unsearched band.)
347
347
 
348
348
  Every judgment below spans the band and/or needs data a single unit cannot have, so it MUST happen here.
349
349
 
@@ -390,7 +390,7 @@ With that posture fixed, the question is simply: **could an examiner or court pl
390
390
  is this worth keeping for the Stage-2 confusion test to assess?** **Cast wide; Stage-2 / synthesis
391
391
  discriminates.** The archetype table below is a **sanity-aid for that question, not a lookup to run first** —
392
392
  read it after you've asked the field-relevance question, and where it conflicts with your read, follow the
393
- read. Keep if plausibly on-point; drop only genuine field-irrelevance, or a near spelling on its sign (below). A field-irrelevance drop is a `negative_rows` entry with ground `off-field`, one uri per entry, decided on the record's goods read with `band_record`. Units did NOT pre-gate — this is the only relevance judge. The spelling band is read differently: carry a near spelling only where a buyer in this market could take it for the mark by sound, by look or by meaning, and record each other one as a drop on the ground `sign`, with your reason.
393
+ read. Keep if plausibly on-point; drop only genuine field-irrelevance, or a near spelling on its sign (below). A field-irrelevance drop is a `negative_rows` entry with ground `off-field`, one uri per entry, decided on the record's goods read with `band_record`; goods text set aside for a class outside the order's classes is unread, not unrelated, and decides no drop. Units did NOT pre-gate — this is the only relevance judge. The spelling band is read differently: carry a near spelling only where a buyer in this market could take it for the mark by sound, by look or by meaning, and record each other one as a drop on the ground `sign`, with your reason.
394
394
 
395
395
  | Archetype | Keep when | Drop when |
396
396
  |---|---|---|
@@ -25,9 +25,9 @@ After register-unit workers and common-law workers have returned their findings
25
25
 
26
26
  - `matter-context.md` from `matter-frame` at the path your task message names (the strategic foundation — read it once, reference it throughout)
27
27
  - **The named band** — read through the **band tools** (every call lands in the run's reading audit; never slice band files with shell). `band_shape` first: the deterministic shape of the merged band — totals, mechanical similarity tiers, **THE FLOORS** (every live in-class identical/near-identical record, each marked on its line in the band — **every floor gets a fate on the form: placed by record id, or set aside by name with `on` set to status, territory, goods or mark; only a crowd's row of a thousand records or more in (b) covers a floor.** Discussing a floor in your prose is NOT accounting for it: the form is what the driver can check, and a floor with no fate on it is recorded as unanswered whatever the prose says. This is the one duty with no cap — see **Length target**, which bounds the general band and not this), census, owner concentrations, crowd descriptors, blind spots. A large shape is served in parts, each naming the next call. Then `band_lookup` / `band_record` for the records your inquiry needs. This is the funnel's real output, lifted across the firewall:
28
- - **enumerated records** — every named record the funnel paged to completion, each carrying `record_id, mark_text, classes, status, owner_name, owner_country, application_date, registration_date, expiry_date, jurisdictions, screen_verdict` (+ `_query` provenance). Nothing was pre-sampled, so your gate is the *only* gate. Fifty? Read them all. A few hundred? Sort by the client's goods and markets, read the near ones first, list the rest. A thousand or more? The field is crowded: read the identical and live ones for the client's goods, tell the client it is crowded, and do not write up the rest. Count each group the shape lists on its own, and apply this to each by its own count. Where the shape shows (a) by its first page, page every line of it with `band_lookup`'s `group` filter before its row: reading a line is not writing it up. A crowd of a thousand or more outside (a) stands on its first page read and the count. The shape lists the band in this order: (a) identical or near-identical to the mark or one of its forms, for the client's goods; (b) the same, in the ordered classes; (c) the same family as the mark, for the client's goods; (d) every other live mark in the ordered classes, for the client's goods; then the rest. The ordered classes are the instructed ones and any class the frame added. Inside each group the lines run first by the client's goods on a live record in the ordered classes, then by live records in those classes, then by goods words, then by the client's markets. In a group of a few hundred, every line is read: the near ones get the full inquiry and a row; every other line is either carried or left to the group's row with the reason, except a floor, which is placed or set aside by name.
28
+ - **enumerated records** — every named record the funnel paged to completion, each carrying `record_id, mark_text, classes, status, owner_name, owner_country, application_date, registration_date, expiry_date, jurisdictions, screen_verdict` (+ `_query` provenance). Nothing was pre-sampled, so your gate is the *only* gate. Fifty? Read them all. A few hundred? Sort by the client's goods and markets, read the near ones first, list the rest. A thousand or more? The field is crowded: read the identical and live ones for the client's goods, tell the client it is crowded, and do not write up the rest. Count each group the shape lists on its own, and apply this to each by its own count. Where the shape shows (a) by its first page, page every line of it with `band_lookup`'s `group` filter before its row: reading a line is not writing it up. A crowd of a thousand or more outside (a) stands on its first page read and the count. The shape lists the band in this order: (a) identical or near-identical to the mark or one of its forms, for the client's goods; (b) the same, in the ordered classes; (c) the same family as the mark, for the client's goods; (d) every other live mark in the ordered classes, for the client's goods; then the rest. The ordered classes are the instructed ones, or the account's default classes where none were instructed, and any class the frame added. Every record stays in the band whatever its classes; only the goods text of a class outside the ordered classes is set aside. The band row names omitted classes in `goods_set_aside`. When the goods served come from the trimmed search answer, `goods_from` names those omissions; a separately fetched official record may supply their wording. Inside each group the lines run first by the client's goods on a live record in the ordered classes, then by live records in those classes, then by goods words, then by the client's markets. In a group of a few hundred, every line is read: the near ones get the full inquiry and a row; every other line is either carried or left to the group's row with the reason, except a floor, which is placed or set aside by name.
29
29
  - **`incomplete` crowd descriptors** — a query the funnel could NOT enumerate (genuinely too large, provider cap, budget): `query, total_hits, fetched, reason`. These are NOT findings and NOT clean negatives — they are signals you must rule on (cleared / material-gap; see "Crowd-descriptor materiality" below). They ride along on matching lookups too, so a counted-only zone can never read as a clean.
30
- - The unit's compact prose digest (`register-units/<axis>.md`) still exists for the audit trail. **The band shape, the band's summary, is the material you judge from; open a record only where the judgment needs it.** Before you set a line aside by name on its goods, read its goods in `band_record`, unless its goods words already show the ground on goods established as complete. Missing words in cut goods, or in goods whose completeness is unknown, do not establish that the goods are unrelated.
30
+ - The unit's compact prose digest (`register-units/<axis>.md`) still exists for the audit trail. **The band shape, the band's summary, is the material you judge from; open a record only where the judgment needs it.** Before you set a line aside by name on its goods, read its goods in `band_record`, unless its goods words already show the ground on goods established as complete. Missing words in cut goods, in goods whose completeness is unknown, or in a record whose goods text for some class was set aside, do not establish that the goods are unrelated.
31
31
  - The common-law-findings file at the path your task message names (common-law candidate inventory)
32
32
  - Any prior `placement-recommendations.md` from earlier rounds (for re-runs after a skeptic-flagged re-spawn)
33
33
 
package/driver/stages.mjs CHANGED
@@ -1369,7 +1369,7 @@ export const STAGES = {
1369
1369
  },
1370
1370
  "Distinctiveness & registrability read — spectrum placement per market language, descriptive/generic/laudatory/geographic/deceptive/offensive flags, acquired-distinctiveness note": {
1371
1371
  class: "judgment", tokens: [],
1372
- why: "an advisory legal read that reaches the client-facing report; prose-only, no structured slot, no token",
1372
+ why: "reasoned while the variants are generated, to steer them; no artifact carries it, and the read the report shows is the writer's own mark assessment, made from the manifest's forms and the run's evidence; prose-only, no structured slot, no token",
1373
1373
  },
1374
1374
  "elements[].famous_mark_flag — the elements Step 2's famous-mark check flags": {
1375
1375
  class: "judgment", tokens: [],
@@ -1644,10 +1644,6 @@ export const STAGES = {
1644
1644
  class: "judgment", tokens: ["missing"],
1645
1645
  why: "#850 rules audit-trail prose J. Recorded for E7: the call count and the per-call result count are in the ledger and in _driver/tool-calls.jsonl, so only the prompt-summary column is authored.",
1646
1646
  },
1647
- "Grid program receipt — paste the SANDBOX PROGRAM block from the tool result verbatim into the audit trail": {
1648
- class: "mechanical:tool-written", tokens: [],
1649
- why: "Verbatim re-emission of a block the tool already returned and, on the deterministic branch, already wrote. No validator token speaks about it — a gap, and an instance of exactly the shape #850 says escapes a stages.mjs-only reading.",
1650
- },
1651
1647
  "Summary section — Perplexity calls executed, mandatory platforms covered N/N, findings surfaced, open flags": {
1652
1648
  class: "mechanical:code-extracted", tokens: [],
1653
1649
  why: "Every number is a count over the ledger the tool wrote and the findings rows the model typed; the driver can derive all four. No token speaks about it.",
@@ -25,7 +25,7 @@ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "
25
25
  import { dirname, join } from "node:path";
26
26
 
27
27
  export async function runFrameComparison({ P, axes, ctx, dispatchPlanQids, flushDigestQueue, job, mintDigestWork, planExec, run, runCommonLaw, unitKey }, helpers) {
28
- const { bandBytesOf, deriveNamedBand, forceFromActive, inScopeClassList, joinOptions, loadCoverageLedger, mechanicalFormGapDirectives, readRegisterBands, refreshSupplementalExecution, remergeIfBandsMoved, settleOneShotStamp, stage } = helpers;
28
+ const { bandBytesOf, deriveNamedBand, forceFromActive, inScopeClassList, joinOptions, loadCoverageLedger, mechanicalFormGapDirectives, readRegisterBands, reaskFollowUpErrors, refreshSupplementalExecution, remergeIfBandsMoved, settleOneShotStamp, stage } = helpers;
29
29
  // ── Property 1+2 (frame-omission design): the blind frame-diff + the reopen channel ────────────────
30
30
  // The blind-frame stage re-derived the threat model STARVED of the matter frame (gather, parallel with
31
31
  // the sweeps). Diff that cold model against what the run ACTUALLY scoped/searched (frame-diff), and act
@@ -566,6 +566,7 @@ export async function runFrameComparison({ P, axes, ctx, dispatchPlanQids, flush
566
566
  // ONLY THE FAILING DIRECTIVES' OWN ENTRIES GO AGAIN. A directive that verified closed on the first
567
567
  // attempt is not asked twice: re-sending its qids re-fetches records the run already holds, and
568
568
  // on a register that bills per request it pays for them again.
569
+ let reattempted = []; // the entries this re-attempt sent: each is a question asked again by code
569
570
  if (retryTargets.length) {
570
571
  const retryQids = [...new Set(retryTargets.flatMap((d) => directiveQids.get(reopenKey(d)) ?? []))]
571
572
  .filter((q) => added.includes(q));
@@ -573,6 +574,7 @@ export async function runFrameComparison({ P, axes, ctx, dispatchPlanQids, flush
573
574
  runLog(run.runDir, { event: "frame-reopen-reattempt", directives: retryTargets.map(reopenKey), qids: retryQids });
574
575
  if (retryQids.length) {
575
576
  ev = await dispatchAndVerify(retryQids);
577
+ if (ev.outcome === "ok") reattempted = retryQids;
576
578
  regLastJoin = ev;
577
579
  outcome = ev.outcome ?? outcome;
578
580
  for (const d of retryTargets) {
@@ -582,6 +584,9 @@ export async function runFrameComparison({ P, axes, ctx, dispatchPlanQids, flush
582
584
  }
583
585
  }
584
586
  }
587
+ // The receipt counts what the re-attempt asked again, and an entry that errored and was not re-attempted (its
588
+ // directive closed on another row) is asked again once, before the band is compared and the digest reads it.
589
+ await reaskFollowUpErrors(ctx, dispatchPlanQids, "frame-reopen", { reasked: reattempted });
585
590
  const afterBand = existsSync(P.registerBand(a)) ? readFileSync(P.registerBand(a), "utf8") : null;
586
591
  if (afterBand !== beforeBand) changedAxes.push(a); // the band changed ⇒ re-digest to reconcile
587
592
  if (regSwept.size) regChanged = true; // ≥1 directive genuinely closed
@@ -22,7 +22,7 @@ import { STAGES, lines } from "../stages.mjs";
22
22
  import { existsSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
23
23
 
24
24
  export async function runSkepticAndFollowUp({ P, agent, axes, ctx, dispatchPlanQids, flushDigestQueue, job, mintDigestWork, opts, planExec, run, unitKey }, helpers) {
25
- const { askableOf, bandBytesOf, capabilityGapAxes, defaultRecordFetcher, deriveBandShape, deriveNamedBand, envelopeDecision, envelopeHeldNote, escalationHeldNote, findFloorBreaches, forceFromActive, isInactiveAxisRow, lateRecordIds, loadCoverageLedger, officeGapOf, readFloorAxes, readPlanExecution, recordPlacementPass, recordScreenGateEvidence, refreshSupplementalExecution, remergeIfBandsMoved, runBatched, screenGateSnapshot, settleOneShotStamp, skepticDeferralExtra, stage, stickyGapUnits } = helpers;
25
+ const { askableOf, bandBytesOf, capabilityGapAxes, defaultRecordFetcher, deriveBandShape, deriveNamedBand, envelopeDecision, envelopeHeldNote, escalationHeldNote, findFloorBreaches, forceFromActive, isInactiveAxisRow, lateRecordIds, loadCoverageLedger, officeGapOf, readFloorAxes, readPlanExecution, reaskFollowUpErrors, recordPlacementPass, recordScreenGateEvidence, refreshSupplementalExecution, remergeIfBandsMoved, runBatched, screenGateSnapshot, settleOneShotStamp, skepticDeferralExtra, stage, stickyGapUnits } = helpers;
26
26
  // Step 2.6 skeptic → code-decided escalation. The skeptic poses its flags as a QUESTION back to each
27
27
  // flagged unit, which RESUMES its own session (warm cache, same model) and defends-or-adjusts in place —
28
28
  // it does NOT redo the search from scratch on a fresh opus session. This is both cheaper (a follow-up turn
@@ -227,7 +227,9 @@ export async function runSkepticAndFollowUp({ P, agent, axes, ctx, dispatchPlanQ
227
227
  failed: escResults.filter((e) => !e.ok).map((e) => e.axis),
228
228
  }, null, 2) + "\n");
229
229
  } catch (e) { note(`escalation-state write failed (non-fatal): ${e.message}`); }
230
- refreshSupplementalExecution(ctx); // escalation followups may have PROPOSED supplementals — account for them
230
+ // Escalation followups may have PROPOSED supplementals: account for them, and ask again by code each one the register
231
+ // answered with an error the run reads as passing, before the reading step reads the axis (pipeline.mjs).
232
+ await reaskFollowUpErrors(ctx, dispatchPlanQids, "escalation");
231
233
  if (escalated.length) {
232
234
  runLog(run.runDir, { event: "skeptic-escalation", escalated });
233
235
  const escalationSegment = lines(
@@ -418,7 +420,10 @@ export async function runSkepticAndFollowUp({ P, agent, axes, ctx, dispatchPlanQ
418
420
  const heldNote = undoneSearchesNote(ctx.registerPlan, envelopeReceipt, capabilityHeldAxes);
419
421
  ctx.envelopeNote = ctx.envelopeNote ? `${ctx.envelopeNote}; ${heldNote}` : heldNote;
420
422
  }
421
- refreshSupplementalExecution(ctx); // envelope closes may have PROPOSED supplementals — account for them
423
+ // Envelope closes may have PROPOSED supplementals: account for them. Where a close ran, each one the register answered
424
+ // with an error the run reads as passing is asked again by code first; past the digest lock nothing is sent.
425
+ if (closeableAxes.length && decision.close && !digestLockedEnv) await reaskFollowUpErrors(ctx, dispatchPlanQids, "envelope");
426
+ else refreshSupplementalExecution(ctx);
422
427
  }
423
428
 
424
429
  // Fix 1b — Finding-1 acceptance gate. An in-scope-live mark may NOT be goods/field-dropped on the batch
@@ -695,7 +695,7 @@
695
695
  },
696
696
  "a-demo-says-what-it-is-not-what-it-lacks.test.mjs": {
697
697
  "tests": 5,
698
- "asserts": 32,
698
+ "asserts": 33,
699
699
  "skips": 0,
700
700
  "todos": 0
701
701
  },
@@ -915,6 +915,18 @@
915
915
  "skips": 0,
916
916
  "todos": 0
917
917
  },
918
+ "a-follow-up-question-the-register-errored-on-does-not-park-the-run.pipeline.test.mjs": {
919
+ "tests": 2,
920
+ "asserts": 17,
921
+ "skips": 0,
922
+ "todos": 0
923
+ },
924
+ "a-follow-up-question-the-register-errored-on-is-asked-again-in-the-same-pass.test.mjs": {
925
+ "tests": 10,
926
+ "asserts": 45,
927
+ "skips": 0,
928
+ "todos": 0
929
+ },
918
930
  "a-follow-up-re-runs-only-what-is-missing.test.mjs": {
919
931
  "tests": 4,
920
932
  "asserts": 9,
@@ -1642,8 +1654,8 @@
1642
1654
  "todos": 0
1643
1655
  },
1644
1656
  "a-party-the-report-introduces-is-introduced-to-the-email.test.mjs": {
1645
- "tests": 4,
1646
- "asserts": 13,
1657
+ "tests": 5,
1658
+ "asserts": 18,
1647
1659
  "skips": 0,
1648
1660
  "todos": 0
1649
1661
  },
@@ -3017,7 +3029,7 @@
3017
3029
  },
3018
3030
  "an-empty-config-store-overrides-nothing.test.mjs": {
3019
3031
  "tests": 5,
3020
- "asserts": 29,
3032
+ "asserts": 32,
3021
3033
  "skips": 0,
3022
3034
  "todos": 0
3023
3035
  },
@@ -6741,6 +6753,18 @@
6741
6753
  "skips": 0,
6742
6754
  "todos": 0
6743
6755
  },
6756
+ "start-keeps-systemds-bus-error-out-of-its-output.test.mjs": {
6757
+ "tests": 3,
6758
+ "asserts": 8,
6759
+ "skips": 3,
6760
+ "todos": 0
6761
+ },
6762
+ "start-names-the-grants-file-before-filing-an-organisation.test.mjs": {
6763
+ "tests": 2,
6764
+ "asserts": 9,
6765
+ "skips": 0,
6766
+ "todos": 0
6767
+ },
6744
6768
  "start-refuses-on-a-box-that-has-the-services.test.mjs": {
6745
6769
  "tests": 6,
6746
6770
  "asserts": 20,
@@ -6969,6 +6993,18 @@
6969
6993
  "skips": 0,
6970
6994
  "todos": 0
6971
6995
  },
6996
+ "the-band-carries-goods-text-for-the-orders-classes.test.mjs": {
6997
+ "tests": 18,
6998
+ "asserts": 74,
6999
+ "skips": 0,
7000
+ "todos": 0
7001
+ },
7002
+ "the-band-is-written-compact-and-read-the-same.test.mjs": {
7003
+ "tests": 2,
7004
+ "asserts": 8,
7005
+ "skips": 0,
7006
+ "todos": 0
7007
+ },
6972
7008
  "the-band-record-says-what-its-total-counts.test.mjs": {
6973
7009
  "tests": 2,
6974
7010
  "asserts": 6,
@@ -7623,6 +7659,12 @@
7623
7659
  "skips": 0,
7624
7660
  "todos": 0
7625
7661
  },
7662
+ "the-merged-band-carries-what-its-readers-read.test.mjs": {
7663
+ "tests": 4,
7664
+ "asserts": 27,
7665
+ "skips": 0,
7666
+ "todos": 0
7667
+ },
7626
7668
  "the-minters-read-the-published-tree.test.mjs": {
7627
7669
  "tests": 4,
7628
7670
  "asserts": 12,
@@ -8121,6 +8163,12 @@
8121
8163
  "skips": 0,
8122
8164
  "todos": 0
8123
8165
  },
8166
+ "the-roster-line-says-what-is-read-and-who-is-refused.test.mjs": {
8167
+ "tests": 4,
8168
+ "asserts": 7,
8169
+ "skips": 0,
8170
+ "todos": 0
8171
+ },
8124
8172
  "the-ruled-reading-paragraph-reaches-the-sweep-and-the-write-up.test.mjs": {
8125
8173
  "tests": 2,
8126
8174
  "asserts": 7,
@@ -8219,7 +8267,7 @@
8219
8267
  },
8220
8268
  "the-settings-surface-reads-the-customer-store.test.mjs": {
8221
8269
  "tests": 10,
8222
- "asserts": 43,
8270
+ "asserts": 45,
8223
8271
  "skips": 0,
8224
8272
  "todos": 0
8225
8273
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_README": [
3
- "#1010's FIFTH MEMBER — an arm that ran and asserted nothing. The other four move the file's text and",
3
+ "THE FIFTH MEMBER — an arm that ran and asserted nothing. The other four move the file's text and",
4
4
  "driver/suite-census.json counts it; a GATED arm — an early return behind a condition nobody satisfies —",
5
5
  "moves no token at all, so the suite passes, the census passes, and the arm asserts nothing.",
6
6
  "",
@@ -30,7 +30,7 @@
30
30
  " 4 a comment at the site says the branch IS taken and it is not (portal-service's grants file,",
31
31
  " profiles-page's anon config). The comment is the claim; the coverage is the measurement.",
32
32
  "",
33
- "The last two groups are the instrument's first findings and are ON #1010's thread, not fixed here.",
33
+ "The last two groups are the instrument's first findings and are recorded for follow-up, not fixed here.",
34
34
  "",
35
35
  "RE-STAMP DELIBERATELY: npm run assert-census -- <lcov> --apply"
36
36
  ],
@@ -1,5 +1,13 @@
1
1
  # trademark-artifacts-mcp
2
2
 
3
+ ## 0.6.0
4
+
5
+ No changes in this release.
6
+
7
+ ## 0.6.0-beta.1
8
+
9
+ No changes in this release.
10
+
3
11
  ## 0.6.0-beta.0
4
12
 
5
13
  No changes in this release.
@@ -30,7 +30,7 @@ import { doorPostureVerdict } from "./door-posture.mjs"; // — say when this
30
30
  // The local key door: a second listener on a unix socket, so a scoped access key has
31
31
  // a path that no tunnel can forward to and the TCP door never learns about keys.
32
32
  import { keyDoorRefusal, openKeyDoor, KEY_SOCKET_MODE } from "./key-socket.mjs";
33
- import { demoPostureLine } from "../driver/demo-posture.mjs"; // — the two mis-aimed warnings answer from one place
33
+ import { demoPostureLine, bundledRosterLine, rosterCountLine } from "../driver/demo-posture.mjs"; // — the two mis-aimed warnings answer from one place
34
34
  import { createServer } from "node:http";
35
35
  import { randomUUID } from "node:crypto";
36
36
  import { fileURLToPath } from "node:url";
@@ -275,26 +275,25 @@ if (isMain) {
275
275
  // A warning only. A roster this door cannot read must never stop it starting: the read-only tools
276
276
  // are useful without it, and failing closed here would turn a config slip into an outage.
277
277
  try {
278
- const { loadProfiles } = await import("../driver/profiles.mjs");
278
+ const { loadProfiles, profilesStoreDir } = await import("../driver/profiles.mjs");
279
279
  const profiles = loadProfiles({ force: true });
280
280
  const roster = [...profiles.keys()].sort();
281
- const where = envFrom(process.env, "CLEAROTRON_CUSTOMERS_DIR") || "(unset — BUNDLED demo roster at driver/profiles)";
282
- log(`roster: ${roster.length} customer(s) from ${where} — [${roster.join(", ")}]`);
283
- // — SAME FACT, DIFFERENT READER. "Every real customer will be refused" is
284
- // true and useless to a demo visitor, who has none and wants none; what a first-time reader needs
281
+ log(rosterCountLine(roster, { configured: envFrom(process.env, "CLEAROTRON_CUSTOMERS_DIR") || null, bundledDir: profilesStoreDir }));
282
+ // — SAME FACT, DIFFERENT READER. A line about which companies a store refuses is
283
+ // useless to a demo visitor, who has none and wants none; what a first-time reader needs
285
284
  // is what the demo IS. Composed once, in driver/demo-posture.mjs, because the other mis-aimed
286
285
  // warning of this pair lives in the portal process and the two must not answer differently.
287
286
  //
288
287
  // ASKED BEFORE THE STORE IS. A demo runs on a store of its own under its base, so an unset store no
289
288
  // longer tells a demo from an operator's install. The line is composed from the roster read above.
290
289
  //
291
- // OUTSIDE A DEMO IT IS UNCHANGED AND STILL A WARNING — an operator whose roster is the bundled one
292
- // has a real deployment that will refuse every real customer.
290
+ // OUTSIDE A DEMO IT SAYS WHAT IS READ AND WHO IS REFUSED. A real local start does not set the store, so this line
291
+ // printed on every new install, and its claim that every real customer is refused was not true there: the
292
+ // companies in the folder that ships with the install are read. What refuses a company is its absence from that
293
+ // folder, and the remedy is named for a company whose profile lives in a separate store (design, 2026-11-11).
293
294
  const posture = demoPostureLine(process.env, { roster: profiles });
294
295
  if (posture) log(posture);
295
- else if (!envFrom(process.env, "CLEAROTRON_CUSTOMERS_DIR"))
296
- log(`WARNING: CLEAROTRON_CUSTOMERS_DIR is unset, so start_run is validating against the BUNDLED demo roster.`
297
- + " Every real customer will be refused with \"names no known customer\". Set it to the config store's profiles directory.");
296
+ else if (!envFrom(process.env, "CLEAROTRON_CUSTOMERS_DIR")) log(bundledRosterLine(roster.length));
298
297
  const granted = grantedAccounts(envFrom(process.env, "CLEAROTRON_ACCESS_FILE"));
299
298
  const missing = granted.filter((a) => !roster.includes(a));
300
299
  if (missing.length) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trademark-artifacts-mcp",
3
- "version": "0.6.0-beta.0",
3
+ "version": "0.6.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "private": true,
6
6
  "description": "MCP server to interrogate clearotron trademark-clearance runs — list/read artifacts, trace the full decision flow, telemetry/cost, coverage, single-run search, and a gated single-step what-if. Imports the clearotron-driver read-only; touches no driver/template/deploy files.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buffers",
3
3
  "version": "0.1.1",
4
- "description": "Clean-room replacement for the unlicensed buffers@0.1.1 (#854). Not published.",
4
+ "description": "Clean-room replacement for the unlicensed buffers@0.1.1. Not published.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "main": "./index.js",
7
7
  "private": true,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "clearotron",
3
3
  "mcpName": "io.github.CordilleraSarl/clearotron",
4
4
  "type": "module",
5
- "version": "0.6.0-beta.0",
5
+ "version": "0.6.0",
6
6
  "license": "AGPL-3.0-only",
7
7
  "repository": {
8
8
  "type": "git",