{"_license":"Copyright © Albert Lane. All Rights Reserved. Albert Lane Proprietary Software License. https://albertlane.net","schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://aros.albertlane.net/os/api/proc/schema","title":"AROS Procurement Portal™ — ProcurementRequest (#DontMessWithX)","description":"Smart-contract-style record for one procurement request. Stored in D1 (aros-os-db) and linked into an append-only SHA-256 ledger. Not deployed to any blockchain; no payment is made by this record. Field names follow ISO 20022 pain.001 (EndToEndId, InstdAmt, Ccy, Cdtr, Dbtr) and ERC-3643 identity concepts (onchainID, identityRegistry) where natural, as names only.","type":"object","required":["id","county_fips","catalog_item_id","quantity","requested_by","created_at","ledger"],"properties":{"id":{"type":"string","description":"pr_<24 hex>; also used as ISO 20022 EndToEndId"},"county_fips":{"type":"string","pattern":"^[0-9]{5}$","description":"US Census county GEOID (state FIPS + county FIPS)"},"catalog_item_id":{"type":"string","description":"ci_<24 hex>, row in proc_catalog_items"},"quantity":{"type":"number","exclusiveMinimum":0},"unit":{"type":"string"},"note":{"type":"string","maxLength":1000},"requested_by":{"type":"string","description":"AR^OS account id (passkey-authenticated). Stands in for ERC-3643 onchainID; no wallet address is stored."},"Dbtr":{"type":"string","description":"ISO 20022 debtor name (the account display name)"},"Cdtr":{"type":["string","null"],"description":"ISO 20022 creditor (supplier name from the catalog item, if any)"},"InstdAmt":{"type":["string","null"],"description":"ISO 20022 instructed amount, only if a real quote was entered; otherwise null"},"Ccy":{"type":["string","null"],"pattern":"^[A-Z]{3}$"},"status":{"enum":["REQUESTED","QUOTED","APPROVED","CANCELLED"],"description":"No PAID state: this portal never moves money"},"created_at":{"type":"integer","description":"Unix ms"},"ledger":{"type":"object","required":["seq","entry_hash","prev_hash","payload_sha256"],"properties":{"seq":{"type":"integer"},"entry_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"prev_hash":{"type":"string","pattern":"^[0-9a-f]{64}$"},"payload_sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"audit_entry_hash":{"type":"string","description":"Matching entry in the AR^OS audit chain"}}}},"$defs":{"County":{"type":"object","properties":{"fips":{"type":"string","pattern":"^[0-9]{5}$"},"state_fips":{"type":"string"},"name":{"type":"string"},"centlat":{"type":"number"},"centlon":{"type":"number"},"aland_m2":{"type":"integer"},"source":{"const":"census-tigerweb"}}},"CatalogItem":{"type":"object","required":["id","name","category"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"category":{"enum":["SEED","FERTILIZER","SOIL_AMENDMENT","CROP_PROTECTION","IRRIGATION","MACHINERY","FUEL_ENERGY","INFRASTRUCTURE","COMPUTE_NODE","OTHER"]},"crop_tags":{"type":"array","items":{"type":"string"},"description":"CDL crop names this item serves; used to match a county's real crop acreage"},"unit":{"type":"string"},"supplier_name":{"type":"string"},"supplier_url":{"type":"string","format":"uri"},"county_fips":{"type":["string","null"]},"price_amount":{"type":["string","null"],"description":"Only from a real quote"},"price_ccy":{"type":["string","null"]},"source_note":{"type":"string","description":"Where the item/price came from"}}}},"x-license":"Copyright © Albert Lane. All Rights Reserved. Albert Lane Proprietary Software License. https://albertlane.net","x-hashtag":"#DontMessWithX","x-artifact":{"url":"https://albertlane.net/research/docs/aros-procurement-portal-megaprompt-gemini.pdf","sha256":"2874243da16156df29e1fb7312dfa06f2530b1650423b50d4f3c0f9547c44821"}}}