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 — design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools · Issue #1554 · developing-today/code

design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554

New issue
Copy link
New issue
Copy link
Closed
3 / 33 of 3 issues completed
Closed
design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools#1554
3 / 33 of 3 issues completed
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepicMeta-issue grouping multiple items (org Project Type=Epic)epic/mcpx-platformReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item
Milestone
mcpx platform program

Description

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

Design doc: files/designs/code-mcpx-tasks-one-store.md in the keep-the-four-repos-healthy goal workspace. Register: central potential-projects list, same workspace (files/potential-projects.md).

Framing (recorded by the design architect): no user/review — the roadmap row sits at proposed and states the intent, SEP-2663 dictates the wire shapes, and the one-store rule is the codebase's own stated design (internal/tasks/tasks.go header: "Two stores would be two sets of expiry bugs"). This design completes recorded intent; it does not open a new direction. Two judgment calls are recorded in the design doc: the /v1 operator surface keeps its unscoped view of the shared store, and the client phase is required-only.

Summary

dezren39/darwin-nix#209 charged that mcpx advertises the 2026 tasks extension and the 2025-11-25 core tasks capability while implementing only the legacy shape, with tasks unbound, split across two stores, and unusable as a client. Most of that charge has since been answered in code (audit in the design doc: era-gated advertisement, flat Task + ttlMs/pollIntervalMs, DetailedTask, tasks/update + inputRequests, per-era cancel semantics, related-task, requestor binding, -32021 refusals, notifications/tasks). Two structural items remain — the two halves of the same complaint that tasks are not one thing in mcpx yet:

  1. Two store instances (nix#209 TASK-27, TASK-20). One store type (internal/tasks.Store), two live instances: the MCP server lazily creates a private in-memory store (internal/mcpserver/tasks.go tasks() → tasks.New(); field at internal/mcpserver/server.go:273-274, no injection seam), while the daemon's /v1 creates a separate SQLite-backed store at <state>/tasks.db (internal/daemon/ops.go:436-453, also used by routes_proto.go, routes_exec.go, input_required.go). A task started over MCP is invisible to /v1 and vice versa, and every MCP task dies with the process. The conformance register says it plainly (internal/conformance/coverage_stateful.go:112, gap ext-tasks-durable-before-response): "the task store is an in-memory map; a task does not survive the daemon."
  2. The client cannot execute a task-required call (nix#209 TOOL-21 client half, CAP-26 client direction). mcpclient carries execution.taskSupport raw (internal/mcpclient/client.go:171-174) but never reads it, never declares the tasks extension upstream, and CallTool (client.go:1164, called from internal/pool/pool.go:1051) is a plain tools/call. An upstream tool declared taskSupport: "required" cannot be called the way its server demands — and downstream, mcpx's own working server-side task machinery starts tasks whose body is exactly this call, so the failure surfaces inside mcpx's tasks.

A third, lesser item: the conformance register (docs/compare/register/tasks.md, CAP rows in capabilities.md) still marks landed behaviour ✗ — nix#209 cannot honestly close until it tells the truth.

Proposal:

  • One store, injected. mcpserver.Server gains a task-store seam; the daemon constructs its store once and hands it in where the server is built (internal/cli/serve.go:474, App.MCPServer() — which already wires Notify, Passthrough, Timing). Standalone embeddings (internal/cli/adapter.go:195, openapi.go:90) keep a private in-memory store: no second surface, no state dir. MCP ownership/visibility semantics unchanged (owner map stays in mcpserver); /v1 keeps its operator view; one PollInterval source (settings, at construction — today the two stores read different settings); restart story is the store's existing one (tasks.Open reloads rows and reaps a non-terminal row to Failed — "daemon restarted before task completion", internal/tasks/tasks.go:243-249).
  • A client that can run a task-required call. mcpclient executes taskSupport: "required" calls as upstream tasks, per upstream era (Client.Era): legacy — params.task, poll tasks/get, outcome via tasks/result; modern — declare extensions["io.modelcontextprotocol/tasks"] at initialize, flat Task result, poll tasks/get (DetailedTask inlines the outcome). Honour poll interval and TTL; context cancellation sends tasks/cancel. "optional" stays a plain call; an upstream task parking in input_required returns a distinct named error (relaying is an open question, below).
  • Register truth-up + origin closure. Rows rewritten to as-built with evidence, landed Gap entries retired, roadmap row updated, completion evidence posted on mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209 and the origin issue closed from this repo (the set handling recorded for nix#254 in design design(mcpx): JSON Schema validation of tool input and output — one validator at the client choke point #1481 — no duplicate filed).

Alternatives (argued in the design doc): merge the other way (/v1 proxies the in-memory store — throws away durability); keep two stores and synchronise them (the exact expiry-bug duplication the package header warns against, plus sync bugs); stop advertising tasks on MCP until unified (punishes a working, conforming surface); mark required tools uncallable (silently shrinks the gateway's catalogue); task-augment optional tools too (changes pooled-call latency fleet-wide for no correctness gain).

Risks: semantic leakage across the merge (/v1-started tasks carry no MCP owner — legacy MCP list requires an owner match so they stay invisible; Phase 1 tests pin it); the PollInterval unification silently changing one surface's cadence if the wrong setting wins; polling cost for fast required tools (bounded by the upstream's own poll interval); non-conforming legacy upstreams (a malformed task response must be a call error, never a hang — pinned by test).

Phased breakdown

  • Phase 1 — one durable store across MCP and /v1. Store seam on mcpserver.Server, daemon constructs once and injects, single PollInterval source, cross-surface + visibility + restart-durability tests, conformance gap ext-tasks-durable-before-response retired. Filed as a sub-issue of this issue.
  • Phase 2 — client task execution for taskSupport: "required". Per-era augmentation, polling, cancel propagation, fault surfacing in mcpclient; modern initialize declares the extension; fake-upstream tests for both eras. Independent of Phase 1. Filed as a sub-issue of this issue.
  • Phase 3 — register truth-up + nix#209 closure. Register rows to as-built, Gap retirements, roadmap row, origin closure with evidence. Gated on Phases 1–2. Filed as a sub-issue of this issue.

Open questions (NOT filed; stay as questions)

  • Operational limits (gaps tasks-rate-limit, tasks-resource-limits): per-requestor concurrency cap, maximum TTL, tasks/* rate limit — policy values, not just mechanism.
  • Cooperative cancel (gap ext-tasks-cancel-cooperative): let work reach its own terminal status instead of forcing cancelled?
  • Task audit logging (gap tasks-audit): tie creation/completion/retrieval into the lifecycle-event stream?
  • Failed-task statusMessage for isError results (gap tasks-failed-status-message); documenting id-only reachability of unbound modern tasks (gap tasks-document-unbound).
  • Task ID entropy (nix#209 TASK-23): NewID is 64 random bits (internal/tasks/tasks.go:344-348) and modern tasks are unbound by design — raise to 128?
  • Client input relay: answer an upstream task's inputRequests by relaying to the downstream client and replying via tasks/update? (Phase 2 returns a named error instead.)
  • tasks/get-implies-list asymmetry (gap tasks-get-implies-list): document or change?

Acceptance criteria

  • Phases 1–3 are filed as sub-issues of this design (done at filing time) and land.
  • One tasks.Store instance serves MCP and /v1 in the daemon; MCP tasks survive a daemon restart to the store's existing semantics; gap ext-tasks-durable-before-response is retired.
  • A pooled call to an upstream taskSupport: "required" tool completes through the upstream's task machinery in both eras (legacy params.task + tasks/result; modern extension + DetailedTask polling).
  • docs/compare/register/ tells the truth about tasks, and mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209 is closed with evidence from this repo.
  • A completion note is posted on this issue; the open questions above remain recorded here as questions, not silently dropped.

Sub-issues

Collapse Sub-issuesSub-issues

3 of 33 of 3 Issues completed
Loading 3 sub-issues

Activity

Next
  1. dezren39
    added
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    epicMeta-issue grouping multiple items (org Project Type=Epic)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    on Oct 28, 2026
  2. developing-today commented on Oct 28, 2026

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

    CODE-601

  3. dezren39
    added
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    source/design-architectFiled by the repo design architect job
    on Oct 28, 2026
  4. dezren39
    added sub-issues on Oct 28, 2026
    • mcpx: Phase 1 of #1554 — one durable task store across MCP and /v1 (internal/tasks wiring) #1555
    • mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556
    • mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557
  5. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: design architect (repo-design-architect-code job)
    • Session / ID: repo-design-architect-code cron run, 2026-10-27 20:25 CDT
    • Found via: design pass 5 for developing-today/code — audit of mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209 against current main (2026-10-27)
    • Task: Design issue filed this run. The audit found most of nix#209's server-side charge already landed (era-gated advertisement, flat Task + ttlMs/pollIntervalMs, DetailedTask, tasks/update + inputRequests, per-era cancel, related-task, requestor binding, -32021, notifications/tasks); this design scopes only the remainder: two store instances (TASK-27/20), the client's missing task execution (TOOL-21 client half, CAP-26), and the stale conformance register. All three phases filed as sub-issues and enqueued as triage packets in repo-health-code-pilot: Phase 1 mcpx: Phase 1 of #1554 — one durable task store across MCP and /v1 (internal/tasks wiring) #1555 (task 1609), Phase 2 mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556 (task 1613), Phase 3 mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 (task 1612, gated on Phases 1–2). No user/review: roadmap intent is recorded at proposed, SEP-2663 dictates the shapes, and the one-store rule is the codebase's own stated design.
    • Expectation: effort/l overall; done = the acceptance criteria on this issue, ending with nix#209 closed with evidence from this repo (Phase 3).
    • Links: design doc files/designs/code-mcpx-tasks-one-store.md (goal workspace); central register files/potential-projects.md (same workspace); origin mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209
  6. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  7. dezren39 commented on Oct 28, 2026

    @dezren39
    dezren39
    on Oct 28, 2026
    MemberAuthor
    More actions

    Phase 3 gate check (queue task 1612 triage of #1557, Lane A, 2026-10-27): gate NOT met — #1555 open (PR #1575 awaiting CI) and #1556 open (no PR). Phase 3 triage parked until both phases merge; details on #1557.

  8. dezren39
    added a commit that references this issue on Oct 28, 2026

    mcpx: share the daemon's one durable task store with the MCP surface (#…

    508fb8b
  9. 27 remaining items

  10. dezren39
    added
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  11. dezren39 commented on Nov 9, 2026

    @dezren39
    dezren39
    on Nov 9, 2026
    MemberAuthor
    More actions

    Program tending (#1352): all 3 sub-issues under this epic are closed. Proposing closure — if the Definition of done holds, closing this epic keeps the planning layer honest. Blockers: queue/blocked, status/blocked.

    (Epic #1554: one completion comment per run; the epic itself is left open for a human to close.)

  12. dezren39
    added
    epic/mcpx-platformReprioritization program epic (2026-11-12)
    on Nov 12, 2026
  13. dezren39
    added this to the mcpx platform program milestone on Nov 12, 2026
  14. dezren39 commented on Nov 12, 2026

    @dezren39
    dezren39
    on Nov 12, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — epic verified complete and closed by the fleet

    • Agent: queue worker (repo-worker-code), lane code-d
    • Session / ID: task 7717
    • Found via: queue claim (task 7717 was released back to queued on 2026-11-12 from its earlier escalated-to-user block, with the recorded remaining step: fleet verification/closure of this epic)
    • Task: Triage of issue design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554 at current main — confirm still-live, scope the fix, or close with evidence if already handled.

    Verdict: CONFIRMED-AND-COMPLETE — closing this epic as completed. Fresh evidence this shift (2026-11-12, re-read, not taken from the packet):

    • Phase 1, issue mcpx: Phase 1 of #1554 — one durable task store across MCP and /v1 (internal/tasks wiring) #1555 — CLOSED (one durable task store across MCP and /v1).
    • Phase 2, issue mcpx: Phase 2 of #1554 — client task execution for taskSupport "required" tools (internal/mcpclient) #1556 — CLOSED (client task execution for taskSupport "required").
    • Phase 3, issue mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 — CLOSED; compare-register truth-up in PR docs(mcpx): reconcile task conformance register (#1557) #3086, MERGED 2026-10-31T14:43Z at 68d59a3 (re-read this shift).
    • Follow-on design issue design(mcpx): tasks, bounded — operational limits, cooperative cancel, audit, and the small truths #2497 (operational limits, cooperative cancel, audit, ID entropy) — CLOSED 2026-11-03T16:45Z, its three phases merged; the same coverage file on current origin/main now also records the tasks-rate-limit, tasks-resource-limits, and tasks-failed-status-message gaps as covered.
    • At current origin/main: pkgs/mcpx/internal/conformance/coverage_stateful.go lists gap ext-tasks-durable-before-response as covered by mcpserver.TestInjectedStoreKeepsMCPTasksAcrossReopen, and pkgs/mcpx/internal/mcpserver/server.go carries the TaskStore injection seam (the daemon sets it to its own durable store so an MCP task is the same task the /v1 surface sees, per issue mcpx: Phase 1 of #1554 — one durable task store across MCP and /v1 (internal/tasks wiring) #1555).
    • The open questions recorded in this issue's body (including client input relay) remain recorded here as questions, exactly as this issue's own completion checklist specifies — closing drops nothing, and reopening is cheap if a Phase 4 emerges.

    Task 7717 completes as already_done / triaged with this closure.

  15. dezren39
    closed this as completedon Nov 12, 2026
  16. dezren39
    removed
    status/blockedQueue or user escalation state
    user/escalatedRequires a Drew decision or access
    queue/blockedQueue or user escalation state
    work/assignedQueue worker lifecycle state
    on Nov 12, 2026
  17. developing-today
    added
    status:done
    on Nov 12, 2026
  18. dezren39 commented on Nov 12, 2026

    @dezren39
    dezren39
    on Nov 12, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done (already_done) — Agent: queue worker (repo-worker-code), lane code-b — Session/ID: task 15295, repo-queue-worker-shift-code-b 2026-11-12 run.

    Task 15295 (small_fix, triage follow-on from task 7717) for issue #1554: the triage this packet waited on completed today — issue #1554 was verified complete and CLOSED 2026-11-12T19:04:14Z by lane code-d under task 7717 (closure note: #1554 (comment); issue carries status:done). All 3 sub-issues under the epic were already closed per the 2026-11-09 program-tending note. Nothing remains for this packet; it completes as already_done naming that closure as evidence. No duplicate work performed.

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

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/lLarge: multi-day or open-ended; expect staged check-insepicMeta-issue grouping multiple items (org Project Type=Epic)epic/mcpx-platformReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

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.