fix(runtime): replay #49 run-budget wiring onto clean main - #54
Merged
Conversation
Replays the completed #49 implementation onto the latest clean main after #47 was squash-merged, removing the stacked-PR history conflict while preserving the contributor's final code and real-provider smoke harness. Refs #17 Replaces #49 Co-authored-by: kbkb628 <278338969+kbkb628@users.noreply.github.com>
This was referenced Sep 11, 2026
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.
背景
原 #49 (
kbkb628:feat/17-run-budget-wiring) 是 stacked PR,依赖 #47。#47 以 squash 方式合入后,#49 因历史不同而变成mergeable_state=dirty,无法直接 rebase/merge;同时 GitHub App 无权限改写贡献者 fork 分支。这条 PR 不重写业务实现,而是以当前已全绿的
main为父提交,将 #49 最终 head (6f03674f...) 中的最终文件 blob 原样重放,从而移除已经由 #47 合入的 step1 历史。实际 diff
相对当前
main:1 commit / 0 behind,仅保留 #17 step2 的 8 个真实变化:packages/core/src/index.tspackages/shared/src/kernel/agent-kernel-budget.test.tspackages/shared/src/kernel/agent-kernel.tspackages/shared/src/kernel/run-budget.tspackages/shared/src/kernel/run-manager.test.tspackages/shared/src/kernel/run-manager.tspackages/shared/src/kernel/runaway-detector.tsscripts/eval/budget-smoke.ts已有验证
原 #49 已由贡献者完成真实 provider E2E:
AgentKernel → RunManager → PiRuntimeAdapter → pi runtime → DeepSeek--max-model-calls 1→budget_exhausted,partial answer 保留loop_detected,tool calls 保留此前 PR 红灯的 7 个用例来自 gitignored Longbridge account fixtures,与 #17 无关;#10 已合入并验证当前 main 的 Unit tests / Typecheck / Secret scan 全绿。
本 PR 用于让 GitHub CI 在最新 main + #49 最终实现上重新验证。
Refs #17
Supersedes #49
Co-authored-by: kbkb628 278338969+kbkb628@users.noreply.github.com