clearotron 0.7.0-beta.2 → 0.7.0-beta.4
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/INSTALL.md +5 -5
- package/QUICKSTART.md +4 -4
- package/README.md +2 -2
- package/bin/README.md +3 -4
- package/bin/clearotron.mjs +1 -1
- package/bin/onboard.mjs +28 -40
- package/bin/status.mjs +11 -0
- package/build-info.json +2 -2
- package/docs/DELIVERY.md +30 -6
- package/docs/architecture/04-configuration-reference.md +1 -0
- package/driver/CHANGELOG.md +34 -0
- package/driver/compose-read.mjs +4 -3
- package/driver/contract-arm2-baseline.json +1 -2
- package/driver/contract-dictation-registry.mjs +7 -48
- package/driver/contract-e3-backlog.mjs +55 -52
- package/driver/contract-e3-baseline.json +22 -7
- package/driver/contract-vocabulary.mjs +4 -2
- package/driver/coverage-form.mjs +4 -0
- package/driver/coverage-rows-run.mjs +68 -4
- package/driver/engine/anthropic-agent.mjs +10 -13
- package/driver/engine/common.mjs +34 -22
- package/driver/engine/health.mjs +251 -0
- package/driver/engine/jx-turn.mjs +2 -1
- package/driver/engine/mcp/codex-config.mjs +16 -1
- package/driver/engine/mcp/crowd-note.mjs +1 -1
- package/driver/engine/mcp/gather-config.mjs +34 -9
- package/driver/engine/mcp/perplexity-server.mjs +33 -23
- package/driver/engine/mcp/recording-server.mjs +67 -58
- package/driver/engine/mcp/unit-note-server.mjs +2 -0
- package/driver/engine/openai-agent.mjs +9 -24
- package/driver/engine/probe.mjs +24 -7
- package/driver/findings-model.mjs +54 -0
- package/driver/jx-units.mjs +139 -30
- package/driver/knockout-assess-record.mjs +2 -2
- package/driver/knockout-correction-check.mjs +119 -0
- package/driver/knockout-correction-record.mjs +1 -1
- package/driver/knockout-frame-record.mjs +24 -10
- package/driver/knockout-review-record.mjs +35 -430
- package/driver/ladder/dispatch.mjs +4 -2
- package/driver/ladder/form-repair.mjs +5 -5
- package/driver/ladder/form-sync.mjs +4 -6
- package/driver/ladder/next-rung.mjs +10 -0
- package/driver/ladder/repair-messages.mjs +37 -65
- package/driver/ladder/stage.mjs +3 -3
- package/driver/ladder/turn-signals.mjs +4 -14
- package/driver/manual-paragraphs.mjs +22 -2
- package/driver/mark-logos.mjs +25 -9
- package/driver/package.json +1 -1
- package/driver/pipeline-knockout.mjs +2 -2
- package/driver/predelivery-lint.mjs +39 -7
- package/driver/product-fault.mjs +53 -0
- package/driver/publish/knockout.mjs +2 -1
- package/driver/publish/register-record-html.mjs +7 -9
- package/driver/publish/register-record.mjs +0 -1
- package/driver/publish/render.mjs +16 -10
- package/driver/publish/strings.mjs +0 -1
- package/driver/publish/templates/knockout.css +1 -1
- package/driver/publish/templates/report.css +2 -4
- package/driver/recording-agreement.mjs +6 -4
- package/driver/register-band-run.mjs +2 -2
- package/driver/register-digest-record.mjs +31 -9
- package/driver/register-unit-record.mjs +10 -1
- package/driver/repair-composers.mjs +12 -11
- package/driver/repair-contract.mjs +6 -6
- package/driver/repair-targets.mjs +7 -6
- package/driver/run-outcome.mjs +8 -0
- package/driver/runner.mjs +42 -3
- package/driver/skills/README.md +5 -4
- package/driver/skills/blind-frame/SKILL.md +1 -1
- package/driver/skills/case-law-citation/SKILL.md +1 -1
- package/driver/skills/clearance-common-law/SKILL.md +6 -423
- package/driver/skills/clearance-common-law/grid.md +272 -0
- package/driver/skills/clearance-common-law/meaning.md +142 -0
- package/driver/skills/clearance-common-law/perplexity-prompts.md +4 -2
- package/driver/skills/clearance-register/SKILL.md +7 -174
- package/driver/skills/clearance-register/digest.md +89 -25
- package/driver/skills/clearance-register/providers/clarivate-questions.md +154 -0
- package/driver/skills/clearance-register/providers/clarivate.md +5 -149
- package/driver/skills/clearance-register/providers/signa-questions.md +120 -0
- package/driver/skills/clearance-register/providers/signa.md +3 -114
- package/driver/skills/clearance-register/providers/uspto-local.md +3 -3
- package/driver/skills/clearance-register/register-recipes.md +10 -10
- package/driver/skills/clearance-register/status-rules.md +2 -2
- package/driver/skills/clearance-register/unit.md +96 -54
- package/driver/skills/clearance-search/delivery-contract.md +11 -49
- package/driver/skills/clearance-search/firm-wide-reasoning.md +10 -13
- package/driver/skills/clearance-search/look-at-what-you-have.md +7 -0
- package/driver/skills/clearance-search/phase2-execution.md +12 -117
- package/driver/skills/clearance-search/report-card-rules.md +2 -2
- package/driver/skills/clearance-search/report-prose.md +30 -23
- package/driver/skills/clearance-search/synthesis-rules.md +27 -69
- package/driver/skills/clearance-search/worked-examples.md +11 -16
- package/driver/skills/clearance-variants/SKILL.md +7 -7
- package/driver/skills/clearance-variants/transliteration-scripts.md +2 -2
- package/driver/skills/frame-diff/SKILL.md +1 -1
- package/driver/skills/knockout-assess/SKILL.md +54 -41
- package/driver/skills/knockout-frame/SKILL.md +13 -12
- package/driver/skills/knockout-register-read/SKILL.md +2 -10
- package/driver/skills/matter-frame/SKILL.md +2 -2
- package/driver/skills/narrative-refutation/SKILL.md +7 -6
- package/driver/skills/placement-inquiry/SKILL.md +3 -3
- package/driver/skills/skeptic/SKILL.md +111 -0
- package/driver/skills/whatif-memo/SKILL.md +5 -2
- package/driver/stage-declarations.mjs +6 -0
- package/driver/stages-knockout.mjs +36 -38
- package/driver/stages.mjs +69 -64
- package/driver/steps/delivery.mjs +6 -4
- package/driver/steps/open-run.mjs +2 -0
- package/driver/steps/overview-and-cards.mjs +2 -2
- package/driver/steps/register-sweep.mjs +20 -1
- package/driver/steps/synthesis.mjs +28 -11
- package/driver/suite-census.json +217 -61
- package/driver/synthesis-record.mjs +24 -2
- package/driver/verify-knockout.mjs +23 -3
- package/driver/whatif-memo-run.mjs +39 -10
- package/driver/whatif-queue.mjs +53 -7
- package/mcp-server/CHANGELOG.md +8 -0
- package/mcp-server/lib/ops.mjs +19 -10
- package/mcp-server/lib/whatif.mjs +7 -6
- package/mcp-server/package.json +1 -1
- package/mcp-server/server.mjs +55 -19
- package/package.json +1 -1
- package/portal-ui/package.json +1 -1
- package/providers/clarivate/src/adapter.js +3 -0
- package/providers/jx/src/nativeread.js +5 -3
- package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/providers/perplexity/src/core.js +7 -2
- package/providers/signa/src/adapter.js +3 -0
- package/scripts/e2e-first-time.mjs +2 -2
- package/shared/brand.mjs +0 -2
- package/shared/connector-signin-probe.mjs +1 -1
- package/shared/names-in-force.mjs +1 -0
- package/skills/clearotron-account/SKILL.md +21 -11
- package/skills/clearotron-client/SKILL.md +15 -15
- package/skills/clearotron-ops/COURIER.md +5 -1
- package/skills/clearotron-ops/SKILL.md +21 -14
|
@@ -50,7 +50,8 @@ import { refuseUndeclared as refuseUndeclaredShared, keepIfAbsent, lastAccepted,
|
|
|
50
50
|
import { kebabCollisions } from "./search-policy.mjs";
|
|
51
51
|
// The plan's own checks for the web search's lists, one definition: the call is refused with the plan's
|
|
52
52
|
// sentence, so the seat hears the rule once, in the same words, whichever door it reaches first.
|
|
53
|
-
import { placesDefect, spellingsDefect, useKindDefect, alternativesDefect, marketSpellings, heldTerms, batchUseKindDefect, spaced
|
|
53
|
+
import { placesDefect, spellingsDefect, useKindDefect, alternativesDefect, marketSpellings, heldTerms, batchUseKindDefect, spaced,
|
|
54
|
+
FAMILIES_RULE, familiesMissingDefect, FRAME_REPAIR_RULE } from "./verify-knockout.mjs";
|
|
54
55
|
import { readAcceptedOrder } from "./accepted-order.mjs";
|
|
55
56
|
import { paths as runPaths } from "./run-record.mjs";
|
|
56
57
|
|
|
@@ -108,7 +109,7 @@ export function familiesDefect(marks, families) {
|
|
|
108
109
|
const parts = [unknown.length ? `names no instructed name: ${unknown.map((n) => `"${verbatim.get(n)}"`).join(", ")}` : "",
|
|
109
110
|
twice.length ? `places a name in more than one family: ${twice.map((n) => `"${verbatim.get(n)}"`).join(", ")}` : "",
|
|
110
111
|
missing.length ? `leaves out: ${missing.map((n) => `"${verbatim.get(n)}"`).join(", ")}` : ""].filter(Boolean);
|
|
111
|
-
return parts.length ? `batch.families ${parts.join("; ")}.
|
|
112
|
+
return parts.length ? `batch.families ${parts.join("; ")}. ${FAMILIES_RULE}` : null;
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
/** Refuse an undeclared key by path, through the shared implementation every transport now uses. */
|
|
@@ -168,7 +169,7 @@ export function mergeKnockoutFrameCall(stored, received) {
|
|
|
168
169
|
* driver state, so it stays in `knockoutPlan` where the file is in reach. A seat cannot satisfy it by
|
|
169
170
|
* restating anything, which is exactly why it is not a call-time question.
|
|
170
171
|
*/
|
|
171
|
-
export function acceptKnockoutFrame(params) {
|
|
172
|
+
export function acceptKnockoutFrame(params, { saved = false } = {}) {
|
|
172
173
|
// ── EVERY DEFECT IN ONE REFUSAL (ruling 592, 2026-09-27) ──────────────────────────────────────────
|
|
173
174
|
//
|
|
174
175
|
// This returned on the FIRST defect, so a frame with four faults was refused four times and each
|
|
@@ -194,6 +195,10 @@ export function acceptKnockoutFrame(params) {
|
|
|
194
195
|
const productContext = str(params?.batch?.productContext);
|
|
195
196
|
if (!productContext)
|
|
196
197
|
defects.push("knockoutframe_context_missing: batch.productContext (one sentence) is required — every mark's contextFraming is read against it");
|
|
198
|
+
// Asked here since the tool's schema stopped requiring it (design, 2026-11-24), in the plan check's own words: that check
|
|
199
|
+
// runs after the write, so a plan without it would otherwise be saved and then refused.
|
|
200
|
+
if (!str(params?.batch?.inUseAs))
|
|
201
|
+
defects.push("knockoutframe_in_use_as_missing: batch.inUseAs (string) is required: the kinds of use off the register, for this client's field");
|
|
197
202
|
|
|
198
203
|
// THE BATCH'S LIST IS OPTIONAL FROM RULING 570 ON — the places are per name, checked with each mark
|
|
199
204
|
// below. A call that still sends a batch list is not refused for sending it, only for sending a bad one.
|
|
@@ -207,8 +212,12 @@ export function acceptKnockoutFrame(params) {
|
|
|
207
212
|
// held answer from before carries no phrase on the batch and a use and spellings on every name, and keeps them, so a
|
|
208
213
|
// replayed run frames as it ran. Any other call is asked for the order's phrase, never for spellings, and a null use on
|
|
209
214
|
// a name is no use.
|
|
215
|
+
//
|
|
216
|
+
// SAVED IS SAID BY THE CALLER, NEVER BY THE PAYLOAD (design, 2026-11-24). Only a replay handing back an answer this
|
|
217
|
+
// recorder already accepted passes `saved`; the tool the model calls never does. So a fresh call shaped like an old
|
|
218
|
+
// answer is still a fresh call, and cannot skip the use phrase or the groups by looking like one.
|
|
210
219
|
const marks = Array.isArray(params?.marks) ? params.marks : null;
|
|
211
|
-
const built = !heldTerms(params?.batch, marks);
|
|
220
|
+
const built = !(saved && heldTerms(params?.batch, marks));
|
|
212
221
|
// With no marks there is no telling a held answer from a call, so the phrase is not asked for (ruling 592's skip).
|
|
213
222
|
if (built && marks?.length && batchUseKindDefect(params?.batch?.useKind))
|
|
214
223
|
defects.push(`knockoutframe_use_kind: ${batchUseKindDefect(params?.batch?.useKind)}`);
|
|
@@ -249,7 +258,11 @@ export function acceptKnockoutFrame(params) {
|
|
|
249
258
|
if (collisions.length)
|
|
250
259
|
defects.push(`knockoutframe_key_collision: marks ${collisions.map(([a, b]) => `"${a}"/"${b}"`).join(", ")} collide to the same research key — a batch cannot carry two marks that differ only in spacing, punctuation or case, because they would share ONE research payload and one of them would be rated on the other's evidence. Reword or drop one`);
|
|
251
260
|
|
|
252
|
-
|
|
261
|
+
// A FRESH PLAN STATES EVERY NAME'S GROUP (design, 2026-11-24). A saved answer that left them out is rated one name at a
|
|
262
|
+
// time, as it was when it ran; groups it does carry are still checked.
|
|
263
|
+
if (!saved && familiesMissingDefect(params?.batch?.families)) {
|
|
264
|
+
defects.push(`knockoutframe_families: ${familiesMissingDefect(params?.batch?.families)}`);
|
|
265
|
+
} else if (params?.batch?.families != null && marks.every((m) => str(m?.name))) { // an unnamed mark is reported once, above
|
|
253
266
|
const familiesRefused = familiesDefect(marks, params.batch.families);
|
|
254
267
|
if (familiesRefused) defects.push(`knockoutframe_families: ${familiesRefused}`);
|
|
255
268
|
}
|
|
@@ -312,9 +325,8 @@ export function useNotInRequest(plan, text) {
|
|
|
312
325
|
*/
|
|
313
326
|
function frameRefusal(defects) {
|
|
314
327
|
return `knockoutframe_refused: ${defects.length} defects in this call, every one of them below. `
|
|
315
|
-
+
|
|
316
|
-
+
|
|
317
|
-
+ `so send that mark whole.\n${defects.map((d, i) => `${i + 1}. ${d}`).join("\n")}`;
|
|
328
|
+
+ `Fix them all in the next call — correcting one leaves the rest, and the driver refuses again. ${FRAME_REPAIR_RULE}`
|
|
329
|
+
+ `\n${defects.map((d, i) => `${i + 1}. ${d}`).join("\n")}`;
|
|
318
330
|
}
|
|
319
331
|
|
|
320
332
|
/**
|
|
@@ -331,8 +343,10 @@ function frameRefusal(defects) {
|
|
|
331
343
|
* either leaves `write_failed` on the verdict rather than a partial success: a run holding a plan with no
|
|
332
344
|
* note is the pre-conversion state this transport exists to end, and it must not be reachable through a
|
|
333
345
|
* half-completed write.
|
|
346
|
+
*
|
|
347
|
+
* `saved` is the replay's alone: an answer this recorder accepted on an earlier run, handed back (see acceptKnockoutFrame).
|
|
334
348
|
*/
|
|
335
|
-
export function recordKnockoutFrame(runDir, received, { now = () => new Date().toISOString() } = {}) {
|
|
349
|
+
export function recordKnockoutFrame(runDir, received, { now = () => new Date().toISOString(), saved = false } = {}) {
|
|
336
350
|
const dir = String(runDir ?? "");
|
|
337
351
|
const paths = knockoutFrameCallPaths(dir);
|
|
338
352
|
// — ONE FILE PER CALL, refusals included. This wrote a single fixed
|
|
@@ -361,7 +375,7 @@ export function recordKnockoutFrame(runDir, received, { now = () => new Date().t
|
|
|
361
375
|
}
|
|
362
376
|
|
|
363
377
|
const call = mergeKnockoutFrameCall(lastAcceptedFrame(dir), received);
|
|
364
|
-
const verdict = acceptKnockoutFrame(call);
|
|
378
|
+
const verdict = acceptKnockoutFrame(call, { saved });
|
|
365
379
|
const notInRequest = verdict.ok ? useNotInRequest(verdict.model, requestText(dir)) : [];
|
|
366
380
|
if (notInRequest.length) verdict.ok = false, verdict.reason = notInRequest.length === 1 ? notInRequest[0] : frameRefusal(notInRequest);
|
|
367
381
|
if (!verdict.ok) {
|