Skip to content

refactor(runtime): gate budget policy and harden config writes#53

Merged
phantom5099 merged 1 commit into
mainfrom
fork-pr-413-1776872136
Apr 23, 2026
Merged

refactor(runtime): gate budget policy and harden config writes#53
phantom5099 merged 1 commit into
mainfrom
fork-pr-413-1776872136

Conversation

@fennoai
Copy link
Copy Markdown

@fennoai fennoai Bot commented Apr 22, 2026

Requested by @phantom5099

Summary

  • Replace budget estimate semantics from Accurate to GatePolicy (gateable/advisory) across provider/runtime contracts.
  • Upgrade runtime event envelope to payload_version=4 and switch budget_checked payload to estimate_gate_policy.
  • Add shared atomic config write helper and migrate config write paths to avoid partial-write corruption windows.
  • Extend regression coverage for gateable/advisory budget branches, provider estimate contracts, and migration write-failure safety.

- replace Accurate with GatePolicy in budget estimate and decisions
- set builtin provider estimates to local+gateable
- switch budget_checked payload to estimate_gate_policy
- bump runtime/tui payload_version to 4
- add atomic config write helper and use it in migration/loader
- add migration failure safety tests and provider/runtime regressions

Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: phantom5099 <245659304+phantom5099@users.noreply.github.com>
@phantom5099 phantom5099 merged commit 44ce853 into main Apr 23, 2026
1 check passed
@fennoai fennoai Bot deleted the fork-pr-413-1776872136 branch April 23, 2026 02:55
phantom5099 pushed a commit that referenced this pull request May 7, 2026
fix(feishu): harden sdk ingress and status cards
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