8000 [Feature] Evidence-linked AI observations and qualified local providers · Issue #46 · shroominic/OpenGlucose · GitHub
[go: up one dir, main page]

Skip to content

[Feature] Evidence-linked AI observations and qualified local providers #46

Closed as not planned

Description

@raynman1

Outcome

Finish AI as an optional evidence narrator inside Today and Trends—not as a blank chatbot—and add qualified on-device provider choices without weakening the deterministic product.

Dependencies

Product surface

  • “What stands out” card with at most 1–3 observations.
  • Daily and weekly user-triggered summaries first.
  • Each statement has evidence chips and opens the supporting trace/window.
  • Show model, generation time, prompt/evidence version, data coverage, and local/remote status.
  • Regenerate, hide, delete, and feedback actions.
  • Deterministic text remains available with AI disabled.

Provider delivery

  1. Swift bridge for Apple SystemLanguageModel on supported iOS versions/devices, with explicit availability reasons and no deployment-floor increase.
  2. Pinned llama.cpp/llama_cpp_dart spike for qualified iOS/Android devices.
  3. Curated GGUF catalog only: immutable revision, file hash, license, size, context, device tier, and benchmark evidence.
  4. BYO cloud remains Advanced with endpoint/data preview.
  5. Never silently switch local work to a remote provider.

Resource and safety controls

  • Unload local models on memory pressure/background and stop at serious thermal state.
  • Bound context/output, disk, memory, and model concurrency.
  • Test BLE session, live notifications, background/resume, battery, and model load/unload coexistence.
  • Model output may phrase verified observations but cannot invent calculations, trigger alerts, alter records, issue sensor commands, or provide diagnosis/treatment/dosing/emergency advice.

Parallelization

Blocked for product integration. Native provider spikes may begin after #39 stabilizes provider capabilities. The visible card waits for #37 and the body-timeline drill-down.

Acceptance criteria

  • Every factual statement links to valid deterministic evidence.
  • AI-off mode retains full analytics and deterministic observation value.
  • Local provider availability and unavailability reasons are honest.
  • No local-to-cloud fallback occurs without an explicit user action.
  • Model provenance, license, hash, disk size, resource state, and data recipient are visible.
  • Stale insights invalidate when underlying evidence changes.
  • Delete/export removes all outputs, conversation state, models, and keys as selected.
  • Prompt/model/OS evaluation matrix and unsafe-input suite pass.
  • Physical devices demonstrate bounded memory, thermal, battery, BLE, and background behavior.
  • R2 independent review and rollback plan are complete.

Out of scope

  • Open-ended chat until evidence retrieval, citations, retention, and prompt-injection controls are proven.
  • Medical decisions or autonomous actions.

Activity

  1. added this to the 0.4 Evidence AI milestone on Aug 15, 2026
  2. added
    enhancementNew feature or request
    priority:P2Important follow-on capability
    area:aiAI providers, safety, grounding, and insight surfaces
    parallel:blockedWaiting on an explicit dependency
    risk:R2Health data, persistence, integration, AI, accessibility, or native risk
    on Aug 15, 2026
  3. removed this from the 0.4 Evidence AI milestone on Sep 1, 2026
  4. shroominic commented on Sep 1, 2026

    @shroominic
    Owner

    Superseded by #99, recreated by the repository owner under shroominic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:aiAI providers, safety, grounding, and insight surfacesenhancementNew feature or requestparallel:blockedWaiting on an explicit dependencypriority:P2Important follow-on capabilityrisk:R2Health data, persistence, integration, AI, accessibility, or native risk

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0