starmen1265
c9ca1b538d
refactor(06-02): update CLI and test imports to kb_workflow.pipeline
...
- Remove sys.path manipulation from kb_workflow.py
- Update CLI imports to use kb_workflow.pipeline prefix
- Update all test file imports and patch paths
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-17 00:17:10 +08:00
starmen1265
624cd76538
feat(01-01): implement WorkflowStateManager with atomic write
...
GREEN phase: Implement state management with:
- Atomic write pattern (temp file + os.replace)
- Backup rotation (workflow_state.json -> .bak)
- Backup fallback on corruption
- get_or_create idempotent creation
Fix test to properly create backup before corruption test.
All 20 tests pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 17:16:30 +08:00
starmen1265
246e4038b4
test(01-01): add failing tests for WorkflowStateManager
...
RED phase: 20 test cases for:
- WorkflowState.is_step_completed (5 tests)
- WorkflowState.mark_step_* methods (4 tests)
- WorkflowStateManager atomic write (4 tests)
- WorkflowStateManager backup fallback (4 tests)
- WorkflowStateManager.get_or_create (3 tests)
11 tests fail due to missing kb_pipeline.state module.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-13 17:15:02 +08:00