Skip to content

Audit Tier B second pass: slices move into context folders, NotifyBaker.cs rename - #10

Merged
erikshafer merged 1 commit into
mainfrom
chore/critter-audit-tier-b-2
Sep 5, 2026
Merged

erikshafer merged 1 commit into
mainfrom
chore/critter-audit-tier-b-2

Conversation

@erikshafer

Copy link
Copy Markdown
Owner

Summary

B3 and B4 from docs/critter-stack-audit.md. Pure reorganisation: no behaviour change, no route or contract change, per-slice file counts identical. Remaining open items after this: B2, B6, B7, B8, B10, B11.

Changes

B3. Slices live in their bounded-context folders. The flat Features/ folder is gone. Each slice now sits beside the document it works on, which is the layout the JasperFx style guidance prefers over a technical grouping:

  • Cakes/: Cake.cs, PublishCake.cs, BrowseCakes.cs, GetCake.cs
  • Coupons/: Coupon.cs, CouponValidation.cs, ValidateCoupon.cs
  • Orders/: Order.cs, BakerTask.cs, PlaceOrder.cs, NotifyBaker.cs, GetOrder.cs, GetBakerTasks.cs
  • project root: Ping.cs, SeedData.cs, Program.cs, AfterTwin.cs

Namespaces follow the folders (LayerCake.Slices.Cakes / .Coupons / .Orders); LayerCake.Slices.Features no longer exists. That made eleven using lines redundant and they are removed. All moves went through git mv, and git reports all ten as renames, so history follows the files.

B4. NotifyBakerHandler.cs is now NotifyBaker.cs, named after the message it carries, per the one-command-per-file rule.

Bookkeeping. README tour tree and the PublishCake.cs pointer updated. Paths rewritten in docs/file-inventory.md and the three slice specs. openspec/changes/archive/ left as the historical record. Unit-test usings updated. Build-log entry added. Line counts: after twin 695 raw / 574 non-blank (was 706 / 585, exactly the dropped usings); before twin unchanged at 1,733 / 1,432.

Verification

  • dotnet build: 0 warnings, 0 errors
  • dotnet test: contract suite 54 passed, unit tests 15 passed, 0 failed
  • grep for Features/ and NotifyBakerHandler.cs outside the openspec archive and audit history: none

…er.cs

B3 and B4 from docs/critter-stack-audit.md. No behaviour change.

- The flat Features/ folder is gone. Slices live beside their documents in
  Cakes/, Coupons/, Orders/, and Ping.cs sits at the project root. Namespaces
  follow the folders; the LayerCake.Slices.Features namespace no longer
  exists, which made eleven using lines redundant (removed).
- NotifyBakerHandler.cs renamed NotifyBaker.cs after the message it carries.
- All moves via git mv so history follows the files.
- Paths updated in README (tour tree, PublishCake pointer), the file
  inventory, and the three slice specs; openspec archive left as history.
  Unit-test usings updated.

Build 0 warnings. Contract suite 54/54, unit tests 15/15. After twin 695 raw /
574 non-blank (was 706 / 585, exactly the dropped usings); before twin
unchanged.
@erikshafer erikshafer self-assigned this Sep 5, 2026
@erikshafer
erikshafer merged commit b7522bc into main Sep 5, 2026
1 check passed
@erikshafer
erikshafer deleted the chore/critter-audit-tier-b-2 branch September 5, 2026 22: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