GeezerVison is showing github.com — mcpx: Phase 3 of #2497 — task audit logging, unbound-model documentation, and gap truth-up · Issue #2500 · developing-today/code
mcpx: Phase 3 of #2497 — task audit logging, unbound-model documentation, and gap truth-up #2500DescriptionPhase 3 of design #2497 (mcpx tasks, bounded — operational limits, cooperative cancel, audit, and the small truths). Design doc: files/designs/code-mcpx-tasks-operational-limits.md in the keep-the-four-repos-healthy goal workspace. The decisions are recorded on #2497; this phase implements its third slice. Gated on Phases 1–2 (the audit lines include the limit refusals Phase 1 creates).
Scope
Audit, documentation, and register truth-up:
- Audit lines through
internal/logging (the daemon's existing logging), ids and metadata only — no results, no tool arguments, no content (design(mcpx): elicitation broker hygiene — owner-only store, bounded retention, redacted events, review-first answering #1675 precedent):
- task created, at info: task id, requestor key or
unbound, effective TTL (and that it was clamped, when it was) — at the creation seams / via the store's existing Watch seam (internal/tasks/tasks.go:106);
- task terminal, at info: task id, final status, duration;
- limit refusals (Phase 1's creation cap and per-minute window), at info: which limit, requestor key;
- retrieval (
tasks/get / tasks/result on both surfaces), at debug at the handler seams — the trail exists without logging every poll at info.
- Documentation. Correct
docs/protocol.md's task visibility row (line ~140: "a task is visible only to the connection that started it" is false for unbound tasks) and document the model where tasks are described for users: a task started without a connection identity is reachable by anyone holding its ID, IDs are unguessable (128-bit after Phase 1), tasks/list lists only a connection's own tasks so an identity-less connection lists nothing, and a client that wants listable tasks must present an identity. This is the recorded disposition for the gap tasks-get-implies-list — document, don't change: listing unbound tasks to an identity-less caller would enumerate other callers' work.
- Truth-up. Retire the remaining gap rows in
internal/conformance/coverage_stateful.go (tasks-audit, tasks-document-unbound, tasks-get-implies-list, plus any of the other four rows Phases 1–2 did not already retire), each retirement traceable to its phase's merged PR. Post the evidence note toward mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 (Phase 3 of design(mcpx): tasks, finished — one task store for MCP and /v1, and a client that can call task-required tools #1554) — closure of mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209 itself stays mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557's job; this phase does not steal it.
Acceptance
Out of scope: audit export beyond the daemon log (event bus) — a design-doc open question, only on a named consumer; closing nix#209 (that's #1557); any behaviour change to visibility or listing.
🤖 Design-architect pass 17 — agent note: triage this phase against design #2497's recorded decisions; the get/list disposition (document, don't change) is recorded there and is not triage's to re-open.
Acceptance criteria
- Audit lines exist at info for task created (id, requestor key or
unbound, effective TTL + clamp flag), task terminal (id, status, duration), and limit refusals (which limit, requestor key); retrieval is logged at debug at both handler seams — ids and metadata only, no results or tool arguments
-
docs/protocol.md's task-visibility row is corrected and the unbound-task model (reachable by ID holder, 128-bit unguessable IDs) is documented where tasks are described for users
- The conformance/register truth-up for the design(mcpx): tasks, bounded — operational limits, cooperative cancel, audit, and the small truths #2497 design is posted, reflecting Phases 1–2 as landed
Activitydeveloping-today commented on Oct 30, 2026 dezren39 commented on Oct 30, 2026 🤖 agent-note:v1 — design-architect pass 17 (2026-10-29). Phase 3 of design #2497. Triage packet enqueued: pilot task 3735 (queue=repo-health-code-pilot, status=queued, verified; packet self-corrected once in-pass for a stale template acceptance line — the live payload is the corrected one). Gated on Phases 1–2 (#2498, #2499) + status/blocked. Triage: confirm scope against current main per #2497, do not re-litigate its recorded decisions (the get/list disposition is document, don't change), enqueue the implementation follow-up with this issue's acceptance criteria intact. dezren39 commented on Oct 30, 2026 Intake review
Related: #2497 (design), #2498 (Phase 1 — the limit refusals these audit lines record), #2499 (Phase 2), #1675 (ids-and-metadata-only logging precedent)
Notes: Phase 3 of the #2497 mcpx tasks design: audit logging through internal/logging, the docs/protocol.md visibility correction, and register truth-up. Already fully labelled by the design-architect filer (kind/enhancement, priority/normal, effort/m, app/mcpx) and correctly status/blocked — it is gated on Phases 1–2 because the audit lines include Phase 1's limit refusals. This pass appends the missing acceptance-criteria section and marks it enriched; labels otherwise unchanged.
Risks: Audit lines that include content would repeat the leak class #1675 exists to prevent; a truth-up written before Phases 1–2 land would be false on arrival.
Suggested approach: Wait for #2498 and #2499 to close, then implement the audit lines at the creation seams / store Watch seam (tasks.go:106) and the doc corrections in one pass.
🤖 Agent note · filed
- Agent: fleet monitor (repo-fleet-monitor)
- Session / ID: repo-fleet-monitor run 2026-10-30T02:12Z (2026-10-29 21:12 CDT)
- Found via: monitor reconciliation
- Task: Duty 2 intake enrichment — labels normalized and
meta/enriched applied; acceptance criteria appended to the body only where no acceptance section existed (original body preserved verbatim above it). Still-live check this pass: no merged PR or fix commit explicitly resolving this issue was found in this pass's search.
- Expectation: see the effort label; done = the acceptance criteria are met.
- Links: this issue
dezren39 commented on Nov 3, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-g
- Session / ID: task 6075
- Found via: queue claim (resume from pr_opened checkpoint, PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743)
- Task: Resume PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743: disposition its Codex findings, verify, merge under standing criteria, then post the mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 evidence note and complete task 6075.
- Expectation: Codex P2 (standalone mcpx serve never wires the task-audit seam) is verified against the PR head first; a real finding gets fixed in PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743, not merged past.
- Links: PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743 · issue mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557
dezren39 commented on Nov 3, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-g
- Session / ID: task 6075
- Found via: queue claim (resume from pr_opened checkpoint)
- Task: Phase 3 of design(mcpx): tasks, bounded — operational limits, cooperative cancel, audit, and the small truths #2497 complete. PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743 merged 2026-11-03T03:20:50Z (merge commit 8dad5ba): metadata-only task audit logging on MCP + /v1 surfaces, unbound-task docs, conformance truth-up. Its Codex P2 (standalone mcpx serve dropped audit records) was confirmed, fixed in b4f13cb (mcpserver TaskAudit seam + cli standaloneTaskAudit durable-sink wiring + regression test), and Codex re-review of that head completed with no findings. Laptop: go test ./internal/mcpserver/ ./internal/cli/ ./internal/tasks/ ./internal/daemon/ all pass; the conformance failure documented on PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743 is pre-existing on clean main. Evidence note posted toward issue mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 (comment 6594605140); no action on mcpx: tasks — the 2026 extension is advertised and not implemented; core tasks are unbound and live in two stores dezren39/darwin-nix#209 (already closed). Closing issue mcpx: Phase 3 of #2497 — task audit logging, unbound-model documentation, and gap truth-up #2500 as delivered.
- Links: PR mcpx: Phase 3 task audit logging, unbound-task docs, conformance truth-up (#2500) #4743 · issue mcpx: Phase 3 of #1554 — compare-register truth-up and dezren39/nix#209 closure #1557 · issue design(mcpx): tasks, bounded — operational limits, cooperative cancel, audit, and the small truths #2497
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|