docs(plans): design + impl plan for AllocationGate factor-out (backlog #10)#95
Merged
Merged
Conversation
…Helpers Graduates backlog item #10. The dual signal is met: three packages (Authorization, Mediator, Mapping) have independently copied the helper, and Mapping has drifted — it's missing AssertBudgetValueTask<T> that Authorization and Mediator added later. A maintainer touching the ValueTask path in two repos has no indication that the third copy is silently different. Design: new repo ZeroAlloc.TestHelpers ships a source-only NuGet package (contentFiles distribution) containing exactly one .cs file. Consumers add a PackageReference with PrivateAssets="all" + IncludeAssets="contentfiles;build"; the helper compiles into each consumer's assembly as internal static class, keeping it out of every consumer's public API surface. Sequenced followup: 1 bootstrap PR in the new repo + 3 migration PRs (Mediator, Authorization, Mapping) + 1 small followup to drop the one-shot release-as override. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
10 sequenced tasks: docs PR + bootstrap new repo (5 internal tasks) + 3 consumer migrations + release-as cleanup. Each task self-contained with exact commands, expected outputs, and commit messages. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 22, 2026
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
Two docs commits for ZA.Mediator backlog item #10 (lift `AllocationGate` into a shared source-only package). Both halves of the dual graduation signal are met:
Design
`docs/plans/2026-05-22-allocation-gate-factor-out-design.md` — new repo `ZeroAlloc-Net/ZeroAlloc.TestHelpers` shipping a source-only NuGet package (NuGet `contentFiles` distribution) containing exactly one `.cs` file. Consumers add a `PackageReference` with `PrivateAssets="all"` + `IncludeAssets="contentfiles;build"`; the helper compiles into each consumer's assembly as `internal static class` in namespace `ZeroAlloc.TestHelpers`, keeping it out of every consumer's public API surface.
Plan
`docs/plans/2026-05-22-allocation-gate-factor-out.md` — 10 sequenced tasks: docs PR + bootstrap new repo + 3 consumer migrations (Mediator, Authorization, Mapping) + small release-please cleanup.
Test plan
🤖 Generated with Claude Code