Skip to content

Add Mature Cheese per gilded_rose_new_product_business_rules.md - #32

Closed
dev-agentic-platform[bot] wants to merge 7 commits into
masterfrom
agent/3a604519-a6a9-43d2-917e-2e5610411e56/implement
Closed

dev-agentic-platform[bot] wants to merge 7 commits into
masterfrom
agent/3a604519-a6a9-43d2-917e-2e5610411e56/implement

Conversation

@dev-agentic-platform

Copy link
Copy Markdown

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.

Add Mature Cheese handling to Proposed Code: quality rises by 1 before sell-by and 2 on or after it, capped within 0–50, while sellIn decreases daily. Original Code is unchanged.

Requirements: Meets FR-001–FR-007 and FR-009–FR-014: exact-name matching, sell-by and quality rules, independent handling in mixed inventories, no mutation of input items, and regression coverage for existing products. FR-008 is met by limiting implementation changes to Proposed Code.

Files changed

  • src/Core/ProposedCode/Domain/ItemKind.cs — adds the Mature Cheese kind and exact-name mapping.
  • src/Core/ProposedCode/Domain/ItemMaturingPolicy.cs — applies the new daily update rule.
  • tests/Core.Tests/ProposedCode/Domain/ItemKindTests.cs — checks exact and similar-name classification.
  • tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.cs — covers boundaries, invalid quality data, and consecutive updates.
  • tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.cs — covers service behavior, input non-mutation, mixed inventory, similar names, and existing products.

How to check: Run dotnet test GildedRoseKata.sln. Tests were not run during implementation.

agentic-dev agent and others added 7 commits November 29, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant