@sema-agent/core 7.70.0 → 7.71.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/CHANGELOG.md +728 -0
- package/dist/agents/agent-transcript-tool.js +43 -19
- package/dist/agents/inherited-tool-pool.d.ts +5 -1
- package/dist/agents/inherited-tool-pool.js +6 -0
- package/dist/agents/retain-ledger.js +2 -0
- package/dist/agents/send-message-tool.d.ts +12 -1
- package/dist/agents/send-message-tool.js +47 -9
- package/dist/agents/subagent.js +31 -10
- package/dist/agents/tool-filter.js +1 -2
- package/dist/agents/verify.js +13 -2
- package/dist/agents/yield-adoption.js +11 -1
- package/dist/brain/claude-model-id.d.ts +11 -0
- package/dist/brain/claude-model-id.js +3 -1
- package/dist/config/catalog.js +10 -1
- package/dist/config/defaults.d.ts +3 -0
- package/dist/config/defaults.js +1 -0
- package/dist/core/allow-entry.js +1 -2
- package/dist/core/ask-origin.d.ts +55 -21
- package/dist/core/ask-origin.js +19 -11
- package/dist/core/ask-question.d.ts +4 -7
- package/dist/core/ask-question.js +2 -4
- package/dist/core/ask-unresolvable-notice.d.ts +17 -3
- package/dist/core/ask-unresolvable-notice.js +18 -4
- package/dist/core/attachment-source.d.ts +1 -1
- package/dist/core/attachment-source.js +2 -0
- package/dist/core/auto-compaction.d.ts +14 -4
- package/dist/core/auto-compaction.js +3 -2
- package/dist/core/auto-strip.js +2 -0
- package/dist/core/caller-text.d.ts +2 -33
- package/dist/core/caller-text.js +2 -23
- package/dist/core/caller-tool-name.js +1 -2
- package/dist/core/canonical-json.d.ts +9 -0
- package/dist/core/canonical-json.js +6 -0
- package/dist/core/checkpoint-features.d.ts +43 -80
- package/dist/core/checkpoint-features.js +10 -20
- package/dist/core/checkpoint-generation.d.ts +89 -19
- package/dist/core/checkpoint-generation.js +89 -14
- package/dist/core/checkpoint-queries.d.ts +95 -15
- package/dist/core/checkpoint-queries.js +108 -7
- package/dist/core/checkpoint-rekey.d.ts +2 -1
- package/dist/core/checkpoint-rekey.js +2 -2
- package/dist/core/checkpoint-requirements.d.ts +7 -6
- package/dist/core/checkpoint-requirements.js +2 -5
- package/dist/core/checkpoint-row-verdict.d.ts +3 -4
- package/dist/core/checkpoint-row-verdict.js +20 -41
- package/dist/core/checkpoint-store.d.ts +65 -41
- package/dist/core/checkpoint-store.js +28 -14
- package/dist/core/command-sandbox.d.ts +5 -3
- package/dist/core/command-sandbox.js +17 -9
- package/dist/core/config-refusal-codes.d.ts +1 -1
- package/dist/core/config-refusal-codes.js +1 -0
- package/dist/core/declaration-words.d.ts +2 -1
- package/dist/core/declaration-words.js +13 -2
- package/dist/core/effective-path-target.d.ts +23 -0
- package/dist/core/effective-path-target.js +15 -1
- package/dist/core/engine-attestation.d.ts +5 -1
- package/dist/core/engine-attestation.js +1 -0
- package/dist/core/engine-capabilities.d.ts +14 -9
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +62 -32
- package/dist/core/engine-version.js +1 -1
- package/dist/core/entries-not-applied.d.ts +1 -1
- package/dist/core/entries-not-applied.js +1 -0
- package/dist/core/file-history-store.d.ts +95 -11
- package/dist/core/file-history-store.js +117 -19
- package/dist/core/gate-fold.js +13 -7
- package/dist/core/gate-lanes.js +9 -9
- package/dist/core/governance-codes.d.ts +56 -7
- package/dist/core/governance-codes.js +105 -7
- package/dist/core/grant-holder.d.ts +53 -0
- package/dist/core/grant-holder.js +80 -0
- package/dist/core/hooks.d.ts +7 -3
- package/dist/core/hooks.js +2 -2
- package/dist/core/locked-config.d.ts +7 -1
- package/dist/core/locked-config.js +9 -2
- package/dist/core/mcp-call-meta.d.ts +52 -7
- package/dist/core/mcp-call-meta.js +21 -2
- package/dist/core/mcp-host-read.d.ts +1 -1
- package/dist/core/mcp-server-spec.d.ts +18 -0
- package/dist/core/mcp-server-spec.js +1 -0
- package/dist/core/mcp.js +2 -2
- package/dist/core/member-outcome.d.ts +22 -1
- package/dist/core/member-outcome.js +18 -6
- package/dist/core/memory-engine/delegation-settlement.js +5 -5
- package/dist/core/memory-engine/engine.js +19 -19
- package/dist/core/memory-engine/file-backend.d.ts +7 -2
- package/dist/core/memory-engine/file-backend.js +14 -12
- package/dist/core/memory-engine/frontmatter.js +1 -1
- package/dist/core/memory-engine/index.d.ts +1 -0
- package/dist/core/memory-engine/index.js +1 -0
- package/dist/core/memory-engine/layout.d.ts +34 -9
- package/dist/core/memory-engine/layout.js +36 -19
- package/dist/core/memory-engine/memory-deployment.js +8 -8
- package/dist/core/memory-engine/mount-failed-notice.d.ts +8 -5
- package/dist/core/memory-engine/mount-failed-notice.js +5 -2
- package/dist/core/mode-policy.d.ts +5 -0
- package/dist/core/mode-policy.js +6 -0
- package/dist/core/mods/host.d.ts +2 -1
- package/dist/core/mods/host.js +7 -6
- package/dist/core/mods/kernel/index.d.ts +1 -1
- package/dist/core/mods/kernel/index.js +1 -1
- package/dist/core/mods/kernel/registration.d.ts +5 -2
- package/dist/core/mods/kernel/registration.js +19 -3
- package/dist/core/mods/package.d.ts +12 -1
- package/dist/core/mods/package.js +36 -9
- package/dist/core/mods/stations.d.ts +7 -1
- package/dist/core/mods/stations.js +17 -3
- package/dist/core/mods/teammate-stations.d.ts +4 -1
- package/dist/core/mods/teammate-stations.js +1 -1
- package/dist/core/native-signal.d.ts +13 -0
- package/dist/core/native-signal.js +18 -0
- package/dist/core/park-resumability.d.ts +16 -14
- package/dist/core/park-resumability.js +9 -4
- package/dist/core/path-rule-binding.js +1 -1
- package/dist/core/permission-rule-model.d.ts +11 -5
- package/dist/core/permission-rule-model.js +5 -3
- package/dist/core/permission-rule-org.js +1 -1
- package/dist/core/permission-rule-provider.d.ts +5 -1
- package/dist/core/permission-rule-provider.js +6 -1
- package/dist/core/permission-rule-session.d.ts +35 -5
- package/dist/core/permission-rule-session.js +32 -1
- package/dist/core/permission-rule-store.d.ts +5 -1
- package/dist/core/permission-rule-store.js +28 -5
- package/dist/core/permission-rules.d.ts +2 -2
- package/dist/core/permission-rules.js +2 -3
- package/dist/core/principal-name.d.ts +12 -0
- package/dist/core/principal-name.js +6 -2
- package/dist/core/read-root-grant-screen.d.ts +7 -6
- package/dist/core/read-root-grant-screen.js +7 -8
- package/dist/core/remote-env.d.ts +42 -8
- package/dist/core/resume-config-judge.js +1 -1
- package/dist/core/resume-startup-cause.d.ts +19 -4
- package/dist/core/resume-startup-cause.js +25 -6
- package/dist/core/rewind-conversation.d.ts +4 -0
- package/dist/core/rewrite-rejudge.d.ts +9 -1
- package/dist/core/rewrite-rejudge.js +11 -1
- package/dist/core/rule-offer-read.js +3 -2
- package/dist/core/runner/assemble-result.d.ts +21 -11
- package/dist/core/runner/assemble-result.js +24 -4
- package/dist/core/runner/boundary-reminders.d.ts +104 -0
- package/dist/core/runner/boundary-reminders.js +108 -0
- package/dist/core/runner/branch-writeback.d.ts +21 -7
- package/dist/core/runner/branch-writeback.js +44 -6
- package/dist/core/runner/command-sandbox-frame.js +2 -1
- package/dist/core/runner/compact-session.js +11 -4
- package/dist/core/runner/constraint-layers.d.ts +24 -5
- package/dist/core/runner/constraint-layers.js +21 -2
- package/dist/core/runner/continuation-gate.js +3 -1
- package/dist/core/runner/contracts.d.ts +83 -13
- package/dist/core/runner/cross-boundary-lane.js +2 -1
- package/dist/core/runner/delegation-owner.d.ts +246 -45
- package/dist/core/runner/delegation-owner.js +237 -63
- package/dist/core/runner/expire-settle.d.ts +17 -0
- package/dist/core/runner/expire-settle.js +8 -2
- package/dist/core/runner/file-history-request.d.ts +4 -3
- package/dist/core/runner/file-history-request.js +4 -1
- package/dist/core/runner/file-history-restore.d.ts +11 -3
- package/dist/core/runner/file-history-restore.js +11 -3
- package/dist/core/runner/gate-exit.d.ts +22 -1
- package/dist/core/runner/gate-exit.js +12 -14
- package/dist/core/runner/nested-memory-content.js +1 -1
- package/dist/core/runner/nested-memory-lane.d.ts +10 -2
- package/dist/core/runner/nested-memory-lane.js +29 -8
- package/dist/core/runner/own-model-money-door.d.ts +13 -0
- package/dist/core/runner/own-model-money-door.js +17 -0
- package/dist/core/runner/park-commit.d.ts +4 -2
- package/dist/core/runner/park-commit.js +2 -1
- package/dist/core/runner/permission-rule-lanes.d.ts +4 -0
- package/dist/core/runner/permission-rule-lanes.js +7 -0
- package/dist/core/runner/person-path-rows.js +1 -1
- package/dist/core/runner/placement-fence.d.ts +8 -2
- package/dist/core/runner/placement-fence.js +8 -3
- package/dist/core/runner/policy-throw.d.ts +3 -2
- package/dist/core/runner/policy-throw.js +2 -2
- package/dist/core/runner/prepare-acquire-reconcile.d.ts +23 -14
- package/dist/core/runner/prepare-acquire-reconcile.js +33 -15
- package/dist/core/runner/prepare-artifact.d.ts +14 -1
- package/dist/core/runner/prepare-artifact.js +7 -2
- package/dist/core/runner/prepare-ask-lane.d.ts +8 -0
- package/dist/core/runner/prepare-ask-lane.js +14 -5
- package/dist/core/runner/prepare-boundary-parks.js +5 -4
- package/dist/core/runner/prepare-config-doors.d.ts +9 -4
- package/dist/core/runner/prepare-config-doors.js +25 -8
- package/dist/core/runner/prepare-defer-classify.d.ts +8 -4
- package/dist/core/runner/prepare-defer-classify.js +6 -6
- package/dist/core/runner/prepare-execution-env.d.ts +4 -1
- package/dist/core/runner/prepare-execution-env.js +8 -3
- package/dist/core/runner/prepare-file-history.d.ts +26 -0
- package/dist/core/runner/prepare-file-history.js +15 -1
- package/dist/core/runner/prepare-inherited-gate.d.ts +8 -3
- package/dist/core/runner/prepare-inherited-gate.js +9 -2
- package/dist/core/runner/prepare-leg-adoption.d.ts +2 -2
- package/dist/core/runner/prepare-park-ask.js +8 -5
- package/dist/core/runner/prepare-policy-chain.d.ts +5 -0
- package/dist/core/runner/prepare-policy-chain.js +18 -7
- package/dist/core/runner/prepare-prompt-assembly.d.ts +3 -0
- package/dist/core/runner/prepare-prompt-assembly.js +4 -3
- package/dist/core/runner/prepare-suspend-saga.d.ts +4 -1
- package/dist/core/runner/prepare-suspend-saga.js +19 -5
- package/dist/core/runner/prepare-task.d.ts +2 -5
- package/dist/core/runner/prepare-task.js +71 -26
- package/dist/core/runner/prepare-turn-wiring.js +7 -5
- package/dist/core/runner/prepare-workspace-restore.js +59 -28
- package/dist/core/runner/read-root-grant.d.ts +1 -0
- package/dist/core/runner/read-root-grant.js +1 -2
- package/dist/core/runner/resume-admission.d.ts +3 -0
- package/dist/core/runner/resume-admission.js +6 -4
- package/dist/core/runner/resume-apply.js +7 -5
- package/dist/core/runner/resume-claim.d.ts +2 -2
- package/dist/core/runner/resume-claim.js +4 -4
- package/dist/core/runner/resume-policy-outcome.d.ts +1 -1
- package/dist/core/runner/resume-policy-outcome.js +6 -4
- package/dist/core/runner/resume-preflight.d.ts +3 -0
- package/dist/core/runner/resume-preflight.js +10 -3
- package/dist/core/runner/rewind-conversation.js +11 -4
- package/dist/core/runner/rewind-files.js +29 -14
- package/dist/core/runner/rewind-outcome.d.ts +27 -0
- package/dist/core/runner/rewind-outcome.js +14 -0
- package/dist/core/runner/run-attachment-seats.js +2 -1
- package/dist/core/runner/run-clock-and-content.js +2 -0
- package/dist/core/runner/run-identity-wiring.js +2 -0
- package/dist/core/runner/run-leg.js +11 -1
- package/dist/core/runner/run-notification-lane.d.ts +3 -0
- package/dist/core/runner/run-notification-lane.js +2 -2
- package/dist/core/runner/run-settle-and-teardown.d.ts +4 -2
- package/dist/core/runner/run-settle-and-teardown.js +52 -40
- package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -0
- package/dist/core/runner/run-stop-and-final-verify.js +5 -4
- package/dist/core/runner/run-terminal-adoption.d.ts +1 -1
- package/dist/core/runner/run-terminal-adoption.js +3 -3
- package/dist/core/runner/run-turn-boundary.js +7 -0
- package/dist/core/runner/runtask.d.ts +7 -4
- package/dist/core/runner/runtask.js +18 -9
- package/dist/core/runner/session-call-grant-station.d.ts +64 -0
- package/dist/core/runner/session-call-grant-station.js +119 -0
- package/dist/core/runner/session-file-state-replay.js +2 -2
- package/dist/core/runner/session-prompt-seats.d.ts +95 -0
- package/dist/core/runner/session-prompt-seats.js +62 -0
- package/dist/core/runner/session-rule-policy.js +1 -1
- package/dist/core/runner/session-write-ledger.d.ts +8 -0
- package/dist/core/runner/session-write-ledger.js +16 -0
- package/dist/core/runner/side-call-account.js +5 -1
- package/dist/core/runner/stop-tail-notice.d.ts +7 -0
- package/dist/core/runner/stop-tail-notice.js +23 -8
- package/dist/core/runner/stream-reap.js +4 -2
- package/dist/core/runner/stream-settle-backstop.d.ts +1 -1
- package/dist/core/runner/stream-settle-backstop.js +17 -18
- package/dist/core/runner/terminal-account.js +17 -8
- package/dist/core/runner/terminal-projection.d.ts +3 -2
- package/dist/core/runner/terminal-projection.js +1 -1
- package/dist/core/runner/tool-turn-repair-seat.d.ts +2 -2
- package/dist/core/runner/tool-turn-repair-seat.js +12 -7
- package/dist/core/runner/turn-attachments.d.ts +22 -1
- package/dist/core/runner/turn-attachments.js +20 -3
- package/dist/core/runner-deps.d.ts +6 -2
- package/dist/core/secret-env.d.ts +26 -6
- package/dist/core/secret-env.js +6 -6
- package/dist/core/session-call-grant-screen.d.ts +58 -0
- package/dist/core/session-call-grant-screen.js +18 -0
- package/dist/core/session-call-grant.d.ts +93 -0
- package/dist/core/session-call-grant.js +524 -0
- package/dist/core/session-checkout.d.ts +3 -0
- package/dist/core/session-checkout.js +8 -3
- package/dist/core/session-policy-store.d.ts +14 -0
- package/dist/core/session-policy-store.js +16 -2
- package/dist/core/session-store.d.ts +18 -1
- package/dist/core/session-store.js +20 -4
- package/dist/core/session.d.ts +36 -4
- package/dist/core/shared-artifact-reads.d.ts +93 -0
- package/dist/core/shared-artifact-reads.js +94 -0
- package/dist/core/skill-grant.js +1 -1
- package/dist/core/skills-directory.d.ts +9 -45
- package/dist/core/skills-directory.js +9 -722
- package/dist/core/spend-account.js +3 -0
- package/dist/core/store-contracts/checkpoint-store-contract.d.ts +22 -4
- package/dist/core/store-contracts/checkpoint-store-contract.js +363 -29
- package/dist/core/store-contracts/file-history-store-contract.d.ts +11 -3
- package/dist/core/store-contracts/file-history-store-contract.js +62 -2
- package/dist/core/store-contracts/grant-fixture.d.ts +52 -0
- package/dist/core/store-contracts/grant-fixture.js +84 -0
- package/dist/core/store-contracts/session-repo-contract.js +18 -0
- package/dist/core/store-contracts/session-store-contract.d.ts +15 -1
- package/dist/core/store-contracts/session-store-contract.js +211 -2
- package/dist/core/store-contracts/workflow-journal-store-contract.js +47 -8
- package/dist/core/suspend-lane-reasons.d.ts +13 -0
- package/dist/core/suspend-lane-reasons.js +5 -0
- package/dist/core/synthetic-read-verdict.d.ts +5 -3
- package/dist/core/synthetic-read-verdict.js +1 -1
- package/dist/core/task-limits.d.ts +15 -0
- package/dist/core/task-notification.d.ts +33 -7
- package/dist/core/task-notification.js +34 -9
- package/dist/core/task-registry-agent.d.ts +1 -1
- package/dist/core/task-registry-agent.js +18 -7
- package/dist/core/task-registry-shared.d.ts +29 -4
- package/dist/core/task-registry-shared.js +7 -0
- package/dist/core/task-registry.d.ts +21 -1
- package/dist/core/task-registry.js +36 -9
- package/dist/core/task-result.d.ts +55 -1
- package/dist/core/task-spec.d.ts +17 -3
- package/dist/core/terminal-cause.d.ts +68 -5
- package/dist/core/tool-catalog-entries.js +1 -1
- package/dist/core/tool-check-reading.js +2 -1
- package/dist/core/tool-errors.js +1 -0
- package/dist/core/tool-list-grammar.d.ts +0 -47
- package/dist/core/tool-list-grammar.js +1 -75
- package/dist/core/tool-model-gate.d.ts +7 -11
- package/dist/core/tool-model-gate.js +5 -8
- package/dist/core/tool-name-aliases.js +2 -3
- package/dist/core/tool-name-readings.d.ts +4 -0
- package/dist/core/tool-name-readings.js +1 -0
- package/dist/core/tool-policy.d.ts +46 -4
- package/dist/core/tool-policy.js +47 -18
- package/dist/core/tool-result-store.d.ts +0 -24
- package/dist/core/tool-result-store.js +1 -36
- package/dist/core/tool-spec.d.ts +8 -4
- package/dist/core/untrusted-egress.js +2 -2
- package/dist/core/untrusted-text.d.ts +8 -0
- package/dist/core/untrusted-text.js +14 -0
- package/dist/core/user-attachment.d.ts +16 -1
- package/dist/core/user-attachment.js +42 -18
- package/dist/core/wiring-manifest.d.ts +4 -9
- package/dist/core/wiring-manifest.js +1 -1
- package/dist/core/workflow-journal-store.d.ts +55 -8
- package/dist/core/workflow-journal-store.js +34 -10
- package/dist/core/workflow-run-store-contract.js +56 -1
- package/dist/core/workflow-run-store.d.ts +43 -19
- package/dist/core/workflow-run-store.js +17 -2
- package/dist/engine/execution-env/node-execution-env.d.ts +3 -0
- package/dist/engine/execution-env/node-execution-env.js +4 -0
- package/dist/engine/harness/agent-harness.d.ts +10 -5
- package/dist/engine/harness/agent-harness.js +12 -4
- package/dist/engine/harness/types.d.ts +18 -0
- package/dist/engine/llm/tool-turns.d.ts +1 -1
- package/dist/engine/llm/types.d.ts +5 -4
- package/dist/engine/session/memory-repo.d.ts +15 -3
- package/dist/engine/session/memory-repo.js +21 -3
- package/dist/engine/session/memory-storage.d.ts +5 -0
- package/dist/engine/session/memory-storage.js +8 -3
- package/dist/engine/session/repo-utils.d.ts +9 -0
- package/dist/engine/session/repo-utils.js +14 -0
- package/dist/engine/session/storage-base.d.ts +20 -7
- package/dist/engine/session/storage-base.js +13 -1
- package/dist/index.d.ts +37 -19
- package/dist/index.js +30 -15
- package/dist/internal/harness.d.ts +1 -1
- package/dist/internal/harness.js +1 -1
- package/dist/orchestration/run-workflow-tool.d.ts +13 -1
- package/dist/orchestration/run-workflow-tool.js +101 -32
- package/dist/orchestration/workflow-park-adoption.d.ts +309 -92
- package/dist/orchestration/workflow-park-adoption.js +588 -323
- package/dist/orchestration/workflow-tree-id.d.ts +66 -0
- package/dist/orchestration/workflow-tree-id.js +66 -0
- package/dist/orchestration/workflow-types.d.ts +90 -11
- package/dist/orchestration/workflow-types.js +10 -1
- package/dist/orchestration/workflow.d.ts +30 -4
- package/dist/orchestration/workflow.js +424 -114
- package/dist/prompt-assembly/catalog/constitution.js +5 -1
- package/dist/prompt-assembly/catalog/core-behavior.d.ts +3 -4
- package/dist/prompt-assembly/catalog/core-behavior.js +61 -22
- package/dist/prompt-assembly/catalog/environment.js +2 -2
- package/dist/prompt-assembly/catalog/events.d.ts +16 -0
- package/dist/prompt-assembly/catalog/events.js +2 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +72 -44
- package/dist/prompt-assembly/catalog/locales/zh-Hans/environment.js +2 -2
- package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +2 -0
- package/dist/prompt-assembly/catalog/schema.d.ts +5 -1
- package/dist/prompt-assembly/catalog/schema.js +2 -0
- package/dist/prompt-assembly/catalog/sections.js +3 -14
- package/dist/prompt-assembly/event-registry.js +2 -0
- package/dist/prompt-assembly/select.js +1 -0
- package/dist/prompt-assembly/tool-catalog.d.ts +10 -7
- package/dist/prompt-assembly/tool-catalog.js +21 -7
- package/dist/prompt-assembly/types.d.ts +3 -0
- package/dist/prompts/default.d.ts +4 -1
- package/dist/prompts/default.js +6 -0
- package/dist/stores/file/checkpoint-store.d.ts +11 -10
- package/dist/stores/file/checkpoint-store.js +36 -10
- package/dist/stores/file/file-history-store.d.ts +6 -0
- package/dist/stores/file/file-history-store.js +21 -4
- package/dist/stores/file/fs-atomic.d.ts +1 -1
- package/dist/stores/file/index.d.ts +14 -4
- package/dist/stores/file/index.js +21 -5
- package/dist/stores/file/process-anchor.d.ts +9 -1
- package/dist/stores/file/session-policy-store.js +2 -17
- package/dist/stores/file/session-store.d.ts +27 -0
- package/dist/stores/file/session-store.js +81 -9
- package/dist/stores/file/workflow-journal-store.d.ts +14 -4
- package/dist/stores/file/workflow-journal-store.js +32 -24
- package/dist/stores/file/workflow-run-store.d.ts +15 -4
- package/dist/stores/file/workflow-run-store.js +76 -0
- package/dist/tools/artifact/artifact-tool.d.ts +10 -3
- package/dist/tools/artifact/artifact-tool.js +16 -1
- package/dist/tools/fs/bash-program-position.d.ts +10 -4
- package/dist/tools/fs/bash-program-position.js +11 -8
- package/dist/tools/fs/bash-readonly-classifier.d.ts +3 -1
- package/dist/tools/fs/bash-readonly-classifier.js +9 -2
- package/dist/tools/fs/find-actions.d.ts +30 -16
- package/dist/tools/fs/find-actions.js +272 -19
- package/dist/tools/fs/fs-bash.js +8 -5
- package/dist/tools/fs/fs-shared.d.ts +0 -29
- package/dist/tools/fs/fs-shared.js +0 -5
- package/dist/tools/fs/fs-write.js +2 -1
- package/dist/tools/fs/read-deny.d.ts +6 -1
- package/dist/tools/fs/read-deny.js +6 -1
- package/dist/tools/fs/read-floor.d.ts +6 -0
- package/dist/tools/fs/read-floor.js +5 -1
- package/dist/tools/fs/removal-actions.d.ts +43 -0
- package/dist/tools/fs/removal-actions.js +25 -0
- package/dist/tools/fs/removal-targets.d.ts +2 -21
- package/dist/tools/fs/removal-targets.js +2 -3
- package/dist/tools/fs/safety.d.ts +37 -1
- package/dist/tools/fs/safety.js +52 -0
- package/dist/tools/fs/shell-climb.d.ts +46 -0
- package/dist/tools/fs/shell-climb.js +79 -0
- package/dist/tools/fs/shell-read-check.js +47 -19
- package/dist/tools/fs/shell-read-establish.js +36 -22
- package/dist/tools/fs/shell-read-judge.d.ts +10 -2
- package/dist/tools/fs/shell-read-judge.js +4 -4
- package/dist/tools/fs/shell-read-plan.d.ts +3 -0
- package/dist/tools/fs/shell-read-plan.js +1 -1
- package/dist/tools/fs/shell-read-workdir.js +3 -2
- package/dist/tools/fs/shell-read-write-targets.d.ts +4 -3
- package/dist/tools/fs/shell-read-write-targets.js +3 -0
- package/package.json +2 -2
- package/test/export-surface.snapshot.json +169 -15
- package/wire-changes/core-stores-sql@7.71.0.json +40 -0
- package/wire-changes/core@7.71.0.json +5827 -0
- package/wire-changes/mods-kernel@7.71.0.json +52 -0
- package/wire-changes/primitives@7.71.0.json +473 -0
- package/wire-changes/wiki-gate@7.71.0.json +40 -0
- package/dist/core/frontmatter-fence.d.ts +0 -10
- package/dist/core/frontmatter-fence.js +0 -6
- package/dist/core/permission-rule-syntax.d.ts +0 -46
- package/dist/core/permission-rule-syntax.js +0 -52
|
@@ -95,6 +95,15 @@ export declare function isTextContentHash(value: unknown): value is string;
|
|
|
95
95
|
* the serializer's own (sorted), so the two members cannot be permuted.
|
|
96
96
|
*/
|
|
97
97
|
export declare function exactBoundInputHashOf(tool: string, input: unknown): string | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* THE reading of whether an answer edits a call: its `updatedInput` is an edit only when it is other bytes than the arguments the
|
|
100
|
+
* answer was handed, under the call's one binding — `shown` is their {@link exactBoundInputHashOf}, taken by the seat BEFORE it
|
|
101
|
+
* waits (a value read afterwards could have been moved to match). Bytes the binding reads as shown — keys in another order, a
|
|
102
|
+
* member holding `undefined` beside its absence, `-0` beside `0` — are the call handed back as shown: no edit, the same answer as
|
|
103
|
+
* one that carried none. Bytes with no digest (outside the bindable domain), or shown bytes with none, are an edit, refused where
|
|
104
|
+
* an edit is taken. Returns the edit, else `undefined`. Every reader of "did this answer edit the call" reads it.
|
|
105
|
+
*/
|
|
106
|
+
export declare function editOfAnswer(tool: string, shown: string | undefined, updatedInput: unknown): unknown;
|
|
98
107
|
/**
|
|
99
108
|
* Why a value is outside the bindable domain: its top is not the payload's shape, a refusal of the receipt it is read by, or one of
|
|
100
109
|
* JSON's own five — a number that is not finite, a hole in a list, a named member on a list, an `undefined` list element, one
|
|
@@ -34,6 +34,12 @@ export function exactBoundInputHashOf(tool, input) {
|
|
|
34
34
|
const form = canonicalize({ tool, input: captured.value }, -1);
|
|
35
35
|
return form === UNCANONICALIZABLE ? undefined : createHash("sha256").update(form, "utf8").digest("hex");
|
|
36
36
|
}
|
|
37
|
+
export function editOfAnswer(tool, shown, updatedInput) {
|
|
38
|
+
if (updatedInput === undefined)
|
|
39
|
+
return undefined;
|
|
40
|
+
const edit = exactBoundInputHashOf(tool, updatedInput);
|
|
41
|
+
return edit !== undefined && edit === shown ? undefined : updatedInput;
|
|
42
|
+
}
|
|
37
43
|
export function bindableValueOf(value, top = "record") {
|
|
38
44
|
const received = receive(value, BINDING_RECEIPT);
|
|
39
45
|
if (!received.ok)
|
|
@@ -34,63 +34,45 @@ export declare function copiedRiskAxes(given: unknown): {
|
|
|
34
34
|
*/
|
|
35
35
|
export declare function normalizeProbeCause(value: unknown): ProbeCause | undefined;
|
|
36
36
|
/**
|
|
37
|
-
* The checkpoint FEATURE TABLE — one row per feature
|
|
38
|
-
* what a mint
|
|
39
|
-
*
|
|
37
|
+
* The checkpoint FEATURE TABLE — one row per feature whose presence a row's reader must know about: where it came
|
|
38
|
+
* from and what a mint owes when the feature is present (`writes`, prose). The row FORMAT is one number,
|
|
39
|
+
* {@link MAX_SUPPORTED_CHECKPOINT_VERSION} (10, the `requirements` row): every live mint stamps it and lists the row's
|
|
40
40
|
* reader-requirement words beside it (`Checkpoint.requires`, checkpoint-requirements.ts) — a later segment adds a
|
|
41
|
-
* word there, never a row here. Each feature key below (but `
|
|
42
|
-
*
|
|
41
|
+
* word there, never a row here. Each feature key below (but `requirements`) is itself one of those words, and whether
|
|
42
|
+
* a row carries the feature is read off the row's content by the requirement tables, never off a number.
|
|
43
43
|
*
|
|
44
|
-
* A
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* v4 is a GAP, deliberately: the retired cross-slice wall-clock allocation. This worker still reads v4
|
|
49
|
-
* rows; a ledger carrying the retired axis is refused by FIELD (`walltime_axis_retired`) at any version.
|
|
44
|
+
* A row below the format (an earlier release's, stamped by the highest feature it carried, or with no version at
|
|
45
|
+
* all) is read by no rule here: the row's judge refuses it as a retired seat (checkpoint-row-verdict.ts) — it stays
|
|
46
|
+
* pending, nothing is consumed, and the way out is to expire it and run the work again.
|
|
50
47
|
*/
|
|
51
48
|
export declare const CHECKPOINT_FEATURES: {
|
|
52
|
-
/**
|
|
53
|
-
* mint stamps it today; it is the floor of the ladder and the reading of a row written before any feature. */
|
|
54
|
-
readonly baseline: {
|
|
55
|
-
readonly version: 1;
|
|
56
|
-
readonly introduced: "design/49";
|
|
57
|
-
readonly writes: "the row itself";
|
|
58
|
-
};
|
|
59
|
-
/** A `resource_limit` suspend: `resourceLedger` plus a `resource_limit` gate/pendingAction an older worker
|
|
60
|
-
* cannot handle (it rejects pre-CAS; the row stays `pending`, retryable on a newer worker). */
|
|
49
|
+
/** A `resource_limit` suspend: `resourceLedger` plus a `resource_limit` gate/pendingAction. */
|
|
61
50
|
readonly resource: {
|
|
62
|
-
readonly version: 2;
|
|
63
51
|
readonly introduced: "design/74";
|
|
64
52
|
readonly writes: "resourceLedger; gate/pendingAction kind resource_limit";
|
|
65
53
|
};
|
|
66
|
-
/** A HUMAN-DECISION park (tool approval or plan_review)
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
* this row is a park-kind FLOOR: a plan_review park carries it with no binding (it was introduced above it);
|
|
70
|
-
* whether a tool_approval row carries its hash is the resume binding rung's own conjunction. */
|
|
54
|
+
/** A HUMAN-DECISION park (tool approval or plan_review): the decision-action binding (`boundCallId` +
|
|
55
|
+
* `boundInputHash` on a tool_approval) is enforced ENTIRELY by the resuming worker; a tool approval without its
|
|
56
|
+
* hash is a damaged row (the resume binding rung). */
|
|
71
57
|
readonly binding: {
|
|
72
|
-
readonly version: 3;
|
|
73
58
|
readonly introduced: "design/80";
|
|
74
|
-
readonly writes: "pendingAction.boundCallId + boundInputHash on a tool_approval; a plan_review carries
|
|
59
|
+
readonly writes: "pendingAction.boundCallId + boundInputHash on a tool_approval; a plan_review carries no binding";
|
|
75
60
|
};
|
|
76
61
|
/** A ledger carrying a cross-slice TOKEN allocation: the window clamp and the exhausted-resume fail-fast
|
|
77
|
-
* live in the resuming worker.
|
|
62
|
+
* live in the resuming worker. */
|
|
78
63
|
readonly token: {
|
|
79
|
-
readonly version: 5;
|
|
80
64
|
readonly introduced: "design/164";
|
|
81
65
|
readonly writes: "resourceLedger.totalTokens";
|
|
82
66
|
};
|
|
83
67
|
/** Org-memory admission freeze state (the adjudicated-empty record included): the session/delegation
|
|
84
68
|
* freeze on resume and the tenant-admission door live in the resuming worker. */
|
|
85
69
|
readonly orgAdmission: {
|
|
86
|
-
readonly version: 6;
|
|
87
70
|
readonly introduced: "org-admission";
|
|
88
71
|
readonly writes: "inheritedGate.admittedOrgScopes / ownAdmittedOrgScopes / ownAdmittedOrgWriteScope / orgAdmissionGoverned";
|
|
89
72
|
};
|
|
90
73
|
/** The F-012 durable enforcement fields: the frozen ancestor projection chain + its digest (one write, the
|
|
91
74
|
* resume-edit re-adjudication executes it) and/or the delegation-provenance aggregate a resume re-seeds. */
|
|
92
75
|
readonly f012: {
|
|
93
|
-
readonly version: 7;
|
|
94
76
|
readonly introduced: "F-012";
|
|
95
77
|
readonly writes: "inheritedGate.constraintChain + constraintDigest together; delegationProvenance";
|
|
96
78
|
};
|
|
@@ -98,61 +80,41 @@ export declare const CHECKPOINT_FEATURES: {
|
|
|
98
80
|
* belt live in the resuming worker. Minted at ONE site (the approval park); the two always-mounted
|
|
99
81
|
* integrity policies mint it on any durable deployment, org-governed or not. */
|
|
100
82
|
readonly realApproval: {
|
|
101
|
-
readonly version: 8;
|
|
102
83
|
readonly introduced: "#130/#120";
|
|
103
|
-
readonly writes: "gate.realApproval (a well-formed bit) + pendingAction.requiresRealApproval;
|
|
84
|
+
readonly writes: "gate.realApproval (a well-formed bit) + pendingAction.requiresRealApproval; readFace.realApproval = true beside it";
|
|
104
85
|
};
|
|
105
86
|
/** The READ-face section ({@link CheckpointState.readFace}): resolved face + normalized deny-set additions,
|
|
106
87
|
* written only for a non-default posture; the stricter-wins fold lives in the resuming worker. Carries the
|
|
107
|
-
* redundant governance marker for `realApproval
|
|
88
|
+
* redundant governance marker for `realApproval`. Absent ⇒ default posture. */
|
|
108
89
|
readonly face: {
|
|
109
|
-
readonly version: 9;
|
|
110
90
|
readonly introduced: "design/199";
|
|
111
91
|
readonly writes: "state.readFace { face, denyEntries? } for a non-default posture; realApproval: true only at the mint whose gate carries the bit (a hands-less re-park never carries the seed's marker forward)";
|
|
112
92
|
};
|
|
113
|
-
/** The
|
|
114
|
-
* worker of v7.24.2–7.48.x (ceiling 9) refuses every row minted
|
|
93
|
+
/** The frame: the reader-requirement words ({@link CheckpointRow.requires}) and the row digest. Every live mint
|
|
94
|
+
* writes them at the row format, so a worker of v7.24.2–7.48.x (ceiling 9) refuses every row minted since,
|
|
95
|
+
* `version_newer`, pre-CAS. */
|
|
115
96
|
readonly requirements: {
|
|
116
|
-
readonly version: 10;
|
|
117
97
|
readonly introduced: "#1320";
|
|
118
98
|
readonly writes: "requires (the row's words) + requirementsDigest (the row digest), both derived from its content (checkpoint-requirements.ts)";
|
|
119
99
|
};
|
|
120
100
|
};
|
|
121
101
|
/** One row of {@link CHECKPOINT_FEATURES}. */
|
|
122
102
|
export interface CheckpointFeatureRow {
|
|
123
|
-
readonly version: number;
|
|
124
103
|
/** Where the feature came from — a design or ticket tag, documentation only. */
|
|
125
104
|
readonly introduced: string;
|
|
126
|
-
/** What a mint
|
|
105
|
+
/** What a mint writes when the feature is present (prose; the mint sites are the code). */
|
|
127
106
|
readonly writes: string;
|
|
128
107
|
}
|
|
129
108
|
/** The feature words — the row keys of {@link CHECKPOINT_FEATURES}. */
|
|
130
109
|
export type CheckpointFeature = keyof typeof CHECKPOINT_FEATURES;
|
|
131
|
-
/** The
|
|
132
|
-
*
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
export declare const
|
|
136
|
-
/** The `binding` row's version. */
|
|
137
|
-
export declare const BINDING_CHECKPOINT_VERSION: 3;
|
|
138
|
-
/** The `token` row's version. v4 (the retired wall-clock total) is deliberately not reused. */
|
|
139
|
-
export declare const TOKEN_CHECKPOINT_VERSION: 5;
|
|
140
|
-
/** The `orgAdmission` row's version. */
|
|
141
|
-
export declare const ORG_ADMISSION_CHECKPOINT_VERSION: 6;
|
|
142
|
-
/** The `f012` row's version. */
|
|
143
|
-
export declare const F012_CHECKPOINT_VERSION: 7;
|
|
144
|
-
/** The `realApproval` row's version. */
|
|
145
|
-
export declare const REAL_APPROVAL_CHECKPOINT_VERSION: 8;
|
|
146
|
-
/** The `face` row's version. */
|
|
147
|
-
export declare const FACE_CHECKPOINT_VERSION: 9;
|
|
148
|
-
/** The highest {@link Checkpoint.version} `runner.resume` will act on — the top row of the table, and the stamp
|
|
149
|
-
* of every live mint (the table is closed there); a higher one is rejected pre-CAS with {@link CheckpointError}
|
|
150
|
-
* `unsupported_version` (the row stays `pending`, retryable on a newer worker). */
|
|
151
|
-
export declare const MAX_SUPPORTED_CHECKPOINT_VERSION: 10;
|
|
110
|
+
/** The checkpoint row FORMAT — the one {@link Checkpoint.version} this engine reads, and the stamp of every live mint
|
|
111
|
+
* (frozen: a later segment adds a reader-requirement word, never a number). A higher one is rejected pre-CAS with
|
|
112
|
+
* {@link CheckpointError} `unsupported_version` / `version_newer` (the row stays `pending`, retryable on a newer worker);
|
|
113
|
+
* a lower one with `unsupported_version` / `seat_retired` (the row stays `pending`; expire it and run the work again). */
|
|
114
|
+
export declare const MAX_SUPPORTED_CHECKPOINT_VERSION = 10;
|
|
152
115
|
/**
|
|
153
|
-
* Read a checkpoint's schema version, defaulting an absent field to **`0`** (
|
|
154
|
-
*
|
|
155
|
-
* Compare with `<= MAX_SUPPORTED_CHECKPOINT_VERSION`, never `=== CURRENT_CHECKPOINT_VERSION` (design/49 §3).
|
|
116
|
+
* Read a checkpoint's schema version, defaulting an absent field to **`0`** (a row written before the field
|
|
117
|
+
* existed — below the format, so its judge refuses it as a retired seat).
|
|
156
118
|
*/
|
|
157
119
|
export declare function checkpointVersionOf(cp: Pick<Checkpoint, "version">): number;
|
|
158
120
|
/**
|
|
@@ -178,15 +140,16 @@ export declare function checkpointVersionOf(cp: Pick<Checkpoint, "version">): nu
|
|
|
178
140
|
* incomplete — the one arm that is not row-scoped: NO row in that data directory is readable here, so
|
|
179
141
|
* the host rolls the binary forward instead of routing one token elsewhere), `"seat_retired"` (the row
|
|
180
142
|
* carries a seat this engine no longer reads — terminal for the row's bytes: the retired pre-queue single
|
|
181
|
-
* steer seat, which no worker version reads and the host decides itself,
|
|
182
|
-
* `inheritedGate`, which an engine at 7.38.x or earlier still reads once
|
|
143
|
+
* steer seat, which no worker version reads and the host decides itself, a retired mode-seed member of
|
|
144
|
+
* `inheritedGate`, which an engine at 7.38.x or earlier still reads once, or a row below the format, which an
|
|
145
|
+
* earlier engine read by its number — expire it and run the work again), `"leg_not_resumable"` (a row a synchronous child
|
|
183
146
|
* parked under an earlier release — it carries the synchronous-child block — whose leg nobody resumes: its result has no road back to
|
|
184
147
|
* the run that spawned it; terminal for the row's bytes on every worker of this release — expire it and run the work again),
|
|
185
148
|
* `"reading_changed"` (the row is intact and an earlier release parked it, reading part of it the way this release no longer
|
|
186
149
|
* does — a member a decision binds, which reads as written under the earlier reading the requirement tables record; or its
|
|
187
150
|
* frozen inherited constraint chain, which matches its digest under the earlier projection meaning that digest's prefix names).
|
|
188
|
-
* · `invalid_outcome` pre-CAS row-integrity arms: `"real_approval_damaged"`,
|
|
189
|
-
* `"read_face_damaged"`, `"
|
|
151
|
+
* · `invalid_outcome` pre-CAS row-integrity arms: `"real_approval_damaged"`,
|
|
152
|
+
* `"read_face_damaged"`, `"write_face_damaged"`, `"skill_grants_damaged"`, `"skill_scopes_damaged"`, `"constraint_chain_missing"`, `"hands_coordinates_damaged"`, `"requirements_damaged"`, `"execution_recorded"`, `"bound_input_hash_missing"`.
|
|
190
153
|
* Whether ANY release still resumes a row its judge refuses is not restated per word here: it is the row judge's one table
|
|
191
154
|
* (`checkpoint-row-verdict.ts`, read as the verdict's `terminal`), beside the refusal's fixed sentence.
|
|
192
155
|
*
|
|
@@ -198,17 +161,16 @@ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "g
|
|
|
198
161
|
/** An intact row an earlier release parked, which this release reads differently: the input hash of a tool approval parked before
|
|
199
162
|
* 7.63.0, or a member whose earlier reading the requirement tables record (`EarlierReading`) and the row's content cannot show
|
|
200
163
|
* agrees with this release's. */
|
|
201
|
-
| "reading_changed" | "real_approval_damaged" | "
|
|
202
|
-
/** `state.writeFace` is present but not a well-formed section
|
|
203
|
-
*
|
|
204
|
-
* fabricated "open" still needs the LIVE resolution to say open too. */
|
|
164
|
+
| "reading_changed" | "real_approval_damaged" | "read_face_damaged"
|
|
165
|
+
/** `state.writeFace` is present but not a well-formed section (legal and absent on any row, so "missing" is never
|
|
166
|
+
* damage — and a fabricated "open" still needs the LIVE resolution to say open too). */
|
|
205
167
|
| "write_face_damaged" | "skill_grants_damaged"
|
|
206
168
|
/** `state.skillScopes` is present but not a list of skill names (the active skills whose hooks the resumed leg reopens). */
|
|
207
169
|
| "skill_scopes_damaged" | "constraint_chain_missing"
|
|
208
170
|
/** `state.handsRoot` / `state.handsHome` / `state.handsCwd` is present but not an absolute path (the row's hands' coordinates). */
|
|
209
171
|
| "hands_coordinates_damaged"
|
|
210
172
|
/** The row's content does not read the way it was recorded when it was parked: its reader-requirement list
|
|
211
|
-
* ({@link CheckpointRow.requires}) is missing
|
|
173
|
+
* ({@link CheckpointRow.requires}) is missing, is not a list of words, or does not equal
|
|
212
174
|
* the words the row's content carries, or its digest does not equal its content's — and no earlier reading the requirement
|
|
213
175
|
* tables record explains it (that is `reading_changed`); a member the shape table refuses; a row its judge cannot read. */
|
|
214
176
|
| "requirements_damaged"
|
|
@@ -216,9 +178,8 @@ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "g
|
|
|
216
178
|
* in storage AFTER the action was taken up, so — unlike every other damaged row — the action may already have run or been refused.
|
|
217
179
|
* Terminal for the row's bytes; its sentence says to check the recorded outcome before running the work again. */
|
|
218
180
|
| "execution_recorded"
|
|
219
|
-
/** A pending tool approval
|
|
220
|
-
*
|
|
221
|
-
* bind to. Terminal for the row's bytes (a pre-binding row, which never minted a hash, binds on `boundCallId` alone and is not this). */
|
|
181
|
+
/** A pending tool approval that carries no persisted `boundInputHash` — every mint writes one, so its absence is corruption or a
|
|
182
|
+
* caller-declared downgrade, and the decision-action input binding has nothing to bind to. Terminal for the row's bytes. */
|
|
222
183
|
| "bound_input_hash_missing"
|
|
223
184
|
/** On `resume.parent_constraint_mismatch`: a re-supplied chain entry whose path rules depend on the leg that installed it has
|
|
224
185
|
* no installation record (a chain written before the record existed) / a record that does not cover the chain entry for
|
|
@@ -258,7 +219,9 @@ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "g
|
|
|
258
219
|
* `config.locked_key`), an MCP server's content class, the skills-listing seats (`config.skill_listing_budget_invalid`), the limits and the
|
|
259
220
|
* resource-suspend knobs, the attachment modes, the governance windows, the brain-call guardrail, the host floor (`config.host_floor_invalid`) and the retention declaration over the stores the leg
|
|
260
221
|
* would run on (`config.retention_policy`, `config.retention_capability`), and the checkpoint store seat itself (`config.invalid_checkpoint_store`: the
|
|
261
|
-
* retired `null` spelling, a store without a required verb
|
|
222
|
+
* retired `null` spelling, a store without a required verb, a grant holder over a store that does not judge it), the session store seat's holder
|
|
223
|
+
* door (`config.invalid_session_store`: a holder over a session store that does not declare the fence, a `requireHolder` store and a host
|
|
224
|
+
* resume without a holder, a declaration the seat refuses), and the skills seat and the hands band (`config.invalid_argument`;
|
|
262
225
|
* a skill's `baseDir` by its own reader, `config.skill_base_dir_invalid`), and the value arms of three doors whose other arms need the leg:
|
|
263
226
|
* the interaction posture's word and its contradiction with `interactiveTools: false` (`config.interaction_posture`), the requested role's
|
|
264
227
|
* word (`config.unknown_role`, `detail.reason` `unknown_role_word`), and per-task agents beside a roster the receipt reads whole that mounts no
|
|
@@ -270,7 +233,7 @@ export type CheckpointErrorReason = "version_newer" | "env_factory_missing" | "g
|
|
|
270
233
|
*
|
|
271
234
|
* A SUBSET of {@link CONFIG_REFUSAL_CODES}, the family's whole refusal vocabulary: the words a resume's screen can produce, held to that set at compile time.
|
|
272
235
|
*/
|
|
273
|
-
export declare const CHECKPOINT_CONFIG_REFUSAL_CODES: readonly ["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid"];
|
|
236
|
+
export declare const CHECKPOINT_CONFIG_REFUSAL_CODES: readonly ["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.invalid_session_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid"];
|
|
274
237
|
export type CheckpointConfigRefusalCode = (typeof CHECKPOINT_CONFIG_REFUSAL_CODES)[number];
|
|
275
238
|
export declare const isCheckpointConfigRefusalCode: (word: unknown) => word is CheckpointConfigRefusalCode;
|
|
276
239
|
/** The words of a {@link CheckpointError}'s optional `detail.field` (what each means: the `detail` member's doc). A CLOSED SET with one home, registered in
|
|
@@ -296,7 +259,7 @@ export type ResumePreflightSettler = "this_refusal" | "concurrent_actor" | "nobo
|
|
|
296
259
|
* registered in `docs/CLOSED-SETS.md`. What each code means is written on its entry below. The codes a retained child's resume handle
|
|
297
260
|
* rejects with (`Error.code`, minted outside this class) are their own set, {@link SPAWN_RESUME_REFUSAL_CODES}.
|
|
298
261
|
*/
|
|
299
|
-
export declare const CHECKPOINT_ERROR_CODES: readonly ["checkpoint.already_exists", "checkpoint.already_resolved", "checkpoint.not_found", "checkpoint.gate_mismatch", "checkpoint.resume_aborted", "checkpoint.invalid_outcome", "checkpoint.unsupported_version", "checkpoint.config_refused", "checkpoint.cwd_conflicts_restore", "checkpoint.walltime_axis_retired", "checkpoint.reopen_revote", "checkpoint.reopened_concurrently", "checkpoint.reopen_failed", "checkpoint.void_unpin_failed", "checkpoint.execution_outcome_conflict", "steering.invalid_content", "steering.queue_full", "steering.duplicate_input_id", "steering.blocked_by_hook", "wake.gate_pending", "wake.nothing_to_deliver", "resume.parent_constraint_missing", "resume.parent_constraint_mismatch", "resume.parent_constraint_unrebuildable", "resume.usage_window_exhausted", "resume.principal_mismatch", "resume.isolation_scope_mismatch", "resume.placement_mismatch", "resume.composition_mismatch", "resume.agent_definition_mismatch", "resume.preflight_rejected", "resume.
|
|
262
|
+
export declare const CHECKPOINT_ERROR_CODES: readonly ["checkpoint.already_exists", "checkpoint.already_resolved", "checkpoint.not_found", "checkpoint.gate_mismatch", "checkpoint.resume_aborted", "checkpoint.invalid_outcome", "checkpoint.unsupported_version", "checkpoint.config_refused", "checkpoint.cwd_conflicts_restore", "checkpoint.walltime_axis_retired", "checkpoint.reopen_revote", "checkpoint.reopened_concurrently", "checkpoint.reopen_failed", "checkpoint.void_unpin_failed", "checkpoint.execution_outcome_conflict", "steering.invalid_content", "steering.queue_full", "steering.duplicate_input_id", "steering.blocked_by_hook", "wake.gate_pending", "wake.nothing_to_deliver", "resume.parent_constraint_missing", "resume.parent_constraint_mismatch", "resume.parent_constraint_unrebuildable", "resume.usage_window_exhausted", "resume.principal_mismatch", "resume.isolation_scope_mismatch", "resume.placement_mismatch", "resume.composition_mismatch", "resume.agent_definition_mismatch", "resume.preflight_rejected", "resume.constraint_rejected", "resume.constraint_unprojectable"];
|
|
300
263
|
/** The code of a {@link CheckpointError} — derived from {@link CHECKPOINT_ERROR_CODES}, its one home. */
|
|
301
264
|
export type CheckpointErrorCode = (typeof CHECKPOINT_ERROR_CODES)[number];
|
|
302
265
|
export declare const isCheckpointErrorCode: (word: unknown) => word is CheckpointErrorCode;
|
|
@@ -62,29 +62,20 @@ export function normalizeProbeCause(value) {
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
export const CHECKPOINT_FEATURES = {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
requirements: { version: 10, introduced: "#1320", writes: "requires (the row's words) + requirementsDigest (the row digest), both derived from its content (checkpoint-requirements.ts)" },
|
|
65
|
+
resource: { introduced: "design/74", writes: "resourceLedger; gate/pendingAction kind resource_limit" },
|
|
66
|
+
binding: { introduced: "design/80", writes: "pendingAction.boundCallId + boundInputHash on a tool_approval; a plan_review carries no binding" },
|
|
67
|
+
token: { introduced: "design/164", writes: "resourceLedger.totalTokens" },
|
|
68
|
+
orgAdmission: { introduced: "org-admission", writes: "inheritedGate.admittedOrgScopes / ownAdmittedOrgScopes / ownAdmittedOrgWriteScope / orgAdmissionGoverned" },
|
|
69
|
+
f012: { introduced: "F-012", writes: "inheritedGate.constraintChain + constraintDigest together; delegationProvenance" },
|
|
70
|
+
realApproval: { introduced: "#130/#120", writes: "gate.realApproval (a well-formed bit) + pendingAction.requiresRealApproval; readFace.realApproval = true beside it" },
|
|
71
|
+
face: { introduced: "design/199", writes: "state.readFace { face, denyEntries? } for a non-default posture; realApproval: true only at the mint whose gate carries the bit (a hands-less re-park never carries the seed's marker forward)" },
|
|
72
|
+
requirements: { introduced: "#1320", writes: "requires (the row's words) + requirementsDigest (the row digest), both derived from its content (checkpoint-requirements.ts)" },
|
|
74
73
|
};
|
|
75
|
-
export const
|
|
76
|
-
export const RESOURCE_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.resource.version;
|
|
77
|
-
export const BINDING_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.binding.version;
|
|
78
|
-
export const TOKEN_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.token.version;
|
|
79
|
-
export const ORG_ADMISSION_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.orgAdmission.version;
|
|
80
|
-
export const F012_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.f012.version;
|
|
81
|
-
export const REAL_APPROVAL_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.realApproval.version;
|
|
82
|
-
export const FACE_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.face.version;
|
|
83
|
-
export const MAX_SUPPORTED_CHECKPOINT_VERSION = CHECKPOINT_FEATURES.requirements.version;
|
|
74
|
+
export const MAX_SUPPORTED_CHECKPOINT_VERSION = 10;
|
|
84
75
|
export function checkpointVersionOf(cp) {
|
|
85
76
|
return cp.version ?? 0;
|
|
86
77
|
}
|
|
87
|
-
export const CHECKPOINT_CONFIG_REFUSAL_CODES = Object.freeze(["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid"]);
|
|
78
|
+
export const CHECKPOINT_CONFIG_REFUSAL_CODES = Object.freeze(["config.spec_retired_key", "config.output_style_invalid", "config.language_invalid", "config.permission_mode_invalid", "config.shell_gate_value_retired", "config.approval_reach_invalid", "config.run_origin_invalid", "config.user_invoked_skill_unknown", "config.skill_deny_unreadable", "config.user_attachment_invalid", "config.tool_face_control", "config.deps_retired_key", "config.peer_presence_invalid", "config.tool_model_gate_invalid", "config.microcompact_invalid", "config.prompt_selector_invalid", "resume_at.conflicts_resume", "resume_at.mode_without_target", "config.read_face_invalid", "config.write_face_invalid", "config.invalid_argument", "config.tool_face_invalid", "config.memory_delegation_evidence", "config.memory_provenance", "config.memory_capture_policy", "config.cross_boundary_posture", "config.advisor_tool_invalid", "config.advisor_model_invalid", "config.auto_consolidation", "config.unknown_role", "config.tool_materialize_invalid", "config.memory_persistence_invalid", "config.tool_materialize_unreachable", "config.locked_registry", "config.locked_key", "config.mcp_content_class", "config.skill_listing_budget_invalid", "config.limit_unknown_key", "config.limit_invalid", "config.attachment_invalid", "config.usage_window_invalid", "config.brain_call_guardrail_invalid", "config.retention_policy", "config.retention_capability", "config.invalid_checkpoint_store", "config.invalid_session_store", "config.skill_base_dir_invalid", "config.host_floor_invalid", "config.credential_in_declaration", "config.credential_ref_invalid", "config.peer_seat_missing", "config.interaction_posture", "config.agents.no_delegation_tool", "config.spec_member_unreadable", "config.spec_unknown_key", "config.agent_config_dir_invalid", "config.agent_home_dir_invalid"]);
|
|
88
79
|
export const isCheckpointConfigRefusalCode = (word) => CHECKPOINT_CONFIG_REFUSAL_CODES.some((w) => w === word);
|
|
89
80
|
export const CHECKPOINT_ERROR_CODES = Object.freeze([
|
|
90
81
|
"checkpoint.already_exists",
|
|
@@ -118,7 +109,6 @@ export const CHECKPOINT_ERROR_CODES = Object.freeze([
|
|
|
118
109
|
"resume.composition_mismatch",
|
|
119
110
|
"resume.agent_definition_mismatch",
|
|
120
111
|
"resume.preflight_rejected",
|
|
121
|
-
"resume.holder_superseded",
|
|
122
112
|
"resume.constraint_rejected",
|
|
123
113
|
"resume.constraint_unprojectable",
|
|
124
114
|
]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* reads as 0" is written once.
|
|
5
5
|
* A leaf: it types against `checkpoint-store.ts` (type only), so the store module can call it without a load-order cycle.
|
|
6
6
|
*/
|
|
7
|
-
import type { Checkpoint,
|
|
7
|
+
import type { Checkpoint, ResolveExpectation } from "./checkpoint-store.js";
|
|
8
8
|
/**
|
|
9
9
|
* THE generation of a checkpoint row: its monotonic {@link Checkpoint.rev}, where an absent `rev` (a row
|
|
10
10
|
* minted before the field existed, never mutated) reads as `0`. This is the one place that rule is
|
|
@@ -31,30 +31,100 @@ export declare function checkpointOccMatches(cp: Checkpoint, expect?: Pick<Resol
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function checkpointClaimRevOf(read: Pick<Checkpoint, "rev">): number;
|
|
33
33
|
/**
|
|
34
|
-
* The deployment's judge of a
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
34
|
+
* The deployment's judge of a grant holder, handed to an in-tree store (`holderIsCurrent`) — the ONE judge every write that carries a
|
|
35
|
+
* holder is judged by (a session append or leaf move, a card's `put`, steer, `expire` and `resolve`).
|
|
36
|
+
*
|
|
37
|
+
* THE SENTENCE: `true` exactly when the grant `holder` names is the run's CURRENT leg AND that run has not ended (it is running or
|
|
38
|
+
* parked); `false` otherwise. A run row whose status is a word outside the host's own live set (a status the judge does not know) is
|
|
39
|
+
* NOT held: the judge answers `false` — fail-closed, never read as live. A value the judge cannot read as a grant is not an answer:
|
|
40
|
+
* the judge throws (a host's judge over `decodeGrantHolder` throws `holder.malformed`), and the write throws with nothing written.
|
|
41
|
+
*
|
|
42
|
+
* Exactly `true` is current; any answer that is not a boolean — a promise from an async judge included — is refused loudly
|
|
43
|
+
* ({@link holderJudgedCurrent}), never read by its truthiness and never as a lost grant.
|
|
44
|
+
*
|
|
45
|
+
* WHEN A HOST ENDS A RUN: a run that finishes normally is marked ended only once its settled result is in the host's hands — the
|
|
46
|
+
* leg writes its last records after it reports its end (`task.end`), and a judge reading that report as "ended" refuses the leg's
|
|
47
|
+
* own tail. Cancelling or superseding a run may withdraw its grant earlier; the writes refused then are the ones meant to be refused.
|
|
48
|
+
*
|
|
49
|
+
* SYNCHRONOUS — the store calls it inside its atomic step, right before the commit, so the judgement and the write are one step with
|
|
50
|
+
* respect to code in THIS process. That closes the race only when the deployment's grant transfers happen in this process and
|
|
51
|
+
* synchronously (an in-process grant table); a grant another process can transfer needs a store whose write and the grant table
|
|
52
|
+
* share one transaction (a SQL backend: the write's condition and a locked read of the run row, in one transaction).
|
|
53
|
+
* "One step" is with respect to OTHER writers and to the grant table's own transfers: the values the caller hands the write (the row, the
|
|
54
|
+
* entry, the outcome, the options) are the caller's, read by the store as it writes them — a caller whose own objects run code when read
|
|
55
|
+
* (an accessor that moves its own grant) is outside what the fence promises.
|
|
41
56
|
*/
|
|
42
57
|
export type HolderJudge = (holder: string) => boolean;
|
|
58
|
+
/** THE reading of a store's `holderIsCurrent` option (`subject` names the option): absent, or a function — anything else is refused
|
|
59
|
+
* when the store is built (`config.invalid_argument`), never read as "no judge" and never left to fail at the first write. */
|
|
60
|
+
export declare function readHolderJudge(subject: string, value: unknown): HolderJudge | undefined;
|
|
43
61
|
/**
|
|
44
|
-
* THE
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
|
|
62
|
+
* THE rule of a judge over a SHARED authority (one log, one ledger, one in-process view several store instances join): the judge
|
|
63
|
+
* belongs to the authority, not to the instance that happened to build it — every instance that joins must bring the SAME judge (the
|
|
64
|
+
* same function object, or none beside none), else the join is refused with the store kind's code, naming both sides. `authority` is
|
|
65
|
+
* the shared object; `judges` the kind's table of the judge each authority was built with (weak: it dies with the authority).
|
|
66
|
+
* A deployment whose judge is built after its stores hands every store one trampoline function and wires its body later.
|
|
67
|
+
*/
|
|
68
|
+
export declare function joinHolderJudge(judges: WeakMap<object, HolderJudge | null>, authority: object, judge: HolderJudge | undefined, kind: HolderStoreKind, what: string): void;
|
|
69
|
+
/** The store kinds that judge a holder, each refused at its own seat with its own code. */
|
|
70
|
+
export type HolderStoreKind = "checkpoint" | "session";
|
|
71
|
+
/**
|
|
72
|
+
* THE judgement of one write's holder, shared by every store that judges holders through a function (both session storages, both
|
|
73
|
+
* checkpoint stores, on every verb that carries one): no holder ⇒ nothing to judge (`true` — the write is judged as before); a holder
|
|
74
|
+
* and no judge ⇒ `false` (a store never ignores a precondition it was handed); otherwise the judge's answer, current only when it is
|
|
75
|
+
* exactly `true`. An answer that is not a boolean throws the store's own seat code (`config.invalid_checkpoint_store` /
|
|
76
|
+
* `config.invalid_session_store`) with nothing written: a wiring error is named as one, not passed as a grant (by truthiness) nor
|
|
77
|
+
* reported as a superseded holder (by refusal). A judge that throws makes the write throw, nothing written. Called inside the store's
|
|
78
|
+
* atomic step, BEFORE any other condition of the write (an expected leaf, a row's state) — a write that fails both is answered
|
|
79
|
+
* `holder.superseded`.
|
|
80
|
+
*/
|
|
81
|
+
export declare function holderJudgedCurrent(holder: string | undefined, holderIsCurrent: HolderJudge | undefined, kind: HolderStoreKind): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* The holder half of `resolve`'s CAS predicate ({@link ResolveExpectation.holder}): {@link holderJudgedCurrent} over `expect.holder`
|
|
84
|
+
* for the checkpoint store. A miss is an ordinary CAS loss — the row is untouched.
|
|
50
85
|
*/
|
|
51
86
|
export declare function checkpointHolderMatches(expect: ResolveExpectation | undefined, holderIsCurrent: HolderJudge | undefined): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* THE holder declaration of a store — one shape, one meaning, for the session store (`SessionStore.fence`, mirrored from
|
|
89
|
+
* `SessionRepo.fence` by `TtlSessionStore`) and the checkpoint store (`CheckpointStore.fence`): `holder: "writes"` = this store judges
|
|
90
|
+
* the holder of EVERY write it is handed that carries one, in that write's own atomic step, by the one sentence of {@link HolderJudge}
|
|
91
|
+
* (a session store: append and leaf move; a checkpoint store: `put`, `setPendingSteer`, `expire`, `resolve` and each arm of
|
|
92
|
+
* `claimTerminal`). `requireHolder: true` additionally tells the engine's run and verb doors to refuse a run or verb the HOST starts
|
|
93
|
+
* without a holder (a leg the engine itself starts — a delegated child, a workflow member, an observer — is exempt); the store itself
|
|
94
|
+
* never refuses a write for carrying none (a host's own maintenance writes carry none). A wrapper store forwards its inner store's
|
|
95
|
+
* declaration member by member (a wrapper that drops it is refused at the door); a routing store declares only when every store it
|
|
96
|
+
* routes to judges.
|
|
97
|
+
*/
|
|
98
|
+
export interface StoreHolderFence {
|
|
99
|
+
readonly holder: "writes";
|
|
100
|
+
readonly requireHolder?: true;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* THE reading of a store's `fence` declaration ({@link StoreHolderFence}), for the store kind's seat: absent ⇒ `undefined` (the store
|
|
104
|
+
* judges no holder); `{ holder: "writes" }` with an optional boolean `requireHolder` ⇒ the declaration, frozen (`requireHolder: false`
|
|
105
|
+
* reads as absent). Every other form refuses with the seat's code, naming the seat:
|
|
106
|
+
* - the retired `holder: true` (it promised `resolve` alone; a store that kept it judges no other write) — the sentence
|
|
107
|
+
* names the law that replaced it;
|
|
108
|
+
* - any other `holder`, a `requireHolder` that is not a boolean, a member outside the two, a declaration that is not an object or
|
|
109
|
+
* cannot be read.
|
|
110
|
+
*/
|
|
111
|
+
export declare function readStoreFence(kind: HolderStoreKind, seat: string, store: unknown): StoreHolderFence | undefined;
|
|
112
|
+
/** Who started the run or verb a store seat's door judges: the host (a run it starts or resumes, or one of the out-of-run session
|
|
113
|
+
* verbs), or an engine lane of a run (`engineLaneLegOf` — a delegated child, a workflow member, an observer sidecar). */
|
|
114
|
+
export type HolderSeatStarter = "host" | "engine";
|
|
115
|
+
/**
|
|
116
|
+
* THE store-seat door of a grant holder — one function for both store kinds and for every entrance (a run's prepare, a resume's screen
|
|
117
|
+
* before its claim, the out-of-run session verbs), each seat refused with its own code:
|
|
118
|
+
* - the seat's `fence` is read ({@link readStoreFence} — a retired or malformed declaration refuses whether or not the run carries a
|
|
119
|
+
* holder, since a declaration is a claim the engine reads at the seat);
|
|
120
|
+
* - a run or verb that carries a holder over a store that does not declare `holder: "writes"` is refused — a holder the store would
|
|
121
|
+
* ignore would fence nothing while the deployment believed it fenced;
|
|
122
|
+
* - a store that declares `requireHolder: true` refuses a run or verb the HOST started without a holder (`startedBy: "host"`); a leg an
|
|
123
|
+
* engine lane started (`"engine"`) carries no holder of its own and passes.
|
|
124
|
+
* No store (a disarmed seat) has nothing to judge. Answers the declaration read. The holder's value is never named.
|
|
125
|
+
*/
|
|
126
|
+
export declare function assertStoreJudgesHolder(kind: HolderStoreKind, seat: string, store: unknown, holder: string | undefined, startedBy: HolderSeatStarter): StoreHolderFence | undefined;
|
|
52
127
|
/** `RunInternals.holder` when present: a non-empty string (the deployment's credential for one claim grant). A provided value that
|
|
53
128
|
* is empty or not a string names no grant and is refused at the door (`config.invalid_argument`), never carried into a CAS where a
|
|
54
129
|
* judge would read it as a grant that lost. The value itself is never printed — only its kind. */
|
|
55
130
|
export declare function assertHolderValue(holder: unknown): void;
|
|
56
|
-
/** The store-seat refusal of a claim holder the seat's store cannot judge: a run handed {@link ResolveExpectation.holder} (through
|
|
57
|
-
* `RunInternals.holder`) whose store does not declare `fence = { holder: true }`. The store seat's door and code
|
|
58
|
-
* (`config.invalid_checkpoint_store`, as for a store without a required verb); no store (a disarmed run) has nothing to
|
|
59
|
-
* judge. The holder's value is never named. */
|
|
60
|
-
export declare function assertCheckpointStoreJudgesHolder(seat: "TaskSpec.checkpointStore" | "RunnerDeps.checkpointStore", store: CheckpointStore | undefined, holder: string | undefined): void;
|