1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//! Private, explicitly selected native startup observations.
//!
//! Selection admits exactly one configured URI and a finite set of selectors;
//! it grants no navigation, input or page-lifecycle authority. Configuration
//! and retained records share the existing native/browser representation law.
//!
//! A trace record is admitted atomically: for encoded lengths `b_i`,
//! `sum(b_i) <= MAX_WEBVIEW_MESSAGE_BYTES` and the admitted record count is at
//! most `MAX_WEBVIEW_EVENTS`. Exhaustion is sticky and omitted attempts remain
//! counted. No prefix of an oversized record becomes evidence.
//!
//! The selected diagnostic JSON layer has no timestamp, spans or current-span
//! fields. Its empty observation envelope has fixed length `E`. Compact JSON
//! contains no raw control characters, so putting an encoded record inside a
//! second JSON string adds at most one byte per existing byte. Thus ordinary
//! records occupy at most `2*B + E*N` bytes. Two separately bounded terminal
//! metadata records add at most `4*B + 2*E`, giving `6*B + E*(N+2)`, below the
//! existing 1 MiB Metis consumer limit for the tested exact envelope. This
//! bounds retained Rust bytes; it makes no claim about Chromium's allocations
//! before a native callback receives a response.
//!
//! One request slot covers the entire asynchronous DOM chain. Invalidation
//! changes its generation without releasing the in-flight owner; only that
//! request's terminal callback clears the slot. Close makes every reply stale
//! and refuses new work. A late or unrelated reply cannot clear another owner.
//! These are point observations under the existing native deadline, never a
//! manufactured Ready event or a guarantee that a browser callback completes.
pub use Selection;
pub use BudgetSnapshot;
pub use ;
pub use RequestId;
pub use ;
pub use ;
/// The dedicated diagnostic layer's exact tracing target.
pub const TRACE_TARGET: &str = "moirai_pal::windows::webview::startup";
/// Explicit fixture selection; ordinary hosts do not enable observations.
pub const SELECTION_ENV: &str = "MOIRAI_WEBVIEW_STARTUP_OBSERVATION";