Repository navigation
feat: add pipe.as stage for cross-quirk adaptation - #503
Merged
Merged
Conversation
5 tasks done
charlesfire
pushed a commit
to charlesfire/den
that referenced
this pull request
May 16, 2026
## Summary - Adds `pipe.as` stage that renames pipe output so data from one quirk can be delivered under a different quirk name - Enables derived quirks — quirks with no native emitters, populated entirely via collect + transform + rename from other pipes - Composes with all existing stages (`pipe.collect`, `pipe.transform`, `pipe.filter`, `pipe.to`) - Self-targeting (`pipe.as "same-pipe"`) throws a clear error ## Changes - `nix/lib/policy-effects.nix`: `pipe.as` stage constructor - `nix/lib/aspects/fx/assemble-pipes.nix`: Assembly logic for untargeted and targeted `pipe.as` routing, `mkCombinedBase` helper extraction - `templates/ci/modules/features/pipe-policy.nix`: 6 new tests (basic, transform, collect, pipe.to, no-emitter quirk, self-error) - `docs/`: Updated explanation, guide, and reference docs for `pipe.as` ## Test plan - [x] 767/767 CI tests pass - [x] 6 new pipe-policy tests cover all `pipe.as` combinations - [x] Existing pipe tests unaffected (no regressions)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pipe.asstage that renames pipe output so data from one quirk can be delivered under a different quirk namepipe.collect,pipe.transform,pipe.filter,pipe.to)pipe.as "same-pipe") throws a clear errorChanges
nix/lib/policy-effects.nix:pipe.asstage constructornix/lib/aspects/fx/assemble-pipes.nix: Assembly logic for untargeted and targetedpipe.asrouting,mkCombinedBasehelper extractiontemplates/ci/modules/features/pipe-policy.nix: 6 new tests (basic, transform, collect, pipe.to, no-emitter quirk, self-error)docs/: Updated explanation, guide, and reference docs forpipe.asTest plan
pipe.ascombinations