clearotron 0.5.1-beta.2 → 0.6.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +7 -7
- package/INSTALL.md +10 -10
- package/QUICKSTART.md +6 -6
- package/README.md +2 -2
- package/THIRD-PARTY-NOTICES.md +4 -4
- package/bin/README.md +2 -2
- package/bin/clearotron.mjs +1 -1
- package/bin/connect.mjs +1 -1
- package/bin/disconnect.mjs +1 -1
- package/bin/example.mjs +2 -2
- package/bin/grant.mjs +1 -1
- package/bin/onboard.mjs +78 -23
- package/bin/start.mjs +49 -18
- package/bin/update.mjs +13 -3
- package/build-info.json +2 -2
- package/docs/DELIVERY.md +1 -1
- package/docs/PORTAL.md +1 -1
- package/docs/RELEASES.md +1 -1
- package/docs/architecture/02-architecture.md +10 -2
- package/docs/architecture/03-run-lifecycle.md +6 -2
- package/docs/architecture/04-configuration-reference.md +3 -3
- package/docs/architecture/05-config-governance.md +5 -4
- package/docs/architecture/08-development-guide.md +4 -4
- package/docs/architecture/09-security-and-data.md +1 -1
- package/{driver/skills/clearance-search/SKILL.md → docs/architecture/retired-manuals/clearance-search-spine.md} +17 -30
- package/{driver/skills/clearance-search/templates/email/generic.md → docs/architecture/retired-manuals/email-generic.md} +1 -1
- package/{driver/skills/clearance-search → docs/architecture/retired-manuals}/template-formatting.md +3 -4
- package/docs/configuration.md +1 -1
- package/docs/decisions/0002-no-dark-functionality.md +5 -0
- package/driver/CHANGELOG.md +147 -0
- package/driver/README.md +11 -1
- package/driver/accepted-order.mjs +13 -5
- package/driver/attempt-rows.mjs +64 -0
- package/driver/attributed-span.mjs +1 -1
- package/driver/authority-trees.mjs +1 -1
- package/driver/best-draft.mjs +3 -3
- package/driver/blind-frame-record.mjs +2 -2
- package/driver/cancel.mjs +3 -2
- package/driver/carry-through.mjs +2 -2
- package/driver/citation-census.json +3 -3
- package/driver/clearance-variants-record.mjs +4 -10
- package/driver/common-law-coverage-status.mjs +3 -3
- package/driver/common-law-receipts.mjs +2 -2
- package/driver/compare.mjs +1 -1
- package/driver/config-inventory.mjs +6 -79
- package/driver/consumption-ledger.mjs +2 -1
- package/driver/contract-dictation-registry.mjs +5 -0
- package/driver/contract-e3-backlog.mjs +45 -66
- package/driver/contract-e3-baseline.json +16 -16
- package/driver/contract-vocabulary.mjs +8 -6
- package/driver/corrections-feedforward.mjs +3 -1
- package/driver/coverage-form-io.mjs +7 -8
- package/driver/coverage-tool.mjs +1 -1
- package/driver/declination-tool.mjs +2 -2
- package/driver/degraded-parts.mjs +9 -9
- package/driver/demo-container.mjs +5 -4
- package/driver/deploy-live-run-guard.mjs +19 -7
- package/driver/derived-state.mjs +2 -2
- package/driver/dev-portal.mjs +2 -1
- package/driver/dispatch-record.mjs +1 -1
- package/driver/disposition-tool.mjs +2 -1
- package/driver/doubt-closure-tool.mjs +2 -2
- package/driver/driver.config.mjs +35 -724
- package/driver/e2e-rounds.mjs +3 -4
- package/driver/engine/CONTRACT.md +3 -0
- package/driver/engine/README.md +2 -0
- package/driver/engine/anthropic-agent.mjs +8 -37
- package/driver/engine/auth.mjs +74 -0
- package/driver/engine/child-record.mjs +1 -1
- package/driver/engine/deny-authority-write.mjs +2 -2
- package/driver/engine/jx-turn.mjs +10 -2
- package/driver/engine/mcp/README.md +1 -1
- package/driver/engine/mcp/band-server.mjs +6 -6
- package/driver/engine/mcp/codex-config.mjs +1 -1
- package/driver/engine/mcp/declination-server.mjs +2 -3
- package/driver/engine/mcp/dispositions-server.mjs +3 -3
- package/driver/engine/mcp/gather-config.mjs +24 -19
- package/driver/engine/mcp/grid-provenance.mjs +1 -1
- package/driver/engine/mcp/held-answers.mjs +5 -5
- package/driver/engine/mcp/perplexity-server.mjs +16 -7
- package/driver/engine/mcp/recording-server.mjs +7 -6
- package/driver/engine/mcp/register-server.mjs +29 -0
- package/driver/engine/mcp/stdio-server.mjs +5 -5
- package/driver/engine/mcp/supplemental.mjs +9 -9
- package/driver/engine/openai-agent.mjs +5 -2
- package/driver/engine/registry.mjs +103 -0
- package/driver/engine/run-choices.mjs +162 -0
- package/driver/engine/stamps.mjs +35 -0
- package/driver/enqueue-schema.mjs +4 -4
- package/driver/envelope-settle.mjs +3 -2
- package/driver/feedback-issues.mjs +1 -1
- package/driver/feedback-mint.mjs +3 -2
- package/driver/feedback-store.mjs +3 -2
- package/driver/findings-model.mjs +1 -1
- package/driver/flag-snapshot.mjs +5 -4
- package/driver/floor-duty.mjs +3 -3
- package/driver/foreign-record-links.mjs +1 -1
- package/driver/frame-diff-record.mjs +2 -8
- package/driver/framework.mjs +1 -1
- package/driver/gate-metrics.mjs +10 -11
- package/driver/gateway.mjs +220 -839
- package/driver/goods-evidence.mjs +10 -6
- package/driver/jx-lanes.mjs +3 -3
- package/driver/jx-units.mjs +31 -37
- package/driver/jx.mjs +44 -59
- package/driver/knockout-assess-record.mjs +3 -3
- package/driver/knockout-caveats.mjs +21 -0
- package/driver/knockout-correction-record.mjs +58 -28
- package/driver/knockout-frame-record.mjs +2 -2
- package/driver/knockout-register-read.mjs +38 -21
- package/driver/knockout-register-record.mjs +5 -6
- package/driver/knockout-review-record.mjs +12 -11
- package/driver/ladder/model-gauge.mjs +88 -0
- package/driver/ladder/next-rung.mjs +296 -0
- package/driver/ladder/rescue.mjs +146 -0
- package/driver/ladder/stage-tools.mjs +57 -0
- package/driver/ladder/turn-failure.mjs +166 -0
- package/driver/log.mjs +2 -2
- package/driver/matter-frame-record.mjs +4 -4
- package/driver/methodology-witness.mjs +2 -2
- package/driver/narrative-refutation-record.mjs +145 -42
- package/driver/one-build-per-run.mjs +62 -0
- package/driver/outbox-backoff.mjs +4 -4
- package/driver/owner-screen.mjs +0 -10
- package/driver/owner-use-check.mjs +2 -28
- package/driver/package.json +1 -1
- package/driver/partial-payload-baseline.json +1 -1
- package/driver/parts-not-completed.mjs +1 -1
- package/driver/pipeline-knockout.mjs +1015 -1001
- package/driver/pipeline.mjs +511 -9265
- package/driver/placement-decisions.mjs +2 -2
- package/driver/placement-form-io.mjs +7 -9
- package/driver/placement-union.mjs +0 -6
- package/driver/plan-stability.mjs +7 -10
- package/driver/portal-acks.mjs +3 -2
- package/driver/portal-confirmation.mjs +48 -0
- package/driver/portal-families.mjs +3 -2
- package/driver/portal-local-auth.mjs +1 -2
- package/driver/portal-routes/README.md +24 -0
- package/driver/portal-routes/admin.mjs +425 -0
- package/driver/portal-routes/compose.mjs +66 -0
- package/driver/portal-routes/config.mjs +118 -0
- package/driver/portal-routes/connect.mjs +283 -0
- package/driver/portal-routes/feedback.mjs +178 -0
- package/driver/portal-routes/me.mjs +165 -0
- package/driver/portal-routes/queue.mjs +64 -0
- package/driver/portal-routes/report.mjs +106 -0
- package/driver/portal-routes/run.mjs +508 -0
- package/driver/portal-routes/runs.mjs +127 -0
- package/driver/portal-routes/usage.mjs +82 -0
- package/driver/portal-runs.mjs +588 -0
- package/driver/portal-service.mjs +78 -2592
- package/driver/portal-static.mjs +3 -1
- package/driver/predelivery-lint.mjs +92 -9
- package/driver/production-pool-guard.mjs +1 -1
- package/driver/profiles.mjs +5 -4
- package/driver/progress.mjs +29 -24
- package/driver/publish/README.md +10 -5
- package/driver/publish/archive-tags.mjs +3 -2
- package/driver/publish/demo-marking.mjs +2 -2
- package/driver/publish/index.mjs +215 -140
- package/driver/publish/knockout.mjs +153 -107
- package/driver/publish/office-record-links.mjs +22 -0
- package/driver/publish/parse.mjs +20 -5
- package/driver/publish/pool-admin.mjs +9 -3
- package/driver/publish/render.mjs +11 -3
- package/driver/publish/report-dates.mjs +3 -4
- package/driver/publish/report-registry.mjs +7 -10
- package/driver/publish/seed-pool.mjs +3 -2
- package/driver/publish/shell.mjs +106 -0
- package/driver/publish/templates/report.css +3 -1
- package/driver/queue-order.mjs +4 -3
- package/driver/record-carry.mjs +0 -9
- package/driver/record-discard.mjs +1 -4
- package/driver/record-fold.mjs +3 -3
- package/driver/record-goods.mjs +5 -5
- package/driver/reference-score.mjs +2 -3
- package/driver/register-capabilities.mjs +0 -6
- package/driver/register-count.mjs +3 -2
- package/driver/register-digest-record.mjs +7 -7
- package/driver/register-fixture-marker.mjs +3 -3
- package/driver/register-plan.mjs +2 -2
- package/driver/register-records.mjs +2 -2
- package/driver/register-taint.mjs +3 -3
- package/driver/register-unit-record.mjs +48 -9
- package/driver/register-unreachable.mjs +4 -3
- package/driver/registry-fidelity.mjs +79 -34
- package/driver/repair-composers.mjs +14 -9
- package/driver/repair-digest.mjs +4 -6
- package/driver/repair-scope.mjs +3 -3
- package/driver/repair-targets.mjs +24 -9
- package/driver/repairs.mjs +44 -58
- package/driver/replay-archive.mjs +7 -7
- package/driver/report-card-record.mjs +3 -3
- package/driver/report-overview-record.mjs +4 -4
- package/driver/research-answers.mjs +38 -6
- package/driver/research-checks.mjs +4 -4
- package/driver/result-noun-fields.mjs +28 -11
- package/driver/review-addresses.mjs +163 -0
- package/driver/rule-shape.mjs +1 -1
- package/driver/run-delivered.mjs +340 -0
- package/driver/run-economics.mjs +8 -26
- package/driver/run-failed.mjs +545 -0
- package/driver/run-integrity.mjs +1 -1
- package/driver/run-outcome.mjs +314 -0
- package/driver/run-park.mjs +23 -0
- package/driver/run-quote.mjs +32 -0
- package/driver/run-record.mjs +352 -0
- package/driver/run-requirements.mjs +22 -0
- package/driver/run-shell.mjs +55 -0
- package/driver/runner.mjs +71 -33
- package/driver/saved-register-pages.mjs +4 -4
- package/driver/score-redaction.mjs +2 -2
- package/driver/search-policy.mjs +12 -13
- package/driver/settle-stamp.mjs +4 -3
- package/driver/skeptic-record.mjs +2 -2
- package/driver/skeptic-search.mjs +1 -1
- package/driver/skills/README.md +7 -7
- package/driver/skills/blind-frame/SKILL.md +1 -2
- package/driver/skills/case-law-citation/SKILL.md +9 -37
- package/driver/skills/case-law-citation/sources/courtlistener.md +1 -3
- package/driver/skills/case-law-citation/sources/eurlex.md +8 -11
- package/driver/skills/case-law-citation/sources/legaldatahunter.md +1 -1
- package/driver/skills/clearance-common-law/SKILL.md +45 -111
- package/driver/skills/clearance-common-law/perplexity-prompts.md +7 -79
- package/driver/skills/clearance-register/SKILL.md +15 -33
- package/driver/skills/clearance-register/digest.md +31 -92
- package/driver/skills/clearance-register/providers/clarivate.md +2 -2
- package/driver/skills/clearance-register/providers/corsearch.md +5 -5
- package/driver/skills/clearance-register/providers/euipo.md +1 -2
- package/driver/skills/clearance-register/providers/free-tier.md +0 -19
- package/driver/skills/clearance-register/providers/signa.md +6 -25
- package/driver/skills/clearance-register/providers/uspto-local.md +0 -24
- package/driver/skills/clearance-register/register-recipes.md +8 -15
- package/driver/skills/clearance-register/status-rules.md +6 -24
- package/driver/skills/clearance-register/unit.md +11 -20
- package/driver/skills/clearance-search/delivery-contract.md +24 -120
- package/driver/skills/clearance-search/field-doctrine-pharma.md +1 -5
- package/driver/skills/clearance-search/firm-wide-reasoning.md +24 -43
- package/driver/skills/clearance-search/phase2-execution.md +29 -77
- package/driver/skills/clearance-search/report-prose.md +3 -4
- package/driver/skills/clearance-search/risk-framework-demo.md +1 -1
- package/driver/skills/clearance-search/risk-framework-triage.manifest.json +3 -3
- package/driver/skills/clearance-search/risk-framework-triage.md +7 -9
- package/driver/skills/clearance-search/risk-framework.manifest.json +1 -1
- package/driver/skills/clearance-search/risk-framework.md +1 -1
- package/driver/skills/clearance-search/synthesis-rules.md +30 -107
- package/driver/skills/clearance-search/worked-examples.md +5 -5
- package/driver/skills/clearance-variants/SKILL.md +46 -45
- package/driver/skills/clearance-variants/transliteration-scripts.md +4 -4
- package/driver/skills/frame-diff/SKILL.md +1 -1
- package/driver/skills/knockout-assess/SKILL.md +6 -14
- package/driver/skills/knockout-frame/SKILL.md +1 -1
- package/driver/skills/matter-frame/SKILL.md +7 -12
- package/driver/skills/matter-frame/watchlist-reference.md +1 -4
- package/driver/skills/narrative-refutation/SKILL.md +20 -30
- package/driver/skills/placement-inquiry/SKILL.md +8 -18
- package/driver/skills-store-provenance.mjs +1 -1
- package/driver/stage-context.mjs +32 -35
- package/driver/stage-freshness.mjs +127 -11
- package/driver/stages-knockout.mjs +49 -22
- package/driver/stages.mjs +88 -283
- package/driver/status-snapshot.mjs +2 -1
- package/driver/steps/correction-cycle.mjs +311 -0
- package/driver/steps/corrections.mjs +644 -0
- package/driver/steps/delivery.mjs +1287 -0
- package/driver/steps/frame-comparison.mjs +922 -0
- package/driver/steps/intake.mjs +84 -0
- package/driver/steps/open-run.mjs +419 -0
- package/driver/steps/overview-and-cards.mjs +899 -0
- package/driver/steps/placement-and-digest.mjs +23 -0
- package/driver/steps/register-sweep.mjs +1563 -0
- package/driver/steps/skeptic-and-follow-up.mjs +831 -0
- package/driver/steps/synthesis.mjs +261 -0
- package/driver/steps/verdict-gate.mjs +968 -0
- package/driver/suite-census.json +403 -91
- package/driver/surface-exit-verdict.mjs +0 -8
- package/driver/synthesis-record.mjs +72 -6
- package/driver/terminal-clamp.mjs +10 -0
- package/driver/tokens.mjs +8 -62
- package/driver/tool-calls.mjs +2 -2
- package/driver/unit-state-verdict.mjs +1 -1
- package/driver/usage-ledger.mjs +2 -1
- package/driver/verify-knockout.mjs +20 -35
- package/driver/verify.mjs +47 -36
- package/driver/web-grid.mjs +3 -4
- package/driver/whatif-memo-run.mjs +2 -2
- package/driver/whatif-queue.mjs +4 -3
- package/driver/withheld-families.mjs +14 -15
- package/driver/worker-heartbeat.mjs +3 -2
- package/driver/write-up-form.mjs +0 -3
- package/mcp-server/CHANGELOG.md +8 -0
- package/mcp-server/http-server.mjs +1 -1
- package/mcp-server/lib/brief.mjs +22 -4
- package/mcp-server/lib/events.mjs +2 -2
- package/mcp-server/lib/evidence.mjs +3 -2
- package/mcp-server/lib/findings.mjs +2 -1
- package/mcp-server/lib/knockout.mjs +9 -10
- package/mcp-server/lib/ops.mjs +9 -9
- package/mcp-server/lib/runs.mjs +9 -10
- package/mcp-server/lib/trace.mjs +1 -1
- package/mcp-server/lib/whatif.mjs +2 -3
- package/mcp-server/package.json +1 -1
- package/mcp-server/server.mjs +5 -5
- package/package.json +2 -1
- package/portal-ui/dist/assets/{index-fPqAU0sx.js → index-D5rkCjDc.js} +26 -14
- package/portal-ui/dist/index.html +1 -1
- package/portal-ui/package.json +3 -3
- package/providers/README.md +1 -1
- package/providers/_shared/answer-memory.mjs +4 -5
- package/providers/_shared/execute-plan.mjs +48 -1
- package/providers/_shared/records-from-search.mjs +46 -0
- package/providers/clarivate/README.md +2 -2
- package/providers/clarivate/src/adapter.js +147 -0
- package/providers/clarivate/src/core.js +1 -14
- package/{driver/engine/mcp/clarivate-server.mjs → providers/clarivate/src/mount.js} +5 -10
- package/providers/corsearch/README.md +3 -3
- package/providers/corsearch/src/adapter.js +80 -0
- package/providers/corsearch/src/core.js +14 -11
- package/{driver/engine/mcp/corsearch-server.mjs → providers/corsearch/src/mount.js} +5 -10
- package/providers/euipo/README.md +2 -2
- package/providers/euipo/src/adapter.js +85 -0
- package/providers/euipo/src/core.js +1 -1
- package/providers/euipo/src/euipo-client.js +1 -2
- package/{driver/engine/mcp/euipo-server.mjs → providers/euipo/src/mount.js} +5 -10
- package/providers/free-tier/README.md +2 -2
- package/providers/free-tier/src/adapter.js +127 -0
- package/{driver/engine/mcp/free-tier-server.mjs → providers/free-tier/src/mount.js} +5 -10
- package/providers/jx-subclass/coverage.mjs +1 -6
- package/providers/jx-subclass/score-truth.mjs +2 -1
- package/providers/oauth-mcp-bridge/CHANGELOG.md +8 -0
- package/providers/oauth-mcp-bridge/package.json +1 -1
- package/providers/perplexity/src/core.js +2 -2
- package/providers/signa/README.md +2 -2
- package/providers/signa/src/adapter.js +157 -0
- package/providers/signa/src/capabilities.js +0 -3
- package/providers/signa/src/core.js +2 -2
- package/{driver/engine/mcp/signa-server.mjs → providers/signa/src/mount.js} +7 -12
- package/providers/signa/src/offices.generated.js +17 -15
- package/providers/uspto-local/README.md +1 -1
- package/providers/uspto-local/bin/verify-index.mjs +1 -1
- package/providers/uspto-local/src/adapter.js +75 -0
- package/{driver/engine/mcp/uspto-local-server.mjs → providers/uspto-local/src/mount.js} +5 -10
- package/scripts/band-shape-probe.mjs +2 -2
- package/scripts/citation-line-check.mjs +7 -7
- package/scripts/compare.mjs +1 -1
- package/scripts/dead-names.mjs +2 -2
- package/scripts/e2e-first-time.mjs +19 -7
- package/scripts/e2e.mjs +13 -13
- package/scripts/engine-probe.mjs +1 -1
- package/scripts/env-audit.mjs +7 -4
- package/scripts/env-classify.mjs +5 -1
- package/scripts/feedback-mint.mjs +1 -1
- package/scripts/freeze-example-run.mjs +7 -7
- package/scripts/mint-suite-census.mjs +2 -2
- package/scripts/nightly-notice.mjs +1 -1
- package/scripts/release-cut-decision.mjs +7 -2
- package/scripts/release-note-required.mjs +26 -9
- package/scripts/release-notes-lint.mjs +3 -2
- package/scripts/release-version-pr-checks.mjs +1 -1
- package/scripts/settings-render-check.mjs +23 -3
- package/scripts/test-run.mjs +5 -5
- package/scripts/travelling-predicates.mjs +1 -1
- package/scripts/undeclared-field-census.mjs +1 -1
- package/scripts/unexecuted-asserts.mjs +1 -1
- package/scripts/verify-publishable.mjs +1 -1
- package/shared/client-door.mjs +1 -1
- package/shared/connect-clients.mjs +1 -1
- package/shared/connector-signin-probe.mjs +1 -1
- package/shared/env-aliases.mjs +1 -1
- package/shared/invocation.mjs +14 -2
- package/shared/names-in-force.mjs +2 -0
- package/shared/register-selection.mjs +2 -2
- package/shared/store-in-repo.mjs +3 -3
- package/shared/summary-blocks.mjs +0 -3
- package/shared/trigger-lane.mjs +1 -1
- package/shared/vacuous-pass.mjs +2 -2
- package/shared/verb-shim.mjs +4 -2
- package/node_modules/exceljs/README.md +0 -3023
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: narrative-refutation
|
|
3
|
-
description: Downstream refutation step that reads the
|
|
3
|
+
description: Downstream refutation step that reads the run's final narrative against the underlying findings files (matter-context, register-findings, common-law-findings, placement-recommendations) and flags tier inversions, missing named owners, confabulated attributions, headline-candidate promotions without commercial-relevance reasoning, overconfident negatives, and procedural assertions (deadlines, registry statistics, routes) made without a verification basis. Produces the reviewer-eye-review file (senior-eye-review.md, the internal filename) with a verdict (CLEAR / CONDITIONAL / BLOCKING) and itemised flags with quoted source text per flag. Invoke between narrative synthesis (Step 4 end) and Phase 3 delivery.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
Does the report answer the client's question: who could object, how strong they are, what the client should do? Are the marks a lawyer would list present, and is each position written from the record that matters? Answer that before any check on wording.
|
|
@@ -17,19 +17,15 @@ This is structured refutation, not approval. Your job is to find what's wrong, n
|
|
|
17
17
|
|
|
18
18
|
## When invoked
|
|
19
19
|
|
|
20
|
-
Spawned between Step 4 synthesis (narrative composition) and Phase 3 delivery. Different session, clean context. Reads multiple inputs, writes one output.
|
|
21
|
-
|
|
22
|
-
The orchestrator (`clearance-search`) spawns this worker at the equivalent step. Reusable by a future clearance-search at the equivalent step.
|
|
20
|
+
Spawned between Step 4 synthesis (narrative composition) and Phase 3 delivery. Different session, clean context. Reads multiple inputs, writes one output. A CONDITIONAL or BLOCKING verdict sends your flags to one targeted correction by the writer, then one recheck. The report is always delivered, with unresolved points kept in the run record for the reviewing lawyer.
|
|
23
21
|
|
|
24
22
|
## Model
|
|
25
23
|
|
|
26
|
-
`opus` at high thinking effort, per `driver/stages.mjs` — the same tier as the other judgment stages, because this is the adversarial-independence safety gate. There is no fallback rung: the stage resolves one model, like every other opus stage. A silent stall is aborted by the engine's per-stage stall watchdog, not waited out.
|
|
27
|
-
|
|
28
24
|
The driver dispatches this as a stage with its own context and a 900-second wall, so the isolation is structural rather than something you arrange. **You write no file.** Your review is a `record_narrative_refutation` call and the driver renders the document from it — you hold no `Write` or `Edit` tool for it, and nothing you write by hand is read.
|
|
29
25
|
|
|
30
26
|
## Inputs you receive
|
|
31
27
|
|
|
32
|
-
- The
|
|
28
|
+
- The narrative, at the path the dispatch names.
|
|
33
29
|
- `matter-context.md` at `studio/clearance-search/<slug>/<date>/matter-context.md` (the strategic framing from `matter-frame`)
|
|
34
30
|
- `register-findings.md` at `studio/clearance-search/<slug>/<date>/register-findings.md` (the digest output with the digest's own candidate ordering)
|
|
35
31
|
- `common-law-findings.md` at `studio/clearance-search/<slug>/<date>/common-law-findings.md` (the common-law digest)
|
|
@@ -41,10 +37,10 @@ The driver dispatches this as a stage with its own context and a 900-second wall
|
|
|
41
37
|
`record_narrative_refutation`, with:
|
|
42
38
|
|
|
43
39
|
- **`verdict`** — `CLEAR` / `CONDITIONAL` / `BLOCKING`. **A BLOCKING requires at least one flag**: a refusal to sign that names nothing is refused by the call, in this turn, rather than at the gate — where its only repair is one forced re-ask of this whole stage.
|
|
44
|
-
- **`flags`** — one entry per flag. Each 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; omit it for a flag about the document rather than a finding), and optionally `positions` (the record ids of the writer's excluded positions it is about, as their list names them).
|
|
40
|
+
- **`flags`** — one entry per flag. Each 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; omit it for a flag about the document rather than a finding), 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 parts of the report it is about that are not findings, copied from the dispatch's address list).
|
|
45
41
|
- **`plan_audit`** — the PLAN-EXECUTION CHECK lines. Required when this run has a plan-execution receipt; **the driver reads whether it does**, so you cannot waive your own audit by omitting the field.
|
|
46
42
|
|
|
47
|
-
You do **not** number your flags, and you do not format them. Render order is the numbering, so a number cannot disagree with the list it labels; the enumeration style is the driver's, so a flag the corrective ladder cannot parse cannot be written.
|
|
43
|
+
You do **not** number your flags, and you do not format them. Render order is the numbering, so a number cannot disagree with the list it labels; the enumeration style is the driver's, so a flag the corrective ladder cannot parse cannot be written.
|
|
48
44
|
|
|
49
45
|
**EVERY FLAG CARRIES ITS KIND**, as the `kind` field — exactly one of:
|
|
50
46
|
|
|
@@ -67,8 +63,7 @@ You do **not** number your flags, and you do not format them. Render order is th
|
|
|
67
63
|
|
|
68
64
|
One kind per flag, the dominant one. This is machine-read: the driver counts your flags by kind, so a
|
|
69
65
|
flag with no token is counted as `fact` whether or not it is one, and a page of untyped flags reports as
|
|
70
|
-
a page of factual errors.
|
|
71
|
-
round whether your objections can be carried forward as data instead of re-read as prose.
|
|
66
|
+
a page of factual errors.
|
|
72
67
|
|
|
73
68
|
**Identify what each flag is about** — the `on` field, an array of ordinals. Same rule
|
|
74
69
|
as `kind`: you send the values, the driver renders the token. The rendered forms, so you recognise them
|
|
@@ -76,7 +71,9 @@ in the file:
|
|
|
76
71
|
|
|
77
72
|
- `[on: 9]` — this flag is about finding #9. You send `on: [9]`.
|
|
78
73
|
- `[on: 6, 12]` — it is about both. You send `on: [6, 12]`.
|
|
79
|
-
- `[on: -]` means no existing finding is named. For an excluded position, supply its record id in `positions`. For a
|
|
74
|
+
- `[on: -]` means no existing finding is named. For an excluded position, supply its record id in `positions`. For a coverage line, an action, a mark assessment read or a narrative section with a listed address, supply that address in `lines`. Name any passage without a listed address in `text`. Omit all three fields only when none applies to the flag. A flag may carry `on`, `positions` and `lines` together.
|
|
75
|
+
|
|
76
|
+
An ordinal or address this review was not handed is refused in your turn with the reason. Correct it and send the whole call again.
|
|
80
77
|
|
|
81
78
|
Use the finding's **ordinal**, the number the narrative and `findings.json` already agree on — not the
|
|
82
79
|
mark, not the owner. You are writing them anyway ("Finding 9 — VELTRIC…"); the token is the same fact
|
|
@@ -89,7 +86,7 @@ does not make the whole report open for revision.
|
|
|
89
86
|
|
|
90
87
|
### Verdict
|
|
91
88
|
|
|
92
|
-
One of: **CLEAR** / **CONDITIONAL** / **BLOCKING
|
|
89
|
+
One of: **CLEAR** / **CONDITIONAL** / **BLOCKING**.
|
|
93
90
|
|
|
94
91
|
### Headline sanity — re-derive the top risk independently (do NOT just ratify the upstream steps)
|
|
95
92
|
|
|
@@ -125,7 +122,7 @@ files. If the headline cannot be defended against them, it blocks.
|
|
|
125
122
|
|
|
126
123
|
### Tier-inversion checks
|
|
127
124
|
|
|
128
|
-
For each candidate the narrative tiers as headline-candidate, or rates
|
|
125
|
+
For each candidate the narrative tiers as headline-candidate, or rates in the framework's two highest bands:
|
|
129
126
|
- Find the same candidate in `placements.json` (the structured tier mirror — mark + owner + jurisdiction; fall back to `placement-recommendations.md` on runs that predate it)
|
|
130
127
|
- Compare: does the narrative's tier match `placement-inquiry`'s placement?
|
|
131
128
|
- If the narrative promotes above `placement-inquiry`'s outcome without explicit "promotion defended" reasoning in either source or in the narrative itself, **FLAG as tier inversion**
|
|
@@ -174,9 +171,7 @@ For each named owner / attribution in the narrative ("developed by X", "owned by
|
|
|
174
171
|
|
|
175
172
|
When the run executed a frozen register plan, the driver prepends a **"DETERMINISTIC PLAN-EXECUTION
|
|
176
173
|
CHECK"** table: what the plan dictated versus what actually ran (executed / crowd-incomplete /
|
|
177
|
-
missing / crowd-gated-skipped, per axis).
|
|
178
|
-
**"PLAN-EXECUTION CHECK"** (the validator requires it whenever the receipt exists) auditing the
|
|
179
|
-
narrative against that table:
|
|
174
|
+
missing / crowd-gated-skipped, per axis). Send your audit of the narrative against that table as `plan_audit` lines; the driver writes the section heading.
|
|
180
175
|
|
|
181
176
|
- A **clean / no-conflict claim that rests on a slice listed as MISSING is a BLOCKING flag** — the
|
|
182
177
|
search the claim needs never ran. Name the qid and the claim; the disposition is re-execution or
|
|
@@ -272,10 +267,10 @@ This is the check for what was *never searched* — the gap a narrative-vs-files
|
|
|
272
267
|
|
|
273
268
|
- For every material jurisdiction named in `matter-context`: is it accounted for — by a ledger row, by a complete worldwide answer, or inside the count of a crowd the identical mark's narrowing left? If no question reached it at all, **FLAG (missing-coverage-row)** — the run cannot account for a jurisdiction it called material.
|
|
274
269
|
- For every `deferred` or `coverage-limited` row: does the narrative anywhere convert it into a clean negative ("no conflicts in [X]", "clean worldwide", "no live filings")? If yes, **FLAG (coverage-overclaim)** — BLOCKING. This is the overconfident-negative failure on a *known* gap.
|
|
275
|
-
- **Aggregate (whole-run) check.**
|
|
270
|
+
- **Aggregate (whole-run) check.** Review whether `coverage_judgment.sufficient` and its reason are supported by the held evidence. A `coverage-limited` row alone does not make CLEAR wrong. Flag an unsupported sufficiency judgment or a gap represented as searched or clean. Material deferred register work and unresolved timeout-taint on a material axis still prevent CLEAR; other terminal checks still apply.
|
|
276
271
|
- A `deferred` row on a material jurisdiction with NO corresponding narrative caveat is itself **BLOCKING** even when the narrative is merely silent — silence on a known gap reads to the client as clean.
|
|
277
272
|
- Sanity-cross-check against the audit trail: a `confirmed-clean` row for a jurisdiction no search covered — neither its own question nor a complete answer over a wider scope that contains it — is itself suspect — **FLAG** it (a ledger should not be able to claim completion it didn't perform).
|
|
278
|
-
- **Use-negative without a search.** For every
|
|
273
|
+
- **Use-negative without a search.** For every finding whose conclusion relies on an absence of use, at any band, check `use_check.source` and the held answer supporting that claim. Flag an asserted use-negative without a supporting completed search: **FLAG (use-negative-unsupported)** — BLOCKING. Check the structured source, not a prose source line. Unknown use is not a searched negative. This is the overconfident-negative failure applied to the pivotal use question; an un-run check dressed as a clean negative is a defect. The driver checks the structured finding record. A required use-check source belongs in that record. An unknown use status does not require an invented source. The reviewer checks whether the available evidence supports the claim.
|
|
279
274
|
|
|
280
275
|
### Optics-escalation checks
|
|
281
276
|
|
|
@@ -296,7 +291,7 @@ For each obvious neighbour missing from the manifest, **FLAG (missing-variant)**
|
|
|
296
291
|
|
|
297
292
|
The PR / reputational section carries a search *receipt*, but a receipt is not a read. With fresh eyes, take the proposed mark **and its near-forms** and ask the question the run was meant to ask: **is the obvious meaning the whole story, or does the same word carry an odd / loaded / subcultural secondary reading the section glossed past?** (`mara` reads as "crowd" — and `Mara` is a street gang; the benign gloss does not clear the loaded reading.) A clean PR claim that stopped at the tidy gloss while a loaded secondary reading is plausible is exactly the kind of specific suspicion your one Fresh probe exists to confirm — spend it here (below) if this is the more worth-pulling thread. If the probe surfaces a real loaded meaning the run never addressed, **FLAG (meaning-read-shallow)** and treat it like an unsupported clean negative (material); if the probe comes back clean, the meaning read holds — note it and move on.
|
|
298
293
|
|
|
299
|
-
**Confirm before you flag — bring in one input the run did not already consume.** Re-reading the same files the author read can only show they agree with themselves; it can never show you what the run missed. So when you suspect an obvious neighbour, a closer conflict on the applicant's *own* goods that the run did not carry, **or a loaded secondary meaning the PR section glossed past**, run **one scoped `perplexity_research` query** to confirm it *before* flagging
|
|
294
|
+
**Confirm before you flag — bring in one input the run did not already consume.** Re-reading the same files the author read can only show they agree with themselves; it can never show you what the run missed. So when you suspect an obvious neighbour, a closer conflict on the applicant's *own* goods that the run did not carry, **or a loaded secondary meaning the PR section glossed past**, run **one scoped `perplexity_research` query** to confirm it *before* flagging. Cite the probe's URL in the flag it supports. Send a no-result probe as a `plan_audit` line beginning `Fresh probe:`. This is the single place the review is required to introduce evidence the upstream units did not produce; cite it. One probe per review is enough — you are confirming a specific suspicion, not re-running the search.
|
|
300
295
|
|
|
301
296
|
### Verify-or-defer audit
|
|
302
297
|
|
|
@@ -320,7 +315,6 @@ For each candidate `placement-inquiry` placed at **out-of-scope-filtered** or **
|
|
|
320
315
|
|
|
321
316
|
- Does the narrative's structure reflect `matter-context`'s framing (sector / client / jurisdictions)?
|
|
322
317
|
- Does the narrative carry forward the `matter-frame`'s off-field reasoning in its treatment of borderline candidates?
|
|
323
|
-
- Does the methodology section reference `placement-inquiry`'s audit-tab output (Out-of-Scope items + reasoning)?
|
|
324
318
|
- FLAG any major framework break.
|
|
325
319
|
|
|
326
320
|
### Actions-register coherence (the disposition is derived from the typed actions)
|
|
@@ -394,7 +388,7 @@ forbids a word, and a word list would catch the brand and miss the next coinage.
|
|
|
394
388
|
|
|
395
389
|
## Refutation posture
|
|
396
390
|
|
|
397
|
-
- **Default refute, not approve.**
|
|
391
|
+
- **Default refute, not approve.** Send CLEAR with no flags only after checking every applicable failure mode in this manual against the held record. Include the required plan audit.
|
|
398
392
|
- **Ask "what is missing or wrong here?", never "is this probably right?".** Dumb questions are welcome — if a conclusion looks off on its face (the client's own partner as the top conflict; "clean worldwide" when material jurisdictions were deferred; a famous one-letter neighbour never searched as a mark), ask it and make the narrative defend it. Forcing the answer is the point. **"Consistent with the previous step" and "the rule said so" are not defences.**
|
|
399
393
|
- **Quote the source.** Every flag includes the narrative text + the underlying-file text it contradicts. No hand-wave critiques.
|
|
400
394
|
- **Be specific about the correction.** For each flag, suggest the minimum-change fix — exactly one of: **correct the statement to what the evidence supports; demote the tier; remove the sentence; verify-flag for re-check.** A caveat or hedge is not a repair: an unsupported statement is corrected or removed, never softened.
|
|
@@ -402,7 +396,7 @@ forbids a word, and a word list would catch the brand and miss the next coinage.
|
|
|
402
396
|
|
|
403
397
|
## Verdict logic
|
|
404
398
|
|
|
405
|
-
- **CLEAR**:
|
|
399
|
+
- **CLEAR**: nothing you want corrected. A flag on a CLEAR review is never applied; return CONDITIONAL to have a minor error put right.
|
|
406
400
|
- **CONDITIONAL**: 1-3 flags, each fixable with a small narrative edit (correct an attribution to what the evidence supports, demote a tier, remove a sentence). List the edits. `demotion-unreceipted` on a finding that does not drive the verdict, and `response-band-incoherent`, are CONDITIONAL-class flags (the fix is the missing receipt / reconciliation line — or the band correction an unwritable receipt implies). `actions-unregistered`, `card-record-mismatch` and `plain-english` are CONDITIONAL-class too: the fix is registering / re-kinding the typed action, reconciling the card's sentence with the record (or stating the disagreement), or the plain-English rewording. `unowned-noun` is CONDITIONAL-class as well — the fix is the rewrite that describes the thing in words the reader owns, keeping every fact. NOTE: fixing your flags clears YOUR verdict, but the delivered disposition is then DERIVED from the corrected `actions[]` — a run whose opinion still names condition-kind actions ships CONDITIONAL by code even when your re-review is CLEAR; that derivation is correct, not a defect to flag.
|
|
407
401
|
- **BLOCKING**: any of —
|
|
408
402
|
- Headline-candidate promotion that contradicts `placement-inquiry` without defense reasoning
|
|
@@ -414,8 +408,8 @@ forbids a word, and a word list would catch the brand and miss the next coinage.
|
|
|
414
408
|
- Overconfident negative on a known-gap area
|
|
415
409
|
- `verify-or-defer` — urgency / a procedural deadline / a registry statistic asserted as fact with no verification basis in the source files (or an instrument the jurisdiction lacks)
|
|
416
410
|
- `coverage-overclaim` — a `deferred`/`coverage-limited` ledger row rendered as a clean negative (or a `deferred` material jurisdiction the narrative is silent on)
|
|
417
|
-
- `coverage-overclaim` (aggregate) —
|
|
418
|
-
- `use-negative-unsupported` — a
|
|
411
|
+
- `coverage-overclaim` (aggregate) — Review whether `coverage_judgment.sufficient` and its reason are supported by the held evidence. A `coverage-limited` row alone does not make CLEAR wrong. Flag an unsupported sufficiency judgment or a gap represented as searched or clean. Material deferred register work and unresolved timeout-taint on a material axis still prevent CLEAR; other terminal checks still apply.
|
|
412
|
+
- `use-negative-unsupported` — a finding, at any band, whose conclusion relies on an absence of use with no supporting completed search in `use_check.source` (check the structured source, not a prose source line; unknown use is not a searched negative): the pivotal use question inferred from the owner's profile instead of searched
|
|
419
413
|
- `missing-coverage-row` — a `matter-context` material jurisdiction no question reached at all
|
|
420
414
|
- `missing-variant` on a **one-letter-off famous mark in the proposed mark's field** that the manifest never searched (the canonical recall miss)
|
|
421
415
|
- Missing-named-owner on a senior-lawyer-required incumbent
|
|
@@ -430,10 +424,6 @@ Total flag count is NOT itself a blocking criterion. A run with many flags that
|
|
|
430
424
|
- **Take placement-inquiry's per-candidate *facts* as input — but DO independently re-derive the headline and the top tiers.** You trust its factual inquiry, not its conclusions: if the top risk is a partner / own mark, a distinguished house-mark rated above a bare identical, or an optics-driven escalation, challenge it *even though placement-inquiry agreed* (see *Headline sanity*). Consistency with an upstream step is never, by itself, a defence.
|
|
431
425
|
- **Don't soften your verdict to avoid recomposition.** If something's wrong, say BLOCKING.
|
|
432
426
|
|
|
433
|
-
## Length target
|
|
434
|
-
|
|
435
|
-
~500-1500 words depending on flag count. Verdict + each flag specified concretely.
|
|
436
|
-
|
|
437
427
|
## Failure fallback
|
|
438
428
|
|
|
439
|
-
If
|
|
429
|
+
If a file the dispatch names cannot be read, raise a flag naming it and what could not be checked. On a register-only run the common-law file does not exist, and that is not a gap.
|
|
@@ -19,43 +19,35 @@ The funnel hands you the named band unjudged; it decided *nothing* about relevan
|
|
|
19
19
|
|
|
20
20
|
## When invoked
|
|
21
21
|
|
|
22
|
-
After register-unit workers and common-law workers have returned their findings (Phase 2 Step 2B end), BEFORE the digest worker (`clearance-register` MODE B) spawns to tier candidates. One
|
|
23
|
-
|
|
24
|
-
## Model
|
|
25
|
-
|
|
26
|
-
Inherits the orchestrator's tier when invoked inline. No `sessions_spawn` — this is a templated reasoning step the orchestrator performs itself between Step 2B end and the digest spawn.
|
|
22
|
+
After register-unit workers and common-law workers have returned their findings (Phase 2 Step 2B end), BEFORE the digest worker (`clearance-register` MODE B) spawns to tier candidates. One stage, run by the driver. It reads matter-context.md + the band shape, then the records its order and your judgment call for (through the band tools) + the common-law findings.
|
|
27
23
|
|
|
28
24
|
## Inputs you receive
|
|
29
25
|
|
|
30
|
-
- `matter-context.md` from `matter-frame` at
|
|
26
|
+
- `matter-context.md` from `matter-frame` at the path your task message names (the strategic foundation — read it once, reference it throughout)
|
|
31
27
|
- **The named band** — read through the **band tools** (every call lands in the run's reading audit; never slice band files with shell). `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 — **every floor gets a fate on the form: placed by record id, or set aside by name with `on` set to status, territory, goods or mark; only a crowd's row of a thousand records or more in (b) covers a floor.** Discussing a floor in your prose is NOT accounting for it: the form is what the driver can check, and a floor with no fate on it is recorded as unanswered whatever the prose says. This is the one duty with no cap — see **Length target**, which bounds the general band and not this), census, owner concentrations, crowd descriptors, blind spots. A large shape is served in parts, each naming the next call. Then `band_lookup` / `band_record` for the records your inquiry needs. This is the funnel's real output, lifted across the firewall:
|
|
32
28
|
- **enumerated records** — every named record the funnel paged to completion, each carrying `record_id, mark_text, classes, status, owner_name, owner_country, application_date, registration_date, expiry_date, jurisdictions, screen_verdict` (+ `_query` provenance). Nothing was pre-sampled, so your gate is the *only* gate. Fifty? Read them all. A few hundred? Sort by the client's goods and markets, read the near ones first, list the rest. A thousand or more? The field is crowded: read the identical and live ones for the client's goods, tell the client it is crowded, and do not write up the rest. Count each group the shape lists on its own, and apply this to each by its own count. Where the shape shows (a) by its first page, page every line of it with `band_lookup`'s `group` filter before its row: reading a line is not writing it up. A crowd of a thousand or more outside (a) stands on its first page read and the count. The shape lists the band in this order: (a) identical or near-identical to the mark or one of its forms, for the client's goods; (b) the same, in the ordered classes; (c) the same family as the mark, for the client's goods; (d) every other live mark in the ordered classes, for the client's goods; then the rest. The ordered classes are the instructed ones and any class the frame added. Inside each group the lines run first by the client's goods on a live record in the ordered classes, then by live records in those classes, then by goods words, then by the client's markets. In a group of a few hundred, every line is read: the near ones get the full inquiry and a row; every other line is either carried or left to the group's row with the reason, except a floor, which is placed or set aside by name.
|
|
33
29
|
- **`incomplete` crowd descriptors** — a query the funnel could NOT enumerate (genuinely too large, provider cap, budget): `query, total_hits, fetched, reason`. These are NOT findings and NOT clean negatives — they are signals you must rule on (cleared / material-gap; see "Crowd-descriptor materiality" below). They ride along on matching lookups too, so a counted-only zone can never read as a clean.
|
|
34
30
|
- The unit's compact prose digest (`register-units/<axis>.md`) still exists for the audit trail. **The band shape, the band's summary, is the material you judge from; open a record only where the judgment needs it.** Before you set a line aside by name on its goods, read its goods in `band_record`, unless its goods words already show the ground on goods established as complete. Missing words in cut goods, or in goods whose completeness is unknown, do not establish that the goods are unrelated.
|
|
35
|
-
- The common-law-findings file at
|
|
31
|
+
- The common-law-findings file at the path your task message names (common-law candidate inventory)
|
|
36
32
|
- Any prior `placement-recommendations.md` from earlier rounds (for re-runs after a skeptic-flagged re-spawn)
|
|
37
33
|
|
|
38
34
|
## Output
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
Write placement-recommendations.md and fill the placement form the dispatch names; the driver renders placements.json.
|
|
41
37
|
|
|
42
|
-
**1. The markdown file
|
|
38
|
+
**1. The markdown file**, at the path your task message names. Use these section headings, in this order: **Band reconciliation** (the expectation-vs-band check), the four placement tiers (**Headline candidates**, **Sheet 2 / register watch**, **Watchlist annex**, **Out-of-scope / filtered**), **Disagreements / flags surfaced to downstream**, **Coverage rulings & open questions** (the per-crowd-descriptor cleared/material-gap rulings that feed synthesis `coverage_judgment`), and **Open questions for the client / reviewer** (genuine open judgment that ships).
|
|
43
39
|
|
|
44
40
|
**Section anchor — copy it verbatim.** Directly under the FIRST of the four placement-tier headings,
|
|
45
41
|
emit this line exactly as written, on its own line:
|
|
46
42
|
|
|
47
43
|
<!-- clearotron:section=placement-tiers -->
|
|
48
44
|
|
|
49
|
-
It is how the validator finds your tier sections.
|
|
50
|
-
heading wording, and a set of tier headings that never happens to use the words "tier", "placement",
|
|
51
|
-
"sheet" or "level" is rejected for a document you wrote correctly — the failure that killed three runs
|
|
52
|
-
on the common-law layer before its anchors landed. It is an HTML comment, so it renders as nothing and
|
|
53
|
-
no reader ever sees it.
|
|
45
|
+
It is how the validator finds your tier sections.
|
|
54
46
|
|
|
55
47
|
**Word the headings however reads best.** The anchor is the contract; the heading text is yours. The
|
|
56
48
|
order above is still the order to write them in, but you will not be failed for choosing other words.
|
|
57
49
|
|
|
58
|
-
**2. The
|
|
50
|
+
**2. The placement form**, at the path your task message names: one row per placed candidate, in the four tiers. The form states its own field rules, and the driver renders `placements.json` from it; do not write that file. What each field carries:
|
|
59
51
|
|
|
60
52
|
- `mark` / `owner` — verbatim as in your md entry (downstream joins on mark + owner + jurisdiction)
|
|
61
53
|
- `jurisdiction` — the office/territory; `""` where none applies
|
|
@@ -202,10 +194,8 @@ The inquiry above is primary. The patterns below describe how the inquiry's answ
|
|
|
202
194
|
|
|
203
195
|
## Length target
|
|
204
196
|
|
|
205
|
-
Per-candidate entry: 4-8 lines. Total file: scales with candidate count. For a typical
|
|
197
|
+
Per-candidate entry: 4-8 lines. Total file: scales with candidate count. For a typical matter with 15-25 candidates, expect ~1500-3000 words.
|
|
206
198
|
|
|
207
199
|
## Failure fallback
|
|
208
200
|
|
|
209
|
-
If `matter-context.md` is missing or empty (matter-frame failed or was skipped), produce a minimal `placement-recommendations.md` that names the gap ("matter-context absent — placements made on candidate class-match alone with low confidence") and proceeds with whatever signal the band carries. Surface the gap to the digest worker so synthesis can decide whether to re-spawn matter-frame.
|
|
210
|
-
|
|
211
201
|
If a band artifact is **missing or unreadable** (the shape reports an axis absent, or the band tools error because the band was never merged), that axis's complete band did not reach you — treat it as a **coverage failure, not an empty result**: write a `material-gap:` line in `### Coverage rulings & open questions` naming the absent axis ("named band for <axis> absent — search output did not cross; cannot judge this axis") → the run ships CONDITIONAL. Do NOT place candidates from that axis on the prose digest alone and do NOT call the axis clean; an absent band is the firewall failing, which is exactly the miss this design removes. (The driver's fresh-run fan-in gate also hard-fails a missing band, so this is the belt-and-braces read.)
|
|
@@ -258,7 +258,7 @@ export function describeSkillsStore(result) {
|
|
|
258
258
|
* The run-door preflight. Shaped like `preflightFreeSpace`: returns `{ result, warning }` and throws
|
|
259
259
|
* ONLY in hard mode, so an existing deployment behaves exactly as it did before this landed.
|
|
260
260
|
*
|
|
261
|
-
* Called from `
|
|
261
|
+
* Called from the run's opening (`steps/open-run.mjs`) beside the binary, disk and credential preflights — once per run, before
|
|
262
262
|
* any spend. Deliberately NOT inside `config.resolveSkillPath`: that runs per file per stage and the
|
|
263
263
|
* gateway re-derives the resolver on every dispatch, so a git call there would run hundreds of times
|
|
264
264
|
* mid-run to re-answer a question about the door.
|
package/driver/stage-context.mjs
CHANGED
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
|
|
37
37
|
import { existsSync, readdirSync } from "node:fs";
|
|
38
38
|
import { join } from "node:path";
|
|
39
|
-
import { driverDir } from "../shared/driver-dir.mjs";
|
|
40
39
|
import { REVIEW_EXCLUSIONS_FILE } from "./narrative-refutation-record.mjs"; // the exclusions the last review was shown //
|
|
41
40
|
|
|
42
41
|
import { STAGES, stageInputs, REGISTER_AXES } from "./stages.mjs";
|
|
43
42
|
import { withheldFamiliesPath } from "./withheld-families.mjs";
|
|
44
43
|
import { toolGroupsForStage } from "./engine/mcp/gather-config.mjs";
|
|
45
44
|
import { FACTS_FILE as DIGEST_FACTS_FILE, ACCOUNTING_STAMP as DIGEST_ACCOUNTING_STAMP } from "./register-digest-record.mjs";
|
|
45
|
+
import { driverDir, paths } from "./run-record.mjs";
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
/*
|
|
48
48
|
* The five ways an artifact reaches a stage. A declaration can express the first one; production uses
|
|
49
49
|
* all five, and a rig that models only the first replays a pipeline that does not exist.
|
|
50
50
|
*
|
|
@@ -54,7 +54,6 @@ import { FACTS_FILE as DIGEST_FACTS_FILE, ACCOUNTING_STAMP as DIGEST_ACCOUNTING_
|
|
|
54
54
|
* conditional — the prompt names it only on some runs (a job field decides).
|
|
55
55
|
* driver-side — the DRIVER reads it and turns it into a prompt block or a ctx field.
|
|
56
56
|
*/
|
|
57
|
-
export const EDGE_KINDS = ["agent-reads-file", "tool-mediated", "passed-inline", "conditional", "driver-side"];
|
|
58
57
|
|
|
59
58
|
const bareStage = (label) => String(label).replace(/:.*$/, "");
|
|
60
59
|
|
|
@@ -135,7 +134,7 @@ export const TOOL_GROUP_EDGES = {
|
|
|
135
134
|
// checked. The filter stood in for telling a read from a write, since every file the servers write is
|
|
136
135
|
// `.jsonl` too. The walk now makes that distinction itself, at any extension (experiment-context.test.mjs,
|
|
137
136
|
// `driverFileUses`), so this file is held by the same rule as every other read.
|
|
138
|
-
{ path:
|
|
137
|
+
{ path: paths(P.runDir).registerRecordBodies,
|
|
139
138
|
why: "band_record serves a record body from this log when the run fetched it through the ledger rather than into _records/ (band-server.mjs recordLedgerPath); without it the sandbox's record reads all fail and the re-run sees less than the stage saw" },
|
|
140
139
|
],
|
|
141
140
|
// ── conversion 11 — THE RECORD TOOL READS A DRIVER-WRITTEN SIDECAR, AND NOTHING DECLARED IT ───────
|
|
@@ -177,13 +176,13 @@ export const TOOL_GROUP_EDGES = {
|
|
|
177
176
|
// The research server sends every question on the tier the run's frozen policy pins. A sandbox without
|
|
178
177
|
// the policy asks on the question's own depth instead, so the arm would measure a different tier.
|
|
179
178
|
perplexity: (P) => [
|
|
180
|
-
{ path:
|
|
179
|
+
{ path: paths(P.runDir).searchPolicy, why: "perplexity_research sends every question on the tier the run's frozen policy pins (web.questionPreset); without it a question goes out on its own depth" },
|
|
181
180
|
],
|
|
182
181
|
declination: (P) => [
|
|
183
|
-
{ path:
|
|
182
|
+
{ path: paths(P.runDir).declinationSpec, why: "record_declination resolves every row_index against this spec; without it the tool refuses the call and the seat cannot decline at all" },
|
|
184
183
|
],
|
|
185
184
|
"recording-doubt-closure": (P) => [
|
|
186
|
-
{ path:
|
|
185
|
+
{ path: paths(P.runDir).doubtClosureSpec, why: "record_doubt_closure resolves its rows against this spec; without it the tool refuses and the closure verdicts cannot be recorded" },
|
|
187
186
|
],
|
|
188
187
|
"recording-register-digest": (P) => [
|
|
189
188
|
{ path: driverDir(P.runDir, DIGEST_FACTS_FILE), why: "record_register_digest resolves every uri the seat cites against this sidecar (readDigestFacts); without it every call refuses registerdigest_uri_unknown" },
|
|
@@ -197,14 +196,14 @@ export const TOOL_GROUP_EDGES = {
|
|
|
197
196
|
// positions, the scope, what the band tools served and the goods evidence, under the era stamp that says a form is
|
|
198
197
|
// required. An arm without them was told of no set-aside at all.
|
|
199
198
|
const placementSetAsideReads = (P) => [
|
|
200
|
-
{ path:
|
|
201
|
-
{ path:
|
|
199
|
+
{ path: paths(P.runDir).placementFormAccumulator, kind: "driver-side", why: "standingPlacementDecisions reads placement's set-asides from the form's driver copy" },
|
|
200
|
+
{ path: paths(P.runDir).stageContracts, kind: "driver-side", why: "the era stamp that says this run's placement records a form; without it a missing form reads as none set aside" },
|
|
202
201
|
{ path: P.placementModel, kind: "driver-side", why: "the placed records a set-aside is checked against (placedUriRows)" },
|
|
203
202
|
{ path: P.bandShape, kind: "driver-side", why: "readPlacementFormInput: the floors and groups a set-aside is judged against" },
|
|
204
203
|
{ path: P.registerPositions, kind: "driver-side", why: "readPlacementFormInput: the positions a named set-aside resolves to" },
|
|
205
|
-
{ path:
|
|
206
|
-
{ path:
|
|
207
|
-
{ path:
|
|
204
|
+
{ path: paths(P.runDir).instructedScope, kind: "driver-side", why: "readPlacementFormInput: the applied-for marks a ground is refused on" },
|
|
205
|
+
{ path: paths(P.runDir).readingLog, kind: "driver-side", why: "readServed: the lines a group row may cover are the lines placement was shown" },
|
|
206
|
+
{ path: paths(P.runDir).goodsEvidence, kind: "driver-side", why: "readGoodsStates: a ground on a record's goods is checked against what its goods rest on" },
|
|
208
207
|
];
|
|
209
208
|
|
|
210
209
|
// THE STATE A CORRECTIVE PASS STARTS FROM, for an arm that reproduces one (`--dispatch-trigger corrective`): the findings
|
|
@@ -212,14 +211,15 @@ const placementSetAsideReads = (P) => [
|
|
|
212
211
|
// pass is handed none of them, so only a corrective arm carries them. Without them an arm on a saved run refused as having
|
|
213
212
|
// no corrective state (measured 2026-10-29).
|
|
214
213
|
const correctiveStateReads = (P) => [
|
|
215
|
-
{ path:
|
|
214
|
+
{ path: paths(P.runDir).findingsPreCorrective, kind: "driver-side", why: "correctiveReadiness and the pass's snapshot: the findings the corrective pass started from" },
|
|
216
215
|
{ path: P.seniorEyeReview, kind: "driver-side", why: "the review whose flags the corrective pass answers; correctionsExtra hands it on verbatim" },
|
|
217
|
-
{ path:
|
|
218
|
-
{ path: driverDir(P.runDir, "
|
|
216
|
+
{ path: paths(P.runDir).refutationCalls, dir: true, kind: "driver-side", why: "readAcceptedFlags: the review's typed flags, the corrective worklist's source, from its newest accepted call" },
|
|
217
|
+
{ path: driverDir(P.runDir, "review-addresses.json"), kind: "driver-side", why: "readAcceptedFlags and correctionsExtra: the review dispatch the calls belong to, and the labels of the parts its flags declare" },
|
|
218
|
+
{ path: paths(P.runDir).declinations, kind: "driver-side", why: "the writer's declinations the corrective pass starts from" },
|
|
219
219
|
{ path: driverDir(P.runDir, REVIEW_EXCLUSIONS_FILE), kind: "driver-side", why: "correctionsExtra names each excluded position a flag is about, with its mark, owner and row, from the exclusions the review was shown" },
|
|
220
220
|
// The writer's own record while a fold is in force, which the correction is handed in place of the folded one.
|
|
221
|
-
{ path:
|
|
222
|
-
{ path:
|
|
221
|
+
{ path: paths(P.runDir).fold, kind: "driver-side", why: "modelRecordPath: whether findings.json is the folded record, which decides the record correctionsExtra names" },
|
|
222
|
+
{ path: paths(P.runDir).findingsUnfolded, kind: "conditional", why: "named in the correction's message only while a fold is in force: the writer's own record, which its patch updates" },
|
|
223
223
|
];
|
|
224
224
|
|
|
225
225
|
const UNDECLARED = {
|
|
@@ -268,7 +268,7 @@ const UNDECLARED = {
|
|
|
268
268
|
// The research the run already got, handed to a later attempt of the writer as a file (messageCtxFor,
|
|
269
269
|
// research-answers.mjs). Carried only by an arm that reproduces one: a first attempt is handed none, and the copy
|
|
270
270
|
// is readable by the arm's own commands, so an arm that carried the run's later answers would hand them on.
|
|
271
|
-
...(researchHandOff ? [{ path:
|
|
271
|
+
...(researchHandOff ? [{ path: paths(P.runDir).researchAnswers, kind: "driver-side",
|
|
272
272
|
why: "handResearchAnswers writes research-answers.md from it for an arm that reproduces a later attempt; without it that arm is handed nothing" }] : []),
|
|
273
273
|
{ path: P.enforcerSignals, kind: "conditional",
|
|
274
274
|
why: "named in the prompt only when ctx.enforcerSignals > 0; aim-attention telemetry, deliberately outside the freshness map" },
|
|
@@ -292,25 +292,25 @@ const UNDECLARED = {
|
|
|
292
292
|
// What the full review was shown, which a later review's list is compared with. Without it an arm reproducing a later
|
|
293
293
|
// review reads as a run with no full review on record and is given the whole list as decisions to check, a shape
|
|
294
294
|
// production never sends. A full-review arm writes its own over the copy.
|
|
295
|
-
{ path:
|
|
295
|
+
{ path: paths(P.runDir).reviewExclusionsFull, kind: "driver-side",
|
|
296
296
|
why: "writerExclusionBlock: a later review's list is the full review's compared with the run as it stands" },
|
|
297
297
|
// What each exclusion's evidence is read from beside the band and the bodies: the goods state the writer's list gave
|
|
298
298
|
// each record, and, from the delivery seam on, the writer's own record and the fold's map, which keep the writer's
|
|
299
299
|
// numbering. Without the list an arm reads every exclusion's evidence without its goods state, so a later review's
|
|
300
300
|
// arm reads every exclusion the full review read with one as changed.
|
|
301
|
-
{ path:
|
|
302
|
-
{ path:
|
|
303
|
-
{ path:
|
|
301
|
+
{ path: paths(P.runDir).declinationSpec, kind: "driver-side", why: "writerExclusions: the goods state each record's evidence is read with" },
|
|
302
|
+
{ path: paths(P.runDir).fold, kind: "driver-side", why: "modelRecordPath: whether findings.json is the folded record" },
|
|
303
|
+
{ path: paths(P.runDir).findingsUnfolded, kind: "driver-side", why: "modelRecordPath: the writer's own record while a fold is in force" },
|
|
304
304
|
// The research a later review is told the run obtained after the full review. Carried only by an arm that reproduces a
|
|
305
305
|
// later review: a full review's copy would hold answers the run got after it.
|
|
306
|
-
...(dispatchTrigger !== "fresh" ? [{ path:
|
|
306
|
+
...(dispatchTrigger !== "fresh" ? [{ path: paths(P.runDir).researchAnswers, kind: "driver-side",
|
|
307
307
|
why: "writerExclusionBlock writes research-after-review.md from it for a later review; without it that arm is told of none" }] : []),
|
|
308
308
|
// Placement's floor decisions and the writer's declinations, which the review is told when its message is built
|
|
309
309
|
// (messageCtxFor): placement's are read through the same files as the set-asides the reading step and the writer are
|
|
310
310
|
// told. Measured on a saved run, 2026-10-29: an arm without them was told none of placement's 33 floor decisions and
|
|
311
311
|
// none of the writer's 30 floor lines.
|
|
312
312
|
...placementSetAsideReads(P),
|
|
313
|
-
{ path:
|
|
313
|
+
{ path: paths(P.runDir).declinations, kind: "driver-side",
|
|
314
314
|
why: "the review is told the writer's declinations from it when its message is built; without it the arm is told of none" },
|
|
315
315
|
],
|
|
316
316
|
};
|
|
@@ -368,17 +368,17 @@ export const CONTEXT_DERIVATIONS = [
|
|
|
368
368
|
// buildBandShape), which is why a rig that REPLAYS a persisted band-shape.json cannot serve a
|
|
369
369
|
// seeded arm: it would replay the unseeded artifact and report no movement.
|
|
370
370
|
// goods-evidence.json: what each record's goods rest on, read from the same run files; no band tool serves it.
|
|
371
|
-
writes: (P) => [P.bandShape, P.bandShapeMd, P.registerPositions,
|
|
371
|
+
writes: (P) => [P.bandShape, P.bandShapeMd, P.registerPositions, paths(P.runDir).goodsEvidence],
|
|
372
372
|
reads: (P) => [
|
|
373
373
|
{ path: P.registerNamedBand, why: "the merged band the shape is derived FROM" },
|
|
374
374
|
{ path: P.variantManifestModel, why: "targets: the mark, its dominant element, distinctive elements and variants" },
|
|
375
375
|
{ path: P.crowdContext, why: "the crowd join the shape's crowd descriptors carry" },
|
|
376
376
|
{ path: join(P.runDir, "_records"), dir: true, why: "recordDetailIndex — registration/application numbers, IR↔base linkage, Madrid designations; no search row carries them" },
|
|
377
|
-
{ path:
|
|
377
|
+
{ path: paths(P.runDir).registerRecordBodies, why: "record-goods.mjs bandGoodsIndex: each record's goods, which the groups test against the client's goods words" },
|
|
378
378
|
// THE REGISTER'S OWN PAGES THE RUN'S RESEARCH SAVED complete a goods statement a search answer cut, so they are an
|
|
379
379
|
// input of this derivation (saved-register-pages.mjs). Seeded as the canonical run holds the folder, as `_records`
|
|
380
380
|
// is: a page saved after the replayed stage is in the sandbox too. That is this input's stated replay limit.
|
|
381
|
-
{ path:
|
|
381
|
+
{ path: paths(P.runDir).webResults, dir: true, why: "saved-register-pages.mjs savedStatusPages: the register's own status pages the run's research saved, which complete a goods statement the search answer cut; seeded as the run holds them, so a page saved after the replayed stage is seeded too" },
|
|
382
382
|
{ path: P.registerPlan, why: "record-goods.mjs bandShapeGoods: the word the register's goods-narrowed search asked for, which the shape sorts on" },
|
|
383
383
|
{ path: driverDir(P.runDir, "matter-frame-calls", "accepted.json"), why: "withFrameClasses: the classes the frame added for the client's own goods join the in-scope set and the floors" },
|
|
384
384
|
{ path: P.instructedScope, why: "record-goods.mjs instructedOrder: the order's goods wording and markets, which the groups sort by" },
|
|
@@ -392,11 +392,8 @@ export const CONTEXT_DERIVATIONS = [
|
|
|
392
392
|
{ path: P.variantManifest, why: "ctx.gridVariants = parseManifestVariants(variant-manifest.md)" },
|
|
393
393
|
{ path: P.matterContext, why: "the generic profile's channels and the derived meaning angles come from the frame" },
|
|
394
394
|
{ path: driverDir(P.runDir, "matter-frame-calls", "accepted.json"), why: "web-grid.mjs frameWebChoiceFor: the forms the frame names and the stores it set aside decide the grid's blocks" },
|
|
395
|
-
{ path:
|
|
395
|
+
{ path: paths(P.runDir).stageContracts, why: "web-grid.mjs frameAskedForWebGrid: a frame asked for its forms that sent none gets the mark itself; one never asked keeps the full grid" },
|
|
396
396
|
{ path: P.variantManifestModel, why: "the transliteration connotation bucket" },
|
|
397
|
-
{ path: P.commonLaw, why: "the resumed-unsplit self-disarm reads the canonical findings" },
|
|
398
|
-
{ path: P.commonLawHalf("a"), why: "the resumed-unsplit self-disarm" },
|
|
399
|
-
{ path: P.commonLawHalf("b"), why: "the resumed-unsplit self-disarm" },
|
|
400
397
|
],
|
|
401
398
|
},
|
|
402
399
|
{
|
|
@@ -423,7 +420,7 @@ export const CONTEXT_DERIVATIONS = [
|
|
|
423
420
|
{ path: P.planExecution, why: "digestSummaryCounts and digestAuditRows both tabulate the plan-execution receipt" },
|
|
424
421
|
{ path: P.registerFindings, why: "digestAuditRows returns EMPTY without it — the audit rows would silently vanish from the sandboxed sidecar" },
|
|
425
422
|
{ path: P.coverageEnum, why: "coverageFormStamp — whether this run requires a coverage form at all, which decides whether the audit rows read one" },
|
|
426
|
-
{ path:
|
|
423
|
+
{ path: paths(P.runDir).registerCoverageFormAccumulator, why: "readCoverageForm — the accumulator digestAuditRows reads when the stamp says a form is required" },
|
|
427
424
|
],
|
|
428
425
|
},
|
|
429
426
|
];
|
|
@@ -440,7 +437,7 @@ export const CONTEXT_DERIVATIONS = [
|
|
|
440
437
|
const waitingFamilyJudgmentReads = (P) => [
|
|
441
438
|
...REGISTER_AXES.map((a) => ({ path: withheldFamiliesPath(P.runDir, a),
|
|
442
439
|
why: "planAuditExtra reads the reading turn's record of the families it chose not to ask (readWithheldFamilies)" })),
|
|
443
|
-
{ path:
|
|
440
|
+
{ path: paths(P.runDir).registerCoverageFormAccumulator, why: "planAuditExtra counts a family whose form row is settled withheld-by-judgment as withheld" },
|
|
444
441
|
{ path: P.coverageEnum, why: "the stamp that names the coverage form planAuditExtra reads" },
|
|
445
442
|
];
|
|
446
443
|
|
|
@@ -453,7 +450,7 @@ export const DISPATCH_EXTRAS = [
|
|
|
453
450
|
// ride record_coverage), so an arm dispatched without it is not measuring its variable — it is
|
|
454
451
|
// measuring the absence of the rows the stage's whole coverage contract now runs through. The
|
|
455
452
|
// same file is on VALIDATOR_SIDECARS, because it is also the copy the gate judges.
|
|
456
|
-
{ path:
|
|
453
|
+
{ path: paths(P.runDir).registerCoverageFormAccumulator, why: "the accumulator coverageFormBrief enumerates into the dispatch (typed transport)" },
|
|
457
454
|
{ path: P.coverageEnum, why: "the era stamp that says a coverage form is required on this run" },
|
|
458
455
|
{ path: P.planExecution, why: "the coverage form's skeleton + per-qid deferral reasons (was the A8 deferred-axis hint)" },
|
|
459
456
|
{ path: P.registerPlan, why: "the coverage form's unit labels and open-block join come from the frozen plan" },
|
|
@@ -470,7 +467,7 @@ export const DISPATCH_EXTRAS = [
|
|
|
470
467
|
{ path: P.planExecution, why: "readPlanExecution — the deterministically-refused queries" },
|
|
471
468
|
{ path: P.ownerScreen, why: "the owner-screen negative that rides the same block" },
|
|
472
469
|
{ path: P.registerPlan, why: "capabilityGapAxes / fullyDeferredAxes split the deferrals against the frozen plan" },
|
|
473
|
-
{ path:
|
|
470
|
+
{ path: paths(P.runDir).registerTaint, why: "readActiveTaintAxes — a kill-touched axis is relabelled deferred at the same choke point" },
|
|
474
471
|
// …and the FALLBACK behind that receipt: with no register-taint.json, readActiveTaintAxes reads
|
|
475
472
|
// the per-axis unit telemetry directly (register-taint.jsonlTaintedAxes). A sandbox without these
|
|
476
473
|
// would silently relabel nothing on exactly the runs that never wrote a receipt — the taint would
|