Skip to content

Pass transformer session as typed context - #1509

Merged
chubes4 merged 1 commit into
trunkfrom
refactor/typed-session-contexts
Sep 1, 2026
Merged

Pass transformer session as typed context#1509
chubes4 merged 1 commit into
trunkfrom
refactor/typed-session-contexts

Conversation

@chubes4

@chubes4 chubes4 commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • pass the run-scoped HtmlTransformerSession directly into six conversion contexts
  • remove 21 lazy state closures while retaining transformer-owned operation callbacks
  • preserve fail-fast lifecycle access for author styles, layout geometry, and materialized assets

Verification

  • composer test (includes 292 parity fixtures)
  • 385 serialized-block fixture hashes: 0 differences, 0 exceptions
  • callback-context closure fields: 260 -> 239
  • git diff --check
  • Homeboy architecture audit: no introduced findings (30def78e-85e8-4b16-8173-db88373a8286)

AI Assistance

OpenAI GPT-5.6 Sol was used through OpenCode to inspect the architecture, implement the refactor, adapt tests, and run verification. Chris directed the scope and reviewed the resulting evidence.

@chubes4
chubes4 merged commit f0e09e5 into trunk Sep 1, 2026
10 checks passed
@chubes4
chubes4 deleted the refactor/typed-session-contexts branch September 1, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant