Skip to content

Spec-driven change from a spec file - #23

Closed
dev-agentic-platform[bot] wants to merge 5 commits into
masterfrom
agent/b7c92ddc-bf42-4c2c-abfe-62242b10fb5e/implement
Closed

dev-agentic-platform[bot] wants to merge 5 commits into
masterfrom
agent/b7c92ddc-bf42-4c2c-abfe-62242b10fb5e/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

Add exact-name Mature Cheese support to the proposed inventory policy. Quality increases by 1 before sell-by and 2 at or after sell-by, is clamped to 0–50, and sellIn decreases once per update.

Requirements met: FR-001–FR-013 cover product matching, update rules, quality bounds, unchanged existing behavior, read-only inputs, deterministic mixed-inventory updates, and automated coverage. FR-014 is met by confining 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 — implements the isolated aging rule using the existing quality bounds.
  • tests/Core.Tests/ProposedCode/Domain/ItemKindTests.cs — verifies exact and similar-name mapping.
  • tests/Core.Tests/ProposedCode/Domain/ItemMaturingPolicyTests.cs — covers sell-by boundaries, repeated updates, quality limits, legacy values, and Sulfuras behavior.
  • tests/Core.Tests/ProposedCode/ItemMaturationServiceTests.cs — covers service-level product behavior, mixed inventories, repeatability, and input preservation.

How to 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 5 commits November 22, 2026 15:53
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