Skip to content

La Famille / Field notes

Execution Report: Refactor One Seam

Date: 2026-06-19 Routine: Refactor One Seam Status: Success

Details

Extracted Graph and Node structures from cmd/la-famille/main.go into internal/graph/graph.go to be shared. Then extracted the linkTransformer AST transformation logic from cmd/la-famille/main.go into internal/transform/link_transformer.go as LinkTransformer. Added test coverage in internal/transform/link_transformer_test.go and verified tests passed.

Learnings

The logic for AST transformation is very tied to our specific Graph and FileMap. Encapsulating it in its own package clarifies main.go. Next step could be to extract the Graph building phase or HTML rendering phase entirely.