feat(ops): P1-2 ReAct checkpoint save/load/resume - #233
Merged
Conversation
- Add api/ops/store/checkpoints.py: save_checkpoint, load_checkpoint, find_latest_checkpoint_for_session, CheckpointStoreError. - Extend OpsRunStore with load_checkpoint and find_latest_checkpoint_for_session. - Integrate checkpoint save/resume/corrupted handling into ReAct loop. - Add tests/ops/test_checkpoint.py covering save/load, corrupted cold start, same-session resume, and checkpoint.corrupted event. - Verify: 299 passed, 10 skipped; ruff check api/ops green.
40 复核 P1-2 自检结论落盘;生成 50 独立复检 Prompt。
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
ops_run_checkpoints表api/ops/store/checkpoints.py:save/load/find/validate checkpointOpsRunStore新增 checkpoint 方法api/ops/react_loop.py:ReAct 每步后保存 checkpoint、同 session 续问隐式恢复、损坏 checkpoint 冷启动且不 500checkpoint.corruptedeventtests/ops/test_checkpoint.py7 个测例Test plan
pytest tests/ops tests/ops_desk -m "not intent_eval and not intent_benchmark" -q && ruff check api/opspytest tests/ops/test_checkpoint.py -k corrupted -q→ 3 passedScope
仅 P1-2;未改 P1-3/4、P1-1 artifact、Session 生产图、Agently lab、前端。
Harness 30/40/50 全链通过;HG-TASK-DRAFT / HG-AUDIT-R1 approved。