@sema-agent/core 7.68.5 → 7.69.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 +1611 -0
- package/dist/agents/agent-definition.d.ts +32 -3
- package/dist/agents/agent-definition.js +39 -1
- package/dist/agents/agent-transcript-tool.js +16 -5
- package/dist/agents/cascade.js +9 -6
- package/dist/agents/cc-uds-peer-channel.js +2 -1
- package/dist/agents/cumulative-stats.d.ts +3 -1
- package/dist/agents/cumulative-stats.js +4 -1
- package/dist/agents/delegation-review-faces.d.ts +35 -0
- package/dist/agents/delegation-review-faces.js +26 -0
- package/dist/agents/inherited-tool-pool.d.ts +4 -2
- package/dist/agents/list-agents-tool.d.ts +8 -19
- package/dist/agents/list-agents-tool.js +19 -34
- package/dist/agents/peer-directory.js +3 -2
- package/dist/agents/peer-session-drain.js +3 -3
- package/dist/agents/repair-loop.js +12 -8
- package/dist/agents/retain-ledger.d.ts +122 -58
- package/dist/agents/retain-ledger.js +48 -21
- package/dist/agents/root-session-lane.d.ts +17 -0
- package/dist/agents/root-session-lane.js +9 -0
- package/dist/agents/send-message-tool.js +44 -31
- package/dist/agents/subagent-steps.d.ts +0 -11
- package/dist/agents/subagent-steps.js +1 -14
- package/dist/agents/subagent-transcript-placement.d.ts +4 -3
- package/dist/agents/subagent.d.ts +19 -8
- package/dist/agents/subagent.js +250 -207
- package/dist/agents/tool-filter.d.ts +31 -1
- package/dist/agents/tool-filter.js +28 -4
- package/dist/agents/verifier-independence.js +3 -2
- package/dist/agents/verify.d.ts +5 -1
- package/dist/agents/verify.js +10 -6
- package/dist/agents/yield-adoption.d.ts +17 -0
- package/dist/agents/yield-adoption.js +22 -2
- package/dist/brain/anthropic.js +42 -14
- package/dist/brain/claude-model-id.d.ts +36 -0
- package/dist/brain/claude-model-id.js +44 -0
- package/dist/brain/failover.js +14 -3
- package/dist/brain/fast-mode.d.ts +272 -0
- package/dist/brain/fast-mode.js +130 -0
- package/dist/brain/media-degrade.d.ts +5 -0
- package/dist/brain/media-degrade.js +1 -0
- package/dist/brain/model-capability.d.ts +122 -18
- package/dist/brain/model-capability.js +84 -7
- package/dist/brain/model-lane.d.ts +40 -16
- package/dist/brain/model-lane.js +97 -39
- package/dist/brain/model-presets.d.ts +4 -1
- package/dist/brain/model-presets.js +10 -1
- package/dist/brain/open-responses.js +37 -14
- package/dist/brain/openai.js +27 -15
- package/dist/brain/provider-dialect.d.ts +9 -0
- package/dist/brain/provider-dialect.js +4 -0
- package/dist/brain/provider-message.d.ts +2 -2
- package/dist/brain/provider-message.js +8 -8
- package/dist/brain/reasoning-request.d.ts +19 -0
- package/dist/brain/reasoning-request.js +8 -4
- package/dist/brain/reasoning-stamp.d.ts +3 -2
- package/dist/brain/reasoning.d.ts +8 -4
- package/dist/brain/reasoning.js +4 -3
- package/dist/brain/reference-model-traits.d.ts +59 -0
- package/dist/brain/reference-model-traits.js +46 -0
- package/dist/brain/request-params.js +1 -0
- package/dist/brain/route-adjudicator.d.ts +107 -106
- package/dist/brain/route-adjudicator.js +217 -51
- package/dist/brain/route-conformance.d.ts +6 -4
- package/dist/brain/routing.d.ts +2 -1
- package/dist/brain/routing.js +21 -5
- package/dist/brain/status-sink.d.ts +52 -10
- package/dist/brain/stream-engine.d.ts +68 -11
- package/dist/brain/stream-engine.js +512 -93
- package/dist/brain/stream-shared.d.ts +34 -8
- package/dist/brain/stream-shared.js +20 -7
- package/dist/brain/usage-reading.d.ts +15 -0
- package/dist/brain/usage-reading.js +18 -5
- package/dist/core/a2a.js +28 -21
- package/dist/core/advisor-verdict.d.ts +5 -4
- package/dist/core/advisor-verdict.js +2 -2
- package/dist/core/agent-definition.d.ts +4 -1
- package/dist/core/agent-state.d.ts +25 -2
- package/dist/core/agent-state.js +50 -3
- package/dist/core/allow-entry.d.ts +6 -6
- package/dist/core/allow-entry.js +27 -25
- package/dist/core/ask-headline.d.ts +28 -16
- package/dist/core/ask-headline.js +18 -8
- package/dist/core/ask-origin.d.ts +105 -30
- package/dist/core/ask-origin.js +40 -11
- package/dist/core/ask-question.d.ts +9 -1
- package/dist/core/ask-question.js +3 -0
- package/dist/core/ask-unresolvable-notice.d.ts +10 -2
- package/dist/core/ask-unresolvable-notice.js +5 -2
- package/dist/core/attachment-source.d.ts +1 -1
- package/dist/core/attachment-source.js +1 -0
- package/dist/core/auto-compaction.d.ts +4 -4
- package/dist/core/auto-compaction.js +4 -3
- package/dist/core/auto-mode-directive.d.ts +30 -60
- package/dist/core/auto-mode-directive.js +36 -38
- package/dist/core/auto-mode.d.ts +40 -9
- package/dist/core/auto-mode.js +20 -5
- package/dist/core/background-agent-store.d.ts +87 -1
- package/dist/core/background-agent-store.js +72 -1
- package/dist/core/background-shell.d.ts +3 -0
- package/dist/core/background-shell.js +1 -0
- package/dist/core/cache-break-detector.js +1 -1
- package/dist/core/caller-text.d.ts +27 -8
- package/dist/core/caller-text.js +47 -1
- package/dist/core/checkpoint-features.d.ts +17 -9
- package/dist/core/checkpoint-identity.d.ts +53 -0
- package/dist/core/checkpoint-identity.js +29 -0
- package/dist/core/checkpoint-queries.d.ts +4 -3
- package/dist/core/checkpoint-queries.js +5 -3
- package/dist/core/checkpoint-rekey.d.ts +70 -0
- package/dist/core/checkpoint-rekey.js +107 -0
- package/dist/core/checkpoint-requirements.d.ts +65 -10
- package/dist/core/checkpoint-requirements.js +47 -13
- package/dist/core/checkpoint-row-verdict.d.ts +5 -3
- package/dist/core/checkpoint-row-verdict.js +37 -4
- package/dist/core/checkpoint-store.d.ts +71 -5
- package/dist/core/checkpoint-store.js +38 -7
- package/dist/core/child-clamp-seats.js +2 -1
- package/dist/core/classifier-category.d.ts +25 -0
- package/dist/core/classifier-category.js +93 -0
- package/dist/core/classifier-unavailable-arm.d.ts +62 -8
- package/dist/core/classifier-unavailable-arm.js +19 -2
- package/dist/core/command-sandbox-dispatch.d.ts +14 -2
- package/dist/core/command-sandbox.d.ts +209 -28
- package/dist/core/command-sandbox.js +195 -20
- package/dist/core/config-refusal-codes.d.ts +41 -1
- package/dist/core/config-refusal-codes.js +16 -0
- package/dist/core/context-edit.d.ts +2 -1
- package/dist/core/context-edit.js +2 -1
- package/dist/core/context-settings.js +5 -4
- package/dist/core/cross-boundary-taint.d.ts +15 -1
- package/dist/core/cross-boundary-taint.js +6 -0
- package/dist/core/delegation-frames.d.ts +36 -6
- package/dist/core/delegation-frames.js +3 -0
- package/dist/core/delegation-name.d.ts +10 -4
- package/dist/core/delegation-name.js +53 -23
- package/dist/core/engine-attestation.d.ts +10 -2
- package/dist/core/engine-attestation.js +2 -0
- package/dist/core/engine-capabilities.d.ts +40 -3
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +197 -90
- package/dist/core/engine-notice.js +29 -1
- package/dist/core/engine-version.d.ts +1 -0
- package/dist/core/engine-version.js +1 -0
- package/dist/core/extension-call-id.d.ts +4 -0
- package/dist/core/extension-call-id.js +8 -0
- package/dist/core/fast-tier-door.d.ts +36 -0
- package/dist/core/fast-tier-door.js +65 -0
- package/dist/core/file-history-store.d.ts +343 -67
- package/dist/core/file-history-store.js +320 -93
- package/dist/core/frame-settlement.d.ts +4 -0
- package/dist/core/frame-settlement.js +5 -0
- package/dist/core/gate-fold.js +13 -4
- package/dist/core/gate-lanes.js +27 -20
- package/dist/core/gate-outcome.d.ts +87 -11
- package/dist/core/gate-outcome.js +94 -4
- package/dist/core/git-worktree-env.d.ts +29 -10
- package/dist/core/git-worktree-env.js +31 -12
- package/dist/core/governance-codes.d.ts +232 -7
- package/dist/core/governance-codes.js +195 -6
- package/dist/core/hooks.d.ts +27 -16
- package/dist/core/hooks.js +84 -82
- package/dist/core/host-floor.d.ts +2 -8
- package/dist/core/host-floor.js +6 -42
- package/dist/core/identity-rekey.d.ts +275 -0
- package/dist/core/identity-rekey.js +198 -0
- package/dist/core/image-admission.d.ts +7 -4
- package/dist/core/image-admission.js +24 -11
- package/dist/core/isolation-scope.d.ts +12 -0
- package/dist/core/isolation-scope.js +4 -0
- package/dist/core/leg-identity.d.ts +32 -2
- package/dist/core/leg-identity.js +16 -2
- package/dist/core/locked-config.d.ts +26 -6
- package/dist/core/locked-config.js +31 -14
- package/dist/core/loopback-host.d.ts +18 -0
- package/dist/core/loopback-host.js +40 -0
- package/dist/core/mcp-connection-pool.d.ts +57 -33
- package/dist/core/mcp-connection-pool.js +47 -23
- package/dist/core/mcp-failure.d.ts +41 -19
- package/dist/core/mcp-failure.js +14 -8
- package/dist/core/mcp-host-read.js +5 -4
- package/dist/core/mcp-host-seat.js +3 -2
- package/dist/core/mcp-name-judge.js +2 -1
- package/dist/core/mcp-server-link.js +2 -1
- package/dist/core/mcp-server-spec.js +2 -2
- package/dist/core/mcp-server-unavailable-notice.d.ts +26 -16
- package/dist/core/mcp-server-unavailable-notice.js +25 -4
- package/dist/core/mcp.d.ts +15 -9
- package/dist/core/mcp.js +46 -34
- package/dist/core/memory-engine/consolidation-driver.js +8 -8
- package/dist/core/memory-engine/consolidation-write-gate.js +3 -2
- package/dist/core/memory-engine/engine.js +9 -9
- package/dist/core/memory-engine/layout.d.ts +6 -5
- package/dist/core/memory-engine/layout.js +1 -1
- package/dist/core/memory.d.ts +5 -0
- package/dist/core/memory.js +3 -0
- package/dist/core/model-fallbacks.d.ts +13 -7
- package/dist/core/model-fallbacks.js +5 -3
- package/dist/core/model-receipt.d.ts +15 -0
- package/dist/core/model-receipt.js +54 -1
- package/dist/core/model-seat.d.ts +17 -15
- package/dist/core/mods/agent-stations.js +5 -4
- package/dist/core/mods/extension-call.d.ts +0 -4
- package/dist/core/mods/extension-call.js +0 -8
- package/dist/core/mods/host.d.ts +18 -0
- package/dist/core/mods/host.js +7 -0
- package/dist/core/mods/kernel/events.d.ts +12 -0
- package/dist/core/mods/kernel/events.js +18 -9
- package/dist/core/mods/kernel/registration.d.ts +13 -0
- package/dist/core/mods/kernel/registration.js +34 -1
- package/dist/core/mods/message-display.js +1 -1
- package/dist/core/mods/package.js +3 -3
- package/dist/core/mods/prompt-submit.js +2 -2
- package/dist/core/mods/session-append.js +3 -3
- package/dist/core/mods/session-compact.js +5 -5
- package/dist/core/mods/session-receive.js +3 -3
- package/dist/core/mods/session-send.js +3 -3
- package/dist/core/mods/stations.d.ts +8 -5
- package/dist/core/mods/stations.js +13 -12
- package/dist/core/mods/tool-call.js +12 -12
- package/dist/core/mounted-mcp.d.ts +10 -1
- package/dist/core/mounted-mcp.js +4 -0
- package/dist/core/output-style.d.ts +14 -8
- package/dist/core/output-style.js +6 -6
- package/dist/core/own-property-receipt.js +3 -5
- package/dist/core/owner-identity.d.ts +68 -0
- package/dist/core/owner-identity.js +39 -0
- package/dist/core/parent-spec-seat.d.ts +5 -1
- package/dist/core/parent-spec-seat.js +2 -0
- package/dist/core/park-resumability.js +2 -2
- package/dist/core/park-selfcheck.js +15 -4
- package/dist/core/peer-seat.d.ts +37 -11
- package/dist/core/peer-seat.js +35 -9
- package/dist/core/permission-rule-model.d.ts +5 -0
- package/dist/core/permission-rule-model.js +27 -6
- package/dist/core/permission-rules.d.ts +42 -5
- package/dist/core/permission-rules.js +74 -10
- package/dist/core/persisted-rule-arms.d.ts +8 -6
- package/dist/core/persisted-rule-arms.js +13 -20
- package/dist/core/physical-path.d.ts +12 -8
- package/dist/core/physical-path.js +24 -14
- package/dist/core/present-plan-tool.js +2 -1
- package/dist/core/pricing.d.ts +65 -8
- package/dist/core/pricing.js +51 -0
- package/dist/core/prompt-section-seat.js +6 -5
- package/dist/core/protocol-http-auth.d.ts +87 -10
- package/dist/core/protocol-http-auth.js +155 -23
- package/dist/core/reminder-mint.d.ts +4 -0
- package/dist/core/reminder-mint.js +1 -0
- package/dist/core/remote-env.d.ts +46 -1
- package/dist/core/remote-env.js +2 -0
- package/dist/core/resume-at-refusal.d.ts +47 -0
- package/dist/core/resume-at-refusal.js +9 -0
- package/dist/core/resume-startup-cause.d.ts +8 -3
- package/dist/core/resume-startup-cause.js +3 -1
- package/dist/core/retired-keys.d.ts +4 -0
- package/dist/core/retired-keys.js +4 -0
- package/dist/core/roles.d.ts +11 -5
- package/dist/core/roles.js +14 -3
- package/dist/core/rule-store-fault.d.ts +8 -1
- package/dist/core/rule-store-fault.js +5 -0
- package/dist/core/runner/advisor-instructions.d.ts +12 -12
- package/dist/core/runner/advisor-instructions.js +7 -24
- package/dist/core/runner/announce-once-ledger.d.ts +23 -8
- package/dist/core/runner/announce-once-ledger.js +69 -18
- package/dist/core/runner/assemble-result.d.ts +9 -0
- package/dist/core/runner/assemble-result.js +3 -2
- package/dist/core/runner/auto-strip-notice.js +1 -1
- package/dist/core/runner/branch-window.js +5 -3
- package/dist/core/runner/call-hook-stations.d.ts +3 -0
- package/dist/core/runner/call-hook-stations.js +4 -3
- package/dist/core/runner/caller-roster.js +2 -1
- package/dist/core/runner/capability-withheld-seat.js +47 -5
- package/dist/core/runner/classifier-ladder.d.ts +48 -8
- package/dist/core/runner/classifier-ladder.js +88 -38
- package/dist/core/runner/clock-and-limits.d.ts +13 -2
- package/dist/core/runner/clock-and-limits.js +11 -8
- package/dist/core/runner/command-sandbox-frame.d.ts +56 -0
- package/dist/core/runner/command-sandbox-frame.js +107 -0
- package/dist/core/runner/compact-session.d.ts +3 -1
- package/dist/core/runner/compact-session.js +16 -10
- package/dist/core/runner/compaction-call-options.d.ts +2 -2
- package/dist/core/runner/compaction-restate.d.ts +4 -4
- package/dist/core/runner/compaction-restate.js +3 -1
- package/dist/core/runner/construction-doors.js +9 -0
- package/dist/core/runner/continuation-gate.d.ts +39 -0
- package/dist/core/runner/continuation-gate.js +42 -0
- package/dist/core/runner/continues-from.d.ts +57 -0
- package/dist/core/runner/continues-from.js +76 -0
- package/dist/core/runner/contracts.d.ts +133 -55
- package/dist/core/runner/credential-refusal-seat.js +31 -12
- package/dist/core/runner/cross-boundary-lane.d.ts +2 -2
- package/dist/core/runner/cross-boundary-lane.js +26 -13
- package/dist/core/runner/delegation-owner.d.ts +99 -9
- package/dist/core/runner/delegation-owner.js +107 -4
- package/dist/core/runner/denial-limit-arms.js +13 -12
- package/dist/core/runner/derived-route-fallback.d.ts +15 -19
- package/dist/core/runner/derived-route-fallback.js +4 -4
- package/dist/core/runner/earlier-grammar-notice.d.ts +6 -0
- package/dist/core/runner/earlier-grammar-notice.js +9 -0
- package/dist/core/runner/env-capability-census.js +2 -1
- package/dist/core/runner/execution-record.d.ts +4 -2
- package/dist/core/runner/execution-record.js +1 -1
- package/dist/core/runner/fast-mode-seat.d.ts +89 -0
- package/dist/core/runner/fast-mode-seat.js +215 -0
- package/dist/core/runner/file-history-restore.d.ts +52 -14
- package/dist/core/runner/file-history-restore.js +50 -8
- package/dist/core/runner/forward-sink.js +2 -2
- package/dist/core/runner/gate-exit.d.ts +41 -3
- package/dist/core/runner/gate-exit.js +55 -10
- package/dist/core/runner/git-leg-delivery.js +6 -3
- package/dist/core/runner/git-status-frame.d.ts +33 -25
- package/dist/core/runner/git-status-frame.js +54 -36
- package/dist/core/runner/halt-attribution.js +2 -2
- package/dist/core/runner/hook-progress-lane.d.ts +26 -0
- package/dist/core/runner/hook-progress-lane.js +72 -0
- package/dist/core/runner/initial-run-state.js +2 -2
- package/dist/core/runner/language-frame.d.ts +10 -8
- package/dist/core/runner/language-frame.js +7 -11
- package/dist/core/runner/left-as-is-seat.d.ts +20 -0
- package/dist/core/runner/left-as-is-seat.js +11 -0
- package/dist/core/runner/leg-receipt.d.ts +38 -0
- package/dist/core/runner/leg-receipt.js +22 -0
- package/dist/core/runner/listing-fold.d.ts +4 -3
- package/dist/core/runner/listing-fold.js +5 -5
- package/dist/core/runner/listing-replay.d.ts +41 -0
- package/dist/core/runner/listing-replay.js +75 -0
- package/dist/core/runner/main-call-account.d.ts +2 -1
- package/dist/core/runner/main-call-account.js +18 -5
- package/dist/core/runner/mcp-redial.d.ts +4 -2
- package/dist/core/runner/mcp-redial.js +3 -0
- package/dist/core/runner/memory-consolidation-driver.js +3 -2
- package/dist/core/runner/model-fallback-seat.d.ts +12 -9
- package/dist/core/runner/model-fallback-seat.js +24 -20
- package/dist/core/runner/nested-memory-lane.d.ts +16 -8
- package/dist/core/runner/nested-memory-lane.js +64 -53
- package/dist/core/runner/permission-rule-lanes.d.ts +4 -3
- package/dist/core/runner/permission-rule-lanes.js +2 -0
- package/dist/core/runner/person-path-rows.js +1 -1
- package/dist/core/runner/placement-fence.js +2 -2
- package/dist/core/runner/policy-throw.d.ts +3 -3
- package/dist/core/runner/policy-throw.js +7 -5
- package/dist/core/runner/prepare-acquire-reconcile.d.ts +7 -1
- package/dist/core/runner/prepare-acquire-reconcile.js +9 -5
- package/dist/core/runner/prepare-advisor.d.ts +3 -0
- package/dist/core/runner/prepare-advisor.js +2 -2
- package/dist/core/runner/prepare-artifact.d.ts +7 -2
- package/dist/core/runner/prepare-artifact.js +18 -7
- package/dist/core/runner/prepare-ask-lane.d.ts +7 -0
- package/dist/core/runner/prepare-ask-lane.js +4 -3
- package/dist/core/runner/prepare-caps-and-workflow.d.ts +9 -5
- package/dist/core/runner/prepare-caps-and-workflow.js +28 -20
- package/dist/core/runner/prepare-config-doors.d.ts +13 -3
- package/dist/core/runner/prepare-config-doors.js +35 -24
- package/dist/core/runner/prepare-context-lane.d.ts +3 -4
- package/dist/core/runner/prepare-context-lane.js +12 -15
- package/dist/core/runner/prepare-defer-classify.d.ts +12 -0
- package/dist/core/runner/prepare-defer-classify.js +5 -2
- package/dist/core/runner/prepare-delegation-surface.d.ts +10 -8
- package/dist/core/runner/prepare-delegation-surface.js +6 -7
- package/dist/core/runner/prepare-execution-env.d.ts +46 -4
- package/dist/core/runner/prepare-execution-env.js +47 -18
- package/dist/core/runner/prepare-file-history.d.ts +4 -1
- package/dist/core/runner/prepare-file-history.js +8 -9
- package/dist/core/runner/prepare-gate-stations.d.ts +17 -9
- package/dist/core/runner/prepare-gate-stations.js +22 -38
- package/dist/core/runner/prepare-hands-readface.d.ts +13 -9
- package/dist/core/runner/prepare-hands-readface.js +26 -35
- package/dist/core/runner/prepare-inherited-gate.d.ts +9 -2
- package/dist/core/runner/prepare-inherited-gate.js +10 -9
- package/dist/core/runner/prepare-leg-adoption.d.ts +36 -0
- package/dist/core/runner/prepare-leg-adoption.js +24 -0
- package/dist/core/runner/prepare-listings.d.ts +3 -0
- package/dist/core/runner/prepare-listings.js +2 -2
- package/dist/core/runner/prepare-lsp.d.ts +0 -3
- package/dist/core/runner/prepare-lsp.js +1 -2
- package/dist/core/runner/prepare-memory-engine-session.js +1 -1
- package/dist/core/runner/prepare-memory.js +2 -2
- package/dist/core/runner/prepare-offload-wrappers.d.ts +5 -5
- package/dist/core/runner/prepare-offload-wrappers.js +5 -5
- package/dist/core/runner/prepare-park-ask.d.ts +9 -2
- package/dist/core/runner/prepare-park-ask.js +5 -3
- package/dist/core/runner/prepare-policy-chain.d.ts +20 -5
- package/dist/core/runner/prepare-policy-chain.js +32 -26
- package/dist/core/runner/prepare-prompt-assembly.d.ts +11 -2
- package/dist/core/runner/prepare-prompt-assembly.js +6 -3
- package/dist/core/runner/prepare-prompt-inputs.d.ts +3 -3
- package/dist/core/runner/prepare-prompt-inputs.js +1 -1
- package/dist/core/runner/prepare-protocol-tools.d.ts +9 -4
- package/dist/core/runner/prepare-protocol-tools.js +11 -11
- package/dist/core/runner/prepare-run-refs.d.ts +7 -0
- package/dist/core/runner/prepare-run-refs.js +6 -2
- package/dist/core/runner/prepare-suspend-saga.d.ts +4 -1
- package/dist/core/runner/prepare-suspend-saga.js +5 -2
- package/dist/core/runner/prepare-task.d.ts +1 -30
- package/dist/core/runner/prepare-task.js +111 -147
- package/dist/core/runner/prepare-turn-wiring.d.ts +10 -3
- package/dist/core/runner/prepare-turn-wiring.js +7 -4
- package/dist/core/runner/prepare-wiring-manifest.d.ts +11 -3
- package/dist/core/runner/prepare-wiring-manifest.js +20 -16
- package/dist/core/runner/prompt-block.js +2 -2
- package/dist/core/runner/prompt-suggestions.d.ts +3 -8
- package/dist/core/runner/prompt-suggestions.js +4 -1
- package/dist/core/runner/reply-pricing.d.ts +8 -4
- package/dist/core/runner/reply-pricing.js +6 -5
- package/dist/core/runner/resume-admission.js +2 -0
- package/dist/core/runner/resume-apply.js +4 -4
- package/dist/core/runner/resume-checkpoint-screen.d.ts +23 -2
- package/dist/core/runner/resume-checkpoint-screen.js +34 -27
- package/dist/core/runner/resume-preflight.js +3 -3
- package/dist/core/runner/rewind-files.js +21 -14
- package/dist/core/runner/role-resolution-table.d.ts +10 -7
- package/dist/core/runner/role-resolution-table.js +8 -7
- package/dist/core/runner/role-seat-defaulted.js +2 -2
- package/dist/core/runner/rule-store-unreadable-notice.d.ts +4 -2
- package/dist/core/runner/rule-store-unreadable-notice.js +21 -7
- package/dist/core/runner/run-attachment-seats.js +8 -15
- package/dist/core/runner/run-brain-sinks.js +1 -0
- package/dist/core/runner/run-compaction-machinery.d.ts +1 -1
- package/dist/core/runner/run-compaction-machinery.js +2 -3
- package/dist/core/runner/run-harness-handlers.d.ts +2 -2
- package/dist/core/runner/run-harness-handlers.js +18 -5
- package/dist/core/runner/run-identity-wiring.js +11 -9
- package/dist/core/runner/run-leg.js +33 -12
- package/dist/core/runner/run-notification-lane.d.ts +4 -1
- package/dist/core/runner/run-notification-lane.js +21 -8
- package/dist/core/runner/run-recovery-lanes.js +1 -1
- package/dist/core/runner/run-settle-and-teardown.d.ts +6 -1
- package/dist/core/runner/run-settle-and-teardown.js +30 -32
- package/dist/core/runner/run-stop-and-final-verify.d.ts +4 -1
- package/dist/core/runner/run-stop-and-final-verify.js +12 -49
- package/dist/core/runner/run-telemetry-and-budget-seats.js +29 -10
- package/dist/core/runner/run-terminal-adoption.js +5 -2
- package/dist/core/runner/run-turn-boundary.js +13 -11
- package/dist/core/runner/runtask.d.ts +16 -7
- package/dist/core/runner/runtask.js +49 -28
- package/dist/core/runner/sandbox-network-seat.d.ts +52 -0
- package/dist/core/runner/sandbox-network-seat.js +40 -0
- package/dist/core/runner/seat-model-doors.d.ts +16 -0
- package/dist/core/runner/seat-model-doors.js +13 -0
- package/dist/core/runner/session-file-state-replay.d.ts +20 -0
- package/dist/core/runner/session-file-state-replay.js +17 -5
- package/dist/core/runner/session-read-file-states.d.ts +37 -0
- package/dist/core/runner/session-read-file-states.js +19 -0
- package/dist/core/runner/session-rule-policy.d.ts +2 -1
- package/dist/core/runner/session-rule-policy.js +3 -2
- package/dist/core/runner/session-verb-doors.js +2 -1
- package/dist/core/runner/session-write-ledger.d.ts +5 -1
- package/dist/core/runner/session-write-ledger.js +19 -5
- package/dist/core/runner/shared-read-classifier.d.ts +48 -0
- package/dist/core/runner/shared-read-classifier.js +33 -0
- package/dist/core/runner/shell-env-withheld.d.ts +6 -3
- package/dist/core/runner/shell-env-withheld.js +25 -0
- package/dist/core/runner/side-call-account.d.ts +30 -2
- package/dist/core/runner/side-call-account.js +38 -5
- package/dist/core/runner/skipped-rules-notice.d.ts +43 -0
- package/dist/core/runner/skipped-rules-notice.js +49 -0
- package/dist/core/runner/steering-preview.js +1 -1
- package/dist/core/runner/stop-tail-notice.d.ts +40 -0
- package/dist/core/runner/stop-tail-notice.js +35 -0
- package/dist/core/runner/stream-halt-verbs.js +1 -1
- package/dist/core/runner/stream-mode-verb.d.ts +11 -4
- package/dist/core/runner/stream-mode-verb.js +19 -7
- package/dist/core/runner/stream-settle-backstop.js +3 -1
- package/dist/core/runner/stream-steer-verb.js +4 -3
- package/dist/core/runner/synthetic-tools.d.ts +11 -11
- package/dist/core/runner/synthetic-tools.js +17 -20
- package/dist/core/runner/task-start-doors.d.ts +86 -0
- package/dist/core/runner/task-start-doors.js +108 -0
- package/dist/core/runner/teardown-bounded.d.ts +5 -5
- package/dist/core/runner/teardown-bounded.js +6 -6
- package/dist/core/runner/terminal-account.d.ts +3 -2
- package/dist/core/runner/terminal-account.js +5 -3
- package/dist/core/runner/tool-disclosure.js +8 -9
- package/dist/core/runner/tool-end-body.d.ts +2 -0
- package/dist/core/runner/tool-end-body.js +1 -0
- package/dist/core/runner/tool-face-overlay.js +1 -0
- package/dist/core/runner/tool-occurrence.d.ts +22 -24
- package/dist/core/runner/tool-occurrence.js +9 -15
- package/dist/core/runner/tool-progress-lane.js +1 -1
- package/dist/core/runner/tool-result-media-seat.d.ts +7 -4
- package/dist/core/runner/tool-result-media-seat.js +16 -4
- package/dist/core/runner/tool-table-view.d.ts +7 -1
- package/dist/core/runner/tool-table-view.js +1 -1
- package/dist/core/runner/tool-turn-repair-seat.d.ts +22 -2
- package/dist/core/runner/tool-turn-repair-seat.js +23 -5
- package/dist/core/runner/turn-attachments.d.ts +74 -148
- package/dist/core/runner/turn-attachments.js +153 -223
- package/dist/core/runner/usage-accounting.d.ts +15 -0
- package/dist/core/runner/usage-accounting.js +12 -4
- package/dist/core/runner/verdict-refusal.d.ts +45 -0
- package/dist/core/runner/verdict-refusal.js +39 -0
- package/dist/core/runner/write-protection-station.d.ts +5 -0
- package/dist/core/runner/write-protection-station.js +6 -6
- package/dist/core/runner-deps.d.ts +15 -5
- package/dist/core/runtime-caps.d.ts +5 -3
- package/dist/core/secret-env.d.ts +19 -14
- package/dist/core/secret-env.js +19 -12
- package/dist/core/session-checkout.d.ts +18 -1
- package/dist/core/session-checkout.js +23 -8
- package/dist/core/session-log-transfer.js +2 -2
- package/dist/core/session-policy-store.d.ts +220 -31
- package/dist/core/session-policy-store.js +333 -47
- package/dist/core/session-reconcile.d.ts +12 -0
- package/dist/core/session-reconcile.js +1 -1
- package/dist/core/session-store.d.ts +5 -3
- package/dist/core/session-store.js +11 -11
- package/dist/core/session.d.ts +31 -22
- package/dist/core/session.js +3 -2
- package/dist/core/shared-memory/normalize.js +2 -1
- package/dist/core/side-query.d.ts +4 -0
- package/dist/core/side-query.js +7 -4
- package/dist/core/spec-contract.d.ts +4 -2
- package/dist/core/store-contracts/background-agent-store-contract.js +149 -0
- package/dist/core/store-contracts/checkpoint-store-contract.js +55 -0
- package/dist/core/store-contracts/contract-kit-version.d.ts +4 -4
- package/dist/core/store-contracts/file-history-store-contract.d.ts +1 -1
- package/dist/core/store-contracts/file-history-store-contract.js +282 -22
- package/dist/core/store-contracts/session-policy-store-contract.js +202 -0
- package/dist/core/store-contracts/session-store-contract.js +48 -14
- package/dist/core/store-contracts/tool-result-store-contract.d.ts +1 -1
- package/dist/core/store-contracts/tool-result-store-contract.js +128 -0
- package/dist/core/store-contracts/workflow-journal-store-contract.js +90 -1
- package/dist/core/swappable-deps.d.ts +16 -0
- package/dist/core/swappable-deps.js +61 -1
- package/dist/core/synthetic-read-verdict.d.ts +23 -0
- package/dist/core/synthetic-read-verdict.js +43 -18
- package/dist/core/task-event.d.ts +123 -50
- package/dist/core/task-intake.d.ts +21 -5
- package/dist/core/task-intake.js +29 -3
- package/dist/core/task-limits.d.ts +3 -1
- package/dist/core/task-notification.d.ts +171 -59
- package/dist/core/task-notification.js +162 -104
- package/dist/core/task-registry-agent.d.ts +12 -0
- package/dist/core/task-registry-agent.js +23 -9
- package/dist/core/task-registry-shared.d.ts +4 -2
- package/dist/core/task-registry-shared.js +1 -1
- package/dist/core/task-registry-workflow.js +8 -5
- package/dist/core/task-registry.d.ts +16 -1
- package/dist/core/task-registry.js +35 -23
- package/dist/core/task-result.d.ts +127 -10
- package/dist/core/task-spec-members.d.ts +5 -2
- package/dist/core/task-spec-members.js +9 -5
- package/dist/core/task-spec.d.ts +31 -12
- package/dist/core/task-start-judge.d.ts +41 -0
- package/dist/core/task-start-judge.js +26 -0
- package/dist/core/task-stream.d.ts +12 -1
- package/dist/core/terminal-cause.d.ts +23 -9
- package/dist/core/tool-catalog-entries.js +6 -5
- package/dist/core/tool-face-lists.d.ts +3 -2
- package/dist/core/tool-face-lists.js +6 -0
- package/dist/core/tool-face-reader.d.ts +3 -2
- package/dist/core/tool-face-reader.js +2 -2
- package/dist/core/tool-face.d.ts +27 -3
- package/dist/core/tool-face.js +2 -2
- package/dist/core/tool-model-gate.js +14 -13
- package/dist/core/tool-mount-facts.d.ts +16 -3
- package/dist/core/tool-mount-facts.js +10 -0
- package/dist/core/tool-mount-plan.d.ts +79 -10
- package/dist/core/tool-mount-plan.js +79 -24
- package/dist/core/tool-mount-static.d.ts +52 -6
- package/dist/core/tool-mount-static.js +82 -28
- package/dist/core/tool-name-aliases.js +1 -1
- package/dist/core/tool-policy.d.ts +25 -5
- package/dist/core/tool-policy.js +8 -6
- package/dist/core/tool-registry.d.ts +12 -2
- package/dist/core/tool-registry.js +9 -2
- package/dist/core/tool-result-budget.d.ts +2 -2
- package/dist/core/tool-result-bytes.d.ts +28 -9
- package/dist/core/tool-result-bytes.js +7 -5
- package/dist/core/tool-result-store.d.ts +310 -38
- package/dist/core/tool-result-store.js +325 -30
- package/dist/core/tool-roster.d.ts +20 -8
- package/dist/core/tool-roster.js +16 -6
- package/dist/core/tool-search-setting.js +2 -2
- package/dist/core/tool-spec.d.ts +10 -10
- package/dist/core/types.d.ts +5 -5
- package/dist/core/types.js +2 -2
- package/dist/core/unc-spelling.d.ts +114 -3
- package/dist/core/unc-spelling.js +110 -0
- package/dist/core/untrusted-egress.d.ts +82 -10
- package/dist/core/untrusted-egress.js +102 -9
- package/dist/core/untrusted-text.d.ts +28 -0
- package/dist/core/untrusted-text.js +67 -3
- package/dist/core/user-attachment.d.ts +18 -3
- package/dist/core/user-attachment.js +37 -31
- package/dist/core/user-row-origin.d.ts +22 -0
- package/dist/core/user-row-origin.js +15 -0
- package/dist/core/version.d.ts +1 -1
- package/dist/core/version.js +2 -12
- package/dist/core/wiring-manifest.d.ts +124 -30
- package/dist/core/wiring-manifest.js +59 -17
- package/dist/core/workflow-journal-store.d.ts +186 -16
- package/dist/core/workflow-journal-store.js +156 -1
- package/dist/core/workflow-run-store-contract.js +82 -1
- package/dist/core/workflow-run-store.d.ts +40 -4
- package/dist/core/workflow-run-store.js +9 -2
- package/dist/core/workspace-snapshot.d.ts +4 -1
- package/dist/core/workspace-snapshot.js +1 -1
- package/dist/engine/compaction/compaction.d.ts +3 -3
- package/dist/engine/compaction/compaction.js +16 -18
- package/dist/engine/execution-env/node-execution-env.d.ts +14 -6
- package/dist/engine/execution-env/node-execution-env.js +49 -14
- package/dist/engine/harness/agent-harness.d.ts +17 -7
- package/dist/engine/harness/agent-harness.js +66 -16
- package/dist/engine/harness/types.d.ts +31 -2
- package/dist/engine/harness/types.js +14 -1
- package/dist/engine/llm/tool-turns.d.ts +19 -2
- package/dist/engine/llm/tool-turns.js +29 -2
- package/dist/engine/llm/types.d.ts +103 -22
- package/dist/engine/llm/types.js +1 -1
- package/dist/engine/loop/agent-loop.d.ts +18 -9
- package/dist/engine/loop/agent-loop.js +115 -24
- package/dist/engine/loop/types.d.ts +14 -6
- package/dist/engine/lsp/node-lsp-manager.d.ts +6 -4
- package/dist/engine/lsp/node-lsp-manager.js +22 -21
- package/dist/engine/session/import-validate.js +2 -0
- package/dist/engine/session/repo-utils.d.ts +13 -7
- package/dist/engine/session/repo-utils.js +9 -4
- package/dist/index.d.ts +48 -27
- package/dist/index.js +38 -20
- package/dist/internal/harness.d.ts +1 -1
- package/dist/internal/llm.d.ts +2 -2
- package/dist/internal/llm.js +1 -1
- package/dist/orchestration/goal.js +1 -1
- package/dist/orchestration/governance-baseline-validity.d.ts +20 -5
- package/dist/orchestration/governance-baseline-validity.js +87 -16
- package/dist/orchestration/run-workflow-tool.d.ts +15 -12
- package/dist/orchestration/run-workflow-tool.js +757 -331
- package/dist/orchestration/workflow-governance.d.ts +1 -1
- package/dist/orchestration/workflow-observe.d.ts +22 -2
- package/dist/orchestration/workflow-observe.js +20 -9
- package/dist/orchestration/workflow-park-adoption.d.ts +380 -0
- package/dist/orchestration/workflow-park-adoption.js +617 -0
- package/dist/orchestration/workflow-size-guideline.d.ts +6 -8
- package/dist/orchestration/workflow-size-guideline.js +12 -14
- package/dist/orchestration/workflow-types.d.ts +97 -17
- package/dist/orchestration/workflow-types.js +39 -8
- package/dist/orchestration/workflow.d.ts +70 -26
- package/dist/orchestration/workflow.js +495 -199
- package/dist/prompt-assembly/artifact.js +4 -3
- package/dist/prompt-assembly/assemble.d.ts +2 -0
- package/dist/prompt-assembly/assemble.js +4 -1
- package/dist/prompt-assembly/bands.d.ts +3 -0
- package/dist/prompt-assembly/bands.js +6 -0
- package/dist/prompt-assembly/catalog/constitution.d.ts +1 -1
- package/dist/prompt-assembly/catalog/constitution.js +74 -9
- package/dist/prompt-assembly/catalog/core-behavior.d.ts +5 -4
- package/dist/prompt-assembly/catalog/core-behavior.js +46 -9
- package/dist/prompt-assembly/catalog/engine.d.ts +110 -5
- package/dist/prompt-assembly/catalog/engine.js +13 -0
- package/dist/prompt-assembly/catalog/events.d.ts +852 -0
- package/dist/prompt-assembly/catalog/events.js +62 -0
- package/dist/prompt-assembly/catalog/index.js +2 -1
- package/dist/prompt-assembly/catalog/locales/index.d.ts +2 -2
- package/dist/prompt-assembly/catalog/locales/index.js +4 -2
- package/dist/prompt-assembly/catalog/locales/zh-Hans/constitution.js +53 -1
- package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +45 -9
- package/dist/prompt-assembly/catalog/locales/zh-Hans/engine.js +12 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/events.d.ts +7 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/events.js +57 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.d.ts +8 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +56 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/modes.js +8 -2
- package/dist/prompt-assembly/catalog/locales/zh-Hans/role.js +37 -9
- package/dist/prompt-assembly/catalog/mechanism.d.ts +427 -0
- package/dist/prompt-assembly/catalog/mechanism.js +62 -0
- package/dist/prompt-assembly/catalog/memory.d.ts +3 -3
- package/dist/prompt-assembly/catalog/memory.js +12 -3
- package/dist/prompt-assembly/catalog/modes.d.ts +2 -2
- package/dist/prompt-assembly/catalog/modes.js +7 -1
- package/dist/prompt-assembly/catalog/role.d.ts +1 -1
- package/dist/prompt-assembly/catalog/role.js +43 -14
- package/dist/prompt-assembly/catalog/schema.d.ts +43 -20
- package/dist/prompt-assembly/catalog/schema.js +17 -6
- package/dist/prompt-assembly/catalog/sections.d.ts +1 -1
- package/dist/prompt-assembly/catalog/sections.js +20 -12
- package/dist/prompt-assembly/composer.d.ts +3 -0
- package/dist/prompt-assembly/composer.js +11 -5
- package/dist/prompt-assembly/engine-text.d.ts +14 -4
- package/dist/prompt-assembly/engine-text.js +18 -9
- package/dist/prompt-assembly/event-registry.d.ts +38 -31
- package/dist/prompt-assembly/event-registry.js +185 -25
- package/dist/prompt-assembly/explain.d.ts +24 -0
- package/dist/prompt-assembly/explain.js +11 -0
- package/dist/prompt-assembly/locale-review.js +3 -2
- package/dist/prompt-assembly/overlay.d.ts +25 -7
- package/dist/prompt-assembly/overlay.js +68 -14
- package/dist/prompt-assembly/select.d.ts +4 -3
- package/dist/prompt-assembly/select.js +10 -2
- package/dist/prompt-assembly/sugar.d.ts +3 -2
- package/dist/prompt-assembly/sugar.js +2 -2
- package/dist/prompt-assembly/tool-catalog.js +3 -2
- package/dist/prompt-assembly/turn-snapshot.d.ts +1 -0
- package/dist/prompt-assembly/turn-snapshot.js +1 -0
- package/dist/prompt-assembly/types.d.ts +3 -4
- package/dist/prompts/default.d.ts +6 -45
- package/dist/prompts/default.js +3 -21
- package/dist/stores/file/adoption/adopt.d.ts +13 -3
- package/dist/stores/file/adoption/adopt.js +90 -95
- package/dist/stores/file/adoption/marker.d.ts +2 -1
- package/dist/stores/file/background-agent-store.d.ts +61 -0
- package/dist/stores/file/background-agent-store.js +64 -15
- package/dist/stores/file/checkpoint-store.d.ts +30 -2
- package/dist/stores/file/checkpoint-store.js +72 -23
- package/dist/stores/file/file-history-store.d.ts +13 -7
- package/dist/stores/file/file-history-store.js +170 -46
- package/dist/stores/file/fs-atomic.d.ts +57 -2
- package/dist/stores/file/fs-atomic.js +116 -48
- package/dist/stores/file/index.d.ts +2 -0
- package/dist/stores/file/index.js +2 -0
- package/dist/stores/file/ledger-damage.d.ts +87 -0
- package/dist/stores/file/ledger-damage.js +103 -0
- package/dist/stores/file/session-policy-store.d.ts +36 -4
- package/dist/stores/file/session-policy-store.js +177 -6
- package/dist/stores/file/shared-ledger.d.ts +123 -11
- package/dist/stores/file/shared-ledger.js +113 -18
- package/dist/stores/file/tool-result-store.d.ts +30 -1
- package/dist/stores/file/tool-result-store.js +60 -6
- package/dist/stores/file/workflow-journal-store.d.ts +73 -26
- package/dist/stores/file/workflow-journal-store.js +195 -32
- package/dist/stores/file/workflow-run-store.d.ts +47 -2
- package/dist/stores/file/workflow-run-store.js +17 -14
- package/dist/tools/artifact/artifact-tool.d.ts +9 -6
- package/dist/tools/artifact/artifact-tool.js +76 -40
- package/dist/tools/fs/env-error-detail.d.ts +11 -0
- package/dist/tools/fs/env-error-detail.js +13 -2
- package/dist/tools/fs/fs-bash.js +30 -21
- package/dist/tools/fs/fs-pdf.d.ts +1 -1
- package/dist/tools/fs/fs-pdf.js +2 -2
- package/dist/tools/fs/fs-read.js +4 -4
- package/dist/tools/fs/fs-shared.d.ts +26 -9
- package/dist/tools/fs/fs-shared.js +12 -6
- package/dist/tools/fs/fs-write.d.ts +6 -4
- package/dist/tools/fs/fs-write.js +24 -18
- package/dist/tools/fs/pattern-kill-guard.js +2 -1
- package/dist/tools/fs/pdf.d.ts +8 -0
- package/dist/tools/fs/pdf.js +10 -0
- package/dist/tools/fs/program-read-model.d.ts +4 -0
- package/dist/tools/fs/program-read-model.rows.js +3 -3
- package/dist/tools/fs/read-floor.d.ts +11 -9
- package/dist/tools/fs/read-floor.js +7 -10
- package/dist/tools/fs/removal-targets.d.ts +4 -3
- package/dist/tools/fs/removal-targets.js +27 -9
- package/dist/tools/fs/safety.d.ts +29 -107
- package/dist/tools/fs/safety.js +16 -118
- package/dist/tools/fs/shell-read-check.d.ts +4 -2
- package/dist/tools/fs/shell-read-check.js +6 -2
- package/dist/tools/fs/shell-read-environment.d.ts +10 -2
- package/dist/tools/fs/shell-read-environment.js +20 -11
- package/dist/tools/fs/shell-read-judge.d.ts +19 -7
- package/dist/tools/fs/shell-read-judge.js +9 -3
- package/dist/tools/fs/shell-reentry-text.d.ts +8 -0
- package/dist/tools/fs/shell-reentry-text.js +56 -0
- package/dist/tools/monitor.js +7 -5
- package/dist/tools/scheduler-tools.d.ts +39 -1
- package/dist/tools/scheduler-tools.js +84 -35
- package/dist/tools/task-list.d.ts +12 -4
- package/dist/tools/task-list.js +10 -7
- package/dist/tools/web.d.ts +2 -8
- package/dist/tools/web.js +5 -5
- package/dist/tools/worktree.js +18 -15
- package/package.json +6 -3
- package/test/export-surface.snapshot.json +344 -14
- package/wire-changes/core-stores-sql@7.69.0.json +39 -0
- package/wire-changes/core@7.69.0.json +9561 -0
- package/wire-changes/mods-kernel@7.69.0.json +80 -0
- package/wire-changes/primitives@7.69.0.json +79 -0
- package/wire-changes/wiki-gate@7.69.0.json +39 -0
|
@@ -175,10 +175,10 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
175
175
|
"config.cross_boundary_posture_undeclared",
|
|
176
176
|
"config.cross_boundary_record_unwritten",
|
|
177
177
|
"config.permission_mode_unavailable",
|
|
178
|
-
"permission.ask_released_by_mode",
|
|
179
|
-
"permission.read_deny_unapplied",
|
|
180
178
|
"permission.rule_store_unavailable",
|
|
179
|
+
"permission.rule_store_unreadable_relaxed",
|
|
181
180
|
"permission.rule_row_dropped",
|
|
181
|
+
"permission.settings_rules_skipped",
|
|
182
182
|
"config.session_rules_earlier_grammar",
|
|
183
183
|
"config.legacy_tool_name",
|
|
184
184
|
"config.toolpolicy.unmatched_names",
|
|
@@ -206,6 +206,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
206
206
|
"delegation.settlement_write_failed",
|
|
207
207
|
"delegation.durable_row_unpersisted",
|
|
208
208
|
"delegation.parked_card_unreadable",
|
|
209
|
+
"delegation.parked_card_id_untrusted",
|
|
209
210
|
"mcp.injection_dropped",
|
|
210
211
|
"protocol.revocation_probe_failed",
|
|
211
212
|
"mcp.server_redialed",
|
|
@@ -214,6 +215,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
214
215
|
"mcp.credential_echoed",
|
|
215
216
|
"workflow.governance_key_stripped",
|
|
216
217
|
"workflow.agent_option_ignored",
|
|
218
|
+
"workflow.parked_decision_unused",
|
|
217
219
|
"memory.session_polluted",
|
|
218
220
|
"memory.harvest_quarantined",
|
|
219
221
|
"memory.harvest_refused",
|
|
@@ -245,6 +247,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
245
247
|
"route.stream_end_ignored",
|
|
246
248
|
"route.extra_body_reserved_dropped",
|
|
247
249
|
"model.capability_downgraded",
|
|
250
|
+
"model.fast_mode_changed",
|
|
248
251
|
"model.role_defaulted",
|
|
249
252
|
"model.fallback",
|
|
250
253
|
"context.tool_turn_repaired",
|
|
@@ -262,6 +265,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
262
265
|
"task.late_approval",
|
|
263
266
|
"task.interrupt_unconsumed",
|
|
264
267
|
"task.completed_past_limit",
|
|
268
|
+
"task.verdict_refused",
|
|
265
269
|
"task.tool_turn_incomplete",
|
|
266
270
|
"approval.read_root_granted",
|
|
267
271
|
"approval.read_root_grant_rejected",
|
|
@@ -274,6 +278,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
274
278
|
"tool_result.offload_put_failed",
|
|
275
279
|
"tool_result.media_refused",
|
|
276
280
|
"tool_result.media_persisted",
|
|
281
|
+
"tool_result.read_refused",
|
|
277
282
|
"config.image_processor_unavailable",
|
|
278
283
|
"fs.staging_file_left",
|
|
279
284
|
"fs.staging_file_swept",
|
|
@@ -283,6 +288,7 @@ export const ENGINE_NOTICE_CODES = Object.freeze([
|
|
|
283
288
|
"engine.debug_trace",
|
|
284
289
|
"session.lineage_rerooted",
|
|
285
290
|
"rewind.boundary_unrecorded",
|
|
291
|
+
"rewind.file_left_as_is",
|
|
286
292
|
"verify.verifier_is_implementer",
|
|
287
293
|
"memory.layer_locked_legacy",
|
|
288
294
|
"server.model_unreachable",
|
|
@@ -324,10 +330,10 @@ const NOTICE_AUDIENCE_TABLE = {
|
|
|
324
330
|
"approval.approver_defect": "operator",
|
|
325
331
|
"config.durable_gate_unavailable": "user",
|
|
326
332
|
"config.permission_mode_unavailable": "user",
|
|
327
|
-
"permission.ask_released_by_mode": "user",
|
|
328
|
-
"permission.read_deny_unapplied": "user",
|
|
329
333
|
"permission.rule_store_unavailable": "user",
|
|
334
|
+
"permission.rule_store_unreadable_relaxed": "operator",
|
|
330
335
|
"permission.rule_row_dropped": "user",
|
|
336
|
+
"permission.settings_rules_skipped": "user",
|
|
331
337
|
"config.session_rules_earlier_grammar": "user",
|
|
332
338
|
"config.legacy_tool_name": "user",
|
|
333
339
|
"config.toolpolicy.unmatched_names": "user",
|
|
@@ -342,6 +348,8 @@ const NOTICE_AUDIENCE_TABLE = {
|
|
|
342
348
|
"memory.mount_failed": "user",
|
|
343
349
|
"memory.consolidation_withheld": "operator",
|
|
344
350
|
"delegation.ask_unresolvable": "user",
|
|
351
|
+
"workflow.parked_decision_unused": "user",
|
|
352
|
+
"task.verdict_refused": "user",
|
|
345
353
|
"inherit_env.names_withheld": "user",
|
|
346
354
|
"config.autocompact_window_clamped": "operator",
|
|
347
355
|
"config.env_timeout_discarded": "operator",
|
|
@@ -406,6 +414,7 @@ const NOTICE_AUDIENCE_TABLE = {
|
|
|
406
414
|
"route.tool_call_id_folded": "operator",
|
|
407
415
|
"route.extra_body_reserved_dropped": "operator",
|
|
408
416
|
"model.capability_downgraded": "user",
|
|
417
|
+
"model.fast_mode_changed": "user",
|
|
409
418
|
"model.role_defaulted": "user",
|
|
410
419
|
"model.fallback": "user",
|
|
411
420
|
"context.tool_turn_repaired": "operator",
|
|
@@ -419,11 +428,13 @@ const NOTICE_AUDIENCE_TABLE = {
|
|
|
419
428
|
"tool_result.offload_put_failed": "operator",
|
|
420
429
|
"tool_result.media_refused": "operator",
|
|
421
430
|
"tool_result.media_persisted": "operator",
|
|
431
|
+
"tool_result.read_refused": "operator",
|
|
422
432
|
"config.image_processor_unavailable": "operator",
|
|
423
433
|
"fs.staging_file_left": "operator",
|
|
424
434
|
"fs.staging_file_swept": "operator",
|
|
425
435
|
"session.lineage_rerooted": "user",
|
|
426
436
|
"rewind.boundary_unrecorded": "user",
|
|
437
|
+
"rewind.file_left_as_is": "user",
|
|
427
438
|
"verify.verifier_is_implementer": "user",
|
|
428
439
|
"config.host_sink_failed": "operator",
|
|
429
440
|
"config.seat_malformed": "operator",
|
|
@@ -439,6 +450,7 @@ const NOTICE_AUDIENCE_TABLE = {
|
|
|
439
450
|
"delegation.settlement_write_failed": "operator",
|
|
440
451
|
"delegation.durable_row_unpersisted": "operator",
|
|
441
452
|
"delegation.parked_card_unreadable": "operator",
|
|
453
|
+
"delegation.parked_card_id_untrusted": "operator",
|
|
442
454
|
"engine.debug_trace": "operator",
|
|
443
455
|
"server.model_unreachable": "user",
|
|
444
456
|
"permission.entry_mode_clamped": "user",
|
|
@@ -450,6 +462,177 @@ export const NOTICE_AUDIENCE = NOTICE_AUDIENCE_TABLE;
|
|
|
450
462
|
export function noticeAudienceOf(code) {
|
|
451
463
|
return NOTICE_AUDIENCE[code] ?? "operator";
|
|
452
464
|
}
|
|
465
|
+
const NOTICE_ATTENTION_TABLE = {
|
|
466
|
+
"config.command_sandbox_unavailable": "act",
|
|
467
|
+
"config.durable_gate_unavailable": "act",
|
|
468
|
+
"config.permission_mode_unavailable": "act",
|
|
469
|
+
"permission.rule_store_unavailable": "act",
|
|
470
|
+
"permission.rule_row_dropped": "act",
|
|
471
|
+
"permission.settings_rules_skipped": "act",
|
|
472
|
+
"config.session_rules_earlier_grammar": "act",
|
|
473
|
+
"config.legacy_tool_name": "act",
|
|
474
|
+
"config.toolpolicy.unmatched_names": "act",
|
|
475
|
+
"config.agent.unknown_tool": "act",
|
|
476
|
+
"permission.allowed_tool_not_granted": "act",
|
|
477
|
+
"mods.registration_refused": "act",
|
|
478
|
+
"mods.stop_ended": "act",
|
|
479
|
+
"peer.inbound_disposition": "act",
|
|
480
|
+
"peer.held_settled": "act",
|
|
481
|
+
"peer.idle_subscription": "act",
|
|
482
|
+
"classifier.denial_limit": "act",
|
|
483
|
+
"classifier.unavailable": "act",
|
|
484
|
+
"delegation.ask_unresolvable": "act",
|
|
485
|
+
"mcp.injection_dropped": "act",
|
|
486
|
+
"mcp.authorization_required": "act",
|
|
487
|
+
"mcp.server_unavailable": "act",
|
|
488
|
+
"workflow.parked_decision_unused": "act",
|
|
489
|
+
"memory.harvest_quarantined": "act",
|
|
490
|
+
"memory.harvest_refused": "act",
|
|
491
|
+
"memory.harvest_conflict": "act",
|
|
492
|
+
"memory.hold_opened": "act",
|
|
493
|
+
"memory.hold_disposed": "act",
|
|
494
|
+
"advisor.not_attached": "act",
|
|
495
|
+
"route.credential_origin_mismatch": "act",
|
|
496
|
+
"route.credential_mismatch": "act",
|
|
497
|
+
"route.finish_reason_unknown": "act",
|
|
498
|
+
"route.stream_end_ignored": "act",
|
|
499
|
+
"model.capability_downgraded": "act",
|
|
500
|
+
"model.fast_mode_changed": "act",
|
|
501
|
+
"model.role_defaulted": "act",
|
|
502
|
+
"model.fallback": "act",
|
|
503
|
+
"context.media_removed": "act",
|
|
504
|
+
"context.tool_schema_removed": "act",
|
|
505
|
+
"context.messages_omitted": "act",
|
|
506
|
+
"instructions.withheld": "act",
|
|
507
|
+
"task.user_steer_undrained": "act",
|
|
508
|
+
"task.user_followup_undrained": "act",
|
|
509
|
+
"task.undelivered_input_dropped": "act",
|
|
510
|
+
"steering.parked_input_blocked": "act",
|
|
511
|
+
"task.turn_interrupted": "act",
|
|
512
|
+
"task.halt_unconsumed": "act",
|
|
513
|
+
"task.late_approval": "act",
|
|
514
|
+
"task.interrupt_unconsumed": "act",
|
|
515
|
+
"task.verdict_refused": "act",
|
|
516
|
+
"approval.read_root_grant_rejected": "act",
|
|
517
|
+
"memory.capture_opted_out": "act",
|
|
518
|
+
"memory.capture_optout_unpersisted": "act",
|
|
519
|
+
"memory.mount_failed": "act",
|
|
520
|
+
"session.lineage_rerooted": "act",
|
|
521
|
+
"rewind.boundary_unrecorded": "act",
|
|
522
|
+
"rewind.file_left_as_is": "act",
|
|
523
|
+
"verify.verifier_is_implementer": "act",
|
|
524
|
+
"server.model_unreachable": "act",
|
|
525
|
+
"permission.entry_mode_clamped": "act",
|
|
526
|
+
"config.read_deny_floor_unkept": "inform",
|
|
527
|
+
"inherit_env.names_withheld": "inform",
|
|
528
|
+
"mods.display_withheld": "inform",
|
|
529
|
+
"classifier.seat_rate_limited": "inform",
|
|
530
|
+
"memory.session_polluted": "inform",
|
|
531
|
+
"task.tool_turn_incomplete": "inform",
|
|
532
|
+
"model.context_window_assumed": "inform",
|
|
533
|
+
"config.store_ephemeral": "inform",
|
|
534
|
+
"permission.allow_rule_not_used_in_auto": "audit",
|
|
535
|
+
"memory.delegation_static_mark_waived": "audit",
|
|
536
|
+
"memory.hold_released": "audit",
|
|
537
|
+
"approval.read_root_granted": "audit",
|
|
538
|
+
"config.autocompact_window_clamped": "act",
|
|
539
|
+
"config.env_timeout_discarded": "act",
|
|
540
|
+
"config.materialize_env_discarded": "act",
|
|
541
|
+
"config.tool_model_gate_unknown_class": "act",
|
|
542
|
+
"config.tool_model_gate_env_invalid": "act",
|
|
543
|
+
"config.artifact_host_invalid": "act",
|
|
544
|
+
"config.task_root_not_canonical": "act",
|
|
545
|
+
"config.write_protection_target_view_absent": "act",
|
|
546
|
+
"config.path_view_unresolved": "act",
|
|
547
|
+
"config.execution_env_capability_invalid": "act",
|
|
548
|
+
"config.inherit_env_declared_late": "act",
|
|
549
|
+
"config.tool_card_undeclared": "act",
|
|
550
|
+
"config.tool_face_undeclared": "act",
|
|
551
|
+
"config.tool_face_invalid": "act",
|
|
552
|
+
"config.host_sink_failed": "act",
|
|
553
|
+
"config.seat_malformed": "act",
|
|
554
|
+
"config.env_knob_adjusted": "act",
|
|
555
|
+
"config.read_deny_home": "act",
|
|
556
|
+
"config.permission_rules_skipped": "act",
|
|
557
|
+
"config.peer_admission_out_of_range": "act",
|
|
558
|
+
"config.peer_lane_unmounted": "act",
|
|
559
|
+
"config.credential_not_withheld": "act",
|
|
560
|
+
"config.cross_boundary_posture_undeclared": "act",
|
|
561
|
+
"config.cross_boundary_record_unwritten": "act",
|
|
562
|
+
"permission.rule_store_unreadable_relaxed": "act",
|
|
563
|
+
"classifier.contract_broken": "act",
|
|
564
|
+
"checkpoint.execution_outcome_unrecorded": "act",
|
|
565
|
+
"delegation.transcript_integrity": "act",
|
|
566
|
+
"delegation.settlement_write_failed": "act",
|
|
567
|
+
"delegation.durable_row_unpersisted": "act",
|
|
568
|
+
"delegation.parked_card_unreadable": "act",
|
|
569
|
+
"delegation.parked_card_id_untrusted": "act",
|
|
570
|
+
"protocol.revocation_probe_failed": "act",
|
|
571
|
+
"mcp.credential_echoed": "act",
|
|
572
|
+
"memory.consolidation_conflict": "act",
|
|
573
|
+
"memory.consolidation_incomplete": "act",
|
|
574
|
+
"memory.restore_withheld": "act",
|
|
575
|
+
"route.fallback_to_primary": "act",
|
|
576
|
+
"route.classifier_unroutable": "act",
|
|
577
|
+
"route.seat_detached": "act",
|
|
578
|
+
"route.extra_body_reserved_dropped": "act",
|
|
579
|
+
"instructions.family_undeclared": "act",
|
|
580
|
+
"approval.approver_defect": "act",
|
|
581
|
+
"tool_result.offload_put_failed": "act",
|
|
582
|
+
"fs.staging_file_left": "act",
|
|
583
|
+
"store.lock_retained": "act",
|
|
584
|
+
"memory.layer_locked_legacy": "act",
|
|
585
|
+
"config.read_face_deployment_clamped": "inform",
|
|
586
|
+
"config.write_face_deployment_clamped": "inform",
|
|
587
|
+
"config.tool_model_gate_removed": "inform",
|
|
588
|
+
"config.read_floor_confinement_unavailable": "inform",
|
|
589
|
+
"config.process_start_time_unavailable": "inform",
|
|
590
|
+
"config.secret_env_scrubbed": "inform",
|
|
591
|
+
"classifier.fallback": "inform",
|
|
592
|
+
"classifier.role_defaulted": "inform",
|
|
593
|
+
"delegation.resume_lane_missing": "inform",
|
|
594
|
+
"delegation.settlement_external": "inform",
|
|
595
|
+
"workflow.governance_key_stripped": "inform",
|
|
596
|
+
"workflow.agent_option_ignored": "inform",
|
|
597
|
+
"memory.consolidation_recommended": "inform",
|
|
598
|
+
"memory.consolidation_refused": "inform",
|
|
599
|
+
"memory.consolidation_withheld": "inform",
|
|
600
|
+
"memory.project_scope_absent": "inform",
|
|
601
|
+
"memory.notice_unscoped": "inform",
|
|
602
|
+
"route.response_model_mismatch": "inform",
|
|
603
|
+
"route.tool_call_id_folded": "inform",
|
|
604
|
+
"context.tool_turn_repaired": "inform",
|
|
605
|
+
"task.completed_past_limit": "inform",
|
|
606
|
+
"skills.listing_truncated": "inform",
|
|
607
|
+
"agents.listing_truncated": "inform",
|
|
608
|
+
"tool_result.media_refused": "inform",
|
|
609
|
+
"config.image_processor_unavailable": "inform",
|
|
610
|
+
"store.tail_segment_unjudged": "inform",
|
|
611
|
+
"config.models_swapped": "audit",
|
|
612
|
+
"config.context_settings_swapped": "audit",
|
|
613
|
+
"config.read_face_swapped": "audit",
|
|
614
|
+
"config.write_face_swapped": "audit",
|
|
615
|
+
"config.read_deny_swapped": "audit",
|
|
616
|
+
"delegation.delivery_discarded": "audit",
|
|
617
|
+
"mcp.server_redialed": "audit",
|
|
618
|
+
"memory.content_class_declared": "audit",
|
|
619
|
+
"memory.consolidation_committed": "audit",
|
|
620
|
+
"route.credential_rebound": "audit",
|
|
621
|
+
"tool_result.media_persisted": "audit",
|
|
622
|
+
"tool_result.read_refused": "audit",
|
|
623
|
+
"fs.staging_file_swept": "audit",
|
|
624
|
+
"store.lock_reclaimed_on_declaration": "audit",
|
|
625
|
+
"engine.debug_trace": "audit",
|
|
626
|
+
};
|
|
627
|
+
export const NOTICE_ATTENTION = NOTICE_ATTENTION_TABLE;
|
|
628
|
+
export function noticeAttentionOf(code) {
|
|
629
|
+
return Object.hasOwn(NOTICE_ATTENTION, code) ? NOTICE_ATTENTION[code] : undefined;
|
|
630
|
+
}
|
|
631
|
+
export const NOTICE_FACT_KEY = Object.freeze({
|
|
632
|
+
"config.read_deny_floor_unkept": Object.freeze([]),
|
|
633
|
+
"mcp.server_unavailable": Object.freeze(["server", "memory"]),
|
|
634
|
+
"model.fallback": Object.freeze(["from", "to", "reason", "outcome"]),
|
|
635
|
+
});
|
|
453
636
|
const NOTICE_MINTER_TABLE = {
|
|
454
637
|
"config.autocompact_window_clamped": "engine",
|
|
455
638
|
"config.env_timeout_discarded": "engine",
|
|
@@ -491,10 +674,10 @@ const NOTICE_MINTER_TABLE = {
|
|
|
491
674
|
"config.cross_boundary_posture_undeclared": "engine",
|
|
492
675
|
"config.cross_boundary_record_unwritten": "engine",
|
|
493
676
|
"config.permission_mode_unavailable": "engine",
|
|
494
|
-
"permission.ask_released_by_mode": "engine",
|
|
495
|
-
"permission.read_deny_unapplied": "engine",
|
|
496
677
|
"permission.rule_store_unavailable": "engine",
|
|
678
|
+
"permission.rule_store_unreadable_relaxed": "engine",
|
|
497
679
|
"permission.rule_row_dropped": "engine",
|
|
680
|
+
"permission.settings_rules_skipped": "engine",
|
|
498
681
|
"config.session_rules_earlier_grammar": "engine",
|
|
499
682
|
"config.legacy_tool_name": "engine",
|
|
500
683
|
"config.toolpolicy.unmatched_names": "engine",
|
|
@@ -522,6 +705,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
522
705
|
"delegation.settlement_write_failed": "engine",
|
|
523
706
|
"delegation.durable_row_unpersisted": "engine",
|
|
524
707
|
"delegation.parked_card_unreadable": "engine",
|
|
708
|
+
"delegation.parked_card_id_untrusted": "engine",
|
|
525
709
|
"mcp.injection_dropped": "engine",
|
|
526
710
|
"protocol.revocation_probe_failed": "engine",
|
|
527
711
|
"mcp.server_redialed": "engine",
|
|
@@ -530,6 +714,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
530
714
|
"mcp.credential_echoed": "engine",
|
|
531
715
|
"workflow.governance_key_stripped": "engine",
|
|
532
716
|
"workflow.agent_option_ignored": "engine",
|
|
717
|
+
"workflow.parked_decision_unused": "engine",
|
|
533
718
|
"memory.session_polluted": "engine",
|
|
534
719
|
"memory.harvest_quarantined": "engine",
|
|
535
720
|
"memory.harvest_refused": "engine",
|
|
@@ -561,6 +746,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
561
746
|
"route.stream_end_ignored": "engine",
|
|
562
747
|
"route.extra_body_reserved_dropped": "engine",
|
|
563
748
|
"model.capability_downgraded": "engine",
|
|
749
|
+
"model.fast_mode_changed": "engine",
|
|
564
750
|
"model.role_defaulted": "engine",
|
|
565
751
|
"model.fallback": "engine",
|
|
566
752
|
"context.tool_turn_repaired": "engine",
|
|
@@ -578,6 +764,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
578
764
|
"task.late_approval": "engine",
|
|
579
765
|
"task.interrupt_unconsumed": "engine",
|
|
580
766
|
"task.completed_past_limit": "engine",
|
|
767
|
+
"task.verdict_refused": "engine",
|
|
581
768
|
"task.tool_turn_incomplete": "engine",
|
|
582
769
|
"approval.read_root_granted": "engine",
|
|
583
770
|
"approval.read_root_grant_rejected": "engine",
|
|
@@ -590,6 +777,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
590
777
|
"tool_result.offload_put_failed": "engine",
|
|
591
778
|
"tool_result.media_refused": "engine",
|
|
592
779
|
"tool_result.media_persisted": "engine",
|
|
780
|
+
"tool_result.read_refused": "engine",
|
|
593
781
|
"config.image_processor_unavailable": "engine",
|
|
594
782
|
"fs.staging_file_left": "engine",
|
|
595
783
|
"fs.staging_file_swept": "engine",
|
|
@@ -599,6 +787,7 @@ const NOTICE_MINTER_TABLE = {
|
|
|
599
787
|
"engine.debug_trace": "engine",
|
|
600
788
|
"session.lineage_rerooted": "engine",
|
|
601
789
|
"rewind.boundary_unrecorded": "engine",
|
|
790
|
+
"rewind.file_left_as_is": "engine",
|
|
602
791
|
"verify.verifier_is_implementer": "engine",
|
|
603
792
|
"memory.layer_locked_legacy": "server",
|
|
604
793
|
"server.model_unreachable": "server",
|
package/dist/core/hooks.d.ts
CHANGED
|
@@ -785,8 +785,8 @@ export interface PersistedRuleHit {
|
|
|
785
785
|
* design/252 G-2 — the answer a lane gives when it could not READ its store, or a partition of it (no `reason`; the CALL form is `reason`'s).
|
|
786
786
|
*
|
|
787
787
|
* The store form fails CLOSED: a deny or ask row inside what could not be read may forbid this call and an allow beside it
|
|
788
|
-
* is no yes, so the decision becomes a real-approval ask (origin `rule_store_unavailable`, class `rule_unreadable`:
|
|
789
|
-
*
|
|
788
|
+
* is no yes, so the decision becomes a real-approval ask (origin `rule_store_unavailable`, class `rule_unreadable`: the asking modes keep
|
|
789
|
+
* it for a person, headless it is refused, auto's classifier judges it, `bypassPermissions` releases it) until a read succeeds
|
|
790
790
|
* again; a deny or ask row that WAS read still stands. The RECORD says `"unavailable"`, not `"no_match"`; the lane
|
|
791
791
|
* announces the skipped partition once per run.
|
|
792
792
|
*/
|
|
@@ -795,7 +795,7 @@ export interface PersistedRuleUnreadable {
|
|
|
795
795
|
/** WHY the lane could not read: absent for a store (or partition) read failure — the store form, a real-approval ask of
|
|
796
796
|
* class `rule_unreadable`; for a CALL the lane could not read against the person's standing deny/ask rows (an
|
|
797
797
|
* expansion where a rule reads a word, an unterminated quote, a syntax error) the lexer's reason — the call form, an allow
|
|
798
|
-
* tightens to a real-approval ask of
|
|
798
|
+
* tightens to a real-approval ask of class `call_unreadable`, which only a person answers — also the gate's reading of a lane answer it cannot read (the reason
|
|
799
799
|
* then names this seat and the failed field). Both carry the origin `rule_store_unavailable`. */
|
|
800
800
|
readonly reason?: string;
|
|
801
801
|
/** WHY a store form could not read, when the lane knows: one fault per partition it could not read — the sources it took out and a
|
|
@@ -843,6 +843,11 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
843
843
|
* per-leg mint; a host driving the gate directly may omit it, and the contexts then carry no
|
|
844
844
|
* identity (honest absence — this layer never fabricates a leg). */
|
|
845
845
|
identity?: HookInvocationIdentity;
|
|
846
|
+
/** The leg's bracket around one `classic.PreToolUse` screening of this call — every screening this gate runs (phase 1, the
|
|
847
|
+
* re-screen of a person's edit) runs inside it. The Runner holds the call at its gate for as long as the screening runs
|
|
848
|
+
* (`tool_progress.gate: "hook"`) and frames it (`hook_progress`). Absent (a host driving the gate directly) ⇒ the
|
|
849
|
+
* screening runs bare. */
|
|
850
|
+
whileScreened?: <T>(toolCallId: string, screen: () => Promise<T>) => Promise<T>;
|
|
846
851
|
/** design/319 (A ticket) — the run's reminder provenance mark: the gate's own model-facing deny
|
|
847
852
|
* reasons ride `formatHookFeedback`, so their open tags must carry the same mark the run's
|
|
848
853
|
* system-prompt declaration names. Absent (a host driving the gate directly) ⇒ bare tags. */
|
|
@@ -987,8 +992,7 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
987
992
|
* travels inside it ({@link AskCarry}: the per-call signal, the surviving ask's fallback member, its
|
|
988
993
|
* origin word), so the tuple does not grow a seat per member. ALWAYS passed by the gate (thirteen
|
|
989
994
|
* arguments, every call) — optional on the TYPE only because the ten seats before it are optional and
|
|
990
|
-
* a required parameter cannot follow one.
|
|
991
|
-
* closure that read the signal as the 13th positional argument now reads `carry.signal`. */
|
|
995
|
+
* a required parameter cannot follow one. */
|
|
992
996
|
carry?: AskCarry) => Promise<ToolGateResult["suspend"] | ParkAttemptFailed | undefined>;
|
|
993
997
|
/**
|
|
994
998
|
* design/174 — route a policy `ask` on the reserved question tool to this run's CONTENT-ask channel
|
|
@@ -1166,6 +1170,8 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
1166
1170
|
notResumable?: import("./park-resumability.js").NotResumableLeg;
|
|
1167
1171
|
/** The read face the leg resolved, read per call into the class derivation (`roots` withholds the classifier from a `probe` question); absent ⇒ none resolved. */
|
|
1168
1172
|
readFace?: () => import("../tools/fs/containment-face.js").ContainmentFace | undefined;
|
|
1173
|
+
/** The read-deny table the call is judged with (active built-in tiers, the rows beside them), read only when a mode releases a call whose reads were not established, which names it on its record (`ModeRelease.readUnestablished`); absent, throwing or answering no table ⇒ the record says no table was read (`tableUnread`). */
|
|
1174
|
+
readDenyInForce?: (toolCallId: string) => import("./gate-outcome.js").ReadDenyTable;
|
|
1169
1175
|
/** WHO put the tool's egress / irreversibility marks on the seat ({@link import("./ask-origin.js").ToolMarkSource});
|
|
1170
1176
|
* absent or empty with a mark present reads as the deployment's own (fail-closed: an operator's mandate). */
|
|
1171
1177
|
toolMarkSources?: ReadonlySet<import("./ask-origin.js").ToolMarkSource>;
|
|
@@ -1173,14 +1179,17 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
1173
1179
|
* ({@link import("../engine/loop/types.js").AgentTool.mcpRequiresUserInteraction}): a surviving `allow` is tightened to an `ask`, and every ask on the call carries
|
|
1174
1180
|
* the class `requires_user_interaction` and the real-approval bit (no rule, grant, classifier, bypass mode, blanket seat or policy-settled approver answers it). Absent ⇒ not declared. */
|
|
1175
1181
|
requiresUserInteraction?: true;
|
|
1182
|
+
/** An armed run's reading of the call's sandbox plan on the given input: does it leave the run's command sandbox by its own
|
|
1183
|
+
* `dangerouslyDisableSandbox` (`command-sandbox.ts`)? Such a call is never let go without an answer: a surviving `allow` becomes
|
|
1184
|
+
* the `sandbox_override` question and every ask on the call carries that class. Absent ⇒ the run has no command sandbox. */
|
|
1185
|
+
leavesCommandSandbox?: (args: unknown) => boolean;
|
|
1176
1186
|
/** The deployment's A2A peer-isolation switch: a set switch makes the A2A egress default an operator mandate. */
|
|
1177
1187
|
a2aIsolatePeers?: boolean;
|
|
1178
|
-
/** Observe a mode RELEASE (fired before the released allow leaves the arbitration point
|
|
1188
|
+
/** Observe a mode RELEASE (fired before the released allow leaves the arbitration point): `release` is the record the allowed disposition carries (`GateDisposition.released`, its read fact included). Observe-only. */
|
|
1179
1189
|
onModeReleased?: (info: {
|
|
1180
1190
|
toolName: string;
|
|
1181
1191
|
toolCallId: string;
|
|
1182
1192
|
release: import("./gate-outcome.js").ModeRelease;
|
|
1183
|
-
readUnestablished?: true;
|
|
1184
1193
|
}) => void;
|
|
1185
1194
|
/** An ancestor station's arbitration of this call (the inherited lane arbitrates inside the fold and records
|
|
1186
1195
|
* here); the exit reads it onto the disposition when the gate's own point did not arbitrate. */
|
|
@@ -1219,6 +1228,7 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
1219
1228
|
remedy?: string;
|
|
1220
1229
|
remedies?: readonly import("./ask-origin.js").ApprovalRemedy[];
|
|
1221
1230
|
notResumableWayOut?: string;
|
|
1231
|
+
notResumableSource?: import("./park-resumability.js").ApprovalParkNotResumable;
|
|
1222
1232
|
}) => void;
|
|
1223
1233
|
/**
|
|
1224
1234
|
* design/153 §2/§7.4 (件4 复审, MED): true means this call's ask is MARKED — an inherited ancestor
|
|
@@ -1422,7 +1432,7 @@ export interface ToolGateInput extends PermissionSeatInputs, SkillGateSeats, All
|
|
|
1422
1432
|
* edit, floated ⇒ the question stands marked; its `allow` is no objection (an installation answers only its own leg's
|
|
1423
1433
|
* questions), disclosed beside the leg's own hook member.
|
|
1424
1434
|
*/
|
|
1425
|
-
export declare function createPreToolUseScreening(input: Pick<ToolGateInput, "event" | "modBus" | "inheritedInstallations" | "observedPermissionMode" | "trackedCwd" | "hookEnv" | "identity" | "abortSignal" | "callSignal">, readSettled?: (settled: PermissionResult) => {
|
|
1435
|
+
export declare function createPreToolUseScreening(input: Pick<ToolGateInput, "event" | "modBus" | "inheritedInstallations" | "observedPermissionMode" | "trackedCwd" | "hookEnv" | "identity" | "abortSignal" | "callSignal" | "whileScreened">, readSettled?: (settled: PermissionResult) => {
|
|
1426
1436
|
readonly decision: PermissionResult;
|
|
1427
1437
|
readonly deniedBy?: DeniedBy;
|
|
1428
1438
|
readonly cause?: ClassifierDenyCause;
|
|
@@ -1430,8 +1440,7 @@ export declare function createPreToolUseScreening(input: Pick<ToolGateInput, "ev
|
|
|
1430
1440
|
/**
|
|
1431
1441
|
* The park closure's ONE structural seat — what the gate hands the durable park beyond the twelve
|
|
1432
1442
|
* positional seats. Every member is optional and read by name, so a new thing the park must know
|
|
1433
|
-
* becomes a member here, never a fourteenth positional argument
|
|
1434
|
-
* appended "at the tail so nothing re-binds", which is the growth this seat ends).
|
|
1443
|
+
* becomes a member here, never a fourteenth positional argument.
|
|
1435
1444
|
*/
|
|
1436
1445
|
export interface AskCarry {
|
|
1437
1446
|
/** design/384 slice 2 — {@link ToolGateInput.callSignal}, verbatim: the park closure composes it
|
|
@@ -1460,6 +1469,8 @@ export interface AskCarry {
|
|
|
1460
1469
|
readonly mandated?: true;
|
|
1461
1470
|
/** The table word stamped beside it ({@link import("./tool-policy.js").AskRequest.mandate}), for the row's twin. */
|
|
1462
1471
|
readonly mandate?: import("./ask-origin.js").PersistedRuleMandate;
|
|
1472
|
+
/** The askers' classes the surviving ask's record folded ({@link import("./engine-attestation.js").EngineAttestation.foldedClasses}), for the row's clearance facts — the input the stamp and the live card read. */
|
|
1473
|
+
readonly foldedClasses?: readonly import("./ask-origin.js").AskClass[];
|
|
1463
1474
|
/** The deployment's authorship ({@link import("./tool-policy.js").AskRequest.authoredBy}), for the row's twin. */
|
|
1464
1475
|
readonly authoredBy?: "deployment";
|
|
1465
1476
|
/** The surviving ask's askers' entries ({@link import("./tool-policy.js").AskRequest.askReasons}), for the row's twin — the
|
|
@@ -1475,10 +1486,10 @@ export interface AskCarry {
|
|
|
1475
1486
|
/** What a durable row persists of an {@link AskCarry}: the fallback member COPIED (the row never aliases
|
|
1476
1487
|
* the gate's object; its window is already `0` — the gate's carry mint is the one writer of that
|
|
1477
1488
|
* number), the origin word only when it is a member of the closed set, the class pair and the askers' entries only when
|
|
1478
|
-
* well-formed, as fresh copies, the card's question
|
|
1479
|
-
* the written ask rule as written (a non-empty string or nothing) and the card's headline
|
|
1480
|
-
* `say`'s locale (absent ⇒ canonical) — the carry is typed, but the row is the boundary a host
|
|
1481
|
-
* same screen the summary applies to the word. */
|
|
1489
|
+
* well-formed, as fresh copies, the card's question as a card words it for the class pair kept, through the approval-display
|
|
1490
|
+
* reading (sanitized, size-bounded), the written ask rule as written (a non-empty string or nothing) and the card's headline
|
|
1491
|
+
* for the class pair kept, in `say`'s locale (absent ⇒ canonical) — the carry is typed, but the row is the boundary a host
|
|
1492
|
+
* reads back through, the same screen the summary applies to the word. */
|
|
1482
1493
|
export declare function askCarryRowMembers(carry: AskCarry | undefined, say?: import("../prompt-assembly/engine-text.js").EngineText): {
|
|
1483
1494
|
denialLimitFallback?: import("./auto-mode.js").DenialLimitFallback;
|
|
1484
1495
|
classifierNoRuling?: import("./auto-mode.js").AutoModeFallbackCause;
|
|
@@ -1493,8 +1504,8 @@ export declare function askCarryRowMembers(carry: AskCarry | undefined, say?: im
|
|
|
1493
1504
|
/**
|
|
1494
1505
|
* The design/37 **two-phase tool gate** — the single chokepoint that makes the load-bearing invariant
|
|
1495
1506
|
* structural: a hook's `allow` passes no deny, no ask rule and no mandated question; it is one member of the
|
|
1496
|
-
* allow layer and clears only
|
|
1497
|
-
* person whatever a hook says marks it `authoredBy: "deployment"` or `requiresRealApproval`):
|
|
1507
|
+
* allow layer and clears only what an allow rule may clear and the reference's rule check does not ask (`allowMayClearOn`;
|
|
1508
|
+
* a deployment that wants a question put to a person whatever a hook says marks it `authoredBy: "deployment"` or `requiresRealApproval`):
|
|
1498
1509
|
*
|
|
1499
1510
|
* 1. **collect** — run the PreToolUse hook, threading any `updatedInput` rewrite into `currentInput`
|
|
1500
1511
|
* and collecting `additionalContext`. A hook `deny` short-circuits to a block immediately; a hook
|