Repository navigation
Releases
OpenTea DX-OS v1.27.0
Added
miniapps/workshop-hygiene0.1.0 (Sổ vệ sinh xưởng): a five-item hygiene checklist per shift (start and end), quick scale checks against a reference weight, scale calibration and machine maintenance logs with green/amber/red due states, an A4 print copy, CSV and OCOP metrics JSON for VietGAP and food-safety inspections. Ledger rows are append-only (database triggers); a mistake is fixed by a correction row with a reason, and new rows can only be dated today or the two days before. The agent suggestsfollowup.createtasks before calibration and maintenance deadlines and when the core shows lots, leaf tickets or roasting batches with no start-of-shift log; it never writes a log. Farmers can see the purchase scales' calibration state when the manager turns it on.- App identity and the audit API for plugins: a mini-app that declares the new
requires.services(audit,files,notify; needsrequires.core: ">=1.27.0", not allowed for AI-generated apps) can call the core. The app sends its own gateway secret inX-Dxos-App-Gateway;./dxoswrites a per-appapp-<id>-core-1gateway route that checks it, rewrites the path to/api/internal/app-core/<id>/...and rate-limits the app to 300 requests per minute.sync_gatewayrebuilds that route on every run and refuses a fragment whose core route names another uri or another app. POST /api/internal/app-core/[appId]/audit/eventsappends an event to the SHA-256 audit chain with sourceapp:<id>. The cooperative comes only from the verified user token or fromX-Dxos-Htxchecked against the app's enablements, never from the body../dxos remove --purgestill deletes no audit row.
Fixed
- The improvement smoke passes at any hour. A weekly agent is not due on a Monday before 06:30 (Vietnam), so the smoke failed in CI runs started in that window. The agent reads an optional
DXOS_AGENT_IMPROVEMENT_AT(HH:MM) and the smoke starts it with00:00.
Container images
ghcr.io/maiychrus25/opencoop-dx-os-web:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-api:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-postgres:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-scanner:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-migrate:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-dataops:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-agent:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-telegram:1.27.0ghcr.io/maiychrus25/opencoop-dx-os-zalo:1.27.0
Deploy
Download opentea-dx-os-1.27.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.26.5
Changed
- Publish the illustrated public landing, lot lookup and sign-in screens alongside the redesigned manager workspace. Authentication continues through Keycloak.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.26.5ghcr.io/maiychrus25/opentea-dx-os-api:1.26.5ghcr.io/maiychrus25/opentea-dx-os-postgres:1.26.5ghcr.io/maiychrus25/opentea-dx-os-scanner:1.26.5ghcr.io/maiychrus25/opentea-dx-os-migrate:1.26.5ghcr.io/maiychrus25/opentea-dx-os-dataops:1.26.5ghcr.io/maiychrus25/opentea-dx-os-agent:1.26.5ghcr.io/maiychrus25/opentea-dx-os-telegram:1.26.5ghcr.io/maiychrus25/opentea-dx-os-zalo:1.26.5
Deploy
Download opentea-dx-os-1.26.5.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.26.4
Changed
-
Updated the manager lot register, members, partner map, cooperative profile, bulletin and notifications to use the illustrated manager layout.
-
The manager certificate page places the register beside the upload form and shows an illustrated empty state.
-
The manager workshop groups batch planning, selection and processing results above the two-week forecast. The seasonal report picker uses smaller type.
-
The manager report picker groups the annual shortcuts and custom date range in two illustrated panels.
-
Managers can select a date range on the illustrated settlement page and review it before creating a draft period.
-
The manager input-supplies page groups the catalogue, household advances, daily total and bank details in a responsive illustrated workspace.
-
The manager weighing-ticket page groups date, status and household filters above the filtered weight and amount, with daily CSV export and locally scrollable ticket details.
-
The manager purchase-price page groups daily price editing by grade and reserves a clearly disabled panel for price history.
-
The manager pesticide catalogue adds an illustrated header and a compact table showing product targets, linked material units and the source of the effective withdrawal period.
-
The manager growing-zones page pairs the interactive parcel map with area, status and crop filters, a filtered summary, and CSV export for visible or selected parcels.
-
The manager journal approval page pairs four status filters with the review table, CSV export and bulk approval on an illustrated tea landscape.
-
The manager overview and harvest schedule use illustrated tea landscapes. The overview groups six operational figures with notices, weather and pending journals. The harvest calendar pairs the selected day with its planned work and lists parcels awaiting a date.
Fixed
-
Manager journal approval shows the child holding a checklist at the same height and position as the tea picker on overview and harvest schedule. The pending journal panel aligns with the overview panels above it.
-
The sidebar keeps the same width and menu spacing when switching between manager overview, harvest schedule and journal approval.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.26.4ghcr.io/maiychrus25/opentea-dx-os-api:1.26.4ghcr.io/maiychrus25/opentea-dx-os-postgres:1.26.4ghcr.io/maiychrus25/opentea-dx-os-scanner:1.26.4ghcr.io/maiychrus25/opentea-dx-os-migrate:1.26.4ghcr.io/maiychrus25/opentea-dx-os-dataops:1.26.4ghcr.io/maiychrus25/opentea-dx-os-agent:1.26.4ghcr.io/maiychrus25/opentea-dx-os-telegram:1.26.4ghcr.io/maiychrus25/opentea-dx-os-zalo:1.26.4
Deploy
Download opentea-dx-os-1.26.4.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.26.3
The 1.26.2 fixes, released. The v1.26.2 tag stays, but its release gate failed and nothing was published under it.
Fixed
- The platform smoke waits 180 s for the agent's first TC journal-review run. Credentials load in sorted order, so LB's agents call the CPU Ollama before TC runs; one slow LB round kept TC past the old 90 s and failed the v1.26.2 release gate twice.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.26.3ghcr.io/maiychrus25/opentea-dx-os-api:1.26.3ghcr.io/maiychrus25/opentea-dx-os-postgres:1.26.3ghcr.io/maiychrus25/opentea-dx-os-scanner:1.26.3ghcr.io/maiychrus25/opentea-dx-os-migrate:1.26.3ghcr.io/maiychrus25/opentea-dx-os-dataops:1.26.3ghcr.io/maiychrus25/opentea-dx-os-agent:1.26.3ghcr.io/maiychrus25/opentea-dx-os-telegram:1.26.3ghcr.io/maiychrus25/opentea-dx-os-zalo:1.26.3
Deploy
Download opentea-dx-os-1.26.3.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.26.1
Fixed
- The PWA service worker no longer caches API calls or page data requests. Cached
/api/*calls and Next.js router data requests (RSC) could hold the browser's six connections per host, so pages and mini-app frames hung. They now go straight to the network; static assets and HTML pages keep their cache, and the offline journal queue (IndexedDB) is unchanged. - Browser tests block the PWA service worker. Two CI runs hung on a mini-app frame while
sw.jsand other requests stayed pending: the service worker can hold the browser's six connections per host. No spec tests the service worker. - After signing in, a person lands on their role's home, not the public lookup page. The home page
/is prerendered, so Next.js served a bare/without running the middleware's role redirect. Auth.js now returns to/?from=auth, which the middleware sends to the role home (src/lib/auth/sign-in-redirect.ts). - The platform smoke no longer stops silently after the concurrent audit writers. Its watchdog cleanup failed under
set -ewhen the watchdog had already exited, which ended the smoke with no FAIL line (a flake since 2026-11-08, hit by the v1.26.0 release gate).
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.26.1ghcr.io/maiychrus25/opentea-dx-os-api:1.26.1ghcr.io/maiychrus25/opentea-dx-os-postgres:1.26.1ghcr.io/maiychrus25/opentea-dx-os-scanner:1.26.1ghcr.io/maiychrus25/opentea-dx-os-migrate:1.26.1ghcr.io/maiychrus25/opentea-dx-os-dataops:1.26.1ghcr.io/maiychrus25/opentea-dx-os-agent:1.26.1ghcr.io/maiychrus25/opentea-dx-os-telegram:1.26.1ghcr.io/maiychrus25/opentea-dx-os-zalo:1.26.1
Deploy
Download opentea-dx-os-1.26.1.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.26.0
Added
accountantrole for mini-apps: the manifest schema,appkit.ROLES(synced into every app), the webAppRoleand a new/accountant/apps/<id>/...page work as the manager's do. The accountant menu has an "Ứng dụng" group that lists only the apps with an accountant menu entry.runtime.healthcheck: an optional exec-form command (["CMD", ...]) for the Docker healthcheck, so an image without Python can be a mini-app. Without it the compose file is unchanged.miniapps/hello-node: a Node.js sample mini-app (standard library only, no npm package) with the gateway-secret check, the identity page, a read-only non-root container and its own healthcheck.node --testruns in CI andmake apps-smokeinstalls it.
Changed
- CI skips the stack smokes for light pull requests. A PR that only touches docs, the site, n8n workflow exports, licence metadata or web unit tests runs lint, type-check, unit tests, build and REUSE in a few minutes.
scripts/ci-change-scope.shdecides; a push to main and a release still run everything. - Containers are named
opentea-*(opentea-postgres,opentea-web, ...) instead ofagrimarket-*. Volumes and networks keep their names, so data stays. On an existing stack,make platform-upandmake web-uprecreate the containers under the new names;docker execcommands use the new names (docs/dev-setup.md).
Fixed
- n8n
officer-reminder: its error log wrote the literal{{$workflow.name}}. The workflow name and execution id now go in as query parameters, with commas in the name replaced. Contributed by @jay23606 (PR #118, issue #69).
Upgrade notes
- Containers are renamed
opentea-*. Runmake platform-upandmake web-up: they recreate every container under its new name. Data stays, because volumes and networks keep their names. Scripts of your own that calldocker exec agrimarket-...need the new names. - Mini-apps can declare
runtime.healthcheckand anaccountantmenu entry. Such an app needsrequires.core: ">=1.26.0".
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.26.0ghcr.io/maiychrus25/opentea-dx-os-api:1.26.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.26.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.26.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.26.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.26.0ghcr.io/maiychrus25/opentea-dx-os-agent:1.26.0ghcr.io/maiychrus25/opentea-dx-os-telegram:1.26.0ghcr.io/maiychrus25/opentea-dx-os-zalo:1.26.0
Deploy
Download opentea-dx-os-1.26.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.25.0
Added
docker/docker-compose.public.ymlfor a public host behind a reverse proxy. It pins every published port to127.0.0.1, because Docker's ports bypass the host firewall, and it sets Keycloak's public URL fromKC_PUBLIC_URLwith forwarded headers. A test fails when a new published port is not pinned.- H-P-D-I share radar on the manager board: the maturity card now splits 100% into H, P, D and I from real records (P from weighings that passed the withdrawal gate, D from sensor parcels with a reading in 24 hours, I from AI proposals a person approved; each capped at 30%, H is the rest) and draws it as a plain SVG radar with the evidence under it.
- Headless Tier 1:
make up-headlessstarts the platform withoutwebor any UI;- MQTT ingest now checks
telemetry.registered_assets, a platform view over the newtelemetry.assetstable (any domain registers assets there) and the tea parcels and batches, so it no longer reads tea tables; - existing stacks get both with
make platform-up.
- Non-tea book template:
custom-booksgainscraftlog, a production log for a bamboo and rattan craft village. - One-click backward lineage from a lot:
GET /api/lineage?kind=lot&code=...&direction=backwardwalks lot, processing batches, fresh leaf tickets, crop cycles and journal entries (legacy lots go parcel to cycle to journal), each node with the SHA-256 of its latest audit row, in one batched read per level. A "Truy hồi" button on every lot row on/manager/lotsand/officer/lotsopens the recall panel with the trace and the line "Chuỗi kiểm toán: N/M bản ghi có dấu SHA-256". The default forward drill and the signed evidence bundle are unchanged. make demo-up OPENTEA_VERSION=X.Y.Z [DEMO_PASSWORD=...]: one command for a stage demo from the published images. It fetches and checks the model files, pulls the release, starts the stack in the README order, seeds the base sample data on a fresh database only, prepares the five demo accounts and loads the TC demo story.- REUSE 3.3 compliance:
REUSE.tomlandLICENSES/(MIT, Apache-2.0, CC-BY-4.0, OFL-1.1) cover every file;- third-party material is named: the ICTU-OpenAgri model, the Piper voice, the Be Vietnam Pro font and the Gradle wrapper;
- CI runs
reuse lintand a gitleaks scan of the whole history.
- GS1 Digital Link, EPCIS 2.0 and NGSI-LD:
/01/{gtin}/10/{lot}checks the GTIN check digit, then redirects to/q/{lot}; withAccept: application/ld+jsonor?format=epcisit returns EPCIS 2.0 JSON-LD for lots whose QR was exported. The GTIN is not stored.GET /api/ngsi-ld/v1/entitieslists the cooperative's parcels and processing batches as NGSI-LD, read only, for manager and officer.GET /api/iot/ngsi-ld/parcels/{code}is one parcel's digital twin: location, current cycle and the latest value of each sensor with itsobservedAt.
- Workshop roasting telemetry: MQTT topic
htx/<HTX>/batch/<batch_code>/<sensor>(roast_temp,dry_temp,dry_humidity) intotelemetry.batch_readings;/qshows "Mẻ sao đạt chuẩn nhiệt" for a verified curve, and a flat stream never earns it. Existing stacks get the table withmake platform-up. - Lineage, recall drill and signed evidence:
GET /api/lineageruns a read-only recall drill from a parcel, a pesticide, a batch or a lot, down to the orders it reached.GET /api/lineage/bundledownloads a lot's evidence bundle, signed with Ed25519;GET /api/public/verify-keypublishes the key that checks it.- The "Truy vết và thu hồi thử" panel is on the lots pages of the head and the officer.
- Production needs
DXOS_EVIDENCE_SIGNING_KEY; without it the bundle answers 503.
- Chat mode "Vận hành HTX" (
type: cooperative) for the manager, officer and accountant, with a new/accountant/chatpage.- It answers from the HTX's own board figures; a sentence with a number outside them is dropped, and with the model down the figures themselves answer.
- The accountant gets this mode only;
marketandtechnicalstay 403 for that role.
- H-P-D-I self-assessment card below the six manager board blocks, with an honest empty state under 5 records and the source of every figure.
- Wind tunnel on the cross-check thresholds:
GET /api/agent/settings/cross-check?preview_*returns the alerts the last 30 days would raise now and with the previewed values. Read only. - One-click handoffs between existing screens: no schema change.
- Cross-check notices (A13) show their evidence in plain Vietnamese (kg, day, parcel code, household) and link to the screen where the person acts. An officer can now decide internal staff notices (A2, A9, A13) as well as a manager, and gets their Telegram prompts; notices to households stay manager-only.
- Price board: "Giữ nguyên giá kỳ trước cho hôm nay" publishes the latest earlier price of each grade not priced today, through the existing publish use case, after a confirmation that names the grades with no earlier price. The board shows the date of that price, and the weighing form shows a banner while nothing is published today.
- A finished processing batch links to "Đóng lô từ mẻ này →", which preselects the batch in the lot-from-batches form. Nothing is created until the person confirms.
- The farmer diagnosis result links to a new spraying entry for the parcel that was diagnosed.
/officer/journalshows the open A1 verdict per entry ("AI A1: Đạt quy tắc" or "AI A1: Cần kiểm tra") from one batched read,GET /api/journal/review-status.
Changed
- CI: the 56-minute platform job is five parallel jobs.
- Platform Unit Tests (about 3 min) needs no stack.
- The other four each start their own stack: Platform Smoke Test (smokes and agentic, about 24 min), Browser Smoke (Core), Browser Smoke (Store & Apps), and Mini-app Smoke.
apps-smokechecks the platform after removing the apps without the web checks: 149 PASS. The Platform Smoke Test job runs those 42 web checks.
- The project site moved to https://opentea.ahvlabs.com and the live demo is https://app.ahvlabs.com. The site has a "Dùng thử bản demo" button. GitHub Pages now only redirects the old
maiychrus25.github.io/OpenTea-DX-OS/<path>links to the same path on the new site (scripts/build-pages-redirect.sh). audit.eventsgets an index on(table_name, row_id, id DESC). The backward lineage reads the newest event of given rows; without the index it would scan the whole append-only log.make platform-upadds it.- The three model files left the Git tree (about 80 MB:
leaf_disease_model.keras,tea_leaf_model.keras,vi_VN-vais1000-medium.onnx).- They live on the release
models-2026.11. download-model.shanddownload-model.ps1fetch them and check each SHA-256 againstmodels.sha256.- A file that is already in place with another hash is reported and kept.
- The release bundle drops from about 80 MB to under 1 MB.
- They live on the release
- Seven scratch scripts were removed from
apps/web. They held a hard-coded Keycloakadmin/adminlogin and test phone numbers. - The autopilot probation is a hard block: a kind is opened and runs on its own only with at least 10 human decisions in 30 days and a match rate of 90% or more. Before, 90% was only a warning.
Fixed
GET /api/seed-farmeranswers 404 in production. It is a development helper that let any signed-in user create a household linked to their own account.- Telegram: once a proposal is decided from its card, the card turns into the result and loses the Duyệt and Từ chối buttons.
Upgrade notes
- Run
make platform-up, thenmake web-up.platform-upapplies12-batch-telemetry.sql,13-registered-assets.sqland the newaudit.eventsindex.web-uprebuilds the web.
- Set
DXOS_EVIDENCE_SIGNING_KEYindocker/.env.local: a PKCS#8 PEM fromopenssl genpkey -algorithm ed25519, on one line with\nbetween the PEM lines. Without it, a production web answers 503 on the evidence bundle and 404 on/api/public/verify-key. - A public host behind a reverse proxy adds
-f docker/docker-compose.public.ymland setsAUTH_URL,KC_PUBLIC_ISSUER,KC_PUBLIC_URLandMINIO_PUBLIC_ENDPOINT(README, "Bản phát hành"). - After pulling, run
bash download-model.sh(Windows:.\download-model.ps1). Git removes the three model files from your working tree when you pull, because they are no longer tracked; until you run it,disease-apiandpiperhave no model.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.25.0ghcr.io/maiychrus25/opentea-dx-os-api:1.25.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.25.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.25.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.25.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.25.0ghcr.io/maiychrus25/opentea-dx-os-agent:1.25.0ghcr.io/maiychrus25/opentea-dx-os-telegram:1.25.0ghcr.io/maiychrus25/opentea-dx-os-zalo:1.25.0
Deploy
Download opentea-dx-os-1.25.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and `DXOS_INTERNAL_GATEWAY_SE...
OpenTea DX-OS v1.24.0
Added
-
Stage demo data for HTX Tân Cương:
make demo-seed(ornpm run demo-seedinapps/web) runs afterseedand builds one connected story, with no new business feature. It covers:- today's leaf prices;
- recent weighing tickets;
- TC-A3 still in withdrawal, so the weighing station shows the red block;
- a finished processing batch at 4.75 : 1;
- lot
TC-CHE-A3-001with all four layers on/qand a sample VietGAP certificate; - a closed settlement with an advance offset and a VietQR on the slip;
- the inputs that make the cross-check agent raise both alerts.
A second run adds nothing. The closed settlement is never touched again, because the ledger is append-only.
-
./dxos demo accounts [--reset-otp] [--password <p>]prepares the five demo accounts (platform_admin,manager_tc,accountant_tc,officer_tc,farmer_tc):- it creates a missing one with its role and
htx_code; - it clears stuck required actions such as TOTP setup;
- it removes OTP only with
--reset-otp.
Any other username is refused.
- it creates a missing one with its role and
-
python -m dxos_agent --once cross-check --htx TCruns the cross-check agent once, on the same code path as the daily schedule. -
scripts/check-schema-doc.pyfails CI whendocs/database-schema.mdandschema.prismadisagree on a table or column.
Changed
- Mini-apps accept only requests that came through the gateway.
- Each installed app gets its own secret in its env file.
- APISIX sends it as
X-Dxos-App-Gatewayon every route of that app, public routes included. - The app kit,
helloandhub-mobilerefuse anything else with 403, exceptGET /healthz. Without the secret they refuse every request. - This closes the cross-app spoofing limit on
dxos-apps-net(R24).
- The app store hides
htx-dashboardandhub-mobileunlessDXOS_LABSis on, likeleaf-purchaseandfarm-supply, so the store matches the README and the site. They show "Đang đóng băng" and cannot be installed. The board's "Phân tích chi tiết" link still works for an HTX that already hashtx-dashboard. - README and site are rewritten for v1.23, centred on the OSI-licensed core.
n8n(Sustainable Use License) and the Groq, OpenAI and Anthropic APIs are optional integrations.- They cover five roles with role switching,
dxos-zaloin the release images, and the advertised mini-apps only:tea-shop0.4.0,tea-tour,custom-books0.3.0 andhello. - The site screens and the social card are real screenshots of the demo data. No frozen app is shown.
docs/database-schema.mdmatchesschema.prismacolumn by column:chat_historyis added, and the olduserstable is removed. DEV-016 is fixed. DEV-015 is updated for v1.23.0.
Fixed
make apps-recreaterebuilds the app image. It only recreated the container, so an app installed before v1.24 kept its old image, whose code ignores the gateway secret, and still answered direct requests ondxos-apps-net.- The cross-check agent (A13) never reached Hasura (since 1.22.0). It declared its spraying and ticket filters as
timestamptz, whilejournal_entries.entry_dateandfresh_leaf_tickets.weighed_ataretimestampcolumns. Hasura refused the query, and the run only logged an error. The filters now usetimestamp, from Vietnam midnight written in UTC. Its read of its own earlier proposals also filtered on a column the agent role cannot see; the Hasura permission already limits it to cross-check proposals. A test now checks every field it reads against the agent role's columns.
Upgrade notes
-
Run
make platform-upafter pulling. It creates a gateway secret for every installed mini-app, then rebuilds and recreates those apps so they check it. Until it runs, an app installed before this release still accepts requests that did not come through the gateway. -
Demo stage:
./dxos demo accounts(add--reset-otpif an account still asks for TOTP);npm run seedonce on a fresh database;make demo-seed.
Do not run
seedagain on the same database afterdemo-seed; rebuild the database instead. -
The cross-check alerts for the demo appear after
python -m dxos_agent --once cross-check --htx TC, run in the agent container.
Known limits
hub-mobile(frozen) has no gateway check.make demo-seedneeds network fornpm ciin the migrate image (about 30 s).
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.24.0ghcr.io/maiychrus25/opentea-dx-os-api:1.24.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.24.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.24.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.24.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.24.0ghcr.io/maiychrus25/opentea-dx-os-agent:1.24.0ghcr.io/maiychrus25/opentea-dx-os-telegram:1.24.0ghcr.io/maiychrus25/opentea-dx-os-zalo:1.24.0
Deploy
Download opentea-dx-os-1.24.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.23.0
Added
- One label list for tea pests and diseases (
apps/web): officers confirm a disease report with a label fromdisease_labels, 14 codes, with the five targets first: Rầy xanh, Bọ cánh tơ, Nhện đỏ, Phồng lá chè, Bọ xít muỗi.- The free-text name stays.
- Telegram asks for the label too.
- Older reports are labelled only on an exact name match.
- Training consent (
apps/web): the head can let the cooperative's confirmed photos be used to train the tea model. It is off by default, needs a confirm step to turn on, and is audited. - Field photo manifest:
GET /api/platform/disease-dataset(platform_adminonly) lists the confirmed, labelled photos of the cooperatives that agreed.- It carries no names, phones or household ids; each photo has a one-way
household_key, its sha256 and a download link that lives 15 minutes. - It is paged (500 per page,
next_cursor), andfetch-fieldfollows the pages.
- It carries no names, phones or household ids; each photo has a one-way
ai-models/tea: training can now use the cooperatives' confirmed field photos, with stricter checks before a model ships.train.py fetch-fielddownloads the photos, checks their sha256 and strips every EXIF and GPS tag.- A class without public photos needs at least 150 field photos.
- A
not_tea_leafclass is always included. - Stricter quality gates: accuracy 0.80, recall 0.70 per target, field accuracy 0.75 on photos held out by cooperative, or by household while only one cooperative has agreed (recorded as
field_splitin the registry). A model that fails, or a class with too few households to split, printsBLOCKEDwith the reason and writes nothing.
- Model registry:
ai-models/tea/registry.jsonpins the tea model's version and sha256.disease-apirefuses a model file that does not match it:/healthshows why, and the general model keeps working.- Every tea prediction reports
model_version, and the web stores it on the report. - CI checks that the sha256 matches.
- Care steps (no medicine) for the four new targets, and a "chụp lại" step when the photo is not a tea leaf.
Changed
- Zalo errors: the relay follows the real ZNS error codes.
- -124 and -216 refresh the OA token and resend.
- Template errors (-109, -111, -112, -117, -131), a wrong phone (-108), no Zalo account (-118) and no balance or quota (-115, -126, -211) stop at once, with a Vietnamese reason.
- Chatbot sources: the technical chatbot names the files of the passages it used as sources when the model writes none.
- Scientific names: Rầy xanh and Bọ cánh tơ use the names of Vietnamese tea references: Empoasca flavescens and Physothrips setiventris.
Fixed
make up-voicefailed on Apple Silicon because the whisper.cpp image is amd64 only. The two whisper services now ask forlinux/amd64, which Docker Desktop runs emulated.
Upgrade notes
make platform-up, thenmake web-up: the first applies two migrations (20261128180000_disease_labelsand20261128180100_disease_training_consent), the second rebuildswebanddisease-api.disease-apinow loads the tea model only when its sha256 matchesai-models/tea/registry.json.- Field data is not collected until a cooperative's head turns on "Cho phép dùng ảnh đã xác nhận để huấn luyện mô hình nhận diện sâu bệnh".
Known limits
- With photos from a single cooperative, the field test holds out whole households, not cooperatives, so its score may flatter the model on a new cooperative. The registry says which split was used.
not_tea_leafis trained on synthetic noise only.- The officer disease list needs the core gateway. It cannot be checked on a stack without it.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.23.0ghcr.io/maiychrus25/opentea-dx-os-api:1.23.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.23.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.23.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.23.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.23.0ghcr.io/maiychrus25/opentea-dx-os-agent:1.23.0ghcr.io/maiychrus25/opentea-dx-os-telegram:1.23.0ghcr.io/maiychrus25/opentea-dx-os-zalo:1.23.0
Deploy
Download opentea-dx-os-1.23.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.
OpenTea DX-OS v1.22.0
Added
-
Cross-check agent (A13): every morning at 05:45 the agent raises two alerts for officers and the head, as proposals with evidence; it never changes data.
- Pesticide advanced to a household, but no spraying logged on any of its parcels within 10 days.
- Leaf weighed on a parcel in one flush above 1,800 kg per hectare × 1.35. It is raised again only after a further 20% of that limit.
The head changes the four thresholds on
/manager/ai/settings. The agent reads advances, tickets and batches without any money, name or phone column. -
14-day forecast (
apps/web):/officer/processingand/manager/processingshow the fresh and dry tea expected over the next 14 days, by week and by parcel.- A parcel's figure is the median of its last three flushes, or its area times the norm when it has none (marked "Theo định mức").
- Dry tea is fresh ÷ 4.75. The director board's dry stock block adds the 14-day figure.
-
Technical chatbot reads PDFs: text PDFs in the cooperative library are read, and the answer is built from the four passages that best match the question, each citing its file.
- A question with or without Vietnamese diacritics finds the same passage.
- Scanned PDFs are named as unreadable and never used.
- Files marked
ai: false, or in a folder with.ai-ignore, are never read. - New dependency
unpdf1.6.2 (MIT).
-
"Nghe" for farmers: a listen button on today's prices and picking dates, the journal guidance, the diagnosis care plan and the ledger balance. It never reads a bank account. Spoken audio is cached for 7 days.
-
Zalo messages for members (platform OA): members who agreed get four ZNS messages, through one platform Zalo OA and the new
dxos-zalorelay:- today's leaf price;
- a weighing receipt;
- "withdrawal ended" for their parcel;
- their settlement result, with a link to the slip.
The details:
- Each cooperative turns Zalo on, picks the kinds, sets quiet hours (default 21:00–06:00) and a monthly quota (default 2,000) on
/manager/zalo, which also lists deliveries with the reason a message was not sent. - Officers record consent on the household page. A farmer can turn messages off for their own household from the profile. A household without consent is never sent anything.
- The platform admin enters the OA token and the approved ZNS template ids on
/platform/zalo. Tokens are stored encrypted and never shown again. - A ZNS stub (
dxos-zalo-stub, profilezalo-test, port 8084) lets the smoke run every message end to end without an OA.
-
Tea handbook template (
docs/templates/para-tea-cooperative): 66 notes and 5 tables on cultivation, pests and diseases, processing and sales, food safety, cooperative law, finance and regional data, ported from the resource survey by Nguyễn Bá Quyến (PR #99) into English kebab-case folders, each file crediting the author and its own sources. The officer pesticide reference carriesai: false../dxos para seed <HTX> [--dry-run]copies the template intopara/<HTX>/through the web document API, only files that do not exist yet.
Changed
POST /api/ttsnow enforces 20 requests per minute per person (429RATE_LIMITED).
Upgrade notes
- Set
DXOS_ZALO_TOKEN_KEYindocker/.env.localto 32 random bytes (64 hex characters, for exampleopenssl rand -hex 32) before saving an OA token; the web refuses to store a token without it. make platform-up, thenmake web-up: the first creates the Zalo tables (10-zalo.sql), restarts Hasura so the agent can read the new tables, and startsdxos-zalo, which waits healthy until a token exists; the second rebuilds the web app at1.22.0. No data migration.- Cross-check agent: it runs for each cooperative that already has the agent enabled. Review the thresholds on
/manager/ai/settings. - Zalo (optional):
./dxos zalo enablecreates the Keycloak clientdxos-zalo. SetZALO_APP_IDandZALO_APP_SECRETso the relay can refresh the token. Asplatform_admin, enter the OA token and the four ZNS template ids on/platform/zalo. Then turn Zalo on per cooperative on/manager/zaloand record consent.
Known limits
- The ZNS error codes in
platform/zalo/dxos_zalo/zns_api.pyhave not been checked against Zalo's documentation; check them before going live. - The TTS limit is per web process.
- Text is pulled from a PDF the first time the chatbot reads it, not when it is uploaded.
- The forecast does not use the weather.
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.22.0ghcr.io/maiychrus25/opentea-dx-os-api:1.22.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.22.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.22.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.22.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.22.0ghcr.io/maiychrus25/opentea-dx-os-agent:1.22.0ghcr.io/maiychrus25/opentea-dx-os-telegram:1.22.0ghcr.io/maiychrus25/opentea-dx-os-zalo:1.22.0
Deploy
Download opentea-dx-os-1.22.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Optional: set ANTHROPIC_API_KEY or OPENAI_API_KEY in docker/.env.local to let an agent use an external provider (ADR 0004). Empty keys keep every agent on Ollama, and only dxos-agent receives them.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN, KEYCLOAK_ADMIN_PASSWORD and DXOS_INTERNAL_GATEWAY_SECRET (a long random value: the web and the gateway refuse to start while it is empty or the public dev default), DXOS_TELEGRAM_CALLBACK_KEY (a long random value: the web refuses to start while it is empty or the dev default), DXOS_ZALO_TOKEN_KEY if you use Zalo (openssl rand -hex 32; the web refuses the public dev key and cannot store OA tokens without one), and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.