Repository navigation
Spec-driven change from a Jira issue - #20
Closed
dev-agentic-platform[bot] wants to merge 9 commits into
Closed
dev-agentic-platform[bot] wants to merge 9 commits into
dev-agentic-platform[bot] wants to merge 9 commits into
Conversation
added 9 commits
November 18, 2026 17:42
…ts for Cellar-Aged Mead
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-5: Add Cellar-Aged Mead as a maturing product
Summary
This adds "Cellar-Aged Mead" as its own item kind in the
ProposedCodematuration path."Cellar-Aged Mead". The match is case-sensitive, so "cellar-aged mead", "Cellar-Aged Mead Reserve" and "Cellar-Aged Mead " (trailing space) are treated as normal items.Not built or run. No one could run
dotnet buildordotnet testwhile writing this, and the tests were written on separate branches. Run the full suite before merging.Requirements met
The FR numbers are from the run's spec.
ItemKind.FromNameMatureCellarAgedMeadMatureCellarAgedMeadQualityclamps to 0–50, whichIncrease()uses; I read this inQuality.csSellIn.NextDay()Qualityclamp; tests start at 0 and 48The spec marks FR-010 as needing clarification: whether the legacy
OriginalCode/UpdateQualityServicemust also handle the mead. This change does not touch the legacy path orItem.cs, so the mead is only handled byItemMaturationService. Confirm that is what you want.What changed
Source
src/Core/ProposedCode/Domain/ItemKind.csCellarAgedMeadas a sealed record.FromNamegets the exact arm"Cellar-Aged Mead" => new CellarAgedMead()before theStandarddefault.src/Core/ProposedCode/Domain/ItemMaturingPolicy.csMaturegets the armItemKind.CellarAgedMead => this.MatureCellarAgedMead(state).MatureCellarAgedMeadfollows theMatureAgedBriepattern: quality +1, sell-in −1, and +1 more if the new sell-in is expired. That gives +2 from sell-in 0 and below.README.md: a new "Cellar-Aged Mead" subsection at the end of the Kata Description. It covers the +1/+2 rule, the 50 cap and exact-name recognition.Tests
tests/Core.Tests/ProposedCode/Domain/ItemKindTests.csCellarAgedMead.Standard.tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.cstests/Core.Tests/ProposedCode/ItemMaturationServiceTests.csHow to check
dotnet buildanddotnet testfrom the repository root.ItemMaturingPolicyTests,ItemMaturationServiceTests,QualityTestsandSellInTestspass with no edits to their old expected values (AC-07).