plano/crates/brightstaff/src/signals
Syed Hashmi f7d067269c signals: group summary by taxonomy, factor misalignment_ratio
Addresses #903 review feedback from @nehcgs:

- generate_summary() now renders explicit Interaction / Execution /
  Environment headers so the paper taxonomy is visible at a glance,
  even when no signals fired in a given layer. Quality-driving callouts
  (high misalignment rate, looping detected, escalation requested) are
  appended after the layer summary as an alerts tail.

- repair_ratio (legacy taxonomy name) renamed to misalignment_ratio
  and factored into a single InteractionSignals::misalignment_ratio()
  helper so assess_quality and generate_summary share one source of
  truth instead of recomputing the same divide twice.

Two new unit tests pin the layer headers and the (sev N) severity
suffix. Parity with the python reference is preserved at the Tier-A
level (per-type counts + overall_quality); only the human-readable
summary string diverges, which the parity comparator already classifies
as Tier-C.

Made-with: Cursor
2026-04-22 21:34:32 -07:00
..
environment signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00
execution signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00
interaction signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00
analyzer.rs signals: group summary by taxonomy, factor misalignment_ratio 2026-04-22 21:34:32 -07:00
mod.rs signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00
otel.rs signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00
schemas.rs signals: group summary by taxonomy, factor misalignment_ratio 2026-04-22 21:34:32 -07:00
text_processing.rs signals: port to layered taxonomy with dual-emit OTel 2026-04-21 12:29:06 -07:00