Skip to content
1 viewer
View

Farm reference

4 pages, 18 routes, 19 connections and 0 CLI commands, generated from the declarations of Farm without reading storage or running anything.

AboutCode

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

Declared views
PageView idRoleRouteOrderParentEntityNavigation
New farmfarm.editoreditor/view/farm/create0farm.indexFarmhidden
Edit farmfarm.editoreditor/view/farm/{farm}/edit0farm.indexFarmhidden
Overviewfarm.homehome/view/farm0in navigation
Farmfarm.itemdetail/view/farm/{farm}0farm.indexFarmhidden
Plotfarm.plot.itemdetail/view/farm/{farm}/plot/{plot}0farm.indexFarmPlothidden
Dashboardfarm.dashboarddashboard/view/farm/dashboard10in navigation
Listfarm.indexlist/view/farm/list20Farmin navigation
Cropsfarm.crop.indexlist/view/farm/crops30CropSpecin navigation
8 rows

Connections · 19

Farm.CropList

List the open crop catalog (stages, seasons, yield defaults).

Calls and output
  • 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.

Farm.CropUpsert input
FieldTypeRequiredDescriptionAllowed
namerequired
stagesoptional
seasonsoptional
food_idoptional
4 rows
Calls and output
  • 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).

Farm.Get input
FieldTypeRequiredDescriptionAllowed
farmrequired
1 row
Calls and output
  • 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).

Farm.Harvest input
FieldTypeRequiredDescriptionAllowed
planting_idrequired
amountoptional
unitoptional
destinationoptional
4 rows
Calls and output
  • Output keyfarm.result
  • Classificationreal
  • POST /farm/harvestHTTP route

Farm.HerdList

List herds, optionally filtered by farm.

Farm.HerdList input
FieldTypeRequiredDescriptionAllowed
farmoptional
1 row
Calls and output
  • 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.

Farm.HerdUpsert input
FieldTypeRequiredDescriptionAllowed
farmrequired
namerequired
slugoptional
speciesoptional
head_countoptional
food_idoptional
plotoptional
penoptional
notesoptional
9 rows
Calls and output
  • Output keyfarm.result
  • Classificationreal
  • POST /farm/herdHTTP route

Farm.List

List farms.

Farm.List input
FieldTypeRequiredDescriptionAllowed
collectionoptional
limitoptional
2 rows
Calls and output
  • 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.

Farm.LotOffer input
FieldTypeRequiredDescriptionAllowed
lot_idrequired
price_cre8required
gramsoptional
quantity_kgoptional
listed_at_msoptional
5 rows
Calls and output
  • 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.

Farm.Plant input
FieldTypeRequiredDescriptionAllowed
farmrequired
croprequired
plotoptional
quantityoptional
planted_at_msoptional
5 rows
Calls and output
  • Output keyfarm.result
  • Classificationreal
  • POST /farm/plantHTTP route

Farm.PlantingList

List plantings with the current lifecycle stage computed from elapsed time.

Farm.PlantingList input
FieldTypeRequiredDescriptionAllowed
farmoptional
statusoptional
2 rows
Calls and output
  • Output keyfarm.result
  • Classificationroute_handler
  • GET /farm/plantingsHTTP route

Farm.PlotList

List plots, optionally filtered by farm.

Farm.PlotList input
FieldTypeRequiredDescriptionAllowed
farmoptional
1 row
Calls and output
  • Output keyfarm.result
  • Classificationroute_handler
  • GET /farm/plotsHTTP route

Farm.PlotUpsert

Create or update a plot (growing area) inside a farm.

Farm.PlotUpsert input
FieldTypeRequiredDescriptionAllowed
farmrequired
namerequired
area_m2optional
soiloptional
4 rows
Calls and output
  • 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.

Farm.ProposeBallot input
FieldTypeRequiredDescriptionAllowed
regionoptional
cropsoptional
titleoptional
3 rows
Calls and output
  • Output keyfarm.result
  • Classificationreal
  • POST /farm/ballotHTTP route

Farm.Status

Farm subsystem status (farm / plot / crop / planting / harvest counts).

Calls and output
  • 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.

Farm.Upsert input
FieldTypeRequiredDescriptionAllowed
namerequired
slugoptional
kindoptional
descriptionoptional
location_labeloptional
latoptional
lngoptional
geohashoptional
area_m2optional
tagsoptional
metadataoptional
11 rows
Calls and output
  • 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}).

Farm.ViewPatch input
FieldTypeRequiredDescriptionAllowed
farmoptional
1 row
Calls and output
  • 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.

Farm.VirtualSync input
FieldTypeRequiredDescriptionAllowed
farmoptional
1 row
Calls and output
  • 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.

Farm.WorldYield input
FieldTypeRequiredDescriptionAllowed
planting_idrequired
cyclerequired
kgrequired
planted_at_msoptional
farmoptional
plotoptional
cropoptional
area_m2optional
yield_factoroptional
thermal_factoroptional
water_factoroptional
frost_daysoptional
grown_daysoptional
world_dayoptional
world_time_soptional
harvested_byoptional
event_kindoptional
launch_idoptional
sceneoptional
timestamp_msoptional
20 rows
Calls and output
  • 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.

Farm.Yield input
FieldTypeRequiredDescriptionAllowed
farmrequired
herdoptional
yield_kindoptional
amountoptional
unitoptional
quantity_kgoptional
headsoptional
food_idoptional
yielded_at_msoptional
catch_areaoptional
certificationsoptional
11 rows
Calls and output
  • Output keyfarm.result
  • Classificationreal
  • POST /farm/yieldHTTP route

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerFarm
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • cre8/food
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Hyperdb

Structure review · 1

Warnings · 1