Repository navigation
Planned, built and reviewed change - #17
Closed
dev-agentic-platform[bot] wants to merge 4 commits into
Closed
dev-agentic-platform[bot] wants to merge 4 commits into
dev-agentic-platform[bot] wants to merge 4 commits into
Conversation
added 4 commits
November 13, 2026 11:02
…policy rule and README line
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.
Agents planned, built and reviewed this change; the run was approved at a gate before this pull request was opened. Review it as you would any change: agents can be wrong.
Summary
This adds a new product, Vintage Wine (alias Wine), that matures with age. The business rule is my choice, since the request left it open:
Quality is clamped by the existing
Qualitytype (0 to 50). Nothing inQuality.cs,SellIn.cs,IMaturingPolicy.csorOriginalCodewas touched.Not verified: the engineers could not run
dotnet buildordotnet test. I read the changed files and they match the reports. Nobody has confirmed that the build is warning-free or that the tests pass. Run both from the repo root before merging.Changes per file
src/Core/ProposedCode/Domain/ItemKind.cspublic sealed record VintageWine : ItemKind;.FromNamenow maps"Vintage Wine"and"Wine"tonew VintageWine(). Without this the item would fall through toStandard.src/Core/ProposedCode/Domain/ItemMaturingPolicy.csItemKind.VintageWine => this.MatureVintageWine(state)to theMatureswitch.MatureVintageWine. It computesnewSellIn = state.SellIn.NextDay()first, then:newSellIn.IsExpired, quality isDecrease(2);Increase().README.mdtests/Core.Tests/ProposedCode/Domain/ItemKindTests.cs"Vintage Wine"and"Wine"rows, both expectingItemKind.VintageWine, toFromName_MapsNamesToExpectedKinds.tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.csMature_WhenKindIsVintageWine_FollowsExpectedRuleswith ten(quality, sellIn, expectedQuality, expectedSellIn)rows:(10,5,11,4),(10,1,11,0);(10,0,8,-1);(10,-1,8,-2);(0,0,0,-1),(1,0,0,-1);(50,5,50,4),(49,5,50,4);(50,0,48,-1);(0,5,1,4).(10,-1,8,-2)row passes a negativesellIn.SellInaccepts any int, so this is valid.tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.csMature_UsesExpectedRulesForResolvedItemKinds. They run both names through name resolution and maturing, in date and just expired:("Vintage Wine",10,5,11,4)and("Wine",10,5,11,4);("Vintage Wine",10,0,8,-1)and("Wine",10,0,8,-1).How to check
dotnet build. It should finish with no errors or warnings.dotnet test. All existing tests and the new Vintage Wine rows should pass.("Vintage Wine", quality 10, sellIn 5)should become quality 11, sellIn 4.("Wine", quality 10, sellIn 0)should become quality 8, sellIn -1.