Repository navigation
refactor(arch): stage a new farm's defaults through Egg Operations' and Commerce's provisioning ports - #1122
Merged
Merged
Conversation
…nd Commerce's provisioning ports Part of #1116 (the P4 design change). AccountProvisioner built Egg Operations' and Commerce's aggregates itself to add a new farm's default grades and unit conversions. It now calls two Production ports, IEggGradeProvisioning and IEggUnitConversionProvisioning, which the owning modules implement. Each stages its defaults for the resolved tenant into the caller's scoped context, refuses to run without a resolved tenant or outside the caller's transaction, and never saves; AccountProvisioner keeps its order, audit row, Owner creation, save, commit and rollback. ProvisionAsync, the allow-listed tenant bypass, is untouched. The CW1004 census loses the two P4 rows.
mforce
force-pushed
the
refactor/1116-provisioning-ports
branch
from
October 6, 2026 19:42
b032658 to
d7503eb
Compare
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.
Part of #1116 (cleanup PR C6, the P4 design change). It does not close the issue.
AccountProvisionerno longer builds Egg Operations' and Commerce's aggregates. It stages a new farm's defaults through two Production ports that the owning modules implement:IEggGradeProvisioning, implemented byEggGradeProvisioningin Egg Operations;IEggUnitConversionProvisioning, implemented byEggUnitConversionProvisioningin Commerce.CW1004 census (
tools/architecture/cw1004-census.sh): 2 → 0 on main after #1121. The two removed rows areAccountProvisioner→EggGradeand →EggUnitConversion. Security, atomicity and mutation proofs follow in an edit.