docs: plan the start line's OTLP endpoints, host and port only (#62)
04366d5
Merge the base's wiki into issue-45
5c4ea8a
Merge the base's wiki into issue-45
4e5c908
Merge the base's wiki into issue-46
18e0e07
docs: TEL-18, TEL-19 and TEL-21 are built; the review's fixes; the changelog for rc.3
The spec rows lose (proposed) and say what the code does: the ids in a
line's text and the Loki derived field; the probe, its kinds and the
addresses it never probes; reads labelled by the template lookup alone,
a failed read with no template unlabelled, the lookup inside the
duration, and a read through the read_resource tool recorded as a call
and a read. Three lines in [Unreleased].
The whole-branch review's fixes: the probe never sends the address's
credentials to a host the agent wouldn't push to (a userinfo holding a
"/" or "\" is refused) and sends no auth for an empty userinfo; resource
reads pass through with the one warning when UsageMiddleware._record's
signature changes, not only when it's gone; the probe starts after
OpenTelemetry; an unknown scheme is an invalid address; an HTTP error's
response is closed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
c12713b
feat(telemetry): a log line inside a span ends with its trace_id and span_id
With otel on, a chained LogRecord factory gives a record made inside a
span the text " trace_id=<32 hex> span_id=<16 hex>" at the end of its
getMessage(), so a backend that reads only the line joins it to its trace.
msg, args, handlers and TEL-15's record fields are untouched, and a
QueueHandler shows the ids once, a traceback after them included. The stop
removes the factory before the logging instrumentor, and puts back the one
it found only while it is still the one set.
The plan records Dr K's ruling that TEL-21 labels by the template lookup
alone.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2db4899
docs(plans): the plan of record for TEL-18, TEL-19 and TEL-21
The approved spec from #59's notes, settled against issue-47's code, in four
tasks: the trace ids in the line's text, the Pyroscope probe, resource reads
in the call metrics, and the rows with the changelog.
03f6704
fix(app): building the HTTP app fixes mcp.auth, as FastMCP reads it there
mcp.server.http_app() read auth=None and a provider set after it was accepted but
never enforced. The instance's http_app is wrapped in __init__ so building the app,
by hand or through FastMCP's own HTTP run, counts as serving started. APP-2 says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
15572d9
docs: CMP-2 to 6 and TEL-20 built; the app, config, telemetry, delivery and facade rows; README and changelog
The spec rows say what was built, the components page gains the built-ins'
tables and a component example, and [Unreleased] gains the Added lines and
the BREAKING ones. The whole-branch review's fixes come with them: run()
refuses serving keys in its options, LOG_LEVEL is read case-insensitively,
the telemetry line never shows userinfo however the address is written, a
clash with a built-in's name suggests hooking it, and the runtime masking
and cancellation paths are tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
534a2c6
fix(config): a scalar where a section belongs is its source's error; the boot line masks secrets at runtime
A non-mapping at a model-typed path, in any layer, is now a collected load
error naming its source, reported once. The boot line masks every SecretStr,
SecretBytes and Secret before writing, reading models and dataclasses field
by field so no serializer of the server's runs. The components plan records
Dr K's ruling: a section subclass field that drops its base's env or arg is
refused at composition.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ba45d22
docs(plans): the components plan of record for #49
CMP-2 to CMP-6 and TEL-20: Component and components=, serving, telemetry and
delivery as built-in sections and components, hooks=, mcp.auth, the boot line
and the telemetry line at start, the _merge shape error and the runtime-masked
boot line.
a4b5db6
feat(gateway): add unprefixed, the inverse of prefixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
d139669
docs: PLUG-53 and the changelog for a view's serve
PLUG-53 now says a set the view serves is the one its request reads,
and [Unreleased] gains the Fixed line. The plugins module docstring no
longer says a request reads the set served when it began, and the
serve-during-a-build test says when its serve lands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
e55f3d2
feat(gateway): resolve dot segments on skills/get and resources/directory/read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e972602
docs(plans): release the gateway dots plan as a patch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
4a9b50e
docs(plans): plan dot segments on every address method and gateway.unprefixed
7d8adc8
docs: plan for #45, a set a view serves lands in its own request
ff5f3b4
fix(config): mask a leaf that holds a secret-bearing model in the boot line, and mark a bare AliasPath secret where pydantic writes it
A leaf such as list[Cred] was logged through the model's own serializer,
which may reveal the secret: such a leaf is now sensitive and shows as ***
(CFG-13). The schema mark used the loc key, which gives a bare one-step
AliasPath its step; pydantic writes that property under the field name, so
the secret lost its mark and kept its default (CFG-15). _schema_key now
follows pydantic's rule and _key keeps its own, as _alias_key.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
34fb30c
docs: CFG-7 to 10 and 12 to 14, the config page's operator and author sections, APP-2/3, FAC-11, the README and the changelog
The config rows lose (proposed) and say what the code does: literal env and
flag names refused at composition when malformed, duplicated, reserved or
unreadable; sensitive means a secret type; one YAML file, env vars and flags
merged deep over the defaults; provenance and the boot line; every load error
at once, with no value quoted by quick-mcp or pydantic. The config page gains
"Setting the config" for an operator and "Writing a server's config" for an
author. The README passes argv=sys.argv[1:], and [Unreleased] says what a
server writes now.
The whole-branch review's fixes: an error path matches every key a field
accepts, so a secret behind AliasChoices or by-name validation prints no key
below it, and env=/arg= on a field with a non-str alias is refused; a
default_factory model is merged over like a default instance; every YAML
failure and a self-referencing mapping are "is not valid YAML"; tokens after
-- are positionals; the boot line is built only when INFO is on. The plan's
design items 5 and 7 and its Global Constraints record the rules settled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
993fbaa
feat(config): record each item's source, log one boot line, and keep secrets out of errors
Every load records where each leaf item came from, in item order, as a
read-only mapping of path to Source: default, file, env, arg or code, with the
file path, env var or flag. One INFO line on kubed.mcp.config lists the items
not at their default with their sources, a secret as ***, a value with no JSON
form as its type name, or says all defaults. An error path stops after a
sensitive field, so no dict key or index below a secret prints, through lists
and unions of models and a dict key named like a field included.
The plan's design item 3 records the error-path walk settled in the build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5668a13
feat(config): load from one YAML file, env vars and flags, merged deep over the defaults
_load(sources, values, *, argv=None, environ=None) reads --config-file (else
CONFIG_FILE) with yaml.safe_load, the env vars the items name (os.environ when
environ is None) and the flags in argv (none when argv is None, never
sys.argv). Blank means unset, at any depth of the file. Lists, dicts and models
take JSON from env and flags; NoDecode and Json[T] pass the raw string. The
layers deep-merge over the defaults, a customised default instance included,
and a nested name beats the model field that holds it. Every error of a load is
one ValueError naming each path and source: a file that can't be used, an
unknown flag (never its value, even one starting with -), a positional, bad
JSON, and every validation error. config= reads neither, and passing argv= or
environ= with it is a TypeError.
The plan's design items 5 and 8 record the two rules settled in the build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9337313
docs(plans): the config sources plan: the file, env vars and flags, provenance and safe errors (#50)
fb7f79c
docs: the config rows, APP-2/3/8, DI-12, FAC-11, the README and the changelog
The config core's rows lose (proposed) and read as built: sections by key,
one composed strict config, loaded at construction, injected by section, and
one schema written without FastMCP. APP-2/3/8, DI-12 and FAC-11 follow, and
the changelog gets the Added and BREAKING lines.
The whole-branch review's fixes come with it: a sensitive field is kept out
of the repr, today's call shapes are tested through QuickMCP(...),
sections=None and a nested RootModel get errors that say what to do, the
schema warning that printed a default is suppressed, and pydantic's floor
is 2.12, as FastMCP already requires.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
63d66a4
feat(config): sections by key, composed into one strict config
kubed/mcp/_config.py, FastMCP-free: @config(key), Config, Field (doc, env, arg,
sensitive), and _compose, which registers sections by key (the most derived
class wins, unrelated classes and keys that shadow the root are refused) into
one model with a frozen top. The strictness walk refuses nested models that
accept unknown keys, dataclasses and TypedDicts, through forward references,
NewTypes and aliases. pydantic becomes a direct dependency.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8636e02
docs: the config core's plan of record: sections by key, one composed config and schema, injected by section
7e56660
spec: TEL-16 stays as built; TEL-21 alone proposes resource reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9c6862f
spec: telemetry reports itself (TEL-18 to TEL-21, proposed): trace ids in the line, push failures, a start line, resource reads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8da41d7
spec: config (CFG-1 to CFG-17) and components (CMP-1 to CMP-6), proposed, with the design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
785d63b
Merge wiki master (0.2.0) into issue-12
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# superpowers/specs/facade.md
6f2a1d1
feat(delivery): instructions per request, and the handshake echoes what it resolved
mcp.instructions(fn) is called with the request's Resolved once per
initialize and once per server/discover; its string is the result's
instructions, written with the gateway prefix. None, a raise or a
non-string keeps the built instructions, the last two logged at error.
Every QuickMCP server's initialize and server/discover result carries
_meta["io.kubed/delivery"] (resources, listed, via, prefix), merged into
any _meta there: the one change to the handshake's bytes. FastMCP 4.2
runs server/discover through the public Middleware.on_discover, so
_handshake._Describe touches no private.
Resolved.extensions is the extension ids the client declares, from
initialize's capabilities or the session's. Resolved.resources and
Resolved.via are Literal types, and the resolver asserts that Via's and
Listed's levels line up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
dae0d8e