feat(runtime-host): enable explicit safe resume by default - #5206
Open
me2seeks wants to merge 1 commit into
Open
feat(runtime-host): enable explicit safe resume by default#5206me2seeks wants to merge 1 commit into
me2seeks wants to merge 1 commit into
Conversation
Generated-by: OpenAI Codex
me2seeks
added this pull request to stack #5208
September 11, 2026 17:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make explicit safe-boundary resume available to TUI and Desktop when
MAKA_RUNTIME_SAFE_BOUNDARY_RESUMEis unset, while keeping model-drivenWorkHub resume delegation disabled by default.
A single policy resolver now separates the two authorization boundaries:
1ortrue: both enabled0,false, or an unrecognized value: both disabledThe existing Runtime Host planner remains the final safety authority. The
policy only controls whether a caller may request planning; it does not turn a
stopped Run into an automatically resumable Run.
This also updates the TUI copy and the English/Chinese architecture and product
documentation. The startup documentation now distinguishes repair of an
already admitted continuation from selection of an ordinary stopped Run.
Refs #5205
Verification
npm run rebuildMAKA_RUNTIME_SAFE_BOUNDARY_RESUME=0disables explicit resumenpm run lintnpm run format:checknpm run check:asf-headersnpm run check:stalegit diff --checkHosted CI has not run yet.
Review focus
This changes the default behavior of an operation that may continue spending
tokens. Please review the separation between explicit user authorization and
model-driven WorkHub authorization, including the handling of an existing
durable WorkHub admission.
AI use
Select exactly one:
Tool(s) and scope: OpenAI Codex traced the resume authorization paths, designed
and implemented the policy boundary, added tests and documentation, and
performed adversarial pre-PR review.
Checklist
Does this PR entail a change in behavior?