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
package/driver/stages.mjs
CHANGED
|
@@ -14,9 +14,7 @@
|
|
|
14
14
|
// per-stage `stallSec` (the standalone engine's zero-streamed-tokens watchdog) so deep thinking is not
|
|
15
15
|
// false-killed by the tight global default. Models are friendly aliases; gateway.resolveModel() maps to full ids.
|
|
16
16
|
|
|
17
|
-
import {
|
|
18
|
-
import { driverRel } from "../shared/driver-dir.mjs"; //
|
|
19
|
-
import { researchAnsweredBlock, NO_SEARCH_RESULT, RESEARCH_AFTER_REVIEW_MD } from "./research-answers.mjs"; import { reviewResearchLine, RESEARCH_CHECKS_FILE } from "./research-checks.mjs"; import { savedFindingsBlock } from "./saved-findings-block.mjs"; // the research an earlier attempt got, and the findings it saved, handed to a later one
|
|
17
|
+
import { researchAnsweredBlock, NO_SEARCH_RESULT, RESEARCH_AFTER_REVIEW_MD } from "./research-answers.mjs"; import { reviewResearchLine } from "./research-checks.mjs"; import { savedFindingsBlock } from "./saved-findings-block.mjs"; // the research an earlier attempt got, and the findings it saved, handed to a later one
|
|
20
18
|
import { awaitsReadingTurn } from "../providers/_shared/plan-guards.mjs"; // — a guard the dictation misreads is a question the model never knows it may ask
|
|
21
19
|
import { isNonLatinTerm } from "../providers/_shared/script-form.mjs";
|
|
22
20
|
import { latinQuestionsOfRomanisedForm } from "./register-plan.mjs"; // sentence 3 — the Latin question a script question repeats
|
|
@@ -27,7 +25,6 @@ import { REGISTER_AXES, decideAxes } from "./coverage-ledger.mjs";
|
|
|
27
25
|
// — the digest dispatch asks the SAME question verify.mjs asks ("does this run owe a form or a
|
|
28
26
|
// prose table?") of the SAME file, so the instruction and the gate cannot disagree. Reading it here is
|
|
29
27
|
// the point: a boolean threaded through ctx would drift the moment one call site forgot to set it.
|
|
30
|
-
import { coverageFormStamp } from "./coverage-form-io.mjs";
|
|
31
28
|
// The unit note's transport owns its repair tail — see UNIT_NOTE_REPAIR_TAIL. Acyclic: that module
|
|
32
29
|
// imports node builtins and shared/driver-dir only.
|
|
33
30
|
import { UNIT_NOTE_REPAIR_TAIL } from "./register-unit-record.mjs";
|
|
@@ -38,10 +35,8 @@ import { meaningSweepReceiptsInstruction } from "./connotation-search.mjs"; //
|
|
|
38
35
|
import { frameworkFor, workedExamplesFor, materialBandPhrase } from "./framework.mjs"; import { methodDictation, inputsShape } from "./framework-method.mjs";
|
|
39
36
|
import { requiredScriptsFor } from "./registration-scripts.mjs"; // item 21 — which scripts a territory registers marks in
|
|
40
37
|
import { resolveTerritories, defaultJurisdictionsLine, narrowingOrderLine } from "./effective-scope.mjs"; // the ONE territory ladder (the geography stamp included) + the defaults-never-widen rule (2160)
|
|
41
|
-
import { editRepairTail } from "./repair-contract.mjs";
|
|
42
|
-
import { reportIdentityFor } from "./search-policy.mjs";
|
|
43
38
|
import { profileSelectionDirective } from "./profile-selection.mjs"; // lever 3 — driver selection // — the one product-name resolver
|
|
44
|
-
import { FINDINGS_SCHEMA_VERSION, OFF_FIELD_GROUNDS, POSITION_REQUIRED_DISPOSITIONS
|
|
39
|
+
import { FINDINGS_SCHEMA_VERSION, OFF_FIELD_GROUNDS, POSITION_REQUIRED_DISPOSITIONS } from "./findings-model.mjs"; // — the dictated findings contract version + off-field's declared grounds; — and the disposition vocabulary itself, which was typed out here while its two neighbours were interpolated
|
|
45
40
|
import { STATEMENT_CLAUSE_MAX } from "./findings-model.mjs"; // — the ask is dictated against the clause that clips it
|
|
46
41
|
// The ledger's closed vocabularies, so the dispatch cannot teach an order or a member the code refuses.
|
|
47
42
|
import { SCOPE_LAYERS, SCOPE_STATUSES } from "./scope-ledger.mjs";
|
|
@@ -134,203 +129,7 @@ export function synthesisRegisterRecordLines({ dispatchBlocks, paths: P, registe
|
|
|
134
129
|
];
|
|
135
130
|
}
|
|
136
131
|
|
|
137
|
-
|
|
138
|
-
// absolute paths with existsSync. Skill reads stay workspace-relative (skills/ lives in the agent workspace).
|
|
139
|
-
export function paths(runDir) {
|
|
140
|
-
const p = (f) => join(runDir, f);
|
|
141
|
-
return {
|
|
142
|
-
runDir,
|
|
143
|
-
matterContext: p("matter-context.md"),
|
|
144
|
-
inboundRequest: p("inbound-request.txt"), // A5 — the verbatim forwarded request, untouched
|
|
145
|
-
confirmationBrief: p("confirmation-brief.md"), // B1 — the intake brief exactly as sent to the requester
|
|
146
|
-
customerBind: p("customer-bind.json"), // B5b — late-bound applicant {customer, exclusions[]} dropped by the forwarding agent
|
|
147
|
-
variantManifest: p("variant-manifest.md"),
|
|
148
|
-
// WS2 (B2) — the structured sibling the register-plan compiler consumes
|
|
149
|
-
variantManifestModel: p("variant-manifest.json"),
|
|
150
|
-
scopeLedger: p("scope-ledger.json"), // CODE-DERIVED from the manifest's `### Scope ledger` (frame-omission design)
|
|
151
|
-
formNeighbourhood: p("form-neighbourhood.json"), // CODE-DERIVED mechanical FORM band (edit-1 ∪ phonetic-family ∪ visual-confusable ∪ transliteration ∪ spacing-punctuation) — the model-free variant floor the register funnel searches, plus the `variant_floor` block marking which terms code generated and which the model added
|
|
152
|
-
// Property 1 — the frame-STARVED cold re-derivation. The STRUCTURED model is the stage's ONLY output
|
|
153
|
-
//: the prose twin `blind-frame.md` was retired because nothing in the repo ever read it — not
|
|
154
|
-
// frame-diff, not the driver, not a renderer, on any run type. Archived runs keep their copy on disk;
|
|
155
|
-
// no code path opens it, so replay over them is unaffected.
|
|
156
|
-
blindFrameModel: p("blind-frame-model.json"), // the frame-diff and the reopen gate consume this
|
|
157
|
-
frameDiff: p("frame-diff.md"), // the blind-model-vs-actual-scope diff (prose reasoning)
|
|
158
|
-
frameDiffModel: p("frame-diff.json"), // its STRUCTURED reopen directives + dominant_element_gap (CODE consumes this)
|
|
159
|
-
commonLaw: p("common-law-findings.md"),
|
|
160
|
-
commonLawGrid: p("common-law-grid.json"), // machine receipts — the grid call's stdout JSON, saved verbatim
|
|
161
|
-
// A1 SPLIT — the per-half stage artifacts (half ∈ {"a","b"}): each concurrent half-grid member reads its
|
|
162
|
-
// own spec sidecar, writes its own findings + ledger, and the driver merges them into the canonical
|
|
163
|
-
// commonLaw/commonLawGrid pair above (common-law-receipts.mergeGrids / mergeCommonLawFindings).
|
|
164
|
-
commonLawHalf: (half) => p(`common-law-findings.half-${half}.md`),
|
|
165
|
-
commonLawGridHalf: (half) => p(`common-law-grid.half-${half}.json`),
|
|
166
|
-
// — the seat's meaning-sweep dispositions, STRUCTURED. One row per recorded query: the query, the
|
|
167
|
-
// id of the receipt it was ruled on, and the ruling. The prose disposition table in the canonical
|
|
168
|
-
// findings file is RENDERED from this by the driver, so no identifier is ever retyped to prove a
|
|
169
|
-
// receipt was read — the failure that cost ten of fourteen refusals on the 2026-08-06 evidence.
|
|
170
|
-
commonLawDispositionsHalf: (half) => p(`common-law-dispositions.half-${half}.json`),
|
|
171
|
-
commonLawDispositions: p("common-law-dispositions.json"),
|
|
172
|
-
// The CANONICAL grid spec the driver dictates (the validator/receipts join and the coverage-closure
|
|
173
|
-
// recompute all key on it). It was the one grid artifact reached by a path LITERAL rather than
|
|
174
|
-
// through paths() — which is how the --experiment sandbox came to have no idea it existed, and why
|
|
175
|
-
// the stageInputs drift guard, whose matcher is derived from these paths, could not see it
|
|
176
|
-
// either. Declared here, used from here.
|
|
177
|
-
gridSpec: p(driverRel("grid-spec.json")),
|
|
178
|
-
gridSpecHalf: (half) => p(driverRel(`grid-spec.half-${half}.json`)),
|
|
179
|
-
// — which common-law path this run took and which term of the selector decided it. Written on
|
|
180
|
-
// EVERY run, split or not: the 2026-08-12 round could not explain why two builds took different
|
|
181
|
-
// paths because the unsplit path emitted nothing at all, and "no event" is not a record.
|
|
182
|
-
commonLawPath: p(driverRel("common-law-path.json")),
|
|
183
|
-
// Closure/frame-reopen top-ups: the driver dictates a supplementary grid SPEC (its own output_path)
|
|
184
|
-
// and the PLUGIN writes the supplementary LEDGER — the same deterministic write the initial gather
|
|
185
|
-
// uses, never an agent hand-append. `tag` names the lane (only "closure" today; frame-reopen source
|
|
186
|
-
// channels stay prose/byte-diff). Split → per-half siblings the extended readHalfLedger folds; non-
|
|
187
|
-
// split (half=null) → a sibling of the canonical ledger the driver folds via mergeGrids in code. The
|
|
188
|
-
// driver owns these names so the agent never invents (and never corrupts) a canonical/half ledger.
|
|
189
|
-
commonLawGridSupp: (half, tag) => p(half ? `common-law-grid.half-${half}.supp-${tag}.json` : `common-law-grid.supp-${tag}.json`),
|
|
190
|
-
gridSpecSupp: (half, tag) => p(driverRel(half ? `grid-spec.half-${half}.supp-${tag}.json` : `grid-spec.supp-${tag}.json`)),
|
|
191
|
-
registerUnit: (axis) => p(join("register-units", `${axis}.md`)),
|
|
192
|
-
// judgment-relocation (2026-06-23): the COMPLETE NAMED BAND the funnel emits per axis (a JSON ARRAY of
|
|
193
|
-
// {state:"enumerated"|"incomplete", …} blocks from register_enumerate — see named-band.mjs). This is what
|
|
194
|
-
// crosses the lifted firewall: the real material judgment reads, NOT a pre-pruned digest.
|
|
195
|
-
registerBand: (axis) => p(join("register-units", `${axis}-band.json`)),
|
|
196
|
-
registerNamedBand: p("register-named-band.json"), // the driver-merged UNION of every axis band (mergeNamedBands)
|
|
197
|
-
// — the SLIM HIT LIST, a third projection of the merged band, written in the same
|
|
198
|
-
// pass as the shape and the owner screen and for the same reason: a stage must never read a list
|
|
199
|
-
// older than the band it was derived from.
|
|
200
|
-
registerHitList: p("register-hit-list.json"),
|
|
201
|
-
// PR-8 (reading layer) — the deterministic band SHAPE, derived by the driver after every named-band
|
|
202
|
-
// re-merge (band-shape.mjs): mechanical tiers + the unconditional floors + census + blind spots.
|
|
203
|
-
// Judgment reads the md whole (band_shape tool / <256KB Read) and looks records up via the band
|
|
204
|
-
// tools; machine checks keep reading the complete band above.
|
|
205
|
-
bandShape: p(driverRel("band-shape.json")),
|
|
206
|
-
bandShapeMd: p("band-shape.md"),
|
|
207
|
-
researchChecks: p(RESEARCH_CHECKS_FILE), // the research behind the findings' use checks, written by the writer's record for the review
|
|
208
|
-
readingLog: p(driverRel("reading-log.jsonl")), // band-server appends every lookup — audit.md "# Reading audit" renders from it
|
|
209
|
-
// P2-A (the recall spine) — three driver-derived sidecars:
|
|
210
|
-
// the retrieved→judgment reconciliation (recall-reconciliation.mjs join, re-derived after EVERY
|
|
211
|
-
// digest pass; an unended position ships named and clamps the verdict), the exact-identity positions projection (charter
|
|
212
|
-
// P2d — same right → one position, territories listed; the band stays per-registration), and the
|
|
213
|
-
// read-before-rate join (charter P2c — verified-from-record stamps × _records × reading log).
|
|
214
|
-
recallReconciliation: p(driverRel("recall-reconciliation.json")),
|
|
215
|
-
// — the placement→digest carry join: every candidate placement-inquiry placed ends on a
|
|
216
|
-
// findings surface, in a Negative-results drop row, or in a Disagreement-resolutions row, and
|
|
217
|
-
// the ones that end nowhere are counted BY NAME. The band-keyed joins above cannot see a
|
|
218
|
-
// common-law-shaped placement (records:[] ⇒ no uri ⇒ no band row), which is the class of
|
|
219
|
-
// candidate the digest drops silently. Disclosure only — it never re-tiers and never gates.
|
|
220
|
-
placementCarry: p(driverRel("placement-carry.json")),
|
|
221
|
-
surfaceDuty: p(driverRel("surface-duty.json")), // item 3
|
|
222
|
-
// — THE FLOOR DUTY. Every floor row (live, in-class, identical/near-identical) either comes
|
|
223
|
-
// back on the placement form by record id or it does not, and until this artifact existed nothing
|
|
224
|
-
// asked. Measured on two delivered runs: 45 of 207 and 99 of 225 never reached the form, all live.
|
|
225
|
-
// Disclosure only — it never re-tiers, never gates and never sends a followup.
|
|
226
|
-
floorDuty: p(driverRel("floor-duty.json")),
|
|
227
|
-
// — the RETRIEVAL→findings trace, one row per retrieved register record: did it become a
|
|
228
|
-
// finding, and if not, which seam it stopped at, on what ground, and WHERE THAT GROUND WAS
|
|
229
|
-
// AUTHORED. The carry join above starts one seam too late — it can only speak about candidates
|
|
230
|
-
// placement already selected — and the seam that lost the jx lane's own target (ten banded 澜珀
|
|
231
|
-
// registrations, four REGISTERED, none reaching any placement) is the one before it. Disclosure
|
|
232
|
-
// only: it never re-retrieves, never keeps a record the funnel dropped, and never gates.
|
|
233
|
-
recordCarry: p(driverRel("record-carry.json")),
|
|
234
|
-
// — the common-law path's own trace. A SIBLING of record-carry.json, not a widening: the two
|
|
235
|
-
// join on different keys (a canonical `/mark` uri there, a canonicalised URL here) and one file
|
|
236
|
-
// holding both is how the key decision gets reversed later.
|
|
237
|
-
commonLawCarry: p(driverRel("commonlaw-carry.json")),
|
|
238
|
-
jxZhCarry: p(driverRel("jx", "zh-carry.json")),
|
|
239
|
-
jxZhGrid: p(driverRel("jx", "zh-grid.json")),
|
|
240
|
-
registerPositions: p(driverRel("register-positions.json")),
|
|
241
|
-
// — RENAMED from read-verification.json with the pass it recorded. The old artifact was the
|
|
242
|
-
// receipt of a model turn that re-asserted its own stamps; this is the machine's own derivation
|
|
243
|
-
// record: every meter whose `verified-from-record` claim the reading log could not support, and
|
|
244
|
-
// what it became. Written on EVERY settle, empty arrays and all, so a reader can tell "nothing was
|
|
245
|
-
// demoted" from "nobody looked".
|
|
246
|
-
basisDerivation: p(driverRel("basis-derivation.json")),
|
|
247
|
-
// P2-B (charter P2b) — the owner×element screen's own receipt: one row per watchlist owner
|
|
248
|
-
// saying whether its slice enumerated, what it attributed, or the mechanical reason it did NOT
|
|
249
|
-
// run. A projection (plan × plan-execution × band), never a coverage authority.
|
|
250
|
-
ownerScreen: p(driverRel("owner-screen.json")),
|
|
251
|
-
placement: p("placement-recommendations.md"),
|
|
252
|
-
// B2 (charter 2026-07-31) — the STRUCTURED mirror of placement's four tier sections: one entry per
|
|
253
|
-
// candidate {mark, owner, jurisdiction, records[], tier, reason} (reason = a short paragraph, the
|
|
254
|
-
// stated reasoning downstream argues with — see placement-model.mjs). The rulings tail (band
|
|
255
|
-
// reconciliation, disagreements, coverage rulings, open questions) stays PROSE in the md above.
|
|
256
|
-
placementModel: p("placements.json"),
|
|
257
|
-
// — the seat's own form. `placements.json` beside it is now DRIVER-RENDERED from this file's
|
|
258
|
-
// accumulated rows, so the two are no longer two copies of one judgment: this is what the seat writes
|
|
259
|
-
// and that is what the driver publishes.
|
|
260
|
-
placementForm: p("placement-form.json"),
|
|
261
|
-
// — placement's set-asides that stand on the run's files, as the reading step and the writer are told them: one
|
|
262
|
-
// entry per decision, with its ground, the records it covers and its exceptions. Driver-written after every
|
|
263
|
-
// placement pass, with no clock in it, so it changes only when a decision does; both stages declare it.
|
|
264
|
-
placementDecisions: p(driverRel("placement-decisions.json")),
|
|
265
|
-
// — the driver's own flag-by-flag account of the corrective pass: which findings each reviewer
|
|
266
|
-
// flag names, and whether any of them actually moved. Handed to the recheck as data so it argues
|
|
267
|
-
// with evidence rather than re-reading two documents to re-derive what the driver already knows.
|
|
268
|
-
correctionsApplied: p(driverRel("corrections-applied.json")),
|
|
269
|
-
registerFindings: p("register-findings.md"),
|
|
270
|
-
registerCoverageLedger: p("register-coverage-ledger.json"), // WS-A machine contract — the digest's JSON mirror of the Coverage ledger
|
|
271
|
-
skepticFlags: p("skeptic-flags.md"),
|
|
272
|
-
frameReopenReceipt: p(driverRel("frame-reopen.json")), // A3 — the reopen receipt is a first-class judgment input
|
|
273
|
-
// (t1cd) — the digest-trigger funnel's durable work queue (digest-queue.mjs): mechanisms
|
|
274
|
-
// mint re-digest work here instead of calling the digest; written atomically on every mint/flush
|
|
275
|
-
// and loaded on resume BEFORE the trigger blocks run, so per-mechanism bounds survive resumes.
|
|
276
|
-
digestQueue: p(driverRel("digest-queue.json")),
|
|
277
|
-
// WS2 (B3) — the frozen deterministic search plan + its execution receipt + the
|
|
278
|
-
// code-authoritative instructed scope (what the JOB fields said, before any model breathed on them)
|
|
279
|
-
registerPlan: p(driverRel("register-plan.json")),
|
|
280
|
-
enforcerSignals: p(driverRel("enforcer-signals.json")), // D2 — provider enforcement telemetry (aim-attention)
|
|
281
|
-
// crowd-context (2026-07-22) — driver-gathered crowded-field EVIDENCE over material un-enumerated
|
|
282
|
-
// slices (per-term live counts, in-scope-class counts, the fully-enumerated exact/near-identical
|
|
283
|
-
// subset). OPTIONAL synthesis input: evidence to the coverage judgment, never a gate; absent on any
|
|
284
|
-
// run without a qualifying slice (or whose evidence pass failed) and the run is unaffected.
|
|
285
|
-
crowdContext: p(driverRel("crowd-context.json")),
|
|
286
|
-
crowdContextMd: p("crowd-context.md"), // the readable mirror the lawyer actually reads
|
|
287
|
-
planExecution: p(driverRel("plan-execution.json")),
|
|
288
|
-
// What was DECIDED about the receipt's deferrals, and when — kept apart from plan-execution.json,
|
|
289
|
-
// which is an execution-FACTS receipt several validators fail-closed on. See envelope-settle.mjs.
|
|
290
|
-
envelopeDecision: p(driverRel("envelope-decision.json")),
|
|
291
|
-
instructedScope: p(driverRel("instructed-scope.json")), defaultTerritories: p(driverRel("default-territories.json")), // the stored account defaults the engine cannot search — written at intake, read by no stage (pipeline.mjs writes it)
|
|
292
|
-
// compute-don't-author — the per-class scope truth (scope-facts.mjs): instructed × frozen plan ×
|
|
293
|
-
// band states × coverage ledger. The masthead classes/coverage_line are stamped FROM this sidecar.
|
|
294
|
-
scopeFacts: p(driverRel("scope-facts.json")),
|
|
295
|
-
// D1 — arms the registerFindings off-enum status gate; — the SAME sentinel carries the coverage
|
|
296
|
-
// form's era stamp (`form_required`/`form_path`). One file, two facts, written by runDigest before
|
|
297
|
-
// every digest pass it dispatches and BEFORE the form itself, so a failed form write fails closed.
|
|
298
|
-
coverageEnum: p(driverRel("coverage-enum.json")),
|
|
299
|
-
// — the seat-facing coverage form. DICTATED here so the stray-artifact sweep knows the
|
|
300
|
-
// driver put it there; the accumulator beside it in `_driver/` is derived from this name.
|
|
301
|
-
narrative: p("narrative.md"),
|
|
302
|
-
findings: p("findings.json"), // Phase 1 — the per-finding machine contract; synthesis mirrors its RATED findings into this JSON, the report/Excel render consume it
|
|
303
|
-
caseLaw: p("case-law-findings.md"),
|
|
304
|
-
// — the RETRIEVAL RECORD beside the prose. Until this existed, `case-law-findings.md` was the
|
|
305
|
-
// only artifact case law produced and its whole contract was a non-empty check, so "the sweep ran"
|
|
306
|
-
// and "the dive read something" were unanswerable and the record trace had nothing to join to.
|
|
307
|
-
caseLawCitations: p("case-law-citations.json"),
|
|
308
|
-
seniorEyeReview: p("senior-eye-review.md"),
|
|
309
|
-
// delivery contract (file-gated; rendered to the page by the pure-code publish step)
|
|
310
|
-
report: p("report.md"), // CODE (assembleReportMd) — the assembled client report (overview + per-card)
|
|
311
|
-
reportOverview: p("report-overview.md"), // CODE (report-overview-record.mjs) since conversion 4 — the driver renders the shell off the record_report_overview call; NO card bodies
|
|
312
|
-
reportCardsDir: p("report-cards"), // B1 — per-finding card files (one isolated LLM call each)
|
|
313
|
-
reportCard: (ord) => p(join("report-cards", `${ord}.md`)), // B1 — LLM (report-card): ONE card from finding[ord]'s own record
|
|
314
|
-
audit: p("audit.md"), // CODE (buildAuditMd from the spine) — full audit record
|
|
315
|
-
// THE SEAT WRITES THIS ONE, so it cannot live in `_driver/`. That write boundary makes
|
|
316
|
-
// `<runDir>/_driver/**` a tree a seat may NEVER write into (`authorityTrees()` in authority-trees.mjs, `live: true`) —
|
|
317
|
-
// and this stage's dispatch handed the seat a path inside it. The deny fires, the seat writes the
|
|
318
|
-
// only place it can (the run root), the validator looks in `_driver/` and reports `missing_file`,
|
|
319
|
-
// and the escalation ladder burns out on an artifact that exists. Two consecutive rounds died this
|
|
320
|
-
// way with 3 attempts each. Of the 27 P paths under `_driver/`, this was the ONLY stage output —
|
|
321
|
-
// every other one is driver-authored, which is what that tree is for.
|
|
322
|
-
doubtClosure: p("doubt-closure.md"), // LLM (doubt-closure) — one dictated SETTLED/OPEN line per stitch-open doubt; code re-verifies every quote
|
|
323
|
-
// RETIRED STAGE, ARCHIVE READ HANDLE (2026-08-01). No stage writes this any more — the
|
|
324
|
-
// `client-summary` stage is deleted. The path constant is KEPT because it is how archived runs'
|
|
325
|
-
// client-summary.md is still reached: mcp-server's read_artifact (name "clientSummary"),
|
|
326
|
-
// lib/coverage.mjs artifactStatus, and lib/brief.mjs (which prefers the client-voiced summary over
|
|
327
|
-
// the report cards) all resolve it through paths(). Deleting the entry would not delete those
|
|
328
|
-
// reads — it would leave them resolving `undefined`, which existsSync() turns into a silent miss
|
|
329
|
-
// rather than an error, so the archive would quietly read as having no summary.
|
|
330
|
-
clientSummary: p("client-summary.md"),
|
|
331
|
-
emailBody: p("email-body.md"), // CODE (composeEmailHtml) — the inline-HTML reply (review headline + client table + link)
|
|
332
|
-
};
|
|
333
|
-
}
|
|
132
|
+
export { paths } from "./run-record.mjs";
|
|
334
133
|
|
|
335
134
|
// Forwarding agent → the chat number it is bound to. A ROUTING KEY, and since that is ALL it is:
|
|
336
135
|
// nothing in this repo sends a message, so this table's only job is to put a `whatsappTo` field on the
|
|
@@ -502,11 +301,11 @@ const PROVIDER = REGISTER_PROVIDER;
|
|
|
502
301
|
// the provider half is this label. It was a driver fact the seat retyped out of the dispatch; the driver
|
|
503
302
|
// stamps it now, and it reads the label from here rather than re-deriving it from CLEAROTRON_DATABASE
|
|
504
303
|
// — a second derivation of a provider name is how a masthead ends up naming a register the run never used.
|
|
505
|
-
export const
|
|
506
|
-
label:
|
|
304
|
+
export const providerMeta = (register) => PROVIDERS[register] ?? { // a run's register (ctx.register), or the machine's
|
|
305
|
+
label: register ?? "(none configured)",
|
|
507
306
|
skillDoc: null,
|
|
508
307
|
hasPublicRecordUrl: true,
|
|
509
|
-
};
|
|
308
|
+
}; export const PROVIDER_META = providerMeta(PROVIDER);
|
|
510
309
|
|
|
511
310
|
// ---- message builders (faithful to the spawn briefs in phase2-execution.md; the leaf reads the skill for detail) ----
|
|
512
311
|
export const lines = (...a) => a.filter(Boolean).join("\n");
|
|
@@ -724,7 +523,7 @@ export const OWNER_SWEEP_STEERING = `OWNER COVERAGE on this lane: an owner's mar
|
|
|
724
523
|
// judgment reads the deterministic SHAPE whole and looks up the records it chooses through the band
|
|
725
524
|
// tools, on the record — every lookup lands in the run's reading audit. This replaces the improvised,
|
|
726
525
|
// unlogged shell-slicing of a multi-megabyte file that no Read call could ever take whole.
|
|
727
|
-
export const
|
|
526
|
+
export const FLOOR_FATE_ORDER = "Every floor has a fate on the form."; export const BAND_READING_HEAD = `THE REGISTER BAND — how you read it: call `+"`band_shape`"+` FIRST (the deterministic shape of the merged band: totals, mechanical similarity tiers, THE FLOORS — every live in-class identical/near-identical record, each marked on its line in the band — class/status/registry/recency census, owner concentrations, the `+"`incomplete`"+` crowd descriptors, and the blind spots the shape mechanically cannot see). A large shape is served in parts, each naming the next call. Then pull exactly the records and slices your reasoning needs via `+"`band_lookup`"+` (filter by owner / class / tier / qid / slice / text / goods; matching un-enumerated crowds ride along so a counted-only zone can never read as a clean) and `+"`band_record`"+` (the official registry record fetched into this run, when one exists).`; export const BAND_READING_STANDARDS = `A crowd descriptor is an open slice for judgment to act on (cleared / material-gap), never a cleared slice by default; the shape's tiers are mechanical string classes, never a relevance or risk call — both of those remain yours. Do NOT slice band or shape files with shell tools: the band tools are the reading layer, and they keep the reading on the record.`; export const BAND_READING_CONTRACT = `${BAND_READING_HEAD} ${FLOOR_FATE_ORDER} ${BAND_READING_STANDARDS}`;
|
|
728
527
|
|
|
729
528
|
/**
|
|
730
529
|
* `borderline` on a placement entry is an INTERNAL adjudication flag: placement declaring that its own
|
|
@@ -913,12 +712,12 @@ const inputsForReference = (paths, { changedInputs = null } = {}) => changedInpu
|
|
|
913
712
|
// SKILL.md chose its own framing on purpose — matter-frame's is explicitly "enrichment, not authority".
|
|
914
713
|
//
|
|
915
714
|
// So these are declared here, measured the same way, and emitted into no prompt. `resolveAlsoReads` has
|
|
916
|
-
//
|
|
715
|
+
// two consumers, both tests: driver/test/instruction-read-map.mjs and a-skill-that-points-at-a-sibling.test.mjs.
|
|
917
716
|
//
|
|
918
717
|
// DECLARED PER SKILL, NOT PER STAGE, because that is the shape of the fact. Two stages read
|
|
919
718
|
// clearance-register/SKILL.md and both therefore carry its companions; declaring the pair twice is how the
|
|
920
719
|
// two drift. A stage picks these up by reading the SKILL.md they belong to, which is also what makes the
|
|
921
|
-
// guard in skill-
|
|
720
|
+
// guard in a-skill-that-points-at-a-sibling.test.mjs able to check the list against the documents themselves.
|
|
922
721
|
export const SKILL_COMPANIONS = Object.freeze({
|
|
923
722
|
"matter-frame": Object.freeze(["watchlist-reference.md"]),
|
|
924
723
|
"clearance-common-law": Object.freeze(["perplexity-prompts.md"]),
|
|
@@ -963,6 +762,8 @@ export function composeFollowup(name, ctx, { followup, extra = null, inputs = []
|
|
|
963
762
|
return lines(
|
|
964
763
|
skills.length ? readsForReference(skills) : "",
|
|
965
764
|
followup,
|
|
765
|
+
// The rules a stage's opening message states for every session it opens, which a follow-up is too.
|
|
766
|
+
...(STAGES[name]?.standing ?? []),
|
|
966
767
|
clearedConstraint(cleared),
|
|
967
768
|
extra || "",
|
|
968
769
|
// A fresh session of the reading step or the writer is given placement's accepted set-asides as its first
|
|
@@ -1061,6 +862,24 @@ const reportOverviewSkillReads = ({ profile }) =>
|
|
|
1061
862
|
["skills/clearance-search/synthesis-rules.md", SPINE_DOC, frameworkFor(profile), "skills/clearance-search/delivery-contract.md", REPORT_PROSE];
|
|
1062
863
|
const reportCardSkillReads = ({ profile }) =>
|
|
1063
864
|
["skills/clearance-search/delivery-contract.md", frameworkFor(profile), REPORT_PROSE];
|
|
865
|
+
// THE REVIEW READS WHAT IT ENFORCES. Its manual judges a rating on the framework's own method, at the framework's
|
|
866
|
+
// lowest band and under the framework in force, and its standing lines hold a pharma matter to the field module. It was
|
|
867
|
+
// handed none of them: on a test run with Codex, a review that had not been given the framework went looking for one in
|
|
868
|
+
// folders outside its run. So it reads the writer's own resolved framework and the shared reasoning, and the field module
|
|
869
|
+
// on a pharma matter. The writer's level-specific rules (synthesis-rules.md) and its worked examples stay the writer's.
|
|
870
|
+
const reviewSkillReads = ({ profile, job }) => [
|
|
871
|
+
"skills/narrative-refutation/SKILL.md", frameworkFor(profile), SPINE_DOC,
|
|
872
|
+
...(pharmaMatter(job) ? ["skills/clearance-search/field-doctrine-pharma.md"] : []),
|
|
873
|
+
REPORT_PROSE,
|
|
874
|
+
];
|
|
875
|
+
|
|
876
|
+
// Standing rules a stage's opening message states and every follow-up session repeats (`standing` on the stage,
|
|
877
|
+
// read by composeFollowup). Approved word for word on 2026-11-11.
|
|
878
|
+
// The writer's web checks go through the research tool, which keeps the record and the limits. On a test run with Codex,
|
|
879
|
+
// a writer also tried to fetch pages with a script of its own.
|
|
880
|
+
export const WEB_EVIDENCE_ONLY_THROUGH_RESEARCH = "Web evidence comes only through `perplexity_research`; do not fetch pages with a shell command or a script.";
|
|
881
|
+
// The review applies the framework it is handed, and says so when an input is missing rather than looking elsewhere.
|
|
882
|
+
export const REVIEW_APPLIES_THE_SUPPLIED_FRAMEWORK = "Apply the frozen risk framework supplied for this run. If it or another required instruction is missing or unreadable, report the missing input; do not search other folders for a replacement.";
|
|
1064
883
|
|
|
1065
884
|
// spec-48 C1 — the territories whose legal system scopes the marketplace-risk directive, and whose
|
|
1066
885
|
// registration scripts set the script floor. THE SHARED LADDER (effective-scope.mjs resolveTerritories),
|
|
@@ -1757,6 +1576,8 @@ export const STAGES = {
|
|
|
1757
1576
|
},
|
|
1758
1577
|
|
|
1759
1578
|
"common-law": {
|
|
1579
|
+
// Every stage that holds the research tool takes its web evidence through it alone (approved 2026-11-11; see synthesis).
|
|
1580
|
+
standing: Object.freeze([WEB_EVIDENCE_ONLY_THROUGH_RESEARCH]),
|
|
1760
1581
|
// stallSec is REQUIRED here, like the sibling sweep stage `register-unit` (timeoutSec 1200 / stallSec
|
|
1761
1582
|
// 900): common-law's first action is the long perplexity_research grid sweep, during which the model
|
|
1762
1583
|
// streams 0 tokens while blocked on the tool. Without a per-stage override it falls back to the global
|
|
@@ -1888,7 +1709,7 @@ export const STAGES = {
|
|
|
1888
1709
|
why: "The path is `out: (P) => P.commonLaw`, interpolated into the message by the driver; the summary's counts are the ledger's. No token speaks about the return message at all.",
|
|
1889
1710
|
},
|
|
1890
1711
|
},
|
|
1891
|
-
message: ({ paths: P,
|
|
1712
|
+
message: ({ paths: P, profile, gridSpecPath, job, intakeAsks }) => {
|
|
1892
1713
|
// C1 — weight the sweep where use creates RIGHTS (data-derived; "" when unknown)
|
|
1893
1714
|
const systemScope = marketplaceScopeDirective(scopeTerritories(job, profile));
|
|
1894
1715
|
// T9 (A2) — the OWNING stage finally receives its committed intake checks (the VENZY
|
|
@@ -1905,52 +1726,28 @@ export const STAGES = {
|
|
|
1905
1726
|
// WRITES common-law-grid.json from the API response (no truncation, no dropped/mis-keyed cells), and
|
|
1906
1727
|
// the model only judges the returned candidates. This is the structural cure for both the dense-marketplace
|
|
1907
1728
|
// truncation and the NOVA PULSE dropped-cell failures (no tier bump would fix the output ceiling).
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
asksBlock,
|
|
1914
|
-
`Run the marketplace sweep via the DETERMINISTIC grid: call perplexity_research with enable_sandbox:true and grid_spec_path: ${gridSpecPath}. The tool runs EXACTLY the dictated term × platform grid and WRITES the complete ledger to ${P.commonLawGrid} itself.`,
|
|
1915
|
-
`Do NOT author the grid program, do NOT save ${P.commonLawGrid} yourself, and do NOT re-emit the grid JSON in your message (re-emitting is exactly what truncated/dropped cells before). The tool returns only the candidate hits that need judgment.`,
|
|
1916
|
-
`Judge each returned candidate into the fixed taxonomy and write your findings file to ${P.commonLaw} with its Findings, Negative-results matrix, Coverage ledger, and Audit trail sections. The driver validates grid completeness from the ledger the tool wrote — never from your prose.`,
|
|
1917
|
-
// P2-C (Round-2 §8b leg 2) — receipts disposition is a dictated obligation, not skill-prose-only
|
|
1918
|
-
// (the §7 lesson: prose-only contracts get skipped under output pressure; the evidence run listed
|
|
1919
|
-
// its queries and still asserted clean past a recorded cultural-criticism receipt).
|
|
1920
|
-
// — the obligation is unchanged; what was deleted is the TRANSCRIPTION it used to demand
|
|
1921
|
-
// ("the query VERBATIM, one recorded result … title or URL copied exactly"). The driver writes
|
|
1922
|
-
// the form; this names it and the two fields the seat owns, and nothing else.
|
|
1923
|
-
meaningSweepReceiptsInstruction(),
|
|
1924
|
-
CROSS_CHECK_HANDOFF,
|
|
1925
|
-
writeReturn(P.commonLaw),
|
|
1926
|
-
);
|
|
1927
|
-
}
|
|
1928
|
-
// WS-B: the platform grid is DICTATED from the customer profile (single source — the receipts
|
|
1929
|
-
// gate's identity join validates the saved ledger against this same list); the batch ceiling is
|
|
1930
|
-
// derived from the profile's cell floor (Ember Guard 2026-06-12: a 224-cell single grid call
|
|
1931
|
-
// truncated mid-matrix — ~14×7=98 cells/call is the proven-safe budget, scaled per profile).
|
|
1932
|
-
const batch = profile?.batchSize ?? 14;
|
|
1729
|
+
// THE SWEEP RUNS ONLY FROM THE SPEC. A run that sends this stage always has one: every profile carries a platforms
|
|
1730
|
+
// list (profiles.mjs, validateProfileShape), a matter with no variants stops at intake, and a spec that cannot be
|
|
1731
|
+
// derived stops the run (deriveGridSpec). The branch that ordered a hand-written grid program for a run without one
|
|
1732
|
+
// is gone with the program itself, which the manual no longer teaches; a dispatch is pointed at the run's own spec.
|
|
1733
|
+
const specPath = gridSpecPath ?? P.gridSpec;
|
|
1933
1734
|
return lines(
|
|
1934
1735
|
reads(["skills/clearance-common-law/SKILL.md"]),
|
|
1935
1736
|
`Inputs: variant manifest ${P.variantManifest}; matter frame ${P.matterContext}.`,
|
|
1936
1737
|
systemScope,
|
|
1937
1738
|
asksBlock,
|
|
1938
|
-
`Run the marketplace sweep
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
] : []),
|
|
1949
|
-
// Machine receipts (post-mortem §1b): the gate validates the saved stdout JSON by exact join on the
|
|
1950
|
-
// keys above — not by re-reading the markdown matrix — whenever this file exists.
|
|
1951
|
-
`MACHINE RECEIPTS (MANDATORY): save the grid call's stdout JSON VERBATIM to ${P.commonLawGrid} — the single stdout object, or a JSON ARRAY of the per-batch stdout objects in batch order when batched. Copy the JSON exactly as the tool returned it (no reformatting, no re-typing, no judging); the driver validates grid completeness from THIS file.`,
|
|
1952
|
-
) : "",
|
|
1739
|
+
`Run the marketplace sweep via the DETERMINISTIC grid: call perplexity_research with enable_sandbox:true and grid_spec_path: ${specPath}. The tool runs EXACTLY the dictated term × platform grid and WRITES the complete ledger to ${P.commonLawGrid} itself.`,
|
|
1740
|
+
`Do NOT author the grid program, do NOT save ${P.commonLawGrid} yourself, and do NOT re-emit the grid JSON in your message (re-emitting is exactly what truncated/dropped cells before). The tool returns only the candidate hits that need judgment.`,
|
|
1741
|
+
`Judge each returned candidate into the fixed taxonomy and write your findings file to ${P.commonLaw} with its Findings, Negative-results matrix, Coverage ledger, and Audit trail sections. The driver validates grid completeness from the ledger the tool wrote — never from your prose.`,
|
|
1742
|
+
// P2-C (Round-2 §8b leg 2) — receipts disposition is a dictated obligation, not skill-prose-only
|
|
1743
|
+
// (the §7 lesson: prose-only contracts get skipped under output pressure; the evidence run listed
|
|
1744
|
+
// its queries and still asserted clean past a recorded cultural-criticism receipt).
|
|
1745
|
+
// — the obligation is unchanged; what was deleted is the TRANSCRIPTION it used to demand
|
|
1746
|
+
// ("the query VERBATIM, one recorded result … title or URL copied exactly"). The driver writes
|
|
1747
|
+
// the form; this names it and the two fields the seat owns, and nothing else.
|
|
1748
|
+
meaningSweepReceiptsInstruction(),
|
|
1953
1749
|
CROSS_CHECK_HANDOFF,
|
|
1750
|
+
WEB_EVIDENCE_ONLY_THROUGH_RESEARCH,
|
|
1954
1751
|
writeReturn(P.commonLaw),
|
|
1955
1752
|
);
|
|
1956
1753
|
},
|
|
@@ -1965,6 +1762,8 @@ export const STAGES = {
|
|
|
1965
1762
|
// single-member deterministic branch above. The driver merges the two halves' findings + ledgers into
|
|
1966
1763
|
// the canonical files in code (pipeline.mjs), so downstream never sees half artifacts.
|
|
1967
1764
|
"common-law-half": {
|
|
1765
|
+
// Every stage that holds the research tool takes its web evidence through it alone (approved 2026-11-11; see synthesis).
|
|
1766
|
+
standing: Object.freeze([WEB_EVIDENCE_ONLY_THROUGH_RESEARCH]),
|
|
1968
1767
|
// Same resourcing rationale as "common-law" above: the sweep streams 0 tokens while blocked on the
|
|
1969
1768
|
// grid tool, so the stall override is REQUIRED. The wall stays 2250 even though a half grid is ~half
|
|
1970
1769
|
// the cells — the wall exists to stop killing legitimate work, and a dense-matter half plus the
|
|
@@ -2095,6 +1894,7 @@ export const STAGES = {
|
|
|
2095
1894
|
// half rather than on the obligations.
|
|
2096
1895
|
meaningSweepReceiptsInstruction({ lead: "MEANING-SWEEP RECEIPTS — THIS IS THE WORK.", findingsTail: false }),
|
|
2097
1896
|
`Then write ${P.commonLawHalf(half)}: a short report of the sweep under a "Findings" heading — every LOADED reading as its own finding, with the receipt behind it — and an "Audit trail" section saying which queries ran and what each returned. The driver renders the disposition TABLE from your recorded rulings, so do not hand-write that table.`,
|
|
1897
|
+
WEB_EVIDENCE_ONLY_THROUGH_RESEARCH,
|
|
2098
1898
|
writeReturn(P.commonLawHalf(half)),
|
|
2099
1899
|
);
|
|
2100
1900
|
// Instructed checks are receipts executed ONCE per run — half "a" is the designated owner (the
|
|
@@ -2131,6 +1931,7 @@ export const STAGES = {
|
|
|
2131
1931
|
// the seat must be told that recording nothing is then the right outcome.
|
|
2132
1932
|
meaningSweepReceiptsInstruction({ mayOwnNoQueries: true }),
|
|
2133
1933
|
CROSS_CHECK_HANDOFF,
|
|
1934
|
+
WEB_EVIDENCE_ONLY_THROUGH_RESEARCH,
|
|
2134
1935
|
writeReturn(P.commonLawHalf(half)),
|
|
2135
1936
|
);
|
|
2136
1937
|
},
|
|
@@ -2148,7 +1949,7 @@ export const STAGES = {
|
|
|
2148
1949
|
// Every follow-up is a fresh session that calls the same register tools, so its methodology line also names the
|
|
2149
1950
|
// active provider's manual, which holds THIS provider's tool names and operator vocabulary and which the opening
|
|
2150
1951
|
// message tells the first session to read and follow.
|
|
2151
|
-
followupSkillReads: () => (
|
|
1952
|
+
followupSkillReads: (ctx) => (providerMeta(ctx?.register ?? PROVIDER).skillDoc ? [providerMeta(ctx?.register ?? PROVIDER).skillDoc] : []),
|
|
2152
1953
|
out: (P, axis) => P.registerUnit(axis),
|
|
2153
1954
|
validate: validators.registerUnit,
|
|
2154
1955
|
// E1 — what this stage asks a model for, and what discharges each element. See THE STAGE-
|
|
@@ -2219,7 +2020,7 @@ export const STAGES = {
|
|
|
2219
2020
|
why: "The path is `out: (P, axis) => P.registerUnit(axis)`, pre-bound by the driver; all three counts are aggregates over the band the tool wrote. No token speaks about the return message.",
|
|
2220
2021
|
},
|
|
2221
2022
|
},
|
|
2222
|
-
message: ({ paths: P, axis, job, profile, registerPlan, capabilities = registerCapabilities() }) => {
|
|
2023
|
+
message: ({ paths: P, axis, job, profile, registerPlan, register = PROVIDER, capabilities = registerCapabilities(register) }) => {
|
|
2223
2024
|
// Lever-1 data plane (2026-06-24): hand the funnel a COPYABLE in-scope Nice-class array. The NOVA PULSE timeout
|
|
2224
2025
|
// proved skill prose alone is not enough — the funnel HAD [9,28,41,42] in matter-context and still ran
|
|
2225
2026
|
// all-class enumerations (10k-record flood) because nice_classes read as optional. Pin it in the task.
|
|
@@ -2250,19 +2051,19 @@ export const STAGES = {
|
|
|
2250
2051
|
// told it holds tools its grant does not carry. The composer derives the list from the same table
|
|
2251
2052
|
// that does the excluding, and returns NULL — not an empty sentence — when the provider cannot be
|
|
2252
2053
|
// resolved, which is the path `--experiment` takes.
|
|
2253
|
-
grantVocabularySentence(),
|
|
2254
|
-
`You are register UNIT mode, axis = "${axis}". Active register provider: ${
|
|
2054
|
+
grantVocabularySentence(register),
|
|
2055
|
+
`You are register UNIT mode, axis = "${axis}". Active register provider: ${providerMeta(register).label}.`
|
|
2255
2056
|
// A provider with no vocabulary doc is a provider this seat cannot be briefed on. Emitting the
|
|
2256
2057
|
// sentence with a null path in it would instruct the model to read a file that does not exist,
|
|
2257
2058
|
// which it resolves by carrying on unbriefed — indistinguishable from choosing not to read.
|
|
2258
|
-
+ (
|
|
2059
|
+
+ (providerMeta(register).skillDoc
|
|
2259
2060
|
// "(EUIPO = free EU cross-check, available alongside)" used to sit at the end of this sentence.
|
|
2260
2061
|
// It described the credential-blind attach, which is gone: EUIPO is a register PROVIDER
|
|
2261
2062
|
// now, so when it is active it IS `${PROVIDER_META.label}` and there is nothing "alongside".
|
|
2262
2063
|
// Leaving the clause in would tell every unit on every vendor that a second EU source was
|
|
2263
2064
|
// available to it, and a unit that believes it has a cross-check it does not have will report
|
|
2264
2065
|
// agreement it never obtained.
|
|
2265
|
-
? ` Read and follow ${
|
|
2066
|
+
? ` Read and follow ${providerMeta(register).skillDoc} for THIS provider's exact tool names + operator vocabulary; use only that provider's register tools. There is exactly ONE register in this run — if its coverage does not reach a territory the matter needs, that is a DEFERRED coverage row you disclose, never a gap you fill from somewhere else.`
|
|
2266
2067
|
: " NO provider vocabulary doc is registered for it, so there is nothing to read for its tool names — treat that as a fault and say so rather than improvising an operator vocabulary."),
|
|
2267
2068
|
`Inputs: variant manifest ${P.variantManifest}; matter frame ${P.matterContext}.`,
|
|
2268
2069
|
planEntries.length
|
|
@@ -2347,7 +2148,7 @@ export const STAGES = {
|
|
|
2347
2148
|
// A seat-typed count beside a tool-written band is two authorings of one fact, and the failure mode
|
|
2348
2149
|
// is the quiet one: the note says nine enumerated queries, the band holds eight, and nothing compares
|
|
2349
2150
|
// them. Deriving removes the disagreement rather than detecting it.
|
|
2350
|
-
`FILE THIS AXIS'S AUDIT NOTE WITH \`record_unit_note\`. THE DISPATCH NAMES NO PATH FOR IT, deliberately — the driver writes this axis's note from what you send and you never open it, so there is no path here for you to hold. THE COUNTS ARE NOT YOURS TO TYPE: queries enumerated, incomplete blocks and records carried forward are taken from the band, so the note and the band cannot disagree. Send only what the band cannot say — \`null_result\` if this axis genuinely found nothing (refused against a band that carries records), and \`note\`, ONE short observation an auditor would want, in a lawyer's words. Still NO coverage-limited/confirmed-clean/deferred rows and NO clearance verdict: those are judgment's, Layer B. Call it AFTER the band exists — a note over a band that has not been written is refused by name, because an account of a sweep that has not happened is not a short note, it is a wrong one.`,
|
|
2151
|
+
`FILE THIS AXIS'S AUDIT NOTE WITH \`record_unit_note\`. THE DISPATCH NAMES NO PATH FOR IT, deliberately — the driver writes this axis's note from what you send and you never open it, so there is no path here for you to hold. THE COUNTS ARE NOT YOURS TO TYPE: queries enumerated, incomplete blocks and records carried forward are taken from the band, so the note and the band cannot disagree. Send only what the band cannot say — \`null_result\` if this axis genuinely found nothing (refused against a band that carries records), and \`note\`, ONE short observation an auditor would want, in a lawyer's words. Still NO coverage-limited/confirmed-clean/deferred rows and NO clearance verdict: those are judgment's, Layer B. Call it AFTER the band exists (on a plan run with no entries for this axis, the driver has written it empty) — a note over a band that has not been written is refused by name, because an account of a sweep that has not happened is not a short note, it is a wrong one.`,
|
|
2351
2152
|
CROSS_CHECK_HANDOFF, DECIDE_WAITING_FAMILIES, // withheld-families.mjs
|
|
2352
2153
|
// THE CLOSING LINE SPLITS WITH THE LANE, because what the seat owes splits with it. Under the
|
|
2353
2154
|
// supplemental-lane contract the seat writes NOTHING — the band is the tools' and the note is the
|
|
@@ -2670,7 +2471,7 @@ export const STAGES = {
|
|
|
2670
2471
|
// section (and _driver/register-positions.json) is the exact-identity projection. "Owner
|
|
2671
2472
|
// clustering" as arithmetic is no longer your job; residual folds that ARE judgment
|
|
2672
2473
|
// (related-owner, brand-family) remain yours, stated with their reasoning.
|
|
2673
|
-
`Apply the relevance gate, opposition, Option-D
|
|
2474
|
+
`Apply the relevance gate, opposition, Option-D and merch sweep. When priority is live, look the applicant up in the held band with \`band_lookup\` by owner. An empty lookup establishes neither that the applicant has no filings nor that no owner search ran. Sheet-1 rows follow the shape's POSITIONS (one row per position; \`uri\` carries exactly one constituent; any one ends the whole position), never one row per registration of the same right. Union + reconcile the Coverage ledger against the materially-matters list.`,
|
|
2674
2475
|
// P2-A (charter P2a): the retrieved→judgment reconciliation — the driver joins every screened-live
|
|
2675
2476
|
// dominant-element record against your endings after EVERY digest pass; an unended POSITION blocks
|
|
2676
2477
|
// delivery. ONE contract, ONE unit (review problem 2): the join groups records by the same
|
|
@@ -2933,6 +2734,7 @@ export const STAGES = {
|
|
|
2933
2734
|
// depth target was silently absent on many runs. It is now in-context for every synthesis.
|
|
2934
2735
|
skillReads: ["skills/clearance-search/synthesis-rules.md", "skills/clearance-search/firm-wide-reasoning.md", "skills/clearance-search/risk-framework.md", "skills/clearance-search/worked-examples.md", "skills/clearance-search/report-prose.md"],
|
|
2935
2736
|
skillReadsFor: synthesisSkillReads,
|
|
2737
|
+
standing: Object.freeze([WEB_EVIDENCE_ONLY_THROUGH_RESEARCH]),
|
|
2936
2738
|
out: (P) => P.narrative,
|
|
2937
2739
|
validate: validators.narrative,
|
|
2938
2740
|
// E1 — what this stage asks a model for, and what discharges each element. See THE STAGE-
|
|
@@ -3152,7 +2954,9 @@ export const STAGES = {
|
|
|
3152
2954
|
// WS2 (spec 11) — ENFORCED, not advisory: validators.narrative HARD-REJECTS this file if a
|
|
3153
2955
|
// use-dependent finding above the framework's lowest band asserts a use-negative without a searched
|
|
3154
2956
|
// source line. So actually run the query.
|
|
3155
|
-
`USE-CHECK (enforced): run the scoped use check (phase2-execution.md Step 3.5) on EVERY finding banded ${(framework && materialBandPhrase(framework)) || "medium risk or higher"} — the rungs this framework rates medium risk or higher; a lower rung is not checked — and ask in the SAME query for the owner's enforcement record (oppositions, disputes or court actions over this mark or a similar one). ${USE_CHECK_ANSWERS_HELD} After a completed search, use is "confirmed" or "not-confirmed", never "unknown". What the query finds about enforcement is a LEAD under ENFORCEMENT AUTHORITY below: enforcer basis "inferred-from-signal", its URL cited inline in that finding's prose; where it finds none, the enforcer is "low" with basis "inferred-from-signal" and the finding says the search found no enforcement record. ALSO, for EVERY finding whose mitigant/verdict turns on the ABSENCE of use (regardless of its band) ("not in actual use", "unused", "no marketplace use found", non-use revocation/cancellation as the mitigant), run ONE scoped \`perplexity_research\` query (owner + mark + the goods/field) unless an answer this run already holds answers that question, and
|
|
2957
|
+
`USE-CHECK (enforced): run the scoped use check (phase2-execution.md Step 3.5) on EVERY finding banded ${(framework && materialBandPhrase(framework)) || "medium risk or higher"} — the rungs this framework rates medium risk or higher; a lower rung is not checked — and ask in the SAME query for the owner's enforcement record (oppositions, disputes or court actions over this mark or a similar one). ${USE_CHECK_ANSWERS_HELD} After a completed search, use is "confirmed" or "not-confirmed", never "unknown". What the query finds about enforcement is a LEAD under ENFORCEMENT AUTHORITY below: enforcer basis "inferred-from-signal", its URL cited inline in that finding's prose; where it finds none, the enforcer is "low" with basis "inferred-from-signal" and the finding says the search found no enforcement record. ALSO, for EVERY finding whose mitigant/verdict turns on the ABSENCE of use (regardless of its band) ("not in actual use", "unused", "no marketplace use found", non-use revocation/cancellation as the mitigant), run ONE scoped \`perplexity_research\` query (owner + mark + the goods/field) unless an answer this run already holds answers that question, and record its result in that finding's use_check.source: <result URL | "perplexity_research — no result">. Mirror the result into the matching # Actions item (the deferred "confirm the owner's use" becomes a stated result). NEVER assert a use-negative you did not search — an inference from the owner's profile is not a searched result. ${NO_SEARCH_RESULT} ALSO populate that finding's use_check field in findings.json: {"source": "<the result URL | perplexity_research — no result>"}, and with a no-result also "question": "<the research question whose completed answer returned it, word for word as it was asked>" — the structured field is the authoritative cite the report renders from (the prose line is for narrative readability).`,
|
|
2958
|
+
// The route for every web check above: the research tool, never a fetch of the stage's own (standing, so every follow-up repeats it).
|
|
2959
|
+
WEB_EVIDENCE_ONLY_THROUGH_RESEARCH,
|
|
3156
2960
|
// Spec-v3 A4 — ENFORCED the same way (validators.narrative): own-rights reliance needs its evidence.
|
|
3157
2961
|
// PR-8 review fix: synthesis holds the FROZEN band, not the live register — and the band is class-
|
|
3158
2962
|
// and mark-text-scoped to this matter's dispatched slices, so the client's OWN house-mark
|
|
@@ -3165,7 +2969,7 @@ export const STAGES = {
|
|
|
3165
2969
|
// the instructed-check treatment: an open row naming the missing owner query for the escalation
|
|
3166
2970
|
// lane / supplemental mint. own-rights.mjs accepts any text after "Own-rights source:", so the
|
|
3167
2971
|
// validator contract is unchanged.
|
|
3168
|
-
`OWN-RIGHTS (enforced): if ANY finding's clearance reasoning relies on the client's own house mark / franchise root ("the prefix is the client's own registered mark"), run ONE own-portfolio check over the run's FROZEN register material — band_lookup with owner:<the applicant/house-mark owner> (plus band_record for any registration you cite) — and
|
|
2972
|
+
`OWN-RIGHTS (enforced): if ANY finding's clearance reasoning relies on the client's own house mark / franchise root ("the prefix is the client's own registered mark"), run ONE own-portfolio check over the run's FROZEN register material — band_lookup with owner:<the applicant/house-mark owner> (plus band_record for any registration you cite) — and record its result in that finding's own_rights.source: <record URI(s) | "no applicant-owned registrations in the searched register material"> citing the record URIs the lookup returned. KNOW WHAT THE NEGATIVE MEANS: the searched material covers only this matter's dispatched slices (its classes, its mark texts), so an empty owner lookup is NEVER evidence the client's registrations do not exist — a house mark's own registrations usually live in the client's home classes under mark text no slice here covers. NEVER write "no registrations found" or any other portfolio-wide register-negative, and never leave the reasoning leaning on the unverified reliance: write the honest scoped negative, let the finding stand or fall without the crutch, AND record the un-run owner query (owner + house root + its home classes/key jurisdictions) as an open Coverage/open-item row so the escalation lane can propose it through the supplemental mint — the same treatment every instructed check the frozen material cannot answer gets. The affiliate-exclusion mandate covers CONFLICTS only — it never suppresses this supporting-evidence check. ALSO populate that finding's own_rights field in findings.json: {"source": "<comma-separated record URIs | no applicant-owned registrations in the searched register material>"} — the structured field is the authoritative cite.`,
|
|
3169
2973
|
// CHANGE 5c (attribution source) — a named-entity attribution that is NOT itself a registry / common-law
|
|
3170
2974
|
// record fact needs a source or it does not ship. (BEST EFFORT: the doc-30 Fix B exact spec is not in the
|
|
3171
2975
|
// repo — this enforces the principle, not a verbatim spec; see residualIssues.)
|
|
@@ -3285,7 +3089,7 @@ export const STAGES = {
|
|
|
3285
3089
|
// finding carried both: the class of finding most likely to be challenged was the only class with
|
|
3286
3090
|
// no reasoning structure. The validator now rejects the omission on every disposition that reaches
|
|
3287
3091
|
// a reader; this states what an off-field one has to say.
|
|
3288
|
-
`- legal_position / practical_position (BOTH, on EVERY finding — adversarial, coexistence-partner, distinguished AND off-field alike; there is no disposition that carries a label without a stated ground): the two reads, SEPARATED — never blurred, never averaged. legal_position = ONE-TWO sentences of the LEGAL read alone: mark similarity × goods/services proximity × the senior right's scope, under the framework's own definitions (high similarity + high goods proximity = HIGH legal risk, whatever the owner's posture). practical_position = ONE-TWO sentences of the enforcement REALITY: owner posture and capability, marketplace presence, coexistence history, a delisted retailer / no visible revenue — practical facts stated ALONGSIDE the legal read. The band is what the framework's own method yields from BOTH positions as IT states them; a practical fact NEVER discounts the legal read in-line ("high similarity but the owner looks dormant, so call it low" is the averaging this field split forbids — write the high legal read, write the dormancy as practical, and let the framework's stated method produce the band). FACTS THAT CONDITION, NEVER ADVICE (the overall_caption rule, same voice): they state what IS, never a step to take. WHO READS THEM DEPENDS ON THE FINDING
|
|
3092
|
+
`- legal_position / practical_position (BOTH, on EVERY finding — adversarial, coexistence-partner, distinguished AND off-field alike; there is no disposition that carries a label without a stated ground): the two reads, SEPARATED — never blurred, never averaged. legal_position = ONE-TWO sentences of the LEGAL read alone: mark similarity × goods/services proximity × the senior right's scope, under the framework's own definitions (high similarity + high goods proximity = HIGH legal risk, whatever the owner's posture). practical_position = ONE-TWO sentences of the enforcement REALITY: owner posture and capability, marketplace presence, coexistence history, a delisted retailer / no visible revenue — practical facts stated ALONGSIDE the legal read. The band is what the framework's own method yields from BOTH positions as IT states them; a practical fact NEVER discounts the legal read in-line ("high similarity but the owner looks dormant, so call it low" is the averaging this field split forbids — write the high legal read, write the dormancy as practical, and let the framework's stated method produce the band). FACTS THAT CONDITION, NEVER ADVICE (the overall_caption rule, same voice): they state what IS, never a step to take. WHO READS THEM DEPENDS ON THE FINDING: a RATED finding gets a report-card, and that card is the client's single authored wording, written FROM these fields — so write them TIGHT, the reads and the facts that carry them, never a second client paragraph the report will not print beside the card. An OFF-FIELD finding gets NO card, and there these two fields ARE what the client reads. NEVER prescribe ("narrow the goods", "seek consent before filing", "file first", "add a disclaimer") and NEVER use advice grammar ("we recommend", "you should", "the practical path is") — every forward ask lives in the actions register, code-built from it; a prescription typed here is a delivery defect the lint flags. ON AN OFF-FIELD FINDING the two reads are the same two reads, sized to the negative: legal_position states the legal read that makes this NOT a rated conflict (what the senior right actually covers, and where its scope stops short of ours); practical_position states the enforcement reality behind that (who the owner is, what they actually trade in, whether they have ever asserted). "Off-field" is a conclusion, and a conclusion states its ground.`,
|
|
3289
3093
|
// requirement 2 — the label follows the argument. off-field had been carrying TWO different
|
|
3290
3094
|
// claims under one token; the author now declares which, and a field claim is checked against the
|
|
3291
3095
|
// finding's own goods meter (findings-model.validateOffFieldGround).
|
|
@@ -3309,7 +3113,7 @@ export const STAGES = {
|
|
|
3309
3113
|
`- meters: {"mark_similarity":{...},"goods_proximity":{...},"use":{...},"enforcer":{...}} — all four present, each {"token","basis","source"}. token — EACH SET IS CLOSED AND EACH IS STATED ON ITS OWN LINE, so read the one you are filling in: mark_similarity = high | medium | low. goods_proximity = high | medium | low. enforcer = high | medium | low | unknown. use = confirmed | not-confirmed | unknown. NEVER write "unknown", "n/a", "unclear", "tbd" or "none" as the token on mark_similarity or goods_proximity — those two carry no indeterminate value, the file is REJECTED for it, and a clearance has already lost eleven minutes to that one word. Where goods proximity is genuinely open — a broad specification, the actual trade unstated, classes that neither meet nor plainly diverge — that is still a judgement you can make from the wording in front of you: pick the closest band ("medium" is the honest middle), and say in that finding's own reason and prose that the specification leaves it open and why. Rating it is not a claim to certainty; refusing to rate it is not a move you have. These are the COARSE 3-pip strengths — the precise position lives in quadrant. basis: verified-from-record (asserted from a fetched record/filing) or inferred-from-signal (reasoned from a proxy, e.g. "uses a good law firm"); the enforcer's basis is the one the report surfaces as "verified" vs "inferred" (B1 — never present inferred as fact). source (spec-48 A4): MANDATORY whenever basis is "verified-from-record" — the /mark/… record URI or the exact URL the claim actually rests on (the validator REJECTS a bare verified stamp: finding_basis_source_missing); omit it (or "") on inferred-from-signal. The driver machine-joins each source to the run's fetch receipts and presents an unjoined "verified" as assumed — so name the real source, never a plausible one. SENIOR-RIGHT SOURCE (WP-receipts, 2026-07-05): when a finding's owner holds SEVERAL registrations of the same mark, the verified source must be the SENIOR live leg — the earliest applicationDate among live legs, registered before pending (the batch-screen rows carry the dates). Never cite a junior leg as the verified basis when a senior live leg exists in the cluster; the driver's senior-right closure will fetch and re-bind it anyway, so citing the junior leg only wastes a fetch.`,
|
|
3310
3114
|
`- quadrant: {"x","y"} numbers in [0,1]. x = goods/services proximity (0 = distant, 1 = identical). y = mark similarity (0 = distinct, 1 = identical).`,
|
|
3311
3115
|
`- source: {"source_type","resolved_link"}. source_type EXACTLY one of: register-vendor / register-euipo / common-law-marketplace / common-law-web / case-law (the finding's ACTUAL source — a common-law finding never wears a register tag, E2). resolved_link = the record URL you ACTUALLY fetched/cited for this finding (the same link in your Record line), or "" if none.`,
|
|
3312
|
-
`coverage[]: ONE object per coverage AREA, EXACTLY {"area","state","note"}. area = the area name (e.g. "register / EU", "common-law / US marketplace"). state EXACTLY one of: confirmed-clean / coverage-limited / open / not-searched / note. note = a short qualifier (or ""). Write area + note in PLAIN client English — a lawyer reads this panel. NO internal engine idioms: never "slice", "crossed into the band", "null class/owner/status", "unadjudicable", "enumerated-empty", "in-scope subset", "reopen pass", or cell-matrix / saturation / fetch-count telemetry. Say what was and was not searched, and why, in words a client understands.`,
|
|
3116
|
+
`coverage[]: ONE object per coverage AREA, EXACTLY {"area","state","note"}. area = the area name (e.g. "register / EU", "common-law / US marketplace"). state EXACTLY one of: confirmed-clean / coverage-limited / open / not-searched / note. note = a short qualifier (or ""). Write area + note in PLAIN client English — a lawyer reads this panel. NO internal engine idioms: never "slice", "crossed into the band", "null class/owner/status", "unadjudicable", "enumerated-empty", "in-scope subset", "reopen pass", or cell-matrix / saturation / fetch-count telemetry. Say what was and was not searched, and why, in words a client understands. A lead the common-law worker listed under Consumer-confusion risks that meets the inclusion rule in synthesis-rules.md is a finding even when its owner cannot be verified: set \`owner.name\` to "Unverified", say in the finding what remains to be established, and do not record it only as an open coverage row.`,
|
|
3313
3117
|
// P6 (charter §7 "Coverage prose is the worst offender and nothing governs it") — the coverage
|
|
3314
3118
|
// lane's own prose contract. Two of the four longest sentences in the delivered report were
|
|
3315
3119
|
// coverage/gap prose, and NOTHING governed it: the code-stamped `coverage_line:` front-matter
|
|
@@ -3375,7 +3179,7 @@ export const STAGES = {
|
|
|
3375
3179
|
// re-loop and NO no-deliver halt: a lawyer always gets a report unless something technically breaks.
|
|
3376
3180
|
// WP-56 B2 — the standing "mark itself" read: every report carries it whether or not the brief asks
|
|
3377
3181
|
// (a staff lawyer, teal-lattice). Typed field → code-rendered at the TOP of the report on both variants.
|
|
3378
|
-
`MARK ASSESSMENT (MANDATORY top-level field of the findings record you send): emit "mark_assessment": {"distinctiveness":"<1-2 sentences>","connotation":"<1-2 sentences>"} — your standing read of the APPLICANT'S OWN mark, in your own lawyer voice. §L BUDGET: ONE OR TWO SENTENCES EACH, and the detail goes into the typed rows of the STRUCTURED FORM below rather than into a longer paragraph — the block ran 854 words on the delivered report and its job is two short reads. CONNOTATION LEADS WITH THE FLAGGED READING: if a loaded, subcultural or offensive secondary reading surfaced, it is the FIRST thing the field says; when the sweep genuinely came back clean, state that once as a data point and STOP. Never open with a list of what the mark is NOT ("no offensive reading, no gang association, no adverse political connotation, no…") — an inventory of absent problems is the most recognisable machine tell there is, and it buries the one reading that matters when there is one. It is advisory (for the reviewing lawyer to assess), frames the report, and NEVER moves any band or rating. distinctiveness: where the mark sits on the spectrum (coined / arbitrary / suggestive / descriptive) in the applicant's field, its dominant element, any obvious registrability flag (descriptive / generic / laudatory / geographic / deceptive — or "plainly distinctive, no flag"), AND the per-market read of the manifest's translated/transliterated forms (the variant manifest
|
|
3182
|
+
`MARK ASSESSMENT (MANDATORY top-level field of the findings record you send): emit "mark_assessment": {"distinctiveness":"<1-2 sentences>","connotation":"<1-2 sentences>"} — your standing read of the APPLICANT'S OWN mark, in your own lawyer voice. §L BUDGET: ONE OR TWO SENTENCES EACH, and the detail goes into the typed rows of the STRUCTURED FORM below rather than into a longer paragraph — the block ran 854 words on the delivered report and its job is two short reads. CONNOTATION LEADS WITH THE FLAGGED READING: if a loaded, subcultural or offensive secondary reading surfaced, it is the FIRST thing the field says; when the sweep genuinely came back clean, state that once as a data point and STOP. Never open with a list of what the mark is NOT ("no offensive reading, no gang association, no adverse political connotation, no…") — an inventory of absent problems is the most recognisable machine tell there is, and it buries the one reading that matters when there is one. It is advisory (for the reviewing lawyer to assess), frames the report, and NEVER moves any band or rating. distinctiveness: where the mark sits on the spectrum (coined / arbitrary / suggestive / descriptive) in the applicant's field, its dominant element, any obvious registrability flag (descriptive / generic / laudatory / geographic / deceptive — or "plainly distinctive, no flag"), AND the per-market read of the manifest's translated/transliterated forms (the variant manifest carries no distinctiveness read, so make that read here: e.g. "descriptive once translated in <market>"). connotation: what the mark READS as — English AND non-English (the meaning sweep's results incl. the non-Latin/translated forms): any loaded / subcultural / offensive secondary reading, or the clean result stated as a DATA POINT ("no adverse readings surfaced across <the languages/scripts searched>") — never an unsearched assertion, never a sweep dump. Plain client English ("coined and strong"). Real PR/reputational HITS still live in their own section — this block is the standing read, not the incident report. STRUCTURED FORM (preferred when your read carries per-class / per-market / counter-registration detail): either field may instead be an OBJECT {"read":"<1-2 SHORT sentences — the consequence for the client, e.g. \\"A weak name to own. SLUSH is simply what the product is, so the whole mark rests on WAVO.\\">","spectrum":"<the one-line placement>","per_class":[{"class":"5","note":"…"}],"per_market":[{"market":"CN","note":"…"}],"counter_registrations":[{"mark":"…","uri":"/mark/…","note":"…"}],"acquired":"<optional>","note":"<optional residual>"} — typed rows instead of one wall paragraph. ALWAYS include "read" on the structured form: it is the ONLY prose the reader sees up front (the report collapses the rows behind toggles; the audit workbook renders the rows in full). NEVER pack per-class/per-market rows into a single prose string when you have them as rows.`,
|
|
3379
3183
|
// P5 (charter 2026-07-30 + Round-2 §4) — the four answers as DATA where computable. Judgment
|
|
3380
3184
|
// tokens are lawyer-authored with a stated basis, never a computed score (ROUND2-FINDINGS B11);
|
|
3381
3185
|
// an answer the run cannot ground is OMITTED, never faked — the narrative carries the honest
|
|
@@ -3573,6 +3377,10 @@ export const STAGES = {
|
|
|
3573
3377
|
// The reviewer reads the prose manual whose rules it enforces (approved 2026-10-02): the 25-word limit and
|
|
3574
3378
|
// the word list it applies come from there, and so does the finding sentence's two-sentence limit.
|
|
3575
3379
|
skillReads: ["skills/narrative-refutation/SKILL.md", "skills/clearance-search/report-prose.md"],
|
|
3380
|
+
// The live read, which every recheck and review after a repair is pointed at too (resolveSkillReads): the run's own
|
|
3381
|
+
// framework and the shared reasoning beside the two manuals above (reviewSkillReads).
|
|
3382
|
+
skillReadsFor: reviewSkillReads,
|
|
3383
|
+
standing: Object.freeze([REVIEW_APPLIES_THE_SUPPLIED_FRAMEWORK, WEB_EVIDENCE_ONLY_THROUGH_RESEARCH]),
|
|
3576
3384
|
out: (P) => P.seniorEyeReview,
|
|
3577
3385
|
validate: validators.seniorEyeReview,
|
|
3578
3386
|
// E1 — what this stage asks a model for, and what discharges each element. See THE STAGE-
|
|
@@ -3627,15 +3435,17 @@ export const STAGES = {
|
|
|
3627
3435
|
why: "the items are code-found and driver-fed, so the FINDING is mechanical; what the model owes is the flag, the quote and the verdict consequence. NO TOKEN — unlike the plan-execution table, this driver-fed block has no section gate at all",
|
|
3628
3436
|
},
|
|
3629
3437
|
},
|
|
3630
|
-
message: ({ paths: P, intakeAsks, job, registerOnly, profileSelection, placementFloorDecisions, writerExclusions, researchChecks }) => lines(
|
|
3631
|
-
reads(
|
|
3438
|
+
message: ({ paths: P, intakeAsks, job, profile, registerOnly, profileSelection, placementFloorDecisions, writerExclusions, reviewAddressLines, researchChecks }) => lines(
|
|
3439
|
+
reads(reviewSkillReads({ profile, job })),
|
|
3440
|
+
REVIEW_APPLIES_THE_SUPPLIED_FRAMEWORK,
|
|
3441
|
+
WEB_EVIDENCE_ONLY_THROUGH_RESEARCH,
|
|
3632
3442
|
// lever 3 — WHICH FINDINGS EARN A GROUNDED PROFILE, chosen by the DRIVER and listed by
|
|
3633
3443
|
// ordinal. The band is on findings.json before this stage is dispatched, so there is nothing for
|
|
3634
3444
|
// the seat to judge: unlisted work is never asked for. Empty when every finding is profiled —
|
|
3635
3445
|
// which is the one-country product always, and any run whose cut keeps everything.
|
|
3636
3446
|
profileSelectionDirective(profileSelection),
|
|
3637
3447
|
`Adversarially refute the narrative ${P.narrative} against the source files: register findings ${P.registerFindings}${registerOnly ? "" : `, common-law ${P.commonLaw}`}, placements ${P.placement} (structured tiers + reasons: ${P.placementModel}), matter frame ${P.matterContext}.`,
|
|
3638
|
-
...refutationStandingLines({ registerOnly, job, floorDecisions: placementFloorDecisions, writerExclusions }),
|
|
3448
|
+
...refutationStandingLines({ registerOnly, job, floorDecisions: placementFloorDecisions, writerExclusions, addressLines: reviewAddressLines }),
|
|
3639
3449
|
// PR-8: the reviewer verifies register claims against the RECORD, on the record — the same
|
|
3640
3450
|
// read-only band tools the drafting stages used, every lookup logged to the reading audit.
|
|
3641
3451
|
// The skeptic's shipped sentence, word for word: a granted tool is named, or the seat cannot know it holds it.
|
|
@@ -3799,7 +3609,7 @@ export const STAGES = {
|
|
|
3799
3609
|
// rule bans, and e2e has twice measured a seat obeying the prose while holding the tool.
|
|
3800
3610
|
//
|
|
3801
3611
|
// EACH FIELD CARRIES ITS OWN IMPERATIVE IN ITS OWN SENTENCE.
|
|
3802
|
-
`Hand the shell back by calling the \`record_report_overview\` tool. There is no file to write and no front-matter to type: the driver renders the shell — every front-matter key it already holds
|
|
3612
|
+
`Hand the shell back by calling the \`record_report_overview\` tool. There is no file to write and no front-matter to type: the driver renders the shell — every front-matter key it already holds and the \`# Actions\` section — from the values you send, and assembles the cards around it. Do NOT author any \`## <owner> — <MARK>\` card and do not think about a \`# Marks\` heading; each card is rendered separately. Risk scoring is unchanged.`,
|
|
3803
3613
|
// TRANSFORM, NOT FREE-GENERATION (Fix B1 — carried from main's report-synthesis): the shell RESHAPES the
|
|
3804
3614
|
// settled synthesis, it never re-derives. Applied here to overall_caption + # Actions.
|
|
3805
3615
|
`TRANSFORM, NOT FREE-GENERATION: overall_caption and # Actions draw ONLY on the settled synthesis narrative ${P.narrative} (and findings.json ${P.findings}) — introduce NO finding, owner, or claim that is not already there, NEVER re-compute a band, and never let a claim outrun its evidence (a verified-from-record fact stays fact; an inferred-from-signal claim reads AS an inference — "on the available signals…" — never flattened to bald fact). WHERE THE SETTLED NARRATIVE REASONED MORE THAN ONE RATIFIED FORM OF THE NAME, CARRY ITS PER-FORM READ THROUGH — the overall_caption says which form the decisive conflicts turn on, or that the reads are the same for both, in the narrative's own words. Do not flatten two reads into one undifferentiated statement: that loses the distinction the client ratified both forms to get. This is a transform of what the narrative already settled, not a second rating, and the band is unchanged — one overall band as today.`,
|
|
@@ -3851,7 +3661,7 @@ export const STAGES = {
|
|
|
3851
3661
|
`overall_caption VOICE: write plain CONSEQUENCE + the FACT that conditions it, with ZERO risk codes — no retired "Level C" / "Composite 3" codes, no bare dispute-type tokens, no engineering register ("axes", "Option D", query/fetch counts). Say what it MEANS and what STATE OF THE WORLD determines exposure ("one owner holds a near-identical mark for the same goods and is likely to object — no coexistence or consent appears on the record searched"), not the code. NOTE the shape of that example (§L): the conditioning fact is scoped to what this run SAW. Never write "consent is not in hand" or "coexistence is not in place" — the client may hold either, and no search this run ran could see it. FACTS THAT CONDITION, NEVER ADVICE: the caption names the driver + what conditions reliance; it NEVER prescribes a step ("narrow the goods", "seek consent before filing") and never uses advice grammar ("we recommend", "the practical path is") — the forward asks are code-built from the findings.json actions register, and a caption that repeats them as instructions is a defect. No terse code tag anywhere — the driver renders each card's risk chip from its record; captions carry plain consequence only. And do NOT LEAD the caption with a coverage gap — lead with the substantive risk and the driving finding; a genuinely un-cleared dangerous slice is named in the risk read as analysis (and a genuine human-only step rides the actions register), never the headline and never a closeable-search caveat.`,
|
|
3852
3662
|
// judgment-relocation (2026-06-23): the Korvane-headline fix — lead with the GENUINE top risk, not a partner.
|
|
3853
3663
|
`LEAD WITH THE GENUINE TOP RISK: the caption + the order of # Actions must headline the conflict that actually drives the verdict (the bare / near-identical mark in a core class whose owner can and would block — disposition adversarial, the most severe band). Do NOT lead with a commercial partner / coexistence-relationship finding just because it is prominent or familiar — that finding is surfaced RISK-FIRST: the band consequence leads and the conditioning FACTS follow ("a rated <band> conflict — the coexistence is documented and neither party has challenged it; continuing it is the client's commercial call" — §L: say what "undisturbed" MEANS, in plain words; a right or an arrangement is never described as "undisturbed" on a reader surface); a path/response clause ("the realistic path is …", "the practical path is …") is retired voice — it may never appear, never LEAD a finding's line and never stand in for its rating. It is not the headline unless it genuinely IS the top risk. Reflect the synthesis prioritisation; never re-order by who the reader recognises.`,
|
|
3854
|
-
`There are no sections for you to lay out and no headings to emit — the driver renders them. Send \`actions\` (the checks and what they found)
|
|
3664
|
+
`There are no sections for you to lay out and no headings to emit — the driver renders them. Send \`actions\` (the checks and what they found). Coverage is built deterministically from the typed coverage[] states in findings.json and is never yours. Mark an internal-only note by sending that bullet with \`internal: true\`; do not type a ::p:: marker.`,
|
|
3855
3665
|
// spec 64 — "### Only you can close these" is NO LONGER authored here: the driver CODE-BUILDS it
|
|
3856
3666
|
// at assembly from the findings.json typed actions register (the same data the verdict derives
|
|
3857
3667
|
// from), so the ask list, the "subject to" line, the email box and the disposition can never
|
|
@@ -3865,11 +3675,6 @@ export const STAGES = {
|
|
|
3865
3675
|
// T6 (J9) — the delivery lint's constraints, stated at DRAFT time so the first
|
|
3866
3676
|
// generation passes (the lint-repair redo was a deterministic ~2-generation tax on 83% of runs).
|
|
3867
3677
|
`LINT CONTRACTS (the delivery lint fails a shell that breaks these — write them right the first time): (1) never state a numeric registration count for an owner that differs from the finding set's registration list — unsure ⇒ name the owner without a count; (2) findings marked withdrawn in findings.json DO NOT EXIST for this report — never mention them; (3) never pair a WIPO/Madrid registration with "worldwide"/"global" language — name the designated countries or omit the reach claim.`,
|
|
3868
|
-
// CHANGE 1 (telemetry strip) — Methodology is OPTIONAL and telemetry-free. No run telemetry (query/fetch
|
|
3869
|
-
// counts, variant counts, platform/storefront counts, cell-matrix sizes, "remainder clean" enumerations,
|
|
3870
|
-
// axis mechanics), and no confirmed-clean / clean-check enumeration list — those live in the run-dir / audit,
|
|
3871
|
-
// and coverage states render from typed coverage[]. Methodology is a SHORT plain-English scope note or nothing.
|
|
3872
|
-
`# METHODOLOGY (OPTIONAL) — emit it ONLY if there is a genuine plain-English scope note a reviewer needs (e.g. "register + marketplace + general web; transliteration variants searched; foreign-platform direct search not run"). Do NOT write a telemetry block: NO query/fetch/variant/platform counts, NO "[N] storefronts … remainder clean ([cells]-cell matrix)" line, NO axis mechanics, and NO enumeration of what came back confirmed-clean or what clean-checks were run. If there is no real scope note to make, OMIT the section entirely. NEVER put any of this in overall_caption.`,
|
|
3873
3678
|
// P6 §7 — the caption obeyed "3 sentences" with three 60-word sentences. The cap is code-enforced
|
|
3874
3679
|
// (card-budget.mjs foldCaption); the WORD budget is the thing that was missing, and it stays prompt-side.
|
|
3875
3680
|
`overall_caption is HARD-CAPPED at 3 sentences — a verdict, not a recap; COUNT and trim before emitting. The cap is the FOLD POINT, not the target: write to about 20-25 words a sentence (roughly 75 words for the whole caption). Three sixty-word sentences pass the count and defeat it.`,
|
|
@@ -3985,7 +3790,7 @@ export const STAGES = {
|
|
|
3985
3790
|
// the knob that fails ONE card used to key on `report-cards/2.md`, a path this dispatch no longer
|
|
3986
3791
|
// names at all.
|
|
3987
3792
|
`THIS TURN IS BOUND TO CARD ${axis}. Send \`ordinal\`: "${axis}" — the tool refuses a payload naming any other card, and you hold no other finding's record.`,
|
|
3988
|
-
`Send \`full_detail\` — one entry per item, each \`{text, lead, internal}\`. \`text\` is your sentence; \`lead\` is a one-word lead-in ("Portfolio", "Risk assessment", "Enforcement") sent as the word ALONE — the driver renders the bold and the full stop. §L: the entry carrying the risk read is led "Risk assessment", NEVER "Legal lever", which reads as leverage the client can pull rather than the assessment it is. THAT ENTRY IS REQUIRED, and the tool refuses the card without it (reportcard_read_lead_missing): the report suppresses the record's own legal and practical reads wherever this bullet is present, so a card that omits it — or marks it internal — reaches the client with no risk read at all, and nothing downstream recovers it. NO "Filing" BULLET (
|
|
3793
|
+
`Send \`full_detail\` — one entry per item, each \`{text, lead, internal}\`. \`text\` is your sentence; \`lead\` is a one-word lead-in ("Portfolio", "Risk assessment", "Enforcement") sent as the word ALONE — the driver renders the bold and the full stop. §L: the entry carrying the risk read is led "Risk assessment", NEVER "Legal lever", which reads as leverage the client can pull rather than the assessment it is. THAT ENTRY IS REQUIRED, and the tool refuses the card without it (reportcard_read_lead_missing): the report suppresses the record's own legal and practical reads wherever this bullet is present, so a card that omits it — or marks it internal — reaches the client with no risk read at all, and nothing downstream recovers it. NO "Filing" BULLET (ruled): the driver already renders every registration from the FETCHED record — number, classes, status, filing and registration years, jurisdiction, designations, priority — so a typed filing bullet is that same fact retyped by a seat nothing can transposition-check. State a filing fact only where it carries the read you are making. Every other lead is optional. Mark an internal-only note with \`internal: true\`; do not type a \`::p::\` marker — the driver places it where the render splits.`,
|
|
3989
3794
|
// T7 (E5) — the MATCHED grounded profile arrives INLINE (deterministic join), replacing
|
|
3990
3795
|
// the old "if the file exists, fish in it" discretion that missed cards on copper-spire.
|
|
3991
3796
|
caseLawProfile ? lines(
|
|
@@ -4826,9 +4631,9 @@ export const BAND_READING_STAGES = new Set(["placement-inquiry", "register-diges
|
|
|
4826
4631
|
export const GROUP_READING_STAGES = new Set(["placement-inquiry"]);
|
|
4827
4632
|
// The contract as the stages after placement read it: without "Every floor has a fate on the form.", which is an
|
|
4828
4633
|
// order to placement, whose form it names. The digest and synthesis owe no floor a fate (the owner's ruling,
|
|
4829
|
-
// 2026-10-14).
|
|
4830
|
-
|
|
4831
|
-
export const BAND_READING_CONTRACT_AFTER_PLACEMENT =
|
|
4634
|
+
// 2026-10-14). Built from the contract's other two parts, never restated, so the two cannot drift apart.
|
|
4635
|
+
// FLOOR_FATE_ORDER is declared with the contract, which is built from it and its two other parts.
|
|
4636
|
+
export const BAND_READING_CONTRACT_AFTER_PLACEMENT = `${BAND_READING_HEAD} ${BAND_READING_STANDARDS}`;
|
|
4832
4637
|
|
|
4833
4638
|
// The register reading step's order on the waiting families. One constant, because the cross-check
|
|
4834
4639
|
// follow-up reads it word for word (repair-composers.mjs); declared last so no line above it moves.
|
|
@@ -4874,13 +4679,13 @@ export const writerExclusionLines = (block) => {
|
|
|
4874
4679
|
...(reference.length ? [WRITER_EXCLUSIONS_REFERENCE, ...reference] : [])];
|
|
4875
4680
|
};
|
|
4876
4681
|
|
|
4877
|
-
export const refutationStandingLines = ({ registerOnly = false, job = {}, floorDecisions = null, writerExclusions = null } = {}) => [
|
|
4682
|
+
export const refutationStandingLines = ({ registerOnly = false, job = {}, floorDecisions = null, writerExclusions = null, addressLines = [] } = {}) => [
|
|
4878
4683
|
PLACEMENT_BORDERLINE_NOTE,
|
|
4879
4684
|
`REGISTER VERIFICATION TOOLS: you hold the read-only band tools — band_shape (the deterministic shape of the complete register band, including floors marked on their lines; crowded groups may show only their first page), band_lookup (pull any record the narrative relies on or omits) and band_record (the official registry record fetched this run). Check the narrative's register assertions against them. Each floor must be rated in the narrative, reasoned away in it, or accounted for by a decision listed below: placement's decisions on the floors, or the writer's exclusions of positions placement retained. A floor that is none of these is a FLAGGED CORRECTION. Check each of placement's listed decisions against the evidence, and flag one only when you can name the evidence against its ground or the error in its reasoning. The writer's exclusions are listed after them, under their own standard. They are read-only and logged; you hold no live register tools (by design, never an outage).`,
|
|
4880
4685
|
// The validated decisions themselves, written by the driver from the placement form (pipeline.mjs
|
|
4881
4686
|
// placementFloorDecisionLines); none stands where the list is empty.
|
|
4882
4687
|
...(Array.isArray(floorDecisions) && floorDecisions.length ? floorDecisions : ["(none)"]),
|
|
4883
|
-
...writerExclusionLines(writerExclusions),
|
|
4688
|
+
...writerExclusionLines(writerExclusions), ...(addressLines ?? []),
|
|
4884
4689
|
`Re-read any of this run's own artifacts with the \`search_run_artifacts\` tool — ONE file per call, named relative to the run directory (e.g. "register-findings.md"), with \`terms\` as literal substrings OR-matched per line.`,
|
|
4885
4690
|
registerOnly ? REGISTER_ONLY_NOTE : "",
|
|
4886
4691
|
pharmaMatter(job) ? `This is a PHARMA matter (Nice 5 / pharma goods): verify the narrative honoured the pharma field module (skills/clearance-search/field-doctrine-pharma.md) — therapeutic-area goods discipline (same therapeutic area ≈ proximate goods regardless of formulation), NO-USE never softens a pharma risk (pipelines run 5-10 years pre-launch), and practitioner/pharmacist confusion including handwriting/verbal look-alikes was weighed. A violation is a FLAGGED CORRECTION.` : "",
|
|
@@ -4889,7 +4694,7 @@ export const refutationOpenItemsLine = (P) =>
|
|
|
4889
4694
|
`Also verify against ${P.skepticFlags} and ${P.frameReopenReceipt} (JSON "deferrals"): every skeptic flag and every reopen deferral must be either visible as a coverage[]/narrative open item or explicitly reasoned immaterial — one that appears in neither place is a FLAGGED CORRECTION. Files absent ⇒ skip.`;
|
|
4890
4695
|
export const REFUTATION_RECORDING_LINES = Object.freeze([
|
|
4891
4696
|
`RECORD YOUR REVIEW WITH \`record_narrative_refutation\`. THE DISPATCH NAMES NO FILE FOR YOU TO WRITE, deliberately — the driver renders the review from what you send, so a flag the corrective ladder cannot parse cannot be written. You hold no Write or Edit tool for it and nothing you write by hand is read.`,
|
|
4892
|
-
`WHAT THE CALL TAKES: \`verdict\` (CLEAR / CONDITIONAL / BLOCKING) and \`flags\`, one entry per flag. Each flag carries \`kind\`, \`text\` (one line, naming the file and the exact claim), optionally \`fix\` (one line — the targeted edit that would settle it) and optionally \`on\` (the finding ordinals it is about) and optionally \`positions\` (the record ids of the writer's excluded positions it is about, as their list names them). Omit
|
|
4697
|
+
`WHAT THE CALL TAKES: \`verdict\` (CLEAR / CONDITIONAL / BLOCKING) and \`flags\`, one entry per flag. Each flag carries \`kind\`, \`text\` (one line, naming the file and the exact claim), optionally \`fix\` (one line — the targeted edit that would settle it) and optionally \`on\` (the finding ordinals it is about) and optionally \`positions\` (the record ids of the writer's excluded positions it is about, as their list names them) and optionally \`lines\` (the addresses of the other parts of the report it is about, copied from the address list). Omit all three for a flag about the document as a whole. You do NOT number the flags: render order is the numbering.`,
|
|
4893
4698
|
`TYPE EACH CORRECTION: \`kind\` is ONE of coverage-disposition | fact | rating | narrative — pick the one your own legal read says the correction IS: coverage-disposition (a coverage row / disposition placement is wrong or dishonest), fact (a factual defect — record values, owners, statuses, dates, grounding), rating (a band/rating you challenge), narrative (prose, structure or voice of the narrative). DECLARE the kind from what the correction is about, never from how severe it is.`,
|
|
4894
4699
|
`A BLOCKING verdict REQUIRES at least one flag. A refusal to sign that names nothing is refused by the call itself, in this turn, rather than at the gate — where its only repair is one forced re-ask of this whole stage.`,
|
|
4895
4700
|
]);
|
|
@@ -4909,9 +4714,9 @@ export const WRITER_STARTS_FROM_THE_WORK = lines(
|
|
|
4909
4714
|
);
|
|
4910
4715
|
// The band as the writer is told of it: what the tools are for, never a read it owes. The contract the steps before it
|
|
4911
4716
|
// read begins "call `band_shape` FIRST" and says each part of a large shape names the next call. The standards that
|
|
4912
|
-
// contract sets for any reading are kept word for word
|
|
4717
|
+
// contract sets for any reading are kept word for word: the contract is built from them, so the two cannot drift apart. The name keeps
|
|
4913
4718
|
// "BAND_READING_CONTRACT" in it: the stages that read the band are found by it (BAND_READING_STAGES, band-size.mjs).
|
|
4914
|
-
|
|
4719
|
+
// BAND_READING_STANDARDS is one of the contract's three parts, declared with it; nothing cuts it from the whole.
|
|
4915
4720
|
export const BAND_READING_CONTRACT_FOR_THE_WRITER = "THE REGISTER BAND: Use the band tools (`band_shape`, `band_lookup`, `band_record`) when a specific assessment needs evidence beyond the material handed to you. The available groups and pages are ways to find that evidence, not a list you must read to completion. "
|
|
4916
4721
|
+ BAND_READING_STANDARDS;
|
|
4917
4722
|
// An answer the run already holds can be a finding's check (ruled 2026-10-27): a use-check source needs evidence, not
|