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: Phase 2 of #1675 — broker retention bound + summary-only elicitation events · Issue #1677 · developing-today/code

mcpx: Phase 2 of #1675 — broker retention bound + summary-only elicitation events #1677

New issue
Copy link
New issue
Copy link
Closed
Closed
mcpx: Phase 2 of #1675 — broker retention bound + summary-only elicitation events#1677
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/mMedium: expected under 1 day of workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Phase 2 of design #1675 (mcpx elicitation broker hygiene). Design doc: files/designs/code-mcpx-elicitation-broker-hygiene.md in the keep-the-four-repos-healthy goal workspace. Gated on Phase 1 (the owner-only store issue of #1675): same open sequence and store files.

Scope

Bound the broker store's retention and stop broadcasting question/answer content on the event bus.

  • Retention, enforced by the broker on Open (the codebase's expire-on-read discipline: no timer, no sweeper): delete terminal rows (answered/expired) from both elicitations and elicitation_answers when they exceed the bounds in internal/defaults/defaults.json — recorded defaults from the design: 30 days old or more than 1000 terminal rows, whichever bound hits first (triage confirms names/values against the defaults file's conventions). Pending rows are never pruned — a pending question is live state with its own expiry (expireOverdue).
  • Sampling rows obey the same bound (same table): this retires sampling-messages-not-retained-between-requests.
  • Event payloads become summary-only at all publish sites: events.ElicitOpened and events.ElicitAnswered carry id, server, tool, mode, audience, state, expiry — never a question's message, schema or url, and never an answer's content. Sites: internal/daemon/hooks.go ~L164-171, internal/daemon/consumer.go ~L325/424/505, internal/daemon/routes_proto.go ~L669, internal/daemon/server.go ~L1395 (today: Data: mustJSON(req) / mustJSON(ans), the full objects).
  • Tree-wide audit of consumers of these two event kinds' Data before the shrink lands; anything in-tree that read content is rerouted to the broker read path. The design's audit found no in-tree consumer reading answer content from the bus (askers use Broker.Await). Also confirm during implementation whether the out-of-tree OpenCode plugin reads payload fields being removed; if it does, route it through the broker read path — do not restore the leak.
  • Retire conformance gaps sampling-messages-not-retained-between-requests and sampling-both-handle-sensitive-data (client + server sides) in internal/conformance/coverage_clientfeatures.go.

Evidence (main d39e611, 2026-10-28)

  • internal/elicit/elicit.go contains no DELETE; expireOverdue (~L437) only transitions state. Origin mcpx: elicitation storage is readable by any local user and never pruned; elicitation UI and response validation rows dezren39/darwin-nix#255 acceptance: "Stored elicitations are pruned (age or count bound, documented)."
  • Gap texts (coverage_clientfeatures.go ~L108-110): "prompts and answers are stored unredacted in state/logs/elicit.db under a 0755 directory and published on the event bus"; "every CreateMessageRequest is kept in state/logs/elicit.db and never pruned".
  • Decision recorded on design(mcpx): elicitation broker hygiene — owner-only store, bounded retention, redacted events, review-first answering #1675: payload shrink at the source, not per-subscriber filtering (the bus has no field-level filtering; every future subscriber would inherit the leak). The migration path for any external consumer is the broker read path, named here and in the nix#255 evidence comment at Phase 3.

Acceptance

  • Broker open with aged terminal rows deletes them (both tables); pending rows and fresh terminal rows are kept; the count bound trims oldest-first.
  • Retention bounds are settings in defaults.json with the documented defaults, not hard-coded constants.
  • Published ElicitOpened/ElicitAnswered event data contains none of a fixture question's message/schema/url or a fixture answer's content (canary strings asserted absent), while id/server/mode/audience/state fields are present.
  • Consumer audit recorded on this issue: every in-tree Data consumer of the two kinds accounted for.
  • Gaps sampling-messages-not-retained-between-requests and sampling-both-handle-sensitive-data (both sides) retired with the tests as evidence.
  • CI green for pkgs/mcpx (tests run in GitHub Actions).

Activity

Next
  1. dezren39
    added
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    status/blockedQueue or user escalation state
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    source/design-architectFiled by the repo design architect job
    on Oct 28, 2026
  2. dezren39
    added a parent issue on Oct 28, 2026
    • design(mcpx): elicitation broker hygiene — owner-only store, bounded retention, redacted events, review-first answering #1675
  3. github-actions
    assigned
    dezren39
    on Oct 28, 2026
  4. dezren39
    added
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    status/blockedQueue or user escalation state
    queue/queuedHas a queued queue task
    on Oct 28, 2026
  5. 154 remaining items

    Load more actions
  6. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), Lane D shift
    • Session / ID: queue task 2946 (small_fix, resume)
    • Found via: queue claim
    • Task: Gate check for PR mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 (OPEN/CLEAN, head 6b577ea): its resume condition is PR mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 merging first (the two conflict speculatively in conformance-matrix.md, proven earlier with merge-tree). PR mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 is still OPEN — main remains frozen at 5a34fa7 under the merge-queue stall (ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403) — so the rebase step cannot start.
    • Expectation: parked 1h. Resume verbatim: on mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 merge, rebase queue/2946-1677-elicit-retention resolving conformance-matrix.md (keep both row sets), push, CI/Codex recheck, re-enqueue, merge, close mcpx: Phase 2 of #1675 — broker retention bound + summary-only elicitation events #1677, complete task 2946.
  7. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked

    • Agent: queue worker (repo-worker-code), lane D
    • Session / ID: queue task 2946, resumed 2026-10-29T21:25Z
    • Found via: queue claim (resume from claimed/gate-check checkpoint)
    • Task: Phase 2 of design(mcpx): elicitation broker hygiene — owner-only store, bounded retention, redacted events, review-first answering #1675 / implement mcpx: Phase 2 of #1675 — broker retention bound + summary-only elicitation events #1677. Gate rechecked fresh: PR 2190 still OPEN/unmerged (CLEAN, 16c54b1) and PR 2202 still OPEN/CLEAN at 6b577ea awaiting its rebase-after-2190 step — gate unmet, unchanged. Root cause is the merge-queue stall ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 (main frozen at 5a34fa7 since 10:57Z).
    • Expectation: resume when PR 2190 merges (main advances): rebase/advance PR 2202 per the prior plan, then proceed.
    • Links: PR mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 · PR mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 · stall ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403
  8. dezren39
    added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 29, 2026
  9. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · implementation complete, blocked only on the repo-wide merge-queue freeze (#2403)

    • Agent: queue worker repo-worker-code, OpenChamber scheduled lane. Task 2946 (small_fix, resume) — third cycle on this item, so this is escalated from park to block, matching task 2875 (mcpx: JSON Schema validation of tool inputs/outputs and elicitation schemas (7 conformance rows) #1951) on the same incident.
    • Work is done. PR mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 — queue/2946-1677-elicit-retention, head 6b577ea5, OPEN / CLEAN / MERGEABLE. Commits land exactly the packet's scope: prune-on-open in internal/elicit (retentionMaxAge age bound + retentionMaxTerminalRows count bound, pending immune, both tables), the two new defaults in defaults.json, summary-only ElicitOpened/ElicitAnswered Data at the five full-object sites (hooks.go ×2, consumer.go ×3), and tests (prune_test.go, elicit_events_test.go) asserting both bounds and the absence of message/schema/url/content keys.
    • Checked fresh this shift (23:01Z): basic: test SUCCESS, mcpx conformance basic: spec parity SUCCESS, nix ci basic: proxy port fallbacks SUCCESS (the branch-protection required check), CodeRabbit neutral. The single Codex review thread is resolved and outdated — resolved at 13:42Z by keeping sampling-messages-not-retained-between-requests and sampling-both-handle-sensitive-data as conformance gaps rather than retiring them: retaining terminal rows for up to 30 days does not satisfy "messages not retained between requests". That is a deliberate, reviewed deviation from acceptance item 3 of task 2946; the packet should be read with the review's reasoning.
    • Why it cannot land: main has not moved since 5a34fa70 (10:57Z). Ruleset 26115813 ("main: merge queue pilot") requires the merge queue for main and the queue ejects every entry (ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403), so no PR can merge — this PR, mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190, or any other. Landing is additionally sequenced behind mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 (task 2875, also blocked on ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403) because mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 and mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 conflict in pkgs/mcpx/docs/spec/conformance-matrix.md; rebasing before mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 lands would only have to be done twice.
    • Not a problem with this PR. Its branch is 4 ahead / 35 behind main with zero file overlap against those 35 commits — git merge-tree HEAD origin/main exits 0 with no conflicts.
    • Resume verbatim, once ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 is fixed and mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 has merged:
      git -C ~/git/fleet/2946-1677-elicit-retention fetch origin main && git merge origin/main
      cd pkgs/mcpx && MCPX_UPDATE_MATRIX=1 go test ./internal/conformance -run TestMatrix (regenerates docs/spec/conformance-matrix.md — resolving the mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 conflict by regeneration, not by hand)
      go test ./..., push, then enqueue in the queue. Complete as fixed_merged with the merge SHA.
    • Expectation: blocked until ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 closes and mcpx: close #1951 remainder — stale dialect-gap rows + structuredContent warn-only policy doc #2190 merges; whoever unblocks cluster ci: merge queue ejects every PR — no merge since #2233 (10:57Z), entries dropped 2-6 min into AWAITING_CHECKS #2403 should unblock this task alongside 2875.
  10. dezren39
    added a commit that references this issue on Oct 30, 2026

    Merge pull request #2202 from developing-today/queue/2946-1677-elicit…

    7c52ced
  11. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    agent-note:v1 — state: handed off — queue task 2946 launched in bound OpenCode session ses_e5e5f40e72cffe3wACUIoZfBi4 by opencode-claimant.

  12. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    Done — PR #2202 merged, acceptance verified on main.

    • Merged: PR mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 squash-merged 2026-10-30 as 7c52ced1 (head 357cb771c), present on current main (git log confirms; f8e356f75 is 2600+ PRs later and still contains all of it).
    • Retention bound: Broker.Open settles overdue rows via expireOverdue then calls pruneTerminal(time.Now()) (pkgs/mcpx/internal/elicit/elicit.go:214). Deletes terminal (answered/expired) rows from both elicitations and elicitation_answers past either bound, oldest-first; pending rows never touched. Bounds live in defaults.json under elicit/: retentionMaxAge: "720h", retentionMaxTerminalRows: 1000, exposed as defaults.ElicitRetentionMaxAge/Rows. Tests: internal/elicit/prune_test.go (age bound both tables, pending immunity, sampling rows, count bound oldest-first).
    • Summary-only events: elicitEventSummary/elicitAnsweredSummary in hooks.go emit only {id, server, tool, mode, audience, state, expiry}. Applied at all five packet sites (hooks.go x2, consumer.go x3) plus the two sampling sites in the same functions. Verified on current main: zero remaining mustJSON(req/ans/opened) full-object publishes in hooks.go/consumer.go/server.go/routes_proto.go (consumer.go has since grown to 6 summary sites via follow-ups). Tests: internal/daemon/elicit_events_test.go with canary strings asserted absent.
    • Conformance: sampling-both-handle-sensitive-data retired on both sides, claimed on the new tests. sampling-messages-not-retained-between-requests deliberately kept as a narrowed gap (commit 20346d0f8, Codex P2 disposition, thread resolved): sampling messages are still retained between requests by design until the terminal prune bound, so the SHOULD NOT is not met — retiring it would have been false. This is a reviewer-approved scope refinement, not a miss.
    • CI note: the basic: test FAILURE shown on PR mcpx: broker retention bound + summary-only elicitation events (#1677) #2202 is post-merge infra noise — run 41008350843 failed in 10s at actions/checkout because the branch was already deleted after merge. The merge itself went through the merge queue (green merge-group checks required), and main has merged cleanly ever since with this code in place.

    Closing as implemented. Unblocks #1678 gate (task 1886).

  13. dezren39
    closed this as completedon Nov 3, 2026
  14. dezren39
    removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    work/assignedQueue worker lifecycle state
    on Nov 3, 2026
  15. dezren39
    added a commit that references this issue on Nov 8, 2026

    mcpx: validate accepted form answers against requestedSchema at the b…

    a95ea04
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/mMedium: expected under 1 day of workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/design-architectFiled by the repo design architect jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.