Workforce architecture · In development
PoultryPoint Crew
Designing a workforce companion without creating a second source of truth for the farm.
As a farm grows beyond one person, work is delegated, but responsibility for stock, costs and the accuracy of farm records remains. Crew is designed as a separate application for staff, with workforce management inside the existing PoultryPoint farmer app.
Delegate work, not ownership
My starting point was that a person can own a farm and work for another. An account is an identity, not a permanent job title. The proposed membership model therefore separates a verified identity from permission to act on a particular farm.
Invitations require proof of the intended email identity and explicit acceptance. A role-change offer requires consent; removing access is a separate owner action. A descriptive job title does not grant permissions. The backend must enforce current farm scope and authority on each relevant operation, even if a person uses both applications.
This avoids two tempting shortcuts: giving staff owner-level access with hidden UI controls, or creating a second independent account and ledger for the same farm.
One task, multiple facts
A simple completion checkbox cannot express everything that happens on a farm. A task may cover more than one flock, be performed in part, await verification or have a disputed report. The proposed model separates the scheduled obligation, the actual report, its review decision and confirmed operational coverage.
Consider an illustrative feeding task assigned to one worker for two flocks:
Leaving Flock B blank must not mean zero consumption or completed work. The report for Flock A remains distinguishable from confirmed coverage. An authorised approval affects only the eligible reported targets. This supports partial execution without giving duplicate credit or losing the unfinished obligation.
The source-backed design recommends stable occurrence and target identities, independent of the assignee or the date on which an overdue task is displayed. Recurring work must not accidentally become another instance of the same physical obligation.
Separate execution from financial authority
Staff should record what happened: the flock, actual quantity, execution time and relevant evidence. They should not need to enter a cost or choose how the owner's stock is valued. Management confirms the actual compatible input and the financial treatment under its granted authority.
Existing feed and vaccination commands post operational effects directly. The technical audit identified that calling those commands and then separately marking a task approved would leave an unsafe boundary between the two operations. The proposed extension instead joins the native posting and approval outcome in one database transaction.
If a required stock or financial write fails, the transaction should roll back while preserving the original durable report for reconciliation. A retry must not post consumption twice. The design calls for stable command identities, revision checks and current authority validation before returning a previous result.
I also kept physical reporting separate from corrections: an accounting reversal should not automatically instruct a worker to repeat a treatment that may already have been administered.
Reuse the domain, not every workflow
The existing farmer application already has native scheduling, feeding, vaccination, FIFO inventory usage and correction logic. A source audit identified which pieces can be adapted and which require a narrow new capability, such as durable reports and authorised review.
I chose a delegation and reconciliation layer rather than a parallel task scheduler or accounting ledger. Inventory custody, staff purchasing, a general-purpose workflow engine and surveillance features are outside this MVP. The staff experience can remain small while the backend preserves existing farm rules.
Reuse still requires care: the existing owner and legacy membership access paths cannot simply be repurposed as Crew permissions. Similarly, delayed approval introduces execution-time versus posting-time questions. Those contracts need to be settled and tested before the affected feature is released.
Two applications, one authority
The delivery design deliberately separates the farmer and Crew applications while preserving a single authoritative backend and independent release gates.
The repository's multi-application delivery policy defines contract-first vertical slices, bounded shared Flutter reuse and a convergent integration history. Workstreams can proceed independently once their shared contract is stable, but affected cross-client compatibility must be validated before promotion.
One concrete example is baseline reconciliation. The planning audit found differences between the accepted farmer application source and the staging backend. Rather than replace one with the other, the plan preserves the accepted mobile experience and validated backend changes, with compatibility checks before shared integration. An isolated Crew shell can progress without claiming that the combined system is ready.
I use Codex to assist source investigation, design documentation and implementation work. My focus is to establish requirements, question alternatives, review boundaries and define acceptance evidence. The workflow distinguishes a documented design, a tested implementation and an authorised release.
Where the project stands
The December 4, 2026 planning checkpoint records ten product pillars and seven technical closeouts. An independent Flutter foundation is in an open development pull request. Its sign-in is explicitly a placeholder, not a working workforce authentication flow.
Integration compatibility, permission enforcement, atomic posting, retry behaviour, offline evidence recovery and physical Android acceptance remain implementation and validation gates. The documented design does not establish that these behaviours work in a released Crew application.
This case study presents architecture and delivery decisions, not completed workforce functionality or production performance claims.
Related work: PoultryPoint engineering →