Repository navigation
Spec-driven change from a spec file - #26
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
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…d regression behavior
…nd and update rule
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 spec file; 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.
gilded_rose_new_product_business_rules.md
Summary
Adds Mature Cheese support in Proposed Code, with exact-name recognition, age-based quality increases, a 50-point cap, and a one-day sell-by countdown. Adds mapping, policy, and service tests for the new behavior and existing-product compatibility.
Requirements met
Files changed
src/Core/ProposedCode/Domain/ItemKind.cs— adds the Mature Cheese kind and exact-name mapping.src/Core/ProposedCode/Domain/ItemMaturingPolicy.cs— adds the isolated Mature Cheese update rule.tests/Core.Tests/ProposedCode/Domain/ItemKindTests.cs— tests exact-name recognition and rejection of near matches.tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.cs— tests quality changes, sell-by countdown, bounds, consecutive updates, determinism, and existing product rules.tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.cs— tests invalid imported quality normalization, mixed inventory compatibility, input immutability, and comparison with Original Code.How to check
Run
dotnet test GildedRoseKata.sln. The tests were not run during implementation because test execution tools were unavailable.