Skip to content

Spec-driven change from a spec file - #26

Closed
dev-agentic-platform[bot] wants to merge 9 commits into
masterfrom
agent/8a14bad5-b8fc-49e7-a08f-4c95360565e6/implement
Closed

dev-agentic-platform[bot] wants to merge 9 commits into
masterfrom
agent/8a14bad5-b8fc-49e7-a08f-4c95360565e6/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.

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

  • FR-001–FR-007: Recognize only the exact name; apply the pre-decrement sell-by rule, countdown, and quality bounds.
  • FR-008: Preserve behavior for existing product types.
  • FR-009–FR-011: Avoid extra age penalties, leave input items unchanged during maturation, and produce deterministic results.
  • FR-012: Cover the requested scenarios with automated tests.
  • FR-013: Limit production changes to Proposed Code; Original Code is unchanged.

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.

agentic-dev agent and others added 9 commits November 22, 2026 22:13
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>
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