GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run · Issue #1927 · developing-today/code

mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run #1927

New issue
Copy link
New issue
Copy link
Open
Open
mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run#1927
Copy link
Labels
enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementsource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/fixhas a fix task queued
Milestone
mcpx platform program

Description

@dezren39
dezren39
opened on Oct 28, 2026
Issue body actions

Relocated from dezren39/darwin-nix#111 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

Today a script that calls a tool wrongly fails at the wrong moment: the error arrives from a server, halfway through, after the side effects of every call before it. --diagnose-preflight (#41) fixed the statically-detectable half. This issue is the rest of it — a graded ladder of what mcpx does when a request is probably wrong, from "refuse it deterministically" through "ask the caller" to "rewrite it and run the rewrite", with the escalation policy as a setting rather than a hard-coded behaviour.

The unifying idea: an execution outcome should be a structured verdict, not a boolean. "It failed" loses the fact that eleven of twelve calls succeeded, which of them had side effects, what specifically was wrong with the twelfth, and what the minimal fix is. mcpx already computes most of those facts and throws them away.

Original notes

  • mcp-owned opencode api support
    • receive errors check io and elicit/prompt caller, or fix-retry, clean up return what worked with explanation of what happened, pass-through
    • check inputs, reject any request with/without reason, prompt 'hey are you sure? you did this and that maybe doesnt do what you think', 'hey i mean this probably cant work because y', or it can look at a script and say 'oh, they used search instead of query, query is only thing that makes sense here and they used the args for query, i'll rewrite the script and run that instead (or offer alternative ask them), user can just tell it what to do and then mcpx does the ai part/script-selection, or write a lazy psuedocode script mixing 4 languages and calling packages from different ecosystems and it puts together best it can with some guidance/instruction/accuracy/precision/strictness either decline, propose script ask for approval, emit scriptfile and return fileid, decide to run first part first thats safer, implement a dry-run and try that, disregard users attempt and exec/make/suggest what they actually want.
      • need ways for server and client both to control their section maybe need auth

Current state (what mcpx does today, with file refs)

A surprising amount of the deterministic half already exists and is not yet connected.

piece where state
static scan of a script for tool calls internal/diagnose, internal/preflight works; --diagnose-preflight on by default for run/exec
schema history, so "when did this change" is answerable <state>/catalog-history.json, internal/diagnose works; appends every flattened-shape change per tool
a missing-required-argument diagnostic with a minimal fix internal/diagnose works — demo.echo: the argument object is no longer optional: message is required + minimum: await demo.echo({ message: "" })
the upstream half — catching a -32602 from a live call and diagnosing it diagnose.CallError (internal/diagnose/diagnose.go:483 at 05c78b2) exists, tested, and at 05c78b2 nothing outside tests calls it. Wiring it is #116, in flight with SURFACES; when it lands, rung 0 below is done and the structured diagnostic field it attaches is the one every rung here reads rather than redefines. docs/consumer.md §1: "the code path that would — the exec service catching a -32602 from a tool call — is being rebuilt concurrently. The signature is deliberately a plain struct in, diagnostics out." Wiring it is one call.
destructive-call confirmation elicit.confirmDestructive (internal/settings/consumer.go:47), internal/elicit/policy.go works, off by default; fires on destructiveHint: true; an unanswered confirmation refuses the call
disambiguation elicitation elicit.disambiguate works, off by default; unanswered takes elicit.disambiguateDefault: new
--typecheck deno check, Deno only ~80ms repeat, ~400ms new program (#79 proposes making it default)
recipe matching + intent-to-script /v1/intent, internal/recipes works; generation off by default; generated script is diagnosed before it runs
structured exec output execsvc.Frame (internal/execsvc/execsvc.go:145) start, log, emit, stdout, artifact, result/error, end — a per-call record is not among them
artifacts #40 a script can emit a file and return an id rather than content

Known limits the scanner already states, and which any repair feature inherits: it does not parse TypeScript, a dynamically assembled call is invisible to it, a spread in an argument object silences the missing-argument check entirely, and only configured namespaces are diagnosed. Those are correct failures — a diagnostic about a call nobody wrote is worse than none — and repair must fail the same way.

Approaches

Approach A — least recommended: send the error and the script to a model and run whatever comes back

The literal reading of "i'll rewrite the script and run that instead". One prompt, one retry loop, done.

Why not:

  • It runs with the user's credentials. docs/consumer.md's trust rule — return the script by default, run only on explicit request — exists for exactly this. A silent rewrite-and-rerun is the single highest-blast-radius thing in this whole theme.
  • Retry is not idempotent. A script that failed at call 9 of 12 has already done 8 things. Re-running the whole script from the top repeats them. Nothing in mcpx currently knows which of those 8 were safe to repeat; destructiveHint is the only signal and it is optional and sparsely set.
  • It skips the free answer. The most common failure is a schema change, and mcpx can already name it exactly, with the date, for nothing. A model rewording that is pure cost. docs/consumer.md §"Not built" says this directly: "the value is in the error being specific, not in a model rewording it."
  • It has no confidence signal. "they used search instead of query" is a high-confidence, near-deterministic fix. "mixing 4 languages and calling packages from different ecosystems" is not. Treating both as one operation means either refusing the easy case or running the hard one.

Approach B — middle: a deterministic repair ladder, no model

Everything the note asks for that needs no model at all, which is more than it looks:

  1. Wire diagnose.CallError — this item is chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116 (in flight), listed here because the ladder starts from it. The exec service catches -32602 from a tool call and attaches the diagnostic to the failing call. This is the single highest-value item in the issue and it is one function call; it is listed first for that reason.
  2. Per-call records in the exec stream. A new Frame type — call — carrying server, tool, arguments hash, duration, ok/error, and destructiveHint. That makes "clean up return what worked with explanation of what happened" mechanically possible: the caller receives what succeeded, in order, with the failure and its diagnostic attached to the one call that failed, rather than a string. Owns Phase 3: sync, blob gate, and relays #181 collision 7: this issue extends the documented order in docs/exec.md:137 ("The frame order, and why it is the order") first, and states the rule every new frame kind follows — a declared placement relative to result, listed in the documented order, and a test that compares the documented order with the order actually emitted. Update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [SECURITY] - autoclosed #112's hook frame is added under that rule, not beside it.
  3. Deterministic near-miss detection. When a call fails with unknown-tool or unknown-argument, mcpx already has the catalogue and can compute the edit-distance-1/2 candidates: search → query, olderThan → olderThanDays. That is exactly the note's example, and it needs no model — it needs the same typo tolerance the search issue proposes, applied to error messages. When there is exactly one candidate within distance 1 and the supplied argument names match the candidate's schema, the fix is provably the intended one. Correction (issues pass, 2026-09-30): the note's own examples are not typos — search→query is edit distance 5 and olderThan→olderThanDays is 4, so no name threshold finds either. Two deterministic signals are needed: closeness for genuine typos, which is Phase 4: held application messages need a bound #186's shared matcher (Phase 3: sync, blob gate, and relays #181 collision 6; one definition for search, diagnostics and the launcher), and argument-shape fit for substitutions — the supplied argument names satisfy exactly one other tool's schema in the namespace, or a supplied name is a prefix of exactly one declared parameter. The second is this issue's; the first it calls.
  4. Argument validation before the wire. mcpx has every tool's input schema. Validating arguments against it locally turns a round trip and a server-side rejection into an instant, specific local error, and catches the extra-property and wrong-type cases the current preflight does not. (Note 2026-07-28 loosened inputSchema to any JSON Schema 2020-12 keywords, so the validator needs to be a real one, not a shape check.)
  5. Dry run. ExecOptions.dryRun: run the script with every tool call intercepted, returning a schema-valid synthetic result and recording what would have been called. The static scanner cannot see dynamic calls; a dry run sees all of them, at the cost of the results being fake. This is the note's "implement a dry-run and try that", it is deterministic, and it is independently useful for the prompt-hooks and recipe features.
  6. Safe-prefix execution. "decide to run first part first thats safer" — with destructiveHint and a read-only/idempotent annotation, mcpx can execute up to the first destructive call and stop for confirmation. elicit.confirmDestructive already does the per-call version; this is the batched one, and batching matters because four deadlines are four chances for a run to die half-configured (the same reasoning that made recipe placeholders one form).
  7. Refusal with a reason. internal/elicit already distinguishes cancel from decline; errors should carry a machine-readable reason code alongside prose, so a caller can branch on it. "reject any request with/without reason" is a request for structured refusals.

All of this is testable, free, offline, and reusable by every other feature in the theme.

Approach C — recommended: B first, then a strictly-graded model layer above it, with the grade as a setting

Build B. Then add the model-backed rungs, and make the thing that decides which rung applies a single explicit setting rather than a behaviour baked into each code path.

The escalation ladder, in order, each rung only reached when the one below produced nothing:

rung model? what it does
0 deterministic diagnostic no today's schema-change and missing-argument messages
1 deterministic near-miss no one candidate by #186's closeness or by argument-shape fit, argument names corroborate
2 explain yes a sentence saying why this probably will not work, attached to the error; changes nothing
3 warn / confirm yes "you did this and that, maybe doesn't do what you think" — raised through the existing elicitation broker with a default and a deadline, exactly as elicit.Ask already enforces
4 propose yes emit a rewritten script as an artifact (#40) and return its id; the caller reviews and runs it
5 repair-and-retry yes rewrite and re-run, only when the failure is provably side-effect-free or the caller opted in
6 reinterpret yes "disregard users attempt and exec/make/suggest what they actually want" — this is /v1/intent with the failed attempt as context, not a new feature

One setting governs how far it goes: repair.level (off | explain | confirm | propose | retry | rewrite), default explain, scoped per call so ExecOptions can lower it. The note's "some guidance/instruction/accuracy/precision/strictness" is asking for a dial; make it one dial with named stops, not five booleans. Owns #181 collision 3: this is one of three autonomy dials (with #112's hook effect and #113's prompt.mode: plan), and this issue carries the single vocabulary. The vocabulary itself is being decided in a decision record SURFACES is writing under pkgs/mcpx/docs/decisions/ (not merged at 05c78b2; linked here when it is) — the stops above are this issue's input to it, not the decision. The ceiling that stops a caller raising the dial is #185.

The delivery vehicle for rung 4 is already built. A proposed script is an artifact: artifact("repair.ts", src) returns an id, the caller fetches it, nothing large enters anyone's context, and POST /v1/recipes/{name} already exists to save a successful one as a reusable recipe. "emit scriptfile and return fileid" is #40 plus #41 wired together, not new machinery.

The pseudocode case is /v1/intent with a source, not a repair. "write a lazy psuedocode script mixing 4 languages and calling packages from different ecosystems and it puts together best it can" is intent-to-script where the intent happens to be written as code. It should route to the same generator, with the pseudocode as the prompt, and inherit prompt.mode: script — return the script, do not run it. Worth noting what makes this tractable in mcpx specifically and not elsewhere: the target language is fixed (TypeScript against the generated client), the tool surface is known and typed, and --typecheck plus internal/diagnose can verify the output before a human sees it. Multi-ecosystem package resolution is a different and much harder problem — see the environment-provisioning half of the self-administration issue.

On "receive errors check io". Before any model is consulted, the deterministic check is whether the transport failed rather than the call: a dead server process, a broken pipe, an expired credential, a timeout. Those look like tool errors to a script and have completely different fixes. internal/pool and /v1/health know which; the diagnostic should say "the server exited" rather than diagnosing an argument that was fine. This is cheap and should come before rung 0.

On "pass-through". Every rung must be defeatable. A caller that wants the raw upstream error, unmodified, with no mcpx opinion attached, sets repair.level: off and gets exactly the bytes the server sent. This is not a nicety — an agent harness doing its own error handling is actively harmed by a rewritten error, and mcpx's value proposition is that it does not surprise you.

On the nested bullet — "need ways for server and client both to control their section maybe need auth". Security is out of scope, but the non-security half of this is a real and separable design question: whose policy wins when the daemon and the caller disagree? internal/settings already has scopes (ScopeDaemon, ScopeCall, Hot) and elicit.confirmDestructive is deliberately ScopeDaemon — docs/consumer.md: "Whether a destructive call is confirmed is not a question with two correct answers depending on which process asked." The right generalisation is that each repair setting declares a floor and a ceiling: the daemon sets the maximum autonomy it will ever exercise, a caller may lower it but never raise it above the daemon's ceiling, and the resolved value plus which layer set it is reported in the response. That is a settings-registry feature (a ClampedBy field), not an auth feature, and it is worth having independently of any credential work. This paragraph is now input to #185, which owns the mechanism (#181 collision 5); this issue, #112 and #113 consume it rather than each implementing a clamp.

Recommended because rung 0 and rung 1 answer the common cases for free, because every model-backed rung degrades to the rung below it on failure rather than to nothing, because "propose" rather than "retry" as the highest default preserves the trust rule that already exists, and because one named dial is a thing a user can reason about where five independent behaviours is not.

Open questions

  • Should call frames be on by default or behind a capability, the way artifacts are (Options.Capabilities)? Default-on is more useful; it changes the stream shape for existing consumers.
  • Is there an idempotency signal better than destructiveHint? MCP tool annotations also carry readOnlyHint and idempotentHint; both are optional and sparsely set. A config-level per-tool override (like tags in the search issue) may be necessary for rung 5 to ever be safe.
  • Dry run semantics: what does a synthetic result look like for a tool with no outputSchema? Probably refuse to dry-run those rather than invent a shape.
  • Does repair need the session's history, or only the failing script? History makes rung 6 much better and is a large context and privacy increase.
  • How does a repaired script relate to the original in the artifact store — a parent link, a diff, or an independent id?
  • 2026-07-28 renumbers error codes (-32020..-32099 reserved for the spec). Does the -32602 catch need widening, and does resource-not-found's move from -32002 to -32602 change what a -32602 means? Overlaps fix(deps): update rust crate leptos to v0.8.22 #77. chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116 (in flight) has to take a position on this for rung 0 — which codes CallError reads as "the arguments were wrong" — and the ladder should inherit it rather than decide it again.

Ease · Impact · Related

Ease 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 · Impact high — this is the difference between "it failed" and "here is what worked, here is exactly what was wrong, here is the one-line fix".

Depends on / related: #116 (wires diagnose.CallError — rung 0; in flight), #186 (owns the near-miss matcher rung 1 calls — #181 collision 6), #185 (owns ClampedBy — collision 5), #41 (closed, fixed in #58: diagnose, CallError, recipes, intent — this is the direct continuation), #40 (closed, fixed in #57: artifacts as the vehicle for a proposed script; ExecOptions as the place dryRun/repair live), #79 (typecheck by default; repair depends on cheap validation), #78 (daemon state/cache correctness — the schema cache trap in docs/consumer.md silently disabled the destructive policy once already), #77 (error-code renumbering). Siblings: #110 (where rungs 2–6 get a model), #112 (onErrorPrompt is the user-supplied version of rung 2; adopts this issue's dial and frame rule — collisions 3 and 7), #113 (prompt.mode: plan adopts the dial), #109 (shares #186's matcher).

Security/auth deferred; see tracker.

Activity

Next
  1. developing-today commented on Oct 28, 2026

    @developing-today
    developing-todayBot
    on Oct 28, 2026 – with developing.today
    Contributor
    More actions

    CODE-853

  2. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

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


    @dezren39 · 2026-09-30T07:21:50Z

    Integration pass. Placed in the DAG rooted at #181.

    • Tracker: Nix Playwright E2E suite fails after vendoring dependencies #176 (the AI layer and search)
    • Siblings under that tracker: Bump build/buck/preludes/buck2-prelude from d956689 to d460fcc #109 Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110 Update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [SECURITY] - autoclosed #112 Update module github.com/jackc/pgx/v5 to v5.5.4 [SECURITY] - autoclosed #113 Update checkmarx/ast-github-action digest to 6c56658 - autoclosed #114 Update github.com/charmbracelet/promwish digest to 6c16e8f - autoclosed #115
    • Root: Phase 3: sync, blob gate, and relays #181
    • Proposed order: phase 6 -- the big bets, in dependency order

    @dezren39 · 2026-09-30T07:27:52Z

    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.

    Three autonomy dials, independently invented

    #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: #112 #113. Nobody currently owns this.


    @dezren39 · 2026-09-30T07:27:59Z

    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: #112 #113 #172. Nobody currently owns this.


    @dezren39 · 2026-09-30T07:28:07Z

    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.

    The edit-distance matcher has no owner

    #109's typo tolerance over tool names and #111's near-miss detection on a failed call are the same algorithm over the same corpus. Both issues mention the other; neither claims it. Written twice, they diverge, and search and diagnostics end up disagreeing about what "close" means.

    Also on: #109. Nobody currently owns this.


    @dezren39 · 2026-09-30T07:28:08Z

    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.

    The exec Frame ordering contract is extended by two issues independently

    #111 adds a call frame; #112 adds a hook frame with explicit before/after-result placement rules. docs/exec.md states the frame order as a contract. Neither issue knows about the other's placement rules, and no issue owns updating the contract.

    Also on: #112. Nobody currently owns this.


    @dezren39 · 2026-09-30T11:06:06Z

    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.
    6 the edit-distance matcher #186 (new) There are already two implementations (internal/diagnose/diagnose.go:438, internal/launcher/template.go:381) that disagree on transpositions; #186 defines one 'close' for search, diagnostics and the launcher.
    7 the exec Frame ordering contract, extended by #111 (call) and #112 (hook) #111 #111 extends docs/exec.md's order first and states the rule every new frame kind follows (declared placement relative to result, listed in the documented order, asserted by a test that compares documented and emitted order). #112 adds its kind under that rule.

    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:43Z

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

    • Added Parent: #176.
    • Collision ownership is now in the body. Owns Phase 3: sync, blob gate, and relays #181 collision 7: the frame-order rule, extending docs/exec.md:137, at item 2. Owns collision 3: the one autonomy-dial vocabulary, decided in the decision record SURFACES is writing under pkgs/mcpx/docs/decisions/. The repair.level stops are this issue's input to that record, not the decision. The floor/ceiling paragraph is now marked as input to Phase 5: who may clear a tag claim #185 (collision 5). Rung 1's closeness test is Phase 4: held application messages need a bound #186's (collision 6).
    • Correction to rung 1. The note's examples are not typos: search→query is edit distance 5 and olderThan→olderThanDays is 4, so no distance threshold finds them. Rung 1 needs two deterministic signals: Phase 4: held application messages need a bound #186's closeness for typos, and argument-shape fit (which tool's schema the supplied arguments satisfy) for substitutions. The second stays here. Rung 1 in the Approach C table is updated to match.
    • diagnose.CallError (internal/diagnose/diagnose.go:483) still has no caller outside tests at 05c78b2. Wiring it is chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116, in flight with SURFACES. Item 1 and the table point at chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116, and the error-code open question notes that chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116 has to take the rung-0 position on it.
    • Related: adds chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116, Phase 5: who may clear a tag claim #185 and Phase 4: held application messages need a bound #186, marks Bump openssl from 0.10.54 to 0.10.55 in /sources/pavex/examples/realworld #40 and Bump build/buck/preludes/buck2-prelude from d956689 to 6f75473 #41 as closed (fixed in chore(deps): bump build/buck/preludes/buck2-prelude from d956689 to 677e9eb #57 and chore(deps): bump rustix from 0.38.3 to 0.38.21 in /build/nix/setup #58), and names siblings by number. Label design added. Ease/Impact unchanged in substance (L / high). The S items note that CallError is chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116's; the Nix Playwright E2E suite fails after vendoring dependencies #176 table matches.

    @dezren39 · 2026-09-30T16:58:16Z

    Decided (SURFACES, 0002-autonomy-dial, merged in #228). #181 collisions 3 and 5 are settled here, as this issue's own text asked.

    What changes in this issue:

    • repair.level becomes repair.autonomy on the one shared dial off < advise < ask < propose < apply < run, default advise. Rungs map as: 0 and 2 → advise, 1 → propose, 3 → ask, 4 → propose, 5 and 6 → run (table in the record).
    • ClampedBy is an internal/settings capability, not a repair feature: Setting.ClampedBy, one daemon ceiling autonomy.max (not hot, default run). A request above the ceiling is lowered and reported, never refused. This issue consumes it rather than defining it.
    • The call frame's place in the exec stream (Phase 3: sync, blob gate, and relays #181 row 7) is fixed in 0001: interleaved with log|emit|stdout, before the single final result|error.
    • Rung 0 already shipped: chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116 was wired in Define server and per-world world capability ceilings #230, so a refused call carries a structured diagnostics field on /v1/call, mcpx call, --json and ToolError.diagnostics in scripts.

    @dezren39 · 2026-10-28T22:19:39Z

    Triage verdict (task 2152, repo-health-nix-pilot): PARTIALLY LANDED + CONFIRMED remainder, RELOCATED — rung 0 (wiring diagnose.CallError) is done in the new home; the rest of the graded ladder is unimplemented. Implementation routes in developing-today/code; no fix packet in this repo.

    Verified against current main on both sides (nix 224c7b738e88c7a8e5d406987a7d88257e229db2, code d2cb60fe8e08cd6fee149b930187b610299c1fa7):

    • Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 is OPEN with labels enhancement, design — no hard-stop labels. Parent tracker Nix Playwright E2E suite fails after vendoring dependencies #176 is OPEN.
    • The mcpx source no longer lives in dezren39/nix: no 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.
    • Landed since this issue was written: Approach B item 1, the highest-value rung. nix chore(deps): update github.com/developing-today-forks/charm digest to 15e844d - autoclosed #116 ("diagnose.CallError is built and tested but never called") is CLOSED, and in developing-today/code the daemon now calls it — internal/daemon/callerr.go:145 runs diagnose.CallError for a failed call and attaches the diagnostics to the /v1 error body (CallErrorBody.Diagnostics, callerr.go:50,172). Structured diagnostics on a live -32602 are therefore no longer missing.
    • Still unimplemented at code HEAD: Approach B item 2, per-call records — the exec frame kinds in internal/execsvc/execsvc.go:199-209 are still start/log/emit/stdout/artifact/result/error/end (plus artifact chunk/end); there is no call frame carrying server/tool/args-hash/outcome/destructiveHint. And there is no escalation-policy setting, structured-verdict outcome, or rewrite rung in internal/settings or internal/diagnose — the ladder above rung 0, and the model-backed rungs that depend on Bump build/buck/preludes/buck2-prelude from d956689 to 52604b1 #110's unsettled provider question, do not exist yet.
    • No re-homed equivalent of Bump checkmarx/ast-github-action from 2.0.19 to 2.0.23 #111 exists in developing-today/code; the relocation pass for the Nix Playwright E2E suite fails after vendoring dependencies #176 tree is still owed under mcpx: re-home the open mcpx backlog from dezren39/nix, with this repo as the single source #309, OPEN.

    Route: no small_fix packet in dezren39/nix — this repo holds no mcpx source to fix. The remaining ladder (per-call call frame first, then the deterministic near-miss/repair rungs via #186's matcher) belongs with the source in developing-today/code, referencing #111, via the #309 relocation pass; per the cross-repo rule, do not re-file it there. #111 stays open on the nix side until implemented there or transferred; do not close it for rung 0 alone — #116 already carries that credit.

  3. dezren39
    added
    enhancementNew feature or request
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    on Oct 28, 2026
  4. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  5. dezren39
    added a parent issue on Oct 29, 2026
    • mcpx: the AI layer and search -- where a model comes from, and everything that would use one (tracker) #1891
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  7. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 2823
    • Found via: queue claim
    • Task: Triage relocated mcpx issue (was mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run dezren39/darwin-nix#111): dedupe against code issues, confirm scope against current pkgs/mcpx main, enqueue implementation follow-up. No implementation in this task.
    • Expectation: effort class s — triage verdict posted, follow-up enqueued, labels truthful.
    • Links: queue task 2823
  8. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 2823 (triage)
    • Found via: queue claim
    • Task: Triage relocated mcpx issue (was mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run dezren39/darwin-nix#111): dedupe + scope confirmation against current pkgs/mcpx main, enqueue implementation follow-up.
    • Expectation: done — verdict below, follow-up task 3222 enqueued, issue stays open tracking the remaining ladder.
    • Links: follow-up queue task 3222 (small_fix: per-call call frames)

    Triage verdict — scope confirmed, partially already landed, remainder rescoped to the next deterministic piece

    Dedupe: no duplicate. Full-text searches across developing-today/code for the ladder, diagnose.CallError, dry-run and repair themes found related but distinct work only: #1769 (repair-autonomy doc/behaviour mismatch), #2083 (explainCall not applied to the CallAsk path — a rung-0 gap), #2173 (ClampedBy for the repair settings set), #2165 (repair-rate metadata validation). None covers this issue's ladder scope. Original dezren39/darwin-nix#111 is closed as moved.

    Scope check against current pkgs/mcpx main (2026-10-29, via GitHub API):

    • ✅ Rung 0 already landed: diagnose.CallError is wired — internal/daemon/callerr.go explains failed calls in Registry.Call and CallErrorBody carries structured Diagnostics + the upstream error. (One known gap remains, tracked separately as proxy-supervise: main() never runs when invoked via a symlinked path (~/code -> ~/git/code) — supervisor timer silently no-ops since 2026-10-27 #2083.)
    • ✅ The dial + ceiling already landed: repair.autonomy setting with the daemon ceiling in internal/settings/clamp.go (ClampedBy, with tests), internal/daemon/callerr.go repairAutonomy(), e2e ceiling tests, and docs/decisions/0002-autonomy-dial.md.
    • ❌ Not built: per-call call frames (internal/execsvc frame kinds verified: start/log/emit/stdout/artifact/result/error/end + artifact.chunk/end — no call), deterministic near-miss / argument-shape fit (no matcher in pkgs/mcpx), local argument validation beyond preflight, ExecOptions dry-run, safe-prefix execution, model rungs 2–6.

    Follow-up enqueued: queue task 3222 (small_fix) — Approach B item 2, the per-call call frame, which the issue itself flags as class S and independently shippable; it owns the docs/exec.md frame-order rule and the documented-vs-emitted order test. The remaining rungs stay tracked on this issue; the next triage/split pass should take near-miss + argument-shape fit next.

    Verification for the follow-up: pkgs/mcpx: go test ./... via CI on its PR.

  9. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    on Oct 29, 2026
  10. 107 remaining items

  11. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-k
    • Session / ID: queue task 12667
    • Found via: queue claim
    • Task: mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run #1927 remainder — structured refusal reason codes for mcpx refused calls (the only unlanded deterministic item; rungs 4–5 and the rung-3 model warning stay blocked on mcpx: where the model comes from — a provider layer mcpx owns, model profiles, and life after MCP Sampling's deprecation #1925/mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929).
    • Outcome: PR feat(mcpx): structured refusal reason codes for refused calls (#1927) #7352 opened. elicit.RefusalCode defined once in internal/elicit/refusal.go (confirmation_unanswered, elicitation_declined, elicitation_cancelled, confirmation_denied, confirmation_unavailable, annotations_unreadable); ErrNotConfirmed.Code set at all seven refusal sites in daemon/consumer.go; callErrorBody surfaces it as refusalCode. Laptop: elicit/diagnose/execsvc tests pass, full daemon package passes, new refusal tests cover unanswered → its code, declined → its code, confirmed call → no code. Task completed as pr_opened; CI pending on the PR.
    • Links: feat(mcpx): structured refusal reason codes for refused calls (#1927) #7352 · task 12667
  12. dezren39
    added
    epic/mcpx-platformReprioritization program epic (2026-11-12)
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  13. dezren39
    added this to the mcpx platform program milestone on Nov 12, 2026
  14. dezren39
    added
    kind/enhancement
    on Nov 12, 2026
  15. dezren39
    added 2 commits that reference this issue on Nov 16, 2026

    fix(mcpx): distinguish expiry and broker failure from cancellation an…

    55ec05b

    feat(mcpx): structured refusal reason codes for refused calls (#1927) (…

    67596fc
  16. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged (task 18173, lane code-d)

    Triage verdict stands with progress, re-verified fresh this shift (2026-11-17T02:18Z): issue #1927 is OPEN, no hard-stop labels, already triaged (task 12002 routing note, 2026-11-08).

    Progress since that routing: the last unlanded deterministic item — structured refusal reason codes, routed as task 12667 — is now landed: PR #7352 MERGED 2026-11-16T11:32:50Z. The earlier deterministic work (argument-shape fit, ExecOptions.dryRun, safe-prefix batch) landed in PR #5035 MERGED. So the deterministic ladder is complete.

    What remains on #1927 — rungs 4–5 (repair propose / repair-and-retry) and the rung-3 model-backed warning — is gated on two issues checked OPEN fresh today: #1925 (provider layer) and #1929 (lifecycle hooks). Those are the scoped gates; they carry their own work, so no new follow-on is enqueued here.

    Outcome: this task completes as triaged; issue #1927 stays OPEN as the ladder tracker pending #1925/#1929.

  17. dezren39
    removed their assignment
    on Nov 20, 2026
  18. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    Merged work, still open. Every pull request that references this issue has merged (#2615, #5035, #7352, #8632, #12117) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  19. dezren39
    removed
    status:in-review
    on Nov 22, 2026
  20. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Agent note · second-pass verify (task 21774, lane oc-code-06)

    Second-pass verdict fresh 2026-11-24 (main 9c2b4ad096e): issue stays OPEN as the ladder tracker; deterministic ladder complete, model-backed remainder blocked — no new packet routed.

    • Fresh state: mcpx: checking, refusing and repairing a request — a graded ladder from deterministic diagnostics to rewrite-and-run #1927 OPEN, labels enhancement/source/creator/kind/enhancement/status/triaged/task/fix/epic/mcpx-platform. No open PR references it (PRs mcpx: per-call 'call' frames in the exec stream (#1927 Approach B item 2) #2615, mcpx: #1927 deterministic remainder — dryRun, argument-shape fit, safe-prefix batch #5035, feat(mcpx): structured refusal reason codes for refused calls (#1927) #7352 merged; mcpx: cross-server virtual namespaces (#1933 slice 3) #8632, Fix local outcome hooks to include tool calls #12117 merged; none open).
    • Verified landed on main: per-call call frame (pkgs/mcpx/internal/execsvc/execsvc.go:333 + order test), dryRun (internal/execsvc/dryrun.go), structured refusal codes (internal/elicit/refusal.go, surfaced as refusalCode), repair.autonomy + ceiling (internal/settings/consumer.go:180, daemon/callerr.go:80-87).
    • Still missing: rungs 4–5 (repair propose / repair-and-retry) and rung-3 model-backed warning — no repair.*propose / retry implementation in pkgs/mcpx/internal.
    • Gates (fresh-checked OPEN): mcpx: where the model comes from — a provider layer mcpx owns, model profiles, and life after MCP Sampling's deprecation #1925 (provider layer) and mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929 (lifecycle hooks). mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929 already has its own pass-2 task 21775 in flight, so no duplicate routing from here.
    • Outcome: no follow-on enqueued; remainder waits on mcpx: where the model comes from — a provider layer mcpx owns, model profiles, and life after MCP Sampling's deprecation #1925/mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929. Completing task 21774 as verified-no-action.
  21. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 27, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · triaged (task 24917, lane code-h)

    Fresh triage 2026-11-27 (reconciliation retry after task 21774): issue #1927 stays OPEN as the ladder tracker; no new packet routed.

    • State: OPEN, labels enhancement/source/creator/kind/enhancement/status/triaged/task/fix/epic/mcpx-platform. No hard-stop labels. No open PR references it (PRs mcpx: per-call 'call' frames in the exec stream (#1927 Approach B item 2) #2615, mcpx: #1927 deterministic remainder — dryRun, argument-shape fit, safe-prefix batch #5035, feat(mcpx): structured refusal reason codes for refused calls (#1927) #7352 merged; mcpx: cross-server virtual namespaces (#1933 slice 3) #8632, Fix local outcome hooks to include tool calls #12117 merged; gh pr list --state open --search 1927 empty).
    • Deterministic ladder — landed on main: per-call call frames (mcpx: per-call 'call' frames in the exec stream (#1927 Approach B item 2) #2615), ExecOptions.dryRun + argument-shape fit + safe-prefix batch (mcpx: #1927 deterministic remainder — dryRun, argument-shape fit, safe-prefix batch #5035), structured refusal reason codes (feat(mcpx): structured refusal reason codes for refused calls (#1927) #7352), repair.autonomy dial + daemon ceiling. No small fix in scope for this triage.
    • Remainder — still blocked, gates fresh-checked OPEN: rungs 4–5 (repair propose / repair-and-retry) and the rung-3 model-backed warning wait on mcpx: where the model comes from — a provider layer mcpx owns, model profiles, and life after MCP Sampling's deprecation #1925 (provider layer) and mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929 (lifecycle hooks). Both carry their own triage state; no duplicate routing from here.
    • Outcome: completing task 24917 as triaged; remainder waits on mcpx: where the model comes from — a provider layer mcpx owns, model profiles, and life after MCP Sampling's deprecation #1925/mcpx: lifecycle hooks on exec — prePrompt/postPrompt/onError as one declared list, script or prompt, with a declared effect #1929.
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

    enhancementNew feature or requestepic/mcpx-platformReprioritization program epic (2026-11-12)kind/enhancementsource/creatorFiled by the new-issue-creator jobstatus/triagedTriaged and routed (see agent note)task/fixhas a fix task queued

    Type

    No type

    Projects

    No projects

      Milestone

      • mcpx platform programNo due date

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.