You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C1] Generate egg lots from daily entry (missing bridge) #8
Sprint C · Lots & stock · priority:critical area:domain
THE MISSING BRIDGE.EggLot.Create is defined but never called anywhere. Daily-entry production generates no lots, so sales (#D2/confirm) allocate against an empty shelf. This wires the middle of the vertical slice.
Scope
On daily-entry submit/record, generate one EggLot per sellable grade from the captured production (depends on #B1).
Lot fields: flock, production date (= entry date), grade, quantity.
Idempotent: re-recording the same entry must not double-create lots (natural-key/upsert or reconcile).
Decide trigger point: on RecordProduction vs on Submit (recommend Submit — draft edits shouldn't churn lots).
Done when: submitting a daily entry with grade quantities produces matching egg lots, and re-submitting does not duplicate them. Integration test covering the full daily-entry -> lot -> available-stock path.
Activity
Address codex + pi review of #29
Startup migrate + seed and flock CRUD (#5) (#29)
Address codex + pi review of #32
Capture egg production by sellable grade in daily entry (#6) (#32)
Generate egg lots from daily-entry submit — the production→stock brid…
Mark Phase 1.0 shipped in AGENTS.md and spec (#40)