docs: source links in the Telemetry Guide; the changelog
The final review's fix: the command looks a distribution up without the working directory, so a source checkout's metadata doesn't stand in for the installed one.
Agent: done
fc3cf96
feat(telemetry): python -m kubed.mcp.pyroscope writes and checks .pyroscope.yaml
6172ef9
docs(telemetry): source-link rows renumbered TEL-25 to TEL-27 after main's TEL-24, and the merge's conflict markers resolved
90b21e8
Merge the base's wiki into issue-100
Conflicts for its agent: superpowers/specs/telemetry.md
566f6fc
feat(telemetry): map an image's packages to their sources for Pyroscope
a2d1fca
fix: a build yields to the loop and builds run one at a time, so a cold server keeps answering (#99)
A rewritten build (every prefixed key) was 1-1.5 s of synchronous CPU on
the event loop, made on a new key's first request, usually
server/discover. A reconnect burst over several gateway routes queued
one per route, and /health missed its 1 s timeout behind them.
_make now checkpoints after each skill, command and agent and after
each skill's indexes, and one anyio.Lock per Plugins, taken after the
flight is registered, makes rewritten builds one at a time in the order
asked. An unrewritten build never yields and takes no lock. A build
cancelled at a checkpoint or on the lock leaves no flight and no held
lock.
A rewritten build's skill indexes are listed in one pass per skill
(skills._skill_children) instead of a throwaway EntryOnlySkillProvider
per skill, which reloaded the manifests for every folder; the file-row
decoration is shared with the provider (_served_file), so the indexes
are byte-identical. _Renderer and _Build._renderers are gone.
A build made or waited on is a kubed.mcp.build span (TEL-24) with its
generation, prefix, outcome and counts; a kept build has none. PLUG-55
says builds yield and run in order.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
Agent: done
2edfcaa
feat(telemetry): profiles carry service_repository and service_git_ref from the build
9cbc0c9
docs(telemetry): plan source links for profiles; TEL-24 to TEL-26 proposed
badce85
Merge the base's wiki into issue-80
a3e5f00
docs: one listing per mode in DLV and SKL, the changelog, and a guard on _skill_uris
The living spec takes the plan's text: DLV-2, 4, 5, 8-11 and 17, SKL-8, 9,
23 and 26, with Where each kind comes from, Edge cases, Captured
declarations and Known limits. As Dr K asked, a test through FastMCP's real
skills/list handler fails if an upgrade renames _skill_uris or stops calling
it, and the override's docstring names fastmcp 4.2.6. From the whole-branch
review: a huge via, listed or resources from delivery_default falls through
with a warning instead of failing the request, and a server mounted on a
QuickMCP follows its mode, tested and documented. Task 5 of #80's plan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
0d7b974
fix: warm FastMCP's state store before serving, and measure GC per generation (#97)
QuickMCP's lifespan reads FastMCP's private _state_store once, after the
components start and before the server's own lifespan (APP-5 step 4), so
the beartype-instrumented key_value.aio import lands in startup instead of
on a session's first request. A FastMCP without the store, or a warm-up
that raises, is one warning on kubed.mcp.config, by type only.
With otel on, kubed.mcp._gc records cpython.gc.collections and
cpython.gc.duration per generation (TEL-23), and warns of a pass of 0.5 s
or more with the trace id of the span it stalled. The gc callback only
reads the clock and the span context and queues the pass; a task on the
loop drains the queue every second, under an empty context. It starts and
stops with OpenTelemetry, first to stop, with one last drain.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
0f6c854
Merge the base's wiki into issue-80
8246b62
chore(renovate): hold Python at 3.14 until pyroscope-io ships cp315 wheels (#94)
A root renovate.json with one packageRule: matchDepNames python,
allowedVersions <3.15. Its description names the two installs that
fail on 3.15 (test.yml's .[test,tasks] and the Dependency Audit's
.[telemetry]) and what to move once pyroscope-io publishes cp315
wheels. The plan's History now says it shipped in #95.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
db0e29d
docs(plans): name the Dependency Audit install in the Python hold's description (#94)
50aee7b
docs: plan for #80, each delivery mode lists a kind one way, and the cap guard
c3db071
docs(plans): hold Python at 3.14 in Renovate until pyroscope-io ships cp315 wheels (#94)
072e410
docs: PLUG-53 and the changelog for an async plugin view (#86)
PLUG-53 says a view may be a coroutine function, awaited in the task
of the read that pins it and never in a worker thread, that a sync
view runs on the loop and must not block, and that a view set while an
async one awaits is called in its place. [Unreleased] gains its Added
line.
The context-variable test now reads the variable from a rewriter while
the read is served, so it asserts both views' value is seen in the
request rather than comparing None with None.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
Agent: done
518aa97
Merge the base's wiki into issue-86
c2868f7
feat(telemetry): call metrics time the seven listings (#87)
_CallMetrics now records tools/list, resources/list,
resources/templates/list, prompts/list, server/discover, skills/list
and agents/list on mcp.server.operation.duration, one point per
request labelled by its method alone: no component name, cursor, URI
or prefix. skills/list and agents/list have no typed hook, so
on_request records them from a fixed set, which also keeps the
component listings and discovery from being counted twice. A changed
UsageMiddleware still warns once and passes them through (TEL-6).
TEL-16 names every method recorded.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
2132726
docs: plan for #86, a plugin view may be async
The plan of record for PR #92: _call_view awaits an async view in both
call sites (_pin and the handshake's skill count), a sync view stays on
the loop, and PLUG-53 states the non-blocking rule. The regression test
shows a slow async view stalls neither /health nor a concurrent listing.
26b0b49
fix(plugins): a failed pin answers -32603 on both protocols (#90)
The legacy dispatcher answers any exception that isn't an MCPError
with code 0 and the exception's text, so a plugin view or build that
failed reached a legacy client as code 0. _PinScope now raises an
MCPError the pin raised as it is, and anything else as -32603
"Internal server error" from the original, which the scope that
opened the request's pin logs once at error with its traceback.
PLUG-53 states the code, the fixed text and the MCPError opt-in; the
failed-pin tests run in both eras, in-process and over HTTP, and
[Unreleased] gains its Fixed line.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
3221628
docs: the skills cap in DLV-17, and the changelog (#81)
DLV-17 states the cap and the order that chooses which skills a listing
keeps; DLV-2, 4, 8, 11, 12 and 16, SKL-23 and CMP-4 gain their lines,
and [Unreleased] its Added entry.
From the whole-branch review: a server's own catalogue that fails to
load counts as no skills, so it no longer hides every plugin skill from
both listings; under local the count makes no build; and the failing-pin
test runs in both protocol eras.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
72e61f5
Merge the base's wiki into issue-81
5bea61e
docs: a programmatic stop waits up to graceful_timeout for listen streams (#83)
The stop hook wraps uvicorn's handle_exit, so a stop made by setting
should_exit directly leaves open listen streams to uvicorn, which waits
out the full graceful_timeout. APP-15, CMP-4's serving text and
ServingSettings.graceful_timeout's description now say so: a stop by
signal ends listen streams at once; a programmatic stop waits up to
graceful_timeout for them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4de597e
docs(plan): the skills cap never fails the handshake and adds no listing pass (#81)
4d1d0cb
Merge main's wiki into issue-83
18723a0
Merge the base's wiki into issue-81
6e80f0a
docs(plan): a cap on listed skills, 100 by default, set per request (#81)
e9a5beb
Merge the base's wiki into issue-54
3a0344b
fix(app): open listen streams end cleanly when the server stops, with serving.graceful_timeout (#54)
On HTTP, run() wraps uvicorn.Server.handle_exit while it serves and puts
the listen-ender first in the middleware: when a stop signal lands, each
open subscriptions/listen stream gets a disconnect and a complete response,
so uvicorn no longer cancels it at FastMCP's 2 s and logs an ERROR and a
traceback per listen. Every other request keeps serving.graceful_timeout
(15 s, GRACEFUL_TIMEOUT, --graceful-timeout) to finish, passed as
uvicorn_config['timeout_graceful_shutdown'], which run() now refuses from
the caller. APP-7, APP-8, APP-10, the new APP-15, CMP-4 and config.md say
so. A loopback subprocess test holds it on 3.11 and 3.14.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
a630bed