By Albert Lane (@AlbertLane_net) · Nov 9, 2026 · Live app: aros.albertlane.net/os/procurement · Source MegaPrompt: PDF (sha256 2874243da16156df29e1fb7312dfa06f2530b1650423b50d4f3c0f9547c44821)
This page describes what is actually built and running. Nothing is simulated: every number in the portal comes from a keyless public source fetched live, or from a row a signed-in person entered. Anything that needs an account or key is listed as Not connected yet. The portal never moves money, never signs or broadcasts anything on a public blockchain, and stores no wallet address.
Paste into any Mermaid renderer (e.g. GitHub Markdown or mermaid.live) to draw it.
%% Copyright © Albert Lane. All Rights Reserved. Albert Lane Proprietary Software License. https://albertlane.net
%% AROS Procurement Portal™ #DontMessWithX — as built (t1196, Nov 9 2026)
flowchart TB
subgraph PUB["Keyless public data - live"]
TIGER["US Census TIGERweb<br/>county boundaries + FIPS"]
CDL["USDA NASS CropScape<br/>Cropland Data Layer acreage"]
GIBS["NASA GIBS tiles<br/>MODIS/VIIRS true color, NDVI, Landsat"]
end
subgraph NOTYET["Not connected yet - needs account or key"]
PLANET["Planet"]
SKYFI["SkyFi"]
SHUB["Sentinel Hub NDVI stats"]
QS["NASS Quick Stats yields"]
IPFS["IPFS pinning"]
end
subgraph EDGE["Cloudflare Worker albertlane-aros-desktop"]
API["/os/api/proc/* endpoints"]
ECACHE["Edge cache"]
TILE["Tile proxy /os/api/proc/tile"]
end
subgraph DB["D1 aros-os-db"]
CNT[("proc_counties")]
CROP[("proc_crop_stats")]
CAT[("proc_catalog_items")]
REQ[("proc_requests")]
LED[("proc_ledger<br/>append-only SHA-256 chain")]
AUD[("audit<br/>AR^OS hash chain")]
end
subgraph UI["AROS Procurement Portal - /os/procurement"]
NAV["State to County picker"]
MAP["Satellite map + county outline"]
CATV["Crop-matched catalog"]
FORM["Request form"]
end
PASS["Passkey sign-in<br/>WebAuthn Face ID / fingerprint"]
TIGER --> API
CDL --> API
GIBS --> TILE
API <--> ECACHE
API --> CNT
API --> CROP
NAV --> API
TILE --> MAP
CROP --> CATV
CAT --> CATV
PASS --> FORM
FORM -->|"signed-in POST"| API
API --> REQ
API --> LED
LED --> AUD
NOTYET -.->|"not wired"| API
| Method | Path (on aros.albertlane.net) | What it does | Access |
|---|---|---|---|
GET | /os/api/proc/status | Sources (connected / not connected), counts, ledger check | public |
GET | /os/api/proc/states | States + FIPS from TIGERweb | public |
GET | /os/api/proc/counties?state=NN | Counties of a state (GEOID, name, centroid, land area); cached into proc_counties | public |
GET | /os/api/proc/county/{fips} | County boundary (GeoJSON) and facts | public |
GET | /os/api/proc/county/{fips}/crops[?year=YYYY] | USDA CDL crop acreage; cached into proc_crop_stats | public |
GET | /os/api/proc/layers | Satellite layers | public |
GET | /os/api/proc/tile/{layer}/{z}/{x}/{y}[?date=YYYY-MM-DD] | NASA GIBS tile proxy | public |
GET | /os/api/proc/catalog[?fips=NNNNN] | Catalog, ranked by match to the county's real crops | public |
POST | /os/api/proc/catalog | Add a real catalog item (ledger + audit entry) | passkey: owner/engineer |
POST | /os/api/proc/requests | Record a procurement request (ledger + audit entry) | passkey: owner/engineer |
GET | /os/api/proc/requests | List requests | passkey: any role (own) / owner+auditor (all) |
GET | /os/api/proc/ledger | Ledger hashes + chain verification (no names or notes) | public |
GET | /os/api/proc/schema | JSON Schema of the procurement record | public |
JSON Schema for one procurement record (also live at /os/api/proc/schema). Field names follow ISO 20022 (EndToEndId, InstdAmt, Ccy, Dbtr, Cdtr) and ERC-3643 identity ideas where natural, as names only: the purchaser is an AR^OS passkey account, not a wallet address.
{
"$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"
}
}
-- Copyright © Albert Lane. All Rights Reserved.
-- Proprietary and Confidential — Albert Lane Proprietary Software License.
-- Unauthorized use, copying, modification, or distribution is prohibited.
-- License inquiries: https://albertlane.net
-- t1196: AROS Procurement Portal™ (#DontMessWithX) + AROS Files content hashes. Additive only (CREATE ... IF NOT EXISTS). No deletes allowed (triggers).
CREATE TABLE IF NOT EXISTS proc_counties (fips TEXT PRIMARY KEY CHECK (length(fips) = 5), state_fips TEXT NOT NULL, name TEXT NOT NULL, centlat REAL, centlon REAL, aland_m2 INTEGER, source TEXT NOT NULL, fetched_at INTEGER NOT NULL);
CREATE TABLE IF NOT EXISTS proc_crop_stats (fips TEXT NOT NULL, year INTEGER NOT NULL, cdl_code INTEGER NOT NULL, category TEXT NOT NULL, acres REAL NOT NULL, source_url TEXT NOT NULL, fetched_at INTEGER NOT NULL, PRIMARY KEY (fips, year, cdl_code));
CREATE TABLE IF NOT EXISTS proc_catalog_items (id TEXT PRIMARY KEY, name TEXT NOT NULL, category TEXT NOT NULL, crop_tags TEXT NOT NULL DEFAULT '[]', unit TEXT, supplier_name TEXT, supplier_url TEXT, county_fips TEXT, price_amount TEXT, price_ccy TEXT, source_note TEXT, created_by TEXT NOT NULL, created_at INTEGER NOT NULL, ledger_seq INTEGER, ledger_hash TEXT);
CREATE TABLE IF NOT EXISTS proc_requests (id TEXT PRIMARY KEY, county_fips TEXT NOT NULL, catalog_item_id TEXT NOT NULL REFERENCES proc_catalog_items(id), quantity REAL NOT NULL CHECK (quantity > 0), unit TEXT, note TEXT, requested_by TEXT NOT NULL, dbtr TEXT, cdtr TEXT, instd_amt TEXT, ccy TEXT, status TEXT NOT NULL DEFAULT 'REQUESTED' CHECK (status IN ('REQUESTED','QUOTED','APPROVED','CANCELLED')), created_at INTEGER NOT NULL, ledger_seq INTEGER NOT NULL, ledger_hash TEXT NOT NULL, payload_sha256 TEXT NOT NULL, audit_hash TEXT);
CREATE INDEX IF NOT EXISTS proc_requests_county ON proc_requests(county_fips, created_at);
CREATE TABLE IF NOT EXISTS proc_ledger (seq INTEGER PRIMARY KEY AUTOINCREMENT, ts TEXT NOT NULL, kind TEXT NOT NULL, ref_id TEXT NOT NULL, county_fips TEXT, payload_sha256 TEXT NOT NULL, prev_hash TEXT NOT NULL UNIQUE, entry_hash TEXT NOT NULL UNIQUE);
CREATE TRIGGER IF NOT EXISTS proc_ledger_no_update BEFORE UPDATE ON proc_ledger BEGIN SELECT RAISE(ABORT, 'proc_ledger is append-only'); END;
CREATE TRIGGER IF NOT EXISTS proc_ledger_no_delete BEFORE DELETE ON proc_ledger BEGIN SELECT RAISE(ABORT, 'proc_ledger is append-only'); END;
CREATE TRIGGER IF NOT EXISTS proc_requests_no_delete BEFORE DELETE ON proc_requests BEGIN SELECT RAISE(ABORT, 'no deletes'); END;
CREATE TRIGGER IF NOT EXISTS proc_catalog_no_delete BEFORE DELETE ON proc_catalog_items BEGIN SELECT RAISE(ABORT, 'no deletes'); END;
CREATE TABLE IF NOT EXISTS sfs_files (path TEXT NOT NULL, sha256 TEXT NOT NULL, size INTEGER NOT NULL, content_type TEXT, saved_at INTEGER NOT NULL, saved_by TEXT, previous_version_key TEXT, PRIMARY KEY (path, saved_at));
CREATE INDEX IF NOT EXISTS sfs_files_sha ON sfs_files(sha256);
CREATE TRIGGER IF NOT EXISTS sfs_files_no_delete BEFORE DELETE ON sfs_files BEGIN SELECT RAISE(ABORT, 'no deletes'); END;
CREATE TRIGGER IF NOT EXISTS sfs_files_no_update BEFORE UPDATE ON sfs_files BEGIN SELECT RAISE(ABORT, 'sfs_files is append-only'); END;
payload_sha256 = sha256(canonical JSON of the record) entry_hash = sha256(prev_hash | ts | kind | ref_id | county_fips | payload_sha256) genesis prev = 0000…0000 (64 zeros); prev_hash is UNIQUE (no forks); UPDATE/DELETE blocked by triggers
© Albert Lane. All Rights Reserved. Albert Lane Proprietary Software License · albertlane.net · #DontMessWithX