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
//! What:
//! The standards-review shadow run:
//! its request,
//! the patch it covers,
//! its one HTTPS call and the result it appends.
//! Why:
//! The review is optional and self-contained,
//! so its modules sit together.
//!
//! In TS you'd write (pseudocode):
//! ```ts
//! // standards_review/index.ts: one `export * from './file'` per module below.
//! ```
/// The standards-review shadow run: JavaScript text behaviors the log depends on (UTF-16 lengths, number text).
/// The standards-review shadow run: a file's changed old-side ranges read from the patch.
/// The standards-review shadow run: which commits get an entry, and the capped model input.
/// The standards-review shadow run: the Decisions API request body and the answer reading.
/// The standards-review shadow run: log entry rendering and appending.
/// The standards-review shadow run: the in-process HTTPS call to the decisions gateway, with a total deadline.
/// The standards-review shadow run: the two real-Git reads (patch and file texts) of a landed commit.
/// The standards-review shadow run, end to end, and its bounded runner. Nothing calls it yet.
/// A loopback HTTP server for the standards-review tests; never in the release build.
pub
/// The standards-review shadow run: appending an entry to the shared log without a lock, once per commit, with repair.