Expand description
璇璣 (Xuánjī) — the shared reaction model of Tianheng, the 底 the whole stack turns on.
The jade pivot of the armillary sphere, the instrument of celestial measure: the
dimension-agnostic vocabulary Severity, BoundaryKind, Violation,
Report, Baseline, and Outcome (each a finding’s shape; ViolationId is
Violation’s baseline identity). Every observation
dimension — the static 圭表 (guibiao), semantic 渾儀 (hunyi), and runtime 漏刻
(louke) — expresses its findings in these types, so a dimension may reuse the reaction
vocabulary without depending on another dimension’s engine.
This crate carries the JSON (de)serialization that is intrinsic to its types: a
Baseline is a generated JSON snapshot, and a Violation has a canonical JSON
shape. serde_json is its only dependency; it renders no verdict — it holds the
measure, never the react itself.
Govern by reaction, not instruction.
Structs§
- Baseline
- Recorded set of accepted violations.
- Baseline
Entry - One recorded baseline entry.
- Finding
- Pair human-readable finding text with stable structured identity.
- Finding
Key - A dimension-agnostic identity for one observed fact.
- Report
- All violations from one evaluation.
- Violation
- One violated boundary.
- Violation
Id - A violation’s baseline identity and human finding text.
Enums§
- Boundary
Kind - Which kind of boundary produced a violation.
- Outcome
- The reaction’s outcome.
- Polarity
- The repair direction a boundary-drift violation points to.
- Severity
- How strongly a boundary reacts.
Functions§
- apply_
baseline - Mark each violation recorded in baseline as baselined.
- pretty_
json - Serialize an owned
Valueto pretty JSON.