Commit Graph

28 Commits

Author SHA1 Message Date
gramps f0689ac12b feat: Roadmap N — AMQP cluster nervous system complete 2026-07-09 09:09:22 -07:00
gramps 7c022dbc6d docs: restore full Task 14 spec text in TASKS.md 2026-07-09 09:06:27 -07:00
gramps 7fc7f7679c docs: mark Task 14 done, add cluster.py/amqp.py/test_model_swap.py to docs tables 2026-07-09 09:05:23 -07:00
gramps fb0ff576d3 Tasks 12 + 13: worker node agent + Phi-4-mini query triage
Task 12 — node_agent/agent.py: standalone AMQP worker agent
  config reader, model discovery, registration publisher,
  ping/pong handler, model swap with systemctl + health poll
  (14 tests)

Task 13 — triage.py: query classification + cluster node selection
  classify_query() routes to Phi-4-mini at :8083
  select_node() picks best worker by model affinity
  get_inference_url() replaces hardcoded LLAMA_SERVER_BASE
  cluster.py stores node ip for URL construction
  (6 tests + 5 existing chat tests mocked for triage)

168 tests passing (+20 new)
2026-07-07 07:30:30 -07:00
gramps 90d2cf8326 Rename: jarvisChat → cAIc (product name)
- jarvisChat/JarvisChat/jarvischat → cAIc/cAIc/caic (branded/lower)
- JARVISCHAT_ env vars → CAIC_
- jc- script/config prefix → caic-
- jarvis_rag → caic_rag
- jarvischat.db / volumes → caic.db / caic_*
- AMQP vhost/user jarvischat → caic
- Syslog, loggers, docstrings all updated
- 47 files, zero stale references, 148 tests pass
2026-07-06 19:56:32 -07:00
gramps 94e1cdae11 docs(Task 12): replace heartbeat with ping/pong, add subsection markers 2026-07-06 19:29:48 -07:00
gramps 54cf152bd3 docs: mark Task 11 done in TASKS.md 2026-07-06 19:25:54 -07:00
gramps 454fb3a380 docs: remove hb_query — worker presence is binary, passive heartbeats suffice 2026-07-06 19:13:30 -07:00
gramps 94c9c9d8c0 docs: final review fixes — count, ModelRecord alignment, event payload, subscribe re-binding 2026-07-06 19:12:02 -07:00
gramps 46adecfce0 docs: document data isolation rationale for two-channel split 2026-07-06 19:06:05 -07:00
gramps bb40748d95 docs: fold model category back into cluster — two buckets only 2026-07-06 19:04:28 -07:00
gramps 75202735e1 docs: collapse event types to three categories (cluster/model/application) 2026-07-06 19:01:20 -07:00
gramps f0819175f8 docs: simplify Task 11 — register/deregister drive status transitions; events are side effects 2026-07-06 18:59:33 -07:00
gramps 649f37e2b6 docs: expand Task 11 with full cluster protocol (7 message types, event log, coordinator auto-promotion) 2026-07-06 18:56:36 -07:00
gramps 975e7579cf feat: Task 10 — AMQP connection layer with aio-pika
amqp.py: connect/disconnect/get_channel/publish with auto-reconnect
  - Graceful degradation when aio-pika not installed
  - Lazy secret file reader via config.get_amqp_url()
  - Fire-and-forget publish (logs error, never raises)
  - Connection errors caught and logged (non-fatal)

config.py: AMQP_RECONNECT_DELAY, exchanges, get_amqp_url() helper

app.py: connect in lifespan after assess_hardware, disconnect on shutdown

requirements.txt: aio-pika>=9.0.0

tests/test_amqp.py: 3 mocked tests (publish success, publish disconnected
no-raise, get_channel reconnect)

135 tests pass (132 existing + 3 new)
Fixes: AGENTS.md test/run commands (venv was incomplete)
2026-07-06 08:51:36 -07:00
gramps 775ad5d06e docs: mark Task 9 complete — RabbitMQ installed on ultron 2026-07-06 08:19:54 -07:00
gramps 2417659097 docs: mark Task 8 complete in TASKS.md 2026-07-06 08:10:59 -07:00
gramps 133cca2551 docs: note RAG_MAX_VECTORS auto-calc in B3 setup wizard 2026-07-06 07:49:30 -07:00
gramps 1333963edc docs: add B3 Docker distribution task (v1.0 gate) 2026-07-05 15:28:46 -07:00
gramps 7d2f392231 docs: strikethrough completed Tasks 1-7 in TASKS.md 2026-07-05 15:23:31 -07:00
gramps eb86cbd039 docs: expand Task 8 spec — score-based eviction, hysteresis, operational stats, flush, edge cases 2026-07-05 15:21:35 -07:00
gramps c1031ecd3e docs: mark Tasks 1,3,7 as done in TASKS.md 2026-07-05 15:01:04 -07:00
gramps be8ce3bd86 docs: add B1 (context loss) and B2 (bang search) to backlog 2026-07-05 09:01:01 -07:00
gramps 779d606923 chore: re-version to v0.11.0 (pre-release until public release) 2026-07-03 12:49:31 -07:00
gramps 3fd8b01353 docs: update AGENTS.md, CLAUDE.md, TASKS.md for Tasks 4-6 completion 2026-07-03 12:38:48 -07:00
gramps cb8ceccbe0 docs: mark Task 2 dependency resolved — llama-server-coder.service created and verified on ultron 2026-07-01 17:13:37 -07:00
gramps 2b7f51cdca docs: clarify Task 2 as dependency resolved — real model swap delivered by Roadmap N (Tasks 9-15) 2026-07-01 09:24:58 -07:00
gramps d2cc246e51 first commit - defining tasks file as a living doc for opencode 2026-07-01 09:04:06 -07:00