GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — mcpx: administration by intent — finish the operation surface, then route a sentence to a declared operation · Issue #1931 · developing-today/code Open 1 / 11 of 1 issue completedOpen 1 / 11 of 1 issue completed Copy link Labels enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementsource/creatorFiled by the new-issue-creator jobstatus:in-reviewtask/triageQueue packet kind: verify, reproduce, and route this item Milestone DescriptionRelocated from dezren39/darwin-nix#113 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: #176 Summary"Tell mcpx to do a thing and it tries its best" — administration by intent rather than by remembering which of sixty operations does what. Most of the specific operations listed in the note already exist, and the ones that do not should be built as ordinary declared operations first, because the ops table is the thing that makes them reachable from every surface at once. The prompt layer on top is then a router from a sentence to an operation, not an interpreter that invents behaviour — which also answers the note's own parenthetical, "(same interface for this and clients? plugins?)": mcpx already solved that, and the answer is the ops table. The second bullet — provisioning arbitrary languages, tools and repositories — is a genuinely different and much larger problem, and is treated separately below. Original notes
Current state (what mcpx does today, with file refs)The "same interface" question is already answered architecturally. One ops table ( Against the note's list:
Also relevant: #76 already tracks the operations that exist on ApproachesApproach A — least recommended: a
|
| level | what it is | verdict |
|---|---|---|
| declared dependencies | a script header declares // @dep npm:zod@3, // @dep py:httpx; mcpx verifies resolvability in preflight and reports precisely what is missing |
do this; it is deterministic, matches the existing @param recipe-header convention, and makes the failure legible instead of a runtime import error |
| managed provisioning | mcpx materialises the declared dependencies into the run's workdir — a lockfile, a per-run cache keyed by the existing content-addressed workdir scheme, uv/bun install under the hood |
plausible, scoped, cacheable; a real feature with real value, worth its own issue — #103/#104 under #175 are where it lands |
| arbitrary install / clone by prompt | a model decides what to install and runs a package manager or git clone |
the only genuinely agentic operation in this whole theme. If it happens at all it should be a recipe — a saved, reviewable script exposed as an operation with its own confirmation — not an unnamed capability of the prompt router. And it should run somewhere disposable; the daemon's host is not that. |
Recommended split: declared dependencies now, managed provisioning in #103/#104, arbitrary provisioning deferred and reconsidered only after the confinement question has an answer.
3a02ea3 to 4371899 #6 (event store) and fix(deps): update rust crate leptos_router to v0.8.17 #78 (daemon state correctness).Destructive/Irreversible annotations on ops belong in this issue or in the ops-table work Update Rust crate clap to 4.5.4 - autoclosed #76 is already doing? Probably Update Rust crate clap to 4.5.4 - autoclosed #76 — flag it there.internal/api/ops.go:59-67). What is open is whether every op is marked correctly — an audit that belongs with Update Rust crate clap to 4.5.4 - autoclosed #76, which is regenerating the CLI from the same table.intent --scope ops be allowed to chain operations ("add this server then refresh")? Sequences multiply the blast radius; a plan-then-confirm flow handles it, but it needs a transaction story for partial failure.mcpx install: which harnesses, and does the plugin install itself? build(deps): bump actions/checkout from 3 to 4 #47 owns the plugin half (Bump rustls-webpki from 0.100.1 to 0.100.2 in /sources/pavex/examples/realworld #44 is closed, fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 880be56 #53: the plugin needs no binary).uv, git and bun as adapter servers) than by anything bespoke? That would make "clone whatever repo" a declared tool with declared parameters and no shell escape — internal/adapter's stated design goal is exactly "not a general shell escape". Likely yes, and it is cheap.Ease 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 · Impact medium-high — mostly it makes an existing surface reachable by people who do not have the ops table memorised, which is the actual complaint.
Depends on / related: #76 (hard prerequisite, in flight with SURFACES: CLI parity for /v1-only ops — the same rule, and the table the op annotations live in), #111 (owns the autonomy dial plan must adopt — #181 collision 3), #185 (owns ClampedBy — collision 5), #41 (closed, fixed in #58: /v1/intent, recipe matching, elicitation defaults — this extends all three), #6 (event store, for session resume), #78 (daemon state/cache correctness), #5 (config chain, for persist scoping), #52 (closed, fixed in #182 with stop --all over the daemon info files and a 60 s idle exit — existing operations, so it no longer argues for the session operations here), #103/#104 (managed provisioning). Siblings: #110 (the router's model), #112 (the dependency-provisioning example), #115 (intent --scope ops is what acts on its feedback).
Security/auth deferred; see tracker.
History carried over from dezren39/darwin-nix#113 (verbatim, oldest first):
@dezren39 · 2026-09-30T07:21:52Z
Integration pass. Placed in the DAG rooted at #181.
d956689 to d460fcc #109 Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110 Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 Update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [SECURITY] - autoclosed #112 Update checkmarx/ast-github-action digest to 6c56658 - autoclosed #114 Update github.com/charmbracelet/promwish digest to 6c16e8f - autoclosed #115@dezren39 · 2026-09-30T07:27:55Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
#111's repair.level, #112's hook effect, and #113's prompt.mode: plan are the same dial. Settle it in #111, which is the earliest of the three. Otherwise a user learns three vocabularies for one concept.
Also on: #111 #112. Nobody currently owns this.
@dezren39 · 2026-09-30T07:28:02Z
Integration pass -- cross-theme collision. Surfaced only when the themes were put side by side; the authors of these issues could not see each other's work. Recorded at the root in #181.
ClampedBy is a settings-registry feature with no owner#111 proposes floor/ceiling clamping -- a daemon sets a maximum, a caller may lower but not raise -- and #112 and #113 both need it. It currently exists only as a paragraph inside #111. It is an internal/settings capability, not a repair feature; whoever reaches it first will implement it, and the other two will implement it again differently.
Also on: #111 #112 #172. Nobody currently owns this.
@dezren39 · 2026-09-30T07:29:06Z
Integration pass — a line from the user's notes that no issue was quoting.
A coverage audit of both source notes files against all 113 issues in this repository found
exactly one non-empty line with no home: the paragraph that closes the first notes file. It is an
instruction rather than a feature, which is why every writer obeyed it and none of them quoted
it. Recording it here, and canonically at the root in #181.
in some places i used new api endpoints and names but dont take anything i said as authoritative direction, its the idea or vibe that matters, the concept. when possible don't add new endpoints add settings or options, flags, conventions or other best practices way to handle.
It lands on this issue in particular because this is the one issue whose entire argument is that
form. The notes asked for "prompt-based served endpoints"; this issue answers with the existing
ops table plus a router, rather than a dozen hand-written /v1/admin/* routes. That is the rule
being applied, so it should be visible here.
Worth keeping in view while implementing: internal/api/ops*.go declares an operation once and
generates the route, the MCP tool and the OpenAPI entry from it, and internal/api/parity_test.go
already fails if a route exists without a declaration. Declaring more operations is cheap;
hand-writing endpoints is what the guard test is there to stop.
@dezren39 · 2026-09-30T11:06:09Z
Collision ownership (issues pass, 2026-09-30, at 05c78b2). #181 listed these cross-theme collisions with no owner. Each now has one:
| #181 row | Collision | Owner | What the owner decides |
|---|---|---|---|
| 3 | three autonomy dials (#111 repair.level, #112 hook effect, #113 prompt.mode: plan) |
#111, via a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (in flight; linked here when it merges) |
One dial vocabulary; #111 carries it because it is the earliest of the three. The ceiling mechanism is #185. |
| 5 | ClampedBy -- a daemon ceiling a caller may lower but not raise |
#185 (new) | A settings-registry capability, owned by its own design issue under #176. #111, #112 and #113 consume it. |
Where this issue is the owner, the decision is made here; where it is not, it adopts the owner's decision rather than making its own.
@dezren39 · 2026-09-30T11:57:47Z
Issues pass (2026-09-30, at 05c78b2).
Parent: #176.Op already has Admin, Mutating and Destructive (internal/api/ops.go:59-67). Op.Annotations() (:654-667) maps them to MCP readOnlyHint, destructiveHint and idempotentHint. Five ops are marked destructive: restart, shutdown, servers_remove, artifact_delete and ask_abandon. Corrected in place. What remains is for the router's gate to read them, plus an audit of coverage (with Update Rust crate clap to 4.5.4 - autoclosed #76). The matching open question is struck and restated.mcpx connect does not exist. The command is mcpx registry search|show|add (internal/cli/registry.go:15). Fixed in the table.d956689 to e7457f6 #52 is closed (fixed in Phase 5: tag event bodies must travel with the event #182 by stop --all over the info files and a 60 s idle exit). Those are existing operations, so it no longer argues for the session operations here. Related: updated. Bump rustls-webpki from 0.100.1 to 0.100.2 in /sources/pavex/examples/realworld #44 is marked closed (fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 880be56 #53).prompt.mode: plan defers to Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111's dial vocabulary (via the SURFACES decision record) and to Phase 5: who may clear a tag claim #185's ceiling. The mode names are kept as input.d956689 to 062245a #103/Bump tracing from 0.1.38 to 0.1.40 in /sources/pavex/examples/skeleton #104. Siblings are named by number. Label design added. Ease/Impact unchanged (L / medium-high).@dezren39 · 2026-09-30T16:58:19Z
Decided (SURFACES, 0002-autonomy-dial, merged in #228).
What changes in this issue:
prompt.mode: plan is prompt.autonomy: propose on the shared dial. The shipped prompt.mode: script is propose and run is run; the setting is renamed with no alias (no users). An unknown value is rejected -- today plan silently means script.run still passes every consent gate, so a destructive operation still asks.prompt.mode from the environment, --prompt-mode or PUT /v1/settings is ignored, because the daemon reads a private settings set once at start (daemon/consumer.go), and the PUT answers applied: true anyway. The rename must read the policy per request./v1 operation gets a CLI command generated from the ops table, so the intent router's vocabulary is the whole table.@dezren39 · 2026-09-30T19:35:57Z
Follow-up: the rename and the bug from the decision comment above are done in #266. prompt.mode is prompt.autonomy: propose|run (MCPX_PROMPT_AUTONOMY, --prompt-autonomy); the body field on /v1/intent and /v1/recipes/{name}/run is autonomy, and an unknown value such as plan is a 400. The daemon now resolves the prompt/recipe policy per request, so a caller's env, flag or PUT /v1/settings reaches it. autonomy.max/ClampedBy are not added yet: per 0002 they land enforced with a refusal test, when something consumes them.
@dezren39 · 2026-10-28T22:27:15Z
Triage verdict (task 2156, repo-health-nix-pilot): CONFIRMED + RELOCATED — the ops table is finished for the operations that existed, but the five gaps this issue names are still gaps, and the sentence-to-operation router does not exist. Implementation routes in developing-today/code; no fix packet in this repo.
Verified against current main on both sides (nix 224c7b738e88c7a8e5d406987a7d88257e229db2, code d2cb60fe8e08cd6fee149b930187b610299c1fa7):
enhancement, design — no hard-stop labels. Parent tracker Nix Playwright E2E suite fails after vendoring dependencies #176 is OPEN.pkgs/mcpx at HEAD; the extraction plan (planning/plans/mcpx-extraction.md, steps 4–5, lab-ops-hub container crawler accepts inet_aton IPv4 spellings (127.1, 2130706433, 0x7f.1) — loopback SSRF bypass in validate_crawl_url #468) records the build switch and deletion done 2026-10-19, and this repo now only builds mcpx from the pinned code rev.internal/api/ops*.go, one table generating HTTP/MCP/OpenAPI), and the gaps it named are still exactly gaps:
session_release (internal/api/ops.go:527, POST /v1/session/release) — releases, does not kill, as the issue said.ops*.go or the daemon routes.internal/daemon/server.go:1244, a connection resuming, not a session revival operation).install command in the CLI dispatch/manual.POST /v1/intent (internal/api/ops_consumer.go:103) is still "A request in words, a script back" — it matches a recipe or generates a script via sampling; it does not route a sentence to a declared operation, and per this issue's own ordering it should not until the missing operations exist as ordinary declared operations first.Route: no small_fix packet in dezren39/nix — this repo holds no mcpx source to fix. The scoped order the issue itself prescribes (declare the missing session operations as ordinary ops first, router last) belongs with the source in developing-today/code, referencing #113, via the #309 relocation pass; per the cross-repo rule, do not re-file it there. #113 stays open on the nix side until implemented there or transferred. The second bullet (provisioning arbitrary languages/tools/repos) is the separate, larger problem the issue already splits out — nothing in this triage changes that split.
🤖 Agent note · picked up
pkgs/mcpx, and the implementation follow-up. No implementation in this task.Code-side triage of the relocated issue (was dezren39/darwin-nix#113). Revalidated fresh at developing-today/code main c58507a3630e1a5a4935b3279a61c7fb59e3c65b (2026-10-29).
enhancement only before this task; no held, user/owned, do-not-merge or do-not-auto-edit. Re-home tracker mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309 is open; re-homed parent mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891 (was nix#176) is open.gh search issues/prs for administration/intent routing returns nothing else).Searched every open app/mcpx issue plus the terms ops table, intent, prompt, session, install, administration, session inventory holders pid:
/v1/exec leaves session-scoped servers running; mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891 is the re-homed AI-layer tracker. None covers the deterministic operations or the router.GET /v1/sessions, force-detach, session kill or mcpx install. Nothing to close, no two-way links needed.pkgs/mcpx — the gaps are still exactly gapssession_release (internal/api/ops.go:527, POST /v1/session/release; docs/parity.md:105). There is no GET /v1/sessions.ops*.go or the daemon routes.POST /v1/intent (internal/api/ops_consumer.go:103) still matches a recipe or generates a script; its params are prompt, autonomy, placeholders, session — no scope/ops candidate class.pool.Status() / InstanceStatus (internal/pool/pool.go:1250-1302) reports id, pid, holders, key, calls, uptimeSec and idleSec. Generated CLI commands for /v1 operations already exist (internal/cli/opcmd.go), so a new op reaches CLI/MCP/OpenAPI without hand-writing either.Two numbering corrections kept for the record: the body's Parent: #176 is nix numbering — the re-homed tracker is #1891 (root #181 → #1900); and its hard dependency #76 (CLI generated from the ops table) has no re-homed issue yet — that is owed by the #309 relocation pass, though the generator already ships (internal/cli/opcmd.go, docs/parity.md).
The issue prescribes deterministic operations first and the router last. The queue's fix key for issue #1931 is now used by the first slice, so the remainder must be split into child issues (one fix key each) rather than re-enqueued under #1931:
GET /v1/sessions (session inventory), reusing pool.InstanceStatus. No design question is open on it, and it is what a router or a human needs before kill/detach make sense.mcpx install/harness registration, then intent --scope ops routing over the whole table with the autonomy/confirmation gates this issue specifies.No implementation was done in this triage.
🤖 Agent note · done (triaged)
Merge pull request #14246 from developing-today/queue/22381-1931-sess…
agent-note:v1
task: 24915
lane: any-xalthakfnckkeelmbdblpaknikafidpebfbipf
state: done
worker: xaltha
finding: Triage revalidated 2026-11-26 (queue task 24915, coverage reconciliation import). #1931 remains OPEN and live; completed as triaged, no duplicate implementation started.
Fresh verification by lane xaltha, 2026-11-26:
enhancement, epic/mcpx-platform, status:in-review, task/triage; no held / user-owned / do-not-merge labels. No open PR references mcpx: administration by intent — finish the operation surface, then route a sentence to a declared operation #1931, and no live claim by another lane was found in the issue comments.sessions_read, GET /v1/sessions) merged 2026-11-04 at 373d23b; the op is still declared in pkgs/mcpx/internal/api/ops.go on current main.pkgs/mcpx/internal/api/ops*.go): no session kill (DELETE /v1/sessions/{id}), no force-detach (POST /v1/servers/{name}/detach), no session resume, no mcpx install/uninstall/upgrade self-management, and POST /v1/intent still targets scripts/recipes only — it has no scope parameter routing to declared operations. The sessions_read op description itself notes killing, detaching and resuming do not exist yet.Admin/Mutating/Destructive confirmation gates.Verdict: triaged — issue is valid, current, and correctly scoped as an epic; it stays open for the implementation slices above, each of which is a full slice (not a small edit) and should be taken as its own queue task.
🤖 Agent note · done (triaged) — 1837-A / task 25377
sessions_read, GET /v1/sessions); remaining slices (session kill, force-detach, resume-as-reattach, self-management, intent router over declared ops) are still unbuilt and are each a full implementation slice, not a small edit. Nothing has changed since that verdict (issue updatedAt still 2026-11-26T23:49:12Z, the 24915 comment).🤖 Agent note · done (triaged) — task 25770
sessions_read is still declared in pkgs/mcpx/internal/api/ops.go; no session kill, force-detach, resume, mcpx install, or intent scope param exists in ops*.go.sessions_read, GET /v1/sessions); remaining slices (session kill, force-detach, resume-as-reattach, self-management, intent router over declared ops) are still unbuilt, each a full slice, not a small edit. Nothing has changed since that verdict.