Pomona Project Status¶
Living record of completed work. Update when a phase completes — see checklist in PHASES.md.
Phase progress (summary)¶
Platform v0.1.0-alpha.1, 11 phases (Phase 0 to Phase 10). Phases 0 and 1 are done; phases 2, 3, 4, 5, 6, 7, 9 and 10 are partial (some pieces exist, which does not mean the phase is being worked on now); Phase 8 is still planned. Primary focus: Phase 2. The one full phase table is PHASES.md; this file does not copy it.
Agents: read PHASES.md before starting work.
Local checkpoint (2026-11-07), software only, from the git log since 2026-09-27. No phase completed; no hardware bench test, field data or model release claimed.
- Sensor checks on real logs. Real sensor logs are replayed (
make real-replay) to tune the step, freeze, noise and drift checks; a failed check vetoes the reading before the crop rules and raises asensor_checkcard. A noisy EC check covers streams sampled every 90 s or faster. Slow drift of air, humidity and moisture is caught while it lasts when the zone has a second probe for the field (the pair check). A probe alone in its zone, and substrate temperature, are still missed; the game has one probe per zone, so its Drift trick is still scored missed (see SENSOR_TEMPORAL_CHECKS.md). - Fake greenhouse. A simulator with injected sensor faults and real-world
events, a truth log and a scorer (
make fake-greenhouse-score), and the public Try to fool Pomona game built on the same alert path. - Core and safety. Required sample times, dead-clock and future-time rejection, farm time zone display; partial packets accepted, with a missing probe shown as "can't confirm"; MQTT broker login required by default; actuator command gate denies unknown action types by default; prompt-injection tests through sender text; numbers in model-written advisor text are checked.
- Alerts and automation. Alerts raise after a risk persists and clear after it stays away; heat and cold stress cards; outcomes confirmed from later readings after an approval. Still suggestion-only; nothing is actuated.
- Hardware (not bench-tested). ESP32 logger firmware (pH median reads, pH calibration check, optional Wi-Fi upload of the SD log) and 3D-print designs for sensor stations, mounts and a probe lid. The firmware has not run on a board yet.
- Multi-device zones, slice 1. Each device of a multi-device zone is judged on
its own (commit 8c23e0c, merged 9c90800; design in
design/multi-device-zones.md): the router keeps a
separate history per device and expects only the fields that device reported, so an
offset between two probes no longer looks like noise and a device no longer raises a
missing_*alert that never clears. One-device zones are unchanged. Dashboard zone views, the simulator, the scorer and the game are not multi-device yet (later slices). - Models. Tomato v0.1.7 was found to have learned a training-template shortcut (see TOMATO_RISK_REASONER.md); the nutrient adapter's published scores are on synthetic cases (see NUTRIENT_PH_EC_REASONER.md). The rules decide in both routes.
Unit suite (make test-local, 2026-11-07): 14 passed + 1 skipped (datasets), 541 (core, dashboard, safety-checker, digital-twin), 80 (simulators), 50 (scripts), 440 passed + 12 expected failures (model-router; known holes), 145 (automation-engine).
Local checkpoint (2026-09-25): removed unsupported root-moisture proxy, added offline twin-versus-persistence replay, persisted advice-card evidence and an offline exact-source retrieval prototype. Unit suite: 198 passed, 1 skipped; local integration passed. No field calibration, full RAG, model release or phase completion claimed. See twin, cards and retrieval experiment.
Local checkpoint (2026-09-27): first real-hardware step prepared: a two-zone watercress pilot with SD-card logger firmware (not yet bench-tested), a CSV importer into Core observations, and plant-log templates. Monitoring only; no watercress reasoner or actuator path. Unit suite: 203 passed, 1 skipped.
Local checkpoint (2026-09-16): validation, MQTT reliability, suggestion expiry and evaluation hygiene are implemented and unit-tested. See reliability hardening for limits and outstanding checks. This checkpoint does not complete a phase or approve a model release.
Phase 0 — Positioning and repo setup ✅¶
Goal: Make the project understandable in 60 seconds.
0a. Monorepo reorganization (2026-06-24)¶
| Action | Result |
|---|---|
Created services/ |
Platform services |
Moved planning markdown → docs/ |
ROADMAP, plans, standards |
| Note | Later split-first: ML code → pomona-agronomist-llm repo |
0c. Multi-repo split (2026-06-24)¶
| Action | Result |
|---|---|
| Extracted ML training | ../pomona-agronomist-llm/ (sibling Git repo) |
| Platform keeps | models/registry/*.yaml metadata only |
| Script | scripts/split/extract-ml-repo.sh |
| Docs | docs/REPOS.md — full repo catalog |
0b. Phase 0 completion (2026-06-24)¶
| Deliverable | Status |
|---|---|
| Monorepo structure | ✅ |
| README | ✅ |
docs/architecture.md |
✅ |
docs/ROADMAP.md |
✅ |
docs/CURSOR_RULES.md |
✅ |
| Daily log and model-card to-do | Maintainer-only notes, kept locally and not published in this repository |
LICENSE (Apache-2.0) |
✅ |
Root .gitignore |
✅ |
| This status file | ✅ |
| GitHub remote | ⏳ User action — see docs/GITHUB.md |
Success condition (intended): a visitor can read README + architecture and understand Pomona. Not tested with outside readers.
Phase 1 — Local MVP skeleton ✅¶
Goal: Run the first local system; simulated greenhouse data visible in logs/API.
| Deliverable | Status | Location |
|---|---|---|
docker-compose.yml |
✅ | Root |
| Mosquitto MQTT broker | ✅ | infra/mosquitto/ |
FastAPI pomona-core |
✅ | services/core/ |
/health endpoint |
✅ | GET /health |
/v1/sensors/events |
✅ | POST /v1/sensors/events |
| MQTT ingest | ✅ | Subscribes to pomona/+/+/sensor/+/state |
| In-memory sensor store | ✅ | Last 500 events |
| Sensor simulator | ✅ | examples/simulators/greenhouse_tomato.py |
.env.example |
✅ | Root |
Makefile |
✅ | Root |
Success condition: docker compose up -d + simulator → readings in core logs and GET /v1/sensors/events.
Not in Phase 1 (deferred): - PostgreSQL / SQLite persistence → Phase 2 / Week 2 Day 8 - Dashboard → Phase 2 - Reasoner, safety, automation → Phases 3–6
Phase 1b — GitHub-safe repo + Hugging Face integration ✅¶
Goal: Publish-ready repo; plug-and-play Docker/pip; link HF agronomist model.
| Deliverable | Status | Location |
|---|---|---|
Strict .gitignore / .dockerignore |
✅ | Root — excludes assets, checkpoints, weights, secrets |
docs/GITHUB.md |
✅ | Publish checklist + HF token setup |
pomona-model.yaml |
✅ | models/registry/agronomist-gemma4.yaml |
| Model-router service | ✅ | services/model-router/ — /v1/advisor/explain |
| HF model linked | ✅ | Okyanus/ai-pomona-agronomist-gemma4 |
pyproject.toml + scripts/setup.sh |
✅ | Pip install path |
| GitHub Actions CI | ✅ | .github/workflows/ci.yml |
| Ollama compose profile | ✅ | docker compose --profile ollama |
Backends: stub (default), ollama, huggingface (local GPU via deploy/app.py)
Small Reasoner Checkpoint ⏳ Local integration next¶
Goal: Use narrow specialist models with deterministic safety guardrails inside the Pomona platform.
| Reasoner | Status | Decision |
|---|---|---|
Tomato risk v0.1.7 |
Published on Hugging Face, experimental | Research only; learned a training shortcut (2026-11-07); deterministic tomato rules decide |
Water/irrigation v0.1.8 |
Published release candidate | Advisory; deterministic validation and human review required |
Sensor quality v0.1.1-boundary |
Local candidate, not published | Training paused; best label F1 0.684 on a 123-case holdout; rules do the work |
Safety triage v0.1 |
Local candidate, failed its publish gate; not published | Local tests only; rules do the work |
Actuator command gate v0.1 |
Published research preview | Below standalone gate; deterministic checker is final authority |
Actuator command gate v0.1.1-hardcases |
Local regression | Do not use |
Actuator command gate v0.1.2-correction |
Independent-eval regression | Do not use |
Published Hugging Face assets (checked 2026-09-27):
model: Okyanus/pomona-tomato-risk-reasoner-v0.1.7-lora
model: Okyanus/pomona-tomato-risk-reasoner-v0.1.7-GGUF (research preview, 2026-09-27)
model: Okyanus/pomona-tomato-risk-reasoner-v0.1.7-MLX (research preview, 2026-09-27)
model: Okyanus/pomona-water-irrigation-risk-reasoner-v0.1.8-lora
model: Okyanus/pomona-water-irrigation-risk-reasoner-v0.1.8-GGUF
model: Okyanus/pomona-water-irrigation-risk-reasoner-v0.1.8-MLX
model: Okyanus/pomona-nutrient-ph-ec-reasoner-v0.1.1-lora
model: Okyanus/pomona-nutrient-ph-ec-reasoner-v0.1.1-GGUF
model: Okyanus/pomona-nutrient-ph-ec-reasoner-v0.1.1-MLX
model: Okyanus/pomona-actuator-command-gate-reasoner-v0.1-lora
model: Okyanus/ai-pomona-agronomist-gemma4
dataset: Okyanus/greenhouse-sensor-data
space: Okyanus/pomona-greenhouse-demo
Sensor-quality and safety-triage adapters remain unpublished. Sensor-quality
training is paused (2026-09-27): two controlled retrains failed the holdout gate
on exact time/threshold checks that the deterministic rules already perform; see
models/registry/sensor-quality-reasoner-v0.1.yaml.
Endpoint status:
services/model-router:
done: POST /v1/reasoners/sensor-quality
done: POST /v1/reasoners/tomato-risk (rules + guarded/model-only local Ollama GGUF)
done: POST /v1/reasoners/water-irrigation-risk (guarded local runtime supported)
done: POST /v1/reasoners/nutrient-ph-ec (schema and semantic validation + guarded local Ollama runtime)
done: POST /v1/reasoners/safety-triage (deterministic fallback; model runtime pending)
next: improve tomato model-only quality and wire the remaining specialist runtimes
services/safety-checker:
keep as deterministic final authority: POST /v1/actuator-command-gate/check
Future models after platform integration:
No model weights are committed to GitHub. Local adapters stay under private/ and publishable weights belong on Hugging Face.
Phase 2 — Dashboard ⏳ In progress¶
Local zone-monitoring checkpoint (2026-09-05)¶
Farm/zone URL selection, device last-seen/quality panel, scoped 100-record history pages and CSV downloads are implemented locally. Scope follows the guarded views and suggestion evaluation; cross-zone review requests are rejected when scoped. Legacy unscoped audit summaries are hidden rather than mislabeled. Partial sensor observations remain monitoring-only, with no state fusion or actuator execution. Regression tests cover scope forwarding, history parameters, cross-zone suggestion filtering, escaped rendering, and outage recovery. Simulator soak and physical sensor trials are still pending.
Goal: Web UI + SQLite persistence.
See private/planning/ROADMAP.full.md for deliverables (maintainer-only, local; not in the repository).
Current local checkpoint (2026-07-21)¶
| Deliverable | Status | Verification |
|---|---|---|
| SQLite sensor-event persistence | ✅ local | restart recovery in make local-check |
| Read-only dashboard | ✅ local | HTML and API assertions pass |
| Guarded pipeline view | ✅ local | high-risk and routine scenarios pass |
| Summary-only audit view | ✅ local | payload redaction test passes |
| Backup and restore scripts | ✅ local | SQLite online-backup round-trip passes |
| Docker Compose deployment smoke test | ✅ local | all six services healthy; benchmark assertions pass |
| Optional sensor-ingestion API-key auth (2026-08-25) | ✅ local | Authorization: Bearer <API_KEY> required on POST /v1/sensors/events only when API_KEY is set; verified 401/201 against the live Docker stack; default (unset) behavior unchanged |
The local Docker, MQTT simulation, backup/recovery, and pre-hardware safety checks are complete. This is still not a production or hardware validation result; real device testing remains a separate milestone. Authentication exists only on core's ingestion endpoint so far — model-router, safety-checker, digital-twin, and dashboard remain unauthenticated.
Phase 6 — Automation engine ⏳ Partial¶
Goal: Move from recommendation to human-approved suggestion, never autonomous action.
Current checkpoint (2026-08-29)¶
| Deliverable | Status | Verification |
|---|---|---|
YAML automation rule format (services/automation-engine/app/rules.yaml) |
✅ | validated at startup; rejects forbidden actions and duplicate IDs |
POST /v1/automation/evaluate |
✅ | verified against a live Docker container |
| Manual approve/reject workflow | ✅ | verified live: evaluate -> approve -> pending count drops |
| Rules: high humidity/fungal fan suggestion, high/low EC alert, pH out-of-range alert, water-level check | ✅ | all 5 covered by tests |
| Public deployment (automation-engine-fawn.vercel.app) | ✅ | live on Vercel, documentation-style landing page at / |
| Dashboard integration (evaluate, list, approve/reject) | ✅ local | proxy and JavaScript regression tests |
| SQLite suggestion history (2026-09-05 local checkpoint) | ✅ local | reopen recovery, retention, first-decision-wins tests; named Compose volume |
| Request feedback and reviewer labels | ✅ local | busy buttons, visible failures; reviewer labels are self-reported, not verified |
Local Compose stores suggestions and decisions in SQLite. Host/pip users
enable persistence with AUTOMATION_DB_PATH; without it, storage remains
ephemeral (including the existing serverless demo). The latest 200 completed
decisions are retained by default; pending suggestions are not pruned and can
grow until reviewed. This is not an unlimited
audit archive. These local changes do not update public deployments until
explicitly published. There is no execution path from an
approved suggestion to any actuator or hardware — approval only records a
decision. load_rules refuses to start if any rule's action matches
Pomona's forbidden actuator/chemical vocabulary, so a rules-file edit alone
cannot make this service unsafe.
Phase 7 — Public browser demo ⏳ Partial¶
Goal: Let people try Pomona from a browser without cloning or running Docker.
Current checkpoint (2026-08-22)¶
| Deliverable | Status | Verification |
|---|---|---|
| Static guarded demo (Space) | ✅ live | 4 preset scenarios (the broken-pH preset was added 2026-10-24, after this checkpoint date). The page's rules are checked against the platform's own deterministic logic by parity tests on generated cases, not preset by preset |
Linked from HF Collection, README, model catalog, llms.txt |
✅ | — |
| Mobile layout | ✅ | verified at 375×812; single-column, no overflow, readable |
| Accessibility labels | ✅ | all form inputs now have label for= associations; preset group has role="group" |
| Full platform playground (dashboard + all reasoners, not just tomato) | ⬜ | not started |
The demo runs a client-side JavaScript port of the exact deterministic tomato
rules in services/model-router/app/tomato_reasoner.py, kept free by using a
static Hugging Face Space (Gradio/Docker Spaces require a paid tier). It will
be extended to call the live model-router API once a public backend exists.
When a phase completes — update checklist¶
- PHASES.md — status table + completed count (the only full phase table)
- PROJECT_STATUS.md — deliverables section (this file) and the short summary at the top
- ROADMAP.md and README.md — check their one-sentence status summaries still match
private/DAILY_LOG.md— optional (maintainer-only, local; not in the repository)
Quick reference for agents¶
Current focus (2026-11-07): sensor-check coverage on real logs, fake-greenhouse scoring and hardware bench testing; Phase 2 hardening continues.
Do not: - Let the LLM directly control actuators - Build Kubernetes or multi-cloud infra - Expand beyond tomato greenhouse for v0.1
Always:
- Read AGENTS.md and docs/CURSOR_RULES.md before coding
- Add /health to every new service
- Return JSON from every API endpoint
- Update PHASES.md and PROJECT_STATUS.md when a phase completes, then check the short summaries in ROADMAP.md and README.md
- Owner notes go in private/ (gitignored; maintainer-only, not in the repository)