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 #2386 — relevance-ranked local completion (exact → prefix → substring tiers; upstream order untouched) · Issue #2388 · developing-today/code

mcpx: Phase 2 of #2386 — relevance-ranked local completion (exact → prefix → substring tiers; upstream order untouched) #2388

New issue
Copy link
New issue
Copy link
Closed
#2857
Closed
mcpx: Phase 2 of #2386 — relevance-ranked local completion (exact → prefix → substring tiers; upstream order untouched)#2388
#2857
Copy link
Assignees
dezren39
Labels
app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/enhancementmeta/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 29, 2026
Issue body actions

Phase 2 of design #2386 (mcpx completion, finished). Design doc: files/designs/code-mcpx-completion-rate-limit-ranking.md in the keep-the-four-repos-healthy goal workspace. The decision is recorded on #2386. Independent of Phase 1.

Scope

Relevance ranking inside localCompletion (pkgs/mcpx/internal/daemon/ops.go:402) — the cached-names fallback used when an upstream never declared completions. Today it returns hasPrefixFold prefix matches over the pool's name-sorted cache (internal/pool/pool.go:915): alphabetical, prefix-only.

Ranking (deterministic), applied to prompt names for ref/prompt and template URIs for ref/resource:

  1. Exact case-folded match first
  2. Prefix matches next — shorter name first, alphabetical tiebreak
  3. Substring (non-prefix) matches last — by first-match position, then alphabetical (the spec's "fuzzy matching where appropriate" slice; a value typed mid-name currently finds nothing)

The completion.maxValues cap (spec max 100) applies after ranking; total/hasMore keep their current meaning.

Upstream answers are not touched: when the upstream declares completions, its values pass through in its order with its total — the upstream ranks with knowledge mcpx does not have.

Acceptance

  • localCompletion tests demonstrate the three tiers in order for both ref types, including a mid-name substring hit that previously returned nothing
  • Cap is applied after ranking (the best matches survive truncation, not the alphabetically first)
  • total/hasMore unchanged in meaning; the source: "cache" / because response fields are unchanged
  • A test pins that an upstream-declared server's answer order is passed through unranked
  • Tests run via CI per fleet policy (no builds on the sandbox)

Out of scope: rate limiting (Phase 1), register changes (Phase 3), changing what the fallback can complete (still only cached prompt names / template URIs — mcpx cannot invent argument values).

Activity

Next
  1. dezren39
    added
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    kind/enhancement
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

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

    CODE-1215

  3. dezren39
    added
    source/design-architectFiled by the repo design architect job
    on Oct 29, 2026
  4. dezren39
    added a parent issue on Oct 29, 2026
    • design(mcpx): completion, finished — one rate limit at the /v1 choke point, relevance-ranked local answers #2386
  5. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed by design architect

    • Agent: design architect (repo-design-architect-code), pass 15, 2026-10-29
    • Task: Phase 2 of design design(mcpx): completion, finished — one rate limit at the /v1 choke point, relevance-ranked local answers #2386 — relevance-ranked local completion
    • Expectation: Triage confirms the scope against current main and enqueues the implementation follow-up; the decision (tiers exact → prefix-shorter-first → substring, cap after ranking, upstream answers never re-ranked) is recorded on design(mcpx): completion, finished — one rate limit at the /v1 choke point, relevance-ranked local answers #2386 and in the design doc — do not re-litigate it in triage. Independent of Phase 1 (mcpx: Phase 1 of #2386 — completion rate limit at the /v1 choke point (limiter + completion.* settings, before the pool) #2387); may land in either order. This phase's triage packet is enqueued in repo-health-code-pilot by the architect.
  6. dezren39
    added
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 29, 2026
  7. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    Intake review

    Related: #2386 (design), #2387 (Phase 1, independent), #2389 (Phase 3 register truth-up)

    Notes: Phase 2 of the #2386 design: relevance-ranked local completion (exact → prefix → substring) in localCompletion, upstream answers untouched. The body carries a full ## Acceptance checklist with file:line scope (ops.go:402, pool.go:915), so this pass is labels-only.

    Risks: Ranking must apply before the completion.maxValues cap or the best matches get truncated away; upstream-order passthrough is the regression to pin hardest.

    Suggested approach: Implement the three tiers in localCompletion with the tier-order tests for both ref types, plus the upstream-passthrough pin; verify via CI per fleet policy.

    🤖 Agent note · filed

    • Agent: fleet monitor (repo-fleet-monitor)
    • Session / ID: repo-fleet-monitor run 2026-10-29T18:12Z (13: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
  8. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  9. dezren39
    added
    work/assignedQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Oct 30, 2026
  10. 25 remaining items

  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 30, 2026
  12. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Resumed by repo queue worker (lane E) as queue task 3974 — picking up from the awaiting_ci checkpoint on PR #2857: fresh check of PR checks and Codex findings, merge if green and dispositioned.

  13. dezren39
    added a commit that references this issue on Oct 30, 2026

    Merge pull request #2857 from developing-today/queue/3974-2388-ranked…

    de59b34
  14. dezren39
    closed this as completedin #2857on Oct 30, 2026
  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 30, 2026
  16. dezren39 commented on Oct 30, 2026

    @dezren39
    dezren39
    on Oct 30, 2026
    MemberAuthor
    More actions

    Done — PR #2857 merged (merge commit de59b34). Resumed from the awaiting_ci checkpoint: all checks green on head 00a88b7 (lint, plugin tests, docs build, stress PR-changed-tests, CI budget) and the Codex review completed with zero findings, so the merge gate was clear.

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/sSmall: expected under 2 hours of workkind/enhancementmeta/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.