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.
- package/bin/start.mjs +39 -15
- package/build-info.json +2 -2
- package/driver/CHANGELOG.md +73 -0
- package/driver/band-shape.mjs +21 -3
- package/driver/commonlaw-carry-floor.json +3 -3
- package/driver/contract-arm2-baseline.json +2 -3
- package/driver/contract-e3-backlog.mjs +28 -28
- package/driver/demo-posture.mjs +17 -0
- package/driver/engine/anthropic-agent.mjs +5 -5
- package/driver/engine/mcp/band-server.mjs +14 -7
- package/driver/goods-evidence.mjs +16 -8
- package/driver/named-band.mjs +60 -3
- package/driver/package.json +1 -1
- package/driver/pipeline.mjs +130 -13
- package/driver/portal-service.mjs +4 -1
- package/driver/predelivery-lint.mjs +9 -0
- package/driver/publish/templates/report.css +6 -6
- package/driver/record-goods.mjs +74 -18
- package/driver/skills/clearance-register/digest.md +6 -6
- package/driver/skills/placement-inquiry/SKILL.md +2 -2
- package/driver/stages.mjs +1 -5
- package/driver/steps/frame-comparison.mjs +6 -1
- package/driver/steps/skeptic-and-follow-up.mjs +8 -3
- package/driver/suite-census.json +53 -5
- package/driver/unexecuted-asserts.json +2 -2
- package/mcp-server/CHANGELOG.md +8 -0
- package/mcp-server/http-server.mjs +10 -11
- package/mcp-server/package.json +1 -1
- package/node_modules/buffers/package.json +1 -1
- package/package.json +1 -1
- package/portal-ui/dist/assets/{index-AtB9ZpDH.css → index-izLa9apq.css} +2 -2
- package/portal-ui/dist/index.html +4 -4
- package/portal-ui/package.json +1 -1
- package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/scripts/e2e-first-time.mjs +1 -1
- package/scripts/render-check.mjs +1 -1
- package/scripts/unexecuted-asserts.mjs +2 -2
- package/shared/customer-store.mjs +3 -2
- package/vendor/buffers/package.json +1 -1
- /package/portal-ui/dist/assets/{index-D5rkCjDc.js → index-CYaO2ygd.js} +0 -0
package/bin/start.mjs
CHANGED
|
@@ -352,6 +352,39 @@ export function clientDoorOwner({ probeCode = null, unitActive = null, unitPort
|
|
|
352
352
|
return unitPort === port ? "ours" : "stranger";
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
/**
|
|
356
|
+
* What `start` says about the grants file it wrote: the file first, then what was filed in it.
|
|
357
|
+
*
|
|
358
|
+
* THE FILE IS NAMED BEFORE "filed there". A file that already named this person, given an organisation for
|
|
359
|
+
* the first time, changed only the organisation; the line naming the file printed only when the file was
|
|
360
|
+
* created or a person was added, so "there" pointed at nothing (measured in testing, 2026-11-17).
|
|
361
|
+
*/
|
|
362
|
+
export function grantsFileLines({ existed, changed, path, user, organisation, organisations = 0 }) {
|
|
363
|
+
const lines = [];
|
|
364
|
+
if (!existed) lines.push(` created ${path} — ${user}: Run, Manage, access to everything`);
|
|
365
|
+
else if (changed.includes("person"))
|
|
366
|
+
lines.push(` grants ${path} named nobody, so ${user} was added: Run, Manage, access to everything`);
|
|
367
|
+
else if (changed.includes("organisation")) lines.push(` grants ${path}`);
|
|
368
|
+
if (changed.includes("organisation")) lines.push(` organisation "${organisation}", filed there — rename it there too`);
|
|
369
|
+
else if (changed.includes("person") && !organisations)
|
|
370
|
+
lines.push(` no organisation named yet — \`${reachableCommand('start --organisation "<name>"')}\` files the first one`);
|
|
371
|
+
return lines;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* `systemctl --user show <unit>`, its properties as an object. Its stderr is CAPTURED, never inherited:
|
|
376
|
+
* where the user bus cannot be reached, systemctl writes "Failed to connect to bus: No medium found", and
|
|
377
|
+
* an inherited stderr printed that line into start's own output with nothing around it. A read that fails
|
|
378
|
+
* still throws, so each caller keeps its own could-not-look answer.
|
|
379
|
+
*/
|
|
380
|
+
export function systemctlShow(unit, props, run = execFileSync) {
|
|
381
|
+
const out = run("systemctl", ["--user", "show", unit, ...props.flatMap((p) => ["-p", p])],
|
|
382
|
+
{ encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] });
|
|
383
|
+
return Object.fromEntries(out.split("\n").filter(Boolean).map((l) => {
|
|
384
|
+
const i = l.indexOf("="); return [l.slice(0, i), l.slice(i + 1)];
|
|
385
|
+
}));
|
|
386
|
+
}
|
|
387
|
+
|
|
355
388
|
/**
|
|
356
389
|
* The two reads `clientDoorOwner` needs, against the live box.
|
|
357
390
|
*
|
|
@@ -359,14 +392,10 @@ export function clientDoorOwner({ probeCode = null, unitActive = null, unitPort
|
|
|
359
392
|
* daemon-reload below for why this file does not pass it yet. A read that throws answers `null`, which
|
|
360
393
|
* `clientDoorOwner` turns into "unknown" and therefore into today's refusal.
|
|
361
394
|
*/
|
|
362
|
-
function liveClientDoor(unitEnvFile = unitEnvPath(), run = execFileSync) {
|
|
395
|
+
export function liveClientDoor(unitEnvFile = unitEnvPath(), run = execFileSync) {
|
|
363
396
|
let unitActive = null, unitPort = null;
|
|
364
397
|
try {
|
|
365
|
-
const
|
|
366
|
-
{ encoding: "utf8" });
|
|
367
|
-
const f = Object.fromEntries(out.split("\n").filter(Boolean).map((l) => {
|
|
368
|
-
const i = l.indexOf("="); return [l.slice(0, i), l.slice(i + 1)];
|
|
369
|
-
}));
|
|
398
|
+
const f = systemctlShow(CLIENT_DOOR_UNIT, ["ActiveState", "SubState"], run);
|
|
370
399
|
if (f.ActiveState !== undefined) unitActive = f.ActiveState === "active" && f.SubState === "running";
|
|
371
400
|
} catch { /* null — a could-not-look, which refuses */ }
|
|
372
401
|
try {
|
|
@@ -417,7 +446,7 @@ export function clientDoorDownLines({ host, port, exited }) {
|
|
|
417
446
|
export const DEMO_ROUTINE_LINES = [
|
|
418
447
|
/^auth ON — /,
|
|
419
448
|
/^key path: none \(TRADEMARK_MCP_KEY_SOCKET is not set\)/,
|
|
420
|
-
/^roster: \d+
|
|
449
|
+
/^roster: \d+ customers? from /,
|
|
421
450
|
/^This is `clearotron demo`: /,
|
|
422
451
|
/^listening on http:\/\//,
|
|
423
452
|
/^audit log: /,
|
|
@@ -1577,12 +1606,8 @@ if (isMain) {
|
|
|
1577
1606
|
try { atomicWrite(paths.grants, `${JSON.stringify(seeded.grants, null, 2)}\n`); }
|
|
1578
1607
|
catch (e) { fatal(`could not write the grants file at ${paths.grants} (${String(e?.message ?? e)}).`); }
|
|
1579
1608
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
say(` grants ${paths.grants} named nobody, so ${user} was added: Run, Manage, access to everything`);
|
|
1583
|
-
if (seeded.changed.includes("organisation")) say(` organisation "${organisation}", filed there — rename it there too`);
|
|
1584
|
-
else if (seeded.changed.includes("person") && !Object.keys(seeded.grants.tenants ?? {}).length)
|
|
1585
|
-
say(` no organisation named yet — \`${reachableCommand('start --organisation "<name>"')}\` files the first one`);
|
|
1609
|
+
for (const line of grantsFileLines({ existed: Boolean(existing), changed: seeded.changed, path: paths.grants, user,
|
|
1610
|
+
organisation, organisations: Object.keys(seeded.grants.tenants ?? {}).length })) say(line);
|
|
1586
1611
|
// REPORTED, NOT REPAIRED. A file that names other people is somebody's decision, and adding this
|
|
1587
1612
|
// address to it would give access to everything to an address nobody enrolled.
|
|
1588
1613
|
if (seeded.unadmitted)
|
|
@@ -2241,8 +2266,7 @@ if (isMain) {
|
|
|
2241
2266
|
const type = unitTypeOf(u);
|
|
2242
2267
|
let f = {};
|
|
2243
2268
|
try {
|
|
2244
|
-
|
|
2245
|
-
f = Object.fromEntries(out.trim().split("\n").map((l) => l.split("=")));
|
|
2269
|
+
f = systemctlShow(u, ["ActiveState", "SubState", "NRestarts", "UnitFileState"]);
|
|
2246
2270
|
} catch { /* unreadable state is reported below as not-running */ }
|
|
2247
2271
|
const verdict = unitHealthVerdict({ type, activeState: f.ActiveState ?? null, subState: f.SubState ?? null,
|
|
2248
2272
|
unitFileState: f.UnitFileState ?? null, nRestarts: f.NRestarts ?? 0 });
|
package/build-info.json
CHANGED
package/driver/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
# clearotron-driver
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Fixed: When setup stops at a refused register credential, it now says what it had already installed, instead of saying nothing was written.
|
|
8
|
+
- New: Searches on the Signa register now reach Brazil and Italy, so an order naming either country is searched there rather than reported as not covered.
|
|
9
|
+
- For operators: A run on Signa now reuses an answer it already holds instead of asking the register the same question again. Set `CLEAROTRON_SIGNA_ANSWER_MEMORY=off` to ask every time.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Fixed: A summary panel citing a finding the search does not have, or a recommended step resting on a finding that is gone, is now sent back for correction before delivery.
|
|
14
|
+
- Fixed: The report link in the assistant's summary of a clearance now opens the report in the portal. It used to point at an address the portal does not serve.
|
|
15
|
+
- Fixed: In the demo, a search ordered under the default company now opens that search's finished example instead of being refused.
|
|
16
|
+
- Fixed: The first `clearotron start` on a new install no longer warns that the reports folder is not set. It records its configuration with the folders it creates, as it already did for its services.
|
|
17
|
+
- Fixed: A follow-up register search that fails temporarily is retried before the clearance continues. If it still fails, the report identifies the unsearched work and its recorded cause.
|
|
18
|
+
- Fixed: When a client asks for a full-depth Japanese- or Korean-language search that this version cannot run, the report now says so in plain words.
|
|
19
|
+
- Fixed: The assistant's summary of a Knockout batch now lists every name screened, with its report link, including a name whose data could not be saved.
|
|
20
|
+
- Fixed: A Knockout correction can now update another screened name when the same finding or a dependent answer requires it. Those changes go to review instead of causing the correction to be discarded.
|
|
21
|
+
- Fixed: A Knockout search now delivers each name's report when the audit workbook or one name's data file cannot be written, where before it delivered nothing. The run records which file is missing, and the report, its email and the run's record offer only the files that exist.
|
|
22
|
+
- Fixed: A Knockout search's email now names the product as its report does. Its subject and first line say "Knockout search", where they said "Knockout trademark review".
|
|
23
|
+
- For operators: When a Knockout search fails after retrying on its own, its failure notice now says how many automatic recovery attempts it made, as a clearance's does.
|
|
24
|
+
- For operators: When a Knockout search fails, its failure notice now says why it stopped and whether retrying can help, in the sentences a clearance's notice already uses. The requester's copy is unchanged.
|
|
25
|
+
- For operators: A Knockout search now keeps the order it was accepted on, as a clearance does. A batch of several marks can then be resumed from the command line without its job file; before, that resume was refused as a different matter.
|
|
26
|
+
- Fixed: A Knockout search paused to recover from a failure now retains the information needed to resume automatically. Previously, missing information could leave it waiting for someone to restart it.
|
|
27
|
+
- Fixed: A Knockout search that reaches the AI provider's usage limit while reading the register or correcting now pauses and resumes, as a clearance does. It no longer finishes without that step.
|
|
28
|
+
- Fixed: When a Knockout search fails during a stage because a credential or configuration is invalid, it now stops retrying and sends the same failure notice as a clearance.
|
|
29
|
+
- Fixed: Installed from a package file inside a project folder, setup and `clearotron doctor` no longer warn that a different `clearotron` is earlier on your PATH when it is the same install, and the commands they print use the plain `clearotron` name.
|
|
30
|
+
- Fixed: The report and its email no longer flag a party named in a recommended step as unexplained when the report already shows that party among its open coverage items or its web and marketplace names.
|
|
31
|
+
- Fixed: A recommended step that names one of your own product tiers, such as "Tier 1", no longer leads the covering email and the audit workbook to say that the action list names a party no finding identifies.
|
|
32
|
+
- Fixed: A recheck can now flag a previously excluded record that a correction added to the report, so that flag no longer leaves the delivery marked as unchecked.
|
|
33
|
+
- Fixed: A report no longer reads as clear when a repeated review says so while an open point found by a check still stands; it now lists that point.
|
|
34
|
+
- For operators: Re-rendering a published report now refuses one made by a different version of Clearotron, and leaves its saved report as it was.
|
|
35
|
+
- Fixed: Where a web or marketplace name rests on the run's own common-law search record, the report now says so in words. It used to print that record's file name as a link that opened nothing.
|
|
36
|
+
- Fixed: A clearance that resumes after its register cross-checks were added keeps them in its audit record.
|
|
37
|
+
- Fixed: A clearance search that resumes now runs a step again when its saved work has no record of what it was made from. Running a register step again no longer pays again for answers the search already holds.
|
|
38
|
+
- Fixed: A clearance interrupted just after its report was published now sends the same covering email when it resumes, with the link to download the audit workbook. Before, the resumed email left that link out.
|
|
39
|
+
- Fixed: A Knockout search resumed without its original order now keeps each name's own classes and reference as the order gave them. Before, the resume could search a name across all the batch's classes instead.
|
|
40
|
+
- Fixed: A Knockout search that resumes no longer searches the web again for what a filing's owner sells when it already holds that answer. Before, every resume paid for that search again.
|
|
41
|
+
- Fixed: A Knockout search interrupted just after its report was published no longer publishes it a second time when it resumes; it delivers the report it already published, as a clearance does.
|
|
42
|
+
- Fixed: A Knockout search that resumes after something a step read has changed, such as its plan, now runs that step again, as a clearance does. Before, it could deliver a rating of the earlier plan.
|
|
43
|
+
- Fixed: A search that stops and resumes now continues on the register it started on, even if the register setting changed in between. If this server cannot use that register or AI engine, the search waits and resumes by itself on one that can.
|
|
44
|
+
- Fixed: A search that stopped before its search type was settled now resumes as the search that was ordered, Knockout search included. Before, it could be delivered under the name of a search type no longer offered, or refused.
|
|
45
|
+
- Fixed: A search that stops and resumes now finishes on the AI engine it started on, even if the engine setting changed in between. Before, a resumed search switched to whichever engine was set at the time, and its record did not say so.
|
|
46
|
+
- Fixed: When the review flags a coverage line, a recommended step or a summary section, the correction now goes to that part by its address, not by matching words. A flag that names a finding the review was not given is sent back to the reviewer at once.
|
|
47
|
+
- For operators: A run resumed outside the queue that pauses for an automatic retry after its report is published now resumes on its own. It used to stay paused until someone resumed it again.
|
|
48
|
+
- Fixed: `clearotron run` on an install with no AI or register chosen now says what is missing and how to set it up, as `clearotron doctor` does. It used to name a program nobody had chosen.
|
|
49
|
+
- Fixed: A search gap that a run recorded twice is now listed once in its report.
|
|
50
|
+
- Fixed: A search step that runs again, after a retry or a resume, no longer sends a web research question it already has the answer to. Before, every rerun paid for those questions again.
|
|
51
|
+
- For operators: A stopped clearance now records what it spent up to the stop in the account's usage and refreshes the run list, as a Knockout search does.
|
|
52
|
+
- For operators: A search stopped by request now reads as stopped in the staff run list, with the reason its stop recorded. Before, it read as running until newer searches pushed it off the list.
|
|
53
|
+
- For operators: `clearotron update` now waits while a search is parked, as it already waited for one that is running. A search started before an update is no longer resumed after it: it ends with the usual failure notice, and nothing is asked of the register again.
|
|
54
|
+
- Fixed: Closing the terminal window that runs `clearotron start` or `clearotron demo` now stops it completely, as its banner says. It used to keep running at full processor use and leave the demo's folder behind.
|
|
55
|
+
- Fixed: With no AI chosen, `clearotron doctor` no longer lists a program's path among what a search needs.
|
|
56
|
+
- Fixed: When no AI is chosen, `clearotron doctor` now prints where setup installed the AI program and how to sign it in, as the guides say it does.
|
|
57
|
+
- Fixed: When findings for the same conflict are grouped, each court decision now appears under its own finding.
|
|
58
|
+
- Fixed: Installation settings now show the setup command for a missing engine program as a command, without the backticks around it.
|
|
59
|
+
- Fixed: Knockout reports now call their scale the Knockout risk scale and its middle level Moderate, as clearance reports do, and clearance reports call theirs the Standard risk scale.
|
|
60
|
+
- Fixed: Leaving New clearance before changing anything no longer asks whether to discard unsaved changes.
|
|
61
|
+
- Fixed: New clearance now stops a search that a company's own territories cannot fill, as it already did for territories typed into the form.
|
|
62
|
+
- New: A Spanish or Mexican registration found on the Signa register now links to the office's own page for that registration. Brazilian and Italian registrations are cited by number.
|
|
63
|
+
- For operators: Startup messages explain which bundled profile and framework files are in use and how to select a separate configuration store.
|
|
64
|
+
- Fixed: In the demo, New clearance now says that new searches are unavailable and that the example report, its audit trail and the assistant connection need no engine, instead of saying they are live right now.
|
|
65
|
+
- Fixed: With no company store set, the assistant connection now says at start how many companies it reads from the folder that ships with the install, and which are refused, instead of warning that every real customer will be refused.
|
|
66
|
+
|
|
67
|
+
## 0.6.0-beta.1
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Fixed: A follow-up register search that fails temporarily is retried before the clearance continues. If it still fails, the report identifies the unsearched work and its recorded cause.
|
|
72
|
+
- Fixed: A recommended step that names one of your own product tiers, such as "Tier 1", no longer leads the covering email and the audit workbook to say that the action list names a party no finding identifies.
|
|
73
|
+
- For operators: Startup messages explain which bundled profile and framework files are in use and how to select a separate configuration store.
|
|
74
|
+
- Fixed: With no company store set, the assistant connection now says at start how many companies it reads from the folder that ships with the install, and which are refused, instead of warning that every real customer will be refused.
|
|
75
|
+
|
|
3
76
|
## 0.6.0-beta.0
|
|
4
77
|
|
|
5
78
|
### Minor Changes
|
package/driver/band-shape.mjs
CHANGED
|
@@ -713,6 +713,9 @@ function bindingOffices(territories, code) {
|
|
|
713
713
|
// text. Then that text cut short for a line.
|
|
714
714
|
const goodsReadText = (g) => (Array.isArray(g) ? g.map((x) => (typeof x === "string" ? x : x?.text)) : [typeof g === "string" ? g : g?.text])
|
|
715
715
|
.filter((t) => typeof t === "string" && t.trim()).join("; ").replace(/\s+/g, " ").trim() || null;
|
|
716
|
+
// Goods read off a search answer the merge trimmed carry an entry for each class whose description it set aside
|
|
717
|
+
// (record-goods.mjs `rowGoods`); a held record's goods carry none.
|
|
718
|
+
const descriptionsOmitted = (g) => Array.isArray(g) && g.some((x) => x?.setAside === true);
|
|
716
719
|
export const FLOOR_GOODS_SHOWN = 140;
|
|
717
720
|
function cutGoods(text) {
|
|
718
721
|
const t = String(text ?? "");
|
|
@@ -761,7 +764,7 @@ export function bandGroups(records, { classify, inScope, goods = null, dominantT
|
|
|
761
764
|
// "On file" is a body `band_record` can open: goods read off the band row decide the group, never that.
|
|
762
765
|
const onFile = goods?.held ? goods.held(r) : Boolean(g);
|
|
763
766
|
const rec = { r, tier, hits, words, live, inScope: s, group, outside, floor, onFile, territories: ts, inMarket: ts.some((t) => market.has(t)),
|
|
764
|
-
...(floor ? { read: goodsReadText(g) } : {}) };
|
|
767
|
+
...(floor ? { read: goodsReadText(g), ...(descriptionsOmitted(g) ? { readOmits: true } : {}) } : {}) };
|
|
765
768
|
const keys = typeof keysOf === "function" ? keysOf(r) : null;
|
|
766
769
|
const ownerKey = keys?.owner ?? (normKey(r?.owner_name) ? `owner:${normKey(r?.owner_name)}` : `record:${String(r?.record_id ?? "").trim().toLowerCase()}`);
|
|
767
770
|
const key = keys?.line ?? `line:${ownerKey}|${normMark(r?.mark_text) || String(r?.record_id ?? "").trim().toLowerCase()}`;
|
|
@@ -805,7 +808,11 @@ export function bandGroups(records, { classify, inScope, goods = null, dominantT
|
|
|
805
808
|
floors: l.recs.filter((x) => x.floor).length,
|
|
806
809
|
// A FLOOR IN (b) SHOWS THE GOODS THE TEST READ, cut short: a (b) line matched none of the client's words, so
|
|
807
810
|
// without them a page of floors could not be judged without opening each record.
|
|
808
|
-
|
|
811
|
+
// Where the wording quoted came from a search answer the merge trimmed, the line says the quotation is partial.
|
|
812
|
+
...(group === "b" && known ? (() => {
|
|
813
|
+
const f = l.recs.find((x) => x.floor && x.read);
|
|
814
|
+
return f ? { floor_goods: cutGoods(f.read), ...(f.readOmits ? { floor_goods_omits: true } : {}) } : {};
|
|
815
|
+
})() : {}),
|
|
809
816
|
...(known ? {} : { goods_on_file: inGroup.some((x) => x.onFile) }),
|
|
810
817
|
...(offices.size && l.recs.every((x) => x.outside) ? { outside: true } : {}),
|
|
811
818
|
};
|
|
@@ -917,6 +924,8 @@ export function buildBandShape(band, { crowdNarrowing = [], targets = [], inScop
|
|
|
917
924
|
dominant_term: grouped.dominant_term, manifest_dominant: manifestDominant || null, goods_on_file: grouped.goods_on_file,
|
|
918
925
|
markets: grouped.markets, territories: grouped.territories, territories_unread: grouped.territories_unread, outside: grouped.outside,
|
|
919
926
|
goods_words_total: goodsWordCount || 0, goods_test: goodsTest ?? { source: goods ? "goods_words" : "none", words: [] },
|
|
927
|
+
// records whose set-aside wording the goods test read through the answer the merge saved for it
|
|
928
|
+
goods_saved_results: records.filter((r) => r?.goods_set_aside?.test).length,
|
|
920
929
|
crowded_at: CROWDED_GROUP_RECORDS, first_page: ownerCap,
|
|
921
930
|
a: groupOf("a"), b: groupOf("b"), c: groupOf("c"), d: groupOf("d"),
|
|
922
931
|
rest: { records: grouped.by_group.rest.set_records, lines: rest.length, owners: ownersIn(rest), list: rest },
|
|
@@ -1159,6 +1168,11 @@ export function withoutPlacementOrders(text) {
|
|
|
1159
1168
|
return t;
|
|
1160
1169
|
}
|
|
1161
1170
|
|
|
1171
|
+
// What a goods-word answer the merge saved for set-aside wording is, said once beside the goods test it serves.
|
|
1172
|
+
// What a floor's quoted goods say where the quotation's source has class descriptions the merge set aside.
|
|
1173
|
+
export const FLOOR_QUOTE_OMITS = "Some class descriptions are omitted; this quotation is not the record's complete goods wording.";
|
|
1174
|
+
export const SAVED_GOODS_RESULT = "A saved goods-word result records the outcome of the shape's stated word test on the wording available when the band was merged. It supports grouping and order. It does not establish that the omitted goods are legally unrelated. `band_record` shows what wording is available to read now.";
|
|
1175
|
+
|
|
1162
1176
|
function renderGroupsMd(md, groups, rows = []) {
|
|
1163
1177
|
md.push("", "## The band in the lawyer's order — for the client's goods first", "");
|
|
1164
1178
|
if (groups.dominant_term && groups.manifest_dominant && normKey(groups.dominant_term) !== normKey(groups.manifest_dominant))
|
|
@@ -1172,6 +1186,9 @@ function renderGroupsMd(md, groups, rows = []) {
|
|
|
1172
1186
|
: tested.source === "goods_words"
|
|
1173
1187
|
? `No product words were given, so the goods test reads each record's goods for the words the register search was narrowed by${named}. They include words other filings use for the same goods, so "for the client's goods" below is wider than the client's own product.`
|
|
1174
1188
|
: "No goods words were given, so no record was tested on its goods.", "");
|
|
1189
|
+
// Where the merge kept the test's answer for wording it set aside (named-band.mjs `rowAsHanded`), the summary says
|
|
1190
|
+
// what that answer is and is not, beside the test it serves.
|
|
1191
|
+
if (tested.source !== "none" && groups.goods_saved_results > 0) md.push(SAVED_GOODS_RESULT, "");
|
|
1175
1192
|
if (groups.territories_unread?.length)
|
|
1176
1193
|
md.push(`The order names ${groups.territories_unread.map((t) => `«${cell(t)}»`).join(", ")}, which the engine cannot read as a territory, so the list holds every register.`, "");
|
|
1177
1194
|
else if (groups.territories?.length) md.push(`The list holds the order's territories: ${groups.territories.join(", ")}.`, "");
|
|
@@ -1188,13 +1205,14 @@ function renderGroupsMd(md, groups, rows = []) {
|
|
|
1188
1205
|
if (tested.source === "none") return "—";
|
|
1189
1206
|
if (l.goods_evidence === "cut") return "cut by the register, no goods word found";
|
|
1190
1207
|
if (l.goods_evidence === "unknown") return l.goods_text === false ? "no goods text held; completeness not established" : "goods held; completeness not established";
|
|
1208
|
+
if (l.goods_evidence === "set-aside") return "Some class descriptions were set aside; the retained wording does not settle the goods-word test.";
|
|
1191
1209
|
if (l.goods_evidence === "absent") return "the register's record lists no goods";
|
|
1192
1210
|
if (l.goods_evidence === "unavailable") return "fetch failed, no goods on file";
|
|
1193
1211
|
if (l.goods_evidence === "complete") return "on file, not readable";
|
|
1194
1212
|
return l.goods_on_file ? "on file, not readable" : "no goods on file";
|
|
1195
1213
|
};
|
|
1196
1214
|
const words = (l) => (l.goods_words == null ? unread(l)
|
|
1197
|
-
: `${fmtN(l.goods_words.length)} of ${fmtN(total)}${l.goods_words.length ? `: ${l.goods_words.join(", ")}` : ""}${l.floor_goods ? ` «${l.floor_goods}
|
|
1215
|
+
: `${fmtN(l.goods_words.length)} of ${fmtN(total)}${l.goods_words.length ? `: ${l.goods_words.join(", ")}` : ""}${l.floor_goods ? ` «${l.floor_goods}»${l.floor_goods_omits ? ` ${FLOOR_QUOTE_OMITS}` : ""}` : ""}`);
|
|
1198
1216
|
const count = (grp) => `${fmtN(grp.records)} records in ${fmtN(grp.lines)} lines from ${fmtN(grp.owners)} owners`;
|
|
1199
1217
|
const where = (l) => `${l.territories.join(",")}${l.outside ? " (outside the order)" : ""}`;
|
|
1200
1218
|
const row = (l) => `| ${cell(l.mark)} | ${cell(l.owner_name)} | ${cell(l.classes.join(","))} | ${fmtN(l.live)} of ${fmtN(l.records)} | ${cell(where(l))} | ${cell(words(l))} | ${l.floors > 0 ? "yes" : "no"} | ${cell(l.record_id)} |`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_README": [
|
|
3
|
-
"
|
|
3
|
+
"THE RECONCILIATION RATCHET. The floor a run's common-law carry must not fall below.",
|
|
4
4
|
"",
|
|
5
5
|
"WHAT IT RECORDS: what the contract CURRENTLY ACHIEVES, not what anyone hopes it achieves. It is",
|
|
6
6
|
"seeded from a real delivered run, never from a fixture, because a floor invented at a desk ratchets",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"A TRIP ANNOTATES, NEVER SUPPRESSES: the deliverable ships first. Below-floor means the ROUND cannot",
|
|
14
14
|
"claim the contract held; it never means a client gets nothing.",
|
|
15
15
|
"",
|
|
16
|
-
"MOVING IT UP IS THE POINT. When the seat-compliance work lands (the judgment half of
|
|
16
|
+
"MOVING IT UP IS THE POINT. When the seat-compliance work lands (the judgment half of the ratchet — why the",
|
|
17
17
|
"seat writes rows for 13% of cells when the dictation says one per cell), re-seed from the round that",
|
|
18
18
|
"proves the improvement and record which run did it. A wave that ends with these numbers unmoved is a",
|
|
19
19
|
"finding for the handover, not a footnote. Lowering the floor requires the same: a named run and a",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"date": "2026-08-14",
|
|
33
33
|
"round": "R1",
|
|
34
34
|
"engine": "anthropic-agent",
|
|
35
|
-
"note": "First delivered R1 since 2026-08-09. Measured by
|
|
35
|
+
"note": "First delivered R1 since 2026-08-09. Measured by a cell join — 292 candidate-bearing cells, 39 carrying a negative row; 2116 retrieved candidates, 1609 with reason_source absent. by_joined_on {url 235, cell 272, none 1609} sums to 2116, so the accounting is complete over the full retrieved set."
|
|
36
36
|
},
|
|
37
37
|
"candidates": {
|
|
38
38
|
"min_rate": 0.239603,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_README": [
|
|
3
|
-
"
|
|
3
|
+
"E2 arm 2 — 'a declared element no validator token speaks about'. THE RATCHET BASELINE.",
|
|
4
4
|
"Per stage, carrying the ELEMENT NAMES: this file IS the audit object, not a bare count, so a plateau",
|
|
5
5
|
"is legible per stage and a reader can see WHICH elements no validator polices.",
|
|
6
6
|
"CI fails on any PER-STAGE INCREASE (driver/test/contract-audit.test.mjs) — a new unpoliced element in",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"the baseline tracks named elements, and a rename is a new name. Regenerate rather than work around it.",
|
|
12
12
|
"Measured 139 of 287 declared elements."
|
|
13
13
|
],
|
|
14
|
-
"total":
|
|
14
|
+
"total": 104,
|
|
15
15
|
"byStage": {
|
|
16
16
|
"matter-frame": [
|
|
17
17
|
"### Intake asks line shape — rendered by the driver from intake_asks[]",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
],
|
|
57
57
|
"common-law": [
|
|
58
58
|
"BATCHING — split the keys into ceil(N/batch) batches of <=batch variants and concatenate the matrices",
|
|
59
|
-
"Grid program receipt — paste the SANDBOX PROGRAM block from the tool result verbatim into the audit trail",
|
|
60
59
|
"INSTRUCTED CHECKS — execute each as part of the sweep, or state honestly why it could not run",
|
|
61
60
|
"INSTRUCTED CHECKS — the ask text the requester wrote, quoted back in the findings file with its receipt",
|
|
62
61
|
"Summary section — Perplexity calls executed, mandatory platforms covered N/N, findings surfaced, open flags",
|
|
@@ -256,7 +256,7 @@ export const E3_BACKLOG = [
|
|
|
256
256
|
{
|
|
257
257
|
stage: "register-unit",
|
|
258
258
|
kind: "literal-json-skeleton",
|
|
259
|
-
where: "driver/stages.mjs:
|
|
259
|
+
where: "driver/stages.mjs:2135 (the non-supplemental-lane branch)",
|
|
260
260
|
surface: "stage-message",
|
|
261
261
|
evidence: "BAND ARTIFACT (MANDATORY): ALSO write the COMPLETE NAMED BAND for this axis to <path> — a JSON ARRAY, one block per register_enumerate / count-probe call, in the named-band contract: {\"state\":\"enumerated\",\"query\":\"<what was searched>\",\"total_hits\":N,\"records\":[{record_id, mark_text, classes, status,",
|
|
262
262
|
reparsedBy: "driver/named-band.mjs parseNamedBand / bandRecords / bandCrowds / mergeNamedBands (named in driver/skills/clearance-register/unit.md:60-62); validators.registerUnit",
|
|
@@ -265,7 +265,7 @@ export const E3_BACKLOG = [
|
|
|
265
265
|
{
|
|
266
266
|
stage: "register-unit",
|
|
267
267
|
kind: "exactly-these-keys",
|
|
268
|
-
where: "driver/stages.mjs:
|
|
268
|
+
where: "driver/stages.mjs:2100",
|
|
269
269
|
surface: "stage-message",
|
|
270
270
|
evidence: "Every block you append MUST carry \"state\":\"enumerated\" (ONLY if you paged it to has_more:false) or \"state\":\"incomplete\" — EXACTLY those two strings; there is no \"verified\"/\"checked\"/\"complete\"/\"clean\" state, and any other value fails the stage.",
|
|
271
271
|
reparsedBy: "driver/named-band.mjs parseNamedBand (off-enum state fails validators.registerUnit)",
|
|
@@ -283,7 +283,7 @@ export const E3_BACKLOG = [
|
|
|
283
283
|
{
|
|
284
284
|
stage: "register-unit",
|
|
285
285
|
kind: "exactly-these-keys",
|
|
286
|
-
where: "driver/stages.mjs:
|
|
286
|
+
where: "driver/stages.mjs:4110 (the frame-reopen / scoped-retry message builder). A second number stood here and had been stale for some time: it pointed at a contract-element description rather than a builder, at its old line and at every mechanical shift of it. Two candidate builders sit beside 4164 and picking one would be a guess, so the wrong pointer is removed rather than moved a third time — one accurate citation beats one accurate and one invented.",
|
|
287
287
|
surface: "stage-message",
|
|
288
288
|
evidence: "Every block you append MUST carry \"state\":\"enumerated\" (ONLY if paged to has_more:false) or \"state\":\"incomplete\" — EXACTLY those two strings … (re-dispatch builders, which REPLACE def.message)",
|
|
289
289
|
reparsedBy: "driver/named-band.mjs parseNamedBand. Scope warning: these builders replace def.message on every escalation / envelope-close / frame-reopen dispatch, so an E3 lint that walks STAGES[*].message only never sees them",
|
|
@@ -292,7 +292,7 @@ export const E3_BACKLOG = [
|
|
|
292
292
|
{
|
|
293
293
|
stage: "placement-inquiry",
|
|
294
294
|
kind: "literal-json-skeleton",
|
|
295
|
-
where: "driver/stages.mjs:
|
|
295
|
+
where: "driver/stages.mjs:2292-2293",
|
|
296
296
|
surface: "stage-message",
|
|
297
297
|
evidence: "PLACEMENT FORM (MANDATORY): record every placement in <path> — {\"rows\":[…]} … · A REGISTER candidate: {\"select\":\"<one record URI it holds>\",\"tier\":\"…\",\"reason\":\"…\"} (+ optional \"borderline\":true) … · A COMMON-LAW candidate …: {\"kind\":\"seat\",\"mark\",\"owner\",\"jurisdiction\",\"records\":[],\"tier\",\"reason\"}",
|
|
298
298
|
reparsedBy: "driver/placement-form.mjs (SELECT_ROW_FIELDS at placement-form.mjs:93, the seat-row contract SEAT_ROW_CONTRACT, formRowKey/rowIsSettled/renderEntry) via validators.placement. The same field list is ALSO carried in the driver-written form's own seat_row_contract, so the shape exists twice",
|
|
@@ -301,7 +301,7 @@ export const E3_BACKLOG = [
|
|
|
301
301
|
{
|
|
302
302
|
stage: "placement-inquiry",
|
|
303
303
|
kind: "exactly-these-keys",
|
|
304
|
-
where: "driver/stages.mjs:
|
|
304
|
+
where: "driver/stages.mjs:2296",
|
|
305
305
|
surface: "stage-message",
|
|
306
306
|
evidence: "· tier EXACTLY one of headline-candidate / sheet-2 / watchlist-annex / out-of-scope-filtered.",
|
|
307
307
|
reparsedBy: "driver/placement-form.mjs / driver/placement-model.mjs via validators.placement",
|
|
@@ -341,7 +341,7 @@ export const E3_BACKLOG = [
|
|
|
341
341
|
// (coverage-form.mjs coverageFormBrief) and the tool schema, with every row receiver-validated at
|
|
342
342
|
// call time. Same dictated vocabulary, same authored site, new route — this row's evidence follows
|
|
343
343
|
// the dictation so the row keeps describing something that exists.
|
|
344
|
-
where: "driver/stages.mjs:
|
|
344
|
+
where: "driver/stages.mjs:2507 (the digest message) + driver/coverage-form.mjs (coverageFormBrief — the dispatch block carrying the enum and the row shape)",
|
|
345
345
|
surface: "stage-message",
|
|
346
346
|
evidence: "Record a \"status\" and a \"reason\" on EVERY row ONLY by calling the … tool — the driver validates each row as it arrives, holds the record itself, and renders both the ## Coverage ledger table and the coverage JSON from it",
|
|
347
347
|
reparsedBy: "driver/coverage-call.mjs validateCoverageCall (receiver-validated at call time, the same predicates the gate judges with) + driver/coverage-form.mjs rowIsSettled via validators.registerFindings over the _driver/ accumulator",
|
|
@@ -424,7 +424,7 @@ export const E3_BACKLOG = [
|
|
|
424
424
|
{
|
|
425
425
|
stage: "frame-diff",
|
|
426
426
|
kind: "exactly-these-keys",
|
|
427
|
-
where: "driver/stages.mjs:
|
|
427
|
+
where: "driver/stages.mjs:2675",
|
|
428
428
|
surface: "stage-message",
|
|
429
429
|
evidence: "For each blind-model variant / field / source the run did NOT scope or search, emit one directive {layer, item, observation, severity} … severity = dominant-element (the omission is ON the spine) | material (a real omission worth a targeted sweep) | minor (already covered, or presentation only).",
|
|
430
430
|
reparsedBy: "driver/verify.mjs validators.frameDiff + driver/pipeline.mjs runSupplementalSweeps (the parser REFUSES a firing variant directive that dictates nothing dispatchable)",
|
|
@@ -448,7 +448,7 @@ export const E3_BACKLOG = [
|
|
|
448
448
|
{
|
|
449
449
|
stage: "synthesis",
|
|
450
450
|
kind: "literal-json-skeleton",
|
|
451
|
-
where: "driver/stages.mjs:
|
|
451
|
+
where: "driver/stages.mjs:3059",
|
|
452
452
|
surface: "stage-message",
|
|
453
453
|
evidence: "MACHINE FINDINGS (MANDATORY): … a JSON OBJECT {\"schema_version\":<FINDINGS_SCHEMA_VERSION>,\"rated_under_framework\":\"…\",\"findings\":[...],\"coverage\":[...],\"context_notes\":[...],\"actions\":[...],\"ask_answers\":[...]} … Each finding object has EXACTLY these keys: {\"ordinal\",\"mark\",\"owner\",\"band\",\"net\",\"bor",
|
|
454
454
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson via validators.narrative",
|
|
@@ -462,7 +462,7 @@ export const E3_BACKLOG = [
|
|
|
462
462
|
{
|
|
463
463
|
stage: "synthesis",
|
|
464
464
|
kind: "exactly-these-keys",
|
|
465
|
-
where: "driver/stages.mjs:
|
|
465
|
+
where: "driver/stages.mjs:3092",
|
|
466
466
|
surface: "stage-message",
|
|
467
467
|
evidence: "- off_field_ground (MANDATORY on every off-field finding, FORBIDDEN on every other disposition): EXACTLY one bare token of: ${OFF_FIELD_GROUNDS.join(\" / \")}",
|
|
468
468
|
reparsedBy: "driver/findings-model.mjs validateOffFieldGround — the enum is imported from findings-model.mjs and interpolated back into the prompt, so code already holds the list it asks the model to type",
|
|
@@ -471,7 +471,7 @@ export const E3_BACKLOG = [
|
|
|
471
471
|
{
|
|
472
472
|
stage: "synthesis",
|
|
473
473
|
kind: "literal-json-skeleton",
|
|
474
|
-
where: "driver/stages.mjs:
|
|
474
|
+
where: "driver/stages.mjs:3093",
|
|
475
475
|
surface: "stage-message",
|
|
476
476
|
evidence: "- manageable …: {\"category\":\"<EXACTLY one of large-competitor / commercial-partner / troll / well-known-enforcer>\",\"reason\":\"<one-two lines…>\"}",
|
|
477
477
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
|
|
@@ -480,7 +480,7 @@ export const E3_BACKLOG = [
|
|
|
480
480
|
{
|
|
481
481
|
stage: "synthesis",
|
|
482
482
|
kind: "literal-json-skeleton",
|
|
483
|
-
where: "driver/stages.mjs:
|
|
483
|
+
where: "driver/stages.mjs:3109",
|
|
484
484
|
surface: "stage-message",
|
|
485
485
|
evidence: "- meters: {\"mark_similarity\":{...},\"goods_proximity\":{...},\"use\":{...},\"enforcer\":{...}} — all four present, each {\"token\",\"basis\",\"source\"}. … mark_similarity = high | medium | low. goods_proximity = high | medium | low. enforcer = high | medium | low | unknown. use = confirmed | not-confirmed | un",
|
|
486
486
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; driver/verify.mjs:1192 checkFindingsSibling gates meters.*.source; finding_basis_source_missing",
|
|
@@ -489,7 +489,7 @@ export const E3_BACKLOG = [
|
|
|
489
489
|
{
|
|
490
490
|
stage: "synthesis",
|
|
491
491
|
kind: "literal-json-skeleton",
|
|
492
|
-
where: "driver/stages.mjs:
|
|
492
|
+
where: "driver/stages.mjs:3110",
|
|
493
493
|
surface: "stage-message",
|
|
494
494
|
evidence: "- quadrant: {\"x\",\"y\"} numbers in [0,1]. x = goods/services proximity (0 = distant, 1 = identical). y = mark similarity (0 = distinct, 1 = identical).",
|
|
495
495
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
|
|
@@ -498,7 +498,7 @@ export const E3_BACKLOG = [
|
|
|
498
498
|
{
|
|
499
499
|
stage: "synthesis",
|
|
500
500
|
kind: "literal-json-skeleton",
|
|
501
|
-
where: "driver/stages.mjs:
|
|
501
|
+
where: "driver/stages.mjs:3111",
|
|
502
502
|
surface: "stage-message",
|
|
503
503
|
evidence: "- source: {\"source_type\",\"resolved_link\"}. source_type EXACTLY one of: register-vendor / register-euipo / common-law-marketplace / common-law-web / case-law",
|
|
504
504
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
|
|
@@ -507,7 +507,7 @@ export const E3_BACKLOG = [
|
|
|
507
507
|
{
|
|
508
508
|
stage: "synthesis",
|
|
509
509
|
kind: "exactly-these-keys",
|
|
510
|
-
where: "driver/stages.mjs:
|
|
510
|
+
where: "driver/stages.mjs:3112",
|
|
511
511
|
surface: "stage-message",
|
|
512
512
|
evidence: "coverage[]: ONE object per coverage AREA, EXACTLY {\"area\",\"state\",\"note\"}. … state EXACTLY one of: confirmed-clean / coverage-limited / open / not-searched / note.",
|
|
513
513
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; the render owns the coverage panel from these typed states",
|
|
@@ -516,7 +516,7 @@ export const E3_BACKLOG = [
|
|
|
516
516
|
{
|
|
517
517
|
stage: "synthesis",
|
|
518
518
|
kind: "literal-json-skeleton",
|
|
519
|
-
where: "driver/stages.mjs:
|
|
519
|
+
where: "driver/stages.mjs:3121",
|
|
520
520
|
surface: "stage-message",
|
|
521
521
|
evidence: "use_check = {\"source\",\"quality\",\"question\"}: … quality: OPTIONAL, EXACTLY one of owner-site / independent / register-mirror … own_rights = {\"source\"}",
|
|
522
522
|
reparsedBy: "driver/verify.mjs checkFindingsSibling (finding_use_check_missing); driver/own-rights.mjs:19-22",
|
|
@@ -525,7 +525,7 @@ export const E3_BACKLOG = [
|
|
|
525
525
|
{
|
|
526
526
|
stage: "synthesis",
|
|
527
527
|
kind: "literal-json-skeleton",
|
|
528
|
-
where: "driver/stages.mjs:
|
|
528
|
+
where: "driver/stages.mjs:3178",
|
|
529
529
|
surface: "stage-message",
|
|
530
530
|
evidence: "MARK ASSESSMENT … STRUCTURED FORM …: either field may instead be an OBJECT {\"read\":\"…\",\"spectrum\":\"…\",\"per_class\":[{\"class\":\"5\",\"note\":\"…\"}],\"per_market\":[{\"market\":\"CN\",\"note\":\"…\"}],\"counter_registrations\":[{\"mark\":\"…\",\"uri\":\"/mark/…\",\"note\":\"…\"}],\"acquired\":\"<optional>\",\"note\":\"<optional residual>",
|
|
531
531
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; the report collapses the rows behind toggles and the audit workbook renders them",
|
|
@@ -534,7 +534,7 @@ export const E3_BACKLOG = [
|
|
|
534
534
|
{
|
|
535
535
|
stage: "synthesis",
|
|
536
536
|
kind: "literal-json-skeleton",
|
|
537
|
-
where: "driver/stages.mjs:
|
|
537
|
+
where: "driver/stages.mjs:3184",
|
|
538
538
|
surface: "stage-message",
|
|
539
539
|
evidence: "FOUR ANSWERS …: \"four_answers\": {\"third_party_rights\":{...},\"objection_likelihood\":{...},\"registrability\":{...},\"client_enforceability\":{...}} … Each answer … is {\"read\":\"…\",\"token\":\"…\",\"basis\":\"…\",\"ordinals\":[…]}. Tokens (closed enums …): third_party_rights = strong|moderate|weak; objection_likelih",
|
|
540
540
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
|
|
@@ -543,7 +543,7 @@ export const E3_BACKLOG = [
|
|
|
543
543
|
{
|
|
544
544
|
stage: "synthesis",
|
|
545
545
|
kind: "literal-json-skeleton",
|
|
546
|
-
where: "driver/stages.mjs:
|
|
546
|
+
where: "driver/stages.mjs:3190",
|
|
547
547
|
surface: "stage-message",
|
|
548
548
|
evidence: "ACTIONS REGISTER …: emit \"actions\": [...] — ONE object per forward step …, each EXACTLY {\"id\",\"kind\",\"text\",\"ordinals\"} plus an OPTIONAL \"deadline\" and an OPTIONAL \"condition\". … kind: EXACTLY one of — consent / coexistence-agreement / territorial-delimitation / goods-amendment / mark-modification /",
|
|
549
549
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; pipeline applyCoverageFloor legalActions arm derives the delivered disposition from the closed kind enum",
|
|
@@ -552,7 +552,7 @@ export const E3_BACKLOG = [
|
|
|
552
552
|
{
|
|
553
553
|
stage: "synthesis",
|
|
554
554
|
kind: "exactly-these-keys",
|
|
555
|
-
where: "driver/stages.mjs:
|
|
555
|
+
where: "driver/stages.mjs:3191",
|
|
556
556
|
surface: "stage-message",
|
|
557
557
|
evidence: "COVERAGE JUDGMENT …: emit \"coverage_judgment\": {\"sufficient\":<bool>, \"reason\":\"<one line…>\"} — EXACTLY those two keys. Do NOT emit \"rows\": the driver writes that register itself … anything you type there is replaced wholesale.",
|
|
558
558
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson. The \"Do NOT emit rows\" clause is the purest E3 case in the tree — the prompt names a field, dictates its shape and states in the same breath that code overwrites it",
|
|
@@ -561,7 +561,7 @@ export const E3_BACKLOG = [
|
|
|
561
561
|
{
|
|
562
562
|
stage: "synthesis",
|
|
563
563
|
kind: "literal-json-skeleton",
|
|
564
|
-
where: "driver/stages.mjs:
|
|
564
|
+
where: "driver/stages.mjs:3037",
|
|
565
565
|
surface: "stage-message",
|
|
566
566
|
// RE-QUOTED, NOT PARKED. The writer's conversion reworded this dictation — the
|
|
567
567
|
// ask answers ride the findings RECORD now and the driver renders the labelled line into both the
|
|
@@ -585,7 +585,7 @@ export const E3_BACKLOG = [
|
|
|
585
585
|
{
|
|
586
586
|
stage: "synthesis",
|
|
587
587
|
kind: "exactly-these-keys",
|
|
588
|
-
where: "driver/stages.mjs:
|
|
588
|
+
where: "driver/stages.mjs:3170",
|
|
589
589
|
surface: "stage-message",
|
|
590
590
|
evidence: "add it to the top-level \"context_notes\" array — each object EXACTLY {\"type\":\"famous-neighbour-ungrounded\",\"mark\",\"owner\",\"context\"}",
|
|
591
591
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
|
|
@@ -594,7 +594,7 @@ export const E3_BACKLOG = [
|
|
|
594
594
|
{
|
|
595
595
|
stage: "synthesis",
|
|
596
596
|
kind: "literal-json-skeleton",
|
|
597
|
-
where: "driver/stages.mjs:
|
|
597
|
+
where: "driver/stages.mjs:3061",
|
|
598
598
|
surface: "stage-message",
|
|
599
599
|
evidence: "- owner: {\"name\",\"country\",\"registrations\":[...]}. … Each registration: {\"uri\", optionally \"classes\":[\"9\",\"41\"],\"status\",\"filed\",\"expiry\",\"jurisdiction\"}. The \"uri\" is the ONLY field that matters: the driver BINDS classes/status/filed/expiry/jurisdiction AND the owner name from the FETCHED record ke",
|
|
600
600
|
reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson + the record-binding join. Six of the seven keys are stated in the prompt and overwritten by code in the same sentence",
|
|
@@ -603,7 +603,7 @@ export const E3_BACKLOG = [
|
|
|
603
603
|
{
|
|
604
604
|
stage: "case-law",
|
|
605
605
|
kind: "literal-json-skeleton",
|
|
606
|
-
where: "driver/stages.mjs:
|
|
606
|
+
where: "driver/stages.mjs:3348",
|
|
607
607
|
surface: "stage-message",
|
|
608
608
|
evidence: "ALSO write the RETRIEVAL RECORD to <path> — a JSON OBJECT with EXACTLY these keys: {\"schema_version\":2,\"queries\":[{\"query\":\"<the search you dispatched, verbatim>\",\"jurisdiction\":\"…\",\"results\":<how many hits it returned, or null when the query never reached a source — never 0 for a query you could not send>}, …],\"citations\":[{\"proceeding\":\"…\",\"forum\":\"…\",\"jurisdiction\":\"…\",\"decided\":\"…\"",
|
|
609
609
|
reparsedBy: "driver/verify.mjs validators.caseLaw — the ledger arm, armed by the stage-contract marker `citations` (the case-law stage's `contract: { citations: 1 }` in stages.mjs)",
|
|
@@ -612,7 +612,7 @@ export const E3_BACKLOG = [
|
|
|
612
612
|
{
|
|
613
613
|
stage: "case-law",
|
|
614
614
|
kind: "dictated-line-shape",
|
|
615
|
-
where: "driver/stages.mjs:
|
|
615
|
+
where: "driver/stages.mjs:3356",
|
|
616
616
|
surface: "stage-message",
|
|
617
617
|
evidence: "EVERY \"Grounded profile\" section MUST start its body with the line \"- ord: <N>\" naming which finding it grounds (use the ordinal from this list; a profile that grounds no listed finding omits the line)",
|
|
618
618
|
reparsedBy: "driver/publish/parse.mjs:339, parseCaseLawProfiles() in parse.mjs (\"the optional '- ord: <N>' first body line … gives an EXACT join\"); driver/findings-model.mjs:274 /^-\\s*ord:\\s*(\\d+)\\s*$/m; driver/publish/index.mjs publishReport (joinCaseLawProfiles)",
|
|
@@ -646,7 +646,7 @@ export const E3_BACKLOG = [
|
|
|
646
646
|
{
|
|
647
647
|
stage: "narrative-refutation",
|
|
648
648
|
kind: "dictated-line-shape",
|
|
649
|
-
where: "driver/stages.mjs:
|
|
649
|
+
where: "driver/stages.mjs:4694",
|
|
650
650
|
surface: "stage-message",
|
|
651
651
|
// RE-QUOTED BY CONVERSION 9. The LINE-TOKEN half is gone — no "anywhere on the line", no "[kind: …]
|
|
652
652
|
// token", no "a line with no token is treated as fact", because a kind is a typed field now and an
|
|
@@ -681,7 +681,7 @@ export const E3_BACKLOG = [
|
|
|
681
681
|
{
|
|
682
682
|
stage: "narrative-refutation",
|
|
683
683
|
kind: "dictated-line-shape",
|
|
684
|
-
where: "driver/stages.mjs:
|
|
684
|
+
where: "driver/stages.mjs:1676 and driver/skills/narrative-refutation/SKILL.md:39-48",
|
|
685
685
|
// RE-QUOTED 2026-08-16. The dictated SENTENCE survives in narrative-refutation's SKILL.md — it is the
|
|
686
686
|
// `evidence` below, verbatim. What changed is that the four kinds moved from an inline list after the
|
|
687
687
|
// colon onto their own `- [kind: …]` bullet lines. Measured, not assumed: the old anchor matched 59 of
|
|
@@ -746,7 +746,7 @@ export const E3_BACKLOG = [
|
|
|
746
746
|
{
|
|
747
747
|
stage: "report-card",
|
|
748
748
|
kind: "literal-json-skeleton",
|
|
749
|
-
where: "driver/stages.mjs:
|
|
749
|
+
where: "driver/stages.mjs:3798",
|
|
750
750
|
surface: "stage-message",
|
|
751
751
|
evidence: "The finding's OWN record — the ONLY source for this card …:\\n```json\\n<JSON.stringify(finding, null, 2)>\\n```",
|
|
752
752
|
reparsedBy: "none — this is the INPUT side, and that is why it belongs in the survey: a full JSON object rendered into the prompt is exactly the mechanism #850 proves produced R-RECEIPT (the model pattern-matches a shown shape). E3's clause 1 as written (\"a code fence or inline example showing the exact object shape the model must emit\") does not reach an injected record, so the lint needs an explicit rule for shown-but-not-owed structure",
|
|
@@ -836,7 +836,7 @@ export const E3_EVIDENCE_UNRESOLVED = [
|
|
|
836
836
|
// absorbed. It was the narrative "## Answers to your instructions" row deleted above: its dictation is
|
|
837
837
|
// gone, so there is no un-anchorable quote left to be unresolved. The one that REMAINS is a live row
|
|
838
838
|
// whose quote spans a template line. Measured before deleting, not predicted — two rows shared
|
|
839
|
-
// `where: "driver/stages.mjs:
|
|
839
|
+
// `where: "driver/stages.mjs:2860"`, so which one occupied this slot could not be read off the strings.
|
|
840
840
|
"synthesis|driver/stages.mjs",
|
|
841
841
|
];
|
|
842
842
|
|
package/driver/demo-posture.mjs
CHANGED
|
@@ -137,3 +137,20 @@ export function demoPostureLine(env = process.env, { roster, projects } = {}) {
|
|
|
137
137
|
? " Nothing here is configured against a real customer, and nothing needs to be." : "";
|
|
138
138
|
return `${head}: it carries ${carries}, and ${reports} ready to open.${unreal}`;
|
|
139
139
|
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The door's count of the companies it read, and from where: the store set, or the folder that ships with this install.
|
|
143
|
+
* One company is "1 customer". PURE.
|
|
144
|
+
*/
|
|
145
|
+
export function rosterCountLine(roster, { configured = null, bundledDir }) {
|
|
146
|
+
const n = roster.length;
|
|
147
|
+
const from = configured || `the folder that ships with this install, ${bundledDir} (CLEAROTRON_CUSTOMERS_DIR is unset)`;
|
|
148
|
+
return `roster: ${n} ${n === 1 ? "customer" : "customers"} from ${from} — [${roster.join(", ")}]`;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** The boot line for a door reading the company folder that ships with this install. PURE. */
|
|
152
|
+
export function bundledRosterLine(count) {
|
|
153
|
+
return `CLEAROTRON_CUSTOMERS_DIR is unset, so start_run reads the ${count} ${count === 1 ? "company" : "companies"} in the folder that ships with this install `
|
|
154
|
+
+ "(driver/profiles). A company absent from that folder is refused with \"names no known customer\". If its profile is in a "
|
|
155
|
+
+ "separate config store, set CLEAROTRON_CUSTOMERS_DIR to that store's profiles directory.";
|
|
156
|
+
}
|