beads/internal/types
Steve Yegge bce4f8f2d4 feat: Add source tracing metadata to cooked steps (gt-8tmz.18)
Add SourceFormula and SourceLocation fields to track where each step
came from during the cooking process. This enables debugging of complex
compositions with inheritance, expansion, and advice.

Changes:
- Added SourceFormula and SourceLocation fields to Step struct (formula/types.go)
- Added same fields to Issue struct (types/types.go)
- Added SetSourceInfo() to parser.go - sets source on all steps after parsing
- Updated cook.go to copy source fields from Step to Issue
- Updated dry-run output to display source info: [from: formula@location]
- Updated advice.go to set source on advice-generated steps
- Updated controlflow.go to preserve source on loop-expanded steps
- Updated expand.go to preserve source on template-expanded steps

The source location format is:
- steps[N] - regular step at index N
- steps[N].children[M] - child step
- steps[N].loop.body[M] - loop body step
- template[N] - expansion template step
- advice - step inserted by advice transformation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 16:27:48 -08:00
..
id_generator.go Implement 6-char progressive hash IDs (bd-166, bd-167) 2025-10-30 14:04:03 -07:00
id_generator_test.go Implement 6-char progressive hash IDs (bd-166, bd-167) 2025-10-30 14:04:03 -07:00
lock.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
lock_check.go Address gosec security warnings (bd-102) 2025-10-26 22:48:19 -07:00
lock_check_test.go Fix gosec warnings: tighten file permissions and add exclusions (bd-b47c034e) 2025-11-02 15:39:00 -08:00
lock_test.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
process.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
process_test.go Implement exclusive lock protocol for daemon/external tool coexistence 2025-10-25 23:32:47 -07:00
types.go feat: Add source tracing metadata to cooked steps (gt-8tmz.18) 2025-12-25 16:27:48 -08:00
types_test.go feat: add waits-for dependency type for fanout gates (bd-xo1o.2) 2025-12-23 04:00:00 -08:00