It’s Got What Content Craves: Sanity, Built for the People of Idiocracy
Description and use
A fully automated Sanity workflow where an AI agent drafts proposals, a human Cabinet approves via a picture‑button interface, and a runtime waters and harvests fields, achieving 100% correct timed edits.
Problem
Enable non‑technical users (the Cabinet) to approve or reject agricultural plans via a simple picture‑button interface while an AI agent drafts proposals and a runtime executes approved actions.
Outcome
The workflow automates proposal drafting, approval, and field actions, achieving 100% correct timed edits across three interfaces.
Workflow
- Define a single schema used by two Studio workspaces (Kiosk and Stock).
- Create a Sanity Workflow definition (joes‑plan) with stages: submit → cabinet → watering → growing → harvest (or reject → dust‑bowl).
- Deploy the workflow with role conditions read from environment variables, assigning administrator to Cabinet and editor to agent.
- Agent submits proposal; Cabinet approves in Kiosk; runtime watches for harvestAt and executes watering and harvesting via Sanity Functions.
- Track votes on brawndo.gov using GROQ count queries; enforce one vote per citizen per field by ID design.
- Measure execution time of each step in three interfaces (Studio, Cabinet Room, runtime) using a stopwatch.
- Verify all edits are correct (27 of 27 timed edits).
Evidence
agent → Cabinet → watering → harvest on the live project; 27 of 27 timed edits correct
The Kiosk is hosted at brawndo-agriculture.sanity.studio and signs in through the Sanity Dashboard.
The agent submits, the Cabinet approves in the Kiosk, and the runtime waters and harvests.
- Record date: 2026-09-21T20:45:41.371Z