You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "Astro-Han (via GitHub)" <gi...@apache.org> on 2026/08/23 14:41:56 UTC
[PR] fix(runtime): replay checkpoints before tool pruning [maka]
Astro-Han opened a new pull request, #3632:
URL: https://github.com/apache/maka/pull/3632
Replay durable history checkpoints against the immutable RuntimeEvent ledger before stale Tool Result pruning shapes the uncovered remainder. This keeps checkpoint source validation stable as the recent-turn pruning window moves.
The regression test covers a checkpoint whose oversized covered Tool Result has become stale and has a valid archive ref. It fails with `source_hash_mismatch` before the fix and replays the checkpoint after the order change.
Fixes #3631
## Verification
- `cd packages/core && npm run build`
- `cd packages/runtime && npm run build`
- `node --test dist/__tests__/context-budget.test.js`
- `npx biome format packages/runtime/src/context-budget.ts packages/runtime/src/__tests__/context-budget.test.ts`
- `git diff --check`
Full repository tests were not run locally.
## AI use
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: Maka diagnosed the local failure, traced the checkpoint/pruning order, and authored the implementation and regression test under human direction.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — checkpoint replay now precedes stale Tool Result pruning
- [ ] No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [PR] fix(runtime): replay checkpoints before tool pruning [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3632:
URL: https://github.com/apache/maka/pull/3632
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org