feat(example-iot-telemetry): implement polyglot ObjectUri pipeline and Gemini AI anomaly synthesis #17

Open
opened 2026-10-27 14:51:26 +00:00 by crapougnax · 0 comments
Owner

Migrated from GitHub https://github.com/Quatrain/Core/issues/44 (opened by @crapougnax on 2026-09-18).

Part of parent story #14.

🎯 Goal

Implement polyglot ObjectUri routing across storage engines and cognitive incident diagnosis via Google Gemini AI.

📋 Specification

  1. Polyglot ObjectUri resolution:
    • Device model: postgres:devices/dev-sensor-42.
    • Message in transit: amqp:sensor-frames/msg-881.
    • Cold storage raw payload: s3:telemetry-cold/2026-09/dev-sensor-42.json.
  2. Cold Storage Archiving:
    • Export raw batches to S3 / MinIO via @quatrain/storage-s3.
  3. AI Cognitive Anomaly Synthesis:
    • Integrate @quatrain/ai-gemini to detect critical threshold anomalies (e.g. abrupt soil moisture drop, battery sag).
    • Use generateStructured() with strict JSON schema to produce actionable diagnostic cards (anomaly kind, probable root cause, severity, recommended maintenance action).
> Migrated from GitHub https://github.com/Quatrain/Core/issues/44 (opened by @crapougnax on 2026-09-18). Part of parent story #14. ### 🎯 Goal Implement polyglot ObjectUri routing across storage engines and cognitive incident diagnosis via Google Gemini AI. ### 📋 Specification 1. Polyglot ObjectUri resolution: - Device model: `postgres:devices/dev-sensor-42`. - Message in transit: `amqp:sensor-frames/msg-881`. - Cold storage raw payload: `s3:telemetry-cold/2026-09/dev-sensor-42.json`. 2. Cold Storage Archiving: - Export raw batches to S3 / MinIO via `@quatrain/storage-s3`. 3. AI Cognitive Anomaly Synthesis: - Integrate `@quatrain/ai-gemini` to detect critical threshold anomalies (e.g. abrupt soil moisture drop, battery sag). - Use `generateStructured()` with strict JSON schema to produce actionable diagnostic cards (anomaly kind, probable root cause, severity, recommended maintenance action).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quatrain/core#17
No description provided.