Repository navigation
Spec-driven change from a Jira issue - #21
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 18, 2026 20:08
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-7: Add Mature Cheese, a new product with its own maturing rule
Summary
This adds a new product kind, Mature Cheese, with its own maturing rule. An item named "Mature Cheese" or "MatureCheese" is now recognised as that kind. Each day it gains Quality: +1 while SellIn is above 0, and +2 once SellIn is 0 or below. Quality is capped at 50, and SellIn drops by 1 a day. Other items keep their existing rules, and the item name is not changed.
Nothing has been built or tested. The engineers had no way to run
dotnet restore,dotnet buildordotnet test. Please run these from the repo root before merging.Requirements met
ItemKind.MatureCheeseis added next to the existing kinds.ItemKind.FromNamemaps "Mature Cheese" and "MatureCheese" toMatureCheese.ItemMaturingPolicyhas a separateMatureMatureCheeserule. It gives +1 Quality per day, and +1 more once the new SellIn is below 0. Quality never decreases.SellIn.NextDay().Quality.Increase()already clamps Quality to 0..50, so no extra cap was added. Mature Cheese is not treated like Sulfuras.FromNamearms,Maturearms and maturing methods are unchanged.What changed
Production code
src/Core/ProposedCode/Domain/ItemKind.cspublic sealed record MatureCheese : ItemKind;.FromNamearms"Mature Cheese"and"MatureCheese". They sit before the_ => new Standard()default, so these names no longer fall through to Standard.src/Core/ProposedCode/Domain/ItemMaturingPolicy.csMaturearmItemKind.MatureCheese => this.MatureMatureCheese(state).MatureMatureCheese. It raises Quality by 1, moves SellIn on by one day, and raises Quality once more if the new SellIn is expired (SellIn.IsExpiredmeans below 0).MatureAgedBrietoday. It is a separate method so the cheese rule can change without touching Aged Brie.Tests
tests/Core.Tests/ProposedCode/Domain/ItemKindTests.csFromName_MapsNamesToExpectedKinds. Both expectItemKind.MatureCheese.tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.csMature_WhenKindIsMatureCheese_FollowsExpectedRuleswith nine rows. They cover SellIn above 0, SellIn of 1, 0 and below 0, and Quality of 0, 49 and 50.sellIn - 1and that Quality does not go down.tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.csMature_UsesExpectedRulesForResolvedItemKinds(Quality 10, SellIn 5 gives Quality 11, SellIn 4).Mature_WhenItemIsMatureCheese_KeepsInputName, which checks the name is kept.How to check
dotnet restore,dotnet buildanddotnet test.