@sema-agent/core 7.70.0 → 7.71.1
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 +740 -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 +21 -7
- 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 +69 -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 +39 -21
- package/dist/index.js +32 -17
- 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 +173 -15
- package/wire-changes/core-stores-sql@7.71.0.json +40 -0
- package/wire-changes/core-stores-sql@7.71.1.json +40 -0
- package/wire-changes/core@7.71.0.json +5827 -0
- package/wire-changes/core@7.71.1.json +118 -0
- package/wire-changes/mods-kernel@7.71.0.json +52 -0
- package/wire-changes/mods-kernel@7.71.1.json +40 -0
- package/wire-changes/primitives@7.71.0.json +473 -0
- package/wire-changes/primitives@7.71.1.json +40 -0
- package/wire-changes/wiki-gate@7.71.0.json +40 -0
- package/wire-changes/wiki-gate@7.71.1.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
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,743 @@
|
|
|
1
|
+
## 7.71.1 — 2026-11-24
|
|
2
|
+
|
|
3
|
+
### A row the host mints is stamped with the engine's own stamp — `stampCheckpointRequirements` and `resolveDeclaredFidelity` at the package root (#5334; additive: two root exports; behaviour change: none)
|
|
4
|
+
|
|
5
|
+
- **What was wrong.** 7.71.0 refuses a checkpoint row below the row format (v10) as a retired seat (#1333), and its notes said a row a host puts into the store is held to that floor too — but the package root offered no stamp, and a store's `put` does not stamp. A host therefore had no lawful way to mint a v10 row: the `task_done` wake card a serving layer files when a steer lands on a finished task was refused `checkpoint.unsupported_version` / `seat_retired` at the wake (the same path ran on 7.70.0). This release gives that entrance.
|
|
6
|
+
- **Exports.** `stampCheckpointRequirements(row, fidelity)` — the one stamp the engine's own commit takes before the write (writes `version`, `requires`, `requirementsDigest`, and hands back the row as a store of that fidelity keeps it) — and `resolveDeclaredFidelity(store, storeName)` — a store's declared `StoreFidelity` (absent ⇒ `"json"`, anything unrecognised refused `config.store_fidelity_invalid`). Both are the existing functions, unchanged.
|
|
7
|
+
- **Use.** `put(token, stampCheckpointRequirements(checkpointFrom({ ... }), resolveDeclaredFidelity(store, "checkpointStore")))`. Before the write, judge the stamped row once with `judgeCheckpointRow(row)` (as the engine's own commit does) and do not write it unless the verdict's `kind` is `ok` — anything else means a member the store's fidelity does not keep or the digest cannot encode (a BigInt at `json` fidelity, say). Stamp only rows the host itself mints, never a row another engine release wrote (a re-stamped old row is admitted as a current one — the judgments its old format owed are not re-run); change no member a verdict reads after the stamp (the row then reads `damaged` / `checkpoint.invalid_outcome` / `requirements_damaged`). Read the fidelity from the store's declaration, not a constant: a row stamped for `structured-clone` and written to a `json` store can read back damaged.
|
|
8
|
+
- **Unstamped host cards already in a store.** They stay refused `seat_retired`: expire them and file them again, or mint them again through the stamp (only rows the host itself minted).
|
|
9
|
+
- **Behaviour change: none. Hard-breaking: none.** Exports: +2, none removed. Docs: INTEGRATION-CORE "A row the host mints".
|
|
10
|
+
|
|
11
|
+
no-notes: #4460(named only by the 7.71.0 post-ship bookkeeping commit, which re-windowed its ledger row; nothing of it changes in this release)
|
|
12
|
+
|
|
13
|
+
## 7.71.0 — 2026-11-23
|
|
14
|
+
|
|
15
|
+
### The checkpoint store contract gains a run axis for a session listing, an age backstop for the overdue listing, and a typed refusal from `get` of a row it cannot hand back; the file history gains the code `too_large`, with the bound and where it comes from (#4748, #4749; behavior change: a first-party store's `get` refuses a held row it cannot hand back instead of answering it; hard-breaking: a store that reads its queries through the engine's readers must answer or refuse two new members, two contract-kit callback types widen, `CheckpointIndexFacts` gains a required member, and `FILE_HISTORY_ERROR_CODES` gains `too_large` for an exhaustive reader — see the bullets; closed sets: `FILE_HISTORY_ERROR_CODES` +`too_large`, new `FILE_HISTORY_LIMIT_SOURCES`, new `CheckpointSessionQuery.axis` (`"session"` / `"run"`); exports: +9; a store that does not answer a new query member refuses it and the kit reports it absent — one that ignores it is red)
|
|
16
|
+
|
|
17
|
+
- **Run axis.** `CheckpointSessionQuery.axis?: "session" | "run"` (absent = `"session"`, as before). `"run"` lists the rows whose run session is the id: `checkpointRunSessionOf(row)` — a pure function of the row's `sessionId` and `state.compositionLeg` — answers a cascade rung's and a repair loop's restart's card under its host's session (`compositionLeg.hostSessionId`: the session a person decides and cancels that run in — the cascade's resume entry continues a rung inside that run; a restart runs in a session of its own and is still redeemed by its token) and every other card under its own session (a verifier's pause, redeemed by its token; a card with no leg is its session's). A row whose leg does not read (an entry outside the set, a cascade or repair entry with no host session, a state that is not an object) is attributable to no run: left out of a `"run"` page and disclosed. `CheckpointIndexFacts` gains `runSessionId: string | null` (the same function; `null` = a row attributable to no run, which the axis never matches) — the column a SQL store answers the axis over.
|
|
18
|
+
- **Age backstop.** `CheckpointOverdueQuery.maxAgeMs?: number` (a whole number of milliseconds, 0 or more; anything else refused `config.invalid_argument`): a pending row that carries no deadline is overdue once `createdAt + maxAgeMs <= cutoff` and sorts at that instant (`checkpointOverdueAt(row, maxAgeMs)`, the one rule; the cursor's `deadline` is that instant). A row's own deadline outranks the backstop. A `createdAt` that is not a finite number is past every cutoff, as a deadline that is not one already was. Absent = a row with no deadline is never overdue, as before. `reap` is unchanged.
|
|
19
|
+
- **`get` of a row it cannot hand back.** `get` throws `CheckpointError` code `checkpoint.invalid_outcome`, `detail.reason` `requirements_damaged` — the code and reason the row judge answers for a row it cannot read — for a held row that is not an object, whose token, scope or status is not a string, or whose token member is not the token asked (`storedCheckpointRowRefusal(token, row)`; a member whose read throws is refused too). `isCheckpointRowUnreadable(e)` (package root) is the engine's own test that a thrown value is this refusal — a host tells it by that, not by re-reading the code and reason. Its first sentence depends on what the row's status reads. A row whose status reads `pending` and that records no execution outcome keeps the row-damaged sentence ("… The checkpoint stays pending and nothing was consumed. Expire it, then start the task again."). Any other row — a settled status, a status that does not read, a pending row that records an execution outcome, a member that throws — opens with a sentence that claims neither: "This engine cannot read this checkpoint row: its stored content does not read as a row, so whether it was already settled — and whether the action it approved has already run — cannot be confirmed from it. The action may already have run: check what became of it before deciding whether to run the work again — running it again may repeat it." It does not say "Expire it": `expire` is not promised to settle such a row — it answers `false` when the row's status or scope does not read, and a row whose scope and `pending` status still read can still be expired by the key it is filed under (the diagnostic names the stored status when it is one of the three words). A store that decodes stored bytes throws `checkpointRowUnreadable(<diagnostic>, standing)` for bytes that do not decode: `standing` is `"pending"` only when the store can read `pending` apart from the bytes (the Pg example reads its status and execution columns), and it defaults to `"unknown"`, the second sentence. Every other row is answered as stored (a row of an earlier format, a member the shape table refuses, a status string none of the three words — the last read by the readers of the status as in 7.70.0, KL-5246-b, and the kit's `get` cell holds a store that keeps such a row to answering it): its verdict is `judgeCheckpointRow`'s, and the session listing's promise for an `unreadable` row now says so. Both first-party stores and the Pg example adapter do this; before, the in-memory and file stores answered such a row as if it were readable. The engine's readers of `get` that tell a fault from an outage keep doing so: claiming a parked agent whose card is such a row answers `binding_broken` (not `store_unreachable`), and the owner's adoption of yielded agents refuses that one agent and goes on to the next.
|
|
20
|
+
- **`too_large`.** `FILE_HISTORY_ERROR_CODES` gains `too_large` (9 words): one stored copy of a file (a first touch's pristine bytes, a boundary's capture, an imported or exchanged blob) is over the store's bound — the call commits nothing (no record, no boundary, no imported graph; a copy an earlier file of the same call already wrote is referenced by nothing this call commits, as after any failed attempt; an import is judged on every copy it references, held already or not), `permanence` is `terminal`, and `FileHistoryError.limit` (present on this code only) is `{ bytes, source }`, `source` ∈ `FILE_HISTORY_LIMIT_SOURCES` (`store_option` / `backend`). `fileHistoryTooLarge({ what, size, limit })` is the one mint; a backend of another kind answers its medium's own bound with `source: "backend"`. Both bundled stores take `maxBlobBytes` (and so does the file backend's `fileHistory` record; a whole number of bytes, 0 or more; a bad value refused at construction; omitted = no bound, as before) and judge it in bytes at `trackEdit`, `snapshot`, `importHistory` and `blobExchange.put`; a first touch refused this way records nothing, so the edit is refused like any other failed first touch.
|
|
21
|
+
- **Contract kits.** The checkpoint kit gains three cells: the run axis and the age backstop (each probed by a query carrying the member: a store that refuses it, `config.invalid_argument`, is reported through `onOptionalMember` as `listBySession.axis` / `listOverdue.maxAgeMs` `absent`, one that answers is held to every case, one that ignores the member is red; on the run axis a store may refuse at `put` a row attributable to no run — any throw, no row laid down (`get` answers `null`), and the cell leaves it out of the pages it expects; a refused put of any other row, or a refused one that `get` still answers or that its own session's page still lists, is red), and `get`'s refusal. `onOptionalMember`'s `member` gains the two words — a callback typed with the narrower union no longer compiles. The file-history kit takes a fourth argument, `{ capped, bytes, source }` (a store bounded at `bytes`, naming `source`), for its `too_large` cell; absent, the cell is reported `sizeLimit: absent`.
|
|
22
|
+
- **Hard-breaking (run time, a host store's own queries).** A store that reads its queries through `readCheckpointSessionQuery` / `readCheckpointOverdueQuery` and builds its own SQL from the reading compiles unchanged, and now receives `axis` / `maxAgeMs` when a caller sends them: until it answers them (the column `runSessionId`, the backstop's predicate) or refuses them (`config.invalid_argument`), it answers such a query as if the member were absent — the wrong rows for `axis: "run"`, rows with no deadline missing under a backstop. The kit's two cells are red on such a store.
|
|
23
|
+
- **Hard-breaking (compile time only, no run-time change).** `checkpointStoreContract`'s `options.onOptionalMember` and `fileHistoryStoreContract`'s `onOptionalMember` report more members (`listOverdue.maxAgeMs`, `listBySession.axis`; `sizeLimit`): a callback a host wrote with its parameter typed as the narrower union no longer compiles — widen its type, or leave it unannotated. `CheckpointIndexFacts` gains the required `runSessionId`: a literal a host builds by hand (a mock) needs it — derive the facts through `checkpointIndexFacts` instead. Both query members are optional and `CheckpointSessionQueryReading.axis` is optional (absent = the session axis), so no query a host builds stops compiling.
|
|
24
|
+
- **Hard-breaking (compile time for an exhaustive reader; open to veto @server @client-core @cli).** `FILE_HISTORY_ERROR_CODES` gains `too_large` (8 → 9 words), and `FileHistoryError.code` is derived from it: a host that switches exhaustively over the code (a `never` default) or keys a table by it (`Record<(typeof FILE_HISTORY_ERROR_CODES)[number], …>`) does not compile until it handles `too_large`; at run time a reader that maps each code to a message or a retry decision meets a word it has no row for — `too_large` is `permanence: "terminal"` (retrying the same bytes under the same bound never succeeds) and carries `limit { bytes, source }`. Who: @server (its file-history store and the store move, which must answer the bound with `fileHistoryTooLarge`), @client-core and @cli where a code book or a rewind screen names file-history codes. A store that sets no bound never answers it (`maxBlobBytes` omitted = no bound, as before).
|
|
25
|
+
- **Root exports (+9).** `checkpointOverdueAt`, `checkpointRunSessionOf`, `storedCheckpointRowRefusal`, `checkpointRowUnreadable`, `isCheckpointRowUnreadable`, `fileHistoryTooLarge`, `FILE_HISTORY_LIMIT_SOURCES`, and the types `FileHistoryLimitSource`, `FileHistorySizeLimit`. Nothing is removed.
|
|
26
|
+
- **Pins.** `test/backlog4748-4749-store-contracts.test.ts` (the run-axis function and index column — a repair restart's card under its host, one naming no host under no run —, the run-axis cell over a store refusing a no-run row at put (green), one that refuses it yet keeps the row and one that refuses an attributable row (red), the backstop's instant, six damaged forms through a decoding store, the kits over both first-party stores, a declining store reported absent, an ignoring store red on both cells, a lax `get` red, the claim's two answers, the settled-status diagnostic, members that throw; both file-history stores through the `too_large` cell at a 16-byte bound, the option door, the file backend's record).
|
|
27
|
+
|
|
28
|
+
### A resume leg's env factory is handed the workspace its checkpoint row recorded — `ExecutionEnvFactoryContext.priorHandle`, the row handle's one frozen copy; a row whose handle cannot be read is refused before the claim (#3853 S1; behavior change: one narrowing, below, open to veto @server @cli @test; hard-breaking: none; closed sets: none; exports: none; wire: `ExecutionEnvFactoryContext` +1 optional member `priorHandle`)
|
|
29
|
+
|
|
30
|
+
- **Rule.** A resume leg has one fact for which workspace it goes back to: its own checkpoint row's `workspaceHandle`. The engine reads it once, as the row handle's one frozen copy (`frozenHandleCopy` — the object the resume preflight's `workspaceHandle` and the restore's `VmLifecycleOptions.priorHandle` already were), before the factory is asked; the placement fence (`placementTarget`) and the new `priorHandle` are both read off that copy. The factory goes back to that workspace or throws.
|
|
31
|
+
- **Before (measured on the 7.69.0 line, a real Runner).** A park-only resume's factory was told the row's target and nothing else: a new Runner whose factory minted `sb-B` at `/ws/run-B` ran the approved action with the task root re-pointed to the row's `/ws/run-A`, `completed`, nothing disclosed; a fresh sandbox at the same path read the same. A host had only the session's identity to find the parked workspace by.
|
|
32
|
+
- **Now.** `priorHandle?: Readonly<WorkspaceHandle>` on `ExecutionEnvFactoryContext`. **Present** exactly on a leg that resumes a row which recorded a workspace — park-only and snapshot rows alike, in the Runner that parked it or another, a workflow's parked child driven on, a parked agent revived through its row, and the retry of a row a refused resume leg put back to pending (the retry's copy is equal to the refused leg's). **Absent** (the key, not an `undefined` value) everywhere else: first legs, every delegated child (including a child a resumed leg spawns), a retained agent woken from its in-process snapshot, a composition's later legs, a resume of a row that recorded none, `rewind_files` / `read_changes`. It holds exactly the declared members the row's handle carries as strings, frozen; it is the same object the preflight and `resumeVM` are handed. It never rides `RunInternals`, so no leg inherits another's. The factory is asked once per leg: a refused resume leg's compensation asks it nothing more; a factory that throws ends the leg exactly as before (its own code, the row reopened, no notice).
|
|
33
|
+
- **Narrowing (open to veto @server @cli @test).** A row whose `workspaceHandle` cannot be read — not an object, a member that throws when read, a `sandboxId`, `provider` or `mountPath` that is not a string — is refused before the claim by the row judge, `checkpoint.invalid_outcome` / `reason: "requirements_damaged"`, and the listing's `rowVerdict` says `damaged`. Before, such a row was claimed and then failed with an uncoded `TypeError` (`null`), refused `resume.env_failed` after the claim (a `provider` that is not a string), ran without re-rooting (no `mountPath`), or handed its factory a copy without a `sandboxId` (one that is not a string). The row stays pending, nothing is consumed, the factory is not asked. An empty string in any of the three is not unreadable — the park mints one from an env that reports it: an empty `provider` states no target (the fence is the waking leg's), an empty `mountPath` no root (the restore neither compares nor re-roots, as before). **Reach, for rows already parked:** a row whose handle lacks a `sandboxId` or a `mountPath` altogether — only an adapter whose handle is outside its declared type mints one; the engine copies the adapter's handle as it stands — resumed before this release. It is now judged damaged before the claim (`requirements_damaged`, the factory not asked), and its card can only be cancelled and the task started again. An adapter whose `workspaceHandle()` returns the declared members is not affected.
|
|
34
|
+
- **Not changed.** Every code; every other key of the factory's context on every leg (a first leg: `sessionId`, `placementRootSessionId`, `purpose`; a resume leg adds the fence, as before); the fence's member-by-member fold (a member the row states wins, a row without `deviceId` takes the waking leg's); the engine still does not compare `sandboxId`; the checkpoint format and version. A host that calls `runTaskStream(spec, resume)` directly bypasses the row judge: a `null` handle, or one whose member throws when read, throws there, uncoded, before the factory is asked; any other value reaches the factory as its copy (a member that is not a string left out, a value that is not an object read as an empty copy).
|
|
35
|
+
- **Rules.** Readings of a resume leg's recorded workspace: two (the fence and the restore's backend, root and snapshot checks read the live handle; the preflight and `resumeVM` the copy) → one (the copy, read once; every member the restore phase reads comes off it). The factory contract "the workspace is found by the session's identity" gives way to "the factory reads `priorHandle`".
|
|
36
|
+
- **Pins.** `test/backlog3853-factory-prior-handle.test.ts` — F1 park-only: present, frozen, the preflight's object, the row's members · F2 snapshot: `resumeVM`'s object · F3 absent on a first leg, a synchronous / background / fork child, a child of a resumed leg, a retained wake, a workflow member, a cascade rung, a handle-less row, `rewind_files` · F4 present on the same Runner, a new Runner, a workflow drive, a revive · F5 a write throws · F6 the fence and it one reading · F7 type-level readonly · U1 four unreadable forms (`null`, a `provider` or a `sandboxId` that is not a string, no `mountPath`) refused before the claim through a real resume, and a member that throws when read judged `damaged` by the row judge and its summary — that last form is pinned at the judge, not through a resume: the bundled in-memory store clones a row on `get`, so a row holding a throwing member cannot be put in front of a resume with it; a host's own store handing back a live object is the one that would reach it (read in the code, not run) · U2 an empty `provider` runs · M1 a row the park minted from an env reporting an empty `mountPath` is judged ok and resumes · K2 the restore phase reads each member once · E2E a conforming factory attaches or throws `env.workspace_gone`; `test/backlog3853-redo-leg-contexts.test.ts` — C1 – C3 the context's keys on a first leg and on a snapshot / park-only resume · C4 a refused leg asks the factory once, its retry once with an equal copy · T1 / T2 a throwing factory on a resume / first leg · P1 a factory that ignores the context (park-only and snapshot); `test/backlog2058-prior-handle-same-copy.test.ts` P1 / P3b / P5 extended to the factory's seat.
|
|
37
|
+
- **Consumers.** @server: the host lane's factory goes back to `priorHandle` (its directory) and drops the name-law derivation; the local-docker lane attaches by `priorHandle.sandboxId` or refuses; a device / park-only lane roots at `priorHandle.mountPath`; a probe that pins a resume leg's factory-context key set gains `priorHandle`. @cli @client-core: none.
|
|
38
|
+
|
|
39
|
+
### A park-only resume whose environment stands at another root is refused, not re-pointed — the root receipt, once connected (#3853 S2; behavior change: a narrowing, open to veto @server @cli @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
40
|
+
|
|
41
|
+
- **Rule.** The engine verifies that the environment the factory handed back stands where the row says the parked workspace is; it no longer moves the task root to make them agree. One receipt, read once the leg's restore seat has connected: the env's `workspaceHandle().mountPath` against the root the row recorded (`priorHandle.mountPath`). The backend and the device are still judged before anything is connected.
|
|
42
|
+
- **Before (measured on the 7.69.0 line).** The engine re-pointed the task root at the row's `mountPath` whatever the env reported: an env at `/ws/run-B` ran the approved action under the root `/ws/run-A`, `completed`, nothing disclosed.
|
|
43
|
+
- **Now.** The same string passes with no call, and so do spellings that name one directory by their letters alone — a trailing slash, a `.` segment, a doubled separator (POSIX, the remote lanes' path family: only when both roots start with `/`; letter case is not one of them). A root that does not start with `/` is compared as written — `a\b/c` and `a/b\c`, or `a\\b` and `a\b`, are different directories, so the one an env reports in place of the other is refused unless the env resolves both to one. Another spelling passes when the env's own `canonicalPath` resolves both to one directory, and the task root takes the checkpoint's spelling, as before. A row that recorded no root (an empty `mountPath`) is neither compared nor re-rooted: the leg runs where its env stands, as before. A root the env reports elsewhere, a spelling either side cannot resolve, or a handle that cannot answer once connected is refused `resume.env_failed` (`resume workspace root mismatch: …`; no `remoteEnvFailures` note): nothing runs, and the row returns to pending (`env_failed`) with the approval kept. The receipt's own resolution calls come after the seat's `connect`; that includes a `connect` the seat lets the run start past (a retryable failure), after which a handle that cannot answer is refused too.
|
|
44
|
+
- **Narrowing (open to veto @server @cli @test).** A park-only lane whose factory hands back a workspace at another root — it did not go back to `priorHandle`, or a mount-path setting changed while the row was parked — used to run there under the old root's name and is now refused until the factory goes back to the recorded root. A factory that reads `priorHandle.mountPath` (S1 above) passes.
|
|
45
|
+
- **Not changed.** Every code; the snapshot arm (its divergence ladder and rebase; it now calls the same resolver function); the backend / device check and its place before `connect`; `sandboxId` is not compared — a fresh workspace at the same path passes this receipt (KNOWN-LIMITS KL-3853-a), and only a factory that reads `priorHandle` stops it.
|
|
46
|
+
- **Rules.** The park-only arm's two readings of where the task runs (the env's report, and the row's path the engine re-pointed to) → one (the row's, checked against the env's). The snapshot arm's private resolver → one module function both arms read.
|
|
47
|
+
- **Pins.** `test/backlog3853-factory-prior-handle.test.ts` — R1 an env at `/ws/run-B` refused, nothing ran, the row pending (`env_failed`) · R2 / R2b another spelling the env resolves to one directory passes, one it cannot resolve is refused · R3 the root read once connected, both directions · R4 the same string, no resolution call · R6 an old park row without `restoreMode` takes the same receipt · R7 after a retryable `connect` · K1a – K1f the lexical sameness (folds only when both roots start with `/`).
|
|
48
|
+
- **Consumers.** @server: the host and device lanes' factories root the env at `priorHandle.mountPath` (a lane whose mount path changed while a row was parked is otherwise refused); local-docker attaches by `priorHandle.sandboxId`. @cli @client-core: a resume refused this way renders as any `resume.env_failed`.
|
|
49
|
+
|
|
50
|
+
### A resume leg sent back to its row's workspace and refused before its approved action no longer destroys that workspace while the row is pending again — the row's outcome decides the env, the paused-env record, the constraint entry and the session pin, on both exits (#3853 S3, #2516, #3957; behavior change: fewer `destroy()` calls on refused resume legs, open to veto @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
51
|
+
|
|
52
|
+
- **Rule.** An env minted for `ExecutionEnvFactoryContext.priorHandle` belongs to that row until the leg's approved action starts. A leg that ends before then — refused in its prepare, by its restore seat, or cancelled before the action — leaves the row's four resources (the env, this process's paused-env record, the parked constraint entry, the session pin) as the one compensation answer says, read by one predicate (`rowKeepsWhatItsRetryNeeds`) on both exits (the thrown prepare and the returned result): the row came back (`reopened`) or may have (`unknown`) ⇒ all four stay, the env's reference is dropped and `destroy()` is not called; the row did not come back (`declined`) ⇒ all four are released as before. One exception, decided where the proof is: a refusal of the restore seat that proves the env is not the row's workspace — the env reports another `provider` or another `deviceId` where the row recorded one (before a restore, on `resumeVM`'s returned handle, or at the leg's settle point once connected — the one device reading, `devicesDisprove`, for both receipts), or, on a park-only row, a root it resolves to another directory — or whose adapter's `postResumeInit` failed, destroys the env at once, as before. A `postResumeInit` that throws instead of answering (synchronously or by rejecting, the run not cancelled meanwhile — a cancel's throw ends the leg as a cancel, as before) is read as an `unknown` failure, as the restore seat reads a throwing `connect`: refused `resume.env_failed` with its `remoteEnvFailures` note (`op: "postResumeInit"`, `code: "unknown"`) and destroyed at once — before, the adapter's own throw ended the leg as it was and the env went with the rollback (a narrowing of what a contract-breaking adapter's leg reports, open to veto @server).
|
|
53
|
+
- **Before (measured on the 7.69.0 line, a real Runner and a host whose `destroy()` deletes the workspace).** Every refused resume leg's env was destroyed by the prepare's rollback: a conforming factory that went back to the parked workspace, refused by a standing `connect` refusal, a configuration door after the restore or an unreadable lifetime declaration, deleted that workspace — the approval stayed pending (`env_failed`) and every later resume of it read "the workspace is gone". In the same Runner, a factory that handed back the parked env got it destroyed twice (the rollback, then the stream's reap). The returned exit (a cancel after prepare, before the action) unpinned the session and dropped the record and the constraint entry of a row it had just put back to pending; the thrown exit unpinned the session and dropped the constraint entry of a row whose state it could not prove.
|
|
54
|
+
- **Now.** Those legs keep the env and the workspace; the same row resumes again on a conforming factory and runs at its recorded root. The same Runner destroys the parked env once, by the stream's reap. A `declined` row's leg env and the record's env, when they are one object the thrown exit holds, are destroyed once (a disproved env that is that object is destroyed at the refusal and again by the record's arm, as before — `destroy()` is idempotent). The returned exit keeps the pin, the record and the entry of a row it brought back; the thrown exit keeps the pin and the entry of a row whose state is `unknown`. On the returned exit a kept env is not an env that dies: the run-end sweep of its background shells reads it as staying (as for a parked leg), and a workspace-sync seat's last sync of the leg is told no destroy follows (`legEnded(false, …)`, the `turn_end` reading) — the destroy, the sync and the sweep read the one answer of which env the teardown destroys.
|
|
55
|
+
- **Not changed.** Every code and every sentence; which refusals refuse; a leg whose row recorded no workspace, a leg whose action started, a completed or paused leg and a first leg destroy their env as before; the env is never registered in the paused-env reap table and `destroy()` gets no second meaning; the release form of each exit for a row that does not come back (the thrown exit destroys the record's env, the returned exit retires it).
|
|
56
|
+
- **Behaviour change (open to veto @server @test).** A deployment counting `destroy()` calls sees fewer on refused resume legs; an env a retry never comes for is reclaimed by the adapter, not the engine (KNOWN-LIMITS KL-3853-c). Residuals: a provider renamed while parked still destroys the workspace at the refusal, and the row's every later resume reads it gone — and so does a park-only root the env reports in another letter case when its own `canonicalPath` does not fold case, which reads one directory as two (KL-3853-b); a `declined` that means another resumer took the row still destroys the env, as the record's arm already did (KL-3853-d); an env that reports an empty mount path while its own `canonicalPath("")` resolves to another directory is read as another workspace and destroyed (KL-3853-e); five rarer forms where the env's fate and this rule's sentence differ are ticket #4685.
|
|
57
|
+
- **Rules.** The env's fate on a refused resume leg: two readings (a prepare throw ⇒ destroy; an unparked end ⇒ destroy) → one table read off the row's outcome (`rowKeepsWhatItsRetryNeeds`), which the record, the constraint entry and the pin on both exits read too (they read three different things before: the thrown exit's committed / unknown flags, the returned exit nothing, the Runner's callback the token alone). On the returned exit, which env the teardown destroys is one reading (`envDestroyedAtTeardown`) for its three readers.
|
|
58
|
+
- **Pins.** `test/backlog3853-s3-refused-leg-env.test.ts` — K1 a standing connect refusal · K2a a configuration door after the restore · K2b an unreadable lifetime before the receipt (each: env kept, workspace alive, row pending, the retry runs) · K3 / K4 the same Runner, a new object / the parked object (one destroy, by the reap) · K5 `declined` (destroyed; one object destroyed once) · K6 `unknown` (env, record, entry, pin kept) · K7 / K8 / K11 six disproving refusals destroy at once (the settle point's device receipt among them), five that prove nothing keep · K8b / K8c a `postResumeInit` that rejects / throws synchronously · K8d one that rejects because the run was cancelled (the cancel's ending, the env kept) · K9 the returned exit's cancel before the action · K10 four unchanged legs · KP a delegated child's placement refusal on a resume leg hands the env over (the phase); `test/remote-suspend-resume-design49.test.ts` the `resumeVM`-failure cell (a failed restore keeps the env with the reopened row).
|
|
59
|
+
- **Consumers.** @server: a probe that counts `destroy()` on a refused resume leg re-pins (fewer); a host whose adapter keeps per-object holder counts reclaims a released env itself. @cli @client-core: none.
|
|
60
|
+
|
|
61
|
+
### A memory store whose control plane holds its account but no root anchor is refused instead of backfilled, and the person is told it is an older version's store that one re-anchor restores — the anchor backfill arm is retired (#5247, retirement line RL-1103; behavior change: yes — such a store no longer opens until it is re-anchored; hard-breaking: three, open to veto @server @cli @client-core @test; closed sets: `NON_GOVERNANCE_MEMORY_CODES` −1 `memory.root_anchor_backfilled` +1 `memory.root_anchor_damaged`, `CaptureOptOutUnpersistedCause` / the cause of `memory.mount_failed` +1 `memory.root_anchor_damaged`; exports: +2 — `ROOT_ANCHOR_DAMAGED`, `RootAnchorRefusalDetail`; wire: one incident code no longer minted, one new error code, one new `detail.cause` word)
|
|
62
|
+
|
|
63
|
+
- **Rule.** An absent root anchor has two readings and no third: a control plane that holds nothing records the anchor (a first open); one that holds the store's account (its scope registry or its committed-rev ledger) is refused, whatever brought it there — a store last opened by an engine before 7.49.0, the one-shot legacy-partition adoption or partition-key move of such a store (neither records an anchor), a host's copy, an anchor removed by hand — and the one remedy is `reanchorMemoryStoreRoot(dir, { controlDir })`. The anchor has two writers, the first record and the re-anchor (`src/core/memory-engine/layout.ts`, `absentAnchorReading`).
|
|
64
|
+
- **Hard-breaking 1 (behavior, open to veto).** A memory store whose control plane holds its account but no anchor no longer backfills its anchor when it is opened: it is refused (`ControlPlaneCorruptError`, its sentence ending with the full `reanchorMemoryStoreRoot(…)` call); opening it once with any release from 7.49.0 to 7.70.x before upgrading avoids the refusal. `memory.root_anchor_backfilled` is no longer minted. The store's directory and its control plane are left as they were; after the re-anchor its entries read back as before. A store whose anchor is absent and whose journal still holds a committed transaction cannot be re-anchored either (the journal is replayed only at the recorded root): the re-anchor's refusal now says to put the store back at the root it was last opened at, open it once there with a release from 7.49.0 to 7.70.x (7.63.x or below when the journal carries the bare-map ledger form, which 7.64.0 retired), then upgrade. With an anchor that cannot be used over such a journal the refusal gives both next steps: restore access and call again when the file is intact and only unreadable to this process, or, when it is damaged, remove it from the control plane first (a release that refuses the anchor cannot replay the journal), which lands the store in this form.
|
|
65
|
+
- **Hard-breaking 2 (type-level, open to veto).** `CaptureOptOutUnpersistedCause` (the keys of `CAPTURE_OPTOUT_UNPERSISTED_RETRY`) and the `detail.cause` of `memory.mount_failed` gain `memory.root_anchor_damaged` (retry `until_fixed`): a switch exhaustive over the exported type no longer compiles until it has the case, and a reader keyed on the words it knew reads one more (@server @cli @client-core — the codebook is generated: regenerate it; @test).
|
|
66
|
+
- **Hard-breaking 3 (wire, open to veto).** The refusal of a store whose anchor cannot be trusted — absent while the plane holds the account, or present and not a record (a link, not a regular file, not JSON, out of shape) — now carries `code: "memory.root_anchor_damaged"` and `detail: { path, controlDir }` on the `ControlPlaneCorruptError` (the operator's lane, `onError`); before, it carried neither, and in a run's memory phase it read `cause: "unclassified"`, retry `transient`, "the memory store could not be opened … check the service log". An anchor the file system will not let the engine read (permissions, an I/O fault) keeps the uncoded refusal and that reading, and so does a control plane that may have travelled with a moved engine root whose own anchor cannot be read (its remedy is another). Now the person's `memory.mount_failed` says the store was left by an older version of the engine that did not record where it lives, or that the file recording it was removed or is damaged, that the engine changed none of the store's memory and removed none of it, and that one re-anchor — given the store's directory and the directory kept beside it, both named in the service log — opens it with its memory (if that call is refused, its own message says what comes first); the notice still names no host path. A host that wraps a user command for it (@server an operator route, @cli a terminal command — whether either exists today is not known here) branches on the cause word and takes the two directories from the error's `detail`.
|
|
67
|
+
- **A set that is not a type (no compile error, a runtime reader reads it).** `NON_GOVERNANCE_MEMORY_CODES` is a `ReadonlySet<string>`, so its two changes (−`memory.root_anchor_backfilled`, +`memory.root_anchor_damaged`, the set's size unchanged) are in no type a host compiles against: a reader that tests a code's membership in it — to class a memory code as an engine incident rather than a governance verdict (`src/core/tool-errors.ts`) — now finds `memory.root_anchor_damaged` a member and `memory.root_anchor_backfilled` none. The engine no longer mints the removed code, so only a host replaying an older store's records, or matching the old word, meets the difference. @server @test: re-read your own copy of the list if you keep one.
|
|
68
|
+
- **Retired with it.** KL-1103-a and KL-1917-c (both were the backfill's own limits); KL-4590-o reads "refused" where it read "backfilled". The two migrations (`adoptLegacyRepoDirs`, `adoptCanonicalKeyedControlDir`) are unchanged.
|
|
69
|
+
- **Pins.** `test/backlog5247-anchor-absent-refuses.test.ts` (C1 an adopted legacy partition refuses at its first open and one re-anchor opens it with its file intact; C2 a removed anchor refuses with the store's bytes unchanged, the person's reading, the re-anchor opens it; C3 / C3′ / C3″ / C3‴ the double lock, absent and damaged, the remove-the-anchor way out of the damaged form, and an intact anchor this process cannot read (restore access, file untouched); D / D′ a damaged anchor, and one the file system will not read; L the account held as a link; R a real Runner over such a store: the memory phase fails open with the new cause and sentence, the operator's error carries the two directories, the re-anchor from them mounts the next run); re-pinned: `test/backlog1103-memory-root-anchor.test.ts` (⑤b, ⑤c, ⑨b, ⑬; ⑤b′ deleted with KL-1103-a), `test/backlog4590-store-absent-declared.test.ts` (7, 7b), `test/backlog1068-sweep-reanchor.test.ts` (③b), `test/memory-partition-key-mint.test.ts` (the reverse migration, the forwarded incident), `test/backlog2446-mount-failed-notice.test.ts` and `test/backlog4590-s2-capture-and-planes.test.ts` (the cause set); three fixtures that hand-wrote an account now open the store first (`test/memory-layout-migration.test.ts`, `test/memory-scope-enumeration.test.ts`, `test/design178-v2a-effective-memory-scopes.test.ts`).
|
|
70
|
+
|
|
71
|
+
### The workflow completion notifier's payload carries optional `scope` — the run row's own isolation scope (`WorkflowRun.scope`), read from the tool's one scope derivation (#4595; additive; behavior change: none for readers that ignore the new member; closed sets: none; exports: none; wire: `WorkflowCompletionNotifier.notify`'s input gains optional `scope?: string`) (@server)
|
|
72
|
+
|
|
73
|
+
- **Rule.** Every notification `WorkflowCompletionNotifier.notify` receives now carries `scope`: the isolation scope the run is filed under (the scope of the identity the work runs as, else the mount's scope, else the anonymous scope `"default"` — the same `runScope` derivation the run row, journal, resume claim, and launch receipt's journal coordinate read). Additive: hosts that route workflow completion notices per scope can read `scope` directly without looking up the run row.
|
|
74
|
+
- **Pins.** `test/backlog4595-workflow-notifier-scope.test.ts` (S1 mount scope on completed leg; S2 scope-less mount defaults to `"default"`; S3 failed leg carries `scope`; S4 launch receipt's journal locator asked under `"default"`, never `""`); `test/backlog4400-member-outcome.test.ts` (W7 control key list).
|
|
75
|
+
|
|
76
|
+
### An MCP server entry that declares `callerMeta: true` is told who is calling: `_meta["sema/caller"]` = `{ taskId, runId, rootSessionId, parentTaskId? }` on every `tools/call`, `resources/read` and `prompts/get` the engine sends it for a leg (#2828; additive)
|
|
77
|
+
|
|
78
|
+
- **Rule.** One engine-owned key, minted by the one `_meta` writer from values the engine already mints for the leg's own frames: `taskId` = the leg's `TaskResult.taskId` / `task_progress.taskId` as that run reads it (in this order: the leg's registry row id, else the host's `taskId`, else the leg's session id — so two runs of a session handed the same `taskId`, or none both times, carry the same), `runId` = this run's `TaskResult.runId` (new on every run, a resume included), `rootSessionId` = the delegation tree's root session (the leg's own on a top-level leg), `parentTaskId` = the spawner's task id (`task_progress.parentTaskId`), present only on a leg spawned under a known task. A child — foreground, background (its `a…` registry id is its task), a workflow member — carries its own. One record per leg and run, built at its prepare (the tool listing carries none): every attempt of one call carries the same, parallel calls of one leg carry the same (told apart by `sema/toolUseId`), two legs on one pooled connection each send their own.
|
|
79
|
+
- **Opt-in, conservative default.** New `McpServerSpec.callerMeta?: boolean`; absent or `false` sends nothing, and the `_meta` is byte for byte what 7.70.0 sends. Any other value (`"true"`, `1`, `null`, an object) refuses the entry with `config.invalid_argument` where entries are judged (the preparation door refuses the run; `materializeMcpTools` refuses that server alone; `judgeMcpEntryDeclarations` asks it after `sessionMetaKey`). A dial with no leg (the library entrance, the no-run probe) has no caller: nothing rides there.
|
|
80
|
+
- **Session ids reach an opted-in server.** A server that declares `callerMeta` reads session ids through two members, with or without `sessionMetaKey`. Through `taskId`, it reads the own session id of every leg whose task id is its session id: a foreground child, a workflow member handed no `taskId`, a top-level leg handed none. Through `rootSessionId`, it reads the tree root's session: a top-level leg's own, and a directly started workflow member's own. A deployment that must not let a server learn any session id does not declare `callerMeta` for it.
|
|
81
|
+
- **Not carried.** No principal, path, model, agent type or name. No declaration and no handed request meta can write `sema/caller`: a `sessionMetaKey` under `sema/` is refused, and a `tool.call` handler's request meta is a record under its own `sema/requestMeta` key (a host transport forwards what it is handed, as it does every member).
|
|
82
|
+
- **Known (the record mirrors the leg's own identity, so it shows in `TaskResult.taskId` the same way).** A resume handed a config without the parked leg's host `taskId` reads as a host naming none: the resumed leg's task id — and so `sema/caller.taskId` — is its session id (pinned, C7b); a resume handed the same `taskId` keeps it (C7a). A parked child resumed by a host directly (without its spawner's internals) names no parent and is its own root; a durable background agent revived from a row that recorded no parent link (the row records one only when the spawner's task id differs from its session id) keeps its root and names no parent — as its notices and `task_progress` frames do (read from code, not pinned).
|
|
83
|
+
- **Downstream.** @desktop @computer-use: the `turnId` read from `sema/requestMeta` was never minted by the engine — read `sema/caller.runId`; declare `callerMeta: true` on the entry. @server: zero action (the remote bridge passes `params` through). @settings-schema: the MCP entry schema needs `callerMeta?: boolean` (a strict schema refuses the unknown member).
|
|
84
|
+
- **Pins.** `test/backlog2828-mcp-caller-meta.test.ts` (C0 absent / false byte-equal to before; C1 top-level, parallel calls and a read; C2 foreground child; C3 background child; C4 workflow member with and without a host task; C5 a later run of one session; C7a / C7b a resumed parked leg handed / not handed its task id; C6 a request-meta member named `sema/caller` stays in the request meta; L1 – L3 the leg seat, a shared pooled connection, the library entrance; J / D the judge, the door, the root judge's order, the library entrance; K the mint).
|
|
85
|
+
|
|
86
|
+
### A mod package whose `plugin.json` or `hooks.json` carries members the reader does not read (a plugin's skills, commands, agents, MCP servers, an editor's `$schema`, the classic `hooks`) now loads, each such member told once by name; a registration's provenance label is one line of 1 to 256 characters (#5243; behavior change: a package refused before now loads — a wider acceptance; a provenance label with a control character or a line break, an empty one, or one longer than 256 characters now refuses the prepare — a narrowing; closed sets: `EngineNoticeCode` +1 `mods.package_key_unread`; exports: +1 type `ModPackageUnreadKey`, `ModPackageRegistration` gains the optional `unread`; wire: the notice code)
|
|
87
|
+
|
|
88
|
+
- **Rule.** `loadModPackage` reads, of each file, the members it takes (`plugin.json`: `name`, `version`, `description`, `author`; `hooks.json`: `modules`, `contract`, `uses`, `description`) and refuses the package, naming the member, for one it must not take: `tier`, `provenance`, `seat`, `options`, `budgetMs` in either file (the seat's facts are the host's argument) and `surface` in `hooks.json` (a surface module is mounted by the client that renders it). Any other member is not read: the package loads without it, the member is listed on the registration's `unread` (`{ file, key }`, present iff there is one) and told as one `mods.package_key_unread` notice (audience `operator`, attention `inform`; `detail: { package, file, key }`) to the process's notice seat (`setDefaultEngineNoticeSeat`), when the package is read. The member's name is spelled as a foreign line (one line, up to 60 characters, then the cut mark); its value is never read into either. A package refused for any reason tells only its refusal. Before: any member outside the four of each file refused the whole package (`carries "<key>", which a mod package does not state here`), so a plugin that carried both skills and a mod package could not have its mod package loaded. The reference ignores unrecognized manifest fields at load time and warns in its validator; this engine says each one instead of ignoring it.
|
|
89
|
+
- **Provenance.** The admission screen (every seat: deployment, task, a skill's) takes a registration's `provenance` as one line of 1 to 256 characters (code points) with no control character (C0, DEL, C1) and no line or paragraph separator; anything else refuses the prepare (`config.mods_invalid`) saying which way — `holds a control character or a line break`, `is empty`, `is <n> characters long` — and never quotes the value. Nothing narrower: space, non-ASCII letters, `@`, `:` and format characters are taken as given. Before: only "is it a string" was judged, so a line break, a terminal escape or 4096 characters reached the receipt and the `mods.registration_refused` notice as written.
|
|
90
|
+
- **Consumers.** @server @client-core: a label you mint for `provenance` (`plugin:<name>@<market>`, `deployment`) is taken as before; one past 256 characters or carrying a line break now refuses the prepare. A probe or pin expecting an extra manifest member to refuse the package (`which a mod package does not state here`) turns red and re-pins on the load and the notice; the host-fact refusal now reads `carries "<key>", which is the host's to give …`. A table typed `Record<EngineNoticeCode, …>` gains a row. The kernel contract number is unchanged (a package written against it loads as before).
|
|
91
|
+
- **Pins.** `test/backlog5243-mods-reader.test.ts` (U1 – U12 the manifest forms: known members only, one, ten, a large value, a control-character name, a 5000-character name, `hooks.json`'s own, a member written twice, a plugin with skills / commands / agents / MCP servers, the refused members, a refused package tells nothing, `surface` in `plugin.json`; R1 the real loading path on the deployment seat; P1 – P11 the provenance label's forms, bad states and seats).
|
|
92
|
+
|
|
93
|
+
### A host handing `spendParent: null` (or any non-object) is refused with `config.invalid_argument` naming the member (it was a bare `TypeError` for `null`) (#5279; behavior change: coded refusal instead of `TypeError` for `null`, and `detail.field` names the member instead of `<member>.seat` for other non-objects — a function that carries `seat` / `link` members is now refused too, where 7.70.0 read the members off it (read in the code, not run); closed sets: none; exports: none; wire: none)
|
|
94
|
+
|
|
95
|
+
- **Now.** `spendParentOf` / `spendNodeMint` (`src/core/spend-account.ts`) refuse a `spendParent` that is not an object — `null` (a bare `TypeError` reading `.seat` of it before), a string, a number, a boolean — with `config.invalid_argument`, `detail.field` the member handed (`RunInternals.spendParent` at a run and its task-start verdict, `RunWorkflowOptions.spendParent` at a workflow) and a message that says a `{ seat, link }` pair or nothing is wanted; a string value is described, not quoted. `undefined` is still "no parent", a root of its own account. A non-object other than `null` was refused before too, with `detail.field` `<member>.seat`; it now names the member itself.
|
|
96
|
+
- **Pins.** `test/backlog5279-spend-parent-null-refused.test.ts` — the two functions on `null`, a string, a number and a boolean (code, `detail.field`, the sentence, the string not echoed), and, through a real Runner, the run and its task-start verdict on the same four values (`R-null` / `R-string` / `R-number` / `R-boolean`: `failed`, `config.invalid_argument`, field `RunInternals.spendParent`, input `deps`, the verdict equal to the terminal's detail) with the member left out running (`R-undefined`). The workflow door (`RunWorkflowOptions.spendParent`) and the composition allowance (`src/agents/composition-allowance.ts`) read through the same function and are not pinned on this input.
|
|
97
|
+
|
|
98
|
+
### The URL rule ("IMPORTANT: You must NEVER generate or guess URLs …") composes on the full prompt shape only, as the reference sends it — the lean shape (every model whose traits hold `lean_prompt`, which a model declaring no traits receives) no longer carries it (#4586, #4297 slice S9, ruling C-R1579 note 1 ②; behavior change: the rule (two sentences, 215 characters, 217 with its separator) leaves every lean-shape system prompt, open to veto @server @cli @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
99
|
+
|
|
100
|
+
- **Rule.** `core/security.url-safety` has one variant, gated on the shape's trait (`noneOf: ["lean_prompt"]`): the reference's full-shape opening carries the sentence (cli321.js B[21173295,21173630) `NNr`) and its lean body does not; the corpus holds it once. The text and the root export `URL_SAFETY` are unchanged; zh-Hans: no new rendering. The note that the rule was "never gated on a presentation choice" is withdrawn.
|
|
101
|
+
- **Who sees what.** Every model in the lean shape — every reference model, and a third-party or unknown model that declares no traits: the sentence is gone, and with it the push-back on links to documentation, specifications or upstream issues. `promptLean: false`: as before, right after the cyber-risk line. The constitution band stays locked: no overlay removes or moves the rule where it composes.
|
|
102
|
+
- **Consumers.** A probe that pins a lean-shape prompt's bytes or counts the locked sections re-pins (the earlier fixtures here read the rule back after the cyber-risk line, `beforeUrlRuleShape`).
|
|
103
|
+
- **Pins.** `test/backlog4586-url-rule-shape.test.ts` (every captured model, five shapes, through the Runner; zh-Hans; the gate is the trait; the words unchanged); `test/backlog4297-prompt-model-fit-baseline.test.ts` ① A / C / E / F / H; the prompt golden fixtures re-frozen.
|
|
104
|
+
|
|
105
|
+
### A leg with nothing to act through gets no scratchpad section, no network-egress line and no extra-roots lines — no tool of it reaches a directory or the network (#4913; behavior change: the environment block of a tool-less or finishing-only leg whose host states `envFacts.scratchpadDir` / `envFacts.egress` or extra roots; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
106
|
+
|
|
107
|
+
- **Rule.** The environment block's builder reads the leg's facts less those that say what a tool may reach (`envFactsForFace`, src/prompts/default.ts) when the catalog's one reading says the leg has no tool to act through (`actingToolsAbsent`): the scratchpad, the egress word, and the extra write and read roots (`Additional working directories:` / `Additional read-only directories:` — the scratchpad is listed among the write roots, so leaving its section out alone would still name it). Every other environment line renders as before, and a leg with a tool to act through keeps all of them.
|
|
108
|
+
- **Pins.** `test/backlog4913-answering-env-lines.test.ts` (each egress word; through the Runner).
|
|
109
|
+
|
|
110
|
+
### The sandbox instructions say what the network side does with a host in the reference's words — "Attempt requests and read the error rather than predicting whether a host is reachable; denied connections are reported in a `<sandbox_violations>` block explaining the reason" — and no longer that a host outside the allowed list "is refused" (#4660; behavior change: one line of the sandbox instructions frame; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
111
|
+
|
|
112
|
+
- **Rule.** One line in both list forms (cli321.js B[22214419,22214579) `Eo`, its non-Windows `_t` clause B[22186437,22186534)). Since 7.69.0 (#4046) the host can be asked about a host outside the lists (`askHost`) unless the requirement lists strictly; the reference's sentence claims no refusal, so it is true either way, and the ticket's split by list form is not taken. `strictAllowlist` stays in the Network JSON.
|
|
113
|
+
- **Divergence `sandbox-egress-proxy-claim`.** The reference's first sentence, "Network egress goes through a filtering proxy.", is not carried: the engine does not hold the sandbox's mechanism (the host's adapter keeps the boundary; the proxy ports are options it passes through) and cannot state it for the adapter. The closing clause "; a file the sandbox denies is reported the same way." is this engine's: the block reports the violation lines the environment records, files as hosts (less what `ignoreViolations` leaves out, at most 50).
|
|
114
|
+
- **Pins.** `test/backlog4660-sandbox-network-line.test.ts` (the frame head in both list forms; the clauses; a denied file in the same block). KL-4660-a is closed (its row removed).
|
|
115
|
+
|
|
116
|
+
### A stop-family hook's block is worded `<event> hook feedback:` with the reason on the next line — the reference's first segment for its four events — in place of `<event> hook stopped continuation: <reason>` (#5059; behavior change: the text the model reads after a Stop / SubagentStop / TeammateIdle / TaskCreated / TaskCompleted block, open to veto @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
117
|
+
|
|
118
|
+
- **Rule.** `stopFamilyBlockText` takes the reference's form for the whole family (`a$r` / `DOo`, cli321.js B[10650520,10650646)); "hook stopped continuation" is the reference's form for a hook that ends the run, which a stop-family block is not. SubagentStop speaks as `Stop`, as before. The additional-context text keeps its form (the reference's own). The model sees other words: a probe that pins the old wording re-pins.
|
|
119
|
+
- **First segment only.** The first segment is the same as the reference's (measured by @test on the reference's 2.1.321 binary). The reference also sends a second segment, a system-role `Stop hook blocking error from command: "<cmd>": <reason>`; this engine does not send it (#5325), so the whole is not verbatim.
|
|
120
|
+
- **Pins.** `test/backlog5059-hook-feedback-form.test.ts` (five events); `test/stop-hook.test.ts`, `test/backlog3781-stop-request-closure.test.ts`, `test/backlog3781-stop-seat-outcomes.test.ts`, `test/orch-s3-0-teammate-hooks.test.ts` re-pinned.
|
|
121
|
+
|
|
122
|
+
### A stop-family block's reason has its `<` written `<` before it reaches the model (#5315; behavior change: the text the model reads after a Stop / SubagentStop / TeammateIdle / TaskCreated / TaskCompleted block whose reason holds a `<`, open to veto @cli @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
123
|
+
|
|
124
|
+
- **Rule.** `stopFamilyBlockText` writes each `<` of the reason as `<`, as the reference does there (measured by @test on its 2.1.321 binary); `>` and every other byte stay, and a reason with no `<` is carried byte for byte. One function for all five events. A reason can no longer open or close a tag (`</system-reminder>`) in the frame it rides in.
|
|
125
|
+
- **Who re-pins.** A probe that pins a reason holding `<` passed through verbatim (@cli @server @test) re-pins to the escaped form.
|
|
126
|
+
- **Pins.** `test/backlog5059-hook-feedback-form.test.ts` (the five events × `<system-reminder>`, an already-escaped `</system-reminder>`, `a < b`, a reason with no `<`; and through the Runner, a Stop block whose reason closes a reminder tag).
|
|
127
|
+
|
|
128
|
+
### Two prompt-face corners the reference reads otherwise (#5311; behavior change: the Bash card of a plan resumed from an unarmed auto, and the silent-turn reminder's count after a steer on a resume that carried no words; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
129
|
+
|
|
130
|
+
- **② The shell-first card reads a plan's entry mode as it runs on the leg's deployment.** The reference keeps its auto under a plan only while its classifier is active (`nu`, cli321.js:276990): it reads the state now, not the history. A leg resumed in a plan entered from `auto` on a deployment with no classifier face runs that `auto` as `default`, so it now gets the generic card (a deployment with a face reads it as `auto`, as before). The controller answers the entry word folded against the arming facts (`PermissionModeController.prePlanModeObserved`).
|
|
131
|
+
- **① The silent stretch reads a leg no person's input opened as the reference does.** On a resume whose continuation carries no words (or a wake), a steer that lands mid-run is the leg's first person's-input row by the harness's stamp; the reader now treats it as the steer it is (the reference's walk, `d3r`, breaks on a person's prompt only), and the stretch goes on across it. Only the reader changes: the leg's opening — whether its opening row is a person's-input row, and when — is set where its opening prompt is sent (a leg that ends before it, or a delegated child, reads as before). **Not covered (the stamp stays, as ruled):** a steer stamped as the first input of an *earlier* leg that no person's input opened still breaks a later leg's stretch — the stored row cannot tell it from that leg's opener; and the running leg's rows are told from earlier ones by the clock, so an earlier row in the very millisecond the leg opened reads as the running leg's (KL-5311-a); and the same reading, with the clock rolled back or skewed so that an earlier leg's real opening row is stamped at or after this leg's opening, skips that row too and keeps walking back — the count can then run high and remind once more than the reference would (KL-5311-b; read in the code, not measured).
|
|
132
|
+
- **Pins.** `test/backlog4566-bash-shell-first-card.test.ts` ④b (two rows without a classifier face); `test/backlog5311-silent-stretch-opening.test.ts` (the reader cell by cell; through the Runner, a resume with no words and one with the person's words).
|
|
133
|
+
|
|
134
|
+
### The tool model gate knows a Claude model however its id is spelled — a Bedrock region prefix, `@<date>`, `-v1:0`, a `[1m]` window, a dotted version — and trims the default task scaffold for it as for the plain id (#4567, #4297 slice S8; behavior change: the default TodoWrite / Task* tools no longer mount for those spellings of a model at or above its floor, open to veto @test; closed sets: none; exports: none; wire: none)
|
|
135
|
+
|
|
136
|
+
- **Rule.** `isModelGatedForClass` reads an id's family and version through the one reading of a Claude model id (`parseClaudeModelId`, the reference's `Cd` steps), not a regex of its own; `modelIdTail` moves to that module (`src/brain/claude-model-id.ts`). The floors table and the exact-id rows are unchanged; an id the reading does not parse stays open (fail-open, as before).
|
|
137
|
+
- **Before → now** (measured, this machine; base `892eb8011a` and `v7.70.0` read the same): `us.anthropic.claude-opus-5-v1:0`, `anthropic.claude-opus-4-8-v1:0`, `claude-opus-5@20260101`, `claude-opus-4-8[1m]`, `Claude-Opus-4.8`, `global.anthropic.claude-fable-5-v1`, `bedrock/us.anthropic.claude-sonnet-5-v1:0`, `claude-mythos-5-latest` — not gated → gated. Unchanged: `claude-sonnet-5-20260301` gated; `claude-opus-4-7…` in any spelling, `claude-opus-5-proxy`, `xx.anthropic.claude-opus-5-v1:0` and `claude-3-5-sonnet-20241022` not gated.
|
|
138
|
+
- **A dated id's date is no version.** `claude-opus-4-20250514` (Opus 4, version 4.0) was gated: the regex read its date as a minor version (4.20250514 ≥ the 4.8 floor). The reading drops the date, so it stays open; the scaffold mounts for it again. `claude-opus-4-8-20260101` stays gated. (Measured on base and head, this machine.)
|
|
139
|
+
- **Where the reading's grammar differs from the old regex** (measured, base → head): `claude-opus-5-fast`, `claude-5-sonnet` and `" claude-opus-5 "` (outer whitespace) not gated → gated; `claude-opus-4-8-1`, `claude-opus-4-008`, `claude-opus-100` (a version of three parts or of three digits) and `"my gateway/claude-opus-5"` (whitespace inside) gated → not gated. No reference model has any of these ids.
|
|
140
|
+
- **Pins.** `test/tool-model-gate.test.ts` (#4567 cell: eight spellings gated, seven not).
|
|
141
|
+
|
|
142
|
+
### The environment block tells the model which model it is and its knowledge cutoff in the reference's words — "You are powered by the model <id>." and "Assistant knowledge cutoff is <cutoff>." (#4569, #4297 slice S6; behavior change: two lines of every model's environment block; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
143
|
+
|
|
144
|
+
- **Rule.** `core/environment.model` and `core/environment.knowledge-cutoff` take the reference's no-marketing-name arm (cli321 `zLo` / `qLo`): the slot is the model's id (`Model.id`), never `Model.name` — on a server lane that is a catalog key, which is not a name to tell the model. The cutoff line still renders only when the deployment declares a cutoff for that id (`RunnerDeps.modelKnowledgeCutoffs`). zh-Hans: 「驱动你的模型是 <id>。」「助手的知识截止日期是 <cutoff>。」.
|
|
145
|
+
- **Before → now.** "You are running as model: claude-opus-5-5" → "You are powered by the model claude-opus-5-5."; "Knowledge cutoff: 2026-01" → "Assistant knowledge cutoff is 2026-01.".
|
|
146
|
+
- **Not the reference's carrier (divergence `model-line-in-environment-block`).** The reference sends the two sentences, joined by a space, as a `model` session attachment it re-sends when the model changes; here they stay two lines of the environment block.
|
|
147
|
+
- **Golden and snapshot tests downstream** (@server @cli @test): every model's environment block moves by these two lines; a fixture or a probe that greps "You are running as model:" or "Knowledge cutoff:" reads the new sentences.
|
|
148
|
+
- **Pins.** `test/backlog4569-model-line.test.ts` (the texts, the builder, the Runner with an id and a display name that differ, a cutoff for another id, zh-Hans); the prompt golden fixtures re-frozen; the #4564 and #4568 fixture pins read the old line back (`beforeModelLine`, `test/backlog4568-prompt-strip.ts`).
|
|
149
|
+
|
|
150
|
+
### The reference's per-model sections reach the models it gives them to, in either prompt shape, on the reference's own gates — the turn-updates line, "Writing for the user", the Opus 5 reduced-delegation sentence and the Haiku 5.5 early-stopping text arrive; delivering work, corrections and autonomy move to the reference's gates; the classic shape's three adapted fable lines retire (#4568, #4297 slice S2b; behavior change: prompt text for every model that declares a re-gated trait, and the classic shape of every model; hard-breaking: the `prompt.assembled` block `behavior.fable-classic-guidance` is gone, five section variant ids are renamed, `fable5Model()`'s prompt bytes move, `catalogText("core/simple.communicating")` returns another variant, open to veto @server @web-admin @test; closed sets: none; exports: none; wire: three new section ids on `prompt.assembled`, one block id removed)
|
|
151
|
+
|
|
152
|
+
- **Rule.** A section goes to the models the reference gives it to: each variant is one arm of the reference's gate, written as the trait or bundle that arm reads, and none of them reads the prompt shape — the reference's gates do not (cli321 `aFr` / `ETn`). Only the lean communicating line, action caution and the JSON parameter sentence keep `lean_prompt`: the reference keeps the first two to its lean shape; its JSON parameter sentence rides another switch (`era()`, a remote flag), and this engine keeps the lean-shape gate it already had for it.
|
|
153
|
+
- `core/simple.communicating`: the reference's turn-updates arm (`turn_updates`, read before the fable arm: cli321 `XLr`), then the fable arm (`fable_5_mitigations`, either shape), then the lean line. The fable text loses "Write code that reads like the surrounding code: match its comment density, naming, and idiom." — the reference removed it from that arm.
|
|
154
|
+
- `core/simple.delivering-work`: `bison_cairn` or `fable_5_1_prompt_bundle` (cli321 `T3i` / `NVe`). `core/simple.corrections`: `larch_cistern` (`A3i`). `core/simple.autonomy`: `fable_5_mitigations` or `amber_astrolabe` (`INr`).
|
|
155
|
+
- New: `core/simple.reduced-delegation` (rank 267.1, `opus_5_prompt_bundle`, cli321 `fTn` / `mPr`), `core/simple.early-stopping` (rank 267.3, `haiku_5_5_early_stopping_guidance`, `kNr` / `SNr`), `core/simple.writing-for-user` (rank 269.5, `fable_5_1_prompt_bundle`, `bNr` / `R3i`) — the reference's order between corrections and autonomy. The first two need something to act through, as finishing work does.
|
|
156
|
+
- `core/simple.pronouns`, `core/simple.context-management` and `core/simple.act-dont-rederive` go to every model in either shape (the reference's `gNr` / `hFr` / `ZNr` have no shape gate); context management keeps its compaction admit.
|
|
157
|
+
- Retired: `core/behavior.fable-classic.final-message`, `.autonomy`, `.tool-json` and their section `core/behavior.fable-classic-guidance` (rank 448) — a rewrite of the old Fable guidance; the classic shape now gets the reference's own texts. KL-1604m0-c closes.
|
|
158
|
+
- **Who receives what** (each `REFERENCE_MODEL_PROMPT_TRAITS` row minted as a host mints it; measured through the real Runner, UTF-8 bytes against the tree before the change):
|
|
159
|
+
- Fable 5 / Mythos 5 / `fable5Model()`: no longer delivering work or corrections (the reference does not send them these models); the fable communicating text one sentence shorter; lean −3,373 bytes.
|
|
160
|
+
- Fable 5.1 / Mythos 5.1: the turn-updates line in place of the fable communicating text, delivering work, "Writing for the user", autonomy; corrections no longer; lean −1,598 bytes.
|
|
161
|
+
- Opus 5: delivering work, corrections, the reduced-delegation sentence; lean +3,392 bytes. Haiku 5.5: the early-stopping text; lean +2,792 bytes.
|
|
162
|
+
- The classic shape (`promptLean: false`) of every model: +926 bytes (pronouns, context management, act-don't-rederive); the eight models above, their sections on top.
|
|
163
|
+
- Unchanged, byte for byte, in the lean, minimal, code-role and zh-Hans shapes: Fable 5.2, Mythos 5.2, Opus 5.5, Sonnet 5.5, Opus 4.8 and every older Claude row, every undeclared or third-party model (the reference gives them none of these sections). Every model's tool descriptions, in every shape. The minimal form, except where it meets the classic shape: `promptForm: "minimal"` with `promptLean: false`, or a model that declares traits without `lean_prompt`, gains context management (+288 bytes, `core/simple.context-management#default`), which the reference serves in either shape.
|
|
164
|
+
- **Hard-breaking (open to veto @server @web-admin @test).**
|
|
165
|
+
- The `prompt.assembled` block `behavior.fable-classic-guidance` is gone (a consumer of the block view that listed it no longer sees it; the classic-shape fable texts now sit in `harness.context`).
|
|
166
|
+
- Five section variant ids the manifest reports are renamed, their old ids naming gates that no longer hold: `core/simple.pronouns`, `core/simple.context-management`, `core/simple.act-dont-rederive` `lean` → `default`; `core/simple.delivering-work` `fable` → `bison` / `fable-5-1-bundle`; `core/simple.corrections` `fable` → `larch`; `core/simple.autonomy` gains `amber`; `core/simple.communicating` gains `turn-updates` (a new id, first in the section: the models that hold the `turn_updates` trait — Fable 5.1 / Mythos 5.1 — read it in place of the `fable` text they read before; `fable`, `fable-answer` and `lean` keep their ids). A reader of `prompt.assembled` that tells which text a model got by a section's `variant` reads the new ids — five renamed, two gained (`amber`, `turn-updates`) — and a reader that tells a Fable 5.1 / Mythos 5.1 model's communicating text by the id `fable` no longer finds it there.
|
|
167
|
+
- `fable5Model()` prompt bytes move (above). `catalogText("core/simple.communicating")` with no variant named returns the turn-updates text (the first variant, as the reference reads that arm first).
|
|
168
|
+
- An overlay that targets the retired section `core/behavior.fable-classic-guidance` (or one of its three messages) no longer applies. A center artifact carrying one is refused whole (`code: "requires"`: the engine does not meet the artifact's requirements; measured by the review leg on base and head — a `drop` and a `replace` taken before, both refused now; a `drop` of `core/simple.corrections` still taken). A deployment overlay raised through `prompt.compose` fails the overlay check: the run warns and that handler's contribution is not applied (read in `src/core/mods/stations.ts`, not measured). `gate:wire` does not see this face. Who turns red: a center publisher (@web-admin) or a center lane (@server) that ships such an overlay. The fix is to remove it: the texts it changed are gone. In the classic shape the reference's own fable texts now stand in their place (`core/simple.communicating`, `core/simple.autonomy`); the classic JSON line has no successor there, because `core/simple.tool-param-json` composes on the lean shape only.
|
|
169
|
+
- **Not the reference's words (divergences).**
|
|
170
|
+
- `reduced-delegation-name-free`: the reference's sentence is "Do not use the Agent tool, workflows, or deep-research unless the user, a CLAUDE.md file, or a skill asks for it". Here it reads "Do not delegate to subagents or run workflows unless the user, a project instructions file, or a skill asks for it." — the delegation tool and the instruction file are named by the deployment (catalog text fills no slot), and there is no research tool to name.
|
|
171
|
+
- `early-stopping-undo-claim`: the reference's fourth early-stopping paragraph opens "The user can inspect and undo edits to files in the working tree. Such edits are not hard-to-reverse or outward-facing actions, …". Here it opens "Edits to files in the working tree are not hard-to-reverse or outward-facing actions, …" — whether the person can undo them is the host's fact (a host that offers a file rewind), which the engine cannot know; the rest of the text is the reference's.
|
|
172
|
+
- **Golden and snapshot tests downstream** (@server @cli @test): a fixture of a declared model's prompt, or of any model's classic shape (the minimal form under the classic shape included, +288 bytes), moves; re-freeze it against these texts.
|
|
173
|
+
- **Pins.** `test/backlog4568-reference-gates.test.ts` (① the per-model table, 33 models × 5 shapes; ② against `test/backlog4568-baseline-golden.json`, captured on the tree before the change: tool descriptions everywhere, the prompt outside the moved messages everywhere, the whole prompt where the table moves nothing; ③ every carried text against the reference's, read out of the anchor corpus into `test/backlog4568-reference-texts.json`; ④ order; ⑤ one session, three legs, one prompt prefix; ⑥ the retired block). `test/backlog4297-prompt-model-fit-baseline.test.ts` cells B – G and ② ③ flip as their titles said; `test/backlog4564-newest-model-sections.test.ts` hands the cells this change moves to the pin above; the three prompt golden fixtures re-frozen.
|
|
174
|
+
|
|
175
|
+
### A checkpoint row below the row format (v10) is refused as a retired seat — the numeric version ladder that read such a row by its number is gone (#1333; behavior change: a refusal of rows 7.48.x or earlier parked; hard-breaking: two — the refusal, and the root barrel loses six constants `CURRENT_CHECKPOINT_VERSION`, `RESOURCE_CHECKPOINT_VERSION`, `TOKEN_CHECKPOINT_VERSION`, `ORG_ADMISSION_CHECKPOINT_VERSION`, `F012_CHECKPOINT_VERSION`, `REAL_APPROVAL_CHECKPOINT_VERSION`, open to veto @server @cli @client-core @test; closed sets: `CheckpointErrorReason` −`real_approval_forged`, −`read_face_forged` (no producer left), `CheckpointFeature` −`baseline`; exports: −6, none added; wire: a `seat_retired` refusal where a row below v10 was resumed)
|
|
176
|
+
|
|
177
|
+
- **Rule.** Every mint since 7.49.0 stamps row format 10 with its reader-requirement words and digest. A row with a lower `version` — or none, read as 0 — was parked by 7.48.x or earlier (or put into the store by a host), and is now read by no rule: the row's judge refuses it `checkpoint.unsupported_version` / `seat_retired` (`terminal: false`), after the `execution_recorded` arm and before every other. The row stays `pending` and byte-identical, nothing is consumed, and the way out is the one the arm's sentence already gives — expire it and run the work again; the diagnostic names the row's format. Listing still lists such a row, its verdict now `seat_retired` (the judge's); `expire` takes it as before. Not read "by its words" instead: such a row carries no list and no digest, so reading it by words would drop the downgrade checks the ladder carried.
|
|
178
|
+
- **What went with the ladder.** The version conditions of the arms that read a row by its number (the binding rung's missing input hash, the frozen-chain pair, the real-approval bit and the read-face section) — each check itself stays, unconditionally, for a row at the format, so a v10 row is judged exactly as before (measured: the #959 matrix, 22 491 rows at or above the format, byte-equal to the previous rungs); the pre-tool-binding input-hash arm (`reading_changed` on a row below v10); the two `*_forged` reasons, which a row read below the format earned (a row whose `version` is not a number — `NaN`, a word — was never below the format and now meets every check, the four above included: a tightening; inferred no mint writes one); the versions of the feature table (`CHECKPOINT_FEATURES` keeps its rows' origins and write obligations, its `baseline` row is gone). The identity re-key still leaves a row below the format unstamped.
|
|
179
|
+
- **Hard-breaking (open to veto).** (1) A row below v10 that a 7.49.0 – 7.70.x engine resumes is refused by this one (not every such row resumed there: from 7.63.0 a tool approval below v10 carrying an input hash already read `reading_changed`). **Rolling deployments:** a row an old worker could still have finished is sent to expiry by a new one — drain those rows on a 7.70.x-or-earlier worker before the last one goes, or expire them. @server: does your own store hold pending rows below v10, and does its expiry path take them (inferred, not measured — a question)? (2) The root barrel no longer exports `CURRENT_CHECKPOINT_VERSION`, `RESOURCE_CHECKPOINT_VERSION`, `TOKEN_CHECKPOINT_VERSION`, `ORG_ADMISSION_CHECKPOINT_VERSION`, `F012_CHECKPOINT_VERSION`, `REAL_APPROVAL_CHECKPOINT_VERSION` (each named one former rung of the ladder; no rule reads such a number any more). Kept: `MAX_SUPPORTED_CHECKPOINT_VERSION` (10 — the one format every mint stamps, the ceiling and now the floor) and `checkpointVersionOf`. The store module (`src/core/checkpoint-store.ts`, not the package root) also drops `BINDING_CHECKPOINT_VERSION` and `FACE_CHECKPOINT_VERSION`, and `CHECKPOINT_FEATURES` rows lose their `version` member (the `baseline` row goes). A program that compared a row's version with one of the six reads `MAX_SUPPORTED_CHECKPOINT_VERSION` instead: below it is refused, at it is read. @server: does a checkpoint table of yours read any of the six (inferred — a question)? @cli @client-core @test: a table keyed on `CheckpointErrorReason` loses `real_approval_forged` and `read_face_forged`.
|
|
180
|
+
- **Pins.** `test/backlog959-checkpoint-feature-table.test.ts` (the parity matrix: rows at or above the format against the previous rungs, rows below at the floor; the floor reads no segment; the floor after `execution_recorded`; the eight ladder constants gone from the store module, the six root ones from the barrel); `test/backlog1333-row-format-floor.test.ts` (a real Runner resuming a hand-built v9 row: refused, the row still there, the listing verdict and the refusal's full text; a non-numeric version judged at the format).
|
|
181
|
+
|
|
182
|
+
### Four notice codes ask only as much attention as their facts do — two whole codes move to `inform`, two codes split where their facts asked different things: `mods.registration_refused_deployment` (the operator's) and `task.tool_turn_unrecovered` (the person's, `act`) (#5318; behavior change: four codes' attention or code on some frames, below; hard-breaking: five, below, open to veto @cli @client-core @server @test; narrowing: two codes, below; widening: none; closed sets: `EngineNoticeCode` +2 (+`mods.registration_refused_deployment`, +`task.tool_turn_unrecovered`) with their audience, attention and minter rows; `NOTICE_CODE_LINEAGE` +2 rows (17 → 19); exports: +1 (`MODS_REGISTRATION_REFUSED_DEPLOYMENT_CODE`, from the root and from `@sema-agent/mods-kernel`), none removed; wire: two notice codes, two narrowed codes, two attention rows)
|
|
183
|
+
|
|
184
|
+
- **Rule.** One code, one fact, one attention (the attention table's own rule: a code with one arm that asks the person to act is `act` as a whole; arms that need different words are different facts). Where every arm of a code is a posture nothing is owed on, the code is `inform`; where its arms differ, the arm that asks something takes its own code, the old spelling keeps the arm its sentence already says, and the attention stays a property of the code — no frame carries a word of its own (the throat still stamps the catalog's).
|
|
185
|
+
- **Now, code by code** (before → now; audience, attention):
|
|
186
|
+
- `memory.hold_opened` (user, act → **inform**): held instruction entries commit by themselves once every delegation settles clean, and each ending is its own code (`memory.hold_released` audit, `memory.hold_disposed` act, unchanged).
|
|
187
|
+
- `memory.capture_opted_out` (user, act → **inform**): its three origins — `standing-record`, `delegation-floor`, `fork-origin` — are postures the session inherited; the person's own switch is `memory.capture_switched_off` (audit) since 7.70.0. Message, `detail` and dedup unit unchanged.
|
|
188
|
+
- `mods.registration_refused` (user, act) **narrowed** to the task seat (`seat: "task"`, a skill's registrations included) → **`mods.registration_refused_deployment`** (operator, act): a registration of the deployment seat (`RunnerDeps.mods`) not mounted — the registration and its remedy are the operator's. The same message, `detail` and frequency; root export `MODS_REGISTRATION_REFUSED_DEPLOYMENT_CODE` beside `MODS_REGISTRATION_REFUSED_CODE`.
|
|
189
|
+
- `task.tool_turn_incomplete` (user, inform) **narrowed** to dropped calls (`truncated` / `unnamed`) whose turn's own message says what became of them — `outcome: "reissued"` (the model was asked to re-issue them) or `outcome: "terminal"` (the run ended with this turn; KL-4808-a unchanged) → **`task.tool_turn_unrecovered`** (user, act; `detail` as before without `outcome`): dropped calls whose turn stated no outcome (a refusal, an abort, a completed turn with nothing to run, a torn stream), `bad_frame` (the response may be missing content), `missing_result_synthesized` (an earlier call's outcome unknown). Once per run per code per cause (was: per cause).
|
|
190
|
+
- **One shape now tells two lines where it told one** (the dedup unit is the code and the cause): a turn whose cut call was re-asked, then a later turn whose cut call the provider refused — measured on a real Runner over the anthropic lane, base 1 frame (`task.tool_turn_incomplete`, `truncated`, `reissued`), now 2 (that one, then `task.tool_turn_unrecovered`, `truncated`, `act`). The common streak (three cut turns, the run ends at the cap) is one line on both (`reissued`).
|
|
191
|
+
- **What a person sees (on a surface that follows the type's reading).** Leaving the screen: a hold on instruction entries; capture off by an inherited record, floor or fork; a deployment extension not mounted (now the operator's). Coming onto the screen: dropped calls nothing asked to re-issue, unreadable response frames, unknown call outcomes (each was `inform`). Unchanged: a turn that failed for its dropped calls (`outcome: "terminal"`, `inform`, told when its message ends); the common streak — dropped calls re-asked, then the cap's failure — is one line, re-asked (`inform`), as before (measured, same frame count on the base and the head).
|
|
192
|
+
- **Not moved (re-judged, kept):** `peer.idle_subscription`, `advisor.not_attached`, `route.finish_reason_unknown` (its noise is a dedup unit's question), `context.tool_schema_removed`, `inherit_env.names_withheld` (measured under the default scrub, an explicit `inheritEnv: "all"` and an allow list: what `"all"` still withholds is the engine's own credentials and its namespace's credential-shaped names, which no declaration hands on — the sentence says so; no code of its own), and the five codes 7.70.0 already split (`mods.stop_ended`, `peer.held_settled`, `peer.inbound_disposition`, `route.stream_end_ignored`, `task.turn_interrupted`).
|
|
193
|
+
- **HARD-BREAKING (open to veto).** (1) `EngineNoticeCode` +2: a host table typed `Record<EngineNoticeCode, …>` or a `switch` ending in `never` does not compile until it has a row for `mods.registration_refused_deployment` and `task.tool_turn_unrecovered`. (2) `mods.registration_refused` narrowed: a reader keyed on it no longer sees deployment-seat refusals (they are the operator's code, audience `operator`). (3) `task.tool_turn_incomplete` narrowed: a reader keyed on it no longer sees unreadable frames, unknown outcomes or unrecovered dropped calls (`task.tool_turn_unrecovered`); its frames carry `outcome` `reissued` or `terminal` as before. (4) `NOTICE_ATTENTION` rows `memory.hold_opened` and `memory.capture_opted_out` act → inform. (5) `NOTICE_CODE_LINEAGE` +2 narrowed rows (`in: "7.71.0"`); the 7.70.0 rows are unchanged — a row records its release, so `memory.capture_opted_out`'s 7.70.0 row still says `act` after, and the catalog says `inform` today (the type's doc says so). The machine-read form of (2) and (3) is the lineage table: an old frame with `seat: "deployment"` → the new mods code; `cause` `bad_frame` / `missing_result_synthesized` → `task.tool_turn_unrecovered`; a dropped-call frame with no `outcome` has no selector (a selector names values, not absence) and stays under the code, its branch's `when` saying what decides.
|
|
194
|
+
- **Consumers.** @cli @client-core @server @test: a reader keyed on an old code follows the lineage table; a probe pinned on the old attention or the old code reds — re-pin on the new reading (the frame's `attention`; the new codes). @cli: the terminal's own arms for `memory.capture_opted_out` and `memory.hold_opened` move off the screen; `task.tool_turn_unrecovered` comes on. @client-core: the code table +2; the transition table's rows for the two old codes keep their old-engine reading, the new-engine word is the frame's. @server: the user stream's list is by audience — `mods.registration_refused_deployment` is the operator's and leaves the person's stream.
|
|
195
|
+
- **Against 7.70.0.** No interception moves: nothing is allowed, asked or refused differently; every refusal, card, result and terminal is as before.
|
|
196
|
+
- **Pins.** `test/backlog5318-notice-tiers.test.ts` — H the real harvest's hold notice · C1 / C2 a real Runner's standing record and delegation floor, C3 the three origins and the person's own switches at the throat · M1 / M2 a real Runner refusing each seat · T1 – T8 a real Runner over the anthropic lane (the common streak, the cap turn under a person's input, the turn limit on it, the failing turn, a refused turn, an unreadable frame, an unknown outcome, one line per code per cause) · L the lineage rows and an old frame of each arm · U the ten codes left alone. Re-aimed: `backlog1230`, `backlog1229-1230-main-counterexamples`, `backlog1257`, `backlog1529`, `backlog1640`, `backlog4716-reask-lanes` (V1), `backlog4696-notice-attention` (cells user × act 52 → 51, user × inform 25 → 27, operator × act 58 → 59), `backlog4717-notices-second-slice` (each lineage row read against its own release), `backlog5203-notice-lineage-root-export` (19 rows; L3 two facts moved to the operator), `governance-codes`, `export-surface`.
|
|
197
|
+
|
|
198
|
+
### Six readings a host's store twin and operator tooling had to copy are exported from the package root, each the very function or constant the engine uses — the credential-value judge, the session-rules key's principal and the join of two rows of one key, the workflow launch record's reader, the name rule's edge-white-space clause, the process-anchor directory's name (#5316; behavior change: none; closed sets: none; exports: +6 `credentialValueProblemOf` `sessionRulesPrincipalOf` `conjoinSessionRuleRows` `launchRecordToKeepOrThrow` `whiteSpaceAtEdgesOf` `PROCESS_ANCHOR_DIR` and the type `SessionRuleContent`; wire: none)
|
|
199
|
+
|
|
200
|
+
- **What each is.** `credentialValueProblemOf(value)` — why one value is no credential value, `undefined` when it is: the very phrase a member of `judgeWithheldEnv(...).valueProblems` holds and a refused `declareWithheldEnv` value is named by (it was a module-private function, `valueProblemOf`; renamed, same body). `sessionRulesPrincipalOf(principal, verb)` — the principal a session-rules key is filed under, which both bundled stores read their `principal` argument by. `conjoinSessionRuleRows(a, b)` — the join of two rows of one key the file store folds a row an earlier release filed under the principal `""` into the session-wide row by (deny entries union, allow and directory entries intersect, a list one row alone sets is that row's, the operator part the same; `undefined` when the rule grammars differ), moved from the file store to the session-policy module beside the other pure row helpers; the `rev` / `gen` / mark arithmetic of the fold stays the file store's (it is bound to the mark file). `launchRecordToKeepOrThrow(runId, raw)` — the record to keep in its storage form or the refusal that names the member and the place, which both bundled stores throw at `recordLaunch`. `whiteSpaceAtEdgesOf(string)` — `{ starts, ends }` over the set the name rule's `edge_whitespace` clause reads; `judgePrincipalName` and its refusal sentence now read it (the only definition of the set). `PROCESS_ANCHOR_DIR` — the constant `ANCHOR_DIR` the engine's own readers and writers use (`".anchors"`).
|
|
201
|
+
- **No judgment moves.** `judgeWithheldEnv`, `declareWithheldEnv`, `judgePrincipalName`, `principalNameFault`, the file store's fold and both stores' `recordLaunch` answer what they answered: the answers of 32 values and 30 names recorded on the base tree (on two platforms, identical) are re-asked (`test/backlog5316-base-record.json`). @server: the equivalent copies a host kept (the credential-value floor, the session-rules key reading and fold, the launch-record refusal, the white-space edge test) can read from these on the next lift and be deleted (section 18 of INTEGRATION-CORE is the per-name reading); the process-anchor note — a walker of the data root skips every directory named `.anchors`, Linux holds named pipes there — is in 5.15c. Where the anchor directory sits is not changed here.
|
|
202
|
+
- **Pins.** `test/backlog5316-root-exports.test.ts` (V / P / J / L / W / A cells: each name from the root and the engine's own function, the recorded-answer cells, the file store's fold through the root join, the BMP sweep of the white-space set against `String#trim`, one spelling of `.anchors` in the store sources).
|
|
203
|
+
|
|
204
|
+
### A parked agent revived on the runner that spawned it reads the root task's policy the host hands now, as a revival on any other runner does — an opaque policy's deny gained while it was parked holds on it, one dropped no longer stops it; a projected policy whose content changed refuses the revival on both runners (#5302; behavior change: a tightening correction against 7.70.0, and for a projected root policy on the spawning runner "revives" → "refused", below, open to veto @server @cli; closed sets: `EngineNoticeCode` +1; exports: none; wire: one notice code)
|
|
205
|
+
|
|
206
|
+
- **Rule.** A revived leg's chain has one reading of the root task's own layer (a `taskPolicy` layer stamped `rootLeg`): the root task's policy handed for this revival (`parkedResume.rootPolicy`, threaded as `RunInternals.rootPolicy`; `runner.resume`'s internals take it the same way), whether the chain is the live one the spawning runner registered or the one another runner rebuilds from the row (`revivalParentConstraints`, `src/core/runner/constraint-layers.ts`). The live chain keeps that layer's approver, mandates and classifier, and every other layer, as registered; the checkpoint screen then judges the chain as before (count and digest: a projected root policy whose content changed is refused on both runners, an opaque one is used as handed — within the limit under "Spelling" below).
|
|
207
|
+
- **Against 7.70.0 (a tightening correction; 7.70.0 did not disclose it).** In 7.70.0 the runner that spawned the agent took its registered chain whole, so the root task's policy the host handed was read only on another runner: the same card approved on two replicas ran under two policies. Measured (real Runner, the host drive, in-memory and file stores; v7.70.0 and this line's base alike): on the spawning runner a deny the root task gained after the park did not hold (the call ran), a deny it dropped still stopped the call, and a path rule with no declared root it gained was not on the revived leg's chain; on a fresh runner all three read the policy handed. Now both runners read the policy handed. Against 7.69.1 (where a host built the chain itself and handed it): the first two cells read as 7.69.1 did on both runners; the third differs from 7.69.1 on both runners, as it already did on a fresh runner in 7.70.0 — 7.69.1 refused the approval (the row recorded no installation for that layer), 7.70.0's rows record it, so the approval runs with the path rule in force.
|
|
208
|
+
- **Two kinds of root policy.** An **opaque** one (its own `check`, path rows or not) is used as handed: a rule the root task gained or dropped while the agent was parked holds on every call the revived leg makes after the revival. The parked call itself — the one a person approved — is not judged again by the chain's layers as they are now (as in 7.70.0; measured: a deny gained while parked that names the parked call did not stop it — KL-5302-c). A **projected** one (its projection carries the deny data the park recorded in the chain's digest — the engine's own `createAllowDenyPolicy` is one) whose content changed since the park (a deny added, one dropped, an allow list widened) refuses the revival on both runners: `resume.parent_constraint_mismatch`, the card stays pending. The ways out: resume with the content the park recorded (on the runner holding the live chain, handing no root policy keeps the registered one), or deny it; running under the new content is design ticket #5319 (KL-5302-a). A chain the caller hands whole (`inheritedGate.parentConstraints`) is taken as handed — `rootPolicy` does not replace its root layer. Unchanged content handed in the spelling the park recorded runs. Measured on both runners and both stores (read-only leg, four projected cells).
|
|
209
|
+
- **Spelling (a known limit, KL-5302-d; against 7.70.0 a new refusal on the spawning runner).** The digest the screen compares is taken over each chain entry's spelling, and one behaviour has several: a lone opaque policy records `{ opaque: true }`; `combinePolicies` of an opaque child and a later child that carries a projection records `{ components: [], requiresLiveRemainder: true }`; an observer composed after a projected policy flips its `requiresLiveRemainder`, one composed before it records no components. A host whose composition of the root policy changes spelling between the park and the revival (a child gained or lost, a different set of composed children) is refused `resume.parent_constraint_mismatch` with the card pending, though no rule changed. 7.70.0 took the registered chain on the spawning runner, so it revived there; another runner has refused it since F-012. Ways out: hand the composition the park recorded, hand no root policy on the runner holding the live chain, or deny the card. Reading same-behaviour spellings as equal is 7.72.0 work. Measured on this line (two read-only legs: an opaque row against a recomposed policy on both runners, two opaque children composed, an observer before and after a projected policy); 7.70.0's side is read from its code, not run.
|
|
210
|
+
- **Downstream (open to veto).** @server: the three same-runner cells your 7.157.0 branch pins with a defect mark (the gained deny, the dropped deny, the unrooted path rule) flip to your other-replica readings — the third to "approved, the path rule rides the revived chain", not back to 7.69.1's refusal — for an opaque root policy. **Against 7.70.0, a host whose root policy is projected sees a flip on the spawning runner: a card it could approve there after changing the policy is now refused, and stays pending** (the other-replica arm has refused it since F-012). @server @cli: each check which kind of policy you hand as `rootPolicy` (opaque or projected) and re-pin accordingly. A host that relied on the spawning runner ignoring `rootPolicy` (dropping a deny to let an already-parked agent through only on that replica) now gets that on every replica; one that pinned 7.70.0's same-runner reading re-pins. A cascade rung's child (KL-5107-f ①), for an opaque policy: a host that hands the session root task's policy instead of the rung's own now loses the rung's deny on the spawning runner too, as it already did on any other runner; two projected policies of different content are refused there (the digest), not revived without the deny. The mode word and the shell floor (`parkedResume.inheritedGate`) already read as handed on both runners (measured, unchanged).
|
|
211
|
+
- **Nothing handed.** A resume on the runner that holds the agent's chain live, handed no root task policy (`null` reads as none, the policy seat's absence spelling) for a chain that carries the root task's layer, keeps that layer as the runner registered it at the agent's last park there (its spawn, or an earlier revival there that was handed one) — the one arm where the policy is not the one handed now — and says so the moment its claim is won, before the leg starts: `permission.revival_root_policy_unrestated` (audience `operator`, attention `act`, `detail: { sessionId }`; an attempt refused before the claim, or one that loses it, says nothing; a start that fails after the claim and reopens the row says it again on the next won claim — no per-token suppression). On another runner the same resume is refused before the claim, as before (`resume.parent_constraint_unrebuildable`, `detail.field` `"rootPolicy"`). A child that never parked runs exactly as before (four shapes measured).
|
|
212
|
+
- **Not in this change (measured, the two runners still differ).** The screening installation layer: the spawning runner keeps the spawn's installation (the root task's mods at the spawn), another runner rebuilds it from its own `RunnerDeps.mods` and the seat's mods now (a seat handing no judging mod is refused there); and the approver of an inherited ask (the root task's frozen approver on the spawning runner, the revived leg's own on another — `CTRL` and `A5b` in `test/backlog5107-revival-rebuilds-the-chain.test.ts`).
|
|
213
|
+
- **Pins.** `test/backlog5302-revival-root-policy-now.test.ts` (N16 the projected root policy — a deny added, a deny dropped, an allow list widened, each refused `resume.parent_constraint_mismatch` with the card pending on the spawning runner and on a fresh one, unchanged content running; N1 – N3 gained deny / dropped deny / unrooted path rule × spawning / fresh runner × in-memory / file stores; N4 mode word and shell floor × both runners; N5 nothing handed × both runners; N6 `runner.resume` × both runners × gained / dropped; N7 a child that never parked × four shapes; N8 the restated layer keeps its approver; N9 / N10 a delegated leg's own task policy is not replaced, alone or below the root's; N11 parked again after a restated revival, then resumed with nothing handed; N12 a root policy handed that is no policy, and `null`; N13 an attempt refused before the claim says nothing; N15 two resumes of one token at once — the claim's winner says it once, the loser nothing; N14 a root leg's deployment policy and a delegated leg's task policy are never restated, and a chain without the root's layer says nothing), `test/backlog4696-notice-attention.test.ts` (operator×act 57 → 58).
|
|
214
|
+
|
|
215
|
+
### The model's three sentences for an ask nobody could answer read as one skeleton, minted in one place; a parent's line about a child's refused asks says why once; the way out of a leg that cannot keep an approval waiting is said in plain words (#5293; words only — no verdict, code, `cause`, `remedy` kind, `detail` key or `refusedAsks` key changes, while the `remedy` / `modelRemedy` strings that carry the way out change by its words; closed sets: none; exports: none; wire: `EngineAttestation` gains an optional member `unanswered` (`{ cause, question, text }`, written only by the engine's ask resolver on a refusal nobody could answer; the deny exit's one reader))
|
|
216
|
+
|
|
217
|
+
- **Rule.** One mint (`unansweredAskRefusal`, `src/core/ask-origin.ts`) words every refusal a model reads for an ask nobody could answer, in one shape: why (the opening and its cause), that it did not happen, one way on. The two permission forms are the reference's no-prompt sentence (cli321.js:288738) with their own cause words; the question is not an approval, so it opens on the question and its way on is the question tool's one instruction (`PROCEED_ON_JUDGMENT`, the same constant every other no-answer exit of the tool gives and its card promises).
|
|
218
|
+
- **Before → now (measured, real Runner, a root leg).** No approver, an irreversible tool or a policy's ask: `Permission for this tool use was denied: it requires interactive approval, and permission prompts are not available in this session (nobody can be asked to approve "t1" in this run — headless auto-deny). The action was NOT performed. …` → the same without the parenthesis (the reference's sentence whole). The approver reported nobody reachable: `approval required for "t1" but the approver reported unavailable (no reachable operator for this ask) and no durable approval gate is armed — denied fail-closed: <question>` → `Permission for this tool use was denied: it requires interactive approval, and the approver reported that nobody can be reached to approve it, and nothing here can keep the request waiting for one. The action was NOT performed. Do not claim it succeeded — report the limitation to the user, or suggest an alternative. What was requested: <question>` (no retry instruction is added: a person may be reachable later). The question: `AskUserQuestion could not be parked for a durable human answer on this path (no checkpoint facility, or the suspend failed) and a synchronous permission approver cannot carry an answer — no live face answered it. Proceed with your best judgment and state the assumption you made.` → `This question was refused: it needs a person's answer, and no live face answered it (nothing here can keep it waiting for an answer, or setting it aside failed). It has NO answer. Proceed with your best judgment: pick the most reasonable option, state the assumption you made, and continue.` ("no live face answered it" stays: #4012's one claim true of every way here — never "not shown") A question on a leg that cannot be resumed is the same mint, the leg's cause in the parenthesis — 7.70.0: `AskUserQuestion's question could not wait for a person's answer and no live face answered it, and this leg cannot be resumed — <the leg's cause> — so it was refused without asking anyone (fail-closed): nobody answered it; do not retry it on this leg, where nothing can wait for a person. Proceed with your best judgment and state the assumption you made.` (a second opening, and "nobody answered" said twice) → `This question was refused: it needs a person's answer, and no live face answered it (this leg cannot be resumed — <the leg's cause> — so it was refused without asking anyone; trying again on this leg cannot help). It has NO answer. Proceed with your best judgment: pick the most reasonable option, state the assumption you made, and continue.`; where a live face was tried and gave no answer, `… — so nothing could keep it waiting past the live face). It has NO answer. …` (was `so it was refused once the live face gave no answer (fail-closed): … do not retry it on this leg …`: the face is asked again on every call, so a later question may be answered — this form no longer says not to try again). A call refused on such a leg keeps its own sentence. The park-state forms (a park that failed, or none attempted) drop the same clauses as before.
|
|
219
|
+
- **The deny exit re-words by record, not by opening.** Where a park was attempted and failed (or none could be), the exit used to recognise the resolver's sentence by its opening (`unresolvedAskQuestionOf`, retired) and mint it again; the resolver now records what it minted on the call's engine record (cause, question, sentence) and the exit re-mints only that sentence, byte for byte. A host resolver that hands the engine's refusal back unchanged, or appends to it, now gets the re-minted sentence too (with its suffix kept): before, the exit did not recognise it, so the text said both "do not retry it in this session" and "it can be issued again once its park can be minted" (measured, exported `resolveAsk` and a failed park); a host's own sentence is left as it wrote it. The question's refusal is minted in its park state's form where the content route refuses it.
|
|
220
|
+
- **A parent reads why once.** The `refused_asks:` line and the `<refused-asks>` tag (synchronous, fork and background children alike — measured): `1 — t1 (nobody could be asked in this run): nobody could answer it, so it was refused and did not run` → `1 — t1 (nobody could be asked in this run): it was refused and did not run`; a line listing no call keeps its own why (`3: nobody could answer them, so they were refused and did not run`). A line that lists some calls and adds `and N more` says why only for the listed ones; the unlisted ones now carry no cause on the line (before, the line's own `nobody could answer …, so` covered them too).
|
|
221
|
+
- **The person's notice says the leg fact once (measured, real lanes: a forced child's own mandated ask).** `"wipe" (a delegated agent's call) did not run: it needed someone's approval, and its approval had to wait for a person, and this part of the run cannot wait. This part of the run cannot keep an approval waiting for a person — to go on: …` → `… and this part of the run cannot wait. To go on: …`; the other causes keep the sentence (their words say nobody could be asked now, not that nothing can wait).
|
|
222
|
+
- **The way out in plain words.** `… or delegate the work as a background agent on a lane that can park — its approvals wait for a person to approve later …` → `… or delegate the work as a background agent that can pause — …`, wherever it is said (the person's notice, the leg's announcement, the tool text, the refused-ask record's `remedy`).
|
|
223
|
+
- **Consumers.** @cli @server @test: a probe or pin matching `headless auto-deny`, `denied fail-closed: `, `approver reported unavailable`, `could not be parked for a durable human answer`, `could not wait for a person's answer`, `(fail-closed): nobody answered it`, `once the live face gave no answer`, `nobody could answer it, so` or `lane that can park` turns red and re-pins on the new sentences; every code, `detail` member, `cause`, `remedy` kind and `refusedAsks` member is unchanged.
|
|
224
|
+
- **Pins.** `test/backlog5293-one-skeleton.test.ts` (S1 every form's skeleton; S2 the real lane, all three classes; S3 the question's way on is the constant the card promises, spelled once; S4 the parent's line; S5 the way out; S6 a question on a leg that cannot be resumed, every leg form); re-pinned for the words: `backlog2158` (F2 / F3 now pin the record and its only reading), `backlog4613` F5a, `backlog7340rg`, `backlog4111` F1 / H6 / H7 / H9, `backlog4054`, `backlog4079`, `backlog3981`, and the files that held the old sentences.
|
|
225
|
+
|
|
226
|
+
### Refusals and approval cards say what is true and say it once: a home search refused for a location it holds no longer names a file that may not exist, the card of a read the engine could not place says what approving lets it read, the read-deny floor notice is two sentences whose way out refuses no run, and memory request refusals open with the step instead of a function name (#5282 #5283 #5290 #5292 #5288 #5287 #5284; words only — no default, classifier, question or verdict changes; closed sets: none; exports: none; wire: `ReadFinding` gains an optional member `deny.under` (`true` only, on a recursive read's deny hit whose root holds a row's location without matching one; an older reader still gets `deny_hit`) and an optional member `denyRowUnasked` (`true` only, on an `unanswered` finding whose reason is a deny row nobody could ask about))
|
|
227
|
+
|
|
228
|
+
- **Consumers.** @cli @server @test: the read-deny refusal, the card's reason (`probeReason`), the read-only seat's refusal, the floor notice's `message` and the memory refusals are all new words, while every code, `detail` key, disposition and class stays. A probe or pin that matches the old sentences turns red and re-pins on the new ones — this car's own `test/backlog945-adversarial-r1.test.ts` re-pinned "matches the sensitive-path" for that reason.
|
|
229
|
+
|
|
230
|
+
- **#5282 — a search below a folder that holds a read-deny row's location.** A recursive read's root is judged by where the table's rows lie, never by what exists below it; the refusal said the folder "matches" the first home-placed row (`grep -r KEY ~` named `~/.npmrc` on a machine with no such file). Now (measured, the built-in default table, both shell seats): `searching below "<home>" is refused: that path holds a location on the sensitive-path read deny list (pattern "~/.npmrc") — locations are checked, not which files exist, so no such file need be there.` followed by the way on (`A search of a folder that holds none of the list's locations, or of files named one by one, is judged on its own.`) and the existing outlet sentence. Still refused; the echoed literals and the card's `pattern` are the same row. A root that is itself a row's location, and a named file, keep "the target matches". Known limit **KL-5282-a**: on Linux's default configuration the byte floor does not keep one class of recursive read (a program opening files below a folder itself) — by class only; not tightened (C-R2992).
|
|
231
|
+
- **#5283 — the approval card's reason for a read the engine could not place.** Every such account (`AskRequest.probeReason`, and the read-only seat's refusal) now ends with one clause by the read face — roots face: `…, so it may read files outside this session's folders — it is not allowed through automatically`; open face: `…, so the read station cannot check what it reads against the read deny list — …` (on an environment that keeps the byte floor a deny row's bytes are still refused, so the open face says what the station cannot check). A finding whose reason is a deny row nobody could ask about (a home-anchored row on an environment that knows no home; spellings past the floor's bound) is not an unplaced read: its account opens `what this command reads could not be checked against the deny list: <the reason>` on every face — before, `grep -r KEY .` in the session's own folder said it "may read files outside this session's folders". Before, the `xargs` / unnamed-program / re-entered-shell accounts had no such clause (`"xargs cat" hands cat its operands on its standard input, which this station does not read — so it is not allowed through automatically`), and the others ended in the roots list the card's 200-character cap cut off. The card's `message` (the auto-mode classifier's input), class and every other member are unchanged.
|
|
232
|
+
- **#5290 ① ② — the out-of-root reason names the file that is not allowed, and a link.** Each path the account quotes is elided in its middle to 44 characters, its last 21 kept, so the path fits the card's cap and a file name of up to 21 characters stays whole (a longer one keeps its tail) (a command naming two files in a deep folder, one allowed by a saved read rule, lost the name of the other before). A target reached through a link on its leaf chain: `"<name as written>" leads through a link to "<target>", which is not under <folders>` (a link whose target is not there yet lands at its own spelling and says no such thing). The budgets are the card's: the read-only seat's refusal, which the model reads and nothing caps, names its paths whole (known limit **KL-5283-a**: its length has no bound, and it quotes the refused command segment whole — a 3,858-character path in the command gives a 4,172-character refusal, and a `node -e '…'` with a 4,000-character comment gives a 4,350-character one where 7.70.0 gave 510). **#5290 ③ (measured, not changed):** a saved single-file `Read(<file>)` rule clears `cat` / `head` / `grep` of that file but not `grep -r` / `grep -R` / `rg` of it — a recursive form's operand is a traversal root, and the person's path allow is not read for a traversal root (`personAllowAdmits`, `src/tools/fs/shell-read-judge.ts`); making it clear would change a verdict and is left to its own ticket.
|
|
233
|
+
- **#5292 — a long command no longer pushes the card's reason out.** The account of a segment the station declined quoted the segment's whole text in front of its reason, and the card holds the account to 200 characters from its tail (`gate-fold.ts`, `inlineUntrusted(…, PROBE_REASON_MAX)`), so the longer the command the more of the reason went (`"node -e '<160 characters>'": runs inline javascript program text…`). The quote now takes what the reason and the reach clause leave of the cap (at least 24 characters), elided in its middle and measured as the card will hold it (folded, markers defused); the whole command is still the card's `args`. A text that fits is quoted whole, as before. The card's cut of a reason too long for its cap now falls between words and ends in `…` inside the cap (`inlineUntrustedAtWord`; before it could end `…not allowed through aut…`) — except where the second half of the room holds no word boundary (a long unbroken run, cut in the word), and where the kept text holds a marker whose defusing lengthens it past the cap (cut again at a code point); both stay inside the cap. A reason that fits is untouched. The cap, the members and the card's shape are unchanged.
|
|
234
|
+
- **#5288 — `config.read_deny_floor_unkept`.** The person's notice is now: `Files on the read-deny list are not fully protected from commands here: this environment does not keep the byte floor, so a recursive read can still open them. To protect them, <the way this host has>.` — on macOS `the deployment can run commands under this Mac's OS confinement where it applies, which keeps the floor` (`readFloorConfinement: "os"` applies on macOS only, and refuses loudly where its probe fails), elsewhere `the deployment can run commands in an execution environment that keeps the floor`. Before, one long sentence ended "ask the operator to make the deployment require the floor", which refuses every run on such an environment. Code, audience, attention, `detail.rowCount` and once-per-session delivery are unchanged; a scripted host that opens a new session per invocation still sees it each time — saying it once per deployment needs the host to remember it across sessions.
|
|
235
|
+
- **#5287 — memory request refusals open with the step.** Every erasure-lane refusal opens `This erasure request is refused:` (the store's evidence face used to open `eraseWithEvidence:`, the engine verb `eraseMemoryEntries:`), the import lane `This memory import is refused:`, and the export, challenge and origin-clear refusals the same way; so do the operator's requests — `This hold resolution is refused:` / `This settlement resolution is refused:` / `This session account resolution is refused:` (were `resolveHold:` / `resolveSettlement:` / `resolveSessionAccount:`; **except that two of the session account resolution's own refusals still open with the function name**: the stale-leg refusal `memory.session_account_resolve_stale` — `resolveSessionAccount: session … is held by leg …` — and the missing-`requestId` one, `memory.session_account_resolve_unattributed` — `resolveSessionAccount requires a non-empty requestId …`; only the unknown-session refusal, `memory.session_account_resolve_unknown`, opens with the new sentence. A reader matching the old opening `/^resolveSessionAccount: /` keeps matching the stale-leg one), `This ledger rebuild is refused:` (`rebuildCorruptControlPlaneLedger:`), `Moving the memory store's root is refused:` (`reanchorMemoryStoreRoot:`), `The import latch was not released:` (`releaseImportLatch:`) — and the read of an erasure's anchor says it is a read (`Reading an erasure request's anchor is refused:`). A later store's refusal after an earlier one executed opens `This erasure request had already executed in …`, so the store's own `This erasure request is refused:` is said once (it was said twice). Constructor, API-contract, store-contract-kit and errno-shaped messages keep their prefix: the integrator who called that name reads them. Codes are unchanged. @server @test: a reader matching these sentences by their old opening (`/^eraseMemoryEntries: /`, `/^eraseWithEvidence: /`, `/^resolveHold: /`, …) re-pins on the new opener.
|
|
236
|
+
- **#5284 — comment only.** Measured at `runToolGate`: the engine's resolver refuses arguments no approval can be bound to before anyone is asked; a host's own resolver is asked over any bytes and its plain allow is read as an unsettled allow (refused only under `requiresRealApproval`). The gate exit's comment now says which seats bind first.
|
|
237
|
+
- **Pins.** `test/backlog5282-root-holds-row.test.ts`, `test/backlog5283-unplaced-read-reach.test.ts`, `test/backlog5292-long-command-reason.test.ts`, `test/backlog5287-refusal-openers.test.ts`; `test/backlog2944-read-floor-kept.test.ts` (the notice's text, the way out per host), `test/backlog3288-erasure-later-store-refusal.test.ts` (the opener, said once), `backlog5283` ⑤ – ⑦ (no-home searches, a link to nothing, the model's refusal with whole paths), `backlog5292` ② (the card's cut between words), `test/backlog3934-ask-reasons-s1.test.ts` (the renamed reason function). Re-pinned for the words only (no verdict moves): `backlog1516` ⑦, `backlog3600`, `backlog4789` W4, `backlog780` (#780's program-position reader), `backlog945-adversarial-r1`, `backlog1102` §2.7 (the #1102 open-face clause), `backlog4696` ⑨ (the #4696 contrast reads the floor notice's frame without its words); `backlog994`'s recorded-wording table maps the reach clause back to each arm's earlier words; `backlog4958`'s fixture (#4958) is re-recorded (again after the leg's repairs: over 12,745 common commands only the station and lexical faces moved, removal / kill / read-only 0) — over the 12,639 commands both recordings hold only the station and lexical faces moved (4,393 / 4,383 sentences), and a word-free comparison of the two trees over all 12,708 stored commands moved 0 verdicts.
|
|
238
|
+
|
|
239
|
+
### A leg that asked for a rewind says on its failed or blocked result whether the working tree moved and where its conversation was left — `terminal.rewind: { moved, branch }`, whatever code ended it; a run whose restore was accepted answers the restore's own file rows (`fileRestore`, the value `Runner.rewindFiles` answers as `restore`); a coded account a bound cut names what it cut (`omitted`) (#4797, #4739; additive; behavior change: none on what a rewind does; closed sets: +2 — `RewindMoved`, `RewindBranch`; exports: none; wire: `TaskResult.terminal.rewind` (failed and blocked arms), `TaskResult.fileRestore` (and on the four derived result types), `omitted` / `omittedMore` on a `coded` terminal account (`terminal.detail.omitted`), `detail.rewind` on `Runner.rewindFiles`' `rewind.restore_failed`) (@server @client-core @cli @test)
|
|
240
|
+
|
|
241
|
+
- **Rule.** A leg whose request names a rewind (`resumeAt`, `rewindFilesTo` or `restoreFiles` stated) keeps ONE record of what it did (`src/core/runner/rewind-outcome.ts`), minted where each fact happens and read by both exits that mint a result (the run's assembly and the backstop of a prepare that threw). `moved` is the restore's, read off the witness of what it asked of the env: `none` (nothing asked — the leg never reached its restore, its plan refused or failed, the history had no address), `some` (a write, delete, change of mode or directory answered done), `unknown` (asked, none answered done: a failed write may have written part). `branch` is the acquire's that branched (`left_moved` once its leaf write lands) and the write-back's of a refused prepare (`put_back`; `left_moved` when another writer moved the leaf past the request's own entries, when the cleanup's bound expired before its write started, or when an earlier acquire attempt's branch had landed before a concurrent write re-woke the acquire; a conditional write that lost to a conflict reads the leaf again); absent = not known (a read that threw, a write started and not answered); `untouched` when no leaf moved. The record exists from the leg's first instant (its stream mints it), so a refusal before prepare runs — the session lock — states it too. A restore through an env member outside the restore's own vocabulary (a command, say) counts as asked, never as done.
|
|
242
|
+
- **Where it rides.** `TaskResult.terminal.rewind` on every `failed` terminal of such a leg — a refusal of the rewind itself, a refusal after the restore landed (any code), a failure of the run on the restored tree — and on every `blocked` one (the restore ran in prepare, then a prompt hook refused the objective, the run was cancelled inside that hook, or the agent reported it could not go on: the tree may have moved all the same). Never inside a code's own `detail` (one carrier per result). `Runner.rewindFiles` states the same member on its own `rewind.restore_failed` `detail.rewind`, with `branch: "untouched"` (the verb moves no leaf). Completed and paused terminals carry none (a paused leg goes on; its resume states its own). @server @client-core: a blocked rewind leg now reads `terminal.rewind` too.
|
|
243
|
+
- **Types that carry `fileRestore`.** `TaskResult` and the four result types derived from it — `CascadeRunResult`, `RepairResult`, `VerificationResult`, `WorkflowAgentResult` — each gain the optional member (`gate:wire` lists all five). Its rows carry `targetPath`, the absolute path the row speaks for (as `Runner.rewindFiles` has answered since 7.69.0): @server, a redaction table derived from the result's type meets a new absolute-path leaf here.
|
|
244
|
+
- **`fileRestore` (#4739).** A run that accepted its restore (`complete`, or `partial` under `acceptPartialRestore`) carries it as `TaskResult.fileRestore`: the same value, minted by the same restore reading, that `Runner.rewindFiles` answers as `restore` — `files` (each with `targetPath`, `action`, `outsideRoot`), `leftAsIs`, the counts' lists — on whatever terminal the run then reached. `rewindNotes` keep their sentences; a host reads the rows instead.
|
|
245
|
+
- **`omitted` (#4797 d).** A `coded` account whose snapshot bounds (depth 4, 64 entries per container, 4096 characters per string, 256 values, 16384 characters) left out or cut into a member of the thrown `detail` names those members, in member order (`omitted: string[]`): a member absent from `detail` and named there was too large to carry; one not named was not stated. A detail none of whose members fit answers `{ kind: "coded", detail: {}, omitted: [...] }`; one with more own members than the entry bound admits is left out whole, named by its first 64, and the rest of the nameable ones counted (`omittedMore: n`). A member whose key the account cannot carry (not visible ASCII 1–128, or a key that carries a credential — an `sk-…` or `Bearer …` form, a URL with a password; a key that only names one, `password` or `apiKey`, is carried like any other, its value redacted, and named and counted when cut) is neither named nor counted — it is left out for its key, as before. The bounds are unchanged. Where it sits: `terminal.detail.omitted` — on the `coded` arm of `terminal.detail`, beside that arm's own `detail`, not on the terminal itself (@server: the claim post read it as a sibling of `terminal.detail`).
|
|
246
|
+
- **Also (#4797 review).** A guarded write whose check refused the file answers that it wrote nothing; the witness now takes that ask back, so a restore refused that way for every file states `moved: "none"`, as its row's sentence says (it read `unknown`).
|
|
247
|
+
- **Before → now (measured, real Runner, `NodeExecutionEnv`, the in-memory and the file history store).** A link at the restored file (the plan refused it) and every write failing after the plan passed: before, both `rewind.restore_failed` with the same detail members and `filesChangedCount: 0` — told apart by nothing; now `rewind: { moved: "none", branch: "untouched" }` and `moved: "unknown"`. The restore landed and the project-context phase then refused the leg (`config.reserved_tool_name`, a caller tool named like the skill tool): before, the file was back at its old bytes and the result said nothing about files; now `moved: "some"` and `fileRestore` lists the file written. `resumeAt` refused after its branch (on the plan, or by that later door): before, the leaf was put back and only an `onError` sentence could say so; now `branch: "put_back"`. A completed `rewindFilesTo` run: before, no file row on the result; now `fileRestore`, row for row what `Runner.rewindFiles` answers. A thrown detail with a 70-row list: before `{ refusedCount: 70 }` and nothing else; now the same and `omitted: ["refused"]`. A leg that asked for no rewind: no member, before and now.
|
|
248
|
+
- **Also.** `Runner.rewindFiles` syncs the env's workspace at its end when its restore may have moved a file — read now off the same `moved` (it used to read "a path was handed to the read-state channel", which also counted a failed row whose write was never asked).
|
|
249
|
+
- **Not done here (#4797 c, its second half).** The two structured-output refusals (`config.reserved_tool_name`, `config.invalid_output_schema`) are judged on the roster's mount decision, made after the restore; moving them ahead would take a second reading of that decision. `terminal.rewind` states that form instead (measured above for a later refusal of the same family).
|
|
250
|
+
- **Pins.** `test/backlog4797-rewind-settlement.test.ts` (ten run cells × two stores — among them the guarded write refusing every file, a run failing in its model on the branch (`left_moved`), a prompt hook blocking after the restore and a cancel inside it; `fileRestore` row for row against the verb's `restore`, two stores; the verb's `detail.rewind` after a landed write and on a plan that failed as a whole, restore and preview; the write-back's five exits; the witness reading, a command, a refused guarded write and a failed write on the performing view; `omitted` six cells); `test/backlog843-session-write-hold.test.ts` (a rewind leg refused at the session hold, before its prepare ran, states `rewind`).
|
|
251
|
+
|
|
252
|
+
### A rewind's restore performs what its plan read — a file another writer changed between the plan and the write is refused `changed_since_plan` and left as it now is (#4513; behavior change: narrowing, below, open to veto @server @cli @test; closed sets: +1 word in each of two — `FILE_HISTORY_REFUSAL_CLASSES` `changed_since_plan` and the exported type `FileRestoreApplyOutcome`'s `class` `changed_since_plan`; exports: none; wire: that word on `refused[].class` / `files[].refused.class`; consumers: @server @cli — a table over either set meets a new word)
|
|
253
|
+
|
|
254
|
+
- **Rule (#4513).** A rewind plans its restore first (the store's own restore on a view that writes nothing) and then carries it out in a second store call. The shared restore step (`applyFileRestoreViaEnv`) now tells the view, once it has read a file's current bytes, what it found there and what it would converge it to; the plan records it, and the restore that carries the plan out refuses a write, delete or change of mode wherever it finds the file otherwise than the plan read it (its bytes or absence, and its mode) — or a file the plan never reached — before it moves it, each key held to the plan's reading of that same key (one file under two keys: the first already converged does not stand for the second; **except** two keys that differ only by letter case on a case-sensitive workspace — the restore reads them as one file it already moved, so the later one is not held to its plan: KL-4513-b): `refused`, class `changed_since_plan`, `action` what it would have done, its sentence saying what is there now stays. A file already converged needs nothing and stays `identical`, whatever the plan read; a file this same restore moved under another key is not judged twice. Both bundled stores restore through that step; a store that converges files another way is not held to its plan (as before).
|
|
255
|
+
- **Before → now (measured, real Runner, `NodeExecutionEnv`, in-memory and file history stores).** Another writer changes `f.txt` between the plan and the write: before, `Runner.rewindFiles` answered `complete` and the run completed, the other writer's bytes gone; now the verb answers `partial` with `f.txt` refused `changed_since_plan` and kept, `g.txt` restored, and the run fails `rewind.restore_failed` (`moved: "some"`). The same with `f.txt` removed in between: before, written back; now refused, left absent.
|
|
256
|
+
- **Narrowing (open to veto).** @server @cli: a rewind that used to answer `complete` now answers `partial` with a `changed_since_plan` row where another writer changed a file in the moment between the plan and the write (a run that accepts no partial restore stops on it, `rewind.restore_failed`, the tree partly restored and named) — the reference's per-file refusal family.
|
|
257
|
+
- **Not in this release (#4505).** A fork's rewind to a point before the fork still writes back an outside-root file whose history an engine before 7.68.2 carried in from the source (KL-4328-d, unchanged): two ways of telling the copied file apart were tried and each still wrote over it under another key that reaches the same file; it goes to a design ticket.
|
|
258
|
+
- **Known limits.** KL-4513-a: a mutation another writer makes after the step's last read of a file and before its write is still the guarded write's to catch (an env with `writeFileGuarded`), as before. KL-4513-b: on a case-sensitive workspace, one restore that recovers two files differing only by letter case does not refuse, as `changed_since_plan`, another writer's change to the one it restores second — the change is overwritten and the rewind answers `complete` (7.70.0 overwrote it for any file; this release closes the general case, not this shape). KL-4513-c: the apply step scans the changes already made once per file it checks, so its cost grows with the square of the number of files a rewind restores (a replica of the loop: 500 / 1,000 / 2,000 / 4,000 files = 43 / 205 / 769 / 2,741 ms; measured by the review on the real file store: 4,000 files 1,585 ms where 7.70.0 took 24 ms).
|
|
259
|
+
- **Pins.** `test/backlog4513-restore-as-planned.test.ts` (the verb and the run × changed and removed in between, a mode changed in between, the identical control, the plain control, one file reached twice in one pass, a file created where the rewind would delete it, one file under two keys whose first key already wrote, two stores).
|
|
260
|
+
|
|
261
|
+
### A rewind refused for link safety says the way on — each `link_safety` sentence of the shared restore step ends with what to do (#4745; behavior change: wording of `refused[].reason` / `files[].refused.reason` of that class only; closed sets: none; exports: none; wire: none)
|
|
262
|
+
|
|
263
|
+
- **Rule.** The four sentences of the shared restore step (`applyFileRestoreViaEnv`: a link or another object at the path; a write the guarded check refused because the path stopped being what it read — the file or a directory above it became a link or another object; a directory the version was recorded under that no longer resolves to itself; a directory whose real path could not be read) keep their first half and add one way on: put a regular file back at the path (or remove what stands there), put the file and the directories above it back as they were, put the directory back as a real directory, or check that it can be reached — then rewind again, or restore the file by hand. The held-file sentences already said "restore it by hand". A consumer branches on `class`, never on the sentence.
|
|
264
|
+
- **Pins.** `test/backlog4797-rewind-settlement.test.ts` (the link cell through a real Runner, two stores; and one cell per sentence on the restore step itself over a real tree — `leaf` for a link and for a directory at the path, `changed` for a refused guarded write, `place` for a recorded directory now reached through a link, `unread` for a directory whose real path cannot be read — each asserting the class `link_safety`, the way on word for word at the end of the reason, and the file left as it was).
|
|
265
|
+
|
|
266
|
+
### A host states "the older versions were recorded under this rewind's own root" without spelling the root — `unplacedHistoryRecordedUnder: "rewind_root"` — and says it takes that member with a capability word of its own (#4512, #4515; additive; behavior change: none for a value accepted before; closed sets: +1 — `ENGINE_CAPABILITIES` `file_history.unplaced_recorded_under`; exports: none; wire: the word as a value of `TaskSpec.unplacedHistoryRecordedUnder` and `Runner.rewindFiles`' `unplacedHistoryRecordedUnder`) (@server @cli)
|
|
267
|
+
|
|
268
|
+
- **Rule (#4512).** The member takes an absolute path, as before, or the word `"rewind_root"`: the engine reads it as the root it joins the session's keys on for this rewind (a session that works in a tree of its own: that tree), at the one place the restore's options are handed to the store (`restoreOptionsAt`, read by the plan and by the restore, so the preview, the run and the verb read the same root). It is the same assertion as spelling that root — state it only when every earlier turn of the session ran there. The door's other answers stand: refused `rewind.invalid_spec` on a run that restores no file; a near spelling (`Rewind_Root`, `rewind_root/`, `rewind-root`) is a relative path, refused on both seats.
|
|
269
|
+
- **Rule (#4515).** `file_history.recorded_place` now states only the engine's invariant — a version is written or deleted only where it was recorded, never elsewhere; how each other file is answered is read off its row's `class` (`leftAsIs` or `refused`), never off the word. The new word `file_history.unplaced_recorded_under` says the engine reads `unplacedHistoryRecordedUnder` (path or word). @server: project the new word only where your surface takes the member; @cli: a host that does not project it is not an older engine — read `file_history.recorded_place` for the engine's half. The words were one before: an engine from 7.68.2 to 7.70.0 states only `file_history.recorded_place`, takes the path form and refuses the word (`rewind.invalid_spec`, a relative path); an engine before 7.68.2 refuses the member as an unknown key.
|
|
270
|
+
- **Before → now (measured on the base, real Runner, `NodeExecutionEnv`, in-memory store).** `unplacedHistoryRecordedUnder: "rewind_root"`: before, `Runner.rewindFiles` refused `rewind.invalid_spec` ("must be a non-empty absolute path") and the run failed `rewind.invalid_spec`; now each answers exactly as spelling the rewind's own root (pinned on the four entries over histories a v7.68.0 engine recorded). `ENGINE_CAPABILITIES`' `file_history.*` words: before `["file_history.recorded_place"]`; now also `file_history.unplaced_recorded_under`.
|
|
271
|
+
- **Pins.** `test/file-history-recorded-place.test.ts` (#4512: the word against the spelled root on the verb, `rewindFilesTo`, `resumeAt`, `resumeAt` "before"; at another root, the word is that root, not the directory recorded; the door's near spellings and a run that restores nothing; #4515: both words); `test/backlog1754-held-values.test.ts` (the set).
|
|
272
|
+
|
|
273
|
+
### A `workspace: null` leg that mounts no tool that can change a file runs on a session whose tree is gone — it records nothing and says so once, instead of being refused for a history it could never write (#4397; behavior change: widening for such a leg only, below; closed sets: none; exports: none; wire: none)
|
|
274
|
+
|
|
275
|
+
- **Rule.** A `null` leg's file history is keyed to the session's checkout; where that checkout cannot be resolved (a tree gone, not this session's, unreadable, or the leg's root's place not read), a leg that may change a file is refused as before (`workspace.checkout_missing` / `workspace.checkout_unavailable`, the sentence unchanged but for its last line, which now also names this exit). A leg that mounts none — no engine tool whose catalog effect is a write (the file tools, the shell, a delegation or a workflow that runs other legs; an undeclared effect counts as a write), no caller tool, no MCP or A2A peer its tool selection leaves (`legMayWriteFiles`, read off the valve before the roster is assembled) — takes the exit a `null` leg standing outside the checkout already takes: it runs, records no file history, and the operator is told once (`onError`, classification `file-history-outside-checkout`, the sentence saying why). A rewind sent on such a leg is refused with the same refusal a leg that may write meets. With the checkout resolved nothing changes: a no-tool `null` leg in the session's tree keys and records its boundary as before. **Known limit (KL-4397-a):** the widening reaches a `null` leg on the session's own checkout only — a leg standing in another session's checkout (a verifier leg, a ladder rung, a repair restart) is still refused `workspace.checkout_missing` when that session's tree is gone, even with no tool that can change a file, as on 7.70.0; the way out is `TaskSpec.fileHistory: "disabled"` on that leg.
|
|
276
|
+
- **Before → now (measured on the base, real Runner, real git, `NodeExecutionEnv`, file history store; a session that minted a tree, the tree then removed).** A `null` leg with `excludeAllTools`, and one allowed only `Read` / `Grep` / `Glob`: before, `failed: workspace.checkout_missing`; now completed, one outside notice, the session's history unchanged. Allowed `Read` + `Edit`, or allowed `Bash`: `workspace.checkout_missing` before and now; carrying a caller tool: refused now (pinned), and before by the same judgment, which read no tool.
|
|
277
|
+
- **Widening (stated).** @server: a chat leg with no tools on a session whose tree is gone now runs instead of failing; it can change no file, and the notice says nothing it does is in the session's history.
|
|
278
|
+
- **Pins.** `test/backlog4397-null-leg-no-write-tools.test.ts` (two no-write shapes run and their rewind is refused; five may-write shapes refused through a real Runner — an edit tool, the shell, the delegation tool, the workflow tool, a caller tool; P1 – P4 the judgment `legMayWriteFiles` itself for the protocol arms — an MCP server and an A2A peer the valve reaches count as may-write, another peer's prefix and a valve that leaves none do not — and for a caller tool; the tree-present control records a boundary).
|
|
279
|
+
|
|
280
|
+
### A person's "no" to continuing a parked workflow now stands against another leg handing back the same decision: it is judged again and recorded under the workflow's resume claim, and a resume's admission drives no decision the workflow's records say is spent (#5229; closes KL-4832-c; behavior change: narrowing, below, open to veto @server @test; closed sets: none; exports: none; wire: none)
|
|
281
|
+
|
|
282
|
+
- **Rule.** A decision's fate is settled in one place: under the workflow's resume claim (keyed by its tree's root), over the tree read under that claim, by the one judge (`workflowParkDecisionOf`). A continuation's drive already ran there; a person's own no to the continuation's question did not — it was a plain conditional write on the holder's record, taken with no claim. Now the engine's continuation takes the claim (the Workflow tool's one claim-taking, shared with its launch), judges the cards again under it — the same judgment a launch makes under its claim — and records the no while it holds the claim. A run's admission, under its claim, judges every decision it carries the way the live delivery door already does and drives none that reads `spent`; its park stays for a new decision (a run-log line says so). That covers every way a resume is started: the engine's continuation, the model's own `Workflow({ resumeFromRunId })` call carrying the decisions left for it, a host's direct resume.
|
|
283
|
+
- **Before → now (measured, two real Runners over one set of stores — two processes, emulated — leg A's person answers no, the gated step's runs counted).** Before (`v7.70.0` and the 7.71.0 line before this change, cell for cell the same): A's record of the no held until B had run, B allowed by its policy or its person saying yes — the person told the no stands, the step ran once; A's person answering no while B's continuation was in the step — told the no stands, the step ran once; B the leg that resumed to run the model's own call, A's no landing before that call took its claim — told the no stands, the step ran once. Now: the first two, B's claim is refused while A records (B is told `continuing_elsewhere`), the step runs 0 times, the no is told once; the third, the step runs once (B's continuation was in it before the person answered) and A is told `continuing_elsewhere` (B's run still held the claim), never that the no stands, nothing marked — had B's run already ended, A would be told the card was already used to continue the run; the fourth, the call's run re-parks on the card, the step runs 0 times.
|
|
284
|
+
- **Narrowing (open to veto).** @server @test: (1) a decision handed to a resume (`RunWorkflowOptions.parkedResume`, or the trusted channel) that the workflow's records read spent — a final mark, or a refused drive of it — is no longer driven at the run's admission: the park re-parks, as the live door already answered `spent`; (2) while one leg records a person's no (a few store reads and one write), another continuation of the same workflow is refused its claim and told `continuing_elsewhere`, with no `holder` (see (3a)); (3) when the claim is held by another run, or the store does not answer it, the no is not recorded and nothing is marked — each in a sentence of its own: `continuing_elsewhere` says the person's no was not recorded, that the holder may have continued the run with this same decision, that the workflow's run records tell whether it was (the holder run's completion notification, if it was started) and the approval card whether it still waits for a decision (it no longer says that deciding the card again continues the workflow — the holder may have used the card); `record_unreadable` says the engine could not confirm it recorded the no, and the same decision may be asked about again; (3a) the claim a leg holds only to record a person's answer is no run's: its holder id is minted as one (`answer-record:` and a random id), and a refusal it causes — another leg's continuation, the model's own call, a host's direct resume — names no run and carries no `holder` (the notice's `detail.holder` is absent; the sentence says another leg is recording a person's answer, that what it records is read at the decision's next hand-over, and when the claim comes free); (3b) a continuation (no person's no involved) refused because another run holds the claim — `continuing_elsewhere` with that run as `holder` — no longer says that deciding the card again once that run has ended continues the workflow (measured false: that run had already used the card, and a new decision was told `not_pending`); it says the decision was not used this time, that the run may be continuing the run with this same decision, that its completion notification and record tell what came of it if it was started, that the workflow's run records and the approval card tell whether the run was continued and whether the card still waits, and when the claim comes free — a host that matched the old words re-pins; (4) the no is told as settled only for the decisions whose own final mark (`denied`, the refusing layer) the tree read once more under the claim finds — one the store did not keep (an entry full of marks, writes that lost or did not answer, a store that drops `settledDecisions`) is told `record_unreadable` in that sentence, `spent: false`, where 7.70.0 told it `denied` (`test/backlog4832-parked-decision-final.test.ts` F-store-drops-member and K5's full-entry half re-pinned). `WorkflowParkAdoption` gains an optional `answerUnrecorded` (not on the notice; the sentence reads it).
|
|
285
|
+
- **Unchanged.** Both legs asking at once and both persons saying no: the step does not run and the no is told once — before and now (the holder's record is read again before any mark is written, #5156). A no from the deployment's policy or a rule (not a person's) is recorded as before, with no claim: it leaves the decision deliverable.
|
|
286
|
+
- **Operations.** Recording a person's no now holds the workflow's resume claim: while it holds it — a few store reads and one write, up to about 30 seconds when the record's writes do not answer (three attempts, each bounded at 10 s) — every other leg handed a decision of the workflow is told another leg is recording an answer, and starts nothing. A process that dies holding it: on the file journal store, a leg on the same machine that can tell the holder's process is gone takes the claim over at once (measured with a SIGKILLed child, `test/backlog4652-dead-holder-claim-takeover.test.ts` D2c, as for a run's claim, D1 / D2); a holder on another machine, or one whose death cannot be told, holds the workflow until the claim's lease lapses (an hour); the in-memory journal store's claims live in its process and end with it; another store's claim lasts as that store's lease says.
|
|
287
|
+
- **Known.** The serialization is the claim's: a journal store that takes claims only in this process (no `resumeClaim`), or a claim whose lease lapsed while its holder still ran, does not serialize — the person may be told the no stands while another leg runs the step once (KL-5229-a). Two processes on an SQL store were not measured here (the engine's own stores are in-memory and file). On a store whose claim release is asynchronous the release after a person's answer is recorded is not waited for: an immediately following resume may be told `continuing_elsewhere` once, and a process that exits without draining leaves the claim to its lease (KL-5229-b). A host that resumes a long workflow directly through `startWorkflow` pays about four times 7.70.0's store reads at the tip — the whole tree is read twice, once to choose the claim key and once under the claim: for a straight line of N runs about 4N reads by id and 2N listings, where 7.70.0 made N + 1 reads and 1 listing (KL-5229-c).
|
|
288
|
+
- **Pins.** `test/backlog5229-deny-serialized.test.ts` (S-held × B allowed / its person yes / its person no, with what B is told; S-during × B allowed / its person yes, B held in the gated step; S-after, B's whole run first; S-used-elsewhere, a continuation refused by the run that used the card; S-admission-for-answer, a host's direct resume; S-dead-holder; S-model-call; S-both-no; S-first, the control); `test/backlog4652-dead-holder-claim-takeover.test.ts` D2c; the `continuing_elsewhere` sentence re-pinned in `backlog4390-fix1`, `backlog4390-user-face`, `backlog4552-one-waiting-line`, `backlog4652-dead-holder-claim-takeover` D6c / D7 and `backlog5156-t2-claim-remaining` W1–W3.
|
|
289
|
+
|
|
290
|
+
### Stopping one member of a workflow run: `WorkflowHandle.stopAgent(callKey)`, a stream member's own `stop()`, and `TaskRegistry.stopWorkflowAgent` — the member's call returns `killed`, the run goes on, and a resume replays it stopped instead of running it again (#4760, member level; behavior change: additive, one new journal arm — hard-breaking at the type level, below — open to veto @server @test @cli @sdk; closed sets: +1 new, `WORKFLOW_AGENT_STOP_ANSWERS` (`stopped`, `already_terminal`, `not_found`, `not_local`, `park_resume_won`, `park_arbiter_unreachable`); exports: +3 — `WORKFLOW_AGENT_STOP_ANSWERS`, its type `WorkflowAgentStopAnswer`, and `WorkflowAgentStopReceipt` (a member stop's answer and what it says beside its word), all from the root; wire: the journal entry's `stopped` arm)
|
|
291
|
+
|
|
292
|
+
- **Rule.** A member's leg follows its call's signal and a stop of its own. A member a stop of its own ended settles `killed`, by its stopper (`stoppedBy`: the caller's word, `parent` by default — a service passes `user` for a person), on the paths it can end on that were measured (a result, a throw, a stop while it waited for a slot; the narrow windows where a stop does not end as `killed` or is not journaled as `stopped` — a stop during a throttle back-off, one before a stream member's pre-launch screening ends, a leg that completes after the abort — are KL-4760-l's, read in the code and not measured), its ending told as a stop of this member alone (`terminal.message`, never the leg runner's "run aborted"); its call returns that outcome — the script goes on — once its journal entry is written: the new `stopped` arm `{ result, stoppedBy }`, which a resume replays as stopped wherever the replay stands. A member whose leg is still unwinding when the run ends (the script did not wait for it, or the run's deadline came first) has that arm written by the run's end — its leg's own settle comes after and writes nothing — and the terminal drain waits on it. A member the run's own cancel or deadline ended is journaled as before and runs again on a resume; a stop of a member while the run's own signal is already aborted answers `stopped` naming the run's stopper (`parent` / `system`), not the caller's, and that member runs again too. A member waiting on an approval card while its run runs has the card expired first (a decision that took the card first wins: `park_resume_won`, said only of a card read back no longer pending; a card the store left pending without a decision — the run's grant on it superseded — or a row that is not this park's answers `park_arbiter_unreachable`, the park standing; a second stop of a member whose card another stop is asking the store about answers `park_resume_won` without reading the card; a run with no checkpoint store answers `park_arbiter_unreachable`); a member the run's end left running (`workflow.agent_outlived_run`, as that end wrote it — not a child's own failure carrying the code) has its leg stopped and its stopped arm written while the run's journal is not yet sealed; once it is (the terminal drain has begun — by the time `done` settles), the stop answers `already_terminal` (`failed`, its row's word): it is not stopped, not recorded as stopped, and a resume runs it again. `stoppedBy` that is not a non-empty string of at most 256 characters is refused (`TypeError`), the member left running. A stopped arm over the journal's entry cap holds a tombstone that says a resume replays the call as stopped. Answers: `WORKFLOW_AGENT_STOP_ANSWERS` = `stopped` / `already_terminal` / `not_found` / `not_local` / `park_resume_won` / `park_arbiter_unreachable` (the two card words are the task stop face's own for a background agent).
|
|
293
|
+
- **Before → now (measured, real Runner, through the package root).** Before (`origin/stage-7710`): the handle had no member stop (`stopAgent` undefined); `cancel` ended every member still running and the run; a member the cancel ended ran again on a resume. Now: `stopAgent` on a running member answers `stopped`, that call returns `killed` by the stopper, the other member and the run complete; a resume replays it stopped — its tool not entered again; the member completing first answers `already_terminal`; a queued member answers at once and ends `killed` without running when its turn comes.
|
|
294
|
+
- **Not in this release.** Stopping a whole run — one that waits on an approval included: a durable "stopped" mark that every continuation refuses, the expiry of the run's pending cards — comes with the tree id's second slice (7.72.0). A member of a run that has suspended on its approvals answers `already_terminal` (`parked`).
|
|
295
|
+
- **Hard-breaking (type-level, open to veto @server @cli @sdk @test).** `WorkflowJournalEntry` gains a third arm, `{ callKey, stopped: { result, stoppedBy } }` (the `result` and `parked` arms gain `stopped?: never`): a host journal store, or any code, that reads "not `parked`, so `result`" now gets `entry.result` typed `TaskResult | undefined` and no longer compiles where it hands it on as a `TaskResult` — read the `stopped` arm (or keep the entry whole) and it compiles again. Code that only constructs entries of the two older arms is unaffected. `WorkflowHandle.stopAgent?` and `WorkflowAgentHandle.stop?` are optional members: a handle a host assembles itself need not answer them.
|
|
296
|
+
- **For @server (S-4516, "stop member").** `TaskRegistry.stopWorkflowAgent(runId, callKey, access, { stoppedBy, workflowStore })`: a run this process holds answers through its handle (a handle that does not answer member stops: `not_found`); a run another process holds answers `not_local` (KL-4760-g). A journal store must keep the `stopped` arm verbatim — the journal store kit has a cell for it (`the STOPPED arm … round-trips verbatim`). A store that refuses the arm makes the stopped member's call reject with the store's error (the write on a result is awaited, as for every member's result); a store that drops the arm reads the member as never run, and a resume runs it again.
|
|
297
|
+
- **Operations.** An engine before 7.71.0 (7.70.0 measured) reading a journal with a `stopped` row refuses the whole resume with `workflow.journal_incompatible` and a sentence that reads like a damaged journal ("carries neither a result nor a parked arm — this journal cannot be resumed"): after a rollback to 7.70.0, that sentence on a run 7.71.0 wrote is the new arm, not damage — resume it on 7.71.0. Nothing of that run's members is run again by the older engine.
|
|
298
|
+
- **Known.** KL-4760-b, -d, -g, -h (a host log store that does not take the `stopped` arm, or cannot write it for the moment: the member is told stopped but a resume runs it again on the paths that swallow the write), -l (below); KL-4760-e no longer holds (a member that outlived its run is stopped while its journal is open).
|
|
299
|
+
- **A host's signal is read structurally** (`aborted`, `reason`, the `abort` event): a member's (`ctx.agent` / `ctx.agentStream`, on its spec or the call's options) and `startWorkflow`'s own `signal`. A compatible signal that is not Node's `AbortSignal` class (another runtime's, a shim's) runs a member as a native one does: the run follows it, once, with a native signal of its own that carries the host's `reason`, composes only that, and takes its listener off at the signal's abort or when the run retires; an `abort` event dispatched by hand while the signal still reads `aborted: false` stops nothing, as on a native signal. The engine sees a foreign signal's abort only when its own listener runs: a host listener added earlier can still read `ctx.signal.aborted === false` in its callback, and one that calls `stopImmediatePropagation()` keeps the engine from seeing the abort; a shim that dispatches the event before it writes `reason`, or reports `aborted: true` with no `reason`, gives members and the run Node's generic `AbortError` instead of the host's reason (KL-4760-m). The first 7.71.0 pre-release refused such a member before dispatch (`ERR_INVALID_ARG_TYPE`, no leg) where 7.70.0 ran it — fixed; 7.70.0 itself refused one on the stream lane and on `startWorkflow`'s `signal`, and both run now. Pin: `test/backlog4760-foreign-signal.test.ts` (F1–F8, each cell under a native and a foreign signal, the two readings equal, no listener left on the host's signal; F9 the event dispatched by hand; F10 no follower kept for Node's own signals; F11 a start whose setup throws leaves no listener).
|
|
300
|
+
- **Pins.** `test/backlog4760-member-stop.test.ts` (T0 the surface; S1 agent() lane through the package root, and the ending's words; S2 the resume replays it stopped, with its control; S3 the stream lane; S4a / S4b the stop and the member's own completion, both orders; S5 a member parked on its card, the stop first, the decision first, the store refusing the expire; S6 `not_found` / `already_terminal` / the stopper refused; S7 the registry's door, with a same-id run of another store registering during the read; S8 the journal reader; S9 a member that outlived its run, stopped after the run ended; S10 a queued member, both lanes; S11 a member the script did not await, stopped as the script returns; S12 the stop, then the run's deadline; S13 the run's cancel, then a stop; S14 a resume through a parked card past a stopped member; S15 the stopped arm's tombstone words); the journal store kit's stopped-arm cell.
|
|
301
|
+
|
|
302
|
+
### Two run-time reminders for the models the reference reminds — the silent-turn reminder ("The user hasn't heard from you in a while…") when the model has gone several requests without a word to the person, and the elapsed-time reminder ("Elapsed time so far: 3m 07s") at each boundary a person's input does not open (#4565; behavior change: a model whose prompt traits hold `silent_turn_reminder` / `timed_silent_turn_reminder` / `elapsed_time_reminder` gets new frames, open to veto @server @cli @client-core; closed sets: `ATTACHMENT_SOURCES` +2 `silent_turn_reminder` `elapsed_time_reminder`, hence `steering_injected.source` and `BundledAttachment.source` +2; exports: none; wire: two optional `TaskSpec.attachments` switches)
|
|
303
|
+
|
|
304
|
+
- **Rule.** Both ride the turn-boundary attachment lane (one more producer each; no second lane). Prepare reads the run's traits once into the lane — the silent reminder on `silent_turn_reminder` (its timed arm when `timed_silent_turn_reminder` is held too: the reference's Fable 5.2 / Mythos 5.2 bundle), the elapsed one on `elapsed_time_reminder`; the producers read only the lane. Default on; `TaskSpec.attachments.silentTurnReminder: false` / `elapsedTimeReminder: false` turns either off, a non-boolean refuses the task (`config.invalid_argument`).
|
|
305
|
+
- **When the silent reminder fires** (the reference's transcript walk, cli321 `d3r` / `u3r`): counted back from the last row, a request that speaks to the person (non-blank text, a visible thinking block, an `AskUserQuestion` or `ExitPlanMode` call) or the person's input that opened its leg (an objective, a resume's continuation) ends the stretch; a steer that lands mid-run, and a turn-boundary bundle without the silent reminder (the elapsed time, the token count, …), do not touch it (the reference's walk reads neither: there both are attachments; read in the code, not measured on the real 321); count arm — five silent requests since the stretch's last reminder, at most three reminders a stretch; timed arm — one silent request since the last reminder and sixty seconds of silence, no cap, the reminder itself restarting the silence. Never on a delegated child (the reference serves it on the main thread only).
|
|
306
|
+
- **The elapsed clock** is the session's, in this process: the person's new request on a top-level leg (an objective whose author counts as the operator's, or a resume whose continuation carries the person's parked steer or wake message) starts it again, at its commit; a steer that lands mid-run does not, whoever wrote it (the reference restarts its clock in its `processUserInput` only; read in the code, not measured on the real 321), nor do a delegated child's objective, an objective another author wrote (a recipe's own continuation), the engine's own deliveries or a task notification, and a child reads its root's clock. Minutes and two-digit seconds. A session continued in another process starts a clock at its first reading; so does a leg prepared without its tree's anchor (`RunInternals.rootSessionId` — e.g. a child's parked row continued by the host directly, not through the delegation layer), which keys its prompt seat on its own session and also judges its own Bash card (KL-4565-a; read in the code).
|
|
307
|
+
- **Who sees it.** A host that declares the reference's traits on a model (`REFERENCE_MODEL_PROMPT_TRAITS` gives Opus 5.5, Sonnet 5.5, Fable 5.1 / Mythos 5.1 the count arm, Fable 5.2 / Mythos 5.2 the timed arm; no preset row holds `elapsed_time_reminder`). A host that pins the closed set of `steering_injected.source` or of a bundle row's `attachments[].source` reads two more words (@server @cli @client-core); an older engine reading a transcript row that names one refuses that row's whole `attachments` member (it reads as a row without the record).
|
|
308
|
+
- **Pins.** `test/backlog4565-run-time-reminders.test.ts` (① – ⑭ through a real Runner, the stretch reader, the clock, the lane; ⑪b a non-boolean `elapsedTimeReminder` refused, beside the silent switch's own cell in ⑤); `test/prompt-assembly-event-registry.test.ts`, `test/event-registry-completeness.test.ts`, `test/backlog818-intact-lane.test.ts`, `test/backlog1255-output-style.test.ts` gain the two words.
|
|
309
|
+
|
|
310
|
+
### The reference's shell-first Bash card for its shell-first models under auto or bypass — the generic card less its dedicated-tool lines (the `IMPORTANT: Avoid using this tool …` line and the Glob / Grep line), nothing added, judged once per session (#4566; behavior change: one tool card's text on such a session, open to veto @server @cli @client-core; closed sets: `PROMPT_FACT_NAMES` +1 `shellFirstSession`; exports: none; wire: `ToolDescriptionVariant.facts` optional, `PromptRuntimeFacts.shellFirstSession` optional, the manifest's `selectors.facts` +1 key)
|
|
311
|
+
|
|
312
|
+
- **Rule.** The reference serves its trimmed short card (cli321 `xRe`, `Ilr`) when its auto mode or its session bypass mode is on and the main model holds `thrifty_sonic` / `fable_5_1_prompt_bundle` / `opus_5_5_prompt_bundle`, and caches that once per session. Here: the prompt fact `shellFirstSession`, judged by the session tree's first leg in this process from the mode it starts under (`auto`, `bypassPermissions`; a plan reads as the mode it was entered from, as the reference's auto stays active under its plan — the one such leg is a resumed one; every other mode reads as outside) and its model's traits, read by every later leg and delegated child; a mode switched mid-session, or a later leg in another mode, keeps the card (and the prompt prefix it sits in). A leg asking for `auto` where no classifier face is wired runs under `default` and judges as default.
|
|
313
|
+
- **Which models** (the reference's preset rows under bypass): Opus 5.5, Fable 5.1, Mythos 5.1. Every other model's card is byte for byte what it was.
|
|
314
|
+
- **A tool card may select on facts.** `ToolDescriptionVariant.facts` (optional): a conjunction over the facts a card is mounted with (`shellFirstSession` today); with it, `traits` may be `{}`. A fact a card is not mounted with, a non-boolean or an empty condition refuses the task (`config.tool_face_invalid`).
|
|
315
|
+
- **Known limit.** The judgment is in-process: a session continued on another Runner or in another process is judged again by its first leg there; a leg prepared without its tree's anchor judges for itself (KL-4565-a).
|
|
316
|
+
- **Pins.** `test/backlog4566-bash-shell-first-card.test.ts` (① the two cards, whole, against `test/backlog4566-bash-cards-golden.json`; ② the mode × trait table; ③ the preset rows; ④ once per session, mid-run, a child; ⑤ a new process; ⑥ the fact condition).
|
|
317
|
+
|
|
318
|
+
### One setting stops the Artifact tool asking before it delivers an artifact another person shared — `sharedArtifactReads`, on only where the user or the organization turns it on (#5209; one optional `RunnerDeps` seat `sharedArtifactReads`, one optional `ArtifactToolOptions` member `sharedReads`, one `ENTRIES_NOT_APPLIED_KINDS` word `setting_not_applied`, two new closed sets, nine root exports; behavior change: yes, only with the setting on; narrowing: none; widening: yes — OPEN TO VETO; hard-breaking: one, named below)
|
|
319
|
+
|
|
320
|
+
- **Who turns it on, and where.** A host hands the setting's layers on `RunnerDeps.sharedArtifactReads` (`{ managed?, user?, repo? }`, the layers `crossSessionInbound` takes; a getter is called once per run, at the root leg's prepare whose Artifact seat is valid; a delegated child — in the foreground, in the background, a fork, an observer — holds that reading and does not call it; every wake is a run of its own and calls it again — a retained teammate's wake, a teammate SendMessage revives from its stored row once it is no longer in memory (tier 3), a parked background agent's resume, a checkpoint resume; a root leg calls it whatever its `RunInternals` carry; a leg that holds no reading and reads none hands none down, so its child reads the seat itself). The first of the organization's and the user's own layers that states a value decides; a project's or a checkout's local settings have no vote — a settings file that arrives with a cloned repository cannot stop anyone's questions. A layer's value is its object's own member, `undefined` / `null` meaning unset. `resolveSharedArtifactReads` is the one reading (root export). The engine default does not move: unset is `ask`.
|
|
321
|
+
- **What stops asking.** With `allow`, the Artifact tool's own consent question on a shared target — wherever the tool asks it: `read`, `list_files`, `read_file`, and the current content a publish conflict hands back — is answered yes with nobody asked, under every permission mode (`dontAsk` included: there is no question left for it to refuse), and no classifier call is made for it under `auto`. The call's result says so: `details.allowedBySetting: { setting: "sharedArtifactReads", layer }`. No person's yes is remembered. **Known limit (KL-5209-a):** the setting's notice is told once per session and its key names only the entries that did not take effect — when the organization changes the setting in the middle of a session and the ignored entry is unchanged, the new value in force is not told (measured: organization `ask` → `allow`, project `allow` unchanged: the first notice says `inForce: ask`, the second is not delivered), so a screen may keep saying approval is needed after the tool has stopped asking.
|
|
322
|
+
- **What still refuses or asks.** The gate's rules on the `Artifact` tool (a deny or an ask, a person's or the organization's) and its hooks speak before the tool runs, as before (pin G1, `default` mode: a deny refuses, an ask asks the person); the owner judgment of every host answer; the read-deny tables and the credential floor, inside the task root and outside it — through `Read`, through the shell, and through the Artifact tool's own publish of a local file (read through the same tables as `Read`), with the read face `roots` or `open` (pins F1). Reading outside the task's directories without being asked stays the read face `open` (`RunnerDeps.readFace`), its own seat; this setting does not touch it.
|
|
323
|
+
- **Bad values are said.** A value that is no word of the setting (`ask`, `allow`) makes it `ask` where its layer decides; a value in a repository layer has no vote (the first 16 places of the list are looked at to be named, and how many more there are is said); a user word the organization's layer overrides is not in force. Each is told on `config.entries_not_applied`, kind `setting_not_applied`, once per conversation for a set of entries (while the session's announce record holds it) by every leg that read the seat — a root leg or a woken one — where its Artifact tool mounts, addressed as the leg's other notices are (a delegated leg's to the tree's root, naming the leg: `sourceSessionId`, `agentId`) (entry members `entry`, `setting`, `layer`, `reason` ∈ `SETTING_NOT_APPLIED_REASONS`: `unrecognized`, `layer_not_read`, `organization_decides`; frame members `inForce`, `decidedBy`, and `repoNotLookedAt` — present only when a `repo` list ran past its first 16 places, the number not looked at, the message saying it in words; `resolveSharedArtifactReads` returns the same optional member, `repoNotLookedAt?: number`, and the once-per-conversation unit counts it; pinned at 1 more place past the first 16). The seat's getter, or a layer's accessor, that throws fails the prepare.
|
|
324
|
+
- **Widening — open to veto.** With the setting on, another person's shared artifact reaches the model without the tool's own consent question (a rule on the tool still applies at the gate). Relative to the reference: the reference has no such setting (a shared artifact read asks once and the yes covers re-reads); a deviation, to be entered in the deviation register.
|
|
325
|
+
- **Hard-breaking.** `ENTRIES_NOT_APPLIED_KINDS` / `EntriesNotAppliedKind` gain `setting_not_applied`: a consumer exhaustive over the kinds adds an arm. Additive: the seat, the tool option, `SHARED_ARTIFACT_READS_SETTINGS` / `SharedArtifactReadsSetting`, `SETTING_NOT_APPLIED_REASONS` / `SettingNotAppliedReason`, `SharedArtifactReadsLayers`, `SharedArtifactReadsDecidedBy`, `SettingNotApplied`, `ResolvedSharedArtifactReads`, `resolveSharedArtifactReads`, and the optional member `InheritedGate.sharedArtifactReads` (the engine's carriage of a run's reading to the legs it bears; in-process only, never on a checkpoint) — it appears in the public types through the root-exported `RunInternals`, and a host's value there is taken only on a leg an engine lane bears.
|
|
326
|
+
- **Who does what.** **Until the server's settings contract package and the hosts' mapping land, writing this key in a settings file has no effect, and the engine says nothing about it (no host hands it over).** A host of one's own can hand the layers to the seat today. @server: add `permissions.sharedArtifactReads` (`"ask" | "allow"`) to the settings contract package, writable at the user and the organization layers only, and map the layers onto the seat. @cli: the same mapping from its settings files (project and local values handed as `repo`, so they are said, not dropped). @client-core: the settings page's switch writes the user layer; the notice kind's sentence is the engine's. @test: the black-box cells below.
|
|
327
|
+
- **Pins.** `test/backlog5209-shared-artifact-reads-setting.test.ts` (R: the reading; T: the tool × six modes × two layers, the conflict snapshot; L: through a Runner — the seat, the notice once per conversation, the getter; G1: the gate's rules; D: a delegated child × foreground / background / fork holds its parent's reading; W: a teammate SendMessage revives from its stored row reads the seat, both directions, and says a bad value; O1 the observer; K1 a root leg's handed reading; S3 a resume; F: the credential floor with the setting on, inside and outside the root × both read faces; F2 the factory default; L5 a seat's getter, a layer's accessor and a member accessor of the seat object that throw each fail the run at its prepare); `test/backlog4717-notices-second-slice.test.ts` ② (the kind's mint).
|
|
328
|
+
|
|
329
|
+
### A resume's config question refuses a money ceiling over a model with no price table, as the start's question does — and the resume itself refuses it before the claim, the row staying pending (#4925; behavior change: narrowing for a host that trusted the question's "ok", below, open to veto @server; closed sets: none; exports: none; wire: none)
|
|
330
|
+
|
|
331
|
+
- **Rule.** The refusal of a money ceiling the run holds (`limits.maxCostUsd`, or the `resourceSuspend` total — on a resume what the row's ledger has left of it) over a model whose price table is missing or unevaluable is ONE function (`unpricedModelRefusal`, `src/core/runner/side-call-account.ts`). The start's doors, prepare and `Runner.judgeTaskStart` asked it already; the resume's door function (`refuseResumeDoors`, `src/core/runner/prepare-config-doors.ts`) now asks it too, over the model as prepare resolves it, with the row's ledger — so `Runner.judgeResumeConfig` and the resume's pre-claim ladder (`src/core/runner/resume-admission.ts`) say what the resume would. A model that does not resolve is still prepare's refusal to give, after the claim.
|
|
332
|
+
- **Before → now (measured, real Runner, a parked row resumed under a model with no price table, total 5 USD).** 7.71.0 line before: the question answered `ok` (total handed again or only in the row's ledger; `limits.maxCostUsd` handed again), and the resume ended `failed:config.limit_invalid` after the claim. Now: the question answers `config.limit_invalid` and the resume is refused `checkpoint.config_refused` (`detail.code` `config.limit_invalid`, the same sentence) before the claim; the row is byte for byte as it was, and a corrected resume redeems the same token. A priced model, or no ceiling held (`limits.maxCostUsd` not handed again — the row does not carry it): unchanged, `ok` and completed.
|
|
333
|
+
- **Narrowing (open to veto).** @server: a host that read the question's `ok` as "this resume will run" for such a config was told the truth only by the resume's end; now the question says it, and the resume no longer consumes the row for it (a store without `reopen` used to keep it consumed).
|
|
334
|
+
- **Pins.** `test/orch-budget-b2.test.ts` (#4925 cells: the start control, the resume × total handed again / only in the ledger / `limits.maxCostUsd`, the priced control, the model that does not resolve, and the refused resume's row redeemed by a corrected resume — a priced model on the same token — which completes).
|
|
335
|
+
|
|
336
|
+
### A side call whose reply carries no usage is judged like one that reports it — under a money ceiling, the run that made it stops at its turn's end as the run above it already did (#4926 ①; behavior change: narrowing, below, open to veto @server; closed sets: none; exports: none; wire: none)
|
|
337
|
+
|
|
338
|
+
- **Rule.** `recordSideCallUsage` (`src/core/runner/side-call-account.ts`) returned before the pricing judge when a side call's reply stated no usage object; it now asks the same judge a reported reply is asked (`priceReply` → `callPriced`, on the model that answered), so a call on a model with no price table marks the run's spend unpriced either way.
|
|
339
|
+
- **Before → now (measured, real Runner: the permission classifier on a model with no price table, a money ceiling of 5 USD).** Reply with usage: the root, the child and the parent stop (unchanged). Reply with no usage: before, the parent stopped, the child and the root ran to completion with `usageMissing` true and the spend unmarked; now all three stop `failed:config.limit_invalid`, `usageMissing` still true. A priced side-call model with no usage reported: completes, as before. The same branch is taken by every booking that carries no reply: the advisor tool's own catch after ANY failure of a consultation (a thrown call, or a stream that ends with no final message — measured: an advisor on a model with no price table under a money ceiling ran to completion before and now stops `failed:config.limit_invalid`; a priced advisor model is unchanged), and the classifier cut by its deadline or a cancel (read in the code, not measured). Their cost is unknown, so on a model with no price table it is read as unpriced spend, as a reported call is.
|
|
340
|
+
- **Narrowing (open to veto).** @server: three forms that used to finish now stop at that turn's end, naming the model and its seat, when a money ceiling holds the run and the side call's model has no price table: (1) a side call that reports no usage (the root and the child; the parent already stopped); (2) an advisor consultation that throws or whose stream ends with no final message; (3) a classifier cut by its deadline or a cancel (read). Two more readings change without any ceiling: the result's `stats.costMicroUsd` is no longer given when such a call ran on a model with no price table (before it gave the lower bound, e.g. 6596 micro-USD in the measured run; with usage reported it was already absent — measured), and a deployment usage window that declares `maxCostUsd` refuses the settlement `config.usage_window_unpriced` (measured; an unevaluable price table, NaN rate, with no usage reported is refused the same way). A priced side-call model is unchanged in all of them.
|
|
341
|
+
- **Known limit (KL-4387-q ⑦, rewritten).** What still books nothing is the call that THROWS in the classifier's own request (measured: parent stops, child and root complete, `usageMissing` false), the compaction derived legs' throw and a mod's call without a reply (read, not measured); the `Runner.compactSession` derived call runs outside any run, so no ceiling can stop it. Whether a thrown call counts as spend is a design question, not a change of the judge.
|
|
342
|
+
- **Measured, unchanged (#4926 ②, KL-4298-b).** A request asked at fast speed whose reply carries no usage, on a table with no fast tier: the account's reservation reads the standard rates as the stand-in (admitted at a ceiling where a table with a fast tier is refused), the run's own booking books nothing on either table. The reference prices a call only by the `speed` its usage states (cli321.js:277306), so no reading is changed.
|
|
343
|
+
- **Measured (#4926 ③, KL-4387-q ⑤).** The unpriced mark does not cross a park: unpriced in the turn that parks, then resumed, the run completes; the same turn with no park stops; unpriced after the resume stops (`test/orch-budget-b2.test.ts`, with the no-park control).
|
|
344
|
+
- **Pins.** `test/orch-budget-b2.test.ts` (#4926 cells ① ② ③; ①: the stop's sentence, the money figure with no ceiling, the usage window, an unevaluable table, the advisor's thrown consultation and its stream with no final message × priced / unpriced).
|
|
345
|
+
|
|
346
|
+
### The verification gate's verifier and fix legs keep the implementation leg's read block, command sandbox requirement and external-content-target fold after `resumeWithVerification`, the verifier now runs its commands in the task's sandbox, and a leg that throws past its result assembly keeps its posture seats — each restriction is the stricter of the completed result's seat and the caller's own word (#5249; behavior change: narrowing, five, and one class of widening, below, open to veto @server; closed sets: none; exports: none; wire: +4 optional members — `TaskResult.effectiveBlockReadsOutsideRoots` / `effectiveSandbox` / `effectiveExternalContentTarget` (and the result types built on `TaskResult`), `RunInternals.externalContentTarget`)
|
|
347
|
+
|
|
348
|
+
- **Rule (one, the three seats alike).** For each restriction, two declarers — the completed leg's own resolution on its result and the caller's own stated value — and whichever restricts, restricts; the caller can only tighten (its `false` or its silence lifts nothing the result says). A leg's postures that a parked row keeps for its resume — the read block (`CheckpointState.readBlock`), the command sandbox requirement (`commandSandbox`, a floor under the resume's own) and the external-content-target fold (`externalContentTarget`) — ride the leg's result as engine-filled observations (`effectiveBlockReadsOutsideRoots` / `effectiveSandbox` / `effectiveExternalContentTarget`), minted in one place (`legPostureSeats`, `src/core/runner/prepare-task.ts`) and assembled onto the result by one function (`resultPostureSeats`, `src/core/runner/assemble-result.ts`) that both of the result's mints call — the run path and the stream layer's failure backstop. The verification gate (`runWithVerification`, `resumeWithVerification`, `verifyCompleted`) hands both of its later legs: the read block when the result or the caller's `blockReadsOutsideRoots: true` says so (the clamp carrier); the sandbox boundary the implementation leg actually ran in, with the keys the caller's `sandbox` states laid over it by the law a resume already uses (`mergeChildSandbox`: the held value is the floor; a stated switch, list, credential mode or signing word only tightens it; a key the caller does not state is the held value's; the mechanism settings with no stricter side — proxy ports, `tlsTerminate`, `ripgrep`, the helper paths, `awsPairs` — and a shared credential's other members stay the held value's, whatever the caller states); the external-content fold (`RunInternals.externalContentTarget`, a join beside the environment's declaration and a resumed row's record).
|
|
349
|
+
- **Before → now** (measured, real Runner; a task parked on an approval and resumed with a config that does not send the seat again). Read block: the verifier read outside the task's directories with no question under a standing `Read(//<dir>/**)` allow row, and was refused by its read-only fence without it; the fix leg read with no question under the row, and parked on a question without it → both legs refuse the read at the gate in the read block's words, zero questions. Sandbox: the fix leg's command started with no sandbox instruction → inside the parked boundary. External target: the verifier and fix legs did not state the external target the implementation leg stated (the memory face and the environment disclosure read it) → they state it. A first run (`runWithVerification`) already carried the read block on both legs, the sandbox on its fix legs and the fold wherever the environment declared it; its readings are unchanged.
|
|
350
|
+
- **Narrowing (open to veto @server).** A host that resumes through `resumeWithVerification` without re-sending the seats gets refusals where it got bytes or a question (the read block), sandboxed fix-leg commands where they ran unsandboxed, and external-content handling on the two legs. A host that re-sends the seats exactly as the parked task had them sees no change from these three (re-sending fewer sandbox keys meets the widening below), but meets the verifier narrowing below like everyone else. A `verifyCompleted` caller whose own object says `blockReadsOutsideRoots: true` or states a `sandbox` keeps getting both (as in 7.70.0), whatever the result carries.
|
|
351
|
+
- **Narrowing: the verifier leg runs its commands in the task's sandbox (open to veto @server).** Before (measured on 7.69.1, the same on the 7.70.0 line): under a task that requires a command sandbox — `failIfUnavailable: true` included — the verifier leg, which mounts `Bash`, started its commands with no sandbox instruction, first run and resumed. Now it runs them in the implementation leg's boundary, first run and resumed; where the sandbox is unavailable and the requirement says it must be there, the verifier leg is refused at its prepare and the gate returns `unverified` (`no_verdict`), never a verifier run outside the sandbox. Who meets it: a host that requires a sandbox and relies on the verifier running something outside it (a network fetch, a write outside the boundary). What to do: declare what the verifier needs in the task's `sandbox` (an allowed domain, a writable path), or run that check outside the gate. Where the environment keeps no command sandbox at all and the task requires one, the verifier cannot run there: run the gate on an environment that keeps one, state `failIfUnavailable: false` on the task itself if commands outside the sandbox are acceptable for it (a later `false` on the resume or the `verifyCompleted` object cannot lift a held `true`, explicit or by default), or verify outside the gate. The gate reports only `unverified` / `no_verdict` for such a refusal, not its cause (known limit KL-5249-b).
|
|
352
|
+
- **Widening: the later legs run in the implementation leg's boundary, the keys the caller leaves unwritten included (open to veto @server).** On `resumeWithVerification` and `verifyCompleted`, a sandbox key the caller's object does not state is the held requirement's on both later legs — the parked row's (as the resumed leg's own already was) or the result's. Before (the 7.70.0 line), the fix leg read only the caller's object, so a key it left out took that object's default. So, against 7.70.0, each of these now reaches the fix leg as it reached the implementation leg: `failIfUnavailable: false` (parked `{ enabled: true, failIfUnavailable: false }`, resumed `{ enabled: true }`, no sandbox on the environment: the fix leg was refused at its prepare, `config.command_sandbox_unavailable`; now it runs outside, where the implementation leg ran — measured), an allow-list entry (`filesystem.allowWrite`, measured: the fix leg's boundary keeps it), a weakening switch (`enableWeakerNestedSandbox: true`, measured on the review leg's probe) and every mechanism setting; the `ignoreViolations` the parked row carries comes along into the fix leg too when the caller leaves it unwritten (it only changes the violation report, no boundary widens). A host that wants the stricter value of a switch or an allow list states it on the resume or on the caller's object: a stated key only tightens (`failIfUnavailable: true` on the resume refuses the resumed leg itself, and no leg starts a command — measured; an empty allow list empties it). The mechanism settings cannot be restated that way (a later `awsPairs: []` leaves the held pairs): the value has to be right on the task whose requirement is held.
|
|
353
|
+
- **Narrowing: the merge law itself — a stated signing word and a repeated credential (open to veto @server).** The one law (`mergeChildSandbox`) is also what a resume and a child the delegation lane builds run under. Before (measured on 7.69.1 and on the 7.70.0 line, at the function and on a real Runner): a stated `credentials.sigv4.streaming` / `presigned` / `sigv4a` of `"deny"` beside a held `"passthrough"` was ignored — the resumed leg and a delegated child kept `"passthrough"` — and a credential the held list named twice (`deny`, then `mask`) folded to the later `mask` when the other side stated its own list. Now a signing word is `"deny"` when either side writes it, and — where a held requirement exists and the other side states that credential list — a credential named more than once is one entry with the stricter mode (`deny` over `mask`) and no-match word; its other members (`injectHosts`, …) stay as before the fold (a name the held list repeats: its later entry's; a name both sides write: the held entry's), so no host list widens. A list the other side does not state passes as it stands, repeats included. Who meets it: a host that resumes, or spawns a child, stating `"deny"` over a parent's `"passthrough"` — its commands now run with signing passthrough denied, as it asked. A host whose held list names a credential twice, `deny` and `mask`, and that states the list on a resume, a child or the gate: that credential is now denied on those legs where it was masked; name it once, with the mode you want.
|
|
354
|
+
- **The failure backstop.** A leg that throws past its result assembly after its identity wiring (the stream layer's backstop result, terminal `failed`) carried no posture seat. It now carries every one the run path carries — the read and write faces, the deny additions, the declared places and the three above — so a follow-on leg folding them keeps them on that path too (measured, one cell per seat). A leg that throws between the end of its prepare and that wiring still carries none (known limit KL-5249-a; the gate answers such a result `impl_incomplete` and dispatches no leg, so nothing widens).
|
|
355
|
+
- **Not done here.** A host that resumes a delegated leg's row through the gate: the tool ceiling, the leg's own tool lists, their judgment and the delegated-child mark the row keeps reach the resumed leg only (read from the code). The resumed leg's inherited chain reaches the gate's later legs only when the host re-supplies it on `internals.inheritedGate.parentConstraints` (now said in the integration doc). Known limit KL-4607-o retired.
|
|
356
|
+
- **Pins.** `test/backlog5249-gate-read-block.test.ts` (fresh / resumed × verifier / fix × with / without the allow row, the seat on and not re-sent; the same re-sent; the seat absent = the base's readings; `verifyCompleted`: the result's seat with the caller silent or saying `false`, the caller's `true` without the seat, neither), `test/backlog5249-gate-resume-sandbox.test.ts` (the verifier's and the fix leg's starts, fresh and resumed; re-sent; the parked lenient requirement resumed strict, with and without a stated `failIfUnavailable: true`; `verifyCompleted` with the caller's stated keys; none), `test/backlog5249-gate-resume-external.test.ts` (resumed onto an undeclaring environment; fresh on a declaring one; none), `test/backlog5249-backstop-posture.test.ts` (the eight seats on the backstop's result), `test/backlog5249-merge-law.test.ts` (a stated signing `deny` on `verifyCompleted`, a resume and a delegated child; a repeated held credential, its later entry's hosts kept; each signing word, both directions, at the function; a held `allowWrite` entry the resume leaves unwritten; the gate's entry copy).
|
|
357
|
+
### The project's instruction files reach the model whatever tools the run mounts — a run with no `Read` on its roster (only a caller's tools, an empty tool list, only `Bash`) loads its CLAUDE.md as the default roster does; what refuses the model's own `Read` of the file still withholds it (#4542; behavior change: widening against 7.67.0 – 7.70.0, one, below, open to veto @cli @server @test; closed sets: none; exports: none; wire: none — one notice sentence reworded)
|
|
358
|
+
|
|
359
|
+
- **Rule.** Whether the roster mounts `Read` is no reason to withhold an instruction file. The file is judged as the model's own `Read` of it would be: the read-deny table and the read roots when its path resolves, every rule layer through the served-read judge with every ask held; the probe carries the face the roster gives `Read` when one is mounted and none otherwise — the reading the person's attachment and the changed-file notice already had (`src/core/runner/prepare-turn-wiring.ts`, one reader of that face; `src/core/runner/nested-memory-lane.ts`, the branch that withheld every member on such a run is gone; `SyntheticServedReadCall.face` is optional). `projectMemory: "disabled"` stays the off switch.
|
|
360
|
+
- **Against 7.70.0 (widening, open to veto).** Before, on a run whose roster had no `Read`, every member of the declared family was withheld, each told once as `instructions.withheld` `admission_unknown`. Now each is loaded unless a read-deny row, the read roots or a rule layer refuses it — the reference (Claude Code 2.1.321) sends the project's CLAUDE.md on every tool face it was measured on (`--tools Bash`, `--tools ""`, the default, the interactive face: once per request, in the first user message). Who sees it: a host that runs with a narrowed tool list (a chat face with no file tools, a Bash-only face) now has the project's instructions in the model's context; a host that wants them out says `projectMemory: "disabled"`.
|
|
361
|
+
- **What still withholds on such a run** (measured, real Runner): a read-deny row naming the file and a credential-shaped name of the built-in table (`rule_denied`), a link out of the read roots (`outside_roots`), a rule layer's deny of the file or of every `Read` by name (`rule_denied`), a rule layer's ask (`approval_required`; before, all three read `admission_unknown`). The `admission_unknown` notice's second sentence no longer says to check that the run has the Read tool.
|
|
362
|
+
- **Known limit (KL-4542-a).** On such a run the probe carries no face: a session's `allowDirs` reads it as a write and refuses it (`rule_denied`), and a deployment policy keyed on `req.face` reads another arm — as the person's attachment on such a run already did before this change. Measured: the `allowDirs` case withholds the instruction files and the attachment as `rule_denied`, and the notice's way out ("Remove the read rule that refuses it…") names a read rule the session does not have (#5213).
|
|
363
|
+
- **Pins.** `test/backlog4542-instructions-without-read.test.ts` (A the five roster arms; N what still withholds; F the probe's face on each roster, the instruction file's and the attachment's alike; M the attachment and the instruction file on the same run), `test/backlog3889-nested-memory-lane.test.ts` P7d re-pinned, `test/backlog4822-withheld-way-out.test.ts` W3 re-pinned.
|
|
364
|
+
|
|
365
|
+
### An attachment frame's sentence sends the model only to a file tool the run mounts — on a run with no `Read` (or no `Grep`), the notes that said "use the Read tool" say what was not shown and that this run cannot read it; with the tools mounted every sentence is byte for byte what it was (#4495, with #4542; behavior change: model-facing wording on runs without the tool, below; divergence: one, wording only, below, open to veto; closed sets: none; exports: none; wire: none)
|
|
366
|
+
|
|
367
|
+
- **Rule.** The frames' sentences (a person's attachment, a compaction's restore, an instruction file) read the run's roster through one reading (`frameFileToolsOf`, `src/core/user-attachment.ts`: `Read` and `Grep` mounted or not, aliases resolved), at the mint; a sentence names a tool only where it is mounted. The same root as #4542: whether the run has `Read` decides only what the model is told about reading a file itself, never whether the engine shows it.
|
|
368
|
+
- **The sentences that change on a run without the tool** (with it, unchanged): a partial page — "… the rest is over the size limit and is not shown, and this run has no tool to read it."; lines too long to page — "Use the Read tool with offset and limit to see the rest." (no Grep) / "Use the Grep tool to search the rest." (no Read) / "This run has no tool to read the rest." (neither); contents too large for the request — "Read it yourself with the Read tool — a large file in portions with its offset and limit; …" (no Grep) / "Search it with the Grep tool for what you need; …" (no Read) / "This run has no tool to read it; if you answer without it, tell the user so." (neither); a listing too large — "This run has no tool to list it; if you answer without it, tell the user so." (neither); a restore too large — "This run has no tool to read it again."; an approval the load does not give and a read the environment cannot bind — the second sentence ("If you read it yourself with the Read tool, …") is left out; a PDF given as a reference — "This run has no tool to read its contents." in place of the Read tool's pages guide.
|
|
369
|
+
- **Against the reference (wording only, open to veto).** Claude Code 2.1.321 names its Read tool in these sentences whatever the run mounts (`cli321.js:288971`); here the sentence differs only on a run that does not mount the tool, and what the engine sends is the same. Precedent: #4468 (text follows what is mounted).
|
|
370
|
+
- **Who sees it.** A host running a narrowed tool list (a chat face with no file tools, a Bash-only face): the model is no longer pointed at a tool it cannot call. Frames minted outside a Runner (a direct caller of the frame functions) read every tool as mounted.
|
|
371
|
+
- **Known limit (KL-4495-a).** Three sentences are not minted where the frame is and still name `Read` on such a run: the pointer a request over its line puts in place of a frame, the reader's own refusal of a whole file over its byte cap (copied into the frame), and a frame minted earlier in the session when `Read` was mounted.
|
|
372
|
+
- **Pins.** `test/backlog4495-frame-sentences-follow-the-roster.test.ts` (U the cut notes under four rosters, the restore's sentence; R a real Runner: an attached file over the read limit, the task root's CLAUDE.md cut on a run with no Read, a PDF reference). **Pinned up to here:** the partial page, the lines too long to page and the restore's sentence under all four rosters (U1 – U3), a file too large for the request and the PDF reference through a real Runner (R1, R3), and the instruction lane's cut note (R2). **Not pinned on a run without the tool:** the directory listing's "This run has no tool to list it" and the left-out second sentence of the approval and cannot-bind notes — they follow the same reading (`noteSentence`, `src/core/user-attachment.ts`) and are read in the code, not run; the mounted wordings of both are pinned in `test/backlog1311a2-attachment-frame.test.ts` and `test/backlog3736-3737-attachment-refusal-reason.test.ts`.
|
|
373
|
+
|
|
374
|
+
### An instruction file the family names that links outside its root is still loaded, as the reference loads it, and the person is now told where it came from — `instructions.outside_root`, once per session per (path, target) (#4820; behavior change: a new user notice, attention `inform`; hard-breaking: one, type-level — `EngineNoticeCode` +1, open to veto @cli @client-core @test @server; closed sets: `ENGINE_NOTICE_CODES` +1 with its audience, attention and minter rows; exports: none; wire: a new notice code, additive)
|
|
375
|
+
|
|
376
|
+
- **Rule.** A member the family names (`files`, `alternate.files`, `localFiles`, at a root or below it) is judged as the model's own `Read` of it would be and nothing more — the reference does not judge where its depth-0 CLAUDE.md really lies. When its real location, links followed, is outside its root and the task root, the frame is minted as before and the person is told once per session per (`path`, `target`): `detail: { path, target, sessionId, runId }`, the location only, never the contents; the sentence names the file it leads to and the two ways out (a file inside the root, or switching the project's instruction files off — `projectMemory: "disabled"` on the request; the sentence names no engine identifier). A delegated leg records it and says nothing (`src/core/runner/nested-memory-lane.ts`, `tellLoadedOutside`, at the frame's receipt; `src/core/governance-codes.ts`).
|
|
377
|
+
- **Before → now** (measured, real Runner, open read face): the task root's CLAUDE.md linked to a file outside the workspace was in the request with no notice → the same request, one `instructions.outside_root` notice; the session's next run says nothing again; a member of an accessed directory the same. Told when the frame reaches the transcript (a load whose frame is handed back, or a run that never sends it, says nothing). Unchanged: on a `roots` face the link is withheld (`outside_roots`) unless a read root holds its target (then loaded, and told); a link to a credential-shaped file or to a file a read-deny row names is withheld (`rule_denied`), not told as loaded; a link that stays inside the root, and a plain file, say nothing. A file the lane finds by itself (a rules directory's, an include's) outside its root is still not loaded (`outside_its_root`).
|
|
378
|
+
- **Hard-breaking (type-level, open to veto).** `EngineNoticeCode` gains `instructions.outside_root`: a host table typed `Record<EngineNoticeCode, …>` no longer compiles until it has the row (@cli @client-core @test @server — a shell's rendering table, a client's notice catalog). It is not split out of another code (no lineage row). Attention `inform`: linking the instruction file to a shared one is an ordinary setup, and nothing is owed unless it was not meant.
|
|
379
|
+
- **Not done here.** The wiring manifest's `instructions.selected` still does not list such a member (it is keyed by its target, outside the root — KL-3914-symlink-member, a design of its own).
|
|
380
|
+
- **Pins.** `test/backlog4820-outside-root-notice.test.ts` (O1 – O8; O4b the roots face with a read root holding the link's target: loaded and told once); `test/backlog4696-notice-attention.test.ts` and `test/governance-codes.test.ts` gain the row.
|
|
381
|
+
|
|
382
|
+
### `classifier.seat_rate_limited` asks the person's attention again — its attention row moves from `inform` to `act`, so a session's screen shows it (#5204; behavior change: a notice's attention; hard-breaking: one — `NOTICE_ATTENTION` row `classifier.seat_rate_limited` inform → act, open to veto @client-core @cli @server @test; closed sets: none — no code added or removed; exports: none; wire: the `attention` member of that one notice's frame)
|
|
383
|
+
|
|
384
|
+
- **Rule.** The notice is told at most once per run, after the auto-mode classifier seat was rate-limited several times in a row, and says the run's remaining gated calls have another judge — the same kind of fact as `classifier.unavailable` and `model.fallback`, both `act`. Audience (`user`), minter (`engine`) and sentence unchanged (`src/core/governance-codes.ts`, the user × act group).
|
|
385
|
+
- **Hard-breaking (open to veto).** A frame of this code carries `attention: "act"` where 7.69.0 – 7.70.0 carried `"inform"`: a surface that shows user × act notices on a session's screen (a terminal, a client) shows one more line on such a run; a reader keyed on the table it was built with keeps its own reading. Not a narrowing or a retirement, so no lineage row.
|
|
386
|
+
- **Known limit (KL-5204-a).** While the rate limit lasts, each run of the session says it once: N runs, N lines on the screen with the same way out (measured: threshold 1, four runs of one session = four lines); telling one state once is the notice face's reading (#5199).
|
|
387
|
+
- **Pins.** `test/backlog4696-notice-attention.test.ts` (the code-by-code column, the screen's count and the cell user × act each one more and the cell user × inform one fewer — this ticket's own step, the file's absolute numbers being read at the line's head, where other tickets' notice changes also move them — the frame's stamped attention).
|
|
388
|
+
|
|
389
|
+
### The entry-id grammar is on the package root — `isValidEntryId`, the one judgment of "is this key an entry id" a memory backend outside core reads (a key it fails takes the legacy form, `legacyId: true`, on its delete evidence) (#4878; additive; behavior change: none; closed sets: none; exports: +1 — `isValidEntryId`; wire: none) (@server)
|
|
390
|
+
|
|
391
|
+
- **Rule.** The root exports the leaf's own binding (`src/core/memory-engine/frontmatter.ts`), the predicate the File backend's read gate (a parsed file's id) and write gate (a patch's id; a delete event's `legacyId` ⇔ the key fails it) already share; a backend outside core asks it rather than copying the pattern.
|
|
392
|
+
- **The evidence-channel table** the ticket also named (the `delete` channel and its `legacyId` marker) is already on this line, in the `TransferEvidence` comment's known-channel list (#4786, #4908).
|
|
393
|
+
- **Pins.** `test/backlog4878-entry-id-root-export.test.ts` (the root binding is the leaf's; the grammar's edges; the read gate agrees with it; the consumer smoke's checked list).
|
|
394
|
+
|
|
395
|
+
### A store can judge the grant holder of every write a run hands it — one declaration `fence = { holder: "writes" }` for the session store and the checkpoint store alike, the in-tree stores judging the holder of each append, leaf move, `put`, steer, `expire` and `resolve` first and in the write's own atomic step, and a root codec for the holder value (#5190 slice A, the store face; behavior change: none when no write carries a holder and the store's `fence` and `holderIsCurrent` are absent or well-formed — byte for byte what 7.69.x does (measured on all four in-tree stores); outside that scope, the three narrowings below; the engine does not yet hand the holder to these writes, which is the run face's slice; narrowing: three, below, open to veto — an in-tree store with no judge refuses every write that carries a holder, a `holderIsCurrent` that is not a function is refused when a checkpoint store is built, a malformed `fence` on the checkpoint seat refuses every run; hard-breaking: four, below (the second, the resume word's rename, lands with slice B1 in the same release), open to veto @server; widening: none; closed sets: `ConfigRefusalCode` +`config.invalid_session_store`; error words outside every closed set (neither a `CheckpointErrorCode` nor a `SessionError` kind): `holder.superseded` on a plain `Error` named `HolderSupersededError` (`holderSupersededError`; read it with `isHolderSuperseded`, which reads only the `code`), and `holder.malformed` on one named `GrantHolderMalformedError` (`decodeGrantHolder`) — a host that catches by `instanceof SessionError` / `CheckpointError` does not catch them; the kits' `onOptionalMember` report: the session kit's member +`holder`; the checkpoint kit's third argument gains `composed`, `grants` and `onOptionalMember` (new in this release; its report's `member` is `"claimTerminal"` or `"holder"`, with the cell's name); exports: +8 (`encodeGrantHolder`, `decodeGrantHolder`, `holderSupersededError`, `isHolderSuperseded`, types `GrantHolderParts`, `StoreHolderFence`, `CheckpointWriteOptions`, `ContractGrants`), none removed; wire: none) (@server @test)
|
|
396
|
+
|
|
397
|
+
- **The rule.** A store that declares `fence = { holder: "writes" }` judges the holder of every write it is handed that carries one, by the deployment's one judge `holderIsCurrent` ("this grant names the run's current leg and the run has not ended"; a run row whose status is outside the host's live set answers `false`), first and in the same atomic step as the write: a session append or leaf move and a card `put` or steer throw `holder.superseded` with nothing written — first: before an expected-leaf conflict, whatever the leaf, and before the handle's own staleness (a row deleted and created again answers a dead grant `holder.superseded`, `log_closed` otherwise; a wrapper that checks its occupant before it forwards the write keeps the same order — S-H3b runs on the composed store and is red otherwise) — and a card `expire`, `resolve` or either `claimTerminal` arm loses with the row as it was. The holder rides `SessionWriteOptions.holder`, the new last argument `{ holder }` of `put` / `setPendingSteer` / `expire` (`CheckpointWriteOptions`), `ResolveExpectation.holder` (as before) and the expire arm's new `expect.holder`. A write with no holder is judged exactly as before. A judge answering something not a boolean is refused by the store's seat code; a judge that throws makes the write throw. On the file checkpoint store the holder of `put` / `setPendingSteer` / `expire` is read once, when the write is called (a write queued behind another of the same token judges that value). On the CAS verbs the row, scope and generation are read first, as before: a holder on a row that would lose anyway is not judged. "One step" is with respect to other writers and to the grant table's transfers; values the caller hands the write that run code when read are the caller's own.
|
|
398
|
+
- **Where the judge sits.** `InMemorySessionRepo` and `FileSessionRepo` take `holderIsCurrent` and hand it to every storage they open (`SessionRepo.fence`, mirrored by `TtlSessionStore` as `SessionStore.fence`); the two checkpoint stores already took it. On the file lane the judge belongs to the shared authority over a session file and over a checkpoint directory's ledger, within one process: a second repo or store joining it with another judge — or with one beside none — is refused (`config.invalid_session_store` / `config.invalid_checkpoint_store`) and gives its share back; the one that opened first keeps writing. The judge is compared by identity (`===`): a wrapper `h => judge(h)` is another judge. `FileStorageBackend` builds its checkpoint store in its constructor, so a store the host builds over the same root after it must be given the very function the backend was given; a session is judged when it is opened, not when a repo is built. Across processes nothing compares judges: two processes each building a `FileSessionRepo` over one data root judge by their own (a checkpoint directory admits one process, by its own lock). A judge option that is not a function is refused when the store is built (`config.invalid_argument`).
|
|
399
|
+
- **Narrowing 1 — an in-tree store built with no judge refuses every write that carries a holder.** A store with no judge cannot tell a current grant from a dead one, so a holder it is handed is never current: the session append and leaf move (`InMemorySessionRepo`, `FileSessionRepo`), `put` and `setPendingSteer` throw `holder.superseded` with nothing written, and `expire` answers `false` with the row as it was — an empty string or `null` in the holder's place is a holder too. 7.69.x let these writes land (it read no holder on them); a `resolve` carrying a holder already lost with no judge. Who sees it: today only a host that calls a store directly with a holder — the engine hands none to these writes yet. What to change: give the store the deployment's judge (`holderIsCurrent`), or pass no holder.
|
|
400
|
+
- **Narrowing 2 — a `holderIsCurrent` that is not a function is refused when a checkpoint store is built.** `InMemoryCheckpointStore` and `FileCheckpointStore` (and `FileStorageBackend`'s top-level option) throw `config.invalid_argument` for `null`, a string or an object in the option, before the data root is created; 7.69.x built both stores and ignored the value. Who sees it: a JavaScript host passing `holderIsCurrent: null` (or a misspelt value) now fails at startup. What to change: pass a function or leave the option out.
|
|
401
|
+
- **Narrowing 3 — a malformed `fence` on the checkpoint seat refuses every run.** A checkpoint store whose `fence` is neither absent nor `{ holder: "writes" }` (with `requireHolder` absent, `true` or `false`) — `{}`, `"x"`, `null`, `{ holder: true }` — is refused at the checkpoint store seat (`config.invalid_checkpoint_store`) on every run, with or without a holder; 7.69.x refused only a run that carried one. What to change: declare `{ holder: "writes" }` (a store that judges every write) or nothing.
|
|
402
|
+
- **Hard-breaking 1 — `CheckpointStore.fence`'s value `{ holder: true }` is retired for `{ holder: "writes" }`.** `true` promised `resolve` alone; a store keeping it would be trusted with writes it never judged. Who is red: a host store that declares `fence = { holder: true }` — its runs are refused at the checkpoint store seat, `config.invalid_checkpoint_store`, whether or not they carry a holder, the sentence naming the new value. What to change: declare `{ holder: "writes" }` once the store judges the holder on `put`, `setPendingSteer`, `expire` and both `claimTerminal` arms as well as `resolve`; until then declare nothing (and pass no holder). The in-tree stores built with a judge answer `{ holder: "writes" }` (`StoreHolderFence`).
|
|
403
|
+
- **Hard-breaking 2 — the resume's refusal word `resume.holder_superseded` is renamed `holder.superseded` (lands with slice B1, the run face, in the same release; NOT done by this slice).** One word for a write refused because its grant is no longer current, whichever store refuses it. Who is red: a host that branches on the resume error's code `resume.holder_superseded` (or keeps an exhaustive table over the resume failure codes). What to change: match `holder.superseded` (`isHolderSuperseded(err)`). B1 removes the old word in the same release, with no dual reading: no release carries both words for the resume (done: the next section, "Hard-breaking 2, done").
|
|
404
|
+
- **Hard-breaking 3 — `FileStorageBackendOptions.checkpoint.holderIsCurrent` moves to `FileStorageBackendOptions.holderIsCurrent`.** One grant table, one judge: the backend hands it to its session repo and its checkpoint store. Who is red: a host passing the judge in the `checkpoint` record — refused by name before the data root is touched (`config.invalid_argument`, the sentence naming where it moved), and its `tsc` red on the record's type. What to change: pass it at the top level; the store built directly (`new FileCheckpointStore(root, { holderIsCurrent })`) is unchanged.
|
|
405
|
+
- **Hard-breaking 4 — the checkpoint contract kit's `holders` option is retired for `composed` + `grants`.** The kit's holder cells (C-H0 – C-H7) run on `composed()` — the store as the deployment composes it, every wrapper included — with `grants` (`current` / `replaced` / `ended` / `unknownStatus` / `malformed`, and an optional `retire` that lets the kit prove the judgement is made afresh on every write) minted against its judge; the session kit takes the same two hooks (S-H0 – S-H7). Who is red: a binding passing `holders` — refused by name (`config.invalid_argument`); a binding whose store declares `fence` and gives neither hook — every holder cell fails, never skips; a composed store that does not forward `fence`, or that drops a write's holder, fails the cells of that write. What to change: bind the deployment's own composition function and a grant fixture over real run rows (its type is the root export `ContractGrants`). A binding that judges no holders (no `fence`, no `composed`, no `grants`) asserts nothing in the holder cells and says so: each cell reports `onOptionalMember({ member: "holder", status: "absent", cell })`, as the session kit's report `holder: absent` does; a bound cell reports `verified`. The kits cannot catch a judge that ignores the run's status when the grant fixture also mints its `ended` holder as a replaced leg: both kits pass — the fixture must mint `ended` over a run row that has really ended.
|
|
406
|
+
- **Declaring is not judging.** The engine never calls the judge to check a store at startup; a store that declares the fence without judging is caught by the contract kits, bound on the composed store. Bind `composed` to the very function your startup calls, once for each composition you ship: when a configuration changes the composition (a cache turned off leaves the bare store), that configuration is another binding — `composed: () => compose(configWithoutCache)` — and a component's own binding keeps `composed` = its `make`. The kits judge the store's own rows; a record a wrapper writes beside the store before it forwards the write is not judged, and a refused write leaves it behind.
|
|
407
|
+
- **Two origins of one code.** `config.invalid_checkpoint_store` is the deployment's (a store missing a verb, a holder over a store that does not declare the fence, a malformed declaration) or the request's (`checkpointStore: null`, a child's seat that disagrees): tell them apart by the refusal's input word (`taskConfig` / `deps` — `terminal.detail.detail.input` on a fresh leg, `detail.field` on a resume before its claim, `configRefusalInputOf(err)` on a synchronous throw), never by the code. A checkpoint store the request carries is `taskConfig` even when the deployment built it.
|
|
408
|
+
- **Baseline of the "before" readings.** "Before" in this section is the reading on 7.69.1 (or 7.69.x, as each sentence says); 7.70.0 was not measured separately for them.
|
|
409
|
+
- **Pins.** `test/backlog5190-store-face.test.ts` — G1 the codec (both round trips, every malformed form, the value never in a sentence), G2 the declaration (the retired and malformed forms at either seat, a non-function judge in all five places, a non-boolean answer), the S-H cells on the in-memory and file session stores and the C-H cells on the in-memory and file checkpoint stores, K1 – K9 the kits' holder binding (a store declaring without the hooks, a wrapper dropping the fence, a wrapper dropping the holders, the retired `holders`, a judge that remembers a holder's first answer, an unbound kit reporting every holder cell absent — K6 session, K8 checkpoint — and `ContractGrants` from the package root), Z1 – Z3 nothing left behind by a refused write (bytes and file names on the file lane), Q1 – Q5 the queued file write's holder read at the call, a dead grant on a used token, a no-holder write's options read as before, and a repo of another judge or `rowCells` unable to evict the live authority or publish a row under it, J1 / J2 one judge per shared authority, B1 the backend's one judge reaching both stores · `test/backlog2119-resume-holder-fence.test.ts` (the kit rebound on `composed` + `grants`).
|
|
410
|
+
|
|
411
|
+
### A host-started run writes its session under its grant: every session write of its leg carries `RunInternals.holder`, both store seats' doors judge it, a refused write stops the leg `failed` / `holder.superseded`, and the three session verbs take a `holder` (#5190 slice B1, the run face; behavior change: none for a host that passes no holder over stores that declare no `fence` — every write, door and code as 7.69.x (the three verbs' request-door sentence now lists the `holder?` member among the request's members); narrowing: two, below — a holder over a session store that declares no fence is now refused at the session seat, and a malformed session `fence` refuses every run; hard-breaking: the resume word's rename (slice A's hard-breaking 2) is done here — `CHECKPOINT_ERROR_CODES` −1, and the superseded resume throws an error that is not a `CheckpointError`; widening: none; closed sets: `CompactionFailureCause` +`holder.superseded`, `CheckpointErrorCode` −`resume.holder_superseded`, `CheckpointConfigRefusalCode` +`config.invalid_session_store`, `TaskResult.errorCode` +`holder.superseded`; request members: `CompactSessionRequest` / `RewindConversationRequest` / `RewindFilesRequest` +`holder?`; option: `TtlSessionStoreOptions.holderIsCurrent`; exports: none added or removed; wire: none) (@server @cli @client-core @test)
|
|
412
|
+
|
|
413
|
+
- **The rule.** The engine hands the run's grant (`RunInternals.holder`) to every session write a leg the HOST started makes — answers, tool results, a person's message, engine records, a rewind of the leaf, a turn-boundary compaction, the leg's tail records — in a plain `SessionWriteOptions` object beside `expectedLeafId`. One session write is outside this: the owner record a leg's prepare writes on a row that records no owner (`recordOwner`, #4544) carries no holder and meets no judge — see the #4544 section's Known item. A leg an engine lane started (a delegated child, a workflow member, an observer sidecar) stamps none, whatever its internals hold: a workflow drive hands its member the host's holder for that moment's resume CAS only, and once the CAS wins the member's writes carry nothing, so a workflow outlives the run that started it. Who started a leg is read off the internals it was started with (`isDelegatedChild` / `observerLeg`), never off a row: a host resuming a card a child wrote resumes it as the host's leg.
|
|
414
|
+
- **The doors.** A run, a resume before its claim, and each session verb meet one door at each store seat they write, each seat judged against the holder its writes carry — the checkpoint seat against the run's (its resume CAS carries it on every leg), the session seat against the stamped one (none on an engine lane's leg). A holder over a store that does not declare `fence = { holder: "writes" }` is refused at that seat (`config.invalid_checkpoint_store` / `config.invalid_session_store`; on a resume `checkpoint.config_refused` with that `detail.code`, the row untouched). A store declaring `requireHolder: true` refuses, at its seat, a run, resume or verb the host starts without a holder; an engine lane's leg passes.
|
|
415
|
+
- **A refused write stops the leg.** One latch at the write boundary carries the word a refused session write said (`conflict` or `holder.superseded`; `holder.superseded` is never traded back). On `holder.superseded` the leg stops on that tick, as a cancel does — a lane that swallows a write failure (a turn-boundary compaction) does not send the model another request — and the result is `failed` / `holder.superseded` (`errorClassOf`: `aborted`), above every other cause (a conflict, a limit, the stop's own abort) but a durable pause committed while the grant held. A refusal during prepare fails the prepare with the same word and is not re-woken — also when a lane swallowed the refused write (the reminder mark) or something else failed after it: a superseded prepare's failure is `holder.superseded`, the other failure its `cause`. The terminal is read once, at assembly: a tail record refused after it is an incident on `onError`.
|
|
416
|
+
- **Hard-breaking 2, done — the resume's word.** A resume whose carried holder lost the row it validated throws `holder.superseded` (`holderSupersededError`; read it with `isHolderSuperseded(err)`), and `resume.holder_superseded` is gone from `CHECKPOINT_ERROR_CODES` (34 → 33). Who is red: a host whose table is exhaustive over `CheckpointErrorCode` (`tsc`-red on the removed key — the intended notice), and a host that catches the superseded resume with `instanceof CheckpointError` (it is not one any more: that branch no longer sees it). What to change: drop the old key; read `isHolderSuperseded(err)` before your `CheckpointError` branch and treat it as "stop, do not retry; the current holder delivers".
|
|
417
|
+
- **Narrowing — a holder over a session store that declares no fence is refused.** 7.69.x read only the checkpoint seat for a holder; a run carrying one over a session store that declares nothing now fails at the session seat (`config.invalid_session_store`), nothing acquired. Who sees it: a host that already passes `RunInternals.holder` (a resume or a Workflow drive under its claim) with a session store that does not judge holders. What to change: declare and judge (`InMemorySessionRepo` / `FileSessionRepo` / `TtlSessionStore` take `holderIsCurrent`; a host store judges in its write's own transaction), or pass no holder. The code's input word is `deps` (the session store is the deployment's seat, `RunnerDeps.sessionStore`), and a resume meets it before its claim: refused `checkpoint.config_refused` with `detail.code: "config.invalid_session_store"` (the resume screen's set of prepare codes, `CheckpointConfigRefusalCode` in `docs/CLOSED-SETS.md`, gains the word).
|
|
418
|
+
- **Narrowing — a malformed `fence` on the session store refuses every run.** The session seat's door reads the declaration on every run, with or without a holder, as the checkpoint seat's does (slice A's narrowing 3): a session store whose `fence` is neither absent nor `{ holder: "writes" }` (with `requireHolder` absent, `true` or `false`) — the retired `{ holder: true }` among them — fails every run at the session seat, `config.invalid_session_store`, nothing acquired — and so do the three session verbs over that store (`Runner.compactSession`, `Runner.rewindConversation`, `Runner.rewindFiles` meet the same door: measured, over a store declaring `fence = {}` 7.69.1's `compactSession` answered `compacted`, and here all three throw `config.invalid_session_store`); 7.69.x and slice A read no session `fence`. What to change: declare `{ holder: "writes" }` (a store that judges) or nothing.
|
|
419
|
+
- **Which error each refusal is.** The resume's lost CAS, a session write and a card `put` / steer refused for a dead grant all throw a plain `Error` coded `holder.superseded` (`HolderSupersededError`, `isHolderSuperseded` reads it); `expire`, `resolve` and the claim arms lose without throwing; a holder that does not decode throws `holder.malformed` (`GrantHolderMalformedError`, not `holder.superseded`); a judge's non-boolean answer or a refused join throws the store's seat code (`config.invalid_session_store` / `config.invalid_checkpoint_store`). None of them is a `SessionError` or a `CheckpointError`.
|
|
420
|
+
- **`TtlSessionStore` takes the judge for its own repo.** `new TtlSessionStore({ holderIsCurrent })` builds its default `InMemorySessionRepo` with the judge and declares `fence = { holder: "writes" }`, keeping the default repo's `evict: "delete"` and `durability: "process-local"` (before, a judge needed a supplied repo, and supplying one flipped both defaults to `"forget"` and none). A `repo` beside `holderIsCurrent` is refused (`config.invalid_argument`): the judge has one place.
|
|
421
|
+
- **The holder's encoding is stable.** `encodeGrantHolder`'s `g1.<taskId>.<legId>` form does not change across releases: a host may hand the value between replicas and store it; a future form takes a new prefix and its release lists it as hard-breaking.
|
|
422
|
+
- **The session verbs.** `Runner.compactSession`, `Runner.rewindConversation` and `Runner.rewindFiles` take `holder?` (the grant the host's verb acts under) and meet the run's door at the session seat. The summary record and the `leaf` entry carry it; a dead grant writes nothing — `rewindConversation` throws `holder.superseded`, `compactSession` answers `failed` with the frame's `cause: "holder.superseded"`. `rewindFiles` writes no session entry: its holder passes the door only (its files move through the history store, which the host's own grant guards). A `holder` that is not a non-empty string is the verb's request refusal (`compact.invalid_request` / `rewind.invalid_spec`). `COMPACTION_FAILURE_CAUSES` gains `holder.superseded` (@server @cli @client-core: a switch exhaustive over `CompactionFailureCause` is `tsc`-red until it reads the word).
|
|
423
|
+
- **Not in this slice.** The card writes a parked leg makes (`put`, the steer migration, the engine's `expire` calls) carry the holder in slice B2.
|
|
424
|
+
- **Baseline of the "before" readings.** "Before" in this section is the reading on 7.69.1 (or 7.69.x, as each sentence says); 7.70.0 was not measured separately for them.
|
|
425
|
+
- **Pins.** `test/backlog5190-b1-run-face.test.ts` — D1 / D2 the session seat's door (no fence, the retired form), D3 `requireHolder` by who started the leg (host run, delegated child, observer, a real Agent child, a host resume before its claim, each verb), S1 – S3 the stamp (every write of a host leg under its holder in a plain object, none without one, none on an engine lane's leg, a workflow drive's member writing nothing under the host's holder after its CAS and finishing after the host's grant ended), L1 / L2 the terminal's slot and the latch, W1 the code sets, W2 the census of the retired word, G-stable the encoding spelled out, T1 – T3 `TtlSessionStore`'s judge (alone, a repo's, both refused) and its defaults, V1 / V2 the verbs under a dead and a live grant · `test/backlog5190-b1-cells.test.ts` — the design's R / R'' / M / F cells and the `read` cell (a parked run the host cancelled writes nothing into the session another run took) · `test/backlog2119-resume-holder-fence.test.ts` (the new word, the error not a `CheckpointError`, a declaring session store).
|
|
426
|
+
|
|
427
|
+
### A run's own card writes carry its grant holder — the park's `put`, the parked-input migration, the stream's reap and the resume preflight's terminal expire — and the migration writes the store the park's row is in (#5190 slice B2, the checkpoint writes; behavior change for a run that carries no holder: the store is called with the 7.69.x arguments exactly (measured: the same file of cells, run on the `v7.69.1` tree and on this branch, reads the same), and two things change for every run, holder or not, below (the task-level store's migration, and the preflight race's workspace); a run carrying a holder: the four writes below are judged by its store; narrowing: three, below, open to veto; hard-breaking: one, type level — `ResumeStartupCause` +`superseded`, `resumeAgainMayCure(cause)` → `boolean | undefined` and `terminal.resumeAgainMayCure` absent beside it, below, open to veto @server; widening: one, below; closed sets: `ResumeStartupCause` +`superseded` (a code `holder.superseded` / `holder.malformed` now names a cause); exports: none; wire: the parked-resume receipt's `details.cause` may read `superseded`) (@server @test)
|
|
428
|
+
|
|
429
|
+
- **The rule.** The one holder a leg's durable writes carry is the host-started leg's `RunInternals.holder`; a leg an engine lane started (a delegated child, a workflow member, an observer) carries none, whatever its internals hold — the same reading the session writes take. A park's `put` carries it as `put(token, row, { holder })`. The committed pause records the store the row was put into and that holder, and every later write the run makes on that park carries the pair: the migration of the person's queued inputs onto the row (`setPendingSteer(…, { holder })`) and the stream's reap (`expire(…, { holder })`, `TaskStream.destroy()`). The resume preflight's terminal settle carries the resume's holder (`expire(…, { holder })`), the value the resume's claim already carries. A run with no holder calls each of these with no options argument, as 7.69.x did.
|
|
430
|
+
- **Narrowing 1 — a park whose `put` is refused for the grant ends the run `failed` / `holder.superseded`.** The store wrote nothing, so the row is not read back; a paused workspace is put back once (resumed), the leg stops on that tick, no caller continues or asks a person live, the tool never runs and the model is not asked again. 7.69.x put the row whatever the grant. Who sees it: a host whose run carries a holder over a store that declares `fence = { holder: "writes" }`, when another leg holds the run or the run has ended. What to change: nothing — the current holder's leg is the one that parks. **Known limit (KL-5190-e):** when the grant is superseded at the very moment the scheduler's yield is honoured and the suspend's cross-boundary record cannot be written, the error face says `Nothing was parked and the run keeps running` (and a `preempt.ignored` frame is traced) while the run's terminal is `failed` / `holder.superseded` (read in the code; the terminal is inferred from the lane's comment, not run).
|
|
431
|
+
- **Narrowing 2 — `TaskStream.destroy()` of a suspended run whose grant is no longer current expires nothing.** The row stays `pending` and the paused workspace stays, for the current holder or the host's own cancel and reaper; the error face says once that the checkpoint was not expired. 7.69.x expired the row and destroyed the workspace. Who sees it: the same host. What to change: to cancel a parked run, withdraw its card (expire with no holder, as the host's own cancel does) before marking the run ended.
|
|
432
|
+
- **Narrowing 3 — the resume preflight's `terminal` verdict on a resume whose grant is no longer current settles nothing and throws `holder.superseded`.** The expire lost on the row the resume validated (still pending at the same generation), so the reading is the claim's: the checkpoint is unchanged and stays for the current holder. 7.69.x expired the row (`resume.preflight_rejected`, settler `this_refusal`). Who sees it: a host whose resume carries a holder and whose preflight answers `terminal`. What to change: match `holder.superseded` (`isHolderSuperseded(err)`) beside the preflight's codes.
|
|
433
|
+
- **Widening 1 — the person's queued inputs are carried onto a parked row in the store the task names.** The migration read the Runner's `checkpointStore`; a run whose `TaskSpec.checkpointStore` names its own store parked its row there and lost the inputs: with no Runner store the migration did not run, and with one it asked a store that holds no such row. It now writes the row's own store. A migration refused for the grant (`holder.superseded`) stops at the first input, the queue untouched; the rest are announced lost as for any store outage, and the committed pause stands (the row was put while the grant held).
|
|
434
|
+
- **For every run, holder or not — the preflight's lost terminal expire no longer strands a paused workspace.** The case: the deployment's `resumePreflight` answers `terminal`, the preflight's expire loses, the settle's own read finds the row still pending, and another settler (the host's reaper) expires the row before the preflight reads it again. 7.69.1 answered `concurrent_actor` and left this Runner's paused workspace and its reap record behind (`destroy` 0 times: measured on `v7.69.1`, and on slice A's head); now the preflight runs the row's one expired-row duty, as every loser that finds the row expired does, and the workspace is destroyed once (measured 1). Why it is right: an expired row is never redeemed again, and nobody else holds this process's workspace.
|
|
435
|
+
- **A resume whose claim won and whose grant was then lost is told not to resume again.** Its leg's first write is refused `holder.superseded`, the approved action never starts, and the row is reopened for the run's current holder: `ResumeStartupCause` gains `superseded` (the code `holder.superseded`; `holder.malformed` reads `configuration`), its reopen reason is `env_failed` (the current holder replays the decision), and the row is not this run's any more: `resumeAgainMayCure(cause)` has no answer for it (`undefined`), so `terminal.resumeAgainMayCure` is absent — no `false` for a host to turn into "expire the row" — and the sentence, on every row outcome (reopened, declined, unknown; the settle's and the thrown prepare's exits alike), says the next step is the run's current holder's: no second resume, no fresh decision, no expire. Before, the empty cause read as "resume it again" on the reopened outcome, and the declined outcome said "if it is waiting again, resume it again" whatever the cause.
|
|
436
|
+
- **Hard-breaking 1 (type level) — `ResumeStartupCause` / `RESUME_STARTUP_CAUSES` gains `superseded`, and `resumeAgainMayCure(cause)` answers `boolean | undefined`.** Who is red: a host with an exhaustive switch or a `Record<ResumeStartupCause, …>` table (its `tsc`), one that pinned the six words (the parked-resume receipt's `details.cause` may now read `superseded`), one that typed `resumeAgainMayCure(…)` as `boolean`, or one that expects `terminal.resumeAgainMayCure` beside every `unstartedRow: "reopened"` (it is absent beside `holder.superseded`). What to change: add the arm — stop; do not resume, re-ask or expire; the run's current holder delivers.
|
|
437
|
+
- **A cross-boundary record refused for the grant is no write failure.** On a tree that is not governed, a suspend's or an exit's record refused `holder.superseded` reaches its caller (the leg is already stopping: the session's latch took the word) instead of minting a `config.cross_boundary_record_unwritten` notice.
|
|
438
|
+
- **Baseline of the "before" readings.** "Before" in this section is the reading on 7.69.1 (or 7.69.x, as each sentence says); 7.70.0 was not measured separately for them.
|
|
439
|
+
- **Pins.** `test/backlog5190-b2-checkpoint-writes.test.ts` — on the in-memory and file checkpoint stores with a host run table as the judge, each caller × {grant current, another leg holds the run, the run ended}: P the approval park's put (P4 an engine lane's leg with a dead holder in its internals still parks), PR the resource slice's put (the pause rolled back once, no third model call), M the migration (M4 the task's own store), R the reap, F the preflight's terminal expire, X the record on a tree not governed · `test/backlog5190-b2-bare-roundtrip.test.ts` — no holder, no fence: the same file passes on `v7.69.1` and here · `test/backlog5190-b2-repair.test.ts` — the review leg's cells: C1 the claim won then the grant lost (not told to resume again), C2 a preempt yield refused for the grant (not told the run keeps running), C3 / C4 a superseded prepare's two stops, C5 an extension's append on a refused put, C6 the no-holder preflight race (the workspace destroyed once).
|
|
440
|
+
|
|
441
|
+
### A workflow run's record knows which creation of its id it is and which tree it belongs to: `creationId` minted at the create and named on every write (`update`'s `expect.creationId`), `treeId` written by a fresh run's create and a continuation's admission; a run whose create was never confirmed creates its row ended; a run id has one character table (#5156 T1, #4486, #5160; hard-breaking: two, type level, below, open to veto @server; narrowing: two, below, open to veto @server @cli @test; widening: none; closed sets: `WORKFLOW_RUN_UPDATE_CAUSES` 2 → 3 (+`tree_id_stamp`), `EngineNoticeCode` +1 (`store.tree_id_stamp_incomplete`); exports: +4 (`workflowTreeIdStampOf`, types `WorkflowTreeIdStamp`, `WorkflowRunUpdateExpect`, and `workflowRunCreationIdOf`), none removed; wire: three optional record members) (@server @cli @test)
|
|
442
|
+
|
|
443
|
+
- **Rule.** A record's identity is minted where it is created and only copied after: `creationId` (random, the engine's, never read back by its own run) on every record this engine creates, and `treeId` — a fresh run's own id at its create; a continuation's, copied from the run it continues (else from the first run up its line that carries one, else the top run's id), written by the one write that completes its admission, with `resume.fromRunId` and the new `resume.fromCreationId`. "B continues A" is one judgment (`isContinuationOf`: the id, and the creation B recorded when it recorded one). Every write names the creation it read; a write to another creation of the id loses.
|
|
444
|
+
- **Before (7.69.1; read in the code, measured where marked).** A run told its own row by `createdAt` in milliseconds, and a store's compare-and-set compared `rev` alone, so a run id deleted and reused could take an older run's write (KL-4486-a (1) – (3)). A run whose create the store answered with an error and committed later stopped its ending at "no row of my own" and left the row `running` for ever, told once as unconfirmed (KL-4486-a (4); probe A5: running, rev 0, told once). A host's run id with `/` or a space started and resumed, and the resume's record named its source by the clamped id — `teamrun-1` — so it was not listed as the source's successor; an id with `:` kept its edge, and the file journal store granted two resume claims on it at once (measured on v7.69.1: four cells).
|
|
445
|
+
- **Now.** (1) `WorkflowRunStore.update(id, scope, run, expect?: WorkflowRunUpdateExpect, opts?)`: `expect` is `{ rev, creationId?: string | null }` — a string must equal the live row's member; `null` matches only a row whose member is not a string (absent and a stored JSON null alike); absent compares nothing; `workflowRunCreationIdOf(run)` (package root) is the one reading of a record's member that this takes — the string when the member is one, else `null` (absent, a JSON null and any other value alike; pinned `backlog5156-root-exports-for-host-stores` ⑤). The rev is compared as before and never stood in for by the creation. Every engine write gives it: the owner's (its own), a park pass (`park_pass`, the holder record's as read) and a decision mark (`park_decision_settled`, the holder record's as read). (2) A fresh run's create carries `creationId` and `treeId`; a continuation's create carries `creationId` alone, and its admission's write carries `treeId` (when its source's line reads whole), `resume.fromRunId` and `resume.fromCreationId` (when the source carried one) together. Nothing of this release reads `treeId` to decide anything, and the list summary carries neither member. (3) The ending write of a run whose create was never confirmed (it answered an error, or nothing yet), finding no row under the id, creates the row ended — once per run: a create-once collision (`already_exists`) is read back and this run's own row that reads running is written from the rev read; after that one create, a try that finds no row is a write not landed yet and the tries go on (either create may still land); a run whose create was confirmed and whose row has since gone writes nothing. (4) `workflowTreeIdStampOf(store, run, scope)` answers, for a finished record an older engine wrote, `{ kind: "stamp", treeId, expect, cause: "tree_id_stamp" }`, `{ kind: "skip", why: "stamped" | "running" | "admission_incomplete" | "no_tree" }`, `"unreadable"` or `"over_bound"` — the one rule a host's pass over its rows calls. `FileWorkflowRunStore` runs it over its rows when it opens: a best-effort migration, never a condition of the open — a stamp write that fails or loses is told on `onCorruptRead` (naming the run) and the row stays without a tree id until a later open. (5) A run id is 1 – 64 of `[A-Za-z0-9_.-]`, never `.` or `..` alone (the file store's path segment's; every id the engine mints): `runId` or `resumeFromRunId` outside it is refused `config.invalid_argument` before anything is written, the sentence naming the id and the table.
|
|
446
|
+
- **Hard-breaking (type level; open to veto @server).** (a) `WorkflowRunStore.update`'s fourth parameter widens to `WorkflowRunUpdateExpect` — an implementation typed `expect?: { rev: number }` still compiles, but a store that does not read `creationId` is wrong: `workflowRunStoreContract` gains ten cells (three live states × four expectations, named "another creation of the same id loses" where a store comparing only the rev answers "wins": b, c, e, i; a store reading a stored JSON null as a value loses cell h) and an identity round-trip cell. (b) `WORKFLOW_RUN_UPDATE_CAUSES` gains `tree_id_stamp`: a host switching exhaustively over `WorkflowRunUpdateCause` does not compile until it handles it (the word is no gate and changes nothing persisted).
|
|
447
|
+
- **Narrowing (open to veto @server @cli @test).** (a) Against 7.69.1, a run started under a host-supplied id outside the table is refused (it started); (b) a resume from such an id is refused (it resumed and replayed — measured on v7.69.1: completed, zero live calls — with its source named by the clamped id). An older run with such an id can no longer be continued (KL-5156-b). A probe that pins either old behavior goes red; re-pin to the refusal. Not narrowed: `runId: null` reads as no id given — the engine mints one, as on 7.69.1 (measured there: the run completes under a minted id).
|
|
448
|
+
- **Fixed.** `resumeFromRunId: null` threw a `TypeError` inside the admission on 7.69.1 (measured: "Cannot read properties of null"); it is refused `config.invalid_argument` now, before anything is written — not read as "no id", which would run the whole script live again for a host that meant to resume.
|
|
449
|
+
- **Refusal codes that changed because the id table is judged first.** The table is now checked right after the nesting check (`WorkflowNestingError` still comes first) and before the options' other checks, so an id outside it is refused for the id, whatever else is wrong (measured on 7.69.1 and this tree): `resumeFromRunId` outside the table, or `null`, with no journal store — a plain `Error` ("resumeFromRunId requires a journalStore…") → `config.invalid_argument`; `runId` outside the table with `parkedResume` and no resume — a plain `Error` ("parkedResume drives…") → `config.invalid_argument`; `runId` outside the table with `launch` and a journal store that keeps no launch records — a plain `Error` ("launch is the record…") → `config.invalid_argument`; `runId` or `resumeFromRunId` outside the table with `checkpointStore` or `defaultDurableApproval` and no run store — `WorkflowParkRefusal` (`workflow.park_requires_run_store`) → `config.invalid_argument`; `runId` outside the table with a `scope` that contradicts the seat — refused `config.invalid_argument` either way (the scope check is this release's, above; 7.69.1 ran such a run), its sentence now naming the id instead of the scope. A valid id meets each of these refusals as before.
|
|
450
|
+
- **Behavior changes.** A `FileWorkflowRunStore` holding finished rows without a tree id writes one update per such row whose tree it can tell at its first open on this release (rev + 1; a continuation whose source is gone or another creation is left as it is, KL-5156-a), synced once with one compaction at the end of the pass (a crash in the pass loses only stamps, which the next open writes again); the first open costs one extra pass and one rewrite of the ledger — measured on a 10-core laptop: 10 000 such rows open in about 0.26 s (7.69.1: 35 ms; the second open: 39 ms). A host comparing those rows' revisions across the upgrade reads one more. Rows the pass could not stamp are told once per open on the default notice seat, `store.tree_id_stamp_incomplete` (`detail: { path, notStamped, notSynced, code }`, `code` the first failure's system code; `notSynced` counts stamps written whose closing compaction failed — they read as written, and a crash before the store's next synced write loses them), beside the per-row `onCorruptRead`; the store opens and the next open tries again. The ending write's tries no longer stop at "no row" after the run's one ending create (KL-4486-a narrowed: what is left is a store that commits every create only after the last try's bound).
|
|
451
|
+
- **Mixed releases (read in the code).** A record this release creates reads on 7.70.x (the members are copied whole by its writes, compared by none); 7.70.x writes to such a record compare the rev alone, as today. A record 7.70.x created carries neither member: this release's writes to it give `creationId: null`, so a record created again under its id by this release loses them. A continuation 7.70.x writes carries no `treeId` and no `fromCreationId`: the edge to it is the id alone, as today.
|
|
452
|
+
- **Known.** KL-4486-a narrowed (above); KL-5156-a: a host may leave a finished record unstamped (the file store does so for a write that fails); such a record has no tree id; KL-5156-b: the run-id table refuses an older run started under an id outside it. KL-5156-f: a host that rebuilds a whole row from the fields it knows (no `creationId` / `treeId`) and hands it to `update` erases the two identity members — the owner's next write that carries its creation id is refused for good and the row stays `running` (measured on the in-memory store); update by spreading the row you read and changing what you mean to change.
|
|
453
|
+
- **Baseline of the "before" readings.** "Before" in this section is the reading on 7.69.1 (or 7.69.x, as each sentence says); 7.70.0 was not measured separately for them.
|
|
454
|
+
- **Pins.** `test/backlog5156-t1-run-identity.test.ts` I1 – I7 · `test/backlog5156-t1-ending-create.test.ts` E1 – E7 (real file store) · `test/backlog5156-t1-tree-id-stamp.test.ts` T1 – T7 (T3 – T7 real file store: T4 / T6 a failed append at the open, T5 a source in another scope, T7 one compaction and no per-row sync) · `test/backlog5156-t1-first-open.test.ts` F1 (the open killed in a child at three points) / F2 (a reading) · `test/backlog4832-parked-decision-final.test.ts` F-recreated · `test/backlog5156-t1-run-id-charset.test.ts` C1 – C5 and O1 – O4 (four of the five refusal reorders above — a `resumeFromRunId` with no journal store, `parkedResume` with no resume, `launch` over a store without launch records, a `checkpointStore` with no run store — each with its good-id twin meeting the earlier refusal; the fifth, an id outside the table with a contradicting `scope`, is not pinned beside them) · `test/backlog4455-pass-first-come.test.ts` P8 / P8b · `workflowRunStoreContract` (both bundled stores) · re-pinned: `backlog4486` W35 / W37 / W38 / W40, `backlog4535` R1 and `backlog4832` R3 (the third word), `backlog1023` and `backlog4482` (their planted finished rows carry a tree id).
|
|
455
|
+
- **Consumers.** @server: your SQL run store's `update` compares `creationId` in its WHERE — "the extracted value is a string equal to the given one" for a string, "the extracted value is not a string" for `null` (not "IS NULL": a stored JSON null reads differently per dialect) — and passes `workflowRunStoreContract`'s ten creation cells; your orphan sweep's write names the creation it read; when your store projects a `creation_id` predicate column, fill it with `workflowRunCreationIdOf(row)` (a string member, else `null`); a start-up pass over finished rows calls `workflowTreeIdStampOf` and writes with the cause it answers (a row you skip simply has no tree id); your detail face need not project the two members. @cli @test: a host-supplied run id outside the table is refused; `treeId` / `creationId` / `resume.fromCreationId` are new optional members of the record (present on records this release creates; `treeId` absent where the line did not read whole).
|
|
456
|
+
|
|
457
|
+
### A resume claim's answer says how long the claim has left, by the store's own clock (`remainingMs`; `expiresAt` retired); one reader names it in both refusals; a claim key no path segment holds is a claim the file journal store records (#5156 T2; hard-breaking: one, type level, open to veto @server; narrowing: one, below, open to veto @cli @test; widening: none; closed sets: none; exports: none added or removed; wire: one optional member of the adoption answer) (@server @cli @test)
|
|
458
|
+
|
|
459
|
+
- **Rule.** A store answers a remaining time, never an instant of its own clock; the engine reads it in one place (`claimRemainingOf`), once, as a refusal arrives — this machine's clock plus it, an upper bound named "at the latest" and compared with nothing — and both refusal sentences (the run's admission; the Workflow tool's, on the model's own call and on the person's decision) name what that read. A grant is a claim on disk: every key is recorded.
|
|
460
|
+
- **Before (7.69.1, read in the code; the `:` form measured by T1 on v7.69.1).** `ResumeClaimAnswer.expiresAt` was an epoch-ms instant of the store's clock, answered by the file store on a refusal only and never by the in-memory store; a value that named no date named nothing and said nothing. The file journal store answered a claim on a key that is no path segment with a grant it never recorded — a key the engine passes for an older tree whose root a host named `team:run-1`, continued from a run with a plain id — so two continuations of that tree both ran (T1's reading on v7.69.1: both claims granted).
|
|
461
|
+
- **Now.** (1) `ResumeClaimAnswer` is `{ granted, holder?, remainingMs? }`: `remainingMs` a safe integer from 1 to 86 400 000 (24 hours), on a grant (the lease now held) and on a refusal (what is left), by the store's clock. Both bundled stores answer it through one reckoning (`resumeClaimRemainingMember`: their expiry less their clock's now when the answer is made, to the millisecond up, and no member when that is not 1 ms – 24 h — a clock stepped back past a day); the file store's holder re-claim does not renew the lease and answers what is left; the in-memory store's re-claim starts the lease again, as before. A member that throws when read reads as one that does not read. A grant's remaining time is not read by this release. (2) A refusal's `remainingMs` that does not read — 0 or less (held and expired at once), not a safe integer, over 24 hours, or a sum no date holds — names no time; both sentences say "the journal store answered a remaining time for the claim that does not read, so no time is named", the deployment's `onStoreFault` is told once on the tool's lane, and the adoption answer's `continuing_elsewhere` carries `claimLapseUnreadable: true` (its `claimExpiresAt` keeps its name and is now this machine's clock plus the remaining time). (3) The file journal store names a claim on a key that is a path segment as before, and any other key by the digest of its JSON text behind `%` (`%<32 hex>.<scope digest>.json`, a name no path-segment key can take; two keys whose UTF-8 bytes agree — a lone surrogate — are two names); a claim it cannot record — the claims directory cannot be made, the publish fails (a name too long), the claim's path holds something that cannot be read (a directory; it used to read as "nobody's" and end in a refusal naming no holder), the removal gate cannot be had — throws (a store failure: the admission is refused with it, the tool answers "could not be taken" and tells `onStoreFault` once), never a grant.
|
|
462
|
+
- **Hard-breaking (type level; open to veto @server).** `ResumeClaimAnswer.expiresAt` is removed and `remainingMs` added. A journal store that answers `expiresAt` no longer compiles against the answer type (an object literal with it is an excess property); one typed loosely still runs, and its refusals then name no time. Who goes red: a host journal store answering `expiresAt`, and a probe reading it. What to do: answer `remainingMs` (your expiry less your clock's now, in whole milliseconds) or nothing. The SQL journal store of the serving layer answers neither today; answering nothing, its refusals name no time, as on 7.69.1 ("lapses when the journal store's expiry frees it"), and `workflowJournalStoreContract` passes either way.
|
|
463
|
+
- **Narrowing (open to veto @cli @test).** Against 7.69.1, a claim on a key that is no path segment, on the file journal store, is recorded and excludes: a second continuation of such a tree is refused while the first runs (it ran). A claim the file store cannot record is a store failure where 7.69.1 granted it for that one key shape: such a key on a read-only claims directory or a full disk now throws where 7.69.1 answered a grant and wrote nothing. Something at a claim's path that cannot be read (a directory, no read permission) is now a store failure (the claim throws) where 7.69.1 ended in a refusal naming no holder; a file there that reads but holds no claim (torn or malformed JSON) is still taken over as before. A probe that pins the old grant or the old refusal goes red; re-pin to the refusal or the store failure.
|
|
464
|
+
- **Behavior changes.** The in-memory journal store's refusals now answer the remaining time, so their sentences name when the claim lapses at the latest (they named no time). A refusal whose answer does not read now says so (it named no time silently).
|
|
465
|
+
- **Mixed releases (read in the code).** The answer is not stored: each engine reads its own store's answer. A 7.70.x engine over the same file data root still grants a non-path-segment key unrecorded and does not see the claim this release records under the digest — the exclusion of KL-5156-c holds once every engine on the root runs this release. A path-segment key with no capital letter is named alike by both (measured: `run-a`, a lowercase UUID); a key with a capital letter — a run id the host chose, such as `Run-A` — is not: 7.70.x names its claim file by the id, this release by the digest, so a 7.70.x and a 7.71.0 process on one file journal root each grant a claim on it, in both directions (measured, two processes sharing a root; same-version processes still exclude each other). Drain the runs in flight of such trees before the roll, do not resume from them during it, or stop the whole deployment for the upgrade; an in-memory or SQL journal store is not affected (KL-5156-d).
|
|
466
|
+
- **Known.** KL-5156-c (above).
|
|
467
|
+
- **Pins.** `test/backlog5156-t2-claim-remaining.test.ts` R1 – R5 (the reader's arms; a member that throws) · S1 – S5, S3b (both bundled stores on a held clock: the lease, what is left ten minutes on, the claim's last millisecond and the one after it, the clock stepped back ten minutes and past a day, jumped forward, the holder's re-claim) · E1 – E6 (the admission's sentence: one clock for store and engine, a store whose clock reads otherwise, an answer that does not read, none, a grant's not read, a member that throws) · W1 – W3 (real Runner: the model's own call and the person's decision, readable / unreadable with the fault told once per refusal / none) · T1 (the answer's shape from the package root; `expiresAt` a type error) · `test/backlog5156-t2-claim-key.test.ts` B1 – B5 (a `:` key excludes; two keys two files; the sweep; an older tree rooted at `team:run-1`, two continuations, one refused; a lone-surrogate key and its replacement two claims) · F1 – F4 (what cannot record a claim throws — a directory at the claim's path included; the tool's sentence and one fault) · `workflowJournalStoreContract` (the answer's `remainingMs` where answered and no `expiresAt`; a key holding `:` `/` or a space excludes) · re-pinned: `file-workflow-journal-store` (the traversal-shaped key is now a recorded claim), `workflow-resume-claim` PIN A, `backlog4652` D2 / D4 / D6 / D6b / D7 and `-fix1` X2, `backlog515-p26`, `backlog4390-fix1` C4, `backlog4390-engine-continues` and `backlog4552-fix1` (the in-memory store's sentence names the instant).
|
|
468
|
+
- **Consumers.** @server: your SQL journal store's `resumeClaim` answer type loses `expiresAt` (you answer none today: nothing to change); this release does not need `remainingMs` from you — answering it later (your expiry less the database clock's now) makes your refusals name a time. @cli @test: a refusal over the in-memory store now names when the claim lapses at the latest; a probe that pinned the sentence without it goes red; the adoption answer may carry `claimLapseUnreadable`.
|
|
469
|
+
|
|
470
|
+
### A workflow's runs are read as one tree by one reader, and the three park judges take only what it reads; a continuation that carries no decision continues the last run of the line; the record takes no park code from what a script throws and the completion notification carries the engine's code (#5156 T3, #5182, #5183; hard-breaking: three judges' parameter type, `spent.by`, open to veto @server; narrowing: five, below, open to veto @server @cli @test; widening: none; closed sets: none; exports: +3 (`readWorkflowRunTree`, `WorkflowRunTree`, `workflowRunTreeOfOne`); wire: `WorkflowRun.resume.asked`, the completion notifier's `errorCode`, the Workflow tool's launch result `resumedFrom` / `resumeNote`) (@server @cli @test)
|
|
471
|
+
|
|
472
|
+
- **Rule.** A workflow's runs have one reader: `readWorkflowRunTree(store, runId, scope)` walks from `runId` up to the first run and down through every run below it (`listByScope({ resumedFrom })`, each edge confirmed by the record), and answers `{ root, records }`, or `"unreadable"` / `"over_bound"`. The three judges — `workflowParkHolderOf(token, tree)`, `workflowParkDecisionOf(token, decisionId, tree)`, `workflowParkWaitOf(token, runId, tree, card)` — take only its answer (the type carries a brand no other value has), so a host and the engine judge one set of records. One judgment reads the tree once; the engine's marks are written on the holder's entry. How a mark counts: a final mark belongs to the decision (the token) — on any entry of this token in the tree it counts; a recoverable mark belongs to the holder — it counts on the holder's own entry alone. A continuation that carries no decision continues the last run of the line below the run it names.
|
|
473
|
+
- **Before (7.69.1, read in the code; measured where named).** The judges took any array a caller gathered: the engine's continuation passed the named run's chain, a host its own collection (the serving layer's is built from its child-session index), and the same refused drive read `open` on one and `spent` on the other (design reading A7). The engine judged twice over two reads (two pre-judgments over the named record, then the chain), and a holder's later marks could be missed. Continuing a run the engine had already continued started a second line from it: its tail step ran again (measured, `backlog4551` M2: `zAgain` 1). The record took a park code from whatever the script threw (`throw { code: "workflow.agent_parked" }` read as parked, measured `backlog5156-t3-tree` D1 on the base tree). A live delivery judged the run's own record only: a final mark an earlier holder took after this run's admission was driven again (measured, F1 on the base tree: `driving`). A pending card whose line had asked the same step again on another card read `waiting` (#5183, measured C1 on the base tree). On a card two runs stood on at one generation (a fork an earlier release left), a person's no to the Workflow call that would continue one of them was recorded on that run's entry, and the same decision then handed to the other run continued it: the gated step ran once (measured on the base tree, `backlog4552-fix1` F10c's cells).
|
|
474
|
+
- **Now.** (1) `readWorkflowRunTree` and `WorkflowRunTree` from the package root, and `workflowRunTreeOfOne(run)`: a tree of the one record a host holds, for a check that cannot read the store (a synchronous one under a row's lock; an index built per record). A judge over it answers what that record says of itself and nothing more: `workflowParkHolderOf(token, treeOfOne)` says whether this record claims to hold the park (and at which generation), not who holds it on the line now — a later run that took the park over is not in it, and `workflowParkWaitOf` over it never answers `moved_on` (pinned `backlog5156-root-exports-for-host-stores` ③, ③b). Routing a person's decision, or judging whether a card is still waited on, reads the whole tree (`readWorkflowRunTree`). One read asks the store N listings and L + N − 1 reads by id (N runs, read from a run L deep; pinned A2). A run read on the way up that the way down does not read as the same creation, a run met twice, a damaged row among a run's successors, or a run this scope holds no record of ⇒ the whole tree `"unreadable"` (no union). (2) `workflowParkDecisionOf`'s `spent` carries `by: "mark" | "drive"`: `mark` — a continuation told it and recorded a final mark (read on any entry of the token), `drive` — a drive of a run of the tree refused it and no continuation told it yet. (3) A decision for a card two runs stand on at one generation (a fork an earlier release left) handed to one of them continues that one (the card is then consumed); before, the engine's continuation read only the named run's chain, so it saw no fork, while a host reading the whole tree saw one. (4) A continuation carrying no decision — the model's Workflow call or a host's direct `runWorkflow` / `startWorkflow` — that names a run already continued continues the last run of its line: `resume.fromRunId` is that run, `resume.asked` the run named, a run-log line says so, and the Workflow tool's launch result carries `resumedFrom` and `resumeNote`. A fork below the run named is refused, naming the last run of each line (at most a few, then a count). The tool reads the line again under its resume claim and refuses when it moved; the run's admission, handed the tool's claim key (`WorkflowInternals.resumeClaimKey`), takes the same key and refuses when the root under the claim differs or the line moved (one claim key per continuation). (5) A live delivery takes the wait first, then reads the tree once (its own record as it holds it in place of the store's) and judges it with the same judge: `spent` ⇒ released, the step not run; a tree that does not read ⇒ `unreadable`, released. (6) `workflowParkWaitOf`: a run below the row's run that parked the same call on another card of its own answers `moved_on`, naming it (#5183). (7) #5182: the record's `workflow.agent_parked` is written by the park terminal alone as far as a thrown value goes — a code the script threw is not taken as a park; a failed member that carries `workflow.agent_parked` itself still reaches the record's `errorCode` and the notification through the first-failed-agent fallback, with no park card behind it (KL-5182-a); the completion notification (the frame and the deployment notifier's input) carries `errorCode` on a failed run — the park code when the run suspended on a park, else the first failed agent's code; a code the script threw stays on the record and its summary only. (8) The batch's decisions the judgment found settled for good whose answer is not the run's are told on their own, once per reason and code (`workflow.parked_decision_unused` may come more than once for one run and leg).
|
|
475
|
+
- **Leg items.** (a) A journal store that throws while the resume claim is taken ends the run `workflow.park_truth_unreadable` (`detail.reason: "store_threw"`, the error's class only) where 7.69.1 recorded the store's errno as the run's `errorCode` (measured on the base tree: `EACCES`). (b) The file journal store names a claim file by the id only when the key is a path segment with no capital letter, else by the digest (`%<32 hex>`): two keys that differ only by case are two claims on a volume that folds case (measured on the base tree, macOS: the second was refused as held by the first). (c) The Workflow tool refuses `resumeFromRunId` that is no run id — `""` included — with `config.invalid_argument` and a sentence that says how to continue and how to start fresh; 7.69.1 read `""` as "not given" and started a fresh run, while a direct start refused it.
|
|
476
|
+
- **Hard-breaking (type level; open to veto @server).** `workflowParkHolderOf`, `workflowParkDecisionOf` and `workflowParkWaitOf` take a `WorkflowRunTree` in place of a record array: a call with an array no longer compiles — read the tree with `readWorkflowRunTree` from the run of any card coordinate and hand it over. `WorkflowParkDecisionState`'s `spent` gains a required `by`: an exhaustive key-set guard over the state fails to compile. `readWorkflowParkWaits` keeps its signature (it reads the tree inside).
|
|
477
|
+
- **Narrowing (open to veto @server @cli @test).** (1) A continuation without a decision of a run already continued no longer starts beside the line: it continues the line's last run, and is refused at a fork (a probe that pinned a second line from the run named, or the "another line is waiting" refusal for the same line, goes red). (2) A tree with a damaged successor row does not read: the continuation is not started and a host's judges answer nothing until the row is repaired or removed (7.69.1 skipped the row and could take an earlier holder for the only one). (3) A direct resume whose tree does not read is refused at its admission (`workflow.park_truth_unreadable`); 7.69.1 ran it and it stood on nothing. (4) `resumeFromRunId: ""` from the Workflow tool is refused. (5) A journal store that throws while the resume claim is taken ends the run `workflow.park_truth_unreadable` (`detail.reason: "store_threw"`, the error's class only; Leg items (a)); 7.69.1 recorded the store's errno as the run's `errorCode` (a probe that pinned the errno, `EACCES` and the like, goes red).
|
|
478
|
+
- **Widening.** None. A decision handed to one member of a fork already continued that member on 7.69.1 (measured cell by cell on the base tree: the same runs continued, the same gated-step counts); what (3) changes is that a host's judges, reading the whole tree, now read the fork the engine's continuation acts on.
|
|
479
|
+
- **Ruling (B), against the design draft.** The draft read every mark on the holder's entry alone; under that reading four 7.69.1 verdicts flip (`backlog4832` M5, M6, X1, X2: a final mark on the earlier holder would be read as unused). The ruling keeps them: a final mark counts on any entry of its token, a recoverable one on the holder's alone. A serving layer that reads "the holder's row only" for final marks follows this.
|
|
480
|
+
- **Mixed releases (read in the code).** A 7.69.x engine on the same store still judges a named chain and still starts a second line from a run named again; marks it writes land on the entry it judged (read here as final where final). A 7.70.x (or earlier) file journal store names a key with a capital letter by its id, this one by the digest: during the window a 7.70.x-or-earlier continuation and this release's do not exclude each other on such a key (KL-5156-d; measured against 7.70.0).
|
|
481
|
+
- **Known.** KL-5156-d (above; also, on a volume that folds case, two resumes of run ids that differ only by case read one journal under two claims when the file journal store has no run store and the host chose ids with capitals — the unfinished step may run once under each, where 7.70.0 refused the second claim). KL-5156-e: when the parent's row is deleted and recreated under the same id while a resume is being admitted, `resume.fromCreationId` can name the new row while the replayed journal is the old one. KL-5182-a: a failed member that carries the code `workflow.agent_parked` itself puts it on the record and the completion notification though the run has no park card. The fork no longer forms from one process; one an earlier release left is continued from whichever member a decision names. #5183 is pinned on seeded records (a real run that leaves such a card was not found).
|
|
482
|
+
- **Rules.** Readers of a workflow's runs 3 (the claim key's walk up, the holder law's walk down, a host's own set) → 1 (`readWorkflowRunTree`); judgments per continuation 3 (two pre-judgments and one over the chain) → 1; places that write the record's park code 2 (the park terminal, the script's throw) → 1; readings of "is this card's line waiting" in the judge 2 (the holder law, the drive) → 1 judge with one more arm; claim keys a continuation holds up to 2 → 1.
|
|
483
|
+
- **Pins.** `test/backlog5156-t3-tree.test.ts` — A1 – A4 (the tree from any run; reads per tree; a creation changed between the walks; a damaged successor; no record) on both stores · B1 – B2 (the mark rule on seeded trees, four final words, both stores) · B3 (real Runner, both stores, three final words: the mark on the earlier holder after the holder read it ⇒ nothing told, nothing started, nothing written) · B4 (a real child process writes that mark on the file store) · C1 – C2 (#5183 and its control) · D1 – D3 (#5182: a forged code, a child's code, a real park) · E1 (a claim store's throw, a rejection and a synchronous one), E3 (`""` and three other bad ids from the tool, `""` from a direct start) · `test/backlog5156-t3-claim-case.test.ts` E2 (case-only keys) · `backlog4552-fix1` F10c (a fork member's no is recorded on its entry; the other member then told nothing) · F1 – F2 (the live door) · S1 – S2 (a host's direct start: the line's tail, a fork) · re-pinned to the tail (each names the 7.69.x reading): `backlog4455-holder-takeover` 10, 13, 14 · `backlog4455-pass-first-come` P2 – P5 · `backlog4551-outward-wording` M2 · `backlog4552-one-waiting-line` N1, N4, N5, N8, N14, N20, N21 · `backlog4552-fix1` F10, W, O, KL-4552-a / d / d′ / g · `backlog4556` O3 · `backlog1319`, `backlog3240` P-parked-words, `backlog4652`, `backlog4832`, `backlog4833` J1 / J2, `backlog4851` K7, `backlog4390-engine-continues` P15 · the judges' pure pins read seeded trees through the reader (`test/workflow-run-tree-pins.ts`) · `test/backlog5156-root-exports-for-host-stores.test.ts` ① – ④ (the tree of one through the package root: the three judges take it; a record that claims the park is `held`; a later run that took the park over is seen by the whole tree and not by the first record's tree of one; a record that does not claim it is `none`) and ⑤ (`workflowRunCreationIdOf` through the package root: a string member, an absent one, a JSON null or a non-string).
|
|
484
|
+
- **Consumers.** @server: read a card's tree once with `readWorkflowRunTree` (any of its coordinates' run) and hand it to the judges — your own collection no longer compiles; a synchronous check under a row's lock that holds only that row uses `workflowRunTreeOfOne(row)`, and its judges answer only what that record says of itself (never who holds the park now — that is the whole tree's answer, for routing a decision); read `spent.by`; a stale card is `workflowParkWaitOf` of the card's holder (`workflowParkHolderOf`) reading `moved_on` — each run of a fork asked, any `waiting` keeps the card; your notifier's input carries `errorCode`; if you read final marks on the holder's row only, read them on any row of the token (ruling B). @cli @test: a model's resume of a run already continued now continues the line's tail (launch result `resumedFrom` / `resumeNote`, record `resume.asked`); `resumeFromRunId: ""` is refused. @server @cli @test: a run whose journal store threw while its resume claim was taken ends `workflow.park_truth_unreadable` (`detail.reason: "store_threw"`) — read that code on the record (`errorCode`), not the store's errno.
|
|
485
|
+
|
|
486
|
+
### A decided workflow park says whether its decision was used: a paired notice for "used", one scalar occurrence key on both, one table of what is left to do per reason, and the two codes' key sets written down (#5208; hard-breaking: `WORKFLOW_PARK_SETTLING_REASONS` leaves the root, open to veto @server @client-core @cli @test; `EngineNoticeCode` +1 for an exhaustive reader; narrowing: none; widening: none; closed sets: `EngineNoticeCode` +1, `WorkflowParkUnusedClass` new (4); exports: +4 (`WORKFLOW_PARK_UNUSED_REASON_CLASS`, `workflowParkUnusedClassOf`, `WorkflowParkUnusedClass`, `WorkflowParkUnusedClassRow`), −1 (`WORKFLOW_PARK_SETTLING_REASONS`); wire: one notice code, two `detail` members on `workflow.parked_decision_unused`, one optional member `class` on the `spent` / `blocked` decision readings) (@server @client-core @cli @test)
|
|
487
|
+
|
|
488
|
+
- **Rule.** What came of a decision a leg carried is told by one of two codes, each once: not used (`workflow.parked_decision_unused`, as before) or used (`workflow.parked_decision_used`, new). Which decisions a notice tells is one scalar (`decisionKey`). What is left to do with a decision is one table keyed by the sixteen reason words; the engine's own judgment of "spent for good" reads it. Each decision of a batch is told what was judged of it, never another decision's reason (leg-5208 F1), and in exactly one notice (an entry handed again for the same run, card and id is judged once): the notice's class and the decision's reading agree while the decision's own card still waits and reads.
|
|
489
|
+
- **Before (7.71.0 line before this change, read in the code).** Only "not used" had a notice; "used" reached the model's frame alone, so a reader had absence as its only evidence (a cut stream, a spent window and an older engine read the same). `detail` named its decisions as an array only: a reader keying by (code, `runId`, `reason`) folded a second decision of the same run, refused for the same reason, into the first. Which reasons spend a decision was a list (`WORKFLOW_PARK_SETTLING_REASONS`) plus two conditions written in code (`card_unresumable` only with `terminal`, `denied` only when a person said no); "still deliverable / decide again / start over / withdraw" was prose only, and a `denied` notice did not say which kind of no it was. A batch whose decisions the judgment answered differently was told one reason for all of them (the first decision's, or the card no release resumes): a refused drive beside an expired card was told as `decision_spent` for both, and a refused drive beside such a card was told `card_unresumable` at every hand-over and never marked.
|
|
490
|
+
- **Now.** (1) `workflow.parked_decision_used` — audience `user`, attention `audit` (off the screen), minter `engine`; `detail: { runId, decisionIds, decisionKey, continuedAs }` plus the leg's address, never the token; once per continuation the engine started, by the leg that started it; of the decisions one leg carries for one run one answer is told (a decision the continuation carries is not among that run's unused notices); both codes are delivered before the leg's first request to its own model (an auto-mode classifier the gate consults while judging the continuation may be asked first). (2) Both codes carry `detail.decisionKey`: the first 32 hex characters of the sha256 of the JSON `[runId, ids]` (`runId` the run the decisions name, never the leg that carried them; `ids` without repeats, ascending code-unit order) — compare it, never parse it; the same decisions handed to the same run read the same key on both codes and at every hand-over. A notice's occurrence is (code, `decisionKey`, `reason`), but a later notice with the same triple whose `detail` differs in `changed`, `inputs` (a `host_changed` whose moved inputs changed), the holder or the sentence's `why` is a new occurrence by the engine's own once-per-condition judgment — a consumer that replaces the older notice by the newer one under the same key reads what the engine told last (KL-5208-c); `decisionIds` has no engine bound. (3) `WORKFLOW_PARK_UNUSED_REASON_CLASS`: a frozen literal of plain data, one row per word (`kept` class, `spent` class, or both with `spentWhen`), every word filled at the type level; `workflowParkUnusedClassOf(reason, spent)` is a lookup — `deliverable` (10 words, and `denied` / `card_unresumable` kept), `withdraw` (`not_pending`), `decide_again` (`entry_unreadable` kept, `decision_spent`, `denied` spent by a person's no), `start_over` (`launch_unreadable`, `card_unresumable` with `terminal`) — and answers `undefined` for an arm the row lacks, a word outside the set or a `spent` that is not a boolean. The unused notice always carries `spent` (a boolean) and it is each decision's own: an answer that spends some of the decisions it names and not the others (a batch stopped by a card no release resumes spends that card's decision alone) is told as two notices, one per value — the only change in how many unused notices are told (`backlog4832` F-precision re-pinned). The engine's spend predicate, the words a final mark may carry and the frame's settled wording read the table (spend and final-mark answers are what they were: pinned by `backlog4832` W1 / R2 and this change's K4; one frame line moves: `entry_unreadable` now reads in the settled wording, its class being `decide_again`). (4) The two codes' frame and `detail` key sets are listed in `docs/INTEGRATION-CORE.md` and pinned: the frame's top level has no run member; `detail.runId` is the run that parked, never the run that carried the decision. (5) The decision reading's states, member by member, are listed and pinned; a deliverable decision not used reads `blocked` from before its notice is delivered (the mark is written and waited for first). `workflowParkDecisionOf`'s `spent` and `blocked` readings carry an optional `class`: what is left to do with the decision, as the class table answers it in the engine that reads the state (the judgment is unchanged; the reading carries one more member). Absent only for a `blocked` reading in a word with no kept class (a mark this engine never writes).
|
|
491
|
+
- **Hard-breaking (open to veto @server @client-core @cli @test).** `WORKFLOW_PARK_SETTLING_REASONS` is removed from the package root: read the words with a `spent` class off `WORKFLOW_PARK_UNUSED_REASON_CLASS`, or classify an answer with `workflowParkUnusedClassOf`. The type `WorkflowParkSettlingReason` stays (now derived from the table). A reader exhaustive over `EngineNoticeCode` meets one more code. The removal is its own commit.
|
|
492
|
+
- **Known.** KL-5208-c (the consumer's dedup key above, measured: one decision told `host_changed` twice with `inputs` `model` then `permissions`). KL-5208-a: on a leg that resumed to run the model's own `Workflow({ resumeFromRunId })` call for a run, with a Workflow tool mounted, neither code is told for the readable decisions handed for that run, whichever way the call's card was decided — the call answers for the run; absence there still reads "not known" (an unreadable entry for that run, when no readable one names it, and a leg with no Workflow tool are still told unused). Read in the code, from before this release and not changed here: an entry that does not read is told only when no readable entry names the same run. No machine-readable occurrence table exists for the notice catalog (that is #1507's); the occurrence is written in the catalog row and the integration document. KL-5208-b (measured): two decisions for one card in one batch — the continuation drives the step with the first in the batch's order; the second reads `carried` though the card is `resolved`; the used notice names both; hand a card its newest decision alone. Written down, no code change: re-delivery is the host's (the engine guarantees `workflow.park_decision.same_state` and that a new `decisionId` is judged on its own); no reading is final (a host's direct start can drive a `spent` decision; a step that parks again on a new card leaves the older decision's reading `open`; `blocked` can read another `blocked` or `open` again); release rules — a word that moves to another class is named hard-breaking, a row that gains a fourth key is named.
|
|
493
|
+
- **Rules.** Places that decide whether an answer spends a decision 2 (a list and two coded conditions) → 1 (the table); readers of "what is left to do" per reason 3 ends' own copies → 1 exported table; evidence for "used" 0 positive words → 1.
|
|
494
|
+
- **Pins.** `test/backlog5208-g1-decision-used.test.ts` U1 – U4 (real Runner: the used frame whole, once, before the first request, not again on the same or a new Runner; an unused answer has no used notice) · `test/backlog5208-g2-address-keys.test.ts` A1 – A2 (five answers' key sets) · `test/backlog5208-g3-decision-key.test.ts` D1 – D4, D2b (one decision on both codes, two decisions for one card, one decision handed over twice, the documented digest) · `test/backlog5208-g4-reason-class.test.ts` K1 – K5, K2b (the table whole and plain data, the reader and its undefined edges, the type fence, final marks in every word, the notice and the reading agree on a real Runner) · `test/backlog5208-g5-decision-states.test.ts` S1 – S3 (each state's members, `class` included and absent where the lookup answers nothing; `blocked` before the notice; an unmarked reason stays `open`) · `test/backlog5208-g6-two-decisions-one-card.test.ts` (real Runner: two decisions for one card in one batch, allow first and deny first — KL-5208-b) · `test/backlog5208-g7-live-door-reading.test.ts` L1 – L2 (real Runner: a decision delivered through `redeemWorkflowParks` to a run still running reads `driven` before the run ends when it names `decisionId`, and `open` throughout when it does not) · `test/backlog5208-g8-own-reason.test.ts` C10 / C13 / NH / M2 / DUP / F2 (real Runner: each decision of a batch told its own answer, its class the reading's; a decision a card no release resumes stopped, handed alone, continues the run; the `entry_unreadable` frame wording) · re-pinned for one answer per decision: `backlog4390-fix1` E4, `backlog4832` F-precision and K4, `backlog5208-g1` U5 · re-pinned for `class` (a reading pinned whole now names it): `backlog4832` F-denied, F-unresumable-not-terminal, F-decision-spent, R1, R2, the N- / L2- / P-policy rows · `backlog4833` P1 · `backlog5156-t3-tree` B1.
|
|
495
|
+
- **Consumers.** @client-core: key a park-decision notice by (code, `decisionKey`, `reason`) and let a newer notice under the same key replace the older one — a key that drops the later notice swallows the second notice of one decision whose reason stayed `host_changed` while its `inputs` moved; classify a notice with `workflowParkUnusedClassOf(detail.reason, detail.spent)` (a notice without `spent` is an older engine's: no class) and a decision reading by its own `class` (no build-time copy of the table needed: a word that moves to another class is answered by the engine that read the state); read `workflow.parked_decision_used` as the positive word and keep "absent ⇒ not known". @server: add `workflow.parked_decision_used` to your notice allow-list (it rides the carrying run's event log like the other code); a reader of `WORKFLOW_PARK_SETTLING_REASONS` moves to the table; `detail` no longer carries `askedBefore` (gone since 7.70.0). @cli @test: a probe that pinned the unused notice's `detail` whole, or "no workflow notice" on a started continuation, goes red — read the two new members and the used notice. @server @client-core @cli @test: a batch whose decisions were answered differently is now one notice per answer (each decision in exactly one), so a probe that pinned one notice for such a batch, or a reader that counted one notice per run, meets more; a decision whose own reason spends it (a refused drive, its own card no release resumes) is now marked and told once instead of at every hand-over; the decisions a card no release resumes stopped are told `card_unresumable` without `terminal`, in a sentence of their own (kept: hand each over without that card's decision). The class of a notice agrees with the decision's reading while its own card still waits; for a card that no longer waits or does not read, read the card first.
|
|
496
|
+
|
|
497
|
+
### A shell card a standing rule could clear offers "allow this call for the rest of the session"; a session row can be taken back (#5210; one optional `AskRequest` member `sessionCallGrant`, one optional `AskOutcome` member `sessionCallGrant`, one `PERSISTED_RULE_MATCHES` word `call`, one optional `SessionRulePartition` verb `revoke`, one optional `ExecutionEnv` member `searchPath`, two notice codes, eleven root exports; behavior change: yes; narrowing: none; widening: yes — OPEN TO VETO; hard-breaking: two, named below)
|
|
498
|
+
|
|
499
|
+
- **Before.** A card for `node -e '…'`, `python3 -c '…'`, `cat x > out` offered no "don't ask again" option at all (`ruleOffersAbsence: "lane_cannot_speak"`); `python3 scripts/convert.py data/a.jsonl` offered only the exact rule (another file asks again); a compound with a redirection offered a batch that leaves the redirected segment uncovered. A session-scope removal (`removePersistedRule` with `scope: { kind: "session" }`) was refused (`unsupported.session_scope_store`): a session row lived until the session ended.
|
|
500
|
+
- **Now.** Where the question is one a standing allow rule could clear (the rule offers' own ladder: never a mandated question, a hook's, one under an explicit `ask` rule, a sandbox escape or an inside peer's), the call is a shell command whose binding the run's environment can read, the run keeps session rules (the same predicate as a session-long read grant), the session partition has `revoke`, and a person's seat renders the card (not a seat declared a policy, nor an ask its declared class table answers — the same reading as the card's existing-target read), the synchronous card carries `sessionCallGrant: { grant, sentence, fingerprint, cwd, programs, scripts, inlineCode, writes, operandDirs }`. A person who answers `{ allow: true, sessionCallGrant: <grant> }` (no edit; `settledBy` absent or `"human"`, from a seat not declared a policy) gets one session row — `behavior: "allow"`, `tool: "Bash"`, `match: "call"`, `rule: "Bash(<call sha256:…>)"`, `command` = the `CallGrantBinding` contract (canonical JSON: the starting directory, each run's directory and program file by canonical path, identity, size and modification time, a script by its bytes' digest and the digest of the interpreter's source files beside it, each redirection target's canonical path, and — for a single `I script operand…` run — the directories its file operands may vary inside; digests and paths only, never a word of the command). A later call of the same session whose reading comes out equal is allowed by it as a standing allow rule is; any member that differs or cannot be read and the call is judged as if the row were not there. `approval.session_call_granted` (audit) says it took; `approval.session_call_grant_rejected` (audit, the record of the person's own choice that did not take, like `approval.read_root_grant_rejected`; `detail.reason` ∈ `SESSION_CALL_GRANT_REJECTIONS`) says why not (`offered`: the card's key, when it offered one); both carry the card's `checkpointId` beside `toolCallId`. A key sent to a card that offered none is told the same way (`no_offer`) at every station that settles an answer — the synchronous one on a run that keeps no session partition, and the three inherited-ask stations. A write whose outcome is unknown says it may have landed. An answer the option does not apply to — a refusal of the call, or the card's key in an answer no person gave — keeps nothing and mints no notice. `removePersistedRule` with a session scope now takes a session row back through the partition's `revoke` (`removed` / `no-op`, `rev: 0`, `stillLive: "no"`; a revoked dot never lands again in that session, and a restore into the same partition instance, cut before the revocation, does not bring the row back — a restore of such a snapshot into another partition (another process, after a restart) does: KL-5210-c). A listed row reads back as the card's members through `sessionCallGrantOfRow`.
|
|
501
|
+
- **Not bindable (the option is simply absent; nothing else changes).** Any expansion, substitution, group, function definition, control structure or background job; an assignment, wrapper or launcher in front of a program (`PATH=… node`, `env X=… node`, `sudo`, `xargs`, `timeout`, `eval`, `source`, the shells); any bash builtin but `echo`, `printf`, `test`, `true`, `false`, `pwd`, `:` and `cd` (`hash`, `export`, `read`, `umask`, `kill`, … — bash runs its own whatever file the name resolves to), and `printf` with an option word or a `%n` in its format; any command the reading does not carry whole — a piece it does not read as a run, wherever it stands: a `[ … ]` or `[[ … ]]` test, an arithmetic command, a `!`, a comment (`[ -f x ] && python3 s.py x`, `[ -f x ] || python3 s.py x`, `true && ! cd sub && x`, `x # note` offer nothing: one more question; `test -f x && …`, where the test is a run, binds as before); any command with a backslash anywhere, quoted or not (`tool A\ B`, `grep 'a\.b' f`, `find . -name \*.ts`, a line continuation — the text a grant digests folds blanks, which is the command's only when no backslash escapes one; these are asked every time, as in 7.70.0); a command that does not start with its first program word (`; x`, `&& cd sub && x`, `< in x`, `>out echo hi`); a redirection operator whose descriptor digits follow another operator (`<2147483648>/dev/null`: bash opens a file named by the digits); an interpreter subcommand (`node inspect`); a here-document; a script path through `..` (an operand through `..` is no hole); a `cd` other than one literal directory without `..`, any `cd` while `CDPATH` is set or the search path holds a relative entry, and any `cd` in a command whose runs are joined by anything but `&&` (a pipe between two runs neither of which is a cd aside: `true || cd sub && x`, `echo a | cd sub && x`, `false && cd sub; x`, `cd sub; x` offer nothing — bash may skip the cd, or run what follows it where the cd did not move it); a redirection target that may be a link leading nowhere (a link that leads nowhere is written where it leads, so it is not read as a missing file); a program that is an interpreter, shell or launcher under another name (`Python3`, `python3.14`, `python3.13t`, a link `./py` to one, a BusyBox applet link among them — on Alpine `ls`, `tail` and `grep` are links to `busybox`; a script is read only under the interpreter's exact name), or one named exactly whose file is another (`./node` a link to `python3`); a shell child that receives `BASH_ENV` or `ENV`; an environment that does not declare `searchPath` (for a bare program name), `receivedEnvNames`, `readLink` (for a redirection target that does not exist), file identity or permission bits. Every path word is read as the kernel opens it (`ln/../out.txt` is the file beside the link's target). A program the engine reads as no interpreter (`tsx`, `uv run`, `make`, a `#!` script) binds its own file and not the script it reads: a card that lists no script bound none (KL-5210-a). The card lists an input redirection's file (`< file`) among `writes` (KL-5210-h). The binding reads the file system as it stands before the command runs: a run of the same command that changes a later run's files (`cp a.py b.py && python3 b.py` where `b.py` already exists — where it does not, the command is not bindable —, `ln -s … out.txt && echo x > out.txt`) is read as of before (KL-5210-i). The binding is read from the command's spelling, form by form, and is not exhaustive: a form the reading does not foresee may bind less than bash touches (KL-5210-j). Until this face binds the facts of the execution itself (7.72.0), do not give the rule store a session partition for a session that untrusted content can steer — the option appears only where the host gives the rule store one.
|
|
502
|
+
- **Never looser than the exact rule.** Beside any row that answers for the call — a deny, an ask, or one this engine cannot read (which fails closed) — the grant is not read: it admits only a call no row spoke for. An answer's `updatedInput` equal by value to the call's input is no edit (the engine's one input identity, the bound-input hash).
|
|
503
|
+
- **Known limits.** The binding holds only what it lists: a file the program loads from anywhere else (a module above the script's directory, a site package, a file inline code imports) is not bound, and its change does not ask again (KL-5210-a; the card's sentence says so). **Upgrade / rollback:** an engine before 7.71.0 refuses, loudly, a session snapshot holding a `match: "call"` row — the whole snapshot, its deny rows included — so a resume across a downgrade fails; revoke the grant rows before downgrading (KL-5210-b). Found in the pre-release review — KL-5210-c: a revocation is remembered only in the partition instance's memory, so a session snapshot cut before it and restored into another partition (another process, after a restart) brings the revoked row back — a host that resumes across processes re-cuts the snapshot after a revocation, or voids the old one. KL-5210-d: when the host's rule store never answers the write, the approval that chose "allow this call for the rest of the session" waits without the 30-second bound, and a cancel during the wait still lets the write land when it returns. KL-5210-e: an uncertain write (landed, acknowledgement lost) is announced with `reason: "not_written"`; only the sentence says it may have taken effect, and the same command is not asked again afterwards. KL-5210-f: a session-scope rule is bounded by its session id and records no owner — `removePersistedRule` for a session row does not compare `principal` (on 7.70.0 it refused every principal), and `effective({ sessionId })` does not either; a host sharing one provider with a session partition among principals must keep each session id with its caller. KL-5210-g: a snapshot that holds one rule twice under one identity (a host's own construction) is revoked one row at a time — the answer says `stillLive: "no"` while the second row still applies.
|
|
504
|
+
- **Widening — open to veto.** A person's one answer now stands for later calls of the same session that read back the same binding. Relative to the reference: the reference has no such grant (its shell cards offer a prefix rule or a plain yes) — a deviation, entered in the deviation register.
|
|
505
|
+
- **Hard-breaking.** (1) `PERSISTED_RULE_MATCHES` / `PersistedRuleMatch` gain `"call"`: a reader that switches exhaustively over the match words (a rule page's labels, a backend's row check) does not compile until it handles it; no rule offer ever carries it (the offer reader reads it as `unknown_word`). (2) `removePersistedRule` with a session scope no longer always refuses: on a provider whose session partition implements `revoke` it removes the row. Additive: the card and answer members, `SessionRulePartition.revoke?` (a partition without it serves and lands rows as before; its rows end only with the session, and no card offers the grant), `ExecutionEnv.searchPath?` (a host adapter that omits it gets no option for bare program names), the notice codes `approval.session_call_granted` / `approval.session_call_grant_rejected` (`ENGINE_NOTICE_CODES` grows by two), and the root exports `SESSION_CALL_GRANT_REJECTIONS`, `sessionCallGrantOfRow`, `readCallGrantBinding`, `SessionCallGrantOffer`, `SessionCallGrantScreen`, `SessionCallGrantRejection`, `CallGrantBinding`, `CallGrantSegment`, `CallGrantProgram`, `SessionRuleTarget`, `SessionRuleRevokeResult`.
|
|
506
|
+
- **Who is hurt.** A host that answers cards without a person and omits `settledBy: "policy"` would have its automatic yes read as a person's: it already must say `"policy"` (the `requiresRealApproval` contract), and it never sends the key unless it renders the option. A host whose own execution environment declares no `searchPath`: no option for bare program names (nothing else changes). Consumers: @server (its own session partition, if it wires one, adds `revoke`; its execution environments declare `searchPath`), @cli and @client-core (the card's option, the answer's key, the rule page's session rows and their removal), @test (the pins below).
|
|
507
|
+
- **Pins.** `test/backlog5210-session-call-grant.test.ts` (S5-a revoke, session end, resume; S5-b each member of the binding changed asks again, what offers nothing, a partition without `revoke`; S5-c the card's 1 / 0 / 0 over three messages, answers that keep nothing, a mandated question and an explicit ask rule still ask, a child and a fork do not inherit, an `updatedInput` equal by value is no edit, a policy seat and a run without a session partition offer nothing, the card's nine members and their projection from the row by `sessionCallGrantOfRow`, the rejection words) and `test/backlog5210-verdict-matrix.test.ts` (invariant 3: with no grant in the session, 44 commands × four modes judged on a real Runner equal the base's recorded verdicts cell for cell). The tests are the cells a black-box leg can re-read; the section carries no separate list of them.
|
|
508
|
+
|
|
509
|
+
### A read-directory grant riding a refusal is no longer announced, and both read-grant notices carry the card's id (#5210, the read-root family brought to the same rule; behavior change: yes — one rejection reason is no longer minted; additive: one `detail` member; attention: unchanged; hard-breaking: two, at the type level, below — OPEN TO VETO @server @cli @client-core @test, and a change to a notice shipped since 7.32.0; closed sets: the `reason` of `ReadRootGrantScreen`'s rejected arm loses `on_refusal` (nine words to eight); exports: none added or removed)
|
|
510
|
+
|
|
511
|
+
- **Before.** An answer that refused the call and carried a `readRootGrant` was announced `approval.read_root_grant_rejected` with `reason: "on_refusal"`. Neither `approval.read_root_granted` nor `approval.read_root_grant_rejected` named the card it answered beyond its `toolCallId`.
|
|
512
|
+
- **Now.** A grant rides an approval: on a refusal it does not apply, keeps nothing and mints no notice — `on_refusal` is no longer a reason this engine mints (the other eight are unchanged, each a choice that did not take). Both notices carry `detail.checkpointId`, the card's own `AskRequest.checkpointId`, at every station that settles a grant (the main gate and the three inherited-ask stations), so a surface that shows a card's history joins them to it. Attention unchanged: both `audit` (the record of the person's own answer, as #4717 ⓪ set it); the session call grant's two notices read the same way.
|
|
513
|
+
- **Hard-breaking (type level, open to veto).** (1) The root export `ReadRootGrantScreen` loses a member of its rejected arm's `reason`: `"on_refusal"` is gone, so a switch `case "on_refusal":` over it fails to compile (TS2678) and a value `{ verdict: "rejected", reason: "on_refusal" }` typed as it fails (TS2322) — a reader of a historical grant record (a notice or a settlement an older engine wrote) that wants to label the old value must keep its own union for it. (2) The refusal arm of the exported `ResolvedAsk` (`action: "deny"`) now types `readRootGrant` as `never` (it was `ReadRootGrantScreen`): a host that constructs an old settlement or reads `readRootGrant` off a deny no longer compiles where it did. Both change what the engine can say, not what it does with an answer; a host that already handled only the eight remaining words compiles unchanged. (Measured by two review legs with a focused TypeScript check against the two declarations; read in `src/core/read-root-grant-screen.ts` and `src/core/tool-policy.ts`.)
|
|
514
|
+
- **Consumers.** @server @cli @client-core: a reader that counted or showed `reason: "on_refusal"` sees none — the refused call's own settlement is the record; join a grant notice to its card by `checkpointId` (not `toolCallId` alone, which a re-asked call shares). @test: the black-box cells below.
|
|
515
|
+
- **Pins.** `test/backlog1093-read-root-grant.test.ts` ⑧ (a refusal: no notice; both notices carry the card's id; both `audit`).
|
|
516
|
+
|
|
517
|
+
### No write a caller makes to the package's exported rule and protocol tables changes an engine verdict any more — `RULE_BEHAVIORS_BY_PRECEDENCE`, `RULE_BEHAVIOR_PRECEDENCE`, `PROTOCOL_TABLE`, `MCP_NAMESPACE`, `A2A_NAMESPACE` are frozen; the engine reads its own copy of `RETIRED_TOOL_NAMES` and its own URL pattern (#5250; hard-breaking: a write to one of the five frozen exports now throws in strict-mode code (ES modules, `"use strict"`) and is silently ignored in a sloppy-mode script where it is an assignment or a `delete`; behavior change: none for a host that only reads them; narrowing: none; widening: none; closed sets: none; exports: primitives 2 added (`urlOfAnySchemePattern`, `retiredToolNameList`), none removed, no kind changed; wire: none) (@server @client-core @cli)
|
|
518
|
+
|
|
519
|
+
- **Before.** These seven exports were the engine's own live readings, and nothing stopped a caller from writing to them. `RULE_BEHAVIORS_BY_PRECEDENCE.reverse()` made a call with both a deny and an allow row come out allowed. `RULE_BEHAVIOR_PRECEDENCE.ask = 5` made a command a person listed to be asked about come out allowed. `RETIRED_TOOL_NAMES.delete("bash")` turned the loud retired-name miss into a silent one. Emptying `PROTOCOL_TABLE`, or re-pointing `MCP_NAMESPACE.prefix` / `A2A_NAMESPACE.prefix`, made `mcp__` / `a2a__` names unknown. Recompiling `URL_OF_ANY_SCHEME` before the engine loaded changed which URLs the engine withheld from text shown to a person. Each change held for every caller in the process.
|
|
520
|
+
- **Now.** The two arrays (`RULE_BEHAVIORS_BY_PRECEDENCE`, `PROTOCOL_TABLE`) and the three records (`RULE_BEHAVIOR_PRECEDENCE`, `MCP_NAMESPACE`, `A2A_NAMESPACE`) are frozen. A namespace entry's members cannot be replaced; its function members (`parse`, `makeName`, `displayGroupKey`) are not frozen objects themselves, but nothing written onto one changes what it answers. `RETIRED_TOOL_NAMES` is still a `Map`. The engine reads its own copy of the table, taken as the module loads (the judge, and the rule reading through the new `retiredToolNameList()`, which returns a fresh frozen list of names from that copy). The engine's URL pass builds its pattern from the package's private source through the new `urlOfAnySchemePattern()`, which returns a fresh `RegExp` on each call. `URL_OF_ANY_SCHEME` stays exported with the same kind and flags.
|
|
521
|
+
- **Hard-breaking.** A write to one of the five frozen exports — an assignment, `Object.assign`, or an array method that writes (`reverse`, `sort`, `push`, `shift`, …) — throws a `TypeError` in strict-mode code (every ES module). In a sloppy-mode script, a plain assignment or a `delete` is silently ignored, while the array methods and `Object.assign` still throw. A host that wrote to the exported table (`RETIRED_TOOL_NAMES.set` / `delete` / `clear`, or a recompiled `URL_OF_ANY_SCHEME`) to change what the engine judged no longer does: such a write now changes only that exported object, and so what other readers of that export in the same process see, never an engine verdict; every other reading is unchanged.
|
|
522
|
+
- **Not breaking.** `RETIRED_TOOL_NAMES.set` / `delete` / `clear` and recompiling `URL_OF_ANY_SCHEME` work as before and throw nothing.
|
|
523
|
+
- **Not changed.** Every name, kind and declared type; every value and order a host reads. `RETIRED_TOOL_NAMES` answers every read-only use exactly as in 7.69.1: `instanceof Map`, `util.types.isMap`, `Object.prototype.toString`, `Map.prototype.get.call` / `has.call`, `structuredClone` (and so `postMessage`), `isDeepStrictEqual`, `util.inspect`, iteration in written order. The members of a namespace entry still work destructured.
|
|
524
|
+
- **Rules.** Ways a caller could change an engine verdict through an exported table: 7 → 0.
|
|
525
|
+
- **Consumers.** @server @client-core @cli: if you write to one of the five frozen exports (a test that patches a table, a host that extends the protocol list), that write now throws in an ES module; keep your own copy instead (`[...PROTOCOL_TABLE]`, `{ ...RULE_BEHAVIOR_PRECEDENCE }`). A host that only reads them, or that writes to its own `RETIRED_TOOL_NAMES` / `URL_OF_ANY_SCHEME`, needs no change.
|
|
526
|
+
- **Pins.** `test/backlog5250-frozen-primitives-exports.test.ts`. Each frozen export: the write a caller could make throws and the engine's verdict stays — a deny + allow call, a command listed for asking, an `mcp__srv` deny, `mcp__` / `a2a__` resolution. `RETIRED_TOOL_NAMES`: the eight read-only uses answer as in 7.69.1; `delete` / `set` / `clear` on the export throw nothing, `bash` stays retired, and the rule reading still reads it as `Bash`. The URL: recompiled after the engine loaded, and in a fresh process before the engine's egress module loads. The package is compiled by its own tsconfig and read from its output.
|
|
527
|
+
|
|
528
|
+
### The reader of an offloaded card member is in `@sema-agent/primitives` — `offloadedDetailOf`, `OffloadedDetail`, with the notice's writer `mintOffloadedDetailNotice` and its head size `OFFLOADED_DETAIL_HEAD_CHARS` — so a browser asks the same function the engine asks (#5233; additive; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: primitives 4 added (3 values, 1 type), core root unchanged — `offloadedDetailOf` / `OffloadedDetail` are now the package's objects re-exported; wire: none) (@client-core)
|
|
529
|
+
|
|
530
|
+
- **Before.** The one reader of the notice an oversized card member is replaced by ("is this `originalFile` / `oldString` a 2,000-character head, and what ref names the rest") was in the engine's tool-result store, with the notice grammar as private constants beside it. A host that may not load the engine at run time (a web or desktop renderer) could not ask it, and a copy cannot be generated from the root: the closure's constants do not travel.
|
|
531
|
+
- **Now.** `src/primitives/offloaded-detail.ts` holds the grammar, its one writer (`mintOffloadedDetailNotice(full, ref)`) and its one reader (`offloadedDetailOf(value)`), exported by `@sema-agent/primitives` with `OFFLOADED_DETAIL_HEAD_CHARS` (2000) and the type `OffloadedDetail`. The engine's store mints with that writer and the session read-state replay reads with that reader, both by package name; the core root's `offloadedDetailOf` is the same function object.
|
|
532
|
+
- **Not changed.** Every answer: a 34-sample table (stored / unstored notices, heads with newlines, a cut surrogate pair, counts at and below the head, leading zeros, signs, past the safe integers, head one short / long, CR before the prefix, cut and padded tails, empty and quoted refs, non-strings) answers cell for cell as the store's reader did before the move. The notice text, the head size and when a member is offloaded.
|
|
533
|
+
- **Rules.** Readers of the notice: one, now loadable without the engine. Copies a host keeps of the notice grammar: one per browser-side host → 0.
|
|
534
|
+
- **Consumers.** none required. @client-core: the function your web and desktop side lacked is `offloadedDetailOf` from `@sema-agent/primitives` (same version as core); your engine port for it can retire. Absence semantics unchanged for a host that does not switch.
|
|
535
|
+
- **Pins.** `test/backlog5233-card-readers-primitives.test.ts` — A the sample table against the pre-move baseline (`test/fixtures/primitives-face-baseline.json`), one function object at root / package / module, writer → reader round trip; C the package compiled by its own tsconfig into a fresh directory answers the table the same.
|
|
536
|
+
|
|
537
|
+
### The application of a recorded edit is exported — `applyRecordedEdit(text, edit)` and `RecordedEdit`, in `@sema-agent/primitives` and on the core root (#5233; additive; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: primitives 2 added, core root 2 added; wire: none) (@client-core)
|
|
538
|
+
|
|
539
|
+
- **Before.** The one application of an Edit card's `edits[i]` (function-form replacement so `$&` is literal; `replaceAll` by split/join; an empty `oldString` is the whole-content overwrite the tool records over a whitespace-only file, answered by `newString`) sat in the file tools' shared module, exported by neither the root nor a package. A host rebuilding a card's after-text kept its own copy, and one copy read an empty `oldString` differently.
|
|
540
|
+
- **Now.** `src/primitives/recorded-edit.ts`; the Edit tool's apply loop and the transcript replay import it by package name; the root re-exports the same object.
|
|
541
|
+
- **Not changed.** Every answer over 17 samples (one / first of several / all occurrences, an empty old string with and without `replaceAll` and over a non-blank text, not found, `$&` `$1` `$$` in the replacement, regex characters in the old string, deletion, old equals new, overlapping occurrences, CRLF). The card's shape.
|
|
542
|
+
- **Rules.** Applications of a recorded edit a host must keep: one → 0.
|
|
543
|
+
- **Consumers.** none required. @client-core: read `applyRecordedEdit` and retire your mirror. For the flat `oldString` / `newString` reading: every edit card from the first public release on (1.279.0 on the registry, `v1.280.0` in this repository) carries `edits[]`; a single-edit card carries both shapes, a batch card only `edits[]`.
|
|
544
|
+
- **Pins.** `test/backlog5233-card-readers-primitives.test.ts` — B the sample table against the pre-move baseline, one function object; C the compiled package.
|
|
545
|
+
|
|
546
|
+
### The tool catalog's `Edit` row lists the `create` card it emits (#5233; catalog data; behavior change: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
547
|
+
|
|
548
|
+
- **Before.** `Edit` listed `cards: ["edit"]`; an Edit with an empty `old_string` on a path with no file creates it and returns Write's `create` card.
|
|
549
|
+
- **Now.** `cards: ["edit", "create"]`. The engine's card set (the union over the catalog) is unchanged — `create` was already Write's. The fs boundary refusal cards an Edit can return (`path_not_in_root`, `read_path_denied`) stay on the engine's own card rows, as for every fs tool.
|
|
550
|
+
- **Pins.** `test/backlog5233-card-readers-primitives.test.ts` D — every path of Edit (create, whitespace-only fill, replace, replace_all, batch), Write (create, overwrite) and NotebookEdit (replace, insert, delete) run on the real tools; each tool's catalog `cards` equals the card kinds it emitted.
|
|
551
|
+
|
|
552
|
+
### One reader of a `SKILL.md` text, loadable anywhere — `readSkillFile(text, { directoryName? })` answers read / skipped / refused with the directory loader's own reason and sentence; the name and description judges and their bounds come with it (#5243, #5195; additive; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: `SKILL_FILE_REFUSAL_REASONS` new (6, the same words `SkillsDirectoryWarningCode` already held; that type now reads them from `SkillFileRefusalReason`, same members); exports: primitives 26 added, core root 10 added, none removed; wire: none) (@client-core @server @cli)
|
|
553
|
+
|
|
554
|
+
- **Before.** The reader of a skill file (the frontmatter subset reader, the tool-list scanner) and the judgments after it (no fence, unreadable value, missing / invalid name, name ≠ directory, missing / over-long description) were private to the skills directory loader; the name's pattern and the two caps were module constants. A host that writes or edits a skill file judged it with a copy.
|
|
555
|
+
- **Now.** `@sema-agent/primitives` exports `readSkillFile` → `{ kind: "read", name, description, body, allowedTools, disallowedTools, fields }` | `{ kind: "skipped", reason: "no_frontmatter", detail }` (no opening fence) | `{ kind: "refused", reason, detail, line? }` (the type `SkillFileReading`; its second parameter is `ReadSkillFileOptions` = `{ directoryName?: string }`, both types on the core root too); `SKILL_FILE_REFUSAL_REASONS` (the six reasons in the order the reader asks), `judgeSkillName`, `judgeSkillDescription`, `SKILL_NAME_MAX_CHARS` (64), `skillNamePattern()` (a fresh `RegExp` of the name rule per call — no caller holds the judge's own, which `compile` could rewrite in place, and the package exports no regular-expression source), `SKILL_DESCRIPTION_MAX_CHARS` (1024). The loader asks `readSkillFile` for every directory and warns with its `reason` and `detail`. The reader's zero-dependency leaves are package modules now and the engine imports them by name: the frontmatter fence (`FRONTMATTER_FENCE`, `isFrontmatterFence`, `UNCLOSED_FRONTMATTER_REASON` — the root's three names are the package's objects), the rule syntax (`ruleSpellingOf`, `parsePermissionRule`, `isNameableToolName`, `indexOfUnescaped`, `lastIndexOfUnescaped`), the tool-list cut (`EntryCutter`, `isBlank`, `notARule`, `PARENS_NOT_ONE_ZONE`, `SEQUENCE_NOT_A_NAME`) and the shape of a caller's value in a refusal (`callerText`, `dataKind`; the root's `callerText` is the package's object). `fields` is every top-level scalar the reader already read; no field is read that was not read before.
|
|
556
|
+
- **Not changed.** What the loader installs and every warning, word for word: 44 samples (fences, BOM, CRLF, each name and description edge, each tool-list refusal, stray and indented key lines, block scalars, repeats, comments, the order of two faults) answer as before the move. Refusal sentences: no literal changed (the one sentence that quotes a caller's key keeps the same shape — `callerText` moved with the reader).
|
|
557
|
+
- **Rules.** Readers of a skill file: one (in the loader) → one (in the package, the loader asks it). Copies a host keeps of the name pattern and the two caps: one per host → 0.
|
|
558
|
+
- **Consumers.** none required — additive. @client-core: your skill-file judge and the three constants can read the package (`SKILL_FILE_REFUSAL_REASONS` holds the same words as the loader's warning codes); absence semantics are as you wrote them. @server @cli: a host that lists a skills directory itself can ask `readSkillFile` per file.
|
|
559
|
+
- **Pins.** `test/backlog5243-skill-file-reader.test.ts` — A the loader over every sample against the pre-move baseline; B `readSkillFile` with the directory's name is the loader's reading cell by cell (`skipped` exactly where there is no opening fence); C without a name only `name_mismatch` moves, the judges' bounds, `line`, `fields`; D the closed set and that every word is reachable; E one function object each at root / package / module, and the loader holds no frontmatter parsing; F the package compiled by its own tsconfig answers every sample the same.
|
|
560
|
+
|
|
561
|
+
### The background task kinds and their handle prefixes are on the package root — `SEMA_TASK_TYPES` and `SEMA_TASK_HANDLE_PREFIXES`, read from the registry's own mint table (orchestration slice 2-b, first step; additive; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: `SemaTaskType` registered (4, unchanged members; the type is now derived from the list); exports: +2, none removed; wire: none) (@client-core @cli)
|
|
562
|
+
|
|
563
|
+
- **Before.** `SemaTaskType` was a type only; the prefix each kind's handle is minted with (`b` / `w` / `a` / `m`, then 16 lowercase hex digits) was a constant private to the task registry. A consumer that tells a task's kind by its handle, or lists the kinds, kept a hand-written copy.
|
|
564
|
+
- **Now.** `SEMA_TASK_TYPES` (frozen; `SemaTaskType` is `(typeof SEMA_TASK_TYPES)[number]`, the same four words) and `SEMA_TASK_HANDLE_PREFIXES` (frozen; one letter per kind, total over the list at compile time). `TaskRegistry.mintTaskId` mints from that very object; the private copy is gone. No new kind: the peer task kind comes with its own release.
|
|
565
|
+
- **Consumers.** none required — additive. @client-core: your handle-prefix probe and task-kind list can read these two instead of the hand-written four (regenerate from them). @cli: the same for a task-kind table you keep. A future kind arrives as a new member of both — a reader that iterates them picks it up; one that pinned the four literals sees a fifth.
|
|
566
|
+
- **Pins.** `test/orch-s2b-task-type-tuples.test.ts` — the two values through the specifier a consumer imports, the source root and the declaring module are one object each, frozen; their members; every kind's minted id is its table letter + 16 hex; the letters are distinct; both are on the smoke list.
|
|
567
|
+
|
|
568
|
+
### A one-shot submission's ending waits under a ceiling the host sets — `limits.oneShotWaitCeilingMs` (default 600 000 ms, `0` = none of its own) — and when the ceiling is reached the run says which background tasks it stopped waiting for, `task.wait_ceiling_reached`; every agent a run's end stops carries what ended the run, `outcome.runEnd.cause`; the completion frame gains a `noWake` bit (orchestration slice 2-e; additive; behavior change: a new user notice where the ceiling is reached, one detail list emptied, below; hard-breaking: one, type level — `EngineNoticeCode` +1, open to veto @cli @client-core @server @test; narrowing: none; widening: none; closed sets: `EngineNoticeCode` +1 with its audience, attention and minter rows, `RunEndCause` new (7); exports: +3 (`RUN_END_CAUSES`, `isRunEndCause`, type `RunEndCause`), none removed; wire: one notice code, one optional `TaskLimits` member, one optional `MemberOutcome` member, one optional frame member) (@cli @client-core @server @test)
|
|
569
|
+
|
|
570
|
+
- **Rule.** The wait's ceiling was a constant; it is now the task's limit `oneShotWaitCeilingMs`, read only by a one-shot run's ending. Absent = 600 000 ms, as before and as the reference's default for the same wait; `0` = no ceiling of its own (the walltime and the cancel still end the wait), the reference's `0`. Bad values are refused at the door, `config.limit_invalid`: not a finite number, negative, or above 2 147 483 647. Set on a run that is not one-shot, or above `maxWalltimeMs`, it is not refused: the first has no wait to bound (a deployment may set it on every task), the second is two clocks, whichever comes first. The configuration catalog (`describeConfigCatalog()`) lists it — `limits.oneShotWaitCeilingMs`, recommended and default 600 000 ms, read from the constant the wait uses (`config.assembled` does not report it).
|
|
571
|
+
- **Before → now** (now measured, real Runner, `test/orch-s2e-wait-ceiling.test.ts`; before read off the code — the constant ceiling could not be lowered to measure it — and recorded as KL-3025-a): a one-shot run whose background agent outlived the ceiling completed with its answer and no word about the agent the run's end then stopped → the same result and one `task.wait_ceiling_reached` (audience `user`, attention `act` — as `task.interrupt_unconsumed`: the result carries nothing from the workers it waited for, and unsaid the person takes the answer for whole; `detail: { sessionId, runId, taskId?, ceilingMs, waitedFor }`, `waitedFor` the reading `task.interrupt_unconsumed` carries, each task with `stopped`); the sentence says the wait gave up, never that a stop arrived. A stop landing on the tail after that ceiling cut no wait: its `task.interrupt_unconsumed` now carries `waitedFor: []` (before, it named the tasks and said the stop ended the wait).
|
|
572
|
+
- **What ended the run, on each agent it stopped.** The run-end sweep of a run's task-scoped background agents now marks what ended the run; each agent it stops settles `killed` (its `stoppedBy` as before: `"user"` when a person's stop or the caller's own `signal` landed while the run was still working, else `"parent"`) with `outcome.runEnd = { cause }` — so on its completion frame's `outcome`, its stored row and the fleet terminal; the shell sweep's pre-mark of a person's stop, a direct stop racing the sweep, the leg's late settle and a settle that names another stopper all keep it (the cause is the sweep's, whoever `stoppedBy` names); the sweep's list is read as it starts — every running row whose stop nobody has fired yet carries the cause however it then stops (this sweep's abort, or another listed row's abort reaching it in the same sweep, W15), and a row whose stop was fired before the sweep began is someone else's and carries none (W13). The cause is written by the engine's run-end sweep only: `TaskRegistry.markStopSource` and `TaskRegistry.abortBackgroundAgentsForOwner` keep their 7.69.1 parameters and a row they stop carries none. `cause` ∈ `RUN_END_CAUSES`: `turn_end`, `one_shot_ceiling`, and the five stop words `task.interrupt_unconsumed` already names in `origin` (`interrupt` — also a halt the run consumed, exactly when the result carries `haltedByUser` —, `walltime`, `turns`, `budget`, `signal`) — one vocabulary, one reader for both. Absent on a stop by anyone else, an agent that ended on its own, and one a leg that parks stopped (the park's own yield parks or stops every task-scoped agent before the leg's teardown, so none reaches the run-end sweep); an outcome that carries it on any ending but `killed` does not read (`isMemberOutcome`).
|
|
573
|
+
- **A halt during the wait ends it, and the run signs it** (behavior change): the wait now also ends on the run's caller-stop gate, so a person's `halt()` that arrives while the ending waits (no turn in flight for it to cut) ends the wait at once; before, it was seen only when the wait ended on its own (up to the ceiling — measured on the base: a halt 100 ms into the wait was left latched until the walltime, then `task.halt_unconsumed`). With `0` and no walltime this is what keeps a halt from waiting forever. The run's ending is a boundary like the loop's two: a halt that ended a wait with work still owed is consumed there, by the rule a halt is consumed at the next turn's opening when the wait is woken — so the result carries `haltedByUser: true`, no `task.halt_unconsumed` is said, and the agents the run's end stops carry `runEnd.cause: "interrupt"` (measured, W6 / W6b). A halt at the ending of a run that waited for nothing did not end it and is not consumed, as before (W6c); nor is one landing the moment the wait stopped at its ceiling (the ceiling ended it: `task.halt_unconsumed`, W9b). A halt inside the Stop station of a run that still owes a worker keeps the wait from starting and is consumed the same way (W6f). What ended the wait is the wait's own answer (nothing owed, paid, input, its stop signal, its ceiling), read once, in that order: where the debt is paid in the same instant the halt lands, nothing was cut and the wait answers paid — the halt is left to the next turn's opening by the existing rule, or, with no next turn, `task.halt_unconsumed` (W16). Where the debt is paid without a frame (a continuation voided it before it reached the run) there is no next turn: that halt reads unconsumed (KL-S2E-h). The three stops during the wait, measured: `interrupt()` — completed, `task.interrupt_unconsumed` (`origin: "interrupt"`) naming each worker, cause `interrupt`; the caller's `signal` — the same with `origin: "signal"`, cause `signal`; `halt()` — completed, `haltedByUser: true`, no notice names the workers (KL-S2E-g), cause `interrupt`. Not on the notices' `waitedFor` rows: their `stopped` already says it, and a second member would be a second source.
|
|
574
|
+
- **`noWake`.** `TaskNotificationPayload.noWake?: true`: a frame that must not start a turn of an idle session by itself (the late result of an external agent-to-agent peer). No lane mints it in this release; a boxed frame carrying any other value is refused by the decoder.
|
|
575
|
+
- **Consumers.** @client-core: add `runEnd` (inside `outcome`) and `noWake` to the frame members you narrow to, and `task.wait_ceiling_reached` to your notice catalog — a member you do not list is dropped silently. @cli: a headless run can set `limits.oneShotWaitCeilingMs` from its own setting (the reference reads `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS`); render the new notice like `task.interrupt_unconsumed`. @server: the knob is how a one-shot task waits longer for its workers; a host table typed `Record<EngineNoticeCode, …>` needs the row. @test: the cells below.
|
|
576
|
+
- **Known limits.** KL-3025-a closed. KL-S2E-a (the root's knob does not reach a synchronous child's own ending: measured, a grandchild that never reports holds the child to the root's walltime, the root ends `failed` and no ceiling notice is said), KL-S2E-b (a stop after the ceiling cut nothing and says so; now pinned, W9), KL-S2E-c (a suspendable one-shot run with `0` is not woken at its walltime — the wait runs to the engine's watchdog; the default had the same shape up to 600 s), KL-S2E-d (a budget stop and a turn cap on the same boundary read `turns`, the order `origin` already has), KL-S2E-e (an agent the launching turn's abort stopped first carries no cause), KL-S2E-g (a halt that ends the wait names no stopped worker on any notice; each worker's own ending carries the cause), KL-S2E-h (a halt landing as the last debt is released without a frame reads unconsumed). KL-S2E-f closed (a halt that ends the wait is consumed).
|
|
577
|
+
- **Pins.** `test/orch-s2e-wait-ceiling.test.ts` (W1 the ceiling reached; W2 `0`; W3 a ceiling above the walltime; W4 a run that is not one-shot; W5 the default; W6 / W6b a halt during a wait, with no ceiling and no walltime and under the default, consumed; W6c a halt at the ending of a run that waited for nothing, not consumed; W6d a halt and an aborting stop in the same instant, the abort's; W6e the three stops side by side; W6f a halt in the Stop station with a worker owed; W9 / W9b a stop and a halt after the ceiling; W10 a parking leg's agent, no cause (a reading); W15 a row another listed row's abort stopped, either order; W16 a paid debt and the stop signal in one instant; W11 a settle naming another stopper keeps the cause; W12 the public mark and sweep write none; W13 a row someone else's stop had fired; W14 the wait's end reasons; Z1 / Z2 `0` at the book and at the knob's reader; D1 / D2 / D3 the door; F1 / F2 the two wire members); `test/backlog3025-oneshot-ending.test.ts` O8 gains the ceiling argument; `test/public-knob-liveness.test.ts` gains the limit's row; `test/config-catalog.test.ts` the catalog row; `test/backlog3334-parked-resume-discharge.test.ts` P10a reads the constant where it is declared now.
|
|
578
|
+
|
|
579
|
+
### A `find` removal meets the question `rm -rf` of the same place meets — the write face reads a `-delete` walk's starting points and the commands `find` hands on, and a `-regex` that may match every entry no longer reads as narrowed (#5058, #5075; behavior change: narrowing — more calls are asked)
|
|
580
|
+
|
|
581
|
+
- **Rule.** One removal table (`src/tools/fs/removal-actions.ts`) is read by both faces a removal meets. The write face writes each starting point of a `find` whose `-delete` is written (where it lands and at its entry), as it writes `rm`'s operands; a command `find` hands on (`-exec`, `-execdir`, `-ok`, `-okdir`) is folded as the command line it is, so `find <dir> -exec rm -rf {} +` writes where `rm -rf <dir>/*` does. The removal guard reads a path pattern or a regular expression as narrowing only where it reads it for certain: a literal outside every group that no count follows, read in every dialect `find` may use at once (GNU's default and `-regextype`'s, BSD's basic and `-E`); a group, and an atom a count that may take none follows, may match anything; a choice (`\|` with groups `\(` `\)`, or `|` with groups `(` `)`) is read branch by branch, at the top or directly inside a group no count follows, in each way a dialect reads the choice and its groups (both as operators; groups as operators and the choice as the character `|` — measured: BSD's basic dialect, this host; both as characters), a character read as one character, and narrows only where every branch does (`find-actions.ts` `regexShapes`); a choice inside a nested group, inside a counted group, inside the other spelling's parentheses, a line break, an escape that is not a literal in every dialect (`\w`, `\b`, `\1`), a bracket expression holding a backslash or BSD's word bounds and an anchor in the middle are not read; and the pattern narrows only where it matches no entry below the starting point whatever the entry is named — the start as `find` prints it where it is literal, any text where the shell rewrites it (`~`, `$D`), and past ASCII a pattern with a one-character piece, or a caseless one, is read as matching (what a character is, and its case, are the locale's); a bracket naming a collating element (`[[.ch.]]`) may take more than one character.
|
|
582
|
+
- **Who is asked more (narrowing, open to veto).** Under `readFace: "open"`, on a directory outside the workspace — the home included: `find <dir> -delete`, `find <dir> -name '*.tmp' -delete`, `find <dir> -exec rm -rf {} +`, `-execdir`, `-ok`, and `find . -exec rm -rf <dir> \;` meet `probe` (the write lands outside the write roots: no allow rule clears it, `bypassPermissions` releases it, `dontAsk` refuses it) where they met `ordinary` and an allow rule (`Bash`, `Bash(find:*)`) ran them. The same fold reaches every write a handed command makes: `find <dir> -name '*.o' -exec cp {} <elsewhere>/ \;`, `find <dir> -exec mv {} /dev/null \;` and `find <outside> -type f -exec sed -i … {} +` meet `probe` as `cp`, `mv` and `sed -i` written out do (inside the workspace, `-exec cat` / `grep` / `chmod` / `sed -i` / `rm` are unchanged). On any read face, a `find` removal is asked more strictly than on 7.70.0 only where the reader proves the action reaches every entry or a protected location (next bullet): `find ~ -regex '.*\(\.tmp\)*' -delete`, `-regex '.*x*'`, `find -E ~ -regex '.*\.tmp|.*'`, `-E '.*(\.tmp)?'` meet `dangerous_delete`, `bypassPermissions` included, as `find ~ -delete` does (BSD's `find` lists every entry of a made-up tree for each). At the task root the six regression forms answer as on 7.70.0 (measured, real Runner, four modes × two read faces × two rule sets): `find . -regex '.*\.\(ts\|js\)' -delete`, `'.*\(ts\|js\)'`, `-regextype posix-extended -regex '.*\.(o|a)'`, `find -E . -regex '.*\.(o|a)'`, `-mindepth 2 -regex '.*\.\(ts\|js\)'` and `-regex '.*\.\(o\|a\)' -exec rm -f {} +` meet `ordinary` (an allow rule runs them, `bypassPermissions` releases them). A `probe` here is asked the question `rm -rf` of the same place is asked: its way out is the same (answer it once, or run in a mode that releases it — `bypassPermissions`). Measured on the table of the pin's W cells (the five `find` forms of the first sentences — not the `-regex` forms of the sentence before, which change on every read face — real Runner, five modes × three rule sets, fake home and task root): on the open read face 105 of 432 cells changed, every one from ran or `ordinary` to `probe`; on the roots face none of the 315 the two trees share.
|
|
583
|
+
- **Nobody is asked less than on 7.70.0; more only where the reader proves it (the 7.70.0 floor).** For a path pattern or a regular expression the reader answers one of three: it narrows, it reaches every entry below the start (proved, `find-actions.ts` `reachProofOf`: an exact shape of literals, single characters and runs, read in the dialect the test is read in), or it is unread. Only a proved reach departs from 7.70.0's reading (`narrowsOn7700`); narrows and unread keep it — neither stricter nor looser. Where a handed command runs on a protected location below the start, what 7.70.0 read as certain stays certain (a line break in an expression is a character, as on 7.70.0: `find ~ -name proj -not -regex 'a<line break>b' -exec rm -rf {} +` stays `dangerous_delete`), and the reader adds only what it proves. Measured on four tiers (`dangerous_delete` > another mandated question > the ordinary question > runs unasked) with a comparison probe (the shipped 7.70.0 package and this tree, the real gate on the same commands, nothing run): the review legs' tables and this section's forms (114 commands), a second leg's (40), a third leg's (177, and 1 046 under `bypassPermissions` and default with a whole-tool rule), the line-break and bracket forms (77), four modes × with and without a whole-tool rule; 6 000 generated commands and 372 more on two cells — no cell lower than 7.70.0's; and 118 common cleanup commands (`node_modules`, `__pycache__`, `*.pyc`, rotated logs `'.*\.[0-9]+'`, empty directories, …) × 8 cells answer exactly as on 7.70.0. Stricter than 7.70.0 — only these, each proved (registered with its proof arm in `test/fixtures/backlog5058-floor-7700.json`): (a) a regular expression with a branch of runs only, `dangerous_delete` where 7.70.0 ran it under `bypassPermissions`: `find ~ -regex '.*x*' -delete` (and `'.*\(\.tmp\)*'`, `-E '.*\.tmp|.*'`, `-E '.*(\.tmp)?'`, `'\(a)X(b\)*.*'`, `'.*\(a)@@(d\)*'`, `'.*\(a{\(}\)@@{\)*}*'`; BSD's `find` lists every entry for each); (b) a handed command one branch of whose choice matches a protected location below the start: `find ~ -regex '.*/proj\|.*\.tmp' -exec rm -rf {} +` with the task root at `~/work/proj` (GNU's dialects read `\|` as a choice; BSD's basic dialect reads it as the character `|`, so on macOS's own `find` this family is asked once too often), `-E` / `posix-extended` / `awk` / `emacs` spellings alike; (c) a plain expression read under a known `-regextype`, before or after the test: `find ~ -regextype posix-extended -regex '.*/proj' -exec rm -rf {} +` (7.70.0 left an expression unread wherever any `-regextype` was written; an unknown one, `posix-minimal-basic`, `grep`, `egrep` and `posix-egrep` stay unread). Asked by the candidate, back to 7.70.0's reading in this release: a rewritten start's path pattern — `find ~ -path '*/node_modules/*' -delete`, `__pycache__`, `-wholename`, `-ipath` (this withdraws the tightening the first bullet's earlier wording named); each branch in its own group (`'\(.*\.o\)\|\(.*\.a\)'`), each branch anchored (`'^.*\.ts$\|^.*\.js$'`); a nested choice (`'.*\.\(o\|\(a\|so\)\)'`, `-E '.*\.(o|(a|so))'`); a counted choice (`'.*\.\(o\|a\)*'`, `'.*\.\(o\|a\)?'`, `-regextype posix-egrep -regex '.*\.(tmp|bak){1}'`); mixed spellings (`'.*\.\(o|a\)'`); a bracket (`'.*\.[0-9]+'`, `'.*\.[a-z]+'`); and `find ~ -regex '.+/proj\|.*\.tmp' -exec rm -rf {} +`, `find -E ~ -regex '.*/(work)/proj|.*\.tmp' -exec rm -rf {} +`, `find ~ -regex '.*/proj\|.*\.tmp' -delete`, `find . -regex '\(\|x\)' -delete`, `find . -regex 'a\|' -delete`, `find . -regex '.*/..\|.*/....' -delete`. Some of these match every entry and 7.70.0 read them as narrowed (`'.*\(ts\|.*\)'`, `'\(.*\)\|\.o'`: 7.70.0's holes, kept as they were (KL-4707-a). `find ~ -regex '.*~' -delete`, `find . -regex '.*/....' -delete`, `find -E . -regex '.*/..|.*/....' -delete`, `find -E . -regex '{*(}#%{*)*[}]*.*' -delete` and `find . -regex '[[:]*[~:]*[]#]*.*' -delete` are `dangerous_delete` in every mode, as on 7.70.0. The floor stays until the shell read station's reading of patterns is redone (7.72.0; retirement line `RL-find-path-narrowing-7700-floor`).
|
|
584
|
+
- **Cost.** A `find` that hands no command on reads no reach while the planner spells its handed lines (`findHandedCommands`): a read-only `find ~ -path '<a 1 500-character pattern>' -print` at a start the shell rewrites planned in 0.5 – 1.6 s on the candidate and plans in 2 – 7 ms (measured, planner only, this host under load); a `find` that does hand a command on (`-exec cat {} +`) over such a pattern still takes about a second (the reach is read once per pattern piece and depth).
|
|
585
|
+
- **What stands.** In an ordinary directory inside the workspace a rule still runs every form above (the task root itself, a home and the other protected locations keep `dangerous_delete`); `find ~ -name '*.tmp' -delete` and `-regex '.*\.tmp'` are narrowed as before; a removal the engine cannot read keeps its class (`find <dir> -print0 | xargs -0 rm -rf`: `unverifiable_delete`, which an allow rule clears).
|
|
586
|
+
- **Consumers.** @server @cli @client-core: a probe pinned to the old answer of these forms (ran unasked under an allow rule on the open read face; a `-regex` form on the home ran under `bypassPermissions`) reads the new one — re-pin to `probe` / `dangerous_delete`. One optional member is added to the exported type `ShellReadPlan` (root export): `handed` — present (as `true`) only on the nested plan of the command line a `find` `-exec` family hands on, absent everywhere else (`src/tools/fs/shell-read-plan.ts:295`, set at `:1283`).
|
|
587
|
+
- **Known limits.** KL-4707-a states the reading as it now is; KL-5058-a: text a shell parses (`sh -c 'rm -rf <dir>'`) is not judged for containment on the open read face (unchanged).
|
|
588
|
+
- **Pins.** `test/backlog5058-5075-find-removal-faces.test.ts` (A the reader, the ticket's four forms and their kin, the narrowed controls; M the platform's real `find`, list only: every form proved to reach every entry lists every entry; W the whole gate on the open read face: each `find` form answers as `rm -rf` of the same directory in every mode and rule set, with the controls; B `bypassPermissions` on the home); `test/backlog5058-regex-choice.test.ts` (R the choice reader; G the whole gate at the task root: the six forms above and four controls, 16 cells each, the proved forms, the unread forms answering 7.70.0); `test/backlog5058-find-floor-7700.test.ts` (1 250 recorded 7.70.0 cells judged on four tiers: none lower, none higher outside the registered proved table, each registered arm holding in the reader; the 18 forms one review measured stricter on the round-2 tree, the bracket and unknown-dialect forms and the line-break forms by name).
|
|
589
|
+
|
|
590
|
+
### A durable approval park that was attempted and failed is told on `delegation.ask_unresolvable` and on `TaskResult.refusedAsks` — `parkFailed` (the park's own sentence) and `parkFailedReason` (a `SUSPEND_LANE_REASONS` word) — and offered first as a way out, `{ kind: "park" }` in `detail.remedies` (#5244; behavior change: the model's refusal text — the refusal itself stands, but its text now opens its tail on the park ("the durable approval park for this call could not be set aside (…) — once it can be, the ask waits for a person") where a park failure is told; wire: two optional detail keys, two optional `RefusedAsk` members, a sentence clause, and the ways-out closed set grows; closed sets: one — `APPROVAL_REMEDY_KINDS` +`park` (two words → three), open to veto @server @client-core @cli; exports: none)
|
|
591
|
+
|
|
592
|
+
- **Before** (measured on 7.69.1 and the 7.70.0 candidate alike, real Runner): with a request-level clear on (`microCompact` machine `"cc"`), durable approval and no durable `toolResultStore`, the clear sets the cleared text aside in the default in-memory store, and every later ask that should wait for a person is refused instead (a park over a non-empty in-memory store would lose those results across a resume — that refusal is right and stays). The model's refusal and `onError` carried the park's reason; the notice said `cause: "no_approver_wired"`, a remedy naming an approver, and nothing about the park — an operator following it wired an approver, while the missing piece was the store.
|
|
593
|
+
- **Now.** The notice carries `detail.parkFailed` — the failed park's sentence, contained as the model's refusal quotes it — and, where the failure is one missing piece of durable-suspend infrastructure, `detail.parkFailedReason` (today only `volatile_tool_results`, the manifest's own `suspendLane.reasons` word). `cause` keeps saying who could answer live; read the park facts first on a deployment whose asks are meant to wait. The person's sentence of an approval's refusal gains one clause: "The attempt to set it aside to wait for a person's approval failed." (A question's own sentence — the agent's question nobody answered — is unchanged; its detail carries the same park facts.) A park seat's sentence that contains to nothing carries neither key (the notice is still told), a reason word outside the set is not carried, and an injected in-memory store is judged as a whole store (KL-4453-e), so `volatile_tool_results` can name results another session left there. The refusal itself now names both ways out: wire a durable `RunnerDeps.toolResultStore`, or turn tool-result offload off (`toolResultThresholdChars: 0`) — both measured to make the ask park again. Absent on every refusal where no park was attempted.
|
|
594
|
+
- **The park as a way out, as data.** `APPROVAL_REMEDY_KINDS` gains `park` (`ApprovalRemedy` gains `{ kind: "park" }`, no other member: why the park failed and what makes it succeed are the same frame's `parkFailed` / `parkFailedReason`). One rule: `{ kind: "park" }` is in `detail.remedies` exactly when the frame carries `parkFailed`, once, first; the notice's mint refuses either without the other. The `remedy` sentence then opens on the park ("the durable approval park for this call could not be set aside (…) — once it can be, the ask waits for a person; or …") before the approver and the mode — one sentence, so the model's refusal text, which carries the remedy where it reads no way on of its own, opens its tail on it too (its note on the failed park is unchanged). A refusal with no ways out (arguments no approval binds to — no park would let them run either) carries neither. Where no park failure is told, `remedies` and `remedy` are word for word what they were.
|
|
595
|
+
- **The run's record.** `TaskResult.refusedAsks[]` (`RefusedAsk`, and through it a member outcome's `unansweredAsks`) gains `parkFailed?` / `parkFailedReason?`, read off the same exit as the notice; its `remedy` is the notice's.
|
|
596
|
+
- **Declaration move (informational).** `SUSPEND_LANE_REASONS` / `SuspendLaneReason` are declared in `src/core/suspend-lane-reasons.ts` and re-exported from the package root as before (the same frozen object); the notice's mint reads the set there without loading the manifest's module graph.
|
|
597
|
+
- **Consumers (open to veto).** @server @client-core @cli: a renderer of `detail.remedies` meets a third kind, `park`, first, on refusals whose park failed — render it from `detail.parkFailed` (and `parkFailedReason` where present); a reader exhaustive over `APPROVAL_REMEDY_KINDS` / `ApprovalRemedy` (a `switch` with a `never` arm, a `Record<ApprovalRemedyKind, …>`) no longer compiles until it has the row, and a reader that pins the kinds to the two words, or `remedies[0]` to `{ kind: "approver" }`, is red on such a refusal — re-pin to the new set. This engine's own `readApprovalRemedy` reads a word outside the set as nothing (no throw; the notice's mint refuses the whole list). A reader keyed on the detail key set, or on `RefusedAsk`'s members, sees two more optional keys; the `remedy` sentence of such a refusal opens on the park; an approval's message gains one clause. A host that calls the exported mint `askUnresolvableNotice` itself with `parkFailed` must hand `{ kind: "park" }` first of `remedies` (with a `remedy` sentence) — the mint refuses either without the other (`parkFailed` is new in this release). Nothing else changes.
|
|
598
|
+
- **Pins.** `test/backlog5244-park-failure-notice.test.ts` (P1 – P8 a real Runner: the request-level clear and an oversized result each fill the store, with no approver and with one that answers `unavailable`; the two ways out park; no park facts where none was attempted — `remedies` the base's word for word; the checkpoint store's write failing at the park; two asks in one run; G1 – G3 the gate driven with a host's park seat; U1 – U3 the mint, the park rule both ways); `test/backlog2422-refusal-remedies.test.ts` re-pinned (the kinds are three; `{ kind: "park" }` screens by its own shape); `test/backlog4910-no-person-way-out.test.ts` P / P″ re-pinned (a commit that fails: the model's tail opens on the park, then the approver clause as before).
|
|
599
|
+
|
|
600
|
+
### `workflowParkDecisionOf` takes the card's state — `workflowParkDecisionOf(token, decisionId, tree, card?)`, `card` the `WorkflowParkCardState` a host already reads — and then answers `class` the way the hand-over's notice does; the engine's continuation hands it the card it read (#5246; behavior change: one, below; wire: additive — an optional parameter and an optional `class` on three states, @server @client-core; closed sets: none; exports: none)
|
|
601
|
+
|
|
602
|
+
- **Before** (measured, real Runner): the notice read the card first and the reading only the records, so after a card expired, was decided or removed they disagreed — a decision refused by a drive read `spent` / `decide_again` while each hand-over was told `not_pending` / withdraw (a host following the reading asked a person to decide a card that no longer exists); a decision blocked by a mark read `blocked` / `deliverable` and was handed over again and again.
|
|
603
|
+
- **Now.** With `card`: no longer pending (`resolved` / `expired` / `absent`) ⇒ every state carries `class: "withdraw"` (`open`, `carried` and `driven` gain the optional member); `unread` ⇒ no state carries a `class` (pending, the tree's class would hold; gone, withdraw — not known; the next step is then the notice's, which says `record_unreadable`, deliverable, at every hand-over while the card stays unread — its sentence now says the card could not be read instead of "the approval card is still waiting"; a decision a final mark settled is told nothing); `pending` ⇒ the reading without the card. Without `card`, the answer is member for member what it was; a value outside the word's set is a `TypeError`. Only where a host hands the card in is the reading the notice's (KL-5246-a).
|
|
604
|
+
- **Another token's row is a card not read (behavior change).** The continuation's judge, its waiting-line check and `readWorkflowParkWaits` read a card through one mapping, and a row the store hands back for the token that is another token's row is a card not read whatever its status: the judge tells `record_unreadable` (deliverable) and drives nothing, the line check answers unreadable. Before (measured on the base), such a row in status `pending` was judged as the card — its row's verdict spent the decision for good (`card_unresumable`, a final mark) — and in another status was told `not_pending`. A store that keys its rows by token sees no difference. One engine never tells both for one row: only across an upgrade does a consumer that de-duplicates this notice by run id and reason meet a new key for such a card (an older engine's `not_pending`, then this one's `record_unreadable`); and since `record_unreadable` writes no mark, it is told at each hand-over while the row stays so.
|
|
605
|
+
- **A status outside the three is read as before.** A row of the card's own token in a status outside `pending` / `resolved` / `expired` is told `not_pending` (withdraw) by the judge and skipped by the line check, and read `unknown` / `card_unread` by `readWorkflowParkWaits`, cell for cell as 7.69.x — the mapping has one arm for it that each reader answers its own way (KL-5246-b).
|
|
606
|
+
- **Consumers.** @server @client-core: pass the card you read for the display (`readWorkflowParkWaits` reads it too) to draw what is left to do; an exhaustive reader of `WorkflowParkDecisionState` needs nothing new (no kind added); a reader asserting "every `spent` has a `class`" sees one without it only when it passes `unread`.
|
|
607
|
+
- **Pins.** `test/backlog5246-decision-reading-card.test.ts` (W1 – W7 each card state against the notice and the three-argument reading; W4b a card that stays unread, told `record_unreadable` at each hand-over; OLD the three-argument reading member for member in every card state; W8 – W10 the rows that are not the card in one of the three statuses, at the judge, the line check and the wait reader; U1 the screen).
|
|
608
|
+
|
|
609
|
+
### An approval that hands the shown input back is a plain approval — an `updatedInput` equal to what the card showed no longer sends the call through the edited-input re-check (#5248; behavior change: widening against 7.69.1 and earlier, below, open to veto @server @cli @client-core @test; closed sets: none; exports: none; wire: none)
|
|
610
|
+
|
|
611
|
+
- **Rule.** "Did this answer edit the call" has one reading, `editOfAnswer` (`src/core/canonical-json.ts`): an answer's `updatedInput` is an edit only when it is other bytes than the arguments the answer was handed, under the call's binding digest — the comparison the session call grant (#5210) and the durable park's `boundInputHash` already bind by. Keys in another order, a member holding `undefined` beside its absence and `-0` beside `0` read as the same bytes; bytes outside the bindable domain read as an edit (refused where an edit is taken, as before). The shown bytes are digested before the answer is awaited, and the answer's `updatedInput` is read once. Every reader takes it: the one receipt of an approver's answer at both engine doors (the run's approver seat — its answer then carries no `updatedInput`, its record licenses the shown bytes, the session call grant reads the same — and `createApprovalPolicy`'s `approve`, which refuses an edit and now takes the shown bytes handed back as its plain yes), the seats that take an answer from outside the engine's resolver (`runToolGate`'s own `resolveAsk`, and an inherited installation's own settlement on `classic.PreToolUse` and `tool.check`; an answer there that is not plain data — a class instance, a getter, a hidden member — is left as it came and its edit re-judged as before; at `runToolGate`'s seat the answer is first projected by name onto the engine's own frozen plain object, #5272 below, so every answer there is received as plain data, a class- or getter-made one too), and the durable decide's rungs (the pre-claim edit re-check, the org lane's call, the resumed leg's edit, and the `env_failed` replay, where an allow that hands the parked arguments back and one that carries none are one decision; a refusal's members are compared as before). The recorded winner keeps what was sent.
|
|
612
|
+
- **Before → now** (measured, real Runner, real approver). Default mode, inline code (`node -e '…'`): handed back ⇒ one card and then refused by the read boundary (`read_unestablished`) → one card, runs — as an answer with no `updatedInput` does. A deployment policy that asks every time (a script `./bin/tool.sh`): handed back ⇒ four cards, then the re-approval cap → one card, runs. A durable decide carrying the parked arguments ⇒ re-checked as an edit → runs as the approval it is. Unchanged: a real edit (another program text, another script, a member added) takes the re-check path exactly as before — the read boundary's re-judge, the policy's second look with its round cap, the durable pre-claim re-check.
|
|
613
|
+
- **Widening — open to veto.** A host whose approver always sends `updatedInput` (the common shape: the input handed back whether or not the person changed it) now has those calls approved instead of refused. The bytes that run are the bytes the card showed, which the gate had judged before it asked — what a plain yes runs; a real edit is still judged. **A deny rule saved while the person was deciding is not re-read for such an answer** — on 7.70.0 an answer handing the shown input back went through the edited-input re-check, which reads the session rules and the person's rules again (a deny written during the wait refused the call the person had approved; the reference, which does no re-judgment after an approval, ran it); now that answer is the plain approval an answer without `updatedInput` is, and the deny takes effect from the next call (KL-2225-a, which states the limit, now names this arm too). Measured with a mutation of `editOfAnswer` that reads every `updatedInput` as an edit (the 7.70.0 reading): `R15b` / `R15c` below go red. A deployment's own approval seat built with `createApprovalPolicy` (its `approve`, a seat with no edit lane) refused such an answer as an edit it cannot take; it now takes it as its plain yes (a real edit there is still refused, loudly).
|
|
614
|
+
- **Who it reaches.** @server @cli @client-core: a host that already omits `updatedInput` when nothing changed sees no change; one that hands the input back no longer needs to strip it; a deployment whose own automatic approval seat (`createApprovalPolicy`) hands the input back has those calls approved where they were refused. @test: the cells above.
|
|
615
|
+
- **Pins.** `test/backlog1022-rewrite-recheck.test.ts` R15b / R15c (a deny written into the person's store, and into the session rules, while the person decides is not read for an answer that hands the shown input back; beside R13 / R14, where a real edit meets it) and `test/backlog5248-echoed-edit.test.ts` (the one reading's boundary cells; both measured forms on a real Runner with a real approver, as is and respelled, and the real-edit cells beside them; an ancestor's approver; a host's own resolver at `runToolGate`; the durable decide). Five pins that drove the re-check with an answer equal to the call's input now drive it with a real edit: `test/backlog1214-ask-class-on-request.test.ts` F1-inherited-edit, `test/backlog570-ask-origin-wire.test.ts` APPROVED-EDIT re-check, `test/backlog1348-card-grant-disclosure.test.ts` ⑤b, `test/backlog1392-occurrence.test.ts` G9, `test/backlog1383a-call-target-reading.test.ts` P16 / P20 / BAD (each cell's edit adds a member, still an edit of the same target). Known: KL-5248-a (a member holding `undefined`, and `-0`, read as the shown bytes).
|
|
616
|
+
|
|
617
|
+
### A target-reading stamp that moves the call is a reading that failed — the bytes an approval card shows and the bytes that run stay one (#5248 r2; BREAKING: narrowing for a host whose own `stampCallTarget` hands back other arguments, open to veto @server @cli @client-core @test; closed sets: none; exports: none; wire: none)
|
|
618
|
+
|
|
619
|
+
- **Rule.** A stamp's answer is the request it was handed with a target reading added (`stampedCallOf`, `src/core/effective-path-target.ts`). An answer with another tool name, call id, face or arguments — each member compared by value under the call's binding digest (`exactBoundInputHashOf`; a copy of the same bytes is the same call, a clone of the whole request included while its arguments and face are bindable data — #5272 below) — is a reading that failed: the gate denies the call in the stamp's own sentence (`the call's target-reading stamp moved the call it was handed (its arguments), so it was denied fail-closed — …`; #5272 below) and reports it on the hook-failure lane, before the gate's policy judges it and before the gate's own card is put (an inherited `PreToolUse` hook's question is asked earlier, in the screening).
|
|
620
|
+
- **Before → now** (measured, `runToolGate` with a host stamp answering `{ path: "/safe/stamped" }` for a call on `/safe/x`, the policy asking). 7.69.1: the card showed `/safe/stamped`; a plain yes ran `/safe/x`, the card handed back ran `/safe/stamped` (judged as an edit). The 7.71.0 line before this change: both ran `/safe/x`. Now: refused, nobody is asked, nothing runs.
|
|
621
|
+
- **BREAKING (narrowing, open to veto).** @server @cli @client-core: a host whose own `stampCallTarget` rewrote a call's arguments (or its name, id or face) has those calls refused. Before: the card showed one set of bytes and the call ran another. Now: refused, loudly. To change: a stamp answers `{ ...req, targetReading }`; bytes that should run move through a policy's `updatedInput` (judged as a rewrite). The engine's own stamp (`legCallTargetStamp`) moves nothing (pinned); a stamp that hands back the same bytes in a new object is unchanged.
|
|
622
|
+
- **Pins.** `test/backlog5248-r2-stamp-moves-nothing.test.ts` (M1 / d: the moving stamp, the card handed back and a plain yes; the other three members; controls with no stamp and with a copying one; the engine's own stamp over a real environment).
|
|
623
|
+
|
|
624
|
+
### A host resolver's answer at the gate is read in its closed set — an answer whose `action` is not `allow` or `deny` is nobody's yes, refused in the engine's out-of-contract sentence (#5248 r2; BREAKING: narrowing for a host resolver that answers outside its contract, open to veto @server @cli @client-core @test; closed sets: none; exports: none; wire: none)
|
|
625
|
+
|
|
626
|
+
- **Rule.** `runToolGate`'s own `resolveAsk` answers a `ResolvedAsk`: an object whose `action` (read once, onto the engine's own projection of the answer — #5272 below) is `allow` or `deny`. Any other value — not an object, `null`, `undefined`, an object with no `action`, another word (`"ALLOW"`, `"maybe"`, `"ask"`), an `action` that cannot be read — is received as nobody's yes (`receivedResolution`, `src/core/tool-policy.ts`) at every seat that awaits that resolver (the first ask, its denial-limit fallback, the edit's own card, the marked call) and refused in the sentence the engine's own resolver gives a value outside its approver's contract: `the approver for "<tool>" returned an out-of-contract value (<what came>) — denied fail-closed (return { action: "allow" } or { action: "deny" })`. The gate's ledger records it as the approver's contract failing (`approver_contract`), as for any host answer that carries no engine record. One composer says the sentence for both seats.
|
|
627
|
+
- **Before → now** (measured, `runToolGate`, the policy asking). 7.69.1, the base and the line before this change: `{}`, `{ action: undefined }`, `"allow"`, `{ action: "ALLOW" }`, `{ action: "maybe" }` let the call go; `null` / `undefined` threw a TypeError out of the gate (the call then up to whatever the host's caller did with the throw). Now every one of them is refused. The engine's own resolver (the run's `onAsk`) refused the same values already; an `allow` / `deny` answer is unchanged.
|
|
628
|
+
- **BREAKING (narrowing, open to veto).** @server @cli @client-core: a host resolver that answered a word outside `allow` / `deny` (a capitalised `ALLOW`, a bare string, an empty object meant as yes) has those calls refused. Before: let go. Now: refused, with the sentence above in the call's result. To change: answer `{ action: "allow" }` or `{ action: "deny", message }`.
|
|
629
|
+
- **Pins.** `test/backlog5248-r2-resolver-closed-set.test.ts` (the eight values on the first ask, an unreadable `action`, `{}` on the edit's own card; controls `allow` / `deny`).
|
|
630
|
+
|
|
631
|
+
### The engine's continuation of a parked workflow run runs its run's record or nothing — a gate pass that hands the continuing call back changed is `call_changed`, never the record run under a yes to other bytes (#5248 r2; BREAKING: `WORKFLOW_PARK_UNUSED_REASONS` +1 for a reader that pins the set, open to veto @client-core @server @cli @test; closed sets: `WORKFLOW_PARK_UNUSED_REASONS` 16 → 17, `WORKFLOW_PARK_UNUSED_REASON_CLASS` +1 row; exports: none; wire: one `workflow.parked_decision_unused` `detail.reason` word)
|
|
632
|
+
|
|
633
|
+
- **Rule.** The engine's continuation runs only what the run was launched with (its launch record), and it is judged by the leg's one gate pass. A pass whose answer hands the continuing `Workflow` call back as other bytes than it judged — an approver's edit on the continuation's card, a policy's rewrite, a hook's rewrite, compared by the call's binding digest (`editOfAnswer`; the same bytes handed back are no change) — is a call the continuation cannot run: nothing starts, the card stays pending, the decision is kept (`deliverable`), and the notice's reason is `call_changed` (`src/core/runner/continuation-gate.ts`, `src/orchestration/workflow-park-adoption.ts`). Its sentence names the way out: the session's model calls `Workflow` with `resumeFromRunId` itself; that call is judged on its own card, where the change can be made again, runs as approved and stops on the same approval step under a new run, whose card a decision then continues.
|
|
634
|
+
- **Before → now** (measured, real Runner, `test/backlog5248-r2-continuation-edit.test.ts`). 7.69.1, the base and the line before this change: an approver's edit of the continuation's script was asked again over the edit and approved, and then the RECORDED script ran (the edit dropped without a word). Now: `call_changed`, nothing started, the model told. A policy's rewrite and a hook's rewrite of the continuing call: `call_changed` too (E2 / E3; with this rule taken out, both ran the recorded script — measured on this line, not on 7.69.1). The way out (W): the model's own call, the change made again on its card, ran the changed script, stopped on the approval step, and that card's decision continued the changed run to its end. A plain yes, and the call handed back as shown, run the record once as before (E0).
|
|
635
|
+
- **BREAKING (open to veto).** @client-core @server @cli: one more word in `WORKFLOW_PARK_UNUSED_REASONS` (17) and one more row of `WORKFLOW_PARK_UNUSED_REASON_CLASS` (`call_changed: { kept: "deliverable" }`). A reader exhaustive over the set, or one that pinned its length, meets one word it has not seen; one that classifies with `workflowParkUnusedClassOf(detail.reason, detail.spent)` reads `deliverable` with no change. An end that draws the reason: the card still waits and the decision is still good; the person can make the change again on the model's own resume call's card. An end built against an older core holds that release's table, whose reader (`workflowParkUnusedClassOf`) answers `undefined` for a word outside its set (pinned, `test/backlog5208-g4-reason-class.test.ts` K2): such an end reads `call_changed` as a reason it has no class for.
|
|
636
|
+
- **Pins.** `test/backlog5248-r2-continuation-edit.test.ts` (E1 an approver's edit, E2 a policy's rewrite, E3 a hook's rewrite, E0 a plain yes and the call handed back, W the way out driven to the end, the seam); `test/backlog5208-g4-reason-class.test.ts` K1 / K2 and `test/backlog4553-adoption-notice-truth.test.ts` A8 (the set and the table with the new word).
|
|
637
|
+
|
|
638
|
+
### A resumed decide's edit reaches every judge as the engine's frozen copy — a policy cannot move, by writing into the arguments it is handed, what runs or what the row keeps (#5248 r2; behavior change: a policy that wrote into them now meets a frozen object; closed sets: none; exports: none; wire: none)
|
|
639
|
+
|
|
640
|
+
- **Rule.** The decide's edit (read by `editOfAnswer`) is taken as the engine's own frozen copy (`bindableArgsOf`) before the claim judge, the edit re-check's policies and the org lane read it (`src/core/runner/resume-apply.ts`); what runs and what the checkpoint keeps are the bytes the decide sent.
|
|
641
|
+
- **Before → now** (measured, real Runner, a policy that sets `path` on the arguments of the edited call it re-checks). 7.69.1, the base and the line before this change: the write took — `/safe/MUTATED` ran and was the row's stored edit. Now the write is refused (a frozen object), `/safe/edited` runs and is stored. A policy that only reads is unchanged.
|
|
642
|
+
- **Who it reaches.** @server @cli: a resume-edit policy (`basePolicyForResumeEdit` or the run's policy) that wrote into `req.args` had its write executed; it now meets a frozen object (in strict-mode code the write throws, and a policy that lets it escape is refused as any re-check that throws is — read in the code). A policy rewrites through its answer's `updatedInput`, which is judged (a person's bytes are the ceiling).
|
|
643
|
+
- **Pins.** `test/backlog5248-r2-decide-edit-frozen.test.ts` (c, and the read-only control).
|
|
644
|
+
|
|
645
|
+
### A session row that records no owner is claimed by the first tree with an owner that runs a leg on it, and from then on is refused to every other principal; one judge at every entry that opens a row's content; a revival runs in the tree it was born in (#4544; KL-4408-a closed; hard-breaking: four entries, below, open to veto @server @cli @test; narrowing: six, below; widening: one, below; closed sets: `ConfigRefusalCode` +`config.invalid_session_store` (the word #5190 adds too — one word, whichever lands first), the kit's `onOptionalMember` report +`recordOwner`; exports: +`delegationOwnerSeat`, +type `DelegationOwnerSeat`, +type `DelegationOwnerReading`, none removed; `SessionStore` +optional `recordOwner`, `SessionRepo` +optional `recordOwner`; `createAgentContinuationVerb`'s per-call options +optional `delegationOwner`; `RegisterBackgroundAgentInput` +optional `delegationTree`; `TaskRegistry` +`backgroundAgentTree`; wire: none) (@server @cli @test)
|
|
646
|
+
|
|
647
|
+
- **The rule.** A tree is whose its root says: a leg the engine starts holds its spawner's seat; a leg a host starts holds the seat the host hands (`RunInternals.delegationOwner`, built with the new root export `delegationOwnerSeat(name | null)`); a revival — SendMessage's, the revive arm's, a host deciding a parked background agent — runs in the tree it was BORN in: the record as the store holds it now (the claim object must be that record: same revision, same session, root anchor, owner and scope), its root anchor naming the root row whose owner binds the seat while that row still holds the occupant the record wrote; the reviving caller's seat is never read; a root run's tree is its own row. **The birth tree is read once per revival cycle:** SendMessage's entry reads it and admits its caller on it, and puts that reading on the claim object it hands the revival spawner (the request's `row`, by the object's identity) — the spawner, the engine's own or a host's, hands that object on to the delegation tool as `ctx.reviveClaim.row`, as it was given, and nothing else (the request carries no tree); the revive arm takes the tree off the object it is handed and runs the leg in it without reading the root row again, and still holds the claim's copy to the record the store holds. Every attempt with that object reads the same tree: a spawner whose first delegation call did not start and that calls again with the same claim runs the second in the tree the entry read, even when the root row was claimed for another principal in between. Nothing is kept beside the object — no table, no count, nothing to free or to fill: a spawner that fails leaves nothing behind, and two record stores in one process, or an older send returning after a newer one claimed, never meet one another's tree. One rule at the revive arm on whether a message entry stands behind the claim: a host deciding a parked agent (the claim carries its park ticket, `parkedResume`; no message entry) has the arm read the birth tree once itself; any other claim runs in the tree its entry put on it, and a claim object that carries none — a copy of the request's row (a spawner that queues or serializes it, or runs the delegation tool in another process), a claim a host builds by hand — is refused (HARD-BREAKING 4). Once admitted, a message revival is not refused over its tree (pins `backlog4544-cycle-tree` CYCLE: K8, with a host's spawner and with the engine's — the root row claimed for alice between bob's admitted entry and the revival: the leg runs in the anonymous tree the entry read, alice's grandchild not there for it, where the previous head ran it as alice and read alice's grandchild into bob's turn when the spawner was a host's; K3 — the root row's read failing after the entry: continued at once, nothing left queued, the failure never spent; then the root row claimed for alice and her message revives it in her tree, bob's not delivered again; ONCE; HELD — a retry with the same object, a copy or look-alike carrying nothing, abandoned objects and failures leaving nothing behind; `backlog4544-held-object` E1 / E2 — two stores, an older send — K8n and COPY-ROW; REAL, the engine's own wiring). A seat is read once: the caller's once per call (handed to the row judge and the birth-tree test, the continuation verb's stated seat included), and a seat a host hands for a run — `RunInternals.delegationOwner`, a direct workflow's `delegationOwner` — is taken at the door so it answers once (pins CALLER, HOST: a host seat answering alice and then bob — the leg, its tools and both agents of a workflow read alice). Every entry that opens a row's content judges the handle it will use with ONE judge (`judgeRowForTree`): prepare's acquire for every leg that holds a seat (the create form and the read form alike, again on every attempt of the lost-CAS retry, the row named only for the attempt the phase ends on), SendMessage before it touches the record or the mailbox (with the CALLER's seat — a caller holding none is anonymous), AgentTranscript's two lanes and an extension's `$.session.messages` (each judging the handle it then reads). The three reading entries (AgentTranscript's two lanes, an extension's read) judge a row by id BEFORE they open it and open it only then, and a read stands only when the row's head, read again by id once the read is done, is the head they judged — the same owner and the same occupant (one function for the three, `readJudgedRow`): a row another tree's leg claimed between the judge and the read, a row laid down again, a row judged not there that opens anyway ⇒ the read is voided, answered as not this tree's and its view dropped; a re-read that faults or does not answer ⇒ `storage` (pins `backlog4544-read-reread` N5 — alice's leg claims an ownerless row and writes to it inside bob's and an anonymous reader's open, on the durable lane (mem + file), the live lane and an extension's read: nothing alice wrote is shown, where the previous head showed it — and ABSENT; KL-4544-o closed). A caller the judge refuses never opens the row, so nothing of it is written — a File log's tail repair and its modification time included (pins `backlog4544-birth-tree` TAIL: alice's and an anonymous reader leave bob's torn log at 1220 bytes, its time unmoved, where the previous head cut it to 1210; `backlog4544-ownerless-claim` RO5, RACE). **SendMessage continues a record only from the tree it was born in:** the revival runs in the birth tree, so a birth tree with an owner admits only a caller whose tree binds that owner — another principal's tree and an anonymous caller are answered as a record that names no row, before any charge or claim, the child row neither claimed nor written (pin `backlog4544-birth-tree` BIRTH, mem + file: bob's and an anonymous caller's message to a record born in alice's tree, whose child row records no owner and whose grandchild row records alice — refused, nothing of alice's read; the previous head revived it, the child row became alice's and the revived child, reading as alice, read alice's grandchild into bob's turn). A birth tree whose read faults refuses — `storage` where the read threw or did not answer, `delegation.owner_unbound` for a root owner cell that names nobody (pin `backlog4544-read-reread` N1, mem + file: the root row's head read at the entry throws once, or does not answer, under bob's and alice's message — refused `storage`, no revival, nothing claimed; the previous head let bob's message through, and the revival, reading the root row again a moment later, ran in alice's tree and read alice's grandchild into the completion). A birth tree that is not there to read is an anonymous tree's — one rule for a record that anchors no root occupant, a root row that is gone, and a root row laid down again for another occupant: the cycle opens only a row that records no owner and claims nothing, and the entry judges the record's row for that tree, so a child row that records an owner is refused at the entry (pins `backlog4544-cycle-tree` GONE-ROOT, `backlog4544-read-reread` N1b; a single-tenant record whose root row is gone or laid again continues exactly as in 7.69.1). Two answers admit: the birth tree records no owner (the anonymous revival, unchanged), or it records the owner the caller's tree binds; the record's row is then judged for the tree the revival runs in. A person deciding a parked agent through its host is not judged this way: the decision allows or denies a call the agent itself asked for, in the run already seated in its birth tree, and brings no one else's words into it. **The line is "named by id" against "held as an object":** every entry that continues or reads a record by an id (SendMessage, AgentTranscript's two lanes, an extension's read, the operator continuation verb — anyone can spell an id) judges the caller's tree; a steer handle (`handle.steer`, `handle.resume`, the workflow agent handle's `steer`) is an object the engine mints inside the birth run and hands only to that run's host seat (`RunInternals.onSubagentSpawn`), already carrying the birth tree's seat — the leg it wakes runs with that seat and claims an ownerless row for the birth tree (pin `backlog4544-read-reread` HANDLE, mem + file) — so it is not compared: whom a host hands an object it holds is the host's routing, and the engine has no caller to compare (as 7.69.1). A tree with an owner opens a row that records exactly that owner. A row that records none, an entry that only opens or reads it (SendMessage, AgentTranscript, an extension's read) opens as it is and records nothing; only the leg that runs on it claims it, at its prepare and in the tree it runs in, through the store's new conditional write `SessionStore.recordOwner(sessionId, owner, expect)` — recorded only while the row still records none and still holds the occupant the judge read, in one step — and runs on it once the head that write answers records this owner (pins `backlog4544-ownerless-claim` RUNS-ON RO1 – RO3, mem + file: alice's tree messages an old child twice, or reads its transcript and then messages it, and it continues each time with its row still ownerless after; `backlog4408-row-verified` K: the entry's answer and the leg's, cell by cell). A row that is not there is not judged for a caller that holds no handle of it (SendMessage): once the birth-tree test above admits the caller, that entry answers it by the path it answered a gone row with in 7.69.1. A caller that holds one — an entry that opened the row before its judge read the head, the leg that would run on it — is refused as not this tree's: its handle names no row any more, and nothing it caches is read (pin RACE: bob's row deleted inside the judge's read, AgentTranscript's durable lane, alice's and an anonymous tree). An anonymous tree opens only rows that record none and claims nothing (and, on a store with no by-id read, any row). A claim governs what comes after it: what a run that opened the row while it recorded none already holds is not taken back (KL-4544-b).
|
|
648
|
+
- **Two kinds of refusal, kept apart.** *Not this tree's* — another owner, a claim another principal won first, another occupant than the one acquired — is answered exactly as "the record does not name this row": the model reads `not_retained` (SendMessage, AgentTranscript), a leg fails `delegation.owner_mismatch`, an extension's read rejects "its row names no session". Deliberately one answer: "it is someone else's" and "someone claimed it first" are never told apart. *A row that is gone* keeps its 7.69.1 answer for a caller from the tree the record was born in — SendMessage `resume.session_not_found` ("no transcript found … it cannot be revived"), on a full mailbox `queue_full`, AgentTranscript and the extension read their gone answers; on a record born in a tree with an owner, an anonymous caller and another principal's tree are answered `not_retained` before that (the birth-tree test; the record untouched — 7.69.1 answered the anonymous caller `resume.session_not_found`), as (2b) below says. A single-tenant deployment's records are born in anonymous trees, so an anonymous / no-seat deployment reads every cell as before (pin `backlog4544-single-tenant-parity` P1: an anonymous tree, four entries × gone / full mailbox / ownerless, nine cells equal to the readings of the same file on the 7.69.1 tree). **Changed for a tree with an owner (open to veto @server @cli):** 7.69.1's SendMessage judged a gone row for such a tree as a record that names no row (`not_found`, before any charge); it now takes the gone path above (`resume.session_not_found`, `queue_full` on a full mailbox; the record is claimed and rolled back as for an anonymous tree, so it is not left byte for byte as it was: its revision moves on by 2 and its `updatedAt` changes — pin `backlog4408-retain-ledger-verified` NOTICE). **Also changed for an anonymous tree:** 7.69.1 read nothing for it; every entry now reads the row's head (one by-id read), so a store whose by-id read faults or does not answer in time is answered `storage` where 7.69.1 continued, and a seat that does not bind is answered `delegation.owner_unbound` where 7.69.1 answered `not_found` (read in the code; the fault cells are pinned for a tree with an owner — STORE — not for an anonymous one). Known and accepted (KL-4544-l): a caller can therefore tell a child row another principal claimed (`not_found`) from a gone one (`resume.session_not_found`); the ids it can ask about come only from records in its own scope. *The deployment's store cannot judge it* — no `headOf` for a tree with an owner, or no `recordOwner` for its leg on a row that records none ⇒ `config.invalid_session_store`, the sentence naming the member; a by-id read or a claim that faulted or did not answer in time, or an owner cell that names nobody (a blank string included) ⇒ `storage` — is the deployment's fault and is never answered as `not_retained`: SendMessage and AgentTranscript answer `details.code` with the fault's code and `details.cause` with the sentence, a leg fails with the code, an extension's read rejects with it.
|
|
649
|
+
- **What a terminal or web front end shows (@cli, a suggestion — the sentence is the front end's).** On `not_retained` / `delegation.owner_mismatch` do NOT say "it was not kept, so it is lost": the row may stand and simply not be this caller's. A neutral line such as "This conversation can't be continued from here" fits both causes. On `config.invalid_session_store` / `storage` say it is a deployment problem and to contact the operator. Where the existing codes already merge "not this tree's" with "really gone" (`not_retained` covers both), the two stay merged on purpose.
|
|
650
|
+
- **HARD-BREAKING 1 — a session store with no `recordOwner`** (a host's own `SessionStore`; `TtlSessionStore` over a repo without `SessionRepo.recordOwner`): a leg of a tree with an owner is refused every row that records no owner — rows written before 7.69.0 for delegated children (before 7.62.0 for placed ones) — with `config.invalid_session_store` at its prepare (reading such a row is not affected; a SendMessage that revives onto one is admitted, and the revived leg's record ends `failed` with that code before its first turn — the message reaches no model and stays queued, KL-4544-m), where 7.70.0 ran on them (the transitional arm of KL-4408-a, retired). Who sees it: a multi-principal deployment continuing a pre-upgrade child; the person sees the deployment-fault answer above. What to change: implement `recordOwner` (the kit's `[recordOwner]` group says what it must do; it is reported `absent` on a store without it). Anonymous trees are not affected. @server (implementing it in the same pick-up).
|
|
651
|
+
- **HARD-BREAKING 2 — a revival no longer runs in the reviving caller's tree** (7.69.0 round four ruled "a revival inherits its reviver's seat"; this replaces it). A record whose root anchor has no occupant — written before 7.65.0, by a call with no seat (the delegation tool driven outside any run), or under a seat that anchors no root (a host-built `delegationOwnerSeat`) — names no tree, and so does a record whose root row is gone or laid down again for another occupant; its revival runs as an anonymous tree: it opens only a child row that records no owner, and claims nothing; a child row that records an owner is refused at the revived leg's prepare (`delegation.owner_mismatch` on the record's ending), and the anonymous tree opens no row that records an owner (its own root row included). A call's own root fields never put a root occupant on a record: the occupant comes only from the reading of the spawning tree's seat (the engine's seat anchors the run's declared root — a host-handed `rootSessionId` with its occupant, checked against that row at the revival, else the run's own row). A claim object that is not the record the store holds (another revision, another session or root) is refused (`delegation.owner_unbound`) and the record is not rewritten; on a parked drive that refusal comes after the drive's own checks and settles through its rollback. The revived child's principal: measured — neither the anonymous tree nor the born tree carries one (pin ANON-P, in-memory and File stores: a reviving call with no principal gives the revived leg none in both arms; one whose parent-spec seat names alice, in a registry whose domain is alice, gives alice in both — also with no principal on the call's context, the seat minted from a spec naming alice (a host's decide form) — and the anonymous arm's row still records no owner after; the delegation tool's options take no principal); read in the code — the revived leg's principal and isolation scope come only from the reviving call's parent-spec seat (`applyParentSpecSeat`), the same for the born tree and for 7.69.1 (a pre-7.65.0 record whose child row records no owner runs under the reviving call's principal and claims nothing; that row stays ownerless — followed up with the principal-from-the-waker question). Who sees it: a host that revives from a hand-built claim, or holds records from before 7.65.0 whose child rows record an owner; a host deciding a parked agent passes the reserved row as it does today and needs no seat. @server @test.
|
|
652
|
+
- **The revive arm's claim object, two refusals (@server @test).** (a) A claim whose copy names other identity cells than the record the store holds (session, root anchor, owner, scope) is refused at the entry, `delegation.owner_unbound`, before anything is registered from it — the record is not rewritten (was: the registration seeded the record from the copy; pin `backlog4544-parked-decide` PD|forged-row, `backlog4544-ownerless-claim` C2 ARM-forged). A transcript miss is therefore no longer simulated by pointing the claim's copy at another id. (b) On a parked drive, a claim at a stale revision, or a birth tree whose read faults (or whose root owner cell names nobody), is refused after the drive's own checks and through its rollback: `parked_resume.startup_failed`, the approval still pending, the card decidable again (pin `agent-park-jian3c` stop-wins); on the SendMessage lane the birth tree is judged at the entry, and a stale claim is the claim CAS's loss. A root row deleted, or deleted and laid down again, before a host decides is an anonymous tree's like every birth tree that is not there to read: the drive resumes as in 7.69.1 (pins `backlog3431` P13, `backlog3434` O3, `backlog3874` L1 — their 7.69.1 cells again).
|
|
653
|
+
- **HARD-BREAKING 3 — a host's create form naming the id of an ownerless row is now a claim** (it was refused `delegation.owner_mismatch`, C-R1824 甲′); its read form with a seat in the internals is judged at all (it was not). Who sees a change: a host running legs under a seat on rows from before 7.69.0 — they now run, and record the tree's owner. @server.
|
|
654
|
+
- **HARD-BREAKING 4 — a revival claim that carries no park ticket must be the object SendMessage handed out** (@server @cli). **Before** (7.69.1): the delegation tool revived any claim a host handed it as `ctx.reviveClaim` — the request's `row` as given, a copy of it, or a record the host read and wrapped itself — in the reviving caller's tree. **Now:** a claim without `parkedResume` runs in the tree the message entry admitted its caller on, which rides the request's `row` object itself; a claim object that carries none (a copy, a clone, a serialized and rebuilt request, a hand-made `{ row, rev }`) is refused before anything is registered: the delegation tool answers `delegation.owner_unbound` ("this revival does not carry the tree its message entry admitted it on …"), SendMessage answers the send `delegation.owner_unbound`, rolls the claim back and leaves the message queued (on a full-mailbox drain it answers `queue_full`, as for any drain that did not start); the arm reads the record once to hold the claim to it, and neither the root row nor the child's row is read (pin `backlog4544-held-object` COPY-ROW). A claim that carries its park ticket (`parkedResume` — a host deciding a parked agent) is unchanged: its row may be a copy (it always is), and the revive arm reads the birth tree itself (pins `backlog4544-parked-decide` A, SERVER-FORM). **What to change:** a host that brings its own `reviveSpawn` hands the request's `row` on to the delegation tool as it was given — the same object, in the same process, to a delegation tool from the same loaded engine package; it does not copy, rebuild or queue it across a process, and does not build a revival claim of its own. **@server:** no change — your one revival you build is the decide route's, which always carries the ticket (stated by the service layer from its code; your message revivals run on the engine's own spawner). **@cli:** no change if the terminal continues agents only through the Runner's auto-mounted SendMessage (the engine's own spawner hands the object on unchanged — `send-message-continuation.ts`); a terminal that brings its own `reviveSpawn` or builds `reviveClaim` itself follows "what to change" (to be confirmed by the terminal repository).
|
|
655
|
+
- **Narrowing.** (1) An anonymous tree's create form naming the id of a row that records an owner is refused (it ran on it). (2) An anonymous caller's SendMessage / AgentTranscript / extension read on a record whose row records an owner is answered as a record that names no row (it revived or read it; pin `backlog4544-single-tenant-parity` P1, the one column that differs from 7.69.1). (2b, open to veto @server @cli) An anonymous caller's SendMessage to a record born in a tree with an owner is answered as a record that names no row, whatever the row holds, a gone row included — 7.69.1 revived it (the revival then ran in the reviving caller's tree); a single-tenant deployment's records are born in anonymous trees and are not affected (the 96 single-tenant cells of the review leg's table equal 7.69.1's on this head). **The operator continuation verb `createAgentContinuationVerb` is judged the same way:** its per-call options take `delegationOwner` (additive — the seat type a host hands a leg it starts, `delegationOwnerSeat(name | null)`), the tree the host states the call acts for, judged by the tool's own ladder: the stated principal is the birth tree's ⇒ continued, the revival running in the birth tree; another principal ⇒ `not_retained`; a birth tree that cannot be read ⇒ `storage` / `delegation.owner_unbound`. **Narrowing:** none stated is an anonymous tree's, so a multi-principal host that states none can no longer continue an agent born in a named principal's tree (`not_retained`; 7.69.1 continued it, the revival running in the anonymous caller's tree); an agent born in a tree that records no owner continues as before (pin `backlog4544-read-reread` VERB, mem + file). The 7.69.0 advice that a host judges the owner itself before calling the verb is replaced: the host states the tree, the engine judges. (3) A store's fork answering a row that is not a copy of the forking run's session (lineage cells `forkedFrom` / `forkedFromIncarnation`) is refused at the Runner's host fork — the child is not started and the row is not released, stricter than continuing on it; a delegation tool driven without the Runner's leg (no `hostSessionFork`) takes the store's fork as handed, runs the child on it and releases it by id on a failed start, as 7.70.0 did (KL-4544-c). (4) `SubagentRetainLedger.register` refuses an entry without a `rowVerified` function, `config.invalid_argument`, before it sweeps or evicts anything (it threw a `TypeError` at the first read). (5, open to veto @server @cli) A message to a running child (live delivery) or a retained one (the fast lane) is judged by the birth-tree rule against the seat the child's run holds (no store read): another principal's tree and an anonymous caller are answered `not_found` ("no agent matches", or "no transcript found" for an id) — 7.69.1 delivered it into the child's run, or continued the retained child with it; a revived child is judged by the tree its revival runs in; agents with no seat (single tenant) are not affected (pin `backlog4544-cycle-tree` IN-PROCESS; the operator verb with none stated is an anonymous caller here too). The judge waits on the caller's seat; just before the delivery, the lane checks that the run the message goes to still holds the seat it judged — the running child's registration, the retained entry the resume runs and its snapshot's seat — and answers `not_found` when it does not (a child that ended and was revived in another tree while the judge waited; a retained entry replaced or its seat changed). On the live lane nothing runs between that check and the delivery's own read; on the retained lane the resume first sweeps expired entries (a host's release callback runs there) and waits on the session's acquire before it copies the entry's seat into the run, and a change a host's code makes to the engine's entry in that window is not checked again (KL-4544-r); a retained entry gone since is the fast lane's miss, judged again on the durable rung (pin `backlog4544-lane-recheck` LIVE and RETAINED: bob's message waiting in the judge while the child is revived in alice's tree is answered `not_found` and reaches nothing, where the previous head delivered it into alice's revived run; each control cell delivers). What such a caller can still tell apart is whether an agent is there, never what it holds (KL-4544-r). (6) The single-tenant cell that differs from 7.69.1: a record whose root row's read faults (or does not answer) at SendMessage's entry is answered `storage` — 7.69.1 continued it; a read that faults is never read as "no tree" (pin GONE-ROOT fault).- **Widening (open to veto @server).** A tree with an owner now runs on rows that record none — pre-upgrade children it continues, and a row a store that records no owner on create laid down — where 7.70.0 refused the second and ran the first without recording anything. On a session store with no by-id read, a named caller's SendMessage continues a record as the anonymous tree it was born in (the row judged for that tree; nothing claimed), where the previous head answered `config.invalid_session_store` at the entry; a named tree's own leg on such a store is still that fault (pin `backlog4544-ownerless-claim` STORE pg).
|
|
656
|
+
- **The store member.** `recordOwner(sessionId, owner, expect)`: three outcomes kept apart in one step — a row that records a name is answered as read, unwritten; a row that is not the one `expect` names is refused `conflict`, nothing written; no row ⇒ `undefined`; otherwise the owner is recorded and the head the write committed answered. A bad name ⇒ `config.invalid_argument` before the row is read. Not activity: the listing's order and `lastActiveAt` are unchanged (the File repo lays the log's modification time back). Sessions handed out before the claim keep writing to the row and read the recorded owner (the in-memory repo swaps the metadata on the storage every handle holds; the File repo rewrites only the header line — every byte after it as the file held it, bytes that are not UTF-8 included — and rebinds the live authority's append log to it, which repairs a torn tail as every open of a log does; with no live view in the process the torn tail stays). No write that names no owner clears a recorded one. One more outcome: a File repo joined to a root under another holder judge than the one its log is held with throws `config.invalid_session_store` from `recordOwner`, which the delegation layer reports as a storage fault with that code in its `cause` (not met on the engine's path: the leg's acquire refuses such a store first). Kit: `[recordOwner]` × 8.
|
|
657
|
+
- **Known — the owner record passes no grant judge.** `recordOwner` carries no holder and the store's `holderIsCurrent` does not judge it: a leg whose grant was superseded, or is gone, still records its own tree's owner on a row that records none before it stops `failed` / `holder.superseded` — it makes no model call and writes no entry (measured, in-memory and File repos). Afterwards the current holder's leg under another principal is refused `delegation.owner_mismatch`; under the same principal it runs as usual. The root fix is tracked as #5300.
|
|
658
|
+
- **Known — a deployment's session-store fault is filed under the task's configuration.** A session store that lacks a method (`config.invalid_session_store`) reaches the refusal through the leg's configuration door, so `configRefusalInputOf` reads the refused input as `taskConfig` although what needs changing is the deployment; the sentence itself names the deployment (KL-4544-t).
|
|
659
|
+
- **Not breaking — the wire manifest's `RowOwnerStanding` −`other`,`ownerless`,`tree`.** The type and its reader `rowOwnerStanding` were the 7.70.0 row judge's own, in `src/core/runner/delegation-owner.ts`, and that module reached no public entry of 7.70.0 (the root barrel did not name it, and no exported type referred to it); the three words were a judgment's return value, written to no store, frame or checkpoint state. The one judge (`judgeRowForTree`) replaced it; no consumer could import the type or read the words, so nothing compiles red and nothing persisted changes. Read in the code (v7.70.0 and this tree).
|
|
660
|
+
- **Mixed fleet (stated).** No generation gate: an old copy sharing a session database can still continue a row the new copy is about to claim, and an old copy's anonymous tree still opens a claimed row (KL-4544-a). Upgrade the copies of one database together.
|
|
661
|
+
- **Consumers.** @server: implement `recordOwner` on your session stores (the kit's group); your parked-decide route needs no seat — pass the reserved row as today (a host that brings its own `reviveSpawn` hands the request's `row` on to the delegation tool as it was given — the tree rides that object; a copy carries none and is refused, HARD-BREAKING 4); a call of `createAgentContinuationVerb` states the request's principal (`{ delegationOwner: delegationOwnerSeat(principal) }`, none ⇒ anonymous; you have no call site today); a steer handle (`handle.resume` / `handle.steer`) is not compared — hand it only to the principal whose run it was minted in; refresh a cached view's owner on a claim, as `TtlSessionStore` does (its cached view stands only while its owner is the head's). @cli: the two kinds of refusal above, and the neutral sentence; you call no operator continuation verb, so the verb's anonymous reading does not reach you. The refusals by code: SendMessage on a row not this tree's (another owner, a claim lost, another occupant), or on a record born in another tree with an owner (an anonymous caller included) → `not_retained` / `not_found` (as a record that names no row); on a row that is gone → `resume.session_not_found` (full mailbox `queue_full`), as 7.69.1; a revival admitted at the entry whose leg is refused at its prepare (its child row records an owner the tree it runs in is not, another tree claimed the row first, no `recordOwner`) → the revival did not start: the send is answered "Message not sent: … could not be revived" (`details.error` `revive.startup_failed`, or the revive arm's own refusal word such as `delegation.owner_mismatch`), the message stays queued and is not continued (a later revival that starts delivers it), and the record ends `failed` with `delegation.owner_mismatch` / `config.invalid_session_store` (KL-4544-m); AgentTranscript the same; a leg on such a row → `delegation.owner_mismatch`; a revival whose child row records an owner under an anonymous tree → `not_retained` at the SendMessage entry (on a parked drive, `delegation.owner_mismatch` on the record's ending); a revive claim whose copy names other cells → `delegation.owner_unbound`, a birth tree whose read faults → `storage` at the entry (on a parked drive, these and a stale claim → `parked_resume.startup_failed`, the approval still pending); a running or retained child messaged from a tree its own does not admit → `not_found`; a store with no `headOf` for a tree with an owner, or no `recordOwner` for its leg → `config.invalid_session_store`; a read or claim that faulted or did not answer, an owner cell naming nobody → `storage`. @test: the three cells in the receipt (`.gate-logs/RECEIPT-car-4544.md`).
|
|
662
|
+
- **Upgrade notes the consumers above need (@server @cli @test).** (1) A host that hands `delegationOwnerSeat(name)` as `RunInternals.delegationOwner` (or to `runWorkflow`) hands a seat with no root anchor: the background children started in that tree record no root occupant and are revived as an anonymous tree — a child row that records an owner is refused at the revived leg's prepare, `delegation.owner_mismatch` (KL-4544-e). A normal root leg needs no seat from the host: the engine anchors the run's own row, so omit `delegationOwner` there, or hand `rootSessionId` with its `rootSessionIncarnation` to anchor on that row. (2) When the tree a revival was born in cannot be read, or its root row is gone or laid down again while the child row records an owner, both approving and denying a parked background agent are refused (`parked_resume.startup_failed`) and the card stays pending; this release does not give the deny path its own settlement (KL-4544-f; 7.69.1 ran those cells to completion under the approver's seat). (3) A custom `SessionStore` / `SessionRepo` whose `fork` does not write `forkedFrom` and `forkedFromIncarnation` into the forked row's metadata (the bundled stores do) has every host-run fork refused `delegation.owner_mismatch` — the fork's row is read back through `getMetadata()` and judged against the forking run's session and occupant (narrowing 3, above; 7.70.0 did not read the lineage back).
|
|
663
|
+
- **Pins.** `test/backlog4544-birth-tree.test.ts` — BIRTH (bob / anonymous / alice × mem + file, the real entry and the real revival) · TAIL (a torn File log, alice / anonymous / bob). `test/backlog4544-single-tenant-parity.test.ts` — P1 (an anonymous tree, the four entries × gone / full / ownerless / another owner, against the 7.69.1 readings). `test/backlog4544-ownerless-claim.test.ts` — RUNS-ON (RO1 – RO4, mem + file) · A (SendMessage / AgentTranscript / revive arm / host read and create forms / anonymous SendMessage × own / other / ownerless, mem + file) · KLa · CONC · ANON-CREATE · ST · STORE (no `recordOwner`, a faulting head read, pg) · C2 (a forged claim, a stale revision, a record with no root occupant, a record rooted at its own session, across roots) · SERVER · FORK · FORK-HOST · LEDGER. `test/backlog4544-parked-decide.test.ts` — the A table (approver alice / bob / anonymous × host form / approver's seat × mem + file), SERVER-FORM (the service layer's spread copy of the ticket's row) and `PD|forged-row`. `test/backlog4544-cycle-tree.test.ts` — CYCLE (K8 × a host's spawner / the engine's, K3 both halves, COPY × mem + file, ONCE) · HELD (a host spawner's retry of the same object across a root claim for alice × mem + file, the tree read only off the object the entry handed out and never off a copy or a look-alike, 2000 abandoned objects and a spawner failing twice and the next send continuing) · K8 on the backlog drain ×2 · GONE-ROOT (single tenant gone / laid again, alice's tree gone / laid again under bob's message, a child row recording alice, a faulting read) · IN-PROCESS (live / retained × bob / anonymous / alice × mem + file, a revived child running again, another occupant) · CALLER · HOST (internals, workflow) · REAL (the engine's own spawner). `test/backlog4544-held-object.test.ts` — E1 (two record stores in one process, a copy of one record in each, alice's send in store A landing between bob's entry and revival in store B, and its control) · E2 (an older send returning from a lapsed lease after a newer send claimed through a second registry, and its control) · K8n (a spawner handing on no seat) · COPY-ROW (a spawner handing on a copy of the request's row). `test/backlog4544-lane-recheck.test.ts` — LIVE, RETAINED (the judged run replaced while the judge waited — the retained entry also with its seat changed in place — and a control cell each). `test/backlog4544-record-owner-kit.test.ts` — R1 the kit's group on three bundled lanes, R2 a store without the member (reported absent) and one that writes unconditionally (three cases fail), R3 the File lane keeps a held session across a claim.
|
|
664
|
+
|
|
665
|
+
### A host resolver's answer is projected by name and read once — only the engine's projection goes on; a host stamp that clones the request is the same call, and a stamp that moved the call says so (#5272; behavior change: three, below; widening: one — a stamp's clone of the request, a class- or getter-made echo of the shown bytes, and a getter answering `allow` before `deny` are taken on what was read first where they were refused or asked again, open to veto @server @cli @client-core; narrowing: one — a class instance whose `action` getter answers `deny`, a non-enumerable `action: "deny"`, a Proxy whose first read of `action` answers `deny`, a getter answering `deny` before `allow`, a `settlement` holding a value on the answer's prototype or a class getter, and a member that throws when read, are refused where the call went on or the throw left the gate; widening: one more — a `settlement` holding `undefined` is absent (below); closed sets: none; exports: none; wire: none — no code, `detail` member or attention moves; one model-facing sentence)
|
|
666
|
+
|
|
667
|
+
- **Rule (the answer, ①).** `runToolGate`'s `resolveAsk` answer, once awaited, is PROJECTED BY NAME (`receivedResolution`, `src/core/tool-policy.ts`): the members the gate's readers read after they receive it — one list, `RECEIVED_RESOLUTION_MEMBERS`: `action`, `message`, `decisionReason`, `updatedInput`, `presentedInput`, `approverUnavailable`, `attestation`, and the retired `settlement` (carried only so the ledger refuses it) — are each read once, in that order, as the answer reads them (`answer[name]`: a getter on its prototype, a hidden member, a Proxy's `get` — what that read answers is the member; a read that throws ends the receipt, the names after it unread) onto a fresh frozen plain object the engine owns, each defined on it as its own data member; a member read as `undefined` is absent, and members outside the list are never read and not carried. Only that object — and what later stations build from its values (the shown-bytes reading's copy, the refusal rebuilt over it) — goes on, and nothing reads the answer again (code inside a member's value — a getter nested in `updatedInput` — still runs where that value is read, as before; awaiting the answer reads its `then` once before the receipt, as any promise does). A member whose read throws is nobody's yes, refused in the out-of-contract sentence naming it (`an object whose updatedInput could not be read` — the name is the engine's own listed word; an `action` that throws reads `an object whose action could not be read`, as before).
|
|
668
|
+
- **Before → now (①)** (measured, `runToolGate`, the policy asking; the base is the 7.71.0 line before this change). A class instance whose prototype getter answers `deny`: **let go** (the refusal was rebuilt over the answer by a spread, which drops an inherited getter) → refused. An `action` getter that answers `allow` and then `maybe` (or then nothing): let go, the answer read 11 times → let go on the first reading, read once. A getter that answers `deny` and then `allow`: **let go** → refused (the first reading). `allow` then `deny`: refused → let go (the first reading — the price of reading once, kept and pinned). An `action` that is not enumerable: read as the value it holds. A Proxy whose `get` answers differently every time: each listed name read once, the first `action` it answered is the answer. An `updatedInput` getter that answers the shown bytes and then other bytes: asked twice and refused → one card, the shown bytes run. A member whose getter throws: the throw left the gate → refused, the member named. Newly refused beside the class-made deny (each let go on the base, measured): a non-enumerable `action: "deny"`; a Proxy whose first `get` of `action` answers `deny`; a `settlement` holding a value on the answer's prototype or behind a class getter (the ledger refuses the retired member, now that the receipt reads it). Unchanged: a plain, frozen or null-prototype object's allow, deny and out-of-set word, cell for cell; an OWN `settlement` holding a value refused as before.
|
|
669
|
+
- **Widening (①, the retired `settlement` holding `undefined`).** The gate reads values, and a member whose value is `undefined` is absent. Before: `{ action: "allow", settlement: undefined }` was refused (the ledger read the key's presence); an own non-enumerable `settlement: undefined` was refused too; `{ action: "deny", settlement: undefined }` was refused in the retired-member sentence. Now: the first two go on as plain allows; the deny is refused in the host's own words. Why it is harmless: an `undefined` settlement carries no settlement — nothing is recorded or attributed from it (every other read of a settlement goes through the engine's record, `attestationOf`), a JSON answer cannot carry `undefined`, and a `settlement` that holds any value (`null`, a string, a record, own or inherited) is still refused, so the loud signal is there wherever it can mean something (read in the code and measured by the read-only review).
|
|
670
|
+
- **Price, open to veto (①).** @server @cli @client-core: an answer made by a class or by getters that hands the card's input back as it was shown — before: left as it came, its "edit" put to the edit pass and asked a second time; now: the plain yes, asked once. This is #5248's rule (the shown bytes handed back are an approval, not an edit) holding for these answers too, not a new rule: the projection is plain data whatever the answer was made of. The bytes that run are the bytes the card showed.
|
|
671
|
+
- **Rule (the stamp, ② ③).** `stampedCallOf` compares every member of the call — tool name, call id, face, arguments — by value under one reading: the same value, or bytes the call's binding digest reads as the same (arguments outside the bindable domain — one object met twice, say — have no digest, so a clone of them is not the same call: refused for its arguments, as on the line before). The face a real Runner stamps is data that digest reads (pinned on `Read`, `Write`, `Bash`). An answer that names the same call goes on as the gate's own request — its name, call id and face object (what the gate carries by that object, the tool's argument reading, rides on) — with the answer's arguments (the same bytes, and the objects its reading binds) and its reading; for a stamp that copies only the arguments this is the answer exactly, as on the line before. A stamp's answer that moved the call is refused in its own sentence — `the call's target-reading stamp moved the call it was handed (its <member>), so it was denied fail-closed — a stamp adds the call's target and never moves the call (no policy threw)` — and reported on the hook-failure lane exactly as before (the report's text is unchanged; a call whose wait the task's signal ended reads the aborted deny, as before; a later station such as an organization deny may still stand over it, as over any deny). A stamp that THROWS is still a policy check that threw (`policy check threw — …`, unchanged).
|
|
672
|
+
- **Before → now (② ③)** (measured, `runToolGate` with a face). A stamp handing back `structuredClone(req)`, or the request with a cloned or respelled face: refused for "face" → the call goes on and runs `/safe/x`. A face with other contents: refused, as before. The moved call's sentence: `policy check threw — the tool policy chain failed while judging this call … the target reading moved the call it was handed (its arguments) …` → the sentence above; nothing else of the denial moves.
|
|
673
|
+
- **Widening — open to veto.** @server @cli @client-core: a host stamp that clones the whole request now has its calls judged where they were refused; a host resolver whose answer is made by a class or with getters and hands the shown bytes back is a plain yes where it was asked twice (the price above); a getter whose `action` reads `allow` first is that allow. In each the bytes that run are the bytes the gate judged and the card showed. The narrowing beside it: an answer whose first reading is not an allow is not one, however it reads later.
|
|
674
|
+
- **Who it reaches.** @server @cli @client-core: a resolver that answers plain data, and a stamp that answers `{ ...req, targetReading }`, see no change. A host that matched the stamp refusal's text on `policy check threw` reads the new sentence (no code carries it). The engine's own resolver and stamp are unchanged (the bound resolver answers plain `allow` / `deny` objects; `legCallTargetStamp` hands back the same members).
|
|
675
|
+
- **Pins.** `test/backlog5248-r2-resolver-closed-set.test.ts` (#5272 ①: five getter orders with the read counted, a getter on another member, a member that throws, a class-made deny, a non-enumerable `action`, a class reading private fields, a Proxy's `get` once per name, the projection's own shape, the controls; S1 – S5, the retired `settlement`: a value on the answer's prototype and one behind a class getter refused — the narrowing —, an own one refused as before, `undefined` own or hidden absent on an allow and a deny refused in the host's own words — the widening), `test/backlog5248-r2-stamp-moves-nothing.test.ts` (M1's sentence; #5272 ②: three clones and a moved face, the gate's own face object kept and the answer's arguments (the objects its reading binds) taken under a clone, a real Runner's faces), `test/backlog5248-echoed-edit.test.ts` (the class-, getter- and field-made echoes now the plain yes; the hidden retired member refused as before). The readings of `test/backlog5248-r2-continuation-edit.test.ts`, `test/backlog4936-policy-seat-bare-false.test.ts` and `test/backlog5210-verdict-matrix.test.ts` go to a temporary directory of their own (were: the working tree's `.gate-logs/`, #5272 ④).
|
|
676
|
+
- **Measured, no change (⑤).** After `call_changed` the original card is not left behind: the model's own resume call parks its new run on the SAME card (the same checkpoint token — a run that comes to hold a park re-parks the same card). A decision there continues the new run (`workflow.parked_decision_used`, `detail.runId` the new run, `detail.continuedAs`), the card then reads `resolved`, and the first decision handed over again is told `not_pending` with `continuedAs`; `workflowParkDecisionOf(token, firstDecisionId, tree, "resolved")` reads class `withdraw`. Before the way out is taken the card waits and the first decision is still deliverable, as `call_changed`'s class says. Pinned: `test/backlog5272-call-changed-same-card.test.ts`.
|
|
677
|
+
|
|
678
|
+
### `formatPermissionRule` — the rule text of a tool name and a content, `parsePermissionRule`'s inverse, on the package root (#5274; additive; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: core root +1, primitives +1 — `formatPermissionRule`, the same object on both; wire: none) (@client-core)
|
|
679
|
+
|
|
680
|
+
- **What it does.** `formatPermissionRule({ toolName, ruleContent? })` (`src/primitives/permission-rule-syntax.ts`, beside `parsePermissionRule`): no content (absent or `""`) is the tool name alone; otherwise `Tool(content)` with the content's `\`, then `(`, then `)` escaped as `\\`, `\(`, `\)` — the backslashes first — the reference's spelling of a rule. `parsePermissionRule` unescapes the same three, so a content written through it reads back as itself, escape sequences and a trailing backslash included (pinned: the nineteen tricky contents a read-only leg measured, the car's own, and 19 795 seeded random contents over the escape alphabet — 20 000 draws less the 205 that were `*`).
|
|
681
|
+
- **What does not read back.** It spells as given and refuses nothing, as the reference does; the forms that do not read back are the reader's: the content `*` and the empty content read back as the whole tool; a tool name with blanks around it reads back trimmed; a tool name outside the rule name grammar (blanks inside it, a parenthesis, an empty name) reads back as another rule or as no rule a list takes (`ruleSpellingOf`). A caller that must not write a whole-tool rule checks for `*` / empty content before it spells (the content-level judgment of each grammar — a `Bash` content that trims to `*`, a path — stays the rule model's).
|
|
682
|
+
- **Who it reaches.** @client-core: a hook's structured rule can be written into the rule store without a second copy of the escapes. Pins: `test/backlog5274-format-permission-rule.test.ts` (loaded through the core root and the primitives package, one object).
|
|
683
|
+
|
|
684
|
+
### A branch of `NOTICE_CODE_LINEAGE` says, as data, the values its facts carry on the new frame — `toDetail`, the `kind` of `config.entries_not_applied` for each code that went into it — and the earlier-grammar row's two kinds are two branches, split by entry on the old frame's reader word (#5303; additive; behavior change: none — no frame changes; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: one optional member of the root type `NoticeCodeBranch`, `toDetail`; wire: one optional key) (@client-core)
|
|
685
|
+
|
|
686
|
+
- **Rule.** A branch's `detail` reads the OLD frame; its new optional `toDetail` reads the NEW one (the frame told under `to`): a member the new frame adds (a path of `added`) whose value the branch decides, with the values its facts carry there — `{ kind: ["stored_rule_row"] }`. A member the old frame carried is never in it (it is the old frame's: `keys` maps it, and a selector on it is `detail`'s). Its values are words, as `detail`'s are (a `count` a one-entry kind fixes at 1 is said in `when`). Necessary, not sufficient, read per element on an `a[].b` path, as `detail` is. `when` stays the same fact in words.
|
|
687
|
+
- **Filled.** Every branch into `config.entries_not_applied`, each word read off its mint: `permission.rule_row_dropped` → `stored_rule_row` (`src/core/runner/person-path-rows.ts`), `permission.settings_rules_skipped` → `rule_text_unreadable` (`src/core/runner/skipped-rules-notice.ts`), `mcp.injection_dropped` → `mcp_injection_dropped` (`src/core/mcp-injection-drop.ts`), `model.role_defaulted` → `model_word_unknown` (`src/core/runner/role-seat-defaulted.ts`), `permission.allowed_tool_not_granted` (its granting branch) → `allow_entry_inert` (`src/core/allow-entry.ts`). No other branch of the table adds a member whose word it decides (the other narrowed codes' branches add no member, and `config.skill_deny_unreadable` adds only `count` and `identity`).
|
|
688
|
+
- **The earlier-grammar row.** `config.session_rules_earlier_grammar`'s branch into `config.entries_not_applied` said two kinds in words (`session_rule_unread / session_rule_named_no_tool`). An old frame listed every entry with its reader's word (`entries[].reader`), and the mint tells an allow-list entry whose word is `no_rule` as `session_rule_unread` and one whose word is `named_no_tool` as `session_rule_named_no_tool` (`earlierGrammarNotices`, `src/core/session-policy-store.ts`): the branch is now two, each selecting `entries[].reader` per entry (the way the allow-list row's refusing branch selects `entries[].list`), each with its one kind. The row has three branches where it had two; `keys`, `added` and `bounded` of both are the old branch's. Its `config.session_rules_reread` branch now selects too: `entries[].reader` `grammar_revised` (the only word an entry a later grammar revised is given, either list); a deny-list entry whose word is `no_rule` is picked by no branch and stays under the code.
|
|
689
|
+
- **Which branch, as a rule (the same sentence on `NoticeCodeBranch` and in the integration guide).** Which branch an old frame is, per element where a selector reads `a[].b`: a branch whose `detail` selectors all hold comes first; with none, a retired code's branch without a selector takes it, and under a narrowed code it stays under the code itself (a narrowed code's branch without a selector is one the old frame cannot pick out: its `when` says what decides). A selector stays necessary, not sufficient: two branches it leaves, or a narrowed code's branch it picks, are told apart by `when`.
|
|
690
|
+
- **What the table maps.** What the old frame says — what the older engine read — not what this engine says reading the same stored input again. Measured: a grammar-0 allow entry whose path ends in an even number of backslashes (`Read(/tmp/a\\)`, `Edit(./x\\)`, `Read(~/\\)`, `Read(a\\\\)`) was `named_no_tool` to 7.69.1 and is no rule to this engine (its path does not read back, `src/core/permission-rule-model.ts`), so the table gives the old frame's entry `session_rule_named_no_tool` and a run today over the same stored rules tells `session_rule_unread`. Replaying an old record gives the old frame's kind; the pin holds that this class, and only it, differs over the 7.69.1 readings it carries.
|
|
691
|
+
- **Kept true.** The table's pins: every `toDetail` path is one of `added`; each word of a `kind` there is one of `ENTRIES_NOT_APPLIED_KINDS`; each old code's facts, minted by today's mint in the pin's cases (at least two frames a branch), land in exactly one branch of its row (its `toDetail` values and its old-frame selectors hold on the frame); a top-level member of `added` whose string value is the same on every frame a branch's mints tell is in its `toDetail` with that value; each `toDetail` word is in `when`; an old frame's elements go to branches by the rule above (the earlier-grammar row's three kinds of entry, both lists, and the allow-list row's refusing entries).
|
|
692
|
+
- **Wire manifest.** A manifest whose range records a lineage row (one from before 7.70.0) carries `toDetail` in its `noticeLineage` section as the row writes it, and its `notice code …` lines name each destination code once (two branches to one code are one name; the lines read as the 7.70.0 manifest's). This release's own manifest records the two lineage rows of its range's two narrowed codes (`mods.registration_refused` and `task.tool_turn_incomplete`, `in: "7.71.0"`, #5318 — their `notice code narrowed: …` lines and no `toDetail`: neither goes into `config.entries_not_applied`), and #5303's own change shows there as the one optional key of `NoticeCodeBranch`.
|
|
693
|
+
- **Consumers.** @client-core: your generator can read `toDetail.kind` and drop the step that takes the word out of `when`; the earlier-grammar row's entries are mappable per entry by `entries[].reader`, and which branch an element is follows the rule above (selectors first, a retired code's selectorless branch takes the rest, a narrowed code keeps what no branch takes, and `when` tells apart what selectors leave). A reader that took the earlier-grammar row's branches by position (`branches[1]` for `config.session_rules_reread`) reads the second `config.entries_not_applied` branch there: find a branch by `to` and its selectors. Pins: `test/backlog5303-lineage-new-frame-values.test.ts`, `test/backlog4717-wire-notice-lineage.test.ts` (#5303 cell).
|
|
694
|
+
|
|
695
|
+
### The wiki's permission and approval pages carry the 7.70.0 and 7.71.0 changes they were missing, and a new page says the data root's lock in four sections (#5245, #5138; documentation only; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@client-core @server @cli)
|
|
696
|
+
|
|
697
|
+
- **Permission pages (#5245).** `permission-modes` and `permission-rules-guide` gain the table row for `Write` / `Edit` outside the task root (refused at the gate under a `roots` write face, every mode, no card; `bypassPermissions` with no write face declared writes) and the row for a call to an A2A peer registered inside the organization (`a2a_inside`; only a grant bound to the peer's current stamp clears it). `permission-rules-guide` says a stored `Read(//file)` / `Edit(//file)` allow now speaks for `cat`, a `Read(<path>)` ask row asks `cat` (`bypassPermissions` included), deny beats ask beats allow, and the seats that keep a path allow off the shell. `protected-removals-and-reads` gains the `find . -delete` row for the task root and its way out (a subdirectory start). `permission-modes`, in the section on runs with nobody to ask, says the no-approver sentence the model reads, that the notice's `remedy` / `remedies` and `refusedAsks[].remedy` keep the developer's way out beside the model's `modelRemedy`, and that a failed park is told first (`parkFailed`, `{ kind: "park" }`). `persistent-allow-rules` gains the inside-peer paragraph and the section on the session call grant; `approval-settlement` says an `updatedInput` equal to the shown input is a plain approval; `read-face` says a read-directory grant riding a refusal is no longer announced and both read-grant notices carry the card's id.
|
|
698
|
+
- **Memory and project identity.** `memory-engine` states the moved-copy limit after an erasure that lands between a mount's listing and its read (KL-4983-a, read from the code, not run); its project-identity sections (`.sema/project` marker, `TaskSpec.projectId`) are the 7.70.0 pages' — this car's second copy of them was dropped at the merge.
|
|
699
|
+
- **The data root's lock (#5138).** The new page `core/data-root-lock` (deployer and embedder): when the lock is taken, what a second opener meets (`store.dir_in_use`, no wait), when a stale lock is reclaimed (only a holder proven gone; another namespace or host is refused), and what `dispose()` ends (every close runs, the lock goes last; a session that stood is not written, other writes still land until the root is sealed).
|
|
700
|
+
- **Peer-held environment (#5172).** The new page `core/peer-held-env` (deployer and embedder) says who calls `declarePeerHeldEnv`, what the scrub then withholds and what `all`, a list and a grant still hand on, the receipt's `notTaken` reasons and `heldLate`, and whom a notice names the entry to (`namedTo`); it puts F-049 on a page.
|
|
701
|
+
- **Corrections after the review leg.** The out-of-root write row says an organization-governed deployment leaves the write face `roots` even under `bypassPermissions`; the `find` paragraph names the closed set of narrowing tests (`-name`, the path and regex tests, `-empty`, `-type d` before `-delete`) and says any other condition still reads as the removal of the task root; the lock page reads a live holder in another container by its anchor as `running`, lists every lock file a data root holds, and names `store.dir_claiming`.
|
|
702
|
+
- **Gates.** `wiki-anchors`, `wiki-freshness` and `wiki-coverage` read 0 on this line: two pointers moved with `SuspendLaneReason` and `SHELL_REMOVAL_ACTIONS`, twenty stale digests were restamped after each cited sentence was read against its source, and F-048 is on a page.
|
|
703
|
+
- **Not changed.** Every line of `src` and `test`; the pages are the only files.
|
|
704
|
+
|
|
705
|
+
### The wiki carries the seven groups of 7.71.0 changes it was missing: five new pages and the pages they land beside, and the stale digests of the pages the line moved read again (#5295; documentation only; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@client-core @server @cli)
|
|
706
|
+
|
|
707
|
+
- **New pages.** `core/instruction-files-and-attachment-frames` (instruction files reach the model whatever tools the run mounts, what still withholds one, the notice that a linked file lies outside its root, and the frame sentences that name a file tool only where it is mounted), `core/store-grant-holder-fence` (the store's `fence`, the judge, what a run carries as its holder, what a refused write stops, the retired forms; the holder value's two parts are encoded, so a host builds and reads it with `encodeGrantHolder` / `decodeGrantHolder` only), `core/workflow-runs-and-parked-decisions` (the run id table, a record's identity, the one reader of a workflow's runs, whether a parked decision was used, the resume claim's remaining time, stopping one member and what a refusing journal store does to that call, a person's no under the claim), `core/gate-answers-and-stamps` (an approval that hands the shown input back, the closed set of a resolver's answer, a target stamp that may not move the call, a resumed edit's frozen copy) and `core/skill-file-reader` (`readSkillFile`, the name and description rules).
|
|
708
|
+
- **Pages that gain sentences.** `limits-and-retention-knobs` (what `limits.oneShotWaitCeilingMs` does, what a halt during the wait does, the cause an agent stopped by the run's end carries, the money-ceiling readings of a side call with no usage and of a resume's config question); `memory-engine` (the entry-id grammar); `notices-and-error-codes` (the attention of `classifier.seat_rate_limited`, told once for each rung a run retires; the lineage branch's `toDetail`; `offloadedDetailOf`); `permission-rule-grammar` (`formatPermissionRule`, the frozen rule tables); `read-face` (the verification gate's later legs keep the sandbox and the external-content setting); `protected-removals-and-reads` (the two `find` rows the existing pins can carry: on the `roots` read face a removal outside the root meets the write question, class `probe`, in the default mode, and a removal fed from a stream stays `unverifiable_delete`); `glossary` (the notice seat and the store seat).
|
|
709
|
+
- **A sentence of this note corrected.** The instruction-file section above says 7.70.0, not 7.69.1, is the last release that withheld the file family on a run with no `Read` (the 7.70.0 tag still answers `admission_unknown` there).
|
|
710
|
+
- **Restamped after reading.** `data-flow` and `task-preparation-order` (`prepareTask` took the shared-artifact seat, the prompt seats and the posture seats; its parameters, and the order the page states, did not move), `read-face`, `persistent-allow-rules` (both session-grant notices are still `audit`), the notice tables, the limits catalog row and the README index.
|
|
711
|
+
- **Not written.** The `find` pins' titles are built from templates, so the write-face and regex readings, and the readings under the permission modes that release the question, have no literal title to cite and no sentence of them is on the stable page; the artifact-sharing setting (`sharedArtifactReads`), the run-time reminders (`core/system-reminder-mark` is the page they fit), the shell-first Bash card, `applyRecordedEdit` and the owner claim of an ownerless session row have no sentence yet.
|
|
712
|
+
- **Gates.** `wiki-anchors`, `wiki-freshness` and `wiki-coverage` read 0 on this tree (freshness read 23 failures at the line's head before this change).
|
|
713
|
+
- **Not changed.** Every line of `src` and `test`; the pages and this note are the only files.
|
|
714
|
+
|
|
715
|
+
### `declarePeerHeldEnv` takes the entry's name as a label — any string — so a declaration whose entry name the host's own mount judge refuses still holds that entry's variables back from the model's shell (#5171; behavior change: widening of what the call takes, below, open to veto @server; closed sets: none; exports: none; wire: none)
|
|
716
|
+
|
|
717
|
+
- **Rule.** `entry.name` is a label, never an identity: its content is never judged, as the declaration receipt never judged the name it names an entry by. Before, a name off the engine's name rule (white space at an end, empty or blank, a control character, an unpaired surrogate, more than 256 characters) threw the whole declaration and took nothing in, so the variables of that entry — the peer's credential material all the same — stayed with every child under the default scrub.
|
|
718
|
+
- **Shown as written, safely.** The person's notice names the entry the way every sentence names one (`MCP server "acme "`): quoted, escaped (`\u0007`, `\n`, an unpaired surrogate as its escape), folded to one line (a bidirectional or format character shows as a space) and, past 80 characters with the opening quote counted, cut to those 80 and ended in `…`; two names that read the same there are one entry, whose audiences add up.
|
|
719
|
+
- **Any length, at a bounded cost — both entrances.** The one spelling of a declarer's name (`declarerNameOf`, which the host's declaration and the declaration receipt both read) reads at most the name's first 4096 UTF-16 units (never splitting a surrogate pair) and spells a longer name from them alone, always cut (no closing quote, the `…` mark). Before, it escaped and folded the whole name first: measured on the gate machine with a 4 GiB heap, a 16M-character label took 4.7 s and 1.9 GB, one of 40M characters aborted the process, and one of 89,478,482 threw `RangeError` with nothing taken in; the receipt of an MCP server entry so named met the same path. Now 1M, 16M and 100M characters (control characters and plain ASCII alike) are taken at either entrance, the variable withheld: measured on the gate machine, one process per case under a 4 GiB heap, 2 – 11 ms up to 16M and 54 – 85 ms at 100M (making the 100M string itself), resident 347 – 462 MB; the 7.71.0 line before, same cases: the receipt took 4.5 s and 2.6 GB at 16M control characters and 4.6 s / 2.7 GB at 100M ASCII, and threw `RangeError` at 100M control characters with nothing taken in (the host's declaration refused every such name, it was too long to be one). A name of at most 4096 units is spelled byte for byte as before. A longer one whose first 4096 units fold to fewer than 80 characters (a long run of white space or format characters before any text) reads differently: `"…` where it read `" x"` — and two such names that differ only after their first 4096 units are one entry. Whom it is named to (`namedTo`) is unchanged, and `namedTo.isolationScope` — an identity a leg is compared by — must still be a name.
|
|
720
|
+
- **Still a malformed declaration, still thrown whole.** Not a plain object, a stray member, `names` not an array of strings, an `entry` that is not `{ surface, name }`, a surface off `ToolAxesSurface`, an `entry.name` that is no string (absent, a number, `null`, a `String` object — said by its kind, never its value), a `namedTo` off its form.
|
|
721
|
+
- **Before → now (pinned).** Ten forms that threw now answer `{ notTaken: [], heldLate: [] }` and the scrub withholds the variable: a trailing space, a leading space, empty, white space only, 300 characters, a control character, a line break, a bidirectional override, an unpaired surrogate, a C1 control with a line separator. Fifteen declarations taken before (a name holding quotes, one holding an envelope tag and a fence sentinel, among them) answer word for word as they did (receipt, findings, notice), and fourteen malformed ones throw as they did, on the 7.71.0 line before and now; the one sentence that changed is the refusal of an entry name that is no string (it used to say "is not a name"). End to end (a real Runner's Bash, a background shell, a git child): an entry name with a trailing space keeps its variable from all three under the scrub; `"all"` and an allow list naming it hand it on, as before.
|
|
722
|
+
- **Consumers.** @server: the fail-open record for a roster entry whose name the mount judge skips can go — declare its referenced names with its name as your configuration holds it. A probe that pinned the old throw for such a name reads a receipt now.
|
|
723
|
+
- **Not changed.** The receipt's shape and reasons (`PEER_HELD_ENV_NOT_TAKEN_REASONS`), the table's entry rule for a variable name, `declareWithheldEnv`, every policy's arm.
|
|
724
|
+
- **Pins.** `test/backlog5171-peer-held-entry-label.test.ts` (K / B / F / E / R; C — the spelling's bounded read at both entrances: a long white-space run, two names alike past the read, the surrogate pair, the mark after a neutralization or a redaction mark; L — 1M / 16M / 100M names, both forms, both entrances, taken and withheld); `test/backlog5172-peer-held-declaration.test.ts` N2 re-pinned (an entry name that is no string, one that is missing; the blank and control-character cells moved to the new file as taken).
|
|
725
|
+
|
|
726
|
+
### On a Windows tree the shell station reads a path by the readings Git Bash may give it, so the removal guard and the read deny rows meet `rm -rf /cygdrive/c/Users/<u>`, `rm -rf C:..`, `rm -rf j/../c/Users/<u>` (a junction to the drive root) and `cd /c && cd .. && rm -rf c/Users/<u>` as they meet the same place written `C:/…` (#4859, #4894; behavior change: stricter on a win-family tree only; narrowing: the 40 cells under **Narrowing**, each measured, open to veto @cli @test; widening: one, under **Widening** below — a drive-relative read word whose two readings both lie inside the declared roots is no longer asked, open to veto @cli @test; measured against the 7.70.0 line's base `a5c706abe8`, no other cell looser; hard-breaking: none; exports, frames, closed sets: none)
|
|
727
|
+
|
|
728
|
+
- **Before.** On a win-family tree (the win32 adapter runs Git for Windows bash) a removal target the station could not place was never met by the removal guard, which judges where a target is placed; a `..` taken at a drive's root was read only as Windows reads it (clamped: `C:\..` is `C:\`). Measured on the win-family environment double under `bypassPermissions` (on 7.69.1 and on the 7.70.0 line alike): `rm -rf` reached the shell for `/c/../etc`, `/cygdrive/c/Users/<u>`, `'\Users\<u>'`, `C:`, `C:..`, `C:../Users/<u>`, `C:sub`, `j/../c/Users/<u>` (`j` a directory junction to `C:\`, which needs no administrator right), `/c/proj/j/../c/…`, `/c/proj/j/../../c/…`, `/c/proj/<link>/../../../../Users/<u>`, `cd /c && cd .. && rm -rf c/Users/<u>` and `cd .. && cd .. && …`, while the same place written `C:/…` asked (`dangerous_delete`) in every mode; `cat` of a deny-listed file through the junction, the deep link and the `cd` climb ran where `cat C:/…` was refused.
|
|
729
|
+
- **Now.** One operand resolver: a drive spelling (`/c/…`) is walked as any drive path the shell anchored, as a relative word and a `~` word are; where that walk climbs above the drive's root and lands in the emulation's own tree (`/c/../proj/a.txt`, `../../proj/a.txt` from `C:\proj`, `~/../../../proj/a.txt`: `/proj/a.txt` to Git Bash, a place the engine does not know), the Win32 clamp (`C:\proj\a.txt`) is only where the word MAY lead — a stand-in, the word keeping its own unplaced question, so it is asked as `cat /proj/a.txt` is (before, its relative spelling was read as the task root's own file and ran with no question); `/cygdrive/x/…` and a backslash-rooted `\…` name a drive path the word MAY lead to (a stand-in, read where a reading tightens; the word keeps its own unplaced question); a drive-relative `C:rest` on the working directory's drive is read below that directory and below the drive's root. The establishment's walk notes, at a `..` taken at a drive's root, Git Bash's own landing (the emulation's root `/`, then the next segment's drive) beside the clamp and judges the word at both; a `cd` whose target climbs above a drive's root into the emulation's tree (`cd /c/..`, `cd ../..` from `C:\proj`, `cd /c && cd ..`) is a stand-in and no place: the walk loses track there, as at `cd /`, and the clamp's stand-in joins the walk's floor, so a later word is judged at the drive root too (where Git Bash stands then is design ticket #5314's); an unplaced word past a `cd -P ..` the plan could not follow meets that landing on its floor. Each of the cells above now gets the verdict of its `C:/…` twin in six seats (default, acceptEdits, plan, bypass with and without a person, dontAsk).
|
|
730
|
+
- **Not changed.** The spellings Git Bash maps into its own tree (`/tmp` = `%TEMP%`, `/`, `/usr`, `/etc`, `/home/…`, `/mnt/…`) stay unplaced as operands (`rm -rf /`, `rm -rf /tmp/t`) and as the place a `cd` to them stands: where they lie in the Git install directory or in `%TEMP%` the engine does not know, and the landing written with a drive gets the same verdict in every seat (measured, KL-4859-a). A relative word after `cd /`, `cd '\'` or `cd //`, and a `..` after a `cd` into a junction or link, read as on 7.70.0 (KL-4859-e, KL-4894-b): a reading of each was tried in this release's repair rounds and withdrawn, the root fix is design ticket #5314. `rm -rf ../..` and `rm -rf j/..` still reach the shell under bypass: `rm` refuses an operand whose last component is `..` (`refusedByRemoval`), while `rm -rf ../../x` asks. A POSIX tree: no reading here applies to it. Everyday commands inside the task root: 27 commands × six seats, unchanged.
|
|
731
|
+
- **Narrowing (open to veto) — the 40 cells measured stricter.** Measured on the win-family environment double, on this machine, against the 7.70.0 line's base `a5c706abe8`, with the three read-only review legs' eight probes unchanged (`j` a junction to `C:\`, `jd` to `D:\`, working directory `C:\proj`, home `C:\Users\<u>`): 721 win-family command cells and 94 POSIX command cells × six seats, 192 POSIX resolver rows; 40 cells stricter, 20 asked in the same seats under another class (below), none looser; the POSIX cells, the resolver rows and the 27 everyday commands read as the base, seat for seat. (1) `/cygdrive` stand-ins: `rm -rf /cygdrive/D/data`, `rm -rf /CYGDRIVE/c/Users/<u>`, `rm -rf /cygdrive/c/proj/j/../../c/Users/<u>` ask `dangerous_delete` in every seat a person is in and are refused under bypass with no person (`readonly_out_of_root`), where they asked `ordinary` and ran under bypass; `cat /cygdrive/c/Users/<u>/.ai-agent/.env` is refused (`read_path_denied`) in every seat. (2) Climbs through a junction to a drive root: `rm -rf j/../C/Users/<u>`, `j/../d/data`, `"j/../c/Users/<u>"`, `'j\..\c\Users\<u>'`, `/c/proj/j/../C/Users/<u>`, `jd/../c/Users/<u>`, `j*/../c/Users/<u>`, `/c/proj/j?/../c/Users/<u>` likewise, where they asked a probe and ran under bypass; `cat j/../C/Users/<u>/.ai-agent/.env` is refused in every seat. (3) Climbs at a drive's root: `rm -rf C:/../c/Users/<u>`, `rm -rf C:sub/../../Users/<u>` likewise. (4) A word that climbs into the emulation's tree: `cat ../../proj/a.txt` and `cat ~/../../../proj/a.txt` ask `ordinary` in default, acceptEdits and plan and are refused under dontAsk, where they ran in every seat; `rm -rf ../../proj/x`, `rm -rf ../../proj/build` and `cp ../../proj/a.txt b.txt` ask under acceptEdits, where they ran; `rm -rf ~/../../../proj/build` asks `dangerous_delete` in every seat a person is in and is refused under bypass with no person; `cat /c/../proj/../Users/<u>/.ai-agent/.env` is refused in every seat. (5) A `cd` that climbs above a drive's root, then a word: `cd /c/proj && cd ../..`, `cd ../..`, `cd C:/ && cd ..`, `cd /d && cd ..`, `cd /c/proj/../..`, `cd /D/..`, `cd /c/proj/j/../../..` and `cd -P /c/proj/j/..`, each followed by `rm -rf c/Users/<u>`, and `cd /c/.. && cd proj && rm -rf x`, `cd .. && cd .. && cd proj && rm -rf x`, `cd /c/.. && cd c/proj && rm -rf build`, `cd ../.. && cd c/proj/j && cd .. && rm -rf Users/<u>` and its `cd -P ..` form ask `dangerous_delete` in every seat a person is in, where they ran under bypass; `cd ../.. && cat c/Users/<u>/.ai-agent/.env` is refused in every seat. (6) `cd '\' && rm -rf Users/<u>`, `cd '\..' && rm -rf Users/<u>` and `cd '\' && cd proj && rm -rf build` ask `dangerous_delete` (the backslash-rooted stand-in on the lost walk's floor, KL-4859-c). The price inside the task root: `cd /c/.. && cd c/proj && rm -rf build` (Git Bash removes `C:\proj\build`) and `cd ../.. && cd c/proj/j && cd .. && rm -rf Users/<u>` (a logical `cd` lands in `C:\proj`) ask in every seat a person is in where they ran under bypass; `rm -rf C:sub` asks under `bypassPermissions` (the drive-root reading `C:\sub` is a top-level directory; pinned, KL-4859-b).
|
|
732
|
+
- **Widening (open to veto @cli @test) — a drive-relative read word with both readings inside the declared roots.** `C:rest` on the working directory's drive is read below the working directory and below the drive's root (**Now**); when both places lie inside the declared read roots, nothing is left to ask and the word reads as any word placed there — `cat C:src/a.txt` from `C:\proj` with `C:\src` added to `additionalReadDirectories` (files at `C:\proj\src\a.txt` and `C:\src\a.txt`) reaches the shell in default mode, where the unplaced-word question it used to carry asked `ordinary` (a review leg ran both lines; this line's side is pinned, W1, with W2 the control — `C:\src` not a root, the word still asks — and the cell goes red when the drive-relative reading is removed). Which of the two files the real shell opens is the shell's (KL-4859-d); both are inside the roots. A word with a reading outside the roots, and every removal, is unchanged.
|
|
733
|
+
- **Asked under another class (20 cells, the same seats).** The card's class moves where the verdicts do not: `ordinary` → `probe` for `cat C:sub/b.txt`, `cat C:a.txt`, `cd /c/.. && cat proj/a.txt`, `cat /d/../proj/a.txt`, `rm -rf /D/../proj/x`, `cd '\' && rm -rf c/Users/<u>`, `cd '\' && rm -rf proj/build`, `cd /c/.. && echo z > d/data/n.txt`, `echo z > C:../Users/<u>/.bashrc`, `echo z > ../../tmp/n.txt`, and `cd '/c\..'`, `cd "/c/proj/sub/../../.."`, `cd /c/proj/j/../../..` each followed by `rm -rf c/proj/build`; `ordinary` / `probe` → `target_unresolved` for `rm -rf /x/../proj/x` and `rm -rf j/../q/x`; under bypass with no person, `cd /c/.. && cd c/proj/j && cd .. && rm -rf Users/<u>` and its `cd -P ..` form are refused as `readonly_out_of_root` where they were refused as `read_unestablished`. The card of `echo z > C:../Users/<u>/.bashrc` reads `probe` while the `C:/Users/<u>/.bashrc` spelling's reads `write_protection`: the card does not say the file is protected (its drive-root reading climbs into the emulation's tree).
|
|
734
|
+
- **Rules.** Readings of a drive spelling: two (folded as a POSIX path when the text climbs out of the drive, else kept) → one (walked as an anchored drive path). Readings of a `..` at a drive's root in an operand's walk and on a lost walk's floor: one (the clamp) → two (the clamp and the shell's climb). Readings of a climb that lands in the emulation's own tree: as an operand, two (a relative or `~` word placed at its clamp; a `/c/..` word unplaced) → one (a stand-in at its clamp, for every shell-anchored word); as a `cd` target, two (a relative climb placed at its clamp; a `/c/..` climb lost) → one (no place: the walk is lost, as at `cd /`). No row asks because a target could not be placed.
|
|
735
|
+
- **Known limits.** KL-4859-a – e, KL-4894-a – b. KL-4859-d: a climb into the emulation's tree, a `..` past a link, and a drive-relative word and a drive letter's case are judged by the environment double's readings only — no real Git Bash measurement exists or is planned; the stricter landing is taken where the readings differ, and a real shell that differs means one more question or, under bypass with a person, one question fewer. KL-4859-e: after `cd /`, `cd '\'` or `cd //` a relative word reads as on 7.70.0 — `cd / && rm -rf c/Users/<u>` runs under bypass with a person. KL-4894-b: after a `cd` into a link, `..` is read by each reader its own way, as on 7.70.0 — `cd j && cd -P .. && rm -rf Users/<u>` runs under bypass with a person while its read form is refused. The root fix of both is design ticket #5314.
|
|
736
|
+
- **Pins.** `test/backlog4859-win-unplaced-spellings.test.ts` (and W1 / W2, the widening), `test/backlog4894-win-climb-above-drive-root.test.ts`; re-pinned: `test/backlog4854-win-drive-prefix.test.ts` (three spellings that were unplaced now have a reading; a climb into the emulation's tree is a stand-in at its clamp), `test/backlog763-attached-payload-deny.test.ts` (on a win tree the two folded words have readings outside the root: still refused, now `outside_roots`); `test/module-size-ratchet.test.ts` (two raises with their reasons; the readings live in the new `src/tools/fs/shell-climb.ts`).
|
|
737
|
+
- **Consumers.** none required. @test: a probe that pinned one of the cells above as running under bypass on a win-family tree reads the new verdict, and one that pinned a card's class as `ordinary` on the cells under **Asked under another class** reads the new class; the KL-4859-e and KL-4894-b cells are still looser than a drive spelling of the same place, as on 7.70.0.
|
|
738
|
+
|
|
739
|
+
no-notes: #4905(named only by a car's receipt commit that carries a design half page kept outside the package; nothing of it changes on this line), #4639(named only by a test commit that lets its sentence scan follow names one level deeper, because the retired-name judge now reads the engine's own copy of the table; no notice sentence changes), #5241(a pin of the host fold's permissions input as it behaves today and KL-5241-a; ruled no fix — no change of its own), #1383a(named only by a #5248 commit that keeps one cell of that ticket's pin an edit under the new rule; nothing of #1383a changes), #5219(named only by the #5156 T1 car's receipt commit; the same-millisecond identity case it describes is the subject of the creationId section above, which states the behaviour), #5285(repository tooling only: the ruling-landing gate script gains its discipline-file leg and its pin; nothing in the package changes), #3257(named only by a #4544 commit that re-pins one cell of its pin — the bound owner reading now carries the root it bound on, the #4544 section's change; nothing of #3257's owner-cell reading moves), #535(named only by a #4544 commit that drives one cell of its pin's revival with the claim SendMessage's entry hands on — the tree the entry admitted put on the claim object — instead of a bare hand-made claim, which #4544 refuses (HARD-BREAKING 4); what the cell asserts does not move), #3355(the same #4544 commit drives one cell of this pin's revival the same way; what the cell asserts does not move), #5026(named only by a #4544 commit that adds the row judge's module, which reads a session row's owner cell as stored, to the call-site list of this ticket's stored-name pin; nothing of #5026's reading moves), #5254(the repository's clearance-gate script: the version its full calibre starts at is now "not scheduled"; a release tool outside the package, nothing of the package changes), #5265(three comments of the repository's remote-gate script and of an opt-in database pin name the ssh target by its environment variable instead of a machine; no behaviour), #5277(the repository's release chain and live-gate tooling — a simulated release tree, the full roster before the tag, the read-back window, the majority cells' voided reads, a bookkeeping preflight of the ship post; tools outside the package, nothing of the package changes), #4928(the release chain reads the downstream install mirror after the publish, read only; a tool outside the package), #4652(named only by a test commit of the #4760 member-stop car: the minted-result census counts the result literals that section adds, each with `continuesFrom`; nothing of #4652 changes), #3943(named only by a test commit at merge time that adds two allow rows to its pin's token-site list for #5229's refusal-code scrubber sites; nothing of #3943 changes), #3826(named only by a test commit at merge time that adds the author-table row for #5171's bounded-head spelling of a declarer's name; nothing of #3826 changes), #2300(named only by a test commit at merge time that re-pins three cells to the question refusal the #5293 section words; nothing of #2300 changes), #5107(named only by a #5302 test commit that gives the #5302 pin file the real-sleep entry #5107's file has, the same world; nothing of #5107 changes), #4854(named only by the #4859 / #4894 car's commits re-pinning `test/backlog4854-win-drive-prefix.test.ts` — three spellings that were unplaced now have a reading, a climb into the emulation's tree is a stand-in at its clamp; the change is the #4859 / #4894 section's), #763(named only by the #4859 / #4894 car's commit re-pinning `test/backlog763-attached-payload-deny.test.ts` on a win tree — the two folded words are still refused, now as outside the root; the change is the #4859 / #4894 section's), #5280(repository tooling only: the wire manifest script reads a name inside a type as the shape it names; nothing the package ships changes), #5263(repository tooling only: the test selector follows names through the root barrel, and the ledger gate reads tiers and acceptance-due markers; nothing the package ships changes), #4675(named only as the first ticket number the ledger gate's tier rule judges; nothing of #4675 changes), #5100(named only as a ledger row whose history carries an old acceptance-due spelling, which the gate now reads as history; nothing of #5100 changes), #5101(the same, for the neighbouring row; nothing of #5101 changes), #5296(named only as the root fix of a known limit the wire manifest script's car registered in docs/KNOWN-LIMITS.md; nothing of #5296 changes), #1320(named only by a test commit at merge time that registers #2828's two caller-identity projections as shown read sites; nothing of #1320 changes), #1022(named only by the release-notes car's commit, which adds pins R15b / R15c to an existing #1022 test file; nothing of #1022 changes), #5073(named only by the find car's commit that re-pins one cell of the #5073 test file for the #5058 regex rule; nothing of #5073 changes)
|
|
740
|
+
|
|
1
741
|
## 7.70.0 — 2026-11-23
|
|
2
742
|
|
|
3
743
|
### Upgrading from 7.69.1 — the order requirements the sections below state, in one list (no requirement of its own; each line points at the section that states it)
|