# Garden product: controller and companion contract

Status: /garden provides a browser-local simulator, water-reserve calculator, photo history and backup/restore, public city-level regional evidence, optional built-in Gemini photo reviews, and an explicitly selected private text snapshot for a read-only ChatGPT companion. A monitoring-only adapter endpoint is implemented; actuator interfaces remain conceptual. No physical equipment, connected sensor, background monitor or dosing service has been verified. A public page never grants access to private records. The active Gemini project was verified Free tier with billing not set up on October 19, 2026. Bounded synthetic-image tests validated the review flow, including an authenticated hosted review saved locally; they do not validate real-plant identification or care accuracy. The earlier OpenAI key is preserved and never used as fallback.

## Privacy and identity

The separate product launcher appears beneath Profile. Opening the product grants no companion access. Photos and complete local history stay in this browser profile unless explicitly selected for private account sync. Optional sync is implemented: enable an empty account, stage selected records, consent to upload, preview and explicitly apply selected cloud records. Canonical account/profile generation, scope, epoch, revision and action-bound idempotency protect server records; stale writes and account changes are rejected. No reconnect upload or AI/companion sharing follows from sync. The separate selected-text snapshot is stored only after explicit sharing. Site scripts share the same origin; anyone using this browser profile may see its local records, which are not isolated by website sign-in. Site-data clearing can erase records. Backups contain compressed photos, timestamps, manual photo notes and any saved AI reviews; settings and journal are separate. Earlier Verdant photo backups can be restored manually; the product cannot read another origin's storage. The isolated Apache package's CLOUD-SYNC-ADAPTER document details the native implementation and limits; it supplies no standalone sync backend.

The optional companion snapshot is stored separately on the server under the verified website account, profile generation and explicitly linked Sites/ChatGPT identity. Account IDs supplied by clients are never authority. A verified hosting authentication boundary supplies the Sites identity; the application separately enforces ownership, revision, expiry, revocation and profile generation. Clerk website identity and Sites identity are distinct; no automatic linking by email is performed.

## Built-in photo review

On an explicitly consented request, the selected compressed JPEG, its note and optional manual readings and explicitly checked regional context are sent through the authenticated server to Google Gemini. The server strips JPEG metadata, bounds input/output and saves no photo, note or review. Google’s unpaid-service terms allow product improvement using submitted content and responses, including human review. Only non-sensitive plant content may be submitted. Users must confirm age 18+ and current US presence on each request. Authentication follows the same verified Clerk/Sites account selection policy as Profile, and the availability check includes that account’s profile readiness. Adult age and current US location are mandatory user attestations on every review, not independently verified claims. Public beta access is controlled by an explicit server setting; when off, a dedicated single Garden test account remains available. This does not change site administrator roles or make photos public. The runtime requires a separate free-tier-verification flag; leave it off until the key’s project is confirmed to have billing disabled. Quota errors stop the request without retry, model switching or paid fallback. Free quota and terms can change. Reviews are saved with the photo in browser-local history when storage succeeds. Shared browser profiles share that history.

Server-side account/request/time usage records enforce 3 attempts per account and 20 app-wide per UTC day, with a one-minute account cooldown. Admitted attempts count, including invalid images and provider failures. Records older than seven days are removed on later valid attempts and can remain longer without new attempts. The endpoint accepts no arbitrary image URLs or physical commands. Identity candidates and possible causes remain uncertain; manual readings are unverified context. No dosing or equipment action follows from a review.

## Optional companion: selected text snapshot

The stateless POST /mcp endpoint exposes only garden_get_status, garden_list_observations and garden_get_observation. These tools do not run model inference, fetch photos, write garden observations, access other website content or operate equipment. Sites provides managed MCP sign-in; customers still need access to the Site and its personal plugin, subject to their ChatGPT plan/workspace capabilities. Publishing the endpoint does not prove that a customer has installed or connected that plugin.

On the Garden page, verify the displayed website and ChatGPT accounts, select individual text fields, inspect the exact preview and explicitly confirm the link. Nothing is selected or synchronized by default. At most twelve bounded text records are shared for seven days. Manual, synthetic and AI-generated provenance, timestamps and uncertainty accompany the text. Saved AI results are excerpts when long; no image bytes are included. Public forecast context remains outdoor evidence, never indoor or reservoir measurements.

The server keeps only the explicitly submitted snapshot and grant metadata. Expiry or revocation stops future MCP reads; the text remains privately stored until Delete server snapshot or profile cleanup. Deleting/revoking cannot remove text already copied into a ChatGPT conversation. Replacing a snapshot requires a fresh preview and confirmation; it is not an automatic sync. The page records the latest authorized private MCP observation lookup, and distinguishes sharing from a verified lookup. No authorized lookup means a personal companion connection has not yet been demonstrated.

Verified owner setup path: https://chatgpt.com/plugins/plugin_asdk_app_sites_12b3cda318b8819183381ec91286432b . On October 19, 2026, the installed Seth The Evil plugin’s Try in chat flow performed an actual authenticated personal ChatGPT garden_list_observations lookup of one explicitly selected synthetic text record. The site recorded its authorized private read. No image or other history was included. This verifies that tested owner connection, not availability for every customer or continuous monitoring.

Setup: select and preview text on /garden, verify both accounts, share for seven days, open the plugin link and complete Install/Connect if offered, select Try in chat, and ask garden_list_observations. Return to Garden and Refresh sharing status to check the private-read timestamp. Revoke and request a new lookup to verify denial; delete the server snapshot when finished. Plugin availability depends on the customer’s account/workspace. The managed MCP resource is https://seth-evil-field-labs.clownfidential.chatgpt.site/mcp ; use the Site’s managed plugin rather than inventing a separate OAuth server or exposing credentials.

Implementation reference: https://learn.chatgpt.com/docs/extend/mcp . Managed token authentication is provided by Sites, with additional per-record authorization implemented here; platform token cryptography is not independently tested by this application.

## Regional evidence

City selection uses a local GeoNames cities15000 catalog, with CC BY 4.0 attribution; approximate centroids do not request GPS or a street address. NWS hourly outdoor forecasts are used for US locations, with labeled MET Norway fallback/global coverage, attribution, timestamps, cache expiry, coverage boundaries and retry backoff. No daily rain totals are invented from overlapping forecast intervals. Both cache expiry and coverage end determine freshness. Changing city, setup or freshness clears AI regional selection and consent while keeping manual readings.

NOAA 1991–2020 monthly normals currently cover only the Macon Middle Georgia Regional Airport station and cities within 100 km. Monthly typical highs/lows and precipitation are historical station normals, not extremes, live measurements or a validated equipment operating envelope. Other locations display climate coverage unavailable. On-site air, water and power-loss measurements remain necessary.

## Monitoring-only adapter

GET /api/garden-devices is verified website-account/profile-generation scoped. Registration and revocation require an explicit same-origin authenticated action and a current account binding; the page never creates a device automatically. Up to three active unexpired registrations and thirty total records per profile generation are allowed. Delete old registrations before adding more.

An explicitly created registration returns one random 256-bit ingest-only credential once. The server stores its SHA-256 hash, not the credential. It expires after 90 days and can be revoked. The credential grants telemetry submission only, never account reads, other devices, model calls or equipment controls. Keep it privately in an adapter configuration; never put it into a photo, note, chat, source repository, URL or backup. Losing it requires revocation and a new explicit registration, not recovery of the secret.

POST /api/garden-telemetry accepts only an Authorization Bearer device credential, JSON up to 6,000 bytes, an increasing nonnegative integer seq, canonical UTC measuredAt, and readings. Query credentials and extra fields are rejected. At most one sample per five seconds is admitted per device. Active credential, expiry, current profile generation, sequence and interval are checked atomically. The server supplies authoritative receivedAt and stores only the latest accepted sample. Expiry/revocation stops submissions; retained metadata/sample remain until device deletion or profile cleanup. This is monitoring, not a command queue.

Reading keys: level (low/normal/between/contradictory), sourceEmpty, leak and highCutoff (boolean flags), waterTemp (degrees Celsius), manualPH (unitless), manualEC (mS/cm). Every reported reading includes value, status (valid/invalid/unavailable), provenance (sensor/manual/simulated) and calibration (calibrated/uncalibrated/not-applicable). Missing readings remain unknown. pH/EC in this adapter are explicitly manual or simulated. Reporting bounds are waterTemp 0–60 °C, pH 0–14 and EC 0–20 mS/cm; values outside bounds are retained as invalid, not accepted as safe operating targets. Device-reported validity/calibration is not independently verified. Contradictory level values are invalid. The highCutoff flag is only a report; it cannot prove a wired independent power cutoff exists.

Delivery is fresh only while measuredAt and receivedAt are within 120 seconds; a future measuredAt beyond five seconds is rejected. Old samples remain visibly stale. Fresh delivery is separate from validity, calibration or genuine sensor connection. All simulated values remain labeled SIMULATED. Existing manual observations and the refill DEMO remain separate; no ingest value triggers a refill or chemical action.

Offline runnable reference from the source checkout:

    node --experimental-strip-types scripts/garden-mock-controller.mts leak

Scenarios: normal, leak, high, empty, stale, invalid, timeout, conflict. It prints explicitly simulated telemetry and the existing deterministic local policy with network and AI unavailable. It reads no credentials, sends no network request and has no GPIO or pump driver. Controller demo freshness/run-time limits are demonstration values, distinct from monitoring delivery freshness and not hardware recommendations.

Physical prerequisites remain unverified: a compatible sensor/controller adapter, device-specific drivers, actual reservoir geometry and mounts, calibrated sensors, measured pump flow/demand, low-voltage power design, an independent wired high-water power cutoff, and attended fault/outage commissioning. The existing PARAQUIP has no verified software API. No credential for real hardware was created during implementation. The explicit SIMULATOR self-test can create a temporary simulation-only registration, as described below.

## Explicit hosted SIMULATOR diagnostic

The monitoring panel includes an optional self-test, never run on opening the page. After explicit confirmation, it creates a server-labeled SIMULATOR registration with an ingest-only credential that expires within two minutes. The server rejects every non-simulated reading for that credential. The credential stays only in app JavaScript memory; it is never rendered, logged, saved to browser storage or exported. This tests software, not real sensors or calibration.

The test performs register → simulated ingest → account-scoped read → revoke → blocked fresh-sequence upload after the normal interval → delete → absence confirmation. It displays sanitized step outcomes only. On error/cancel it attempts bounded cleanup under the same verified account binding; it cannot delete another account’s registration. Closing the page or changing accounts can interrupt cleanup, but the credential expires within two minutes. Any leftover SIMULATOR metadata/sample remains privately visible and deletable after signing back in. No automatic retry, model call or actuator command occurs.

## Hardware boundary (planned)

Conceptual routes GET /v1/controllers/{id}/telemetry and POST /v1/controllers/{id}/requests are not deployed. Use TLS, per-device credentials, short-lived scoped customer access, request IDs, idempotency, expiration and audits. Never embed controller/provider secrets in browser code.

Telemetry: controllerId, sequence, measuredAt UTC, receivedAt, calibrated values/units/validity, low/normal/high flags, sourceEmpty, leak, pumpActual, elapsedRunSeconds, faultLatch, firmwareVersion, mode. Reject missing, stale, contradictory and out-of-order readings. Commission thresholds/time limits from measured geometry and pump flow. Demo freshness 10 seconds and maximum run 30 seconds are not hardware recommendations.

Request: {requestId, controllerId, expiresAt, action: request_refill | stop, reason}. Local controller inhibits refill for high water, leaks, empty source, invalid/stale readings, contradictions, time limit or latched faults. Start at low level, continue between thresholds, stop at normal or a protection. Acknowledgment never bypasses an active fault.

Independent high-water hardware interrupts transfer-pump power regardless of software/browser/network/companion state. Safety loops run on controller; a browser or service worker is not reliable physical protection. On power recovery default pump off, validate inputs and retain relevant fault state. Browser resetting a demo synthesizes safe readings only.

## Commissioning and availability

Measure usable volumes/daily demand. Validate low/normal/high placement, source empty, leaks, pump flow, time limit, latches, network loss and power recovery. Covered supply stays below garden maximum waterline; outlet above maximum level discharges through visible air gap. Reserve pod positions using measured mounting dimensions. Lights/circulation retain built-in schedules until independent controls are verified. Shared-reservoir actions affect all plants.

Native /garden and its cloud features require network. The separate /garden-offline/ workspace has a scoped worker for an exact public static-file whitelist; it does not cache authenticated pages, API responses or personal records. Hosted phone offline/reload and installation verification are explicitly deferred. Manifest metadata does not prove installation or offline support on Android DuckDuckGo. The separate owner-private Verdant prototype remains intact. See the isolated package's docs/REFILL-INTERFACE-COMMISSIONING.md and empty commissioning worksheets for the physical implementation contract and acceptance gates; no physical pass is established.
