Skip to content

[Appliance Core] Build async Q-Learning inference/learning loop with MQTT reporting #29

Open

Description

@saviornt

Description

Create the main asynchronous event loop for the edge Q-Learning agent: observe state → select action → (dummy) execute → store transition → periodic learning → publish episode stats via MQTT.

Why: This is the heart of the edge autonomy — must be non-blocking and observable.

Type

  • Feature

Focus Area (pick one)

  • Appliance Core (Pi edge) / MQTT & Comms

Priority

  • Critical

Acceptance Criteria

  • Async loop using asyncio that runs indefinitely (with graceful shutdown)
  • Publishes episode summaries to MQTT (e.g. network-chan/edge/qlearn/stats)
  • Integrates shared replay, agent, and safety stubs
  • Logs key metrics (epsilon, avg reward, steps)
  • No blocking I/O in the main loop
  • Uses paho-mqtt async client

Blocker / Dependencies

  • [Appliance Core] Implement dummy environment & basic Q-Learning agent

Notes / Links

  • Later: replace dummy observe/execute with real telemetry/Netmiko

Activity

  1. self-assigned this
    on Mar 19, 2026
  2. added
    task
    on Mar 19, 2026
  3. added
    needs-triage
    on Mar 19, 2026
  4. moved this from To Do to In Progress in Network-Chan Project Developmenton Mar 19, 2026
  5. moved this from In Progress to Manual QA Testing in Network-Chan Project Developmenton Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs-triagetask

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions