Skip to content

Spec-driven change from a spec file - #27

Closed
dev-agentic-platform[bot] wants to merge 4 commits into
masterfrom
agent/8fdb8055-e57e-4463-a4e9-8f3fe48041f1/implement
Closed

dev-agentic-platform[bot] wants to merge 4 commits into
masterfrom
agent/8fdb8055-e57e-4463-a4e9-8f3fe48041f1/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.

Spec: gilded_rose_new_product_business_rules.md

Adds isolated daily maturation rules for Mature Cheese: quality increases by 1 before sell-by, or 2 on and after sell-by, while sellIn decreases by 1 and quality stays within 0–50.

Requirements met: FR-001–003 implement the countdown and sell-by thresholds; FR-004–005 preserve quality bounds, including for out-of-range input; FR-006 applies the rule only to the exact name; FR-007 preserves existing product rules and leaves Original Code unchanged; FR-008 avoids mutating the input item; FR-009 covers multiple items, consecutive updates, and mixed inventories; FR-010 adds deterministic automated tests.

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 rule, using the starting sellIn value to determine the increase.
  • tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.cs — covers thresholds, clamping, exact-name matching, existing product behavior, and repeated updates.

Check: Run dotnet test tests/Core.Tests/GildedRoseKata.Core.Tests.csproj. Tests were not run in the implementation environment.

agentic-dev agent and others added 4 commits November 23, 2026 10:23
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