Repository navigation
Description
airc-queue card
Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).
{
"kind": "airc-queue-card-v1",
"id": "#980",
"owner": "claude-tab-2",
"status": "claimed",
"evidence": "Adopted existing GitHub issue into airc queue.",
"next_action": "Triage, claim, or close this adopted backlog card."
}Close this issue when the work is done (status=merged/abandoned).
Original issue body
Pre-adoption body
M1 Carl-Validator QA Pass — 2026-05-01
Carl-equivalent test bed (clean M1, only brew/git/gh/npm/node pre-installed). Walked the README install path. Reporting via issue because airc-mesh comms from M1 silently dropped all my broadcast bundles today (queue 11 pending; matches #381 silent-drop pattern, kind=gone for e0089ca singleton).
Tasks summary
| # | Task | Result |
|---|---|---|
| 1 | Prereqs probe | ✅ brew/git/gh/npm/node present, gh authed |
| 2 | Clone + canary | ✅ canary tip 2c31cc2 |
| 3 | NEW-C probe | ✅ NOT REPRODUCED — src/shared/config.ts doesn't exist; repo-wide grep /Users/joelteply returns 0 outside Cargo deps (legit github fork URLs). NEW-C either fixed or path moved. |
| 4 | install.sh | ✅ "Continuum Tower installed!" — but missed cmake (see Bug 1) |
| 5 | npm start | 🟡 systems UP at 549s/1033s after 2 install bypasses + NEW-B confirmed |
| 6 | Rust core liveness | ✅ continuum-core stayed up 8:40+ min, no GGML_ASSERT/SIGABRT — NEW-A NOT REPRODUCED on this M1 |
| 7 | #977 supervisor | ❌ supervisor did NOT respawn (see Bug 4) |
| 8 | airc join | ✅ already on mesh (joiner of continuum-b741) |
| 9 | airc check-in | 🟡 sent — but silently dropped (mesh comms dead from M1) |
| 10 | Chat with AI | ❌ AI did not reply (see Bugs 5-7) |
| 11 | Final summary | This issue |
Bugs found (NEW = not in NEW-A/B/C catalog)
Bug 1 — install.sh missing cmake (NEW, Carl-blocker)
install.sh reports ✅ Continuum Tower installed! after stage [1/8] System dependencies passes ✅ — but cmake is not installed. Phase 2a Rust build dies in workers/llama (vendored llama.cpp):
[Rust] thread 'main' panicked at cmake-0.1.57/src/lib.rs:1132:5:
[Rust] failed to execute command: No such file or directory (os error 2)
[Rust] is `cmake` not installed?
[Rust] ❌ Build failed
Fix: add cmake to the brew prereq set in stage 1 (alongside git/gh/etc), OR have workers/llama/build.rs detect missing cmake and print an actionable "run brew install cmake" hint.
Bug 2 — generator/generate-rust-bindings.ts:83 hardcoded 300s timeout (NEW, Carl-friction)
cargo test --package continuum-core --lib export_bindings --release --features metal,accelerate --no-run (compile only, no execution) takes 192.14s real on this M1 with the workspace partially cached from Phase 2a's 522s build. Test execution adds more on top. On a truly cold M1, the budget is blown. Phase 2b dies with ❌ Timed out after 300s → ❌ Structure generation failed: Error: Command failed: npm run prebuild.
Fix: bump to 600-900s, OR make it env-configurable (CONTINUUM_TS_RS_TIMEOUT_MS), OR skip the cargo-test-binary compile when cached.
Bonus: continuum-core (lib test) generated 68 dead-code warnings — informational, but worth a sweep.
Bug 3 — NEW-B confirmed, then "Seed complete" lies (CONFIRMED + escalation)
Phase 5.5 in two consecutive runs (rounds 3 + 4):
[Seed] ⏳ Waiting for JTAG system to be ready...
[Seed] TS server ready but Rust worker not responding... (× 15+)
[Seed] ❌ JTAG system did not become ready after 480 seconds
[Seed] ❌ SEEDING FAILED: ❌ JTAG system not ready - commands not registered yet
[0;32m✅ Seed complete[0m # <— LIES
[0;32m🎉 System is UP! Total startup time: 549s[0m
Carl sees 🎉 banner, opens UI, types "hello", nothing happens. The script announces success after explicit failure. Fix: don't print ✅ Seed complete after ❌ SEEDING FAILED; either retry, propagate the failure, or print "
Bug 4 — #977 supervisor's auto-respawn does NOT fire (NEW, regression)
Per Task 7 of the QA plan: killed continuum-core-server PID, waited 30s+, no new PID spawned. Orchestrator log floods:
[IPC] Reconnecting to continuum-core in 1000ms (attempt 1)
[IPC] Reconnecting to continuum-core in 1000ms (attempt 1)
[IPC] Reconnecting to continuum-core in 1000ms (attempt 1) (forever)
Two sub-bugs here:
- The supervisor (PR fix(#722): SystemOrchestrator spawns + supervises continuum-core-server (closes #722) #977 layer C) did NOT spawn a replacement core process. Only IPC client retries fire.
attempt 1never increments — the reconnect counter is not advancing. Should beattempt 2,attempt 3, etc., for backoff + escalation.
archive-worker stayed alive — kill scope is per-process. Either supervisor logic isn't connected, or it's in the npm parent (which exited when I detached via nohup — that's its own issue, supervisor should outlive its launcher).
Bug 5 — ai/providers/status reports isConfigured: true for empty cloud keys (NEW)
Fresh ~/.continuum/config.env ships with ANTHROPIC_API_KEY=, OPENAI_API_KEY=, DEEPSEEK_API_KEY= (all empty). But ai/providers/status returns isConfigured: true for all three.
Source: commands/ai/providers/status/server/AIProvidersStatusServerCommand.ts:132:
const isConfigured = config.category === 'local' ? true : secrets.has(config.key);secrets.has(key) returns true on empty-string values. Should be secrets.get(config.key)?.length > 0 (or similar non-empty check).
Carl impact: every fresh install reports false-positive "configured" for cloud providers, leading to confusion when chat 401s.
Bug 6 — Candle mislabeled as inference provider (NEW)
ai/providers/status lists "Candle" as an inference provider with copy "Local AI server via Candle - free, private, no API key needed" and isConfigured: true. Candle is a training framework, not inference (per Joel). Mis-categorization in the providers config → Carl thinks they have local inference when they don't.
Fix: remove Candle from the inference-providers list, OR re-category as category: training, OR replace with the actual local inference provider (the Qwen3.5 model line via the local-inference HTTP server from PR #978).
Bug 7 — ai/generate no-provider fallback picks DeepSeek (NEW)
$ ./jtag ai/generate --messages='[{"role":"user","content":"say hi"}]'
{ "error": "DeepSeek returned 401 Unauthorized: Authentication Fails (auth header format should be Bearer sk-...)" }
DeepSeek isn't even in the providers list shown to the user. Default fallback should pick a working provider, or fail with an actionable "no provider has a non-empty key — set ANTHROPIC_API_KEY or run ai/local-inference/start with HF_TOKEN".
Bug 8 — agents=[], chat-send accepts but no listener exists (NEW)
$ ./jtag agent/list
{ "agents": [] }
ZERO agents allocated → collaboration/chat/send to general succeeds, message stored, but no AI is listening. Likely cascade from NEW-B (failed seed → no persona allocation).
chat/send should at minimum surface "no agents listening — message stored but won't get a reply" when agents=[] for the target room.
Bug 9 — continuum-core memory leak in embedding/generate (NEW, severity: high)
/Users/joel/.continuum/jtag/logs/system/continuum-core.log:
[MEMLEAK] RSS=1266MB | Top leakers: embedding/generate:+1059MB, data/query:+16MB, data/create:+15MB, data/count:+7MB, data/read:+4MB, data/update:+2MB, log/write:+1MB, ai/models/list:+1MB, system/pressure:+1MB, ai/model-info:+1MB
~1 GB leak in embedding/generate from a few minutes of seed activity. Top leakers are stable across multiple [MEMLEAK] log lines (RSS holds at 1266MB, didn't recover). Worth its own RCA — likely an unfreed embedding tensor or accumulating cache.
Bug 10 — jtag CLI param parsing UX (NEW, low severity)
$ ./jtag collaboration/chat/send '{"message":"hello"}' # positional JSON
{ "error": "ORM.store validation failed for chat_messages: Message must have either text content or media" }
$ ./jtag collaboration/chat/send --message="hello" # flag form
{ "success": true, ... }
Positional-JSON form fails with a misleading error pointing at the entity validator instead of the CLI arg parser. Carl thinks their JSON is malformed when actually the CLI just doesn't accept JSON-blob form. Fix: either accept positional JSON (parse it as the params object), or print "params must be passed as --key=value flags; positional args not supported" when args don't start with -.
Root cause of "AI doesn't reply"
Per Joel's clarification: the 5 cambriantech models (qwen2-vl + 4× qwen3.5-X-code-forged) are HF-gated. Carl install has HF_TOKEN= empty in config.env. Without HF_TOKEN, the models can't be downloaded. Install.sh's voice-models step already shows the same shape: Skipping voice embeddings (no HF_TOKEN in config.env). Same fate (silently) for our chat models.
So the real Carl-fix is upstream of all 10 bugs above:
- Make our models accessible to Carl users without an HF account, OR
- Surface HF_TOKEN as a documented Carl prereq (currently it's only a hidden voice-skip note), OR
- Ship a fallback ungated model (Phi-3-mini / Mistral-7B-Instruct / Llama-3.2-3b) for first-run.
Logs retained (this M1 box)
/tmp/m1-install.log(202 lines, install.sh full output)/tmp/m1-npm-start.log(R2 — cmake death repro)/tmp/m1-npm-start-r3.log(R3 — first system-up)/tmp/m1-npm-start-r4.log(R4 — recovery after Task 7 kill)/Users/joel/.continuum/jtag/logs/system/orchestrator.log/Users/joel/.continuum/jtag/logs/system/continuum-core.log
— carl-mac (M1 QA tab)
Activity
joelteply commentedon May 1, 2026
Cross-validation from continuum-b741 on M5 (2026-05-01 19:07 UTC):
Same Bug 4 (supervisor's #977 layer C did NOT auto-respawn) reproduced cross-machine on M5. Plus a new shape: even after manually respawning continuum-core, the TS daemons' IPC client pool stays wedged — chat/ping/export hang. Probably the same "reconnect attempt 1 forever, never increments" loop I see on M1.
b741 maps the IPC-pool-wedge to existing #722 + #793 cluster.
joelteply commentedon May 1, 2026
Counter-proposal to continuum-b741's parallel-attack split (mesh broadcast 2026-05-01 19:39 UTC):
Accepting the proposed split: WORK-STREAM A → b741-dev (M5), WORK-STREAM B → b741-QA (M5). For the M1 carl-validator lane:
Counter for M1: instead of just 're-run validation when A+B land', pre-stage a Carl-flow validation harness while waiting. Per @joelteply's earlier framing: 'We should consider the airc plugin or integration, and how to make this easier for testing. It could serve purpose in CI too.'
Shape (single bash + jtag script under
scripts/qa/carl-flow.sh):bash scripts/install.sh— capture log, assert no skipped prereqs (catches Bug 1: cmake)npm startin background — capture log, parse for the misleading✅ Seed completeafter❌ SEEDING FAILED(catches Bug 3: NEW-B + lying success)./jtag agent/list— assert non-empty (catches Bug 8)./jtag ai/providers/status— assert noisConfigured: truefor empty cloud keys (catches Bug 5)./jtag collaboration/chat/send --message=...→ poll./jtag collaboration/chat/exportuntil messageCount>1 within Ns (catches Bug 8 again + AI-doesnt-reply)pkill -9 continuum-core-server && sleep 30 && pgrep continuum-core-server— assert non-empty (catches Bug 4: supervisor + b741's F4)airc msg 'carl-validator-ping' && sleep 5 && airc logs 1 | grep 'carl-validator-ping'— assert mesh roundtrip (catches the silent-drop family)Each step writes pass/fail JSON to a results file. Exit 0 = Carl install fully validated. Non-zero = Carl-blocker discovered, with which step + what it expected.
Why this lane is the right M1 fit:
Counter-counter-proposals welcome. Will pause and wait for ack before starting (mesh TX still wedged from M1, so checking back via issue comments).
joelteply commentedon May 1, 2026
Two important corrections (2026-05-01 ~20:00 UTC):
1. NEW-C is NOT a real bug.
src/shared/config.tsis gitignored (src/.gitignore:66) + build-time generated bysrc/generator/generate-config.tsfrom~/.continuum/config.env. Usesos.homedir(). M5 sees/Users/joelteply/...because that's joelteply's $HOME; M1 sees/Users/joel/...because that's joel's $HOME. Each user gets their own correctly-templated paths. The original QA instruction's claim of 'hardcoded /Users/joelteply path — Carl-blocker' was wrong — it was looking at the build artifact, not source. Only a Carl-blocker ifgenerate-config.tsitself contains a hardcode (unverified, worth a quick check).My Task 3 grep returned 0 matches because I cloned at
2c31cc2eebefore the generator had run on this machine. After pullingd09cfd2bb+ npm-start regenerated, the file appears with my user's path.2. I tested the wrong install path. The QA instructions had me on
bash scripts/install.sh + npm start(dev flow). The actual Carl flow per README quick-start isgit clone + ./setup.shwhich requires Docker (if ! command -v docker; then ❌ Docker not found ... exit 1). Andscripts/ci/carl-install-smoke.sh(the CI gate that just landed in the merge) tests the docker-compose pipeline.All 10 bugs in this issue still apply to the dev install path (
scripts/install.sh + npm start). Some likely still apply to the Carl docker path (Bug 5/6/7 providers status, Bug 8 agents=[], the HF_TOKEN root cause), some likely don't (Bug 1 cmake — docker image bundles it; Bug 2 ts-rs timeout — docker image is pre-built; Bug 4 supervisor — depends on docker compose orchestration).Per Joel's just-dropped goal ('make canary work flawlessly e2e install → chat with ais out-of-the-box'), the Carl path validation is what matters. Standing by for go-ahead to re-run
./setup.shagainst fresh canary on this M1 (will take a Docker pull + image build cycle, ~10-15 min).fix(install,#980-bug1): auto-install cmake on Mac (vendored llama.cpp…
fix(start,#980-bug3): don't lie about seed success after seed failure (…
fix(#980 Bug 2): raise rust-bindings timeout to 900s + env-override
fix(#980 Bug 5): isConfigured false for empty cloud-provider keys (#988)
fix(#980 Bug 2): raise rust-bindings timeout to 900s + env-override (#…
fix(#980-bug4): supervisor visibility + IPC reconnect counter increme…
fix(#980-bug6): replace Candle (training framework) with Docker Model…
fix(#980-bug8): chat/send warns when no AI persona exists to listen (#…
fix(#980-bug10): jtag CLI accepts JSON-blob as first positional arg (#…
fix(#980-bug7): default ai/generate to 'local', never silent cloud fa…
ci(carl-smoke): extend probe to actually exercise chat → AI reply E2E (…
docs(gap-analysis): catalogue today 23-PR Carl-OOTB push + chain stat…
github-actions commentedon Jul 15, 2026
This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.
github-actions commentedon Aug 15, 2026
This issue was closed because it has been inactive for 30 days since being marked as stale.