# Layers dashboard recipe

Example: [2026 Layers dashboard](https://docs.google.com/spreadsheets/d/1dlu2QsJElILsanUGn0qTeTSo4Jr2_abdYW0X8jb--AU/edit).
Owner: Poultry, `server/dashboardExport.ts`, reviewed revision in the catalog.
Use its module-independent Google Sheets integration SOP for exporter mechanics.

## Layout and inputs

`2026 LAYER DASHBOARD - auto` presents flock context, production, wash/packing,
revenue, labor and other COGS, gross profit, expenses, net result and variables.
`ASSUMPTIONS - auto` explains scope, source rules and stored assumptions. Shared
Summary cells and any manually maintained Issues content have separate ownership.
The existing export writes complete Monday–Sunday weeks and excludes the current
partial week.

Separate measured production, Timesheets labor, calculated revenue and estimated
costs. The current model's sales price and cost assumptions do not make calculated
egg revenue a Square sales ledger. Keep egg, dozen and case units explicit.

## Initial reusable measures

| Metric | Definition |
| --- | --- |
| Sellable eggs | Recorded normal + small + jumbo washroom eggs |
| Sellable dozens | Sellable eggs / 12 |
| Recorded washing hours | Source working hours, falling back to source hours; do not subtract breaks again |
| Matched eggs per person-hour | Sum output / sum labor on days with compatible, approved, non-overlapping records and verified daily provenance |

Use `poultry.washroom_daily` and either the scoped
`timesheets.egg_washing_entries` or explicitly filtered `timesheets.entries`.
Join at compatible source calendar dates and tasks, not by employee name. Multiple
washroom records, unverified legacy daily imports, missing output and overlapping
labor require review. Shared crew output is not measured individual performance.
An all-zero record does not by itself prove zero production.

Case-size settings can change. The initial adapter preserves eggs and dozens;
converting historical output to cases needs a verified applicable case size.
The current exporter rounds weekly case counts separately by egg size to two
decimals before converting the total to dozens. Exact eggs divided by 12 can
therefore differ slightly. The pilot records a separate presentation comparison
using the observed case setting; it does not round away the source egg counts or
assert that one observed case setting is valid for all historical periods.
Labor cost per dozen requires all relevant Layers task costs, not washing hours
alone. The authenticated Poultry labor endpoint provides its source-owned cost
calculation, with recorded-time scope explained in the integration guide.

## Reproduce a bounded result

The private pilot reports September 7–27, 2026 washroom sellable dozens and
recorded washing hours, flags unverified legacy imports and reconciles matched
throughput only where supported. Compare output to the workbook's wash/packing
rows and labor to the compatible task row. Preserve differences caused by source
as-of dates, imported historical allocations and cost/approval scope.

Use the existing `ASSUMPTIONS - auto` tab and exporter as the authority for the
full model, including feed, pullet amortization, equipment and leases. Do not
infer those assumptions from chart appearance or reuse them for another enterprise
without an explicit dated assumption.
