Skip to content

[AGENT] LT-010: Offline Fallback & Template Registry Integration #349

Description

@ucguy4u

Agent

Agent: agent/core-architecture (Framework Agent)

Task Details

Estimate (hours): 4
Priority: P1
Parent: #331

Description

Provide a fallback strategy for custom goal creation when the network is offline or the local LLM fails to run.

Fallback Logic

  1. Keyword Matcher: Analyze user prompt strings for keywords matching existing bundled templates (e.g. prompt contains "house" or "flat" → RERA checklist; "doctor" or "operation" → Medical checklist; "college" or "university" → Admission checklist).
  2. Template Match recommendation: Prompt user: "You're offline, but we found a similar local template. Would you like to use this instead?".

Critical Agent Gate

Problem: The app will throw errors during custom track creation when offline or when LLM model execution fails.
User / actor: End user experiencing network issues or low-resource device states.
Framework or application layer: Framework (core_data/registry)

Acceptance Criteria

  • Offline status detector in blueprint generator use case
  • Keyword matching dictionary mapping keywords → template IDs
  • Fallback redirection flow returning template recommendations
  • Unit tests for keyword matching logic (covering edge cases/synonyms)
  • flutter analyze clean

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/core-architectureCore Architecture Agent tasksenhancementNew feature or requestlife-trackLifeTrack lifecycle management pluginpriority/P1High - Important but not blockingtype/taskImplementation task

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions