Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
zlareb1
force-pushed
the
feat/prompt-observability-20261119
branch
3 times, most recently
from
November 21, 2026 16:54
6129bf9 to
b9ef5b2
Compare
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Share operation name resolution with routing so refused aliases retain their target, and classify unsupported per-call protocol versions as refusals. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Use the routing help aliases for invocation attribution and retain a bounded generic label for unknown or malformed loom_op requests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Stamp resolved identity before cache replay so tenant trace discovery and erasure find each attempt. Early authenticated refusals carry verified token identity without trusting the requested namespace. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The HTTP observer calls the core dispatcher directly. Keep batch admission and pre-send proof assertions on the executed path. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Admitted replay spans carry the authorized tenant identity. Describe that order in the dispatcher documentation. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The transport adds bounded, redacted invocation headers without changing request bodies or admission. Renew only the two reviewed client module digests. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
One host tool can trigger several Loom requests. Logical request counting needs a caller guarantee of unique IDs that persist across retries. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
zlareb1
force-pushed
the
feat/prompt-observability-20261119
branch
from
November 21, 2026 19:13
b9ef5b2 to
6e04d61
Compare
Link trace context instead of sharing a trace across invocations. Record resolved session context and catalog refusals, and count each tool call in a batch independently. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Retain the qualified invocation changes and current main without rewriting the existing pull request branch. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Preserve admitted identity on HTTP and MCP replays without resolving capture consent for a skipped handler. Scope HTTP invocation counts to registered routes. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Provider spans can share the operation name with a call root. Document the scope of URL exclusions and the need for non-sensitive caller IDs. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The HTTP envelope holds the status code separately from the invocation span. Count failed calls where the operation and outcome are recorded together. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry
Loom traces distinguish tool, automatic-hook and background-worker origins and record the outcome, duration and optional benchmark context of each call. Hook invocation headers need a server that supports them.
Why
Transport and session identity do not explain why Loom was called. Invocation metadata gives operators and evaluators a way to count actual Loom calls and filter them by benchmark run, case and variant without treating missing origin or usage as measured data.
Scope and risk
/v1/{op}and MCPtools/callrequests record root observations, including refusals and calls toloom_op. HTTP account routes under/v1/me/*, other MCP protocol methods such astools/listandping, batch envelopes, and nested stages are not counted. Each batch tool call and received retry has its own attempt ID. Authenticated idempotent replays keep their trace identity without a capture-consent lookup.Compatibility, rollout and rollback
_meta.loomfields carry origin, correlation and benchmark IDs. No operation argument, stored identity or authorization default changes.loom.call.root=truefor request panels. Use opaque, non-sensitive values for optional invocation IDs; accepted IDs are exported as supplied.Tests
make format-check,make lintandmake typecheckpass on the composed source.node --test integrations/claude-code-plugin/tests/{loom-client-status,prompt-context,usage}.test.mjs: 27 passed.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Codex. Checked transport, trace isolation, usage and generated plugin behavior with focused tests.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
Note
Medium Risk
Touches HTTP/MCP request paths and trace shape operators use for counting and erasure, though instrumentation is designed to fail open and not change authorization or stored identity.
Overview
Adds
loom.call.rootobservation spans for registered HTTP/v1/{op}and MCPtools/call(including refusals andloom_op), with origin, transport, outcome, duration, attempt IDs, and optional benchmark/correlation metadata from headers or MCP_meta.loom. Each call starts its own trace (with optional W3C span links), and provider/ASGI children stay out of request counts.Claude Code and Codex plugins (1.2.55) attach validated
X-Loom-*hook headers (no prompt body), reject redirects when those headers are set, and skip usage rows until token counters are safe integers.HyperDX / Code Plane panels and docs now filter on
loom.call.root=trueinstead ofloom.operation; the failed-code tile groups byloom.call.outcomerather than HTTP status codes.Reviewed by Cursor Bugbot for commit 517f489. Bugbot is set up for automated code reviews on this repo. Configure here.