Latest dogfood scans showed several audit recipes are useful but too binary: they report the raw pattern without enough evidence to separate risky code from already-bounded or intentional code.
Examples:
cancellation-token-none reports documented sync compatibility wrappers and timeout-cleanup continuations alongside real cancellation gaps.
sync-over-async reports documented process-boundary bridges.
broad-exception-catch mixes top-level command boundaries with swallowed diagnostic paths.
raw-diagnostic-echo does not distinguish outputs already passed through DiagnosticRedactor / CommandErrorWriter.FormatSanitizedException.
path-case-heuristic reports protocol tokens, CLI option names, and label/name comparisons in addition to path equality.
process-start-info reports safe shared wrappers and direct launch sites with the same weight.
full-materialization and max-value-probe report code with explicit size/saturation comments and bounds.
authorization-handling reports SQL ALTER AUTHORIZATION references as auth-boundary hits.
Requested improvement: add recipe result facets, suppression hints, or query refinements that expose why a hit is risky versus likely-safe, e.g. bounded wrapper, top-level boundary, sanitizer present, protocol/non-path domain, safe process wrapper, or known saturation helper.
Latest dogfood scans showed several audit recipes are useful but too binary: they report the raw pattern without enough evidence to separate risky code from already-bounded or intentional code.
Examples:
cancellation-token-nonereports documented sync compatibility wrappers and timeout-cleanup continuations alongside real cancellation gaps.sync-over-asyncreports documented process-boundary bridges.broad-exception-catchmixes top-level command boundaries with swallowed diagnostic paths.raw-diagnostic-echodoes not distinguish outputs already passed throughDiagnosticRedactor/CommandErrorWriter.FormatSanitizedException.path-case-heuristicreports protocol tokens, CLI option names, and label/name comparisons in addition to path equality.process-start-inforeports safe shared wrappers and direct launch sites with the same weight.full-materializationandmax-value-probereport code with explicit size/saturation comments and bounds.authorization-handlingreports SQLALTER AUTHORIZATIONreferences as auth-boundary hits.Requested improvement: add recipe result facets, suppression hints, or query refinements that expose why a hit is risky versus likely-safe, e.g. bounded wrapper, top-level boundary, sanitizer present, protocol/non-path domain, safe process wrapper, or known saturation helper.