Skip to main content

Module context_propagation

Module context_propagation 

Source
Expand description

sqry context-propagation — Go context-propagation analysis CLI (T3.7).

Surfaces context.Context plumbing breaks classified by sqry_db::queries::context_propagation::ContextPropagationQuery:

  • BreakSite — sync caller has a context.Context parameter, callee accepts context.Context, but the call passes zero context args.
  • UnthreadedGoroutinego callee(...) with a ctx-accepting callee.
  • HttpHandlerLeak — caller is func(http.ResponseWriter, *http.Request) and the callee is ctx-accepting, but the call drops r.Context().

This CLI mirrors the MCP context_propagation tool from Cluster G; both route through sqry_db::queries::dispatch::make_query_db_cold so the per-publish cache contract from CLAUDE.md §“Persistence (V10)” is preserved.

Structs§

CallSiteSpan
Call-site coordinates in 1-based lines + 0-based byte columns.
ContextLeakHit
One JSON row produced by --output json (default cli.json). Matches the schema enumerated in CLI_INTEGRATION.md §1.3.

Functions§

run_context_propagation
Entry point for the sqry context-propagation subcommand.