Skip to content

refactor(runtime): hard-cut lifecycle/completion/facts semantics#47

Merged
phantom5099 merged 1 commit intomainfrom
fork-pr-394-1776788897
Apr 22, 2026
Merged

refactor(runtime): hard-cut lifecycle/completion/facts semantics#47
phantom5099 merged 1 commit intomainfrom
fork-pr-394-1776788897

Conversation

@fennoai
Copy link
Copy Markdown

@fennoai fennoai Bot commented Apr 21, 2026

Requested by @phantom5099

Summary

  • remove sticky completion verify flags and switch to fact-driven unverified-write gate
  • replace temporary lifecycle restore flow with base+overlay counter model
  • add typed ToolExecutionFacts and consume structured write/verify signals in runtime
  • upgrade runtime payload version to v2 and fail-close session containment on permission errors
  • add regression tests for lifecycle counters, tool facts, and explicit bash verification

…semantics

- remove sticky verify flags from completion gate and rely on unverified-write fact
- replace temporary lifecycle restore with counter-based effective state derivation
- add typed tool execution facts and consume them for write/verify semantics
- default unknown/mcp/bash actions to conservative workspace_write=true unless explicitly read-only
- upgrade runtime payload version to v2 and fail-close session containment on permission errors
- add lifecycle/facts/verification regression tests

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: phantom5099 <245659304+phantom5099@users.noreply.github.com>
@phantom5099 phantom5099 merged commit e77dbb4 into main Apr 22, 2026
1 check passed
@fennoai fennoai Bot deleted the fork-pr-394-1776788897 branch April 22, 2026 02:21
phantom5099 pushed a commit that referenced this pull request May 2, 2026
test(gateway): 补充 runtime snapshot/todo 分支覆盖
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants