Fix PROGRESS.md generator: epic-driven discovery, no collisions - #71
Merged
Conversation
Replace hardcoded phase maps (PHASE_MAP, DJ_PHASE_EPICS, DJ_PHASE_ORDER, build_dj_phase_membership) with automatic epic discovery from issue data. This eliminates the need for code changes when adding new epics/phases. Key changes: - Add refresh_jsonl() to auto-export fresh data from local DB before generating (skipped in CI where no DB exists) - Auto-discover epics via issue_type + Phase regex in titles - Create synthetic phases for numbered-prefix beads without epics (Phases 1, 3 have no epic records but have "1A:", "3B:" beads) - Three-step collision-free bead assignment: 1. Numbered prefix (highest priority) 2. Epic direct deps (first match wins, phase order) 3. Reverse dep propagation (gap beads inherit section) - Phases with sub-epics render ### sub-sections (Phase 4A, 4B, etc.) - All Campaign Automation gap beads now appear in Phase 2 - Add CI workflow logging for JSONL source diagnostics - Add 33 tests covering all assignment logic and edge cases bead: ar-4ff Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add fallback description map for Phase 1 ("Seller Interoperability") and
Phase 3 ("Platform & Infrastructure") which have numbered-prefix beads
but no epic records. Closed stale duplicate beads buyer-947, buyer-111,
buyer-4xi (duplicates of buyer-gp3, buyer-tvy, buyer-op8). Regenerated
PROGRESS.md with both fixes applied.
bead: ar-4ff
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bead: ar-4ff Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
generate_progress.py(v3) to auto-discover phases from epic records instead of hardcoded mapsrefresh_jsonl()to export fresh data from local DB before generating (skipped in CI)Test plan
bead: ar-4ff
🤖 Generated with Claude Code