clearotron 0.5.1-beta.2 → 0.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +7 -7
- package/INSTALL.md +10 -10
- package/QUICKSTART.md +6 -6
- package/README.md +2 -2
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/bin/README.md +2 -2
- package/bin/clearotron.mjs +1 -1
- package/bin/connect.mjs +1 -1
- package/bin/disconnect.mjs +1 -1
- package/bin/example.mjs +2 -2
- package/bin/grant.mjs +1 -1
- package/bin/onboard.mjs +78 -23
- package/bin/start.mjs +49 -18
- package/bin/update.mjs +13 -3
- package/build-info.json +2 -2
- package/docs/DELIVERY.md +1 -1
- package/docs/PORTAL.md +1 -1
- package/docs/RELEASES.md +1 -1
- package/docs/architecture/02-architecture.md +10 -2
- package/docs/architecture/03-run-lifecycle.md +6 -2
- package/docs/architecture/04-configuration-reference.md +3 -3
- package/docs/architecture/05-config-governance.md +5 -4
- package/docs/architecture/08-development-guide.md +4 -4
- package/docs/architecture/09-security-and-data.md +1 -1
- package/{driver/skills/clearance-search/SKILL.md → docs/architecture/retired-manuals/clearance-search-spine.md} +17 -30
- package/{driver/skills/clearance-search/templates/email/generic.md → docs/architecture/retired-manuals/email-generic.md} +1 -1
- package/{driver/skills/clearance-search → docs/architecture/retired-manuals}/template-formatting.md +3 -4
- package/docs/configuration.md +1 -1
- package/docs/decisions/0002-no-dark-functionality.md +5 -0
- package/driver/CHANGELOG.md +147 -0
- package/driver/README.md +11 -1
- package/driver/accepted-order.mjs +13 -5
- package/driver/attempt-rows.mjs +64 -0
- package/driver/attributed-span.mjs +1 -1
- package/driver/authority-trees.mjs +1 -1
- package/driver/best-draft.mjs +3 -3
- package/driver/blind-frame-record.mjs +2 -2
- package/driver/cancel.mjs +3 -2
- package/driver/carry-through.mjs +2 -2
- package/driver/citation-census.json +3 -3
- package/driver/clearance-variants-record.mjs +4 -10
- package/driver/common-law-coverage-status.mjs +3 -3
- package/driver/common-law-receipts.mjs +2 -2
- package/driver/compare.mjs +1 -1
- package/driver/config-inventory.mjs +6 -79
- package/driver/consumption-ledger.mjs +2 -1
- package/driver/contract-dictation-registry.mjs +5 -0
- package/driver/contract-e3-backlog.mjs +45 -66
- package/driver/contract-e3-baseline.json +16 -16
- package/driver/contract-vocabulary.mjs +8 -6
- package/driver/corrections-feedforward.mjs +3 -1
- package/driver/coverage-form-io.mjs +7 -8
- package/driver/coverage-tool.mjs +1 -1
- package/driver/declination-tool.mjs +2 -2
- package/driver/degraded-parts.mjs +9 -9
- package/driver/demo-container.mjs +5 -4
- package/driver/deploy-live-run-guard.mjs +19 -7
- package/driver/derived-state.mjs +2 -2
- package/driver/dev-portal.mjs +2 -1
- package/driver/dispatch-record.mjs +1 -1
- package/driver/disposition-tool.mjs +2 -1
- package/driver/doubt-closure-tool.mjs +2 -2
- package/driver/driver.config.mjs +35 -724
- package/driver/e2e-rounds.mjs +3 -4
- package/driver/engine/CONTRACT.md +3 -0
- package/driver/engine/README.md +2 -0
- package/driver/engine/anthropic-agent.mjs +8 -37
- package/driver/engine/auth.mjs +74 -0
- package/driver/engine/child-record.mjs +1 -1
- package/driver/engine/deny-authority-write.mjs +2 -2
- package/driver/engine/jx-turn.mjs +10 -2
- package/driver/engine/mcp/README.md +1 -1
- package/driver/engine/mcp/band-server.mjs +6 -6
- package/driver/engine/mcp/codex-config.mjs +1 -1
- package/driver/engine/mcp/declination-server.mjs +2 -3
- package/driver/engine/mcp/dispositions-server.mjs +3 -3
- package/driver/engine/mcp/gather-config.mjs +24 -19
- package/driver/engine/mcp/grid-provenance.mjs +1 -1
- package/driver/engine/mcp/held-answers.mjs +5 -5
- package/driver/engine/mcp/perplexity-server.mjs +16 -7
- package/driver/engine/mcp/recording-server.mjs +7 -6
- package/driver/engine/mcp/register-server.mjs +29 -0
- package/driver/engine/mcp/stdio-server.mjs +5 -5
- package/driver/engine/mcp/supplemental.mjs +9 -9
- package/driver/engine/openai-agent.mjs +5 -2
- package/driver/engine/registry.mjs +103 -0
- package/driver/engine/run-choices.mjs +162 -0
- package/driver/engine/stamps.mjs +35 -0
- package/driver/enqueue-schema.mjs +4 -4
- package/driver/envelope-settle.mjs +3 -2
- package/driver/feedback-issues.mjs +1 -1
- package/driver/feedback-mint.mjs +3 -2
- package/driver/feedback-store.mjs +3 -2
- package/driver/findings-model.mjs +1 -1
- package/driver/flag-snapshot.mjs +5 -4
- package/driver/floor-duty.mjs +3 -3
- package/driver/foreign-record-links.mjs +1 -1
- package/driver/frame-diff-record.mjs +2 -8
- package/driver/framework.mjs +1 -1
- package/driver/gate-metrics.mjs +10 -11
- package/driver/gateway.mjs +220 -839
- package/driver/goods-evidence.mjs +10 -6
- package/driver/jx-lanes.mjs +3 -3
- package/driver/jx-units.mjs +31 -37
- package/driver/jx.mjs +44 -59
- package/driver/knockout-assess-record.mjs +3 -3
- package/driver/knockout-caveats.mjs +21 -0
- package/driver/knockout-correction-record.mjs +58 -28
- package/driver/knockout-frame-record.mjs +2 -2
- package/driver/knockout-register-read.mjs +38 -21
- package/driver/knockout-register-record.mjs +5 -6
- package/driver/knockout-review-record.mjs +12 -11
- package/driver/ladder/model-gauge.mjs +88 -0
- package/driver/ladder/next-rung.mjs +296 -0
- package/driver/ladder/rescue.mjs +146 -0
- package/driver/ladder/stage-tools.mjs +57 -0
- package/driver/ladder/turn-failure.mjs +166 -0
- package/driver/log.mjs +2 -2
- package/driver/matter-frame-record.mjs +4 -4
- package/driver/methodology-witness.mjs +2 -2
- package/driver/narrative-refutation-record.mjs +145 -42
- package/driver/one-build-per-run.mjs +62 -0
- package/driver/outbox-backoff.mjs +4 -4
- package/driver/owner-screen.mjs +0 -10
- package/driver/owner-use-check.mjs +2 -28
- package/driver/package.json +1 -1
- package/driver/partial-payload-baseline.json +1 -1
- package/driver/parts-not-completed.mjs +1 -1
- package/driver/pipeline-knockout.mjs +1015 -1001
- package/driver/pipeline.mjs +511 -9265
- package/driver/placement-decisions.mjs +2 -2
- package/driver/placement-form-io.mjs +7 -9
- package/driver/placement-union.mjs +0 -6
- package/driver/plan-stability.mjs +7 -10
- package/driver/portal-acks.mjs +3 -2
- package/driver/portal-confirmation.mjs +48 -0
- package/driver/portal-families.mjs +3 -2
- package/driver/portal-local-auth.mjs +1 -2
- package/driver/portal-routes/README.md +24 -0
- package/driver/portal-routes/admin.mjs +425 -0
- package/driver/portal-routes/compose.mjs +66 -0
- package/driver/portal-routes/config.mjs +118 -0
- package/driver/portal-routes/connect.mjs +283 -0
- package/driver/portal-routes/feedback.mjs +178 -0
- package/driver/portal-routes/me.mjs +165 -0
- package/driver/portal-routes/queue.mjs +64 -0
- package/driver/portal-routes/report.mjs +106 -0
- package/driver/portal-routes/run.mjs +508 -0
- package/driver/portal-routes/runs.mjs +127 -0
- package/driver/portal-routes/usage.mjs +82 -0
- package/driver/portal-runs.mjs +588 -0
- package/driver/portal-service.mjs +78 -2592
- package/driver/portal-static.mjs +3 -1
- package/driver/predelivery-lint.mjs +92 -9
- package/driver/production-pool-guard.mjs +1 -1
- package/driver/profiles.mjs +5 -4
- package/driver/progress.mjs +29 -24
- package/driver/publish/README.md +10 -5
- package/driver/publish/archive-tags.mjs +3 -2
- package/driver/publish/demo-marking.mjs +2 -2
- package/driver/publish/index.mjs +215 -140
- package/driver/publish/knockout.mjs +153 -107
- package/driver/publish/office-record-links.mjs +22 -0
- package/driver/publish/parse.mjs +20 -5
- package/driver/publish/pool-admin.mjs +9 -3
- package/driver/publish/render.mjs +11 -3
- package/driver/publish/report-dates.mjs +3 -4
- package/driver/publish/report-registry.mjs +7 -10
- package/driver/publish/seed-pool.mjs +3 -2
- package/driver/publish/shell.mjs +106 -0
- package/driver/publish/templates/report.css +3 -1
- package/driver/queue-order.mjs +4 -3
- package/driver/record-carry.mjs +0 -9
- package/driver/record-discard.mjs +1 -4
- package/driver/record-fold.mjs +3 -3
- package/driver/record-goods.mjs +5 -5
- package/driver/reference-score.mjs +2 -3
- package/driver/register-capabilities.mjs +0 -6
- package/driver/register-count.mjs +3 -2
- package/driver/register-digest-record.mjs +7 -7
- package/driver/register-fixture-marker.mjs +3 -3
- package/driver/register-plan.mjs +2 -2
- package/driver/register-records.mjs +2 -2
- package/driver/register-taint.mjs +3 -3
- package/driver/register-unit-record.mjs +48 -9
- package/driver/register-unreachable.mjs +4 -3
- package/driver/registry-fidelity.mjs +79 -34
- package/driver/repair-composers.mjs +14 -9
- package/driver/repair-digest.mjs +4 -6
- package/driver/repair-scope.mjs +3 -3
- package/driver/repair-targets.mjs +24 -9
- package/driver/repairs.mjs +44 -58
- package/driver/replay-archive.mjs +7 -7
- package/driver/report-card-record.mjs +3 -3
- package/driver/report-overview-record.mjs +4 -4
- package/driver/research-answers.mjs +38 -6
- package/driver/research-checks.mjs +4 -4
- package/driver/result-noun-fields.mjs +28 -11
- package/driver/review-addresses.mjs +163 -0
- package/driver/rule-shape.mjs +1 -1
- package/driver/run-delivered.mjs +340 -0
- package/driver/run-economics.mjs +8 -26
- package/driver/run-failed.mjs +545 -0
- package/driver/run-integrity.mjs +1 -1
- package/driver/run-outcome.mjs +314 -0
- package/driver/run-park.mjs +23 -0
- package/driver/run-quote.mjs +32 -0
- package/driver/run-record.mjs +352 -0
- package/driver/run-requirements.mjs +22 -0
- package/driver/run-shell.mjs +55 -0
- package/driver/runner.mjs +71 -33
- package/driver/saved-register-pages.mjs +4 -4
- package/driver/score-redaction.mjs +2 -2
- package/driver/search-policy.mjs +12 -13
- package/driver/settle-stamp.mjs +4 -3
- package/driver/skeptic-record.mjs +2 -2
- package/driver/skeptic-search.mjs +1 -1
- package/driver/skills/README.md +7 -7
- package/driver/skills/blind-frame/SKILL.md +1 -2
- package/driver/skills/case-law-citation/SKILL.md +9 -37
- package/driver/skills/case-law-citation/sources/courtlistener.md +1 -3
- package/driver/skills/case-law-citation/sources/eurlex.md +8 -11
- package/driver/skills/case-law-citation/sources/legaldatahunter.md +1 -1
- package/driver/skills/clearance-common-law/SKILL.md +45 -111
- package/driver/skills/clearance-common-law/perplexity-prompts.md +7 -79
- package/driver/skills/clearance-register/SKILL.md +15 -33
- package/driver/skills/clearance-register/digest.md +31 -92
- package/driver/skills/clearance-register/providers/clarivate.md +2 -2
- package/driver/skills/clearance-register/providers/corsearch.md +5 -5
- package/driver/skills/clearance-register/providers/euipo.md +1 -2
- package/driver/skills/clearance-register/providers/free-tier.md +0 -19
- package/driver/skills/clearance-register/providers/signa.md +6 -25
- package/driver/skills/clearance-register/providers/uspto-local.md +0 -24
- package/driver/skills/clearance-register/register-recipes.md +8 -15
- package/driver/skills/clearance-register/status-rules.md +6 -24
- package/driver/skills/clearance-register/unit.md +11 -20
- package/driver/skills/clearance-search/delivery-contract.md +24 -120
- package/driver/skills/clearance-search/field-doctrine-pharma.md +1 -5
- package/driver/skills/clearance-search/firm-wide-reasoning.md +24 -43
- package/driver/skills/clearance-search/phase2-execution.md +29 -77
- package/driver/skills/clearance-search/report-prose.md +3 -4
- package/driver/skills/clearance-search/risk-framework-demo.md +1 -1
- package/driver/skills/clearance-search/risk-framework-triage.manifest.json +3 -3
- package/driver/skills/clearance-search/risk-framework-triage.md +7 -9
- package/driver/skills/clearance-search/risk-framework.manifest.json +1 -1
- package/driver/skills/clearance-search/risk-framework.md +1 -1
- package/driver/skills/clearance-search/synthesis-rules.md +30 -107
- package/driver/skills/clearance-search/worked-examples.md +5 -5
- package/driver/skills/clearance-variants/SKILL.md +46 -45
- package/driver/skills/clearance-variants/transliteration-scripts.md +4 -4
- package/driver/skills/frame-diff/SKILL.md +1 -1
- package/driver/skills/knockout-assess/SKILL.md +6 -14
- package/driver/skills/knockout-frame/SKILL.md +1 -1
- package/driver/skills/matter-frame/SKILL.md +7 -12
- package/driver/skills/matter-frame/watchlist-reference.md +1 -4
- package/driver/skills/narrative-refutation/SKILL.md +20 -30
- package/driver/skills/placement-inquiry/SKILL.md +8 -18
- package/driver/skills-store-provenance.mjs +1 -1
- package/driver/stage-context.mjs +32 -35
- package/driver/stage-freshness.mjs +127 -11
- package/driver/stages-knockout.mjs +49 -22
- package/driver/stages.mjs +88 -283
- package/driver/status-snapshot.mjs +2 -1
- package/driver/steps/correction-cycle.mjs +311 -0
- package/driver/steps/corrections.mjs +644 -0
- package/driver/steps/delivery.mjs +1287 -0
- package/driver/steps/frame-comparison.mjs +922 -0
- package/driver/steps/intake.mjs +84 -0
- package/driver/steps/open-run.mjs +419 -0
- package/driver/steps/overview-and-cards.mjs +899 -0
- package/driver/steps/placement-and-digest.mjs +23 -0
- package/driver/steps/register-sweep.mjs +1563 -0
- package/driver/steps/skeptic-and-follow-up.mjs +831 -0
- package/driver/steps/synthesis.mjs +261 -0
- package/driver/steps/verdict-gate.mjs +968 -0
- package/driver/suite-census.json +403 -91
- package/driver/surface-exit-verdict.mjs +0 -8
- package/driver/synthesis-record.mjs +72 -6
- package/driver/terminal-clamp.mjs +10 -0
- package/driver/tokens.mjs +8 -62
- package/driver/tool-calls.mjs +2 -2
- package/driver/unit-state-verdict.mjs +1 -1
- package/driver/usage-ledger.mjs +2 -1
- package/driver/verify-knockout.mjs +20 -35
- package/driver/verify.mjs +47 -36
- package/driver/web-grid.mjs +3 -4
- package/driver/whatif-memo-run.mjs +2 -2
- package/driver/whatif-queue.mjs +4 -3
- package/driver/withheld-families.mjs +14 -15
- package/driver/worker-heartbeat.mjs +3 -2
- package/driver/write-up-form.mjs +0 -3
- package/mcp-server/CHANGELOG.md +8 -0
- package/mcp-server/http-server.mjs +1 -1
- package/mcp-server/lib/brief.mjs +22 -4
- package/mcp-server/lib/events.mjs +2 -2
- package/mcp-server/lib/evidence.mjs +3 -2
- package/mcp-server/lib/findings.mjs +2 -1
- package/mcp-server/lib/knockout.mjs +9 -10
- package/mcp-server/lib/ops.mjs +9 -9
- package/mcp-server/lib/runs.mjs +9 -10
- package/mcp-server/lib/trace.mjs +1 -1
- package/mcp-server/lib/whatif.mjs +2 -3
- package/mcp-server/package.json +1 -1
- package/mcp-server/server.mjs +5 -5
- package/package.json +2 -1
- package/portal-ui/dist/assets/{index-fPqAU0sx.js → index-D5rkCjDc.js} +26 -14
- package/portal-ui/dist/index.html +1 -1
- package/portal-ui/package.json +3 -3
- package/providers/README.md +1 -1
- package/providers/_shared/answer-memory.mjs +4 -5
- package/providers/_shared/execute-plan.mjs +48 -1
- package/providers/_shared/records-from-search.mjs +46 -0
- package/providers/clarivate/README.md +2 -2
- package/providers/clarivate/src/adapter.js +147 -0
- package/providers/clarivate/src/core.js +1 -14
- package/{driver/engine/mcp/clarivate-server.mjs → providers/clarivate/src/mount.js} +5 -10
- package/providers/corsearch/README.md +3 -3
- package/providers/corsearch/src/adapter.js +80 -0
- package/providers/corsearch/src/core.js +14 -11
- package/{driver/engine/mcp/corsearch-server.mjs → providers/corsearch/src/mount.js} +5 -10
- package/providers/euipo/README.md +2 -2
- package/providers/euipo/src/adapter.js +85 -0
- package/providers/euipo/src/core.js +1 -1
- package/providers/euipo/src/euipo-client.js +1 -2
- package/{driver/engine/mcp/euipo-server.mjs → providers/euipo/src/mount.js} +5 -10
- package/providers/free-tier/README.md +2 -2
- package/providers/free-tier/src/adapter.js +127 -0
- package/{driver/engine/mcp/free-tier-server.mjs → providers/free-tier/src/mount.js} +5 -10
- package/providers/jx-subclass/coverage.mjs +1 -6
- package/providers/jx-subclass/score-truth.mjs +2 -1
- package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/providers/perplexity/src/core.js +2 -2
- package/providers/signa/README.md +2 -2
- package/providers/signa/src/adapter.js +157 -0
- package/providers/signa/src/capabilities.js +0 -3
- package/providers/signa/src/core.js +2 -2
- package/{driver/engine/mcp/signa-server.mjs → providers/signa/src/mount.js} +7 -12
- package/providers/signa/src/offices.generated.js +17 -15
- package/providers/uspto-local/README.md +1 -1
- package/providers/uspto-local/bin/verify-index.mjs +1 -1
- package/providers/uspto-local/src/adapter.js +75 -0
- package/{driver/engine/mcp/uspto-local-server.mjs → providers/uspto-local/src/mount.js} +5 -10
- package/scripts/band-shape-probe.mjs +2 -2
- package/scripts/citation-line-check.mjs +7 -7
- package/scripts/compare.mjs +1 -1
- package/scripts/dead-names.mjs +2 -2
- package/scripts/e2e-first-time.mjs +19 -7
- package/scripts/e2e.mjs +13 -13
- package/scripts/engine-probe.mjs +1 -1
- package/scripts/env-audit.mjs +7 -4
- package/scripts/env-classify.mjs +5 -1
- package/scripts/feedback-mint.mjs +1 -1
- package/scripts/freeze-example-run.mjs +7 -7
- package/scripts/mint-suite-census.mjs +2 -2
- package/scripts/nightly-notice.mjs +1 -1
- package/scripts/release-cut-decision.mjs +7 -2
- package/scripts/release-note-required.mjs +26 -9
- package/scripts/release-notes-lint.mjs +3 -2
- package/scripts/release-version-pr-checks.mjs +1 -1
- package/scripts/settings-render-check.mjs +23 -3
- package/scripts/test-run.mjs +5 -5
- package/scripts/travelling-predicates.mjs +1 -1
- package/scripts/undeclared-field-census.mjs +1 -1
- package/scripts/unexecuted-asserts.mjs +1 -1
- package/scripts/verify-publishable.mjs +1 -1
- package/shared/client-door.mjs +1 -1
- package/shared/connect-clients.mjs +1 -1
- package/shared/connector-signin-probe.mjs +1 -1
- package/shared/env-aliases.mjs +1 -1
- package/shared/invocation.mjs +14 -2
- package/shared/names-in-force.mjs +2 -0
- package/shared/register-selection.mjs +2 -2
- package/shared/store-in-repo.mjs +3 -3
- package/shared/summary-blocks.mjs +0 -3
- package/shared/trigger-lane.mjs +1 -1
- package/shared/vacuous-pass.mjs +2 -2
- package/shared/verb-shim.mjs +4 -2
- package/node_modules/exceljs/README.md +0 -3023
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
2
|
// Copyright 2026 Cordillera Sàrl. Additional terms under section 7 of the AGPL-3.0 apply — see ADDITIONAL-TERMS.md
|
|
4
|
-
//
|
|
3
|
+
// The signa register's tools, as driver/engine/mcp/register-server.mjs mounts them, wrapping its CORE (pure node+fetch) so a `claude -p` process can
|
|
5
4
|
// call the register-search tools off-gateway. Pure glue: the core owns all logic. Auth = SIGNA_API_KEY
|
|
6
5
|
// (Bearer token); base = SIGNA_BASE_URL || the core's DEFAULT_BASE. Telemetry: the core writes
|
|
7
6
|
// CLEAROTRON_REGISTER_CALL_LOG / CLEAROTRON_REGISTER_RECORD_LOG (the SHARED register ledger — one provider
|
|
8
7
|
// runs at a time; took this vendor's name off it)
|
|
9
8
|
// keyed by the GATEWAY session key (tctx.sessionKey) — we thread the run's session key via
|
|
10
9
|
// CLEAROTRON_GATHER_SESSION_KEY so the $0 provider-usage diff still attributes calls to the run.
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { doSearch, doRecordFetch, doEnumerate, doExecutePlan, DEFAULT_BASE } from "../../../providers/signa/src/core.js";
|
|
15
|
-
import { proposeSupplemental } from "./supplemental.mjs";
|
|
16
|
-
import { narrowingFields } from "./proposal-fields.mjs";
|
|
17
|
-
import { CAPABILITIES } from "../../../providers/signa/src/capabilities.js";
|
|
10
|
+
import { sendUntilFromEnv } from "../../_shared/send-until.mjs";
|
|
11
|
+
import { doSearch, doRecordFetch, doEnumerate, doExecutePlan, DEFAULT_BASE } from "./core.js";
|
|
12
|
+
import { CAPABILITIES } from "./capabilities.js";
|
|
18
13
|
|
|
19
14
|
const API_KEY = process.env.SIGNA_API_KEY || "";
|
|
20
15
|
const BASE = process.env.SIGNA_BASE_URL || DEFAULT_BASE;
|
|
@@ -31,8 +26,8 @@ const guard = (fn) => async (args) => {
|
|
|
31
26
|
return passthrough(await fn(args));
|
|
32
27
|
};
|
|
33
28
|
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
export const mount = ({ proposeSupplemental, narrowingFields }) => ({
|
|
30
|
+
version: "0.1.0",
|
|
36
31
|
tools: [
|
|
37
32
|
{
|
|
38
33
|
name: "register_search",
|
|
@@ -96,7 +91,7 @@ serve({
|
|
|
96
91
|
},
|
|
97
92
|
{
|
|
98
93
|
name: "register_propose_supplemental",
|
|
99
|
-
description: "PROPOSE judgment-addition register queries; CODE executes them and writes the band (the supplemental lane — you never run register coverage by hand and never author band blocks). Each proposal: {predicate: exact|default|wildcard|phonetic|owner, term OR terms[] (OR-stack, split anything wider than the plan bound), romanization, owner? (a mark-text proposal may add an owner SCOPE FIELD — the owner×term intersection, which composes in ONE request here), nice_classes (REQUIRED — an unscoped sweep is rejected), rationale?, term_literal?}. Terms must be MARK-SHAPED and agree with the predicate: an anchored `*` needs predicate:wildcard, and a label/prose string is rejected — supply the mark terms it stands for. THIS SOURCE HONOURS ALL FIVE PREDICATES, predicate:phonetic included — it is a native ranked strategy here, and `phonemeExpansion: false` in the contract withholds only the client-supplied VARIANT PREVIEW, which this tool never sends. TWO SHAPES IT CANNOT SERVE, and both DEFER rather than degrade: an INFIX wildcard (`*foo*`), where the prefix and suffix anchors are served and the infix pattern has no operator — `contains` would appear to serve it and would in fact search the asterisks; and predicate:default on a term under 3 characters, which the vendor refuses outright (HTTP 400 — loud, never a narrower set). A NON-LATIN term is fine here and is sent AS ITSELF — this index holds the characters
|
|
94
|
+
description: "PROPOSE judgment-addition register queries; CODE executes them and writes the band (the supplemental lane — you never run register coverage by hand and never author band blocks). Each proposal: {predicate: exact|default|wildcard|phonetic|owner, term OR terms[] (OR-stack, split anything wider than the plan bound), romanization, owner? (a mark-text proposal may add an owner SCOPE FIELD — the owner×term intersection, which composes in ONE request here), nice_classes (REQUIRED — an unscoped sweep is rejected), rationale?, term_literal?}. Terms must be MARK-SHAPED and agree with the predicate: an anchored `*` needs predicate:wildcard, and a label/prose string is rejected — supply the mark terms it stands for. THIS SOURCE HONOURS ALL FIVE PREDICATES, predicate:phonetic included — it is a native ranked strategy here, and `phonemeExpansion: false` in the contract withholds only the client-supplied VARIANT PREVIEW, which this tool never sends. TWO SHAPES IT CANNOT SERVE, and both DEFER rather than degrade: an INFIX wildcard (`*foo*`), where the prefix and suffix anchors are served and the infix pattern has no operator — `contains` would appear to serve it and would in fact search the asterisks; and predicate:default on a term under 3 characters, which the vendor refuses outright (HTTP 400 — loud, never a narrower set). A NON-LATIN term is fine here and is sent AS ITSELF — this index holds the characters, so a romanisation is never substituted. An owner term is a TEXT MATCH, not an entity identifier: it WIDENS on a shorter string rather than failing to match, so an owner slice reads as 'marks whose owner name contains this', never as one entity's portfolio. The tool mints each proposal as a qid'd supplemental plan entry (deterministic qid), executes them through the same deterministic executor as the dictated plan, MERGES the results into the band at output_path, and returns per-qid results: {state, total_hits, count, term_counts?, reason?, records_preview[≤25]}. Iterate freely: propose → read counts → propose narrower; a count that comes back UNKNOWN is this vendor's 10000 saturation marker, which is neither a zero nor a total. A crowd result (state:incomplete) is a descriptor for judgment — never a clean.",
|
|
100
95
|
inputSchema: { type: "object", required: ["axis", "output_path", "proposals"], properties: {
|
|
101
96
|
axis: { type: "string", description: "The register axis these supplementals belong to (e.g. primary-sweep)" },
|
|
102
97
|
output_path: { type: "string", description: "Absolute path of the named band to merge into (register-units/<axis>-band.json)" },
|
|
@@ -9,23 +9,25 @@
|
|
|
9
9
|
// `status` is load-bearing: providers/signa/src/capabilities.js covers only the `live` ones. An office
|
|
10
10
|
// that stops being live leaves the covered set on the next sync, and this diff is where that is seen.
|
|
11
11
|
//
|
|
12
|
-
// Fetched: 2026-11-
|
|
12
|
+
// Fetched: 2026-11-09T17:08:09.676Z
|
|
13
13
|
export const SIGNA_OFFICE_SNAPSHOT = Object.freeze({
|
|
14
|
-
fetched_at: "2026-11-
|
|
14
|
+
fetched_at: "2026-11-09T17:08:09.676Z",
|
|
15
15
|
source: "https://api.signa.so/v1/offices",
|
|
16
16
|
offices: Object.freeze([
|
|
17
|
-
Object.freeze({"key":"
|
|
18
|
-
Object.freeze({"key":"
|
|
19
|
-
Object.freeze({"key":"
|
|
20
|
-
Object.freeze({"key":"
|
|
21
|
-
Object.freeze({"key":"
|
|
22
|
-
Object.freeze({"key":"
|
|
23
|
-
Object.freeze({"key":"
|
|
24
|
-
Object.freeze({"key":"
|
|
25
|
-
Object.freeze({"key":"
|
|
26
|
-
Object.freeze({"key":"
|
|
27
|
-
Object.freeze({"key":"
|
|
28
|
-
Object.freeze({"key":"
|
|
29
|
-
Object.freeze({"key":"
|
|
17
|
+
Object.freeze({"key":"br","code":"BR","jurisdiction":"BR","name":"National Institute of Industrial Property","status":"live","update_cadence":"weekly","total_marks":6686649,"last_synced_at":"2026-11-04T04:21:57.157Z","coverage":null}),
|
|
18
|
+
Object.freeze({"key":"cipo","code":"CA","jurisdiction":"CA","name":"Canadian Intellectual Property Office","status":"live","update_cadence":"weekly","total_marks":2196014,"last_synced_at":"2026-11-04T18:43:07.941Z","coverage":null}),
|
|
19
|
+
Object.freeze({"key":"es","code":"ES","jurisdiction":"ES","name":"Spanish Patent and Trademark Office","status":"live","update_cadence":"daily","total_marks":3805848,"last_synced_at":"2026-11-09T10:48:06.509Z","coverage":null}),
|
|
20
|
+
Object.freeze({"key":"euipo","code":"EM","jurisdiction":"EU","name":"European Union Intellectual Property Office","status":"live","update_cadence":"daily","total_marks":3268001,"last_synced_at":"2026-11-09T07:04:23.387Z","coverage":null}),
|
|
21
|
+
Object.freeze({"key":"inpi-fr","code":"FR","jurisdiction":"FR","name":"National Institute of Industrial Property (France)","status":"live","update_cadence":"weekly","total_marks":3540704,"last_synced_at":"2026-11-06T05:10:55.024Z","coverage":null}),
|
|
22
|
+
Object.freeze({"key":"ipau","code":"AU","jurisdiction":"AU","name":"IP Australia","status":"live","update_cadence":"daily","total_marks":2340293,"last_synced_at":"2026-11-06T21:14:47.784Z","coverage":null}),
|
|
23
|
+
Object.freeze({"key":"ipi","code":"CH","jurisdiction":"CH","name":"Swiss Federal Institute of Intellectual Property","status":"live","update_cadence":"daily","total_marks":1151487,"last_synced_at":"2026-11-09T15:01:41.616Z","coverage":null}),
|
|
24
|
+
Object.freeze({"key":"ipos","code":"SG","jurisdiction":"SG","name":"Intellectual Property Office of Singapore","status":"live","update_cadence":"daily","total_marks":882719,"last_synced_at":"2026-11-09T04:15:37.737Z","coverage":null}),
|
|
25
|
+
Object.freeze({"key":"it","code":"IT","jurisdiction":"IT","name":"Italian Patent and Trademark Office","status":"live","update_cadence":"daily","total_marks":1412133,"last_synced_at":"2026-11-07T15:17:14.632Z","coverage":null}),
|
|
26
|
+
Object.freeze({"key":"mx","code":"MX","jurisdiction":"MX","name":"Mexican Institute of Industrial Property","status":"live","update_cadence":"daily","total_marks":3827605,"last_synced_at":"2026-11-09T14:27:04.821Z","coverage":null}),
|
|
27
|
+
Object.freeze({"key":"nipo","code":"NO","jurisdiction":"NO","name":"Norwegian Industrial Property Office","status":"live","update_cadence":"daily","total_marks":580219,"last_synced_at":"2026-11-09T04:17:01.000Z","coverage":null}),
|
|
28
|
+
Object.freeze({"key":"prv","code":"SE","jurisdiction":"SE","name":"Swedish Intellectual Property Office","status":"live","update_cadence":"daily","total_marks":612368,"last_synced_at":"2026-11-09T06:15:14.253Z","coverage":null}),
|
|
29
|
+
Object.freeze({"key":"ukipo","code":"GB","jurisdiction":"GB","name":"UK Intellectual Property Office","status":"live","update_cadence":"daily","total_marks":3689256,"last_synced_at":"2026-11-09T03:33:30.676Z","coverage":null}),
|
|
30
|
+
Object.freeze({"key":"uspto","code":"US","jurisdiction":"US","name":"United States Patent and Trademark Office","status":"live","update_cadence":"daily","total_marks":14417219,"last_synced_at":"2026-11-09T13:07:06.310Z","coverage":null}),
|
|
31
|
+
Object.freeze({"key":"wipo","code":"WO","jurisdiction":"WO","name":"World Intellectual Property Organization","status":"live","update_cadence":"weekly","total_marks":16158125,"last_synced_at":"2026-11-06T15:50:37.634Z","coverage":null}),
|
|
30
32
|
]),
|
|
31
33
|
});
|
|
@@ -170,7 +170,7 @@ refuses on the same principle when the index is stale (two clocks, `FRESHNESS_HO
|
|
|
170
170
|
|
|
171
171
|
- `../../driver/driver.config.mjs` — the `uspto-local` entry, lazily importing `src/core.js`; its
|
|
172
172
|
`credEnv` is `USPTO_LOCAL_DB`, a path rather than a key.
|
|
173
|
-
-
|
|
173
|
+
- `src/mount.js` — six of the eight neutral `register_*` tools.
|
|
174
174
|
`register_image_fetch` and `register_expand_phoneme` are absent: the bulk product is text, and
|
|
175
175
|
`predicates.phonetic` is `null`, so a phonetic slice defers and is disclosed.
|
|
176
176
|
- `../../driver/register-capabilities.mjs` — imports `src/capabilities.js` at module load, when there
|
|
@@ -159,7 +159,7 @@ if (!rec) {
|
|
|
159
159
|
line("");
|
|
160
160
|
line("Cross-check this serial against TSDR by hand before anyone calls the record CORRECT. The index");
|
|
161
161
|
line("agreeing with itself is not evidence that it agrees with the register — and the five questions");
|
|
162
|
-
line("
|
|
162
|
+
line("that need real data (response body shape, ownerCountry, the status date, the true");
|
|
163
163
|
line("delta cadence, nativeScriptIndex) are settled by reading records, not by counting them.");
|
|
164
164
|
}
|
|
165
165
|
db.close();
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-only
|
|
2
|
+
// Copyright 2026 Cordillera Sàrl. Additional terms under section 7 of the AGPL-3.0 apply — see ADDITIONAL-TERMS.md
|
|
3
|
+
// The uspto-local register's driver-side adapter: what the driver itself asks this register, with no model in the path.
|
|
4
|
+
// `driver.config.mjs` lists it in PROVIDERS. The core is imported only when a call needs it.
|
|
5
|
+
import { recordsFromSearch } from "../../_shared/records-from-search.mjs";
|
|
6
|
+
|
|
7
|
+
export const adapter = {
|
|
8
|
+
id: "uspto-local",
|
|
9
|
+
label: "USPTO (local index)",
|
|
10
|
+
credEnv: "USPTO_LOCAL_DB",
|
|
11
|
+
skillDoc: "skills/clearance-register/providers/uspto-local.md",
|
|
12
|
+
hasPublicRecordUrl: true,
|
|
13
|
+
// TSDR publishes a page per serial, so a finding can cite an address the reader can open. The
|
|
14
|
+
// record ref is /mark/us/<serial>, and the core builds the full statusSearch link on the record.
|
|
15
|
+
publicRecordOrigin: "https://tsdr.uspto.gov",
|
|
16
|
+
async recordFetch(uri, { agentId, sessionKey, recordLog = null }) {
|
|
17
|
+
if (!process.env.USPTO_LOCAL_DB) return { ok: false, cause: "USPTO_LOCAL_DB absent from driver env" };
|
|
18
|
+
let doRecordFetch;
|
|
19
|
+
try { ({ doRecordFetch } = await import("./core.js")); }
|
|
20
|
+
catch (e) { return { ok: false, cause: `plugin core unavailable: ${e.message}` }; }
|
|
21
|
+
try {
|
|
22
|
+
const r = await doRecordFetch({ dbPath: process.env.USPTO_LOCAL_DB },
|
|
23
|
+
{ record_id: uri }, { kind: "record_fetch", agentId, sessionKey, sessionId: null, recordLog });
|
|
24
|
+
const err = typeof r?.text === "string" && r.text.startsWith("ERROR") ? r.text : null;
|
|
25
|
+
return err ? { ok: false, cause: err.slice(0, 140) } : { ok: true };
|
|
26
|
+
} catch (e) { return { ok: false, cause: `fetch threw: ${e.message}` }; }
|
|
27
|
+
},
|
|
28
|
+
// Depth 2's count. A true count-only call — `SELECT count(*)` fetches no rows and works at any
|
|
29
|
+
// magnitude — but see the freshness note above: this is also the seam where a stale index refuses.
|
|
30
|
+
async countHits({ name, matchMode, classes, regions }, { agentId, sessionKey, recordLog = null }) {
|
|
31
|
+
if (!process.env.USPTO_LOCAL_DB) return { ok: false, total: null, reason: "USPTO_LOCAL_DB absent from driver env" };
|
|
32
|
+
let doCountHits;
|
|
33
|
+
try { ({ doCountHits } = await import("./core.js")); }
|
|
34
|
+
catch (e) { return { ok: false, total: null, reason: `plugin core unavailable: ${e.message}` }; }
|
|
35
|
+
try {
|
|
36
|
+
// `regions` is accepted and NOT forwarded: this source holds one office, and the plan resolved
|
|
37
|
+
// its territorial scope against capabilities.offices.covered before ever reaching here — a
|
|
38
|
+
// jurisdiction other than US is already a deferred gap upstream. Forwarding it would let a
|
|
39
|
+
// caller believe it had narrowed a search that has nothing to narrow.
|
|
40
|
+
return await doCountHits({ dbPath: process.env.USPTO_LOCAL_DB },
|
|
41
|
+
{ name, match_mode: matchMode, nice_classes: classes ?? [] },
|
|
42
|
+
{ kind: "count_hits", agentId, sessionKey, sessionId: null, recordLog });
|
|
43
|
+
} catch (e) { return { ok: false, total: null, reason: `count threw: ${e.message}` }; }
|
|
44
|
+
},
|
|
45
|
+
// part 5. Free — a local SQLite read. `regions` is accepted and NOT forwarded for the same
|
|
46
|
+
// reason the count above does not forward it: this source holds one office.
|
|
47
|
+
async listRecords({ name, matchMode, classes, limit }, { agentId, sessionKey, recordLog = null }) {
|
|
48
|
+
if (!process.env.USPTO_LOCAL_DB) return { ok: false, records: null, reason: "USPTO_LOCAL_DB absent from driver env" };
|
|
49
|
+
let doSearch;
|
|
50
|
+
try { ({ doSearch } = await import("./core.js")); }
|
|
51
|
+
catch (e) { return { ok: false, records: null, reason: `plugin core unavailable: ${e.message}` }; }
|
|
52
|
+
return recordsFromSearch(
|
|
53
|
+
(p, t) => doSearch({ dbPath: process.env.USPTO_LOCAL_DB }, p, t),
|
|
54
|
+
{ origin: "https://tsdr.uspto.gov" },
|
|
55
|
+
)({ name, match_mode: matchMode, nice_classes: classes ?? [], limit },
|
|
56
|
+
{ kind: "record_list", agentId, sessionKey, sessionId: null, recordLog });
|
|
57
|
+
},
|
|
58
|
+
// The repair-first plan-direct-execute lane. Without it this provider would fall back to the LLM
|
|
59
|
+
// followup at the fan-in gate — a model turn doing what code does deterministically.
|
|
60
|
+
async executePlan({ planPath, axis, outputPath, qids }, { agentId, sessionKey, recordLog = null, reaskTimedOut = false }) {
|
|
61
|
+
if (!process.env.USPTO_LOCAL_DB) return { ok: false, cause: "USPTO_LOCAL_DB absent from driver env" };
|
|
62
|
+
let doExecutePlan;
|
|
63
|
+
try { ({ doExecutePlan } = await import("./core.js")); }
|
|
64
|
+
catch (e) { return { ok: false, cause: `plugin core unavailable: ${e.message}` }; }
|
|
65
|
+
try {
|
|
66
|
+
const r = await doExecutePlan({ dbPath: process.env.USPTO_LOCAL_DB },
|
|
67
|
+
{ plan_path: planPath, axis, output_path: outputPath, ...(Array.isArray(qids) && qids.length ? { qids } : {}) },
|
|
68
|
+
{ kind: "execute_plan", agentId, sessionKey, sessionId: null, recordLog, ...(reaskTimedOut ? { reaskTimedOut: true } : {}) });
|
|
69
|
+
const text = typeof r?.text === "string" ? r.text : "";
|
|
70
|
+
if (text.startsWith("ERROR")) return { ok: false, cause: text.slice(0, 200) };
|
|
71
|
+
try { const summary = JSON.parse(text); return { ok: true, states: summary.states ?? {}, executed: summary.executed, skipped: summary.skipped ?? [] }; }
|
|
72
|
+
catch { return { ok: false, cause: `unparseable execute_plan summary: ${text.slice(0, 120)}` }; }
|
|
73
|
+
} catch (e) { return { ok: false, cause: `execute_plan threw: ${e.message}` }; }
|
|
74
|
+
},
|
|
75
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
1
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
3
2
|
// Copyright 2026 Cordillera Sàrl. Additional terms under section 7 of the AGPL-3.0 apply — see ADDITIONAL-TERMS.md
|
|
4
|
-
//
|
|
3
|
+
// The uspto-local register's tools, as driver/engine/mcp/register-server.mjs mounts them, wrapping its CORE (node:sqlite, no network) so a `claude -p`
|
|
5
4
|
// process can call the register-search tools off-gateway. Pure glue: the core owns all logic.
|
|
6
5
|
//
|
|
7
6
|
// ── THERE IS NO CREDENTIAL, AND THAT IS THE INTERESTING PART ──────────────────────────────────────
|
|
@@ -31,14 +30,10 @@
|
|
|
31
30
|
// it never quietly degrades into a weaker query wearing the right tool's name. The absence is made
|
|
32
31
|
// visible where a spawn and a reviewer each actually look — the tool list here, the REGISTER_SERVERS
|
|
33
32
|
// filter in gather-config.mjs, and the exact-six pin in driver/test/engine.gather.test.mjs.
|
|
34
|
-
import {
|
|
35
|
-
import { sendUntilFromEnv } from "../../../providers/_shared/send-until.mjs";
|
|
36
|
-
import { crowdNoteFor } from "./crowd-note.mjs"; // how the unit decides on a crowd, beside an answer that carries one
|
|
33
|
+
import { sendUntilFromEnv } from "../../_shared/send-until.mjs";
|
|
37
34
|
import {
|
|
38
35
|
CAPABILITIES, DEFAULT_DB_ENV, doSearch, doRecordFetch, doBatchScreen, doEnumerate, doExecutePlan,
|
|
39
|
-
} from "
|
|
40
|
-
import { proposeSupplemental } from "./supplemental.mjs";
|
|
41
|
-
import { narrowingFields } from "./proposal-fields.mjs";
|
|
36
|
+
} from "./core.js";
|
|
42
37
|
|
|
43
38
|
const DB_PATH = process.env[DEFAULT_DB_ENV] || "";
|
|
44
39
|
// The auth object IS the index path — see the core's header. Passed as an object rather than a bare
|
|
@@ -77,8 +72,8 @@ const QUERY_PROPS = {
|
|
|
77
72
|
status: { type: "array", items: { type: "string" }, description: "USPTO status codes; omit for all filings. Screening classifies live/dead from the row, so filtering here is rarely what you want." },
|
|
78
73
|
};
|
|
79
74
|
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
export const mount = ({ proposeSupplemental, narrowingFields }) => ({
|
|
76
|
+
version: "0.1.0",
|
|
82
77
|
tools: [
|
|
83
78
|
{
|
|
84
79
|
name: "register_search",
|
|
@@ -65,7 +65,7 @@ if (!/^\d+$/.test(String(opts.seed)) || Number(opts.seed) <= 0)
|
|
|
65
65
|
|
|
66
66
|
// ── the inputs deriveBandShape uses, read the same way it reads them ─────────────────────────────────
|
|
67
67
|
//
|
|
68
|
-
// Deliberately mirrors driver/pipeline.mjs:
|
|
68
|
+
// Deliberately mirrors driver/pipeline.mjs:450-487 mergeRegisterBands rather than inventing a gathering step. If the two
|
|
69
69
|
// diverge, this probe measures a shape the run never had.
|
|
70
70
|
|
|
71
71
|
const runDir = opts.run;
|
|
@@ -243,7 +243,7 @@ if (membershipBroken.length) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
console.log(`\n${"═".repeat(78)}`);
|
|
246
|
-
console.log(`This measures the BAND SHAPE only, and it is free. It is NOT the noise floor
|
|
246
|
+
console.log(`This measures the BAND SHAPE only, and it is free. It is NOT the noise floor.`);
|
|
247
247
|
console.log(`That floor lives in the model-authored placement tier (placement-model.mjs:46 PLACEMENT_TIERS) and needs`);
|
|
248
248
|
console.log(`repeat paid arms on a named run dir with approved spend. Nothing here substitutes for it.`);
|
|
249
249
|
console.log(`Nothing was written. Exit code is 0 either way — this records, it does not judge.\n`);
|
|
@@ -51,17 +51,17 @@ import { isEntrypoint } from "../shared/is-entrypoint.mjs"; // — one entry-p
|
|
|
51
51
|
announceWithheldMode();
|
|
52
52
|
|
|
53
53
|
export const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
54
|
-
export const GUARD = "citation-line-check
|
|
54
|
+
export const GUARD = "citation-line-check";
|
|
55
55
|
|
|
56
56
|
/** What this guard is blind to. Printed on EVERY run, clean or not. Exported so the test can pin it. */
|
|
57
57
|
export const BLINDNESS =
|
|
58
58
|
"CANNOT SEE: a citation that points at the WRONG LIVE LINE while that line is real code. Two arms "
|
|
59
|
-
+ "narrow that class and neither closes it.
|
|
60
|
-
+ "it, which is a minority of this corpus.
|
|
59
|
+
+ "narrow that class and neither closes it. One checks a citation against the SYMBOL written beside "
|
|
60
|
+
+ "it, which is a minority of this corpus. The other checks that the cited span is not entirely blank or "
|
|
61
61
|
+ "brace-only — that one needs no symbol, but it recognises only PUNCTUATION: a citation that drifted "
|
|
62
62
|
+ "onto a different REAL line reads as correct to it. Two hand measurements, both over citations this "
|
|
63
|
-
+ "script had passed — 2026-08-20
|
|
64
|
-
+ "line. 2026-08-23
|
|
63
|
+
+ "script had passed — 2026-08-20: three of ten then-ambiguous citations pointed at the wrong "
|
|
64
|
+
+ "line. 2026-08-23: of eleven repointed by hand in one contract file, THREE had landed on a "
|
|
65
65
|
+ "wrong NON-BLANK line. Cite the SYMBOL (CONTRIBUTING.md): it is both the fix and the thing that "
|
|
66
66
|
+ "makes a citation checkable at all.";
|
|
67
67
|
|
|
@@ -462,7 +462,7 @@ function main() {
|
|
|
462
462
|
|| symbolGone.length || blankTarget.length || floorBroken || ratchetBroken ? 1 : 0);
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
console.log(`citation-line-check
|
|
465
|
+
console.log(`citation-line-check - ${citations.length} line citation(s) across ${corpus.length} tracked file(s)`);
|
|
466
466
|
console.log(` ${resolved.length} resolve to a tracked file - ${overrun.length} point past its last line`);
|
|
467
467
|
console.log(` ${dangling.length} name a file that is NOT in the tree`);
|
|
468
468
|
console.log(` ${ambiguous.length} name a bare filename matching several files and are NOT declared - FAILS`);
|
|
@@ -853,7 +853,7 @@ export function constructRange(body, sym) {
|
|
|
853
853
|
// THE FIX IS INDENTATION-AWARE AND NOT "TOP-LEVEL ONLY", and the issue's criterion 1 says top-level, so
|
|
854
854
|
// the deviation is stated here rather than left for a reader to reconcile against the diff. Top-level
|
|
855
855
|
// only would have ended each span at the next column-0 declaration, which for a symbol declared INSIDE
|
|
856
|
-
// a function is the rest of the file: `isDegenerate
|
|
856
|
+
// a function is the rest of the file: `isDegenerate`, then in pipeline.mjs and now in steps/verdict-gate.mjs, would own 2,163 lines and `asOf`
|
|
857
857
|
// in publish/index.mjs 516. A span that swallows its neighbours reports nothing and reads as a pass —
|
|
858
858
|
// criterion 2's failure mode arriving as a green tick. Measured against a sibling instead:
|
|
859
859
|
//
|
package/scripts/compare.mjs
CHANGED
|
@@ -86,7 +86,7 @@ const CONFIG_PARITY = {
|
|
|
86
86
|
// Recorded as not covered, never silently absent — its own instruction.
|
|
87
87
|
const NOT_COVERED = [
|
|
88
88
|
"common law in a country that has none — Switzerland has no common-law rights system and none of the five points there, so the engine's behaviour when the grid has nothing to search is unexercised",
|
|
89
|
-
"the deliverable step — the client-format document produced at the lawyer's agent is
|
|
89
|
+
"the deliverable step — the client-format document produced at the lawyer's agent is out of scope here and no scenario reaches it",
|
|
90
90
|
"lawyer reference answers for this mark — out of scope by the issue's own wording (comparisons, not gold), so scripts/score.mjs cannot be pointed at any of the five",
|
|
91
91
|
];
|
|
92
92
|
|
package/scripts/dead-names.mjs
CHANGED
|
@@ -32,7 +32,7 @@ import { trackedFiles } from "../shared/tracked-files.mjs";
|
|
|
32
32
|
import { isEntrypoint } from "../shared/is-entrypoint.mjs"; // — one entry-point test, all spellings
|
|
33
33
|
|
|
34
34
|
export const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
35
|
-
export const GUARD = "dead-names
|
|
35
|
+
export const GUARD = "dead-names";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* The dead names, as the issue defines them. `\blore\b` is the loose arm and it is why the exemptions
|
|
@@ -97,7 +97,7 @@ function main() {
|
|
|
97
97
|
const hits = deadNameHits(corpus);
|
|
98
98
|
const payload = { files: corpus.length, hits, exemptions: EXEMPTIONS };
|
|
99
99
|
if (process.argv.includes("--json")) { console.log(JSON.stringify(payload, null, 2)); process.exit(hits.length ? 1 : 0); }
|
|
100
|
-
console.log(`dead names
|
|
100
|
+
console.log(`dead names — ${corpus.length} tracked file(s), ${hits.length} hit(s)`);
|
|
101
101
|
for (const h of hits) console.log(` ${h.file}:${h.line}\n ${h.text}`);
|
|
102
102
|
for (const e of EXEMPTIONS) console.log(`\n exempt: ${e.file}\n ${e.why}`);
|
|
103
103
|
process.exit(hits.length ? 1 : 0);
|
|
@@ -79,7 +79,7 @@ export const COUNTED_EVENTS = {
|
|
|
79
79
|
"coverage-row-not-added": FAILED, "verdict-floor-failed": FAILED,
|
|
80
80
|
"floor-duty-failed": FAILED, "frame-reopen-redigest-failed": FAILED, "goods-evidence-failed": FAILED, "placement-decisions-failed": FAILED, "placement-band-ids-failed": FAILED, "late-evidence-failed": FAILED, "band-refused-records-failed": FAILED, "verdict-write-deferred": FAILED, "ranking-read-by-writer-failed": FAILED, "audit-rebuild-failed": FAILED, "audit-build-failed": FAILED, "write-up-goods-from-failed": FAILED, "declination-goods-states-failed": FAILED, "review-exclusions-write-failed": FAILED, "house-element-ownership-failed": FAILED,
|
|
81
81
|
"intake-asks-missing": FAILED, "invalid-artifact-strikes": FAILED, "knockout-band-checks-inert": FAILED,
|
|
82
|
-
"knockout-in-use-as-unanswered": FAILED, "knockout-
|
|
82
|
+
"knockout-in-use-as-unanswered": FAILED, "knockout-method-checks-inert": FAILED,
|
|
83
83
|
"knockout-owner-checks-failed": FAILED, "knockout-register-records-failed": FAILED, "knockout-register-read-failed": FAILED, "knockout-sweep-outage": FAILED,
|
|
84
84
|
"machine-qc-failed": FAILED, "named-band-invalid": FAILED, "owner-screen-failed": FAILED, "placement-carry-failed": FAILED,
|
|
85
85
|
"plan-qids-provider-hard-error-deferred": FAILED, "predelivery-lint-failed": FAILED, "probe-over-cap-unreadable": FAILED,
|
|
@@ -107,6 +107,13 @@ export const COUNTED_EVENTS = {
|
|
|
107
107
|
"degraded-parts-failed": FAILED,
|
|
108
108
|
// A store publishing found unreadable, or one delivery read and a republish found missing: its only record.
|
|
109
109
|
"degraded-parts-at-publish": FAILED,
|
|
110
|
+
// A part publishing could not write, and the report shipped without it. A clearance's workbook is counted by its
|
|
111
|
+
// `publish-gates` row below, so only a Knockout's counts here.
|
|
112
|
+
"workbook-not-built": { kind: FAILED, when: (e) => /^knockout-audit-/.test(String(e.file ?? "")) },
|
|
113
|
+
"data-file-not-written": FAILED,
|
|
114
|
+
"staff-pages-not-refreshed": FAILED,
|
|
115
|
+
// A run started on another build that the runner would not resume: the run ends here.
|
|
116
|
+
"resume-refused": FAILED,
|
|
110
117
|
// A workbook that failed to build is recorded only here.
|
|
111
118
|
"publish-gates": { kind: FAILED, when: (e) => e.auditWorkbook === "failed" },
|
|
112
119
|
// the plain-English pass rewrote the rater's text, or failed and shipped it unrewritten
|
|
@@ -123,6 +130,8 @@ export const COUNTED_EVENTS = {
|
|
|
123
130
|
{ kind: FAILED, when: (e) => e.outcome === "repair-budget-exhausted" }],
|
|
124
131
|
"skills-store": { kind: FAILED, when: (e) => e.outcome !== "pass" },
|
|
125
132
|
"profile-store": { kind: FAILED, when: (e) => e.outcome !== "pass" },
|
|
133
|
+
// a cold start that could not record the engine and register the run belongs to
|
|
134
|
+
"run-choices": { kind: FAILED, when: (e) => e.state === "not-written" },
|
|
126
135
|
"registry-record-closure": { kind: FAILED, when: (e) => (Array.isArray(e.failed) ? e.failed.length : 0) > 0 },
|
|
127
136
|
"silently-lost-findings": { kind: FAILED, when: (e) => Number(e.lost) > 0 },
|
|
128
137
|
"correction-kinds": { kind: FAILED, when: (e) => e.ok === false },
|
|
@@ -149,6 +158,8 @@ export const COUNTED_EVENTS = {
|
|
|
149
158
|
"knockout-next-step-removed": REPAIR, "recall-reconciliation-positions-rederived": REPAIR, "registry-auto-correct": REPAIR,
|
|
150
159
|
"repair-attempted": REPAIR, "terminal-guard-clamp": REPAIR, "verdict-conditions-dropped": REPAIR, "foreign-record-links-blanked": REPAIR,
|
|
151
160
|
"no-result-without-a-completed-search-removed": REPAIR,
|
|
161
|
+
// a save sent a step whose only support was withdrawn back with no citation, and the step kept its citations
|
|
162
|
+
"step-kept-on-withdrawn-support": REPAIR,
|
|
152
163
|
"verdict-hardened-by-repair": REPAIR, "verdict-rederive-repair": REPAIR,
|
|
153
164
|
// the coverage floor read the coverage form because both of its renders were unreadable
|
|
154
165
|
"coverage-ledger-from-form": REPAIR,
|
|
@@ -164,7 +175,7 @@ export const COUNTED_EVENTS = {
|
|
|
164
175
|
"jx-entry-refused": REFUSED, "knockout-register-records-refused": REFUSED, "register-xcheck-refused": REFUSED,
|
|
165
176
|
"supplemental-fold-refused": REFUSED, "verdict-softening-not-adopted": REFUSED, "named-band-remerge-over-ceiling": REFUSED, "register-recall-refused": REFUSED,
|
|
166
177
|
"auto-recovery-exhausted": RECOVERY, "auto-recovery-parked": RECOVERY, "corrective-rollback": RECOVERY,
|
|
167
|
-
"parked-for-human": RECOVERY, "postponed": RECOVERY, "
|
|
178
|
+
"parked-for-human": RECOVERY, "postponed": RECOVERY, "taint-park": RECOVERY, "run-choices-park": RECOVERY,
|
|
168
179
|
// a covered part whose recovery was spent, parked to be delivered without (driver/parts-not-completed.mjs)
|
|
169
180
|
"part-not-completed": RECOVERY,
|
|
170
181
|
"cancelled": "cancelled", "failed": "run failed", "form-repair": "form repair turn",
|
|
@@ -189,7 +200,7 @@ export const NOT_COUNTED_EVENTS = {
|
|
|
189
200
|
"escalation-skipped", "experiment", "experiment-refused", "goods-held-whole-handed",
|
|
190
201
|
"form-neighbourhood-derived", "frame-diff",
|
|
191
202
|
"frame-diff-source-directives-dropped", "frame-reopen-reconcile-not-needed", "frame-reopen-skipped", "frame-web-grid",
|
|
192
|
-
"framework", "goods-evidence", "grid-ledger-saved", "grid-spec", "grid-split", "
|
|
203
|
+
"framework", "goods-evidence", "grid-ledger-saved", "grid-spec", "grid-split", "hit-list-minted",
|
|
193
204
|
"house-element-ownership", "intake-artifacts", "intake-asks", "jurisdiction-scope", "jurisdiction-scope-register-deferred",
|
|
194
205
|
"jx-aim-consumed", "jx-candidate-fold", "jx-nativeread",
|
|
195
206
|
"jx-serp-grid", "jx-serp-grid-overflow", "jx-serp-grid-spec", "jx-slices-stated",
|
|
@@ -222,7 +233,7 @@ export const NOT_COUNTED_EVENTS = {
|
|
|
222
233
|
"scope-facts", "scope-frontmatter", "scope-ledger-derived", "scope-ledger-skipped", "screen-gate-clean", "screen-gate-evidence",
|
|
223
234
|
"seam-reapplied", "search-policy", "searched-jurisdictions", "senior-rights", "skip",
|
|
224
235
|
"stage-contract", "stage-limit-derived", "stage-stamps-reconciled", "start", "supplemental-fold", "token-rollup",
|
|
225
|
-
"turnaround-reconciliation", "verdict", "verdict-conditions-followed", "verdict-conditions-recorded", "verdict-floors-pass", "verdict-frontmatter",
|
|
236
|
+
"turnaround-reconciliation", "unit-band-seeded-empty", "verdict", "verdict-conditions-followed", "verdict-conditions-recorded", "verdict-floors-pass", "verdict-frontmatter",
|
|
226
237
|
"verdict-recomputed-steps-withdrawn", "whatif-settled-on-archive", "write-up-forms",
|
|
227
238
|
],
|
|
228
239
|
"a note about the answer's content that changes nothing in the run; the quality read judges it": [
|
|
@@ -242,8 +253,8 @@ export const NOT_COUNTED_EVENTS = {
|
|
|
242
253
|
"corrective-answers-after", "corrective-answers-left-behind", "corrective-cycle-receipt", "corrective-cycle-settled", "corrective-findings-stale", "coverage-absence-rendered",
|
|
243
254
|
"coverage-closure", "coverage-ledger-recovered", "delivery-stale-repair", "delivery-stale-requeued", "envelope-close-rows", "escalation-noop", "floor-duty-after-repair", "writer-duty-after-repair", "writer-duty-after-correction", "guard-clause-replaced", "guard-gap-closed", "verdict-recomputed-gap-closed", "guard-clause-named-elsewhere", "audit-rebuilt", "audit-withdrawn", "record-carry-doubts-again",
|
|
244
255
|
"finding-reemit", "findings-actions-absent", "findings-schema-downlevel", "form-oracle-gap", "frame-reopen",
|
|
245
|
-
"frame-reopen-reattempt", "grid-ledger-missing", "knockout-assess-invalidated", "lint-redo-skipped", "lint-redo-skipped-structural",
|
|
246
|
-
"meaning-gap-coverage", "park-resumed", "plan-qids-sticky-gap", "recall-reconciliation-unended",
|
|
256
|
+
"frame-reopen-reattempt", "grid-ledger-missing", "knockout-assess-invalidated", "knockout-review-round-set-aside", "lint-redo-skipped", "lint-redo-skipped-structural",
|
|
257
|
+
"meaning-gap-coverage", "opening-finished-on-resume", "park-marker-unwritten", "park-resumed", "plan-qids-sticky-gap", "recall-reconciliation-unended",
|
|
247
258
|
"recovery-classified", "record-discard", "report-repair-targets", "screen-gate-unresolved", "skeptic-escalation", "stage-stale",
|
|
248
259
|
"stale-repair-entry", "taint-disclose", "unsettled-inputs", "verdict-2", "verdict-3", "verdict-recheck-file-save-refused", "verdict-recheck-unread",
|
|
249
260
|
],
|
|
@@ -309,7 +320,8 @@ export const OUTSIDE_THE_RUN = ["whatif-memo"];
|
|
|
309
320
|
const NAMES_A_FRESH_DISPATCH = new Set(["lane-wedge-retry", "stage-floor-duty-rerun"]);
|
|
310
321
|
|
|
311
322
|
// A native-language unit that did not run for a reason the design gives. Any other cause, a degraded or
|
|
312
|
-
// deferred unit, a throw or a corrupt fixture among them, is a failure.
|
|
323
|
+
// deferred unit, a throw or a corrupt fixture among them, is a failure. The first pattern is the retired
|
|
324
|
+
// per-language off switch: a run from before its retirement (2026-11-11) can still carry that cause.
|
|
313
325
|
const DESIGNED_JX_CAUSES = [/^CLEAROTRON_NATIVE_LANGUAGE_\w+ off$/, /^no frozen \S+ lane decision/, /^no SERP capability entry/,
|
|
314
326
|
/^already ran \(frozen\)$/, /^already folded \(frozen\)$/, /^no lanes in scope/, /^frozen decision has no lanes$/,
|
|
315
327
|
/^no in-scope classes/, /^no terms to dictate/];
|
package/scripts/e2e.mjs
CHANGED
|
@@ -503,7 +503,7 @@ export function lintScenarios(scenarios) {
|
|
|
503
503
|
if (Object.prototype.hasOwnProperty.call(sc.cost ?? {}, k)) {
|
|
504
504
|
dead.push(`${label}: cost.${k} = ${JSON.stringify(sc.cost[k])} is DEAD AND UNREAD — the BAND owns the`
|
|
505
505
|
+ ` benchmark (driver/turnaround-bands.mjs), derived from the pipeline the doors resolve this job to.`
|
|
506
|
-
+ ` A benchmark copied from a scenario's own expected wall can never be exceeded
|
|
506
|
+
+ ` A benchmark copied from a scenario's own expected wall can never be exceeded. Delete the key.`);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
for (const f of sc.expect?.artifacts ?? []) {
|
|
@@ -538,7 +538,7 @@ export function lintScenarios(scenarios) {
|
|
|
538
538
|
if ((sc.expect?.artifacts ?? []).includes("knockout-assessment.md") && sc.expect?.terminal === "delivered") {
|
|
539
539
|
const ops = new Set((sc.expect?.assert ?? []).map((a) => a.op));
|
|
540
540
|
for (const op of KNOCKOUT_OPS) {
|
|
541
|
-
if (!ops.has(op)) wrong.push(`${label}: a knockout deliverable must exercise ${op} — without it the lane can claim what it never examined
|
|
541
|
+
if (!ops.has(op)) wrong.push(`${label}: a knockout deliverable must exercise ${op} — without it the lane can claim what it never examined`);
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
}
|
|
@@ -597,7 +597,7 @@ function sweepStoreOrDie(scenarioId = null) {
|
|
|
597
597
|
// Printed BEFORE the refusal check and printed even when nothing is wrong: a dead key is a finding
|
|
598
598
|
// about the store, not a reason to stop, and it must not be swallowed by an exit on the line below.
|
|
599
599
|
if (lint.dead.length) {
|
|
600
|
-
process.stderr.write(`dead scenario keys — read by nothing, and the store still carries them
|
|
600
|
+
process.stderr.write(`dead scenario keys — read by nothing, and the store still carries them:\n`
|
|
601
601
|
+ lint.dead.map((w) => ` ${w}`).join("\n") + "\n");
|
|
602
602
|
}
|
|
603
603
|
const wrong = [...validateStoreJobs(scenarios), ...lint.wrong];
|
|
@@ -1825,7 +1825,7 @@ function evalAssertion(a, runDir, { names = REPORT_NAMES } = {}) {
|
|
|
1825
1825
|
const terminal = String(st.state ?? "").trim().toLowerCase();
|
|
1826
1826
|
if (terminal && terminal !== "delivered")
|
|
1827
1827
|
return { ok: true, saw: `state=${terminal} — this run never entered the delivery contract, so it is `
|
|
1828
|
-
+ `NOT ASSERTED here (
|
|
1828
|
+
+ `NOT ASSERTED here (a non-delivered terminal run owes the CLIENT no report; the failure `
|
|
1829
1829
|
+ `notification it owes its requester is covered by the outbox sweep, not by this line). This is `
|
|
1830
1830
|
+ `a scope statement, not a delivery that was checked.` };
|
|
1831
1831
|
|
|
@@ -2236,7 +2236,7 @@ export function provenanceLines(cost, today = new Date()) {
|
|
|
2236
2236
|
// An absence is a finding. A scenario asserting `measured: true` with nothing behind it is the exact
|
|
2237
2237
|
// shape filed, so it is named rather than passed over in silence.
|
|
2238
2238
|
return cost?.measured
|
|
2239
|
-
? ["measured: true — and NOTHING says where the figure came from
|
|
2239
|
+
? ["measured: true — and NOTHING says where the figure came from. Re-measure, or drop the flag."]
|
|
2240
2240
|
: [];
|
|
2241
2241
|
}
|
|
2242
2242
|
const out = [];
|
|
@@ -2673,7 +2673,7 @@ export function readMarkerTerminal(queueDir, base, suffix) {
|
|
|
2673
2673
|
return { terminal: live, started: null, undetermined: false, inFlight: true,
|
|
2674
2674
|
why: live === suffix
|
|
2675
2675
|
? "not a terminal — the job is still in the queue"
|
|
2676
|
-
: `not a terminal — ${name} is the
|
|
2676
|
+
: `not a terminal — ${name} is the claim lock, which is the .processing marker renamed while its liveness token is written; a live token is a claim in progress and a dead one is restored by sweepAbandonedTakeovers`,
|
|
2677
2677
|
runDir: null, runId: null, runIds: [], statusRead: null, terminalKind: null };
|
|
2678
2678
|
}
|
|
2679
2679
|
const rec = readRecord(join(queueDir, `${name}.result`));
|
|
@@ -2909,7 +2909,7 @@ function printPreviousRoundNotice(s) {
|
|
|
2909
2909
|
if (notice.kind === "in-flight") {
|
|
2910
2910
|
console.log(`\n⚠ previous round ${label} IS STILL IN FLIGHT — ${settlement.why}.`);
|
|
2911
2911
|
console.log(` Launching now puts two rounds of ${s.id} in the queue at once. That is legal and it is what a`);
|
|
2912
|
-
console.log(`
|
|
2912
|
+
console.log(` noise-floor pair is, but \`report ${s.id}\` reads ONE round: name the other with --round.`);
|
|
2913
2913
|
return;
|
|
2914
2914
|
}
|
|
2915
2915
|
if (notice.kind === "unknown") {
|
|
@@ -3059,7 +3059,7 @@ function runLedger(runDir) {
|
|
|
3059
3059
|
}
|
|
3060
3060
|
|
|
3061
3061
|
// A GRADED RUN WHOSE NARRATIVE THE DEPTH CHECK COULD NOT READ delivered with the depth rules applied to
|
|
3062
|
-
// nothing. The receipt says so in a check of its own, and nothing a
|
|
3062
|
+
// nothing. The receipt says so in a check of its own, and nothing a tester reads carried it: the
|
|
3063
3063
|
// client's mail holds no machine-check lines, and the workbook's Machine Checks sheet is for the reviewing
|
|
3064
3064
|
// lawyer. Read from either shape a receipt carries, the check object or the stored list of failing ids.
|
|
3065
3065
|
const lint = readJson(join(dd, "predelivery-lint.json"));
|
|
@@ -3271,7 +3271,7 @@ async function cmdReport(id, { round: requestedToken = null } = {}) {
|
|
|
3271
3271
|
// NOT SEARCHED IS NOT EMPTY, the same distinction this file already makes about run dirs below. An
|
|
3272
3272
|
// empty list from a directory nobody walked reads as "these are all of them".
|
|
3273
3273
|
if (!disk.searched) console.log(` run dirs NOT SEARCHED — ${disk.why}. Rounds that left no receipt entry cannot appear below.`);
|
|
3274
|
-
else if (disk.untokened) console.log(` ${disk.untokened} run dir(s) carry a ref with NO round token —
|
|
3274
|
+
else if (disk.untokened) console.log(` ${disk.untokened} run dir(s) carry a ref with NO round token — older or submitted by hand, so they belong to no nameable round.`);
|
|
3275
3275
|
if (!QUEUE_DIR || !existsSync(QUEUE_DIR)) console.log(` queue NOT SEARCHED — ${QUEUE_DIR ? `CLEAROTRON_QUEUE_DIR ${QUEUE_DIR} does not exist` : `CLEAROTRON_QUEUE_DIR is unset`}. No round below can be called settled.`);
|
|
3276
3276
|
for (const [i, r] of rounds.entries()) {
|
|
3277
3277
|
const st = settlementOf(r);
|
|
@@ -3290,7 +3290,7 @@ async function cmdReport(id, { round: requestedToken = null } = {}) {
|
|
|
3290
3290
|
// prints as itself, because "not recorded" is not "none served" and a reader must not have to guess.
|
|
3291
3291
|
console.log(` register: ${registerServedLine(readJson(join(run.runDir, "status.json")))}`);
|
|
3292
3292
|
const eb = engineBuildOf(run.runDir);
|
|
3293
|
-
if (!eb) console.log(` engine build: NOT RECORDED — this run predates the run-start stamp
|
|
3293
|
+
if (!eb) console.log(` engine build: NOT RECORDED — this run predates the run-start stamp; any attribution for it is a reflog reconstruction`);
|
|
3294
3294
|
else {
|
|
3295
3295
|
const dirty = eb.outcome === "clean" ? "" : ` ⚠ ${eb.outcome.toUpperCase()}`;
|
|
3296
3296
|
console.log(` engine build: ${eb.head ?? "(none)"}${eb.branch ? ` on ${eb.branch}` : " (detached)"}${dirty}`);
|
|
@@ -3693,16 +3693,16 @@ async function cmdReport(id, { round: requestedToken = null } = {}) {
|
|
|
3693
3693
|
+ `asserted under any of them, so screening, close-variation matching, record hydration and citation fidelity `
|
|
3694
3694
|
+ `were not proved to have run on anything. A count that came back non-zero here is an incidental collision `
|
|
3695
3695
|
+ `with a real filing, not coverage: nothing holds it there. This round proves the register CALL and not the `
|
|
3696
|
-
+ `code that reads its answer
|
|
3696
|
+
+ `code that reads its answer.`);
|
|
3697
3697
|
} else if (mp.state === MARK_PROVENANCE.UNSTATED) {
|
|
3698
3698
|
notProbed.push(`marks: ${mp.why}. Whether this round entered the register hit path cannot be established from the `
|
|
3699
|
-
+ `store, and an unstated label is not a synthetic one — add \`markProvenance\` to ${s.id}.json
|
|
3699
|
+
+ `store, and an unstated label is not a synthetic one — add \`markProvenance\` to ${s.id}.json.`);
|
|
3700
3700
|
} else if (w.sidecars > 0 && w.taken > 0 && w.nonZero === 0) {
|
|
3701
3701
|
// The direction the label cannot catch.: nothing on this box distinguishes a register that
|
|
3702
3702
|
// has emptied out under this mark from a credential that stopped working, so this names both.
|
|
3703
3703
|
toInvestigate.push(`marks: ${s.id} is declared LIVE and every count it took came back ZERO. Either the register `
|
|
3704
3704
|
+ `no longer holds this mark in the classes searched — in which case the scenario needs a new mark, not a lower `
|
|
3705
|
-
+ `floor — or the register credential has stopped working and is failing as an empty answer
|
|
3705
|
+
+ `floor — or the register credential has stopped working and is failing as an empty answer. This round `
|
|
3706
3706
|
+ `did NOT enter the hit path whatever the label says.`);
|
|
3707
3707
|
} else if (w.sidecars > 0 && w.taken === 0 && w.cells > 0) {
|
|
3708
3708
|
toInvestigate.push(`marks: ${s.id} is declared LIVE and not one of its ${w.cells} count cell(s) was TAKEN — every `
|
package/scripts/engine-probe.mjs
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
// CAN this box run a turn that uses a tool, and under the billing mode it thinks it is using.
|
|
16
16
|
//
|
|
17
17
|
// It had no way to be asked. Its only callers were `bin/onboard.mjs` (the setup wizard, which asks it
|
|
18
|
-
// once, inside a flow) and `preflightEngineTurn` in `
|
|
18
|
+
// once, inside a flow) and `preflightEngineTurn` in `driver/engine/probe.mjs` (which asks it at the start of a run,
|
|
19
19
|
// when the question is already being answered the expensive way). needed it standalone to check
|
|
20
20
|
// API billing without paying for a clearance, and that is a permanent want, not that issue's want.
|
|
21
21
|
//
|
package/scripts/env-audit.mjs
CHANGED
|
@@ -59,8 +59,8 @@ const asList = process.argv.includes("--list");
|
|
|
59
59
|
//
|
|
60
60
|
// `resolveAuthMode({env = process.env})` reads `env.CODEX_API_KEY`. Textually there is no
|
|
61
61
|
// `process.env.` before the name, so the `process.env`-only scanner recorded nothing — and this is not
|
|
62
|
-
// an oddity, it is the refactor this repository keeps choosing (`
|
|
63
|
-
// `
|
|
62
|
+
// an oddity, it is the refactor this repository keeps choosing (a pure function handed `env`, as
|
|
63
|
+
// `resolveAuthMode` is). Every such conversion silently removed its variables from
|
|
64
64
|
// governance: the guard went QUIET rather than red, which is the failure class ADR-0002 exists to end.
|
|
65
65
|
// Seven product names were invisible, two of them deciding billing.
|
|
66
66
|
//
|
|
@@ -324,6 +324,9 @@ export function isProductFile(rel) {
|
|
|
324
324
|
// when this was added: HOME, PATH, TMPDIR and that delay were all the checks read, and the first three
|
|
325
325
|
// stay product, because shipping code reads them too.
|
|
326
326
|
if (/^scripts\/[a-z0-9-]+-render-check\.mjs$/.test(rel)) return false;
|
|
327
|
+
// THE SECRET SCANNER'S DOWNLOAD. CI passes it the version, hash and cache folder, and the package does not
|
|
328
|
+
// ship it, so a row for those in `.env.example` would hand an operator settings nothing they run reads.
|
|
329
|
+
if (rel === "scripts/secret-scanner-fetch.mjs") return false;
|
|
327
330
|
return true;
|
|
328
331
|
}
|
|
329
332
|
|
|
@@ -432,7 +435,7 @@ export function declaredEffects(rows) {
|
|
|
432
435
|
}
|
|
433
436
|
|
|
434
437
|
export function auditEnv(root = ROOT) {
|
|
435
|
-
const tracked = trackedFiles("env-audit (
|
|
438
|
+
const tracked = trackedFiles("env-audit (governance ratchet)", { root });
|
|
436
439
|
if (!tracked) return null;
|
|
437
440
|
const files = tracked.filter((f) => CODE_RE.test(f) && !f.startsWith("node_modules/"));
|
|
438
441
|
|
|
@@ -736,7 +739,7 @@ const TOKEN_RE = /[A-Z][A-Z0-9_]*/g;
|
|
|
736
739
|
* function until review.
|
|
737
740
|
*/
|
|
738
741
|
export function auditCatalogue(root = ROOT) {
|
|
739
|
-
const tracked = trackedFiles("env-audit (
|
|
742
|
+
const tracked = trackedFiles("env-audit (catalogue ratchet)", { root });
|
|
740
743
|
if (!tracked) return null;
|
|
741
744
|
const file = ".env.example";
|
|
742
745
|
if (!existsSync(join(root, file)))
|