Skip to content

mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891

Open
5 of 9 issues completed

Description

@dezren39

Relocated from dezren39/darwin-nix#176 on 2026-10-28 (placement audit): mcpx's single source lives in developing-today/code (pkgs/mcpx); re-home tracked at #309. Original body below; issue references inside it are historical (dezren39/nix numbering).

Parent: #181

Purpose

Everything in mcpx that would use a model, plus the search that should not.
Nine issues: better tool search, a provider layer mcpx owns, a graded
check/refuse/repair ladder, lifecycle hooks on exec, administration by intent,
composed tool views and generated tool sets, and the servers-and-feedback loop —
plus two small design issues split out because three of the others were each
about to build the same thing: one near-miss matcher (#186) and one settings
ceiling (#185).
The finding that shapes the whole tracker is that every one of these has a
deterministic lower half that ships without a model and a model-backed upper
half that does not
— and in every case the deterministic half is the larger
share of the value. Tags and word-splitting beat embeddings on a catalogue of a
few hundred short identifiers; a schema-change diagnostic beats a model
rewording it; toolViews.from answers the tailscale request outright; /v1/stats
already measures the thing "this server is slow, host it locally" is about. So
the order is: build every deterministic half first, then #110, then the model
halves. #110 is not first despite being the dependency, because nothing above it
is blocked on it until the deterministic work is done. Its decision is another
matter: choosing Approach C (a thin Provider interface) and correcting
docs/consumer.md's "should not be built" sentence is cheap and can be taken
early, which is why #181 places #110 in its design phase.

Children

#181 collisions that touch this tracker

Row Collision Owner Here
2 four hook vocabularies #81 (#173), via a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (in flight) #112 adopts it; its phase names are input
3 three autonomy dials #111, via a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (in flight) #112's effect and #113's prompt.mode: plan adopt it
4 namespacing and collision rules #83 (#173) #114's views, virtual namespaces and script-backed tools build on it
5 ClampedBy #185 #111, #112, #113 consume it
6 the near-miss matcher #186 #109 and #111 call it
7 the exec frame-order rule #111 #112 adds its hook frame under it

Proposed order

Phase 1 — the free wins, in parallel. #186 first: one normalisation,
distance and threshold, replacing the two that exist
(internal/diagnose/diagnose.go:417-455, internal/launcher/template.go:341-381,
which disagree on transpositions). Then #109's --explain → tags →
normalisation/stemming → typo tolerance, and #111's first items: a call frame
type in the exec stream under the frame-order rule #111 owns (docs/exec.md:137),
and rung 1 near-miss detection. Note rung 1 needs two signals, not one: #186's
closeness for typos, and argument-shape fit for the note's own example —
search→query is edit distance 5, so no typo threshold finds it. Rung 0,
wiring diagnose.CallError, is #116 in the cross-cutting tracker (#177), in
flight with SURFACES; at 05c78b2 it still has no caller outside tests
(internal/diagnose/diagnose.go:483). When it lands, the structured diagnostic
it attaches is the shape #111's rungs read.

Phase 2 — the vocabulary, before any dial is implemented. #111's
repair.level (off | explain | confirm | propose | retry | rewrite) is the
same dial as #112's hook effect (advise | transform | script | retry) and
#113's prompt.mode: plan. Three children independently invented a
policy-with-named-stops. It is decided once, in the autonomy-dial decision
record SURFACES is writing under pkgs/mcpx/docs/decisions/, and carried by
#111; #112 and #113 adopt it. The floor/ceiling clamping (the daemon sets the
maximum autonomy, a caller may lower it and never raise it) is #185 — a
settings-registry feature, not an auth feature. Both precede #111's rungs 2–6,
#112's effects and #113's plan mode. The hook vocabulary (#81's decision
record) likewise precedes #112's per-call hooks.

Phase 3 — #114 and #115, in parallel, both deterministic. #114's view layer
(from, pin, hide) is the one-field change that answers the tailscale
request; script-backed tools are the highest-value missing piece and need no
model. Both sit on #83's tool-source interface, which owns namespaces and
collision rules — script-backed tools are #83's first ship step, recipes as
tools. #115's richer search metadata and the four example declarations are S
(its registry-dedup item is struck: mcpx pins version=latest,
internal/registry/registry.go:158, and never sees duplicates — #179), and
#115 concludes that an adapter spec over the local tailscale CLI is a better
answer than any third-party server — which makes #115 a consumer of #114's
generators and a proof of them. Both also want #109's tags (#115's miss log and
#109's failed-search record are the same record).

Phase 4 — #110. By now the deterministic halves are shipped and it is clear
exactly which five jobs want a model: query expansion (#109 rung 7), explain and
propose (#111 rungs 2–6), prompt hooks (#112), operation routing (#113), and
spec generation (#114). That is five one-shot completions, which is the evidence
for #110's Approach C (a thin Provider interface mcpx owns) over its Approach
B (a Go agent framework) — none of the five is an agent loop.

Phase 5 — #112's prompt half, then #113's router. #112 is the smaller of the
two and its pre/post/onError hooks exercise the provider layer at low
blast radius. #113 comes last because its Approach B (session operations,
force-detach, resume, mcpx install) depends on #76 and on settling what a
session even is (#6, #78), and its router cannot be better than the operation
surface it routes to.

Explicitly deferred, from #113 itself: arbitrary provisioning ("install any
language/tool/framework/library, clone whatever repo" by prompt) is the only
genuinely agentic operation in the theme and #113 defers it pending a
confinement answer. The declared-dependency and managed-provisioning rungs
below it belong with the runtimes-and-dependencies tracker (#103, #104), not
here.

Ease / impact

Issue Ease Impact Note
#186 S med one definition of "close" for search, diagnostics and the launcher; fixing a false positive once fixes it everywhere
#109 M (S for tags + typos alone; M for the full lexical ladder; L if the semantic rung is included) high "search is the entry point to zero-context discovery, and a miss there costs an agent a full catalogue load"
#111 L overall; the first two items (wire diagnose.CallError — now #116's, in flight — and add call frames) are S and should ship independently of everything else here high "the difference between 'it failed' and 'here is what worked, here is exactly what was wrong, here is the one-line fix'"
#185 M med (high once #111, #112 or #113 implements a dial) one clamp in the resolver instead of one per dial
#114 L overall; the tailscale-unblocking toolViews.from/pin/hide is S–M, script-backed tools M, virtual cross-server namespaces M–L, spec generation L high "turns mcpx from a router into a place where a personal tool surface is composed, and script-backed tools alone make recipes first-class"
#115 M (S for richer metadata + the four example declarations — registry dedup struck, see #179; M for mcpx registry add end-to-end and the doctor recommendation; M for the feedback/miss store) medium-high "the doctor recommendation and the miss log are the parts that keep paying; the four servers are a day's config each once adapters are the route"
#110 L (M for the Provider interface + one provider + settings; L including profiles, plugin backend and local sampling answers; XL if mcpx-as-an-OpenAI-proxy is in scope — it should not be, split it) high "every other issue in this theme depends on where the model comes from"
#112 M (S for the deterministic half — much of it already ships as script.* launcher phases, so what remains is exposing them per call with a typed context; M with prompt hooks and effects; L if stop/resume gets its own machinery rather than reusing tasks) medium-high "what makes one script file portable across environments without the script knowing where it runs, which is the same goal #40 had for artifacts"
#113 L overall; the session/detach operations are M, the prompt-routing layer is M given /v1/intent exists, mcpx install is M, and provisioning is L–XL and should be split out medium-high "mostly it makes an existing surface reachable by people who do not have the ops table memorised, which is the actual complaint"

Warnings

Related

Related: #177 (cross-cutting: a promise and a behaviour that disagree), #173 (extensibility), #174 (surfaces). #116 (diagnose.CallError built, tested, never called — rung 0 of
#111, in flight, claimed by the cross-cutting "a promise and a behaviour that disagree"
tracker, referenced here and not a child), #179 (registry search gaps; disproved
#115's dedup premise), #102 (an adapted binary is not script-callable — same
tracker, and the structural reason behind #83 which #114 builds on), #83
(tool sources, namespaces and collision rules — owner of #181 collision 4), #81
(hook vocabulary — owner of collision 2), #6 (event store — the home for #115's
miss records and #113's session resume), #40 (closed, fixed in #57: artifacts
and ExecOptions — the vehicle for #111's proposed scripts and the home for
#112's hooks; "not a new method, an option" is the governing precedent for this
whole tracker), #41 (closed, fixed in #58: diagnose, recipes, /v1/intent,
elicitation defaults — #109, #111, #112 and #113 are all direct continuations
of it), #47 (opencode v2 plugin — ctx.generate.text is one of #110's
backends), #48 (harness-free plugin core), #52 (closed, fixed in #182: e2e
daemons are now stopped via the info files and exit after 60 s idle), #76 (CLI
for /v1-only ops — a hard prerequisite for #113; in flight), #77 (protocol
follow-ups — error-code renumbering in 2026-07-28 affects #111's -32602
catch, and Sampling's deprecation belongs there too), #78 (daemon state and
cache correctness — the schema-cache trap already silently disabled the
destructive-call policy once), #79 (faster CLI and exec — search must stay
instant and hooks must not regress exec latency), #80–#88 (extensibility and
surfaces; #83 in particular is the design #114's script-backed tools and #102
both belong to), #159 (docs that contradict the code — docs/consumer.md's
provider recommendation is now an instance), #172 (undeclared MCPX_*
variables — every model.*, repair.* and hook setting proposed here must go
through the one registry).

Security/auth deferred; see tracker.

Sub-issues

Sub-issues

5 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. developing-today commented on Oct 28, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    History carried over from dezren39/darwin-nix#176 (verbatim, oldest first):


    @dezren39 · 2026-09-30T11:57:54Z

    Issues pass (2026-09-30, at 05c78b2).

  3. added
    enhancement
    queue/queued
    status/needs-triage
    on Oct 28, 2026
  4. added
    work/assigned
    queue/claimed
    status/in-progress
    and removed
    status/needs-triage
    queue/queued
    on Oct 29, 2026
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  6. 200 remaining items

  7. developing-today commented on Nov 27, 2026

    @developing-today
    Contributor

    Fresh revalidation (sub-issues API): tracker #1891 stays OPEN — 5 of 9 children closed (#1904, #1902, #1923, #1933, and #1936 newly closed since the 2026-11-17 pass); 4 remain OPEN (#1925 provider layer, #1927 checking/refusing ladder, #1929 lifecycle hooks, #1931 administration by intent), each carrying its own work. No tracker-level follow-up; no new packet.

  8. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    Lane 1952-N triage re-check — tracker stands, no tracker-level slice

    Fresh verification this run (sub-issues API + per-child reads): #1891 remains a valid open parent tracker. Children: 5 of 9 CLOSED (#1904, #1902, #1923, #1933, #1936); 4 OPEN, each carrying its own work — #1925 (provider layer, status/triaged), #1927 (checking/refusing ladder, status/triaged), #1929 (lifecycle hooks, status/triaged), #1931 (administration by intent, status:in-review; its slice 1 already landed and the remainder is routed). No held/user labels on the tracker or the children, and no unclaimed tracker-level work exists — the tracker closes when its children close, per the triage of record (tasks 2786/14844/18160/19625 and the 2026-11-27 revalidation comment 7207676187).

    Disposition: task 26011 parked with a non-person resume condition — re-triage only when one of #1925/#1927/#1929/#1931 closes or changes state.

  9. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor
    🤖 **Agent note** · triaged (lane oc-code-02, queue task 26011, 2026-11-28 fresh-verify)
  10. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    Fresh revalidation (sub-issues API + per-child reads): tracker #1891 stays OPEN and valid — 5 of 9 children CLOSED (#1904, #1902, #1923, #1933, #1936); 4 remain OPEN (#1925 provider layer, #1927 checking/refusing ladder, #1929 lifecycle hooks, #1931 administration by intent). All four open children carry routing status labels (status/triaged on #1925/#1927/#1929; status:in-review on #1931); no label/state changes since the 2026-11-28T06:30Z pass. No tracker-level landable slice; no new packet. Parking task 26011 with resume condition: re-triage when a child closes or changes state.

  11. added
    queue/claimed
    work/assigned
    status/in-progress
    on Nov 28, 2026
  12. added
    queue/claimed
    and removed
    queue/claimed
    on Nov 28, 2026
  13. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · re-triage after child change — lane 2222-E (delta PRESS, queue task 26011)

    Fresh verification this run:

  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census 2026-11-29 (lane CEN-C02) — rechecked firsthand.

    State: OPEN tracker for the mcpx AI layer + search. Children re-verified today: 5 of 9 CLOSED (#1902, #1904, #1923, #1933, #1936); 4 OPEN, each carrying its own routed work — #1925 (provider layer; its model-layer slice landed 2026-11-28 as PR #16611, remainder = script-side generate per the settled contract), #1927 (checking/refusing ladder; model-backed rungs gated on #1925 + #1929), #1929 (lifecycle hooks; remainder = slice 3 via child #15845), #1931 (administration by intent; remaining ops slices unbuilt).

    No tracker-level landable slice exists; the tracker closes as its children land. The body's ordering rule still governs the children: deterministic halves first, then the provider layer's decision, then model halves. Labels/priority: kind/enhancement + priority/normal confirmed correct by this census.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): full re-read (body, labels, all comments, edges) in the CODE-6 recovery pass. STRENGTHS: tracker with accurate child accounting (5 of 9 children closed; open children #1925/#1927/#1929/#1931 — I validated their priority bands in this same pass, resolving two same-day dual-band collisions). PRIORITY VALIDATION: priority/normal, single, correct for the parent tracker. FIXES I APPLIED: none needed here. REMAINS: the four open children; no Drewry decision needed.

  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 census pass (group code-01409-03205): rechecked live state, body, labels and recent comments firsthand via fleet gh immediately before editing.

    Strengths: detailed body (19319 chars) with context a picker-up can start from; Children + Proposed order sections serve as the deliverables list (in-substance equivalent of acceptance criteria); single taxonomy priority band (priority/normal) — verified against live labels; kind label present (kind/enhancement).

    Gaps found: bare non-taxonomy enhancement label duplicating kind/*.

    Actions taken this pass: labels: +[] -['enhancement'].

    Priority: priority/normal — checked against content, unchanged (no reprioritization). No closing keywords used; issue left open.

  17. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Check-in — fleet monitor

    This item carries queue/claimed + work/assigned + status/in-progress, but its last visible activity was 2026-11-29T17:27Z (~28h before this run) and it carries no effort/* label (default class s, 2h, per the lifecycle protocol — check-in threshold ~1.5x is long past).

    Holder: please checkpoint, park, or hand off on this issue — a fresh agent note with current state and next step is enough to clear this flag. If the holding run has ended, say so and the monitor will requeue it.

    🤖 Agent note · handed off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic/mcpx-platformkind/enhancementpriority/normalqueue/claimedsource/creatorstatus/in-progresstask/triagework/assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions