Skip to content

feat(cognition): rung 0 — model selection by signature distance (resolver slice 5) - #2381

Merged
joelteply merged 3 commits into
canaryfrom
feat/distance-rung-select-model
Aug 23, 2026
Merged

joelteply merged 3 commits into
canaryfrom
feat/distance-rung-select-model

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The genome resolver reaches the selection ladder: nearest signed gene by minted-signature distance, significance-gated (2σ over the measured unrelated-null), falling through to the untouched keyword tiers otherwise. Pure/sync selector; async embed + signature join at the command seam; every decision probed. Full ceremony observed (PERSONA-COGNITION-PIPELINE.md): upgrades the one existing decision point, no parallel pipeline, live-turn rewire stays #153/#160's. Plus a rider: the command-RSS leak board now folds net deltas (dispatch's false +228MB "leak").

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

joelteply and others added 3 commits August 22, 2026 21:04
…ims refreshed, disclaimer retired, verbosity trimmed

Canary is the default branch now, so this page IS what Joel's public posts
land on. The pass (his brief: 'P2P mesh, other advancements, some stuff
kind of dated. Verbose and confusing sometimes'):

- Canary-branch disclaimer → one line ('under active development'); the
  honesty note no longer claims the page lags the organism (it doesn't,
  as of tonight).
- Genomic Intelligence: the Node-era TypeScript sample replaced with the
  SHIPPED verbs — genome/recall (distance x fitness), genome/list,
  genome/push|pull, the covenant. Distance-not-keywords stated as fact
  with the doc link.
- Model ladder gains Rung 0 (signature distance) — matches the code.
- Mesh transport de-Tailscaled: airc IS the p2p layer (keypair identity,
  local-first routes, mnemonic rendezvous); Tailscale/WireGuard demoted to
  optional transports. Grid diagram updated.
- Providers: llama.cpp serving lanes named as the local default (Candle a
  peer), both mentions.
- Clone instructions: plain clone lands on canary now — the -b warning and
  its explanation deleted.
- benchmark/swe-solve (a verb that no longer exists) → the real citizen
  path (benchmark/dispatch through the kanban).
- Duplicate puddles-and-streams thesis collapsed to a pointer; test count
  6,400 → 7,400.

Link audit: 0 broken files/anchors after the pass.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…genome resolver reaches the ladder)

The keyword table (domain_to_trait) stays as the fallback it always was;
above it, when the caller supplies the need's embedding and a persona's
adapters carry minted signatures, the nearest signed gene wins with
source=signature_distance — gated by a SIGNIFICANCE floor (2σ above the
space's measured unrelated-null when known; a doctrine-derived floor when
not) because the recall space is anisotropic and an absolute cosine
threshold would lie.

Pure + sync selector (memory/recall's query_embedding pattern): the async
embed + manifest⋈sidecar signature join happen at the cognition/select-model
command seam, which now takes an optional free-text  and probes every
decision (cognition.model_selection). Pinned: distance beats keywords only
when significant; below-floor falls through identically; wrong-space
signatures never compete; all pre-rung tests pass unchanged. The stopwatch
test joins the measured-not-SLA doctrine (its <500us bound flaked at 982us
under 4-way inference — same class as parse_time).

Per PERSONA-COGNITION-PIPELINE.md: activate_skill's chain is dormant on the
live turn path; this upgrades the ONE existing decision point both the
command path uses today and the #153/#160 rewire will call — reuse, never
parallel.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… transient allocation volume is not a leak

The positive-only fold discarded every matching fall, so any command doing
real work climbed forever: benchmark/dispatch topped the leak board at
+228MB while the same log's process RSS oscillated 528→524→477→555MB. A
quarter-gigabyte leak cannot go down.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 23, 2026 02:08
@joelteply
joelteply merged commit 249e6d8 into canary Aug 23, 2026
5 checks passed
@joelteply
joelteply deleted the feat/distance-rung-select-model branch August 23, 2026 02:18
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