clearotron 0.5.1 → 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 +60 -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 +4 -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 +4 -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
package/scripts/env-classify.mjs
CHANGED
|
@@ -221,7 +221,11 @@ export function setupNames(root = ROOT) {
|
|
|
221
221
|
// `tokenEnv` joined the row shape with (the headless sign-in's captured token —
|
|
222
222
|
// the wizard writes it through a COMPUTED key, `candidate[eng.headless.tokenEnv]`, so the literal
|
|
223
223
|
// candidate-write matchers above cannot see it; the table field is the one derivable spelling).
|
|
224
|
-
|
|
224
|
+
// Each register states its credential in its own adapter, which PROVIDERS lists.
|
|
225
|
+
const providersDir = join(root, "providers");
|
|
226
|
+
const adapters = existsSync(providersDir) ? readdirSync(providersDir).map((p) => join(providersDir, p, "src", "adapter.js")).filter((f) => existsSync(f)) : [];
|
|
227
|
+
for (const text of [cfg, ...adapters.map((f) => readFileSync(f, "utf8"))])
|
|
228
|
+
for (const m of text.matchAll(/(?:env|authEnv|apiKeyEnv|credEnv|tokenEnv):\s*"([A-Z][A-Z0-9_]*)"/g)) seed.add(m[1]);
|
|
225
229
|
// THE NAMES A HELPER RETURNS AND THE WIZARD MERGES IN. The sign-in step hands back the `.env` keys it
|
|
226
230
|
// wants written, and the wizard writes them with `Object.assign(candidate, await askSignIn(…))`. None of
|
|
227
231
|
// the matchers above sees a key inside a returned object, so both names that step writes — the address
|
|
@@ -82,7 +82,7 @@ if (!canWrite && !dryRun) {
|
|
|
82
82
|
console.error(
|
|
83
83
|
`No GitHub credential.\n\n` +
|
|
84
84
|
`This host has neither an authenticated \`gh\` nor ${TOKEN_VAR} in its environment, so it cannot\n` +
|
|
85
|
-
`create an issue. That is
|
|
85
|
+
`create an issue. That is an open question rather than a misconfiguration — see the header\n` +
|
|
86
86
|
`of this file for the two ways to close it.\n\n` +
|
|
87
87
|
`--dry-run works without a credential and prints what would be minted.`,
|
|
88
88
|
);
|
|
@@ -65,12 +65,12 @@ const FROZEN_FILES = [
|
|
|
65
65
|
{ path: "case-law-findings.md", why: "`clPath` declared in index.mjs, the case-law section" },
|
|
66
66
|
{ path: "common-law-grid.json", why: "`commonLawJoinedTerms` declared in index.mjs, common-law coverage" },
|
|
67
67
|
// publish/index.mjs — the _driver sidecars it reads by name
|
|
68
|
-
{ path: "_driver/receipts.json", why: "publish/index.mjs:
|
|
69
|
-
{ path: "_driver/senior-rights.json", why: "publish/index.mjs:
|
|
68
|
+
{ path: "_driver/receipts.json", why: "publish/index.mjs:764 fetchReceipts" },
|
|
69
|
+
{ path: "_driver/senior-rights.json", why: "publish/index.mjs:790 seniorRights" },
|
|
70
70
|
{ path: "_driver/verdict.json", why: "publish/index.mjs:811 verdictInfo" },
|
|
71
71
|
{ path: "_driver/framework.json", why: "publish/index.mjs, the frozen band vocabulary the run was rated under" },
|
|
72
|
-
{ path: "_driver/register-plan.json", why: "publish/index.mjs:
|
|
73
|
-
{ path: "_driver/instructed-scope.json", why: "publish/index.mjs:
|
|
72
|
+
{ path: "_driver/register-plan.json", why: "publish/index.mjs:919 scopeBasis" },
|
|
73
|
+
{ path: "_driver/instructed-scope.json", why: "publish/index.mjs:930 searchedJurisdictions, the fallback for register-plan" },
|
|
74
74
|
{ path: "_driver/enforcer-signals.json", why: "`esPath` declared in index.mjs" },
|
|
75
75
|
{ path: "_driver/predelivery-lint.json", why: "publish/index.mjs:173 lintSink" },
|
|
76
76
|
{ path: "_driver/escalation-state.json", why: "publish/index.mjs:174 escSink" },
|
|
@@ -111,14 +111,14 @@ const KNOCKOUT_FILES = [
|
|
|
111
111
|
{ path: "_driver/search-policy.json", why: "report-registry.mjs:71 level + stage label" },
|
|
112
112
|
{ path: "_driver/profile.json", why: "report-registry.mjs:72 customer key and the delivery overlay" },
|
|
113
113
|
{ path: "_driver/verdict.json", why: "publish/index.mjs:811 verdictInfo" },
|
|
114
|
-
{ path: "_driver/receipts.json", why: "publish/index.mjs:
|
|
114
|
+
{ path: "_driver/receipts.json", why: "publish/index.mjs:764 fetchReceipts" },
|
|
115
115
|
// THE COUNT SIDECARS, AND THE PROOF IS WHAT FOUND THEM. Without register-counts.json the republished
|
|
116
116
|
// meta carries `registerCounts: undefined` where the source carried the provider, the taken-at stamp
|
|
117
117
|
// and the per-mark counts — so the workbook's Register column and every counted figure in the
|
|
118
118
|
// knockout report render empty (`buildKnockoutWorkbook` in publish/knockout.mjs). Named by `koPaths` in stages-knockout.mjs.
|
|
119
119
|
{ path: "_driver/register-counts.json", why: "buildKnockoutWorkbook in publish/knockout.mjs: counted figures + the Register column" },
|
|
120
120
|
{ path: "_driver/register-records.json", why: "koPaths in stages-knockout.mjs: the terms behind the close-variation axis" },
|
|
121
|
-
{ path: "_driver/instructed-scope.json", why: "publish/index.mjs:
|
|
121
|
+
{ path: "_driver/instructed-scope.json", why: "publish/index.mjs:930 searchedJurisdictions, the fallback for register-plan" },
|
|
122
122
|
];
|
|
123
123
|
|
|
124
124
|
/** The allowlist for a template. One place, so a new template cannot half-exist. */
|
|
@@ -174,7 +174,7 @@ const SCRUB = [
|
|
|
174
174
|
// hides the next real difference.
|
|
175
175
|
const VOLATILE = [
|
|
176
176
|
{ id: "issued", re: /\d{4}-\d{2}-\d{2} · \d{2}:\d{2} [A-Z]{2,5}/g, sub: "<issued>", why: "publish/index.mjs, the issue stamp in the firm locale" },
|
|
177
|
-
{ id: "iso-timestamp", re: /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z/g, sub: "<ts>", why: "publish/index.mjs:
|
|
177
|
+
{ id: "iso-timestamp", re: /\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?Z/g, sub: "<ts>", why: "publish/index.mjs:668 asOf" },
|
|
178
178
|
];
|
|
179
179
|
|
|
180
180
|
// ── REWRITES — what is CHANGED on the way out, as opposed to what is refused ───────────────────────
|
|
@@ -55,7 +55,7 @@ const CHECK = process.argv.includes("--check");
|
|
|
55
55
|
const ALLOW_LOSS = process.argv.includes("--allow-loss");
|
|
56
56
|
|
|
57
57
|
const README = [
|
|
58
|
-
"
|
|
58
|
+
"THE SUITE'S SELF-CENSUS. Minted and checked by shared/suite-census.mjs's ONE counter, so the",
|
|
59
59
|
"minting side cannot drift from the checking side and manufacture its own findings.",
|
|
60
60
|
"",
|
|
61
61
|
"Collection is a glob, so a test file that is DELETED or RENAMED out of it simply stops being",
|
|
@@ -309,7 +309,7 @@ function main() {
|
|
|
309
309
|
console.error("\nOne of the two moved. Either a workspace's test script or a root test script was "
|
|
310
310
|
+ "re-pointed, or CENSUS_WORKSPACES / CENSUS_ROOT_SCRIPTS in shared/suite-census.mjs is out of "
|
|
311
311
|
+ "date. Fix the disagreement — do not re-stamp over it, because a census minted against a corpus "
|
|
312
|
-
+ "nothing runs is the defect
|
|
312
|
+
+ "nothing runs is the defect, not the fix for it.");
|
|
313
313
|
process.exitCode = 1;
|
|
314
314
|
return;
|
|
315
315
|
}
|
|
@@ -143,7 +143,7 @@ export function noticeBody({ runUrl, sha, subject, failedJobs = [], lastGreenAt,
|
|
|
143
143
|
+ "in the repository was exercised. Read this as an infrastructure or billing failure until "
|
|
144
144
|
+ "something says otherwise — there is no code regression to look for yet."
|
|
145
145
|
: "macOS falsifies three things a Linux-only pipeline cannot see — `node:sqlite`, executable "
|
|
146
|
-
+ "resolution across PATH, and spawning a child with a modified environment
|
|
146
|
+
+ "resolution across PATH, and spawning a child with a modified environment. A red here "
|
|
147
147
|
+ "is one of those, or it is the platform gate itself breaking; both need a person.",
|
|
148
148
|
"",
|
|
149
149
|
nothingRan
|
|
@@ -71,7 +71,8 @@ export function cutRef(env = process.env) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
function main() {
|
|
74
|
-
const
|
|
74
|
+
const ref = cutRef();
|
|
75
|
+
const version = versionAtHead({ ref });
|
|
75
76
|
const tags = tagsHere();
|
|
76
77
|
// A CHECKOUT WITH NO TAGS AT ALL CANNOT ANSWER THIS. Every version would read as never released, and
|
|
77
78
|
// the pipeline would publish on every push. `fetch-depth: 0` brings tags; if it ever stops, this
|
|
@@ -85,7 +86,11 @@ function main() {
|
|
|
85
86
|
const { cut } = cutDecision({ version, tags });
|
|
86
87
|
console.log(cut ? `v${version} has no tag — this push cut it.` : `v${version} is already released — nothing to publish.`);
|
|
87
88
|
const out = process.env.GITHUB_OUTPUT;
|
|
88
|
-
|
|
89
|
+
// THE COMMIT THE ANSWER IS ABOUT. A job that then builds something names this, or it builds whatever its event
|
|
90
|
+
// commit happened to be: a scheduled run queued before a version commit asks about main and would pack the tree
|
|
91
|
+
// from before it. Measured 2026-11-08, when a scheduled run tried to publish the previous version again.
|
|
92
|
+
const sha = execFileSync("git", ["rev-parse", `${ref}^{commit}`], { encoding: "utf8" }).trim();
|
|
93
|
+
if (out) appendFileSync(out, `version=${version}\ncut=${cut}\nsha=${sha}\n`);
|
|
89
94
|
}
|
|
90
95
|
|
|
91
96
|
if (isEntrypoint(import.meta.url)) main();
|
|
@@ -117,8 +117,12 @@
|
|
|
117
117
|
// commit cannot answer for itself;
|
|
118
118
|
// - the reason is read by NO_NOTE itself, so the two forms cannot drift. Empty, or a dash, is refused;
|
|
119
119
|
// - one commit takes one answer: two lines naming the same commit are both refused, even when they agree;
|
|
120
|
-
// - an answer naming a commit that owes none
|
|
121
|
-
//
|
|
120
|
+
// - an answer naming a commit that owes none because it carries a note or gives its own reason is
|
|
121
|
+
// refused as stale. An answer ignored in silence reads as though it did something;
|
|
122
|
+
// - an answer naming a commit that ships no code is printed as answering nothing, and not refused. What
|
|
123
|
+
// ships is read off the package's own list, so a file can stop counting after an answer was written for
|
|
124
|
+
// it, in history nobody may rewrite (measured 2026-11-11: two answers for test helpers, once `**/test/`
|
|
125
|
+
// was read as npm reads it). A mistyped sha gains nothing from this: the commit that was meant still owes.
|
|
122
126
|
// Every answer taken is printed with the sha that gave it, and every refused answer fails the check and
|
|
123
127
|
// names the commit that carries it. The answering commit is read like any other: one that ships no code,
|
|
124
128
|
// such as an empty commit, owes nothing of its own.
|
|
@@ -180,15 +184,22 @@ export function shipsCode(path, files) {
|
|
|
180
184
|
return shipped;
|
|
181
185
|
}
|
|
182
186
|
|
|
183
|
-
/**
|
|
187
|
+
/**
|
|
188
|
+
* The small slice of glob the `files` list actually uses: a directory prefix, and star wildcards.
|
|
189
|
+
*
|
|
190
|
+
* A DIRECTORY PATTERN WITH A STAR is everything under every directory it matches, as npm reads it:
|
|
191
|
+
* `**\/test/` excludes a helper under `driver/test/` as well as a `*.test.mjs` file. Read as a plain
|
|
192
|
+
* prefix it matched nothing, and 47 helpers npm never packs were asked for a release note (measured
|
|
193
|
+
* against `npm pack --dry-run`, 2026-11-11).
|
|
194
|
+
*/
|
|
184
195
|
function matches(path, glob) {
|
|
185
|
-
|
|
186
|
-
if (!glob.includes("*")) return path === glob || path.startsWith(`${glob}/`);
|
|
196
|
+
const dir = glob.endsWith("/");
|
|
197
|
+
if (!glob.includes("*")) return dir ? path.startsWith(glob) : path === glob || path.startsWith(`${glob}/`);
|
|
187
198
|
const re = new RegExp("^" + glob
|
|
188
199
|
.replace(/[.+^${}()|[\]\\]/g, "\\$&")
|
|
189
200
|
.replace(/\*\*\//g, "(?:.*/)?")
|
|
190
201
|
.replace(/\*\*/g, ".*")
|
|
191
|
-
.replace(/(?<!\.)\*/g, "[^/]*") + "$");
|
|
202
|
+
.replace(/(?<!\.)\*/g, "[^/]*") + (dir ? "" : "$"));
|
|
192
203
|
return re.test(path);
|
|
193
204
|
}
|
|
194
205
|
|
|
@@ -268,6 +279,7 @@ const shipped = (paths, files) => paths.filter((p) => !NEVER_A_NOTE.some((re) =>
|
|
|
268
279
|
* withdrawals:Array<{sha:string, subject:string, note:string, by:string, reason:string}>,
|
|
269
280
|
* answered:Array<{sha:string, subject:string, by:string, reason:string}>,
|
|
270
281
|
* refusedAnswers:Array<{sha:string, subject:string, text:string, problem:string}>,
|
|
282
|
+
* unneeded:Array<{sha:string, by:string, said:string}>,
|
|
271
283
|
* owed:Array<{sha:string, subject:string, why:"no-note"|"prose"|"bare-none"|"names-a-missing-note"|"note-withdrawn-unsaid",
|
|
272
284
|
* paths?:string[], text?:string, by?:string}>}}
|
|
273
285
|
*/
|
|
@@ -319,7 +331,7 @@ export function commitVerdicts({ commits = [], files = [], atHead = null, isAnce
|
|
|
319
331
|
});
|
|
320
332
|
// AND A NAME THE HEAD STILL CARRIES WAS NEVER WITHDRAWN AT ALL: the release assembles what the head has.
|
|
321
333
|
if (presentNames) for (const name of [...withdrawn.keys()]) if (presentNames.has(name)) withdrawn.delete(name);
|
|
322
|
-
const declined = [], owed = [], withdrawals = [], answered = [];
|
|
334
|
+
const declined = [], owed = [], withdrawals = [], answered = [], unneeded = [];
|
|
323
335
|
const { answers, refused: refusedAnswers } = readAnswers(commits, isAncestor);
|
|
324
336
|
const used = new Set();
|
|
325
337
|
for (const [i, c] of commits.entries()) {
|
|
@@ -372,8 +384,10 @@ export function commitVerdicts({ commits = [], files = [], atHead = null, isAnce
|
|
|
372
384
|
}
|
|
373
385
|
// AN ANSWER THAT ANSWERED NOTHING IS REFUSED, NOT IGNORED (see the header).
|
|
374
386
|
const owing = new Set(owed.map((o) => o.sha));
|
|
387
|
+
const shipsNothing = new Set(commits.filter((c) => !shipped(c.paths, files).length).map((c) => c.sha));
|
|
375
388
|
for (const [sha, a] of answers) {
|
|
376
389
|
if (used.has(sha)) continue;
|
|
390
|
+
if (shipsNothing.has(sha)) { unneeded.push({ sha, by: a.by, said: a.note ?? a.reason }); continue; }
|
|
377
391
|
refusedAnswers.push({ sha: a.by, subject: a.subject, text: a.text,
|
|
378
392
|
problem: owing.has(sha)
|
|
379
393
|
? (a.note
|
|
@@ -381,7 +395,7 @@ export function commitVerdicts({ commits = [], files = [], atHead = null, isAnce
|
|
|
381
395
|
: `names ${sha.slice(0, 7)}, which owes a note this line cannot give: an answer covers only a bare \`none\``)
|
|
382
396
|
: `names ${sha.slice(0, 7)}, which owes no answer: it ships no code, carries a note, or gives its own reason` });
|
|
383
397
|
}
|
|
384
|
-
return { visible, notes, declined, withdrawals, owed, answered, refusedAnswers };
|
|
398
|
+
return { visible, notes, declined, withdrawals, owed, answered, refusedAnswers, unneeded };
|
|
385
399
|
}
|
|
386
400
|
|
|
387
401
|
const argAfter = (flag) => {
|
|
@@ -448,7 +462,7 @@ function main() {
|
|
|
448
462
|
}
|
|
449
463
|
// ANCESTRY FROM GIT, NEVER TIMESTAMPS: an answer must come from a commit the named one is an ancestor of.
|
|
450
464
|
const isAncestor = (a, b) => { try { git("merge-base", "--is-ancestor", a, b); return true; } catch { return false; } };
|
|
451
|
-
const { visible, notes, declined, withdrawals, owed, answered, refusedAnswers } = commitVerdicts({ commits, files, atHead, isAncestor });
|
|
465
|
+
const { visible, notes, declined, withdrawals, owed, answered, refusedAnswers, unneeded } = commitVerdicts({ commits, files, atHead, isAncestor });
|
|
452
466
|
console.log(`release-note-required: ${changed.length} changed file(s) against ${base}`
|
|
453
467
|
+ `${head === "HEAD" ? "" : ` (head ${head})`}; `
|
|
454
468
|
+ `${visible.length} ship as code; ${notes.length} release note(s) in the range; ${commits.length} commit(s) read`
|
|
@@ -472,6 +486,9 @@ function main() {
|
|
|
472
486
|
? ` ${a.sha.slice(0, 7)} said ${a.said === "none" ? "a bare `none`" : `"${a.said}"`}, which ${a.by.slice(0, 7)} answers with ${a.note}`
|
|
473
487
|
: ` ${a.sha.slice(0, 7)} said a bare \`none\`, which ${a.by.slice(0, 7)} answers: ${a.reason}`);
|
|
474
488
|
}
|
|
489
|
+
for (const u of unneeded) {
|
|
490
|
+
console.log(` ${u.sha.slice(0, 7)} ships no code, so ${u.by.slice(0, 7)} answers for nothing it owed: ${u.said}`);
|
|
491
|
+
}
|
|
475
492
|
if (!owed.length && !refusedAnswers.length) return;
|
|
476
493
|
if (refusedAnswers.length) {
|
|
477
494
|
console.error(`\n${refusedAnswers.length} Release-note-for answer(s) refused:\n`);
|
|
@@ -30,8 +30,9 @@ export const GROUPS = ["Before you upgrade", "New", "Fixed", "For operators"];
|
|
|
30
30
|
|
|
31
31
|
/** At most this many words in a sentence, or in each clause of it after a semicolon or a colon. The contract's number,
|
|
32
32
|
* not a tuned one. It has risen only to the length of a sentence the owner approved word for word, and no further:
|
|
33
|
-
* 25 to 26 on 2026-10-28,
|
|
34
|
-
|
|
33
|
+
* 25 to 26 on 2026-10-28, 26 to 30 on 2026-10-30, for a note of 30 words in one clause, and 30 to 41 on 2026-11-11,
|
|
34
|
+
* for a note of 41 words in one clause approved under the owner's delegation. A ceiling, not a target. */
|
|
35
|
+
export const MAX_WORDS = 41;
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Our internal vocabulary. Every one of these is a word we use fluently and the reader has never met in
|
|
@@ -56,7 +56,7 @@ const nameOf = (r) => r?.name ?? "(unnamed)";
|
|
|
56
56
|
*
|
|
57
57
|
* A GUARD THAT ONLY NAMES THE PROBLEM COSTS THE READER THE SAME HOUR EVERY TIME. This one fires on
|
|
58
58
|
* every version pull request — the bot parks under the narrowest policy this repository can set — so it
|
|
59
|
-
* is read often, and by whoever is
|
|
59
|
+
* is read often, and by whoever is cutting the release rather than by whoever built it. The run id is the only
|
|
60
60
|
* thing that is not already in the sentence.
|
|
61
61
|
*/
|
|
62
62
|
const howToClear = (repo, runs) => {
|
|
@@ -71,7 +71,7 @@ const adminConfig = {
|
|
|
71
71
|
}
|
|
72
72
|
const about = productIdentity()
|
|
73
73
|
|
|
74
|
-
const state = { contact: CONTACT, reset: null }
|
|
74
|
+
const state = { contact: CONTACT, reset: null, programMissing: false }
|
|
75
75
|
// THE PAGE'S OWN LOADS, COUNTED. A screen that asks the server twice paints exactly like one that asks once,
|
|
76
76
|
// and each request spends the person's rate budget, so the only instrument that sees a double load is a count.
|
|
77
77
|
const loads = []
|
|
@@ -88,7 +88,9 @@ const server = createServer((req, res) => {
|
|
|
88
88
|
access: [{ kind: 'everything' }], organisations: [{ key: 'northwind', name: 'Northwind Group' }],
|
|
89
89
|
accountNames: { northwind: 'Northwind Foods' }, brand: 'Northwind Group', administratorContact: state.contact })
|
|
90
90
|
}
|
|
91
|
-
if (path === '/portal/admin/config' && !wantsPage)
|
|
91
|
+
if (path === '/portal/admin/config' && !wantsPage) {
|
|
92
|
+
return json(state.programMissing ? { ...adminConfig, engine: { ...adminConfig.engine, binaryPresent: false } } : adminConfig)
|
|
93
|
+
}
|
|
92
94
|
if (path === '/portal/api/about') return json(about)
|
|
93
95
|
if (path === '/portal/admin/roster' && !wantsPage) return json({ customers: [{ key: 'northwind', name: 'Northwind Foods' }] })
|
|
94
96
|
// THE PEOPLE SCREEN'S OWN DATA. Rows with real-length values on purpose: the defect this screen was
|
|
@@ -389,7 +391,7 @@ const SPEC = {
|
|
|
389
391
|
blurLine: 'On the top bar. It covers every mark and company on screen, and an open report whole. It stays as you left it on this computer.',
|
|
390
392
|
// The sign-in page's wording is the owner's, approved 2026-09-19 and used verbatim.
|
|
391
393
|
identity: (email) => `This Clearotron has one user: ${email}. Enter its passphrase.`,
|
|
392
|
-
reset: 'The passphrase was printed once when this Clearotron first started. Lost it? Run clearotron passphrase --reset on the machine running this portal. It prints a new one, once, for the same user.',
|
|
394
|
+
reset: 'The passphrase was printed once, when this Clearotron first started or was last reset. Lost it? Run clearotron passphrase --reset on the machine running this portal. It prints a new one, once, for the same user.',
|
|
393
395
|
key: 'A key from clearotron key issue is for an AI assistant, not for this page.',
|
|
394
396
|
addPeople: 'To add people, put it behind a login system such as your company single sign-on. How to set that up',
|
|
395
397
|
}
|
|
@@ -453,6 +455,24 @@ for (const theme of ['light', 'dark']) {
|
|
|
453
455
|
`one visit asks for the settings once and for the source address once (saw ${JSON.stringify(loads)})`)
|
|
454
456
|
}
|
|
455
457
|
|
|
458
|
+
// ── Installation settings, the engine program missing
|
|
459
|
+
// The Engine row's fault names the program and the setup command in backticks, as a terminal prints them. Drawn
|
|
460
|
+
// as text, the reader saw the backticks; each pair is now code, and no backtick is left on the row.
|
|
461
|
+
console.log('\nInstallation settings, engine program missing:')
|
|
462
|
+
state.programMissing = true
|
|
463
|
+
if (await open('/portal/admin/config', "document.querySelectorAll('.cfg-row').length >= 9", 'Installation settings drew its rows with the program missing')) {
|
|
464
|
+
await setTheme(theme)
|
|
465
|
+
const row = (await evalIn(`(() => {
|
|
466
|
+
const note = [...document.querySelectorAll('.cfg-note.bad')].find((p) => /cannot be found or run/.test(p.textContent));
|
|
467
|
+
return note ? { text: note.textContent, code: [...note.querySelectorAll('code')].map((c) => c.textContent) } : null;
|
|
468
|
+
})()`)) ?? null
|
|
469
|
+
ok(row !== null, 'the Engine row says its program cannot be found or run')
|
|
470
|
+
ok(row && !row.text.includes('\u0060'), `the Engine row shows no backtick (saw ${JSON.stringify(row?.text)})`)
|
|
471
|
+
ok(row && same(row.code, ['claude', 'npx clearotron install']), `the program and the setup command are drawn as code (saw ${JSON.stringify(row?.code)})`)
|
|
472
|
+
await capture(`installation-settings-program-missing-${theme}`)
|
|
473
|
+
}
|
|
474
|
+
state.programMissing = false
|
|
475
|
+
|
|
456
476
|
// ── Preferences, contact set and unset
|
|
457
477
|
for (const [label, contact] of [['contact-set', CONTACT], ['contact-unset', null]]) {
|
|
458
478
|
console.log(`\nPreferences, ${label}:`)
|
package/scripts/test-run.mjs
CHANGED
|
@@ -102,9 +102,9 @@ const REAL_TMP = process.env.CT_TEST_TMP_BASE || tmpdir();
|
|
|
102
102
|
// temp root that is perfectly contained.
|
|
103
103
|
//
|
|
104
104
|
// IT ONLY EVER WORKED BY WAY OF THE LITERAL `/tmp`. In CI `TMPDIR` is unset, every root is under `/tmp`,
|
|
105
|
-
// and the literal in `PLATFORM_TMP` below covered the sibling. On a
|
|
106
|
-
//
|
|
107
|
-
//
|
|
105
|
+
// and the literal in `PLATFORM_TMP` below covered the sibling. On a machine whose `TMPDIR` points
|
|
106
|
+
// outside `/tmp`, nothing in the list covered it, so ten arms that drive the runner recursively failed
|
|
107
|
+
// there and passed in CI on the same commit. The guard was not
|
|
108
108
|
// protecting a differently-rooted box at all; it was refusing it.
|
|
109
109
|
//
|
|
110
110
|
// So this is read ONCE, at the outermost run, before `TMPDIR` is rewritten, and passed down untouched.
|
|
@@ -316,7 +316,7 @@ if (missingDeps.length) {
|
|
|
316
316
|
console.error(``);
|
|
317
317
|
console.error(` A fresh 'git worktree add' has no node_modules. Running anyway would report ~190`);
|
|
318
318
|
console.error(` tests that never executed as ~295 failed assertions, which reads as code defects and`);
|
|
319
|
-
console.error(` makes a clean-looking baseline diff out of a suite that was never run
|
|
319
|
+
console.error(` makes a clean-looking baseline diff out of a suite that was never run.`);
|
|
320
320
|
process.exit(1);
|
|
321
321
|
}
|
|
322
322
|
|
|
@@ -383,7 +383,7 @@ const DATA_PLANE_VARS = Object.freeze([
|
|
|
383
383
|
// minted yet at this point, but it is created UNDER one of these, so a value pointing inside it passes.
|
|
384
384
|
//
|
|
385
385
|
// THE PLATFORM TEMP DIRECTORY IS IN THIS LIST SEPARATELY FROM `tmpdir()`, and the first draft of this
|
|
386
|
-
// guard was wrong for want of it:
|
|
386
|
+
// guard was wrong for want of it: on a machine whose `TMPDIR` points outside `/tmp`, `tmpdir()` answers
|
|
387
387
|
// that and a perfectly contained `/tmp/...` value was REFUSED. A guard that refuses correct work gets
|
|
388
388
|
// removed, and then nothing is guarded at all — the false refusal is the expensive direction here, not
|
|
389
389
|
// the missed one, because the value this is protecting against is somebody's live estate under /home
|
|
@@ -76,7 +76,7 @@ import { trackedFiles } from "../shared/tracked-files.mjs";
|
|
|
76
76
|
import { isEntrypoint } from "../shared/is-entrypoint.mjs"; // — realpath both sides, or a symlinked invocation exits 0 silently
|
|
77
77
|
|
|
78
78
|
/** Named once so the test can report the SAME guard in its skip reason. */
|
|
79
|
-
export const GUARD = "
|
|
79
|
+
export const GUARD = "travelling-predicate candidates";
|
|
80
80
|
|
|
81
81
|
const ROOT = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
82
82
|
|
|
@@ -111,7 +111,7 @@ console.log(` ${"route".padEnd(28)} ${"jobs".padStart(6)} ${"with an undeclar
|
|
|
111
111
|
for (const [via, v] of Object.entries(census.byRoute).sort((a, b) => b[1].jobs - a[1].jobs))
|
|
112
112
|
console.log(` ${via.padEnd(28)} ${String(v.jobs).padStart(6)} ${String(v.withUndeclared).padStart(26)}`);
|
|
113
113
|
console.log(`\n A door-stamped job CANNOT carry one — its assembler dropped it before the manifest was written.`);
|
|
114
|
-
console.log(` So the rate
|
|
114
|
+
console.log(` So the rate to read is over the unstamped route alone:\n`);
|
|
115
115
|
console.log(` ${unstamped.withUndeclared} of ${unstamped.jobs} hand-written manifest(s) carry a field no door declares`
|
|
116
116
|
+ `${unstamped.jobs ? ` — ${Math.round((unstamped.withUndeclared / unstamped.jobs) * 100)}%` : ""}`);
|
|
117
117
|
console.log(` (${stampedJobs} further job(s) arrived through a door and are excluded, with their reason above)`);
|
|
@@ -201,7 +201,7 @@ if (isEntrypoint(import.meta.url)) {
|
|
|
201
201
|
// the workflow file to find out what to substitute. A guard whose remedy has to be looked up is a
|
|
202
202
|
// guard people delete (its own rule, applied to its own error message).
|
|
203
203
|
console.error(`\nCHECK FAILED — ${grew.length} file(s) grew an assert site that never ran.\n\n`
|
|
204
|
-
+ "READ EACH ONE FIRST. An arm that stopped asserting is the defect this exists to find
|
|
204
|
+
+ "READ EACH ONE FIRST. An arm that stopped asserting is the defect this exists to find;\n"
|
|
205
205
|
+ "a new honest branch — a platform check, an else nobody takes here — is re-stamped deliberately:\n\n"
|
|
206
206
|
+ " CT_COVERAGE_DIR=/tmp/cov npm run test:full\n"
|
|
207
207
|
+ " npm run assert-census -- /tmp/cov/driver.lcov --apply\n\n"
|
|
@@ -110,7 +110,7 @@ try {
|
|
|
110
110
|
const m = JSON.parse(readFileSync(mf, "utf8"));
|
|
111
111
|
if (m.license !== "AGPL-3.0-only" || !/[Cc]lean-room/.test(m.description ?? "")) {
|
|
112
112
|
fail(`${d} is NOT the clean-room replacement (license=${m.license}) — the unlicensed buffers@0.1.1 `
|
|
113
|
-
+ "reached a consumer tree, which is the whole reason vendor/buffers exists
|
|
113
|
+
+ "reached a consumer tree, which is the whole reason vendor/buffers exists");
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
if (dirs.length && process.exitCode !== 1) ok(`all ${dirs.length} \`buffers\` in the tree are the clean-room replacement`);
|
package/shared/client-door.mjs
CHANGED
|
@@ -695,7 +695,7 @@ export function describeChange(plan, { applied = false, publicAddress = null, re
|
|
|
695
695
|
// `publicAddress` is whatever the operator put in `CLEAROTRON_CLIENT_MCP_URL`, and a loopback value
|
|
696
696
|
// is a thing an operator does set — it is the address that works for them at the keyboard. The
|
|
697
697
|
// sentence below then made the exact claim the paragraph above says never to make wrongly, out of a
|
|
698
|
-
// value nobody had checked. Driven
|
|
698
|
+
// value nobody had checked. Driven on a real machine.
|
|
699
699
|
//
|
|
700
700
|
// So the claim is made from the address's HOST, not from the variable being non-empty. An address
|
|
701
701
|
// that cannot be parsed is not claimed about either — the last branch already exists for that.
|
|
@@ -114,7 +114,7 @@ const TRY_IT = "Try it: in your assistant, ask **“Show my recent Clearotron cl
|
|
|
114
114
|
// NEITHER ROUTE IS DELETED. A bare self-hosted install with no provider in front is the key door, and it
|
|
115
115
|
// is the only route that works there. A hosted deployment may run a key door too, as a separate host
|
|
116
116
|
// (`keyAddress`), for assistants that cannot follow a browser sign-in: see `keySteps` below.
|
|
117
|
-
|
|
117
|
+
|
|
118
118
|
// NO HINT UNDER THE SIGN-IN DOOR'S FIRST STEP. There was one — "No key: this connector signs you in
|
|
119
119
|
// through your browser, and the sign-in is the authentication your assistant is asking about." — and the
|
|
120
120
|
// approved design (2026-09-16) removes it rather than rewording it: the sign-in step says the same thing
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
// ── IT WRITES, WHICH IS WHY IT IS NEVER DEFAULT ─────────────────────────────────────────────────────
|
|
40
40
|
//
|
|
41
41
|
// Every successful registration CREATES AN OAUTH CLIENT on the operator's account. INSTALL.md promises
|
|
42
|
-
// `doctor` "reads; writes nothing
|
|
42
|
+
// `doctor` "reads; writes nothing and contacts nothing outside this machine", and that sentence is load-bearing — it is why a
|
|
43
43
|
// reader runs `doctor` on a production box without thinking about it. So this is opt-in at the command
|
|
44
44
|
// line, it says what it is about to create before it creates it, and it reports what it left behind.
|
|
45
45
|
|
package/shared/env-aliases.mjs
CHANGED
|
@@ -42,7 +42,7 @@ import { NAMES_IN_FORCE } from "./names-in-force.mjs";
|
|
|
42
42
|
// can rot alone.
|
|
43
43
|
export const RETIRED_NEW_SPELLINGS = Object.freeze({
|
|
44
44
|
CLEAROTRON_DELIVERY:
|
|
45
|
-
"delivery is one behaviour and not a setting
|
|
45
|
+
"delivery is one behaviour and not a setting — every requester-facing event is a "
|
|
46
46
|
+ "self-contained outbox packet (docs/DELIVERY.md). If this was set to `stage`, nothing is sending "
|
|
47
47
|
+ "your notices: the packets are being written and are waiting for an integrator to consume them.",
|
|
48
48
|
});
|
package/shared/invocation.mjs
CHANGED
|
@@ -180,6 +180,18 @@ function readerEnv(env) {
|
|
|
180
180
|
return { ...env, PATH: path.split(delimiter).filter((d) => !/[\\/]_npx[\\/]/.test(d)).join(delimiter) };
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
/**
|
|
184
|
+
* Does the `clearotron` at `path` lead to THIS install? A link npm made to its executable, or our shim naming
|
|
185
|
+
* it. Run from a project that installed the package, as INSTALL §2 has a tarball installed, npm puts that
|
|
186
|
+
* project's `node_modules/.bin` first on the PATH of what it runs, and the `clearotron` there is a link to
|
|
187
|
+
* this very install. It was reported as "a different `clearotron` earlier on your PATH" (measured in a
|
|
188
|
+
* stranger walk of a beta, 2026-11-10), and the commands after it named a full path where the bare name works.
|
|
189
|
+
*/
|
|
190
|
+
const leadsHere = (installDir, io) => (path) => {
|
|
191
|
+
const { kind } = inspectShim(path, io.read ? { installDir, read: io.read } : { installDir });
|
|
192
|
+
return kind === "ours" || kind === "npm-link";
|
|
193
|
+
};
|
|
194
|
+
|
|
183
195
|
export function invocationForm(env = process.env, io = FS, installDir = INSTALL_DIR) {
|
|
184
196
|
const dir = shimDir(env);
|
|
185
197
|
const path = shimPath(env);
|
|
@@ -191,7 +203,7 @@ export function invocationForm(env = process.env, io = FS, installDir = INSTALL_
|
|
|
191
203
|
? inspectShim(path, io.read ? { installDir, read: io.read } : { installDir })
|
|
192
204
|
: { kind: "absent-or-unreadable", installDir: null };
|
|
193
205
|
if (shim.kind === "ours" && shim.interpreterMissing !== true) {
|
|
194
|
-
const { onPath, shadowedBy } = pathPosition(dir, readerEnv(env), { exists: io.exists });
|
|
206
|
+
const { onPath, shadowedBy } = pathPosition(dir, readerEnv(env), { exists: io.exists, same: leadsHere(installDir, io) });
|
|
195
207
|
if (onPath && !shadowedBy) {
|
|
196
208
|
return { form: "bare", prefix: "", shim: path, dir, onPath: true, shadowedBy: null, staleInterpreter: null };
|
|
197
209
|
}
|
|
@@ -208,7 +220,7 @@ export function invocationForm(env = process.env, io = FS, installDir = INSTALL_
|
|
|
208
220
|
// disk would answer differently on a box that really has a global install — the reason the FS note at
|
|
209
221
|
// the top of this file gives for injecting both halves.
|
|
210
222
|
if (globalExe && shim.kind !== "ours" && io.exists(globalExe)) {
|
|
211
|
-
const { onPath, shadowedBy } = pathPosition(globalDir, readerEnv(env), { exists: io.exists });
|
|
223
|
+
const { onPath, shadowedBy } = pathPosition(globalDir, readerEnv(env), { exists: io.exists, same: leadsHere(installDir, io) });
|
|
212
224
|
if (onPath && !shadowedBy) {
|
|
213
225
|
return { form: "bare", prefix: "", shim: globalExe, dir: globalDir, onPath: true, shadowedBy: null, staleInterpreter: null, via: "global" };
|
|
214
226
|
}
|
|
@@ -112,6 +112,8 @@ export const NAMES_IN_FORCE = Object.freeze([
|
|
|
112
112
|
"CLEAROTRON_MIN_TOKENS_WARMUP_MS",
|
|
113
113
|
"CLEAROTRON_MODEL_WIRE_CHECK",
|
|
114
114
|
"CLEAROTRON_NATIVE_LANGUAGE_",
|
|
115
|
+
"CLEAROTRON_NATIVE_LANGUAGE_JA",
|
|
116
|
+
"CLEAROTRON_NATIVE_LANGUAGE_KO",
|
|
115
117
|
"CLEAROTRON_NATIVE_LANGUAGE_ZH",
|
|
116
118
|
"CLEAROTRON_NO_ENV_FILE",
|
|
117
119
|
"CLEAROTRON_NO_PROGRESS_FLOOR_MS",
|
|
@@ -74,9 +74,9 @@ const USPTO_WARNINGS = [
|
|
|
74
74
|
|
|
75
75
|
export const PROVIDERS = [
|
|
76
76
|
{
|
|
77
|
-
id: "signa", label: "Signa — recommended: US + EU + WIPO and
|
|
77
|
+
id: "signa", label: "Signa — recommended: US + EU + WIPO and twelve more offices", cost: "subscription",
|
|
78
78
|
covers: "the US and EU registers together, plus WIPO/Madrid, the UK, Switzerland, Canada, Australia, "
|
|
79
|
-
+ "France, Spain, Mexico, Singapore, Norway and Sweden —
|
|
79
|
+
+ "France, Spain, Italy, Mexico, Brazil, Singapore, Norway and Sweden — fifteen offices — with native sound-alike search, exact "
|
|
80
80
|
+ "result counts and opposition state. One self-serve key, no sales call.",
|
|
81
81
|
credentials: ["SIGNA_API_KEY"],
|
|
82
82
|
signup: SIGNA_SIGNUP,
|
package/shared/store-in-repo.mjs
CHANGED
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
// wrong `false` is therefore an OUTAGE, while a wrong `true` is the status quo this defect already
|
|
32
32
|
// describes. So a path is outside only when BOTH the lexical reading and the symlink-resolved one say so:
|
|
33
33
|
// `resolve()` alone is lexical, and these stores are routinely reached through symlinked paths
|
|
34
|
-
// (
|
|
35
|
-
// not look like it.
|
|
34
|
+
// (a packaged deployment's path), where a store genuinely inside the repository resolves to a string
|
|
35
|
+
// that does not look like it.
|
|
36
36
|
//
|
|
37
37
|
// A path that cannot be read falls back to its own lexical form, NOT to "contained". A store directory
|
|
38
38
|
// that does not exist yet is still misconfigured if it names another tree — the service would create it
|
|
@@ -187,7 +187,7 @@ export function makeCommittableAudit({ auditPath, repoRoot }) {
|
|
|
187
187
|
// lexical reading first and falls back to the symlink-resolved one; a path that cannot be read falls
|
|
188
188
|
// back to its own lexical form. The store DIRECTORY exists, so it resolves. The audit file does not
|
|
189
189
|
// exist yet at wiring time, so it does not — and under a store reached through a symlink (every
|
|
190
|
-
//
|
|
190
|
+
// packaged deployment's path) the resolved repo root and the unresolved file path have nothing
|
|
191
191
|
// in common. The guard one screen up would pass, this would answer `false`, no row would ever be
|
|
192
192
|
// staged, and NOTHING WOULD RED: the failure is a return value nobody asserts on. Measured, before
|
|
193
193
|
// the arm below existed: boot guard true, file-level test false, same two directories.
|
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
/** A line that opens a block rather than continuing prose: any ATX heading, or a `-`/`*` bullet. */
|
|
35
35
|
export const SUMMARY_BLOCK_LINE = /^[ \t]*(?:#{1,6}[ \t]|[-*][ \t])/m;
|
|
36
36
|
|
|
37
|
-
/** An H1 inside a summary — never a block, always a defect. See the header. */
|
|
38
|
-
export const SUMMARY_SECTION_BREAK = /^[ \t]*#[ \t]+\S/m;
|
|
39
|
-
|
|
40
37
|
/**
|
|
41
38
|
* Parse ONE chunk (a run of lines between blank lines) into typed blocks. PURE.
|
|
42
39
|
*
|
package/shared/trigger-lane.mjs
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
// that is fixed, which is precisely the class this file was written about. A comment asserting a
|
|
35
35
|
// structural fact outlives the fact, and the assertion is what makes it dangerous rather than merely old.
|
|
36
36
|
//
|
|
37
|
-
// Found by
|
|
37
|
+
// Found by driving `render-units.mjs --apply` into a scratch destination and reading
|
|
38
38
|
// `PORTAL_MCP_URL=http://127.0.0.1:18790` out of the result — driven, not read.
|
|
39
39
|
//
|
|
40
40
|
// ── THE CLASS ────────────────────────────────────────────────────────────────────────────────────────
|
package/shared/vacuous-pass.mjs
CHANGED
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
*/
|
|
47
47
|
export function nonEmpty(set, what) {
|
|
48
48
|
if (set == null) {
|
|
49
|
-
throw new Error(
|
|
49
|
+
throw new Error(`VACUOUS: ${what} is NULL — the set could not be built at all, so the `
|
|
50
50
|
+ "assertions below would execute ZERO times and this test would pass without checking anything.");
|
|
51
51
|
}
|
|
52
52
|
const n = typeof set.length === "number" ? set.length : (typeof set.size === "number" ? set.size : [...set].length);
|
|
53
53
|
if (n === 0) {
|
|
54
|
-
throw new Error(
|
|
54
|
+
throw new Error(`VACUOUS: ${what} is EMPTY, so the assertions below would execute ZERO times `
|
|
55
55
|
+ "and this test would pass without checking anything. If empty is the PASSING state here because "
|
|
56
56
|
+ "the set is violations rather than corpus, do not wrap it — declare it in EMPTY_IS_THE_PASS.");
|
|
57
57
|
}
|
package/shared/verb-shim.mjs
CHANGED
|
@@ -121,7 +121,7 @@ export function inspectShim(path, { installDir = INSTALL_DIR, read = readHead }
|
|
|
121
121
|
* AN EMPTY PATH ENTRY MEANS THE CURRENT DIRECTORY, and it is skipped deliberately: a form that resolves
|
|
122
122
|
* only from where the reader happens to be standing is the defect, not a way of satisfying it.
|
|
123
123
|
*/
|
|
124
|
-
export function pathPosition(dir, env = process.env, { exists } = {}) {
|
|
124
|
+
export function pathPosition(dir, env = process.env, { exists, same = () => false } = {}) {
|
|
125
125
|
const entries = String(env?.PATH ?? "").split(delimiter).filter(Boolean).map((d) => resolve(d));
|
|
126
126
|
const want = dir ? resolve(dir) : null;
|
|
127
127
|
const onPath = want !== null && entries.includes(want);
|
|
@@ -129,7 +129,9 @@ export function pathPosition(dir, env = process.env, { exists } = {}) {
|
|
|
129
129
|
if (onPath && exists) {
|
|
130
130
|
for (const d of entries) {
|
|
131
131
|
if (d === want) break;
|
|
132
|
-
|
|
132
|
+
// THE FIRST ONE FOUND IS THE ONE THE SHELL RUNS, so the search stops there either way; it shadows this
|
|
133
|
+
// install only when it is a different program. `same` says whether it leads to this install.
|
|
134
|
+
if (exists(join(d, "clearotron"))) { if (!same(join(d, "clearotron"))) shadowedBy = join(d, "clearotron"); break; }
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
return { onPath, shadowedBy };
|