Repository navigation
Spec-driven change from a Jira issue - #18
Closed
dev-agentic-platform[bot] wants to merge 5 commits into
Closed
dev-agentic-platform[bot] wants to merge 5 commits into
dev-agentic-platform[bot] wants to merge 5 commits into
Conversation
added 5 commits
November 17, 2026 19:34
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 specified, planned, built and reviewed this change from a Jira issue; the specification and the change were approved at gates before this pull request was opened. The specification, plan and tasks are under specs/. Review it as you would any change: agents can be wrong.
KAN-4: Add Bordeaux Wine as a new maturing product
Summary
This adds Bordeaux Wine as a product that gains quality as it ages. It is matched by its exact name,
Bordeaux Wine, and follows the same rule as Aged Brie.Quality.Increase()limit.All changes are in the new
ProposedCodeservice.src/Core/OriginalCodeis not touched.I haven't built the project or run any tests. Neither have the engineers, because they had no build tool. Run the checks below before merging.
Requirements met
ItemKind.FromNamemaps the exact nameBordeaux Wineto the newItemKind.BordeauxWine.MatureBordeauxWineadds 1 quality, and adds 1 more when the new sell-in is expired.Quality.Increase()enforces the 0–50 limits. I didn't open that type, so this is assumed from the Aged Brie rule that this code copies.SellIn.NextDay().Bordeaux Wineno longer falls through to the Standard rule.switcharms were added, so other products take the same paths as before.ItemMaturingPolicy, which is used byItemMaturationService.OriginalCode/UpdateQualityService.cshas no change and no Bordeaux handling. I found no "Bordeaux" text undersrc/Core/OriginalCode.What changed
Source
src/Core/ProposedCode/Domain/ItemKind.cspublic sealed record BordeauxWine : ItemKind;."Bordeaux Wine" => new BordeauxWine()before the default inFromName.bordeaux wine,BordeauxWineandBordeaux Wineresolve to Standard. Aliases are out of scope.src/Core/ProposedCode/Domain/ItemMaturingPolicy.csItemKind.BordeauxWine => this.MatureBordeauxWine(state)inMature.MatureBordeauxWine(ItemState)that mirrorsMatureAgedBrie.Tests
I left the existing test cases unchanged. The three files were rewritten in full, so check the diff for stray changes at the end of each file.
tests/Core.Tests/ProposedCode/Domain/ItemKindTests.csBordeaux Wine→ItemKind.BordeauxWinetoFromName_MapsNamesToExpectedKinds.FromName_WhenBordeauxWineNameIsNotExact_ResolvesToStandard, which covers three near-miss names.tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.csMature_WhenKindIsBordeauxWine_FollowsExpectedRuleswith 11 rows, placed after the Aged Brie test.tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.cs("Bordeaux Wine",20,10,21,9),("Bordeaux Wine",20,0,22,-1)and("Bordeaux Wine",50,0,50,-1).How to check
dotnet build. The test project won't compile withoutItemKind.BordeauxWineand the policy arm, which are in this change.dotnet test. The new Bordeaux Wine tests and all the existing ones should pass (SC-004, SC-006).git diff --stat -- src/Core/OriginalCode. It should print nothing (SC-005).Out of scope
OriginalCode/UpdateQualityService.cs.Cellar-Aged Mead(KAN-1) or any other product.Bordeaux Wine.The Jira issue has no written acceptance criteria. The requirements above come from the run's
spec.md.