WORK-081
ID:WORK-081Status:done

Consolidate Character Transform to Single Code Path

Priority:lowComplexity:trivialSource:SPEC-028

Criteria completion

No incremental history — criteria tracking started on Apr 20.

Branches 3
History 5
  1. f2b3512
    Content editedby Claude
    Add {ID}-{slug}.md filename convention + migrate filenames subcommand
  2. 59ded4a
    Content editedby Claude
    Implement SPEC-037 plan package hardening: all 7 work items
  3. f262d7b
    Content editedby Claude
  4. 14ad031
    statusreadydone
    by Claude
  5. 9aff526
    Created (ready)by Claude
    Add work items WORK-076 through WORK-082 for SPEC-028

Summary

The Character rune has two full createComponentRenderable calls in a hasSections / else branch, differing only in one property and one ref. Merge them into a single call using conditional spreading.

Acceptance Criteria

  • Character transform has exactly one createComponentRenderable call
  • Conditional hasSections logic uses spread syntax to vary properties/refs
  • Identity transform output is unchanged — all existing tests pass

Approach

  1. Identify the differing properties between the two branches
  2. Merge into a single call with ...(hasSections ? { key: value } : {})
  3. Run tests to verify output is identical

References

  • SPEC-028 (Standard 5 — Minimize Transform Code Paths)