Skip to content

feat(inference): DeepSeek-V4-Flash citizenship — ds4 sidecar provider, catalog row, gateway adapter (#306) - #2126

Merged
joelteply merged 6 commits into
canaryfrom
feat/306-ds4-catalog-row
Aug 3, 2026
Merged

joelteply merged 6 commits into
canaryfrom
feat/306-ds4-catalog-row

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Launched this morning; a citizen of the substrate tonight. Three commits:

  1. Catalog rows: provider ds4 (DwarfStar local sidecar, OpenAI-compatible :8901) + model deepseek-v4-flash (304B MoE, measured 2.73 t/s cold / ~2.3 warm at a 16GB governed expert cache on the 64GB M5, compile-graded 3/3 on the Rust probe). persona_serving_eligible=false until lifecycle is governed.
  2. Gateway registration: probe-then-register at boot (DMR's shape), priority 2 — only wins models it exclusively claims.
  3. Residency authority fix: single_resident_model consulted the llama-server snapshot (wrong authority — refused her because Devstral holds the daemon lane); dynamic_model_catalog answers from the sidecar's own /v1/models.

Verified end-to-end live: continuum ai/generate --model deepseek-v4-flash returns routed, metered text through the core (provider: ds4, 71s for a thinking+speech turn).

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 3 commits August 2, 2026 21:55
…erator joins the registry (#306)

Provider 'ds4' (DwarfStar local, OpenAI-compatible on :8901, single
resident model, external lifecycle) + model row 'deepseek-v4-flash'.
Measured on this M5 2026-08-02 (launch day): 2.73 t/s gen cold /
~2.3 t/s warm at a 16GB governed expert cache with the full stack
resident; compile-graded 3/3 on the merge_intervals Rust probe.
persona_serving_eligible=false until the sidecar lifecycle is governed —
evals reach her by explicit model id; the autonomic planner never
adopts her by surprise.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…n-register, DMR's shape (#306)

Priority 2, below in-process llama.cpp and DMR — ds4 only wins the
models it exclusively claims (deepseek-v4 prefix). Operator-managed
endpoint on :8901; not reachable at boot = not registered, with a
teaching log line. Watchdog parity follows with governed lifecycle.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… daemon (#306)

single_resident_model made the adapter consult the llama-server snapshot
— which truthfully answered 'Devstral is resident' and refused her (live
2026-08-02). dynamic_model_catalog is the honest contract for an external
sidecar: supports_model answers from ds4's own /v1/models.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply and others added 2 commits August 2, 2026 22:47
…t act in — provision-and-tell (#49 severe slice)

Two stacked perception lies killed a full resident evening (2026-08-02):
(1) the mixed-truth window — an unprovisioned layer made the map fall
back to the SHARED cwd's layout, so a fresh persona perceived
directories (conway_game_of_life…) its first tool call, provisioning
and acting in the layer, could not see: the live 'I see it / my list
is empty' roommate contradictions, verbatim; (2) nothing ever TOLD the
persona it lives in a private CoW layer, so roommates reasoned as if
the room shared one filesystem and concluded each other's work was
missing or wrong.

Fix: the reader provisions through the SAME ensure_citizen_layer the
hands use (incl. its sync-forward self-heal) and reports THAT root —
map and tools cannot describe different worlds; and the rendered map
now states the isolation contract (your own layer over the shared
base; teammates' files live in THEIR layers; commit to share) so the
collaboration model is perceived, not guessed. Param renamed peer_id
(it always received the peer id, never the persona id). Test repinned
from the deleted fallback to the provision-and-tell contract, with
throwaway-layer cleanup.

The remaining #49 arc (airc lease API, cross-peer work propagation
cadence, shared task workspaces) stays open — this closes the
perception-lie half that made the divergence invisible AND
misattributed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
The surface was write-only (claim/create/release/state/heartbeat); card
content reached personas ONLY via the perception-side projection, so a
persona that missed the render — or wanted to re-verify a spec mid-task
— had no tool to fetch it. Live 2026-08-03: 'I don't have access to the
work card' was LITERALLY TRUE, repeated for an hour by two personas
including the bakery card's own claimant after a failed observe; the
card sat at five plans / zero files partly because nobody could re-read
the spec. Every write-only surface eventually proves it needs its read
half.

work/list: short id + title + state + owner per card, optional state
filter. work/get: full card (title, BODY = the requirements, state,
owner, claim id) by full-or-short id via the shared resolver. AiSafe,
read-only, same board projection the write verbs already consult.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@github-actions github-actions Bot added size: L and removed size: M labels Aug 3, 2026
…gistered-but-invisible was the residual #309 hole

Prompt-capture diagnostic on live residents: the offered vocabulary carried
claim_task but neither new read verb — they registered in the command registry
but never opted into NATIVE, so the board stayed effectively write-only from
the persona's seat (Atlas kept asking the room for card specs post-deploy).
Adds NATIVE + trained-reflex aliases (list_tasks / get_task, mirroring
claim_task) and pins the pairs in the dialect round-trip test.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 0e5647c into canary Aug 3, 2026
5 checks passed
@joelteply
joelteply deleted the feat/306-ds4-catalog-row branch August 3, 2026 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant