Commit Graph

3 Commits

Author SHA1 Message Date
Caleb a58fb564d1 feat(scripts): add env isolation, incremental logging, and test timeouts
- Wrap all Claude CLI subprocess calls with `env -u CLAUDECODE` to prevent
  parent env var interference with child processes (17 sites across 7 files)
- Add `flush_log_to_repo()` to epic-execute.sh for incremental log persistence
  after each story completes or fails (prevents log loss on interruption)
- Add portable `run_with_timeout` utility to utils.sh and wrap all test
  invocations in epic-execute.sh and regression-gate.sh with configurable
  timeout (default 120s via REGRESSION_TEST_TIMEOUT)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 05:19:53 -06:00
Caleb 51e31ada91 feat(epic-execute): implement low-priority UX improvements (L1-L5)
- L1: Add checkpoint/resume capability with --resume flag
  - load_checkpoint(), save_checkpoint(), clear_checkpoint() in utils.sh
  - Auto-saves progress after each story, 7-day expiration
- L2: Add comprehensive --help option with grouped options and examples
  - show_help() function with environment variables and file locations
- L3: Add verbose Claude output streaming
  - execute_claude_verbose() for real-time output when --verbose set
- L4: Add metrics file archival to prevent unbounded growth
  - Archives to metrics/archive/, keeps last 10 per epic
- L5: Add workflow file content validation
  - validate_yaml_content(), validate_xml_content() with fallbacks
  - Integrated into validate_workflows()

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 15:18:20 -06:00
Caleb 06ce7e7fca feat(epic-execute): implement medium-priority reliability fixes (M1-M5)
Add new utils.sh module with cross-platform support and reliability improvements:
- M1: execute_with_retry() with exponential backoff for transient failures
- M2: validate_yq() to detect Go vs Python yq versions with fallback
- M3: check_phase_completion_fuzzy() for case-insensitive signal detection
- M4: sed_inplace() for cross-platform sed (macOS/Linux compatibility)
- M5: check_branch_protection() to prevent commits to main/master

Update json-output.sh with enhanced JSON extraction using awk for multi-block
handling, normalized status comparison, and fuzzy matching fallback.

Update epic-execute.sh to source utils.sh and use cross-platform sed functions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-26 15:11:41 -06:00