Description
Cover: updateCheckpoint() merge semantics, detectCheckpoint() returning null for triage-only checkpoints, resumeFromCheckpoint() mapping resume.action to resumeStage, clearCheckpoint() reset. Include forward-compat test that preserves unknown fields on round-trip.
Acceptance Criteria
Milestone Context
|
|
| Milestone |
v6 — Local Testing & Simulation Framework |
| Phase |
Phase 48: State & Pipeline Tests |
| GSD Route |
plan-phase |
| Phase Position |
Phase 2 of 4 in milestone |
Milestone Goal
Offline test suite with mock GitHub API and fake GSD agents to validate MGW orchestration logic without requiring live GitHub tokens or active Claude API calls.
Phase Goal
Test coverage for lib/state.cjs functions, the validate_and_load pattern, and core pipeline stage transitions used in mgw:run and mgw:milestone.
Dependencies
write-integration-tests-for-validate_and_load-an
Scope Hints
- Estimated route:
plan-phase
- Labels: testing,state
Description
Cover: updateCheckpoint() merge semantics, detectCheckpoint() returning null for triage-only checkpoints, resumeFromCheckpoint() mapping resume.action to resumeStage, clearCheckpoint() reset. Include forward-compat test that preserves unknown fields on round-trip.
Acceptance Criteria
Milestone Context
plan-phaseMilestone Goal
Offline test suite with mock GitHub API and fake GSD agents to validate MGW orchestration logic without requiring live GitHub tokens or active Claude API calls.
Phase Goal
Test coverage for lib/state.cjs functions, the validate_and_load pattern, and core pipeline stage transitions used in mgw:run and mgw:milestone.
Dependencies
write-integration-tests-for-validate_and_load-an
Scope Hints
plan-phase