Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5cc00c7
Add SSAT debug comment configuration spec and implementation plan
prk-Jr Jul 21, 2026
d34e558
Add configurable options struct for the SSAT debug comment
prk-Jr Jul 21, 2026
c6bf1ce
Make the SSAT ts-debug comment's sections, metadata, and verbosity co…
prk-Jr Jul 21, 2026
d2b1433
Document auction_html_comment_options in the example config
prk-Jr Jul 21, 2026
2b95ac4
Fix clippy findings in the SSAT debug comment config (doc markdown, r…
prk-Jr Jul 21, 2026
07e30f5
Apply prettier formatting to the spec and plan docs
prk-Jr Jul 21, 2026
bf27dbf
Merge branch 'main' into feat/ssat-debug-comment-config
prk-Jr Jul 21, 2026
0fb0cbb
Merge remote-tracking branch 'origin/main' into feat/ssat-debug-comme…
prk-Jr Aug 17, 2026
7d2ba2d
Revise SSAT debug comment sensitivity model
prk-Jr Aug 17, 2026
3715f27
Tighten SSAT debug metadata privacy model
prk-Jr Aug 17, 2026
8a61578
Validate redacted SSAT metadata by schema
prk-Jr Aug 17, 2026
de3db0a
Clarify SSAT upstream safety contract
prk-Jr Aug 17, 2026
1af743c
Update SSAT debug comment implementation plan
prk-Jr Aug 17, 2026
e7f057d
Correct SSAT implementation verification plan
prk-Jr Aug 17, 2026
a99033f
Fix SSAT plan metadata type handling
prk-Jr Aug 17, 2026
9825743
Harden SSAT debug comment configuration modes
prk-Jr Aug 17, 2026
567c963
Enforce SSAT debug response metadata schemas
prk-Jr Aug 17, 2026
737c18a
Document SSAT debug sensitivity modes
prk-Jr Aug 17, 2026
8f5b345
Design SSAT debug comment output formatting
prk-Jr Aug 18, 2026
0565947
Plan SSAT debug comment output formatting
prk-Jr Aug 18, 2026
2050f18
Configure SSAT debug comment output format
prk-Jr Aug 18, 2026
00a969a
Pretty print SSAT debug comment dumps
prk-Jr Aug 18, 2026
e4c52a8
Document SSAT debug comment formatting
prk-Jr Aug 18, 2026
ccda520
Format SSAT debug comment implementation plan
prk-Jr Aug 18, 2026
67d1608
Document SSAT auction debug comment usage
prk-Jr Aug 18, 2026
45c7ccd
Merge branch 'main' into feat/ssat-debug-comment-config
aram356 Aug 18, 2026
b3ae41f
Validate and version-guard the SSAT debug comment options
prk-Jr Aug 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions crates/trusted-server-core/src/auction/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,29 @@ impl DispatchedAuction {

const PROVIDER_ERROR_MESSAGE_CHARS: usize = 500;

const ERROR_TYPE_PARSE_RESPONSE: &str = "parse_response";
const ERROR_TYPE_LAUNCH_FAILED: &str = "launch_failed";
const ERROR_TYPE_TRANSPORT: &str = "transport";
const ERROR_TYPE_TIMEOUT: &str = "timeout";
pub(crate) const ERROR_TYPE_PARSE_RESPONSE: &str = "parse_response";
pub(crate) const ERROR_TYPE_LAUNCH_FAILED: &str = "launch_failed";
pub(crate) const ERROR_TYPE_TRANSPORT: &str = "transport";
pub(crate) const ERROR_TYPE_TIMEOUT: &str = "timeout";
/// A non-2xx HTTP status from an upstream SSP (e.g. a PBS 4xx/5xx). Distinct
/// from [`ERROR_TYPE_TRANSPORT`] (a connection-level failure) so telemetry can
/// bucket it separately. `pub(crate)` so producers such as the prebid provider
/// tag errors with the exact value the telemetry layer recognises.
pub(crate) const ERROR_TYPE_HTTP_STATUS: &str = "http_status";

/// Every server-owned `error_type` classification.
///
/// Consumers that reproduce these values — notably the `ts-debug` redaction
/// layer in [`crate::publisher`] — validate against this list so a new
/// classification cannot silently disappear from their output.
pub(crate) const ERROR_TYPE_ALL: &[&str] = &[
ERROR_TYPE_PARSE_RESPONSE,
ERROR_TYPE_LAUNCH_FAILED,
ERROR_TYPE_TRANSPORT,
ERROR_TYPE_TIMEOUT,
ERROR_TYPE_HTTP_STATUS,
];

// SECURITY: the returned string is included verbatim (truncated to
// PROVIDER_ERROR_MESSAGE_CHARS) in the public /auction response via
// ProviderSummary.metadata["message"]. Providers MUST NOT interpolate
Expand Down
831 changes: 745 additions & 86 deletions crates/trusted-server-core/src/publisher.rs

Large diffs are not rendered by default.

Loading
Loading