Farm reference
4 pages, 18 routes, 19 connections and 0 CLI commands, generated from the declarations of Farm without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Pages · 8
| Page | View id | Role | Route | Order | Parent | Entity | Navigation |
|---|---|---|---|---|---|---|---|
| New farm | farm.editor | editor | /view/farm/create | 0 | farm.index | Farm | hidden |
| Edit farm | farm.editor | editor | /view/farm/{farm}/edit | 0 | farm.index | Farm | hidden |
| Overview | farm.home | home | /view/farm | 0 | in navigation | ||
| Farm | farm.item | detail | /view/farm/{farm} | 0 | farm.index | Farm | hidden |
| Plot | farm.plot.item | detail | /view/farm/{farm}/plot/{plot} | 0 | farm.index | FarmPlot | hidden |
| Dashboard | farm.dashboard | dashboard | /view/farm/dashboard | 10 | in navigation | ||
| List | farm.index | list | /view/farm/list | 20 | Farm | in navigation | |
| Crops | farm.crop.index | list | /view/farm/crops | 30 | CropSpec | in navigation |
Connections · 19
Farm.CropList
List the open crop catalog (stages, seasons, yield defaults).
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/cropsHTTP route
Farm.CropUpsert
Register or update a crop in the open catalog: lifecycle stages (name + days), seasons, yield defaults, and the Food-app id its harvests supply.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required | |||
| stages | optional | |||
| seasons | optional | |||
| food_id | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/cropHTTP route
Farm.Get
Get one farm with its plots and plantings (lifecycle computed inline, each with the world's latest forecast when one was reported), its harvests, and each forecast cycle beside the harvest recorded for it (an unharvested cycle is open, never zero).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | required |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/farmHTTP route
Farm.Harvest
Record yield from a planting (estimated from area × per-m² × growth when no amount is given), mint it into the Manufacture provenance ledger (output keyed on food_id so recipe ingredient lineage resolves), and announce it as supply on the Food map — all best-effort, late-bound, no compile deps on Manufacture or Food. The harvest names a deterministic lot (`lot_id`, `foodlot:{lot_id}`); when the caller may edit the farm the lot is minted to the farm's owner as the ledger asset `cre8/food/{food_id}/{lot_id}` (grams).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| planting_id | required | |||
| amount | optional | |||
| unit | optional | |||
| destination | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/harvestHTTP route
Farm.HerdList
List herds, optionally filtered by farm.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | optional |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/herdsHTTP route
Farm.HerdUpsert
Create or update a herd, flock or stock of animals on a farm (species, head count, the food its yield supplies, the pen or plot). Only a caller who may edit the farm.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | required | |||
| name | required | |||
| slug | optional | |||
| species | optional | |||
| head_count | optional | |||
| food_id | optional | |||
| plot | optional | |||
| pen | optional | |||
| notes | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/herdHTTP route
Farm.List
List farms.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| collection | optional | |||
| limit | optional |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/farmsHTTP route
Farm.LotOffer
List grams of a minted food lot for sale for CRE8. The seller's grams are locked in escrow (a Reserve on the ledger) and the offer is all-or-none: it is filled whole or not at all. Refused when the caller does not own the lot, the lot is not minted, or the grams are not held.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| lot_id | required | |||
| price_cre8 | required | |||
| grams | optional | |||
| quantity_kg | optional | |||
| listed_at_ms | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/lot-offerHTTP route
Farm.Plant
Put a crop in the ground: creates a FarmPlanting whose lifecycle stage is a pure function of elapsed time over the crop's stage spine. Auto-creates a default plot when none is named.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | required | |||
| crop | required | |||
| plot | optional | |||
| quantity | optional | |||
| planted_at_ms | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/plantHTTP route
Farm.PlantingList
List plantings with the current lifecycle stage computed from elapsed time.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | optional | |||
| status | optional |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/plantingsHTTP route
Farm.PlotList
List plots, optionally filtered by farm.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | optional |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/plotsHTTP route
Farm.PlotUpsert
Create or update a plot (growing area) inside a farm.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | required | |||
| name | required | |||
| area_m2 | optional | |||
| soil | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/plotHTTP route
Farm.ProposeBallot
Publish a daily 'what should we grow?' ballot via a late-bound Ballot.Upsert. Each crop option binds to a cre8/farm/{region}/{crop} asset so votes emit Matching positions — belief becomes liquidity for growing that crop.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| region | optional | |||
| crops | optional | |||
| title | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/ballotHTTP route
Farm.Status
Farm subsystem status (farm / plot / crop / planting / harvest counts).
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/statusHTTP route
Farm.Upsert
Create or update a farm site (name, kind, place, area, tags). `kind` is crop_farm (default), orchard, livestock_ranch, dairy, poultry or aquaculture. The verified caller becomes a new farm's owner; only that owner updates it afterwards (a farm with no owner yet is claimed by the first account that edits it). Answers with `farm_id` and the farm page's `href`, and announces the farm as `foodproducer:farm-{slug}` (Food.ProducerUpsert) and as a `food_site` on the Virtual bridge, both best-effort.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| name | required | |||
| slug | optional | |||
| kind | optional | |||
| description | optional | |||
| location_label | optional | |||
| lat | optional | |||
| lng | optional | |||
| geohash | optional | |||
| area_m2 | optional | |||
| tags | optional | |||
| metadata | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/farmHTTP route
Farm.ViewPatch
Live-patch frame for the farm document views: dashboard strip (no params) or one farm's field-status strip (?farm={slug}).
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | optional |
- Output keyfarm.result
- Classificationroute_handler
- GET /farm/document/patchHTTP route
Farm.VirtualSync
Stream farm_growth events (crop, stage, growth 0..1) for growing plantings into the virtual world via a late-bound Virtual.BridgeEmit dispatch.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/virtual-syncHTTP route
Farm.WorldYield
Record the virtual world's simulated harvest of a planting as a FORECAST, keyed by (planting_id, planted_at_ms, cycle): the first report for a key is recorded, a replay is returned as a duplicate. It never creates or changes a harvest, lot, inventory or ledger record, and the planting keeps its status. Fed by the virtual bridge's farm_yield events; no public route.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| planting_id | required | |||
| cycle | required | |||
| kg | required | |||
| planted_at_ms | optional | |||
| farm | optional | |||
| plot | optional | |||
| crop | optional | |||
| area_m2 | optional | |||
| yield_factor | optional | |||
| thermal_factor | optional | |||
| water_factor | optional | |||
| frost_days | optional | |||
| grown_days | optional | |||
| world_day | optional | |||
| world_time_s | optional | |||
| harvested_by | optional | |||
| event_kind | optional | |||
| launch_id | optional | |||
| scene | optional | |||
| timestamp_ms | optional |
- Output keyfarm.result
- Classificationreal
Farm.Yield
Record one taking from a herd: milk, eggs, slaughter, aquaculture harvest or catch. Writes a Manufacture step (food_stage harvest|slaughter|milk|catch, origin_ref `farm:{slug}`, deterministic lot_id, quantity_kg), mints the lot to the farm's owner as `cre8/food/{food_id}/{lot_id}` (grams), and announces the farm as a food producer. Replaying the same yield returns the stored record. A slaughter reduces the herd.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| farm | required | |||
| herd | optional | |||
| yield_kind | optional | |||
| amount | optional | |||
| unit | optional | |||
| quantity_kg | optional | |||
| heads | optional | |||
| food_id | optional | |||
| yielded_at_ms | optional | |||
| catch_area | optional | |||
| certifications | optional |
- Output keyfarm.result
- Classificationreal
- POST /farm/yieldHTTP route
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerFarm
- SQL projectionnone · DDL declarations: 0
- None declared.
- None declared.
- cre8/food
- No model warnings were reported.
Capabilities and dependencies
- Hyperdb