Skip to content

Add run manifest for stage state tracking#3

Merged
huangwei0102 merged 2 commits intomainfrom
zefan-todo-1
Apr 3, 2026
Merged

Add run manifest for stage state tracking#3
huangwei0102 merged 2 commits intomainfrom
zefan-todo-1

Conversation

@Zefan-Cai
Copy link
Copy Markdown
Collaborator

Summary

This PR isolates TODO 1 from the larger CLI branch: add a machine-readable run_manifest.json as the primary per-run stage status source.

What Changed

  • added src/manifest.py
  • added run_manifest.json to the run layout via RunPaths
  • initialized a run manifest when creating a run
  • ensured a run manifest exists when resuming a run
  • updated stage status in the manifest during:
    • stage start
    • stage human review
    • stage approval
    • stage failure
    • run completion / cancellation
  • added a focused regression test in tests/test_run_manifest.py

Scope

This PR is intentionally limited to TODO 1 only.

Not included here:

  • cross-stage rollback and stale invalidation
  • operator session recovery hardening
  • stage handoff / context compression
  • paper/release package generation

Validation

  • python -m py_compile main.py src/*.py tests/*.py
  • python -m unittest discover -s tests -v

@huangwei0102
Copy link
Copy Markdown
Collaborator

Thanks for the clear PR description and focused scope. LGTM.

@huangwei0102 huangwei0102 merged commit 530c0e4 into main Apr 3, 2026
@huangwei0102 huangwei0102 deleted the zefan-todo-1 branch April 3, 2026 16:41
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