Skip to content

Adds a recorder module - #400

Merged
ryanmrichard merged 2 commits into
masterfrom
recorder
Nov 30, 2026
Merged

ryanmrichard merged 2 commits into
masterfrom
recorder

Conversation

@ryanmrichard

Copy link
Copy Markdown
Member

There's been a number of times where I have wanted to capture the output of a module that is nested in the call graph.

The pattern I use is:

  • Assume you want to capture the results of module M satisfying PT P.
  • Write a wrapper module W that also satisfies P.
    • W calls M as a submodule.
    • W forwards the inputs to W to M.
    • W records the results of M.
    • W returns the results of M.
  • Use W where M would normally be used.

The Recorder module introduced in this PR provides a reusable implementation of this pattern.

@ryanmrichard ryanmrichard self-assigned this Nov 25, 2026
@ryanmrichard
ryanmrichard merged commit b8078eb into master Nov 30, 2026
11 checks passed
@ryanmrichard
ryanmrichard deleted the recorder branch November 30, 2026 15:00
@github-actions

Copy link
Copy Markdown
Contributor

🚀 [bumpr] Bumped!
New version:v1.0.77
Changes:v1.0.76...v1.0.77

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.

2 participants