Entropy Monitors
Path:
loom-sprint-scaffold/loom/src/synthesis/core/entropy-monitors.tsRelative: loom/src/synthesis/core/entropy-monitors.tsSubproject: loom-sprint-scaffoldCategory: otherLines: 177Bytes: 5,757Imports: 1Exports: 7
Content Preview
- /**
- * H5.4 — Entropy Monitors.
- *
- * Queries entropy H(q) (dispatch outcome entropy) and H(s) (source/variety_class
- * entropy) over sliding dispatch windows using Shannon entropy with natural log.
- *
- * Shannon entropy: H(X) = -Σ p(x_i) * ln(p(x_i))
- *
- * Window size tunable (default 20 dispatches). Collapse below thresholds
- * → flag exploration_failure / confirmation_bias entries in the report.
- *
- * Pure functions, table-tested with hand-computed entropy values.
- */
- import type { EnrichedT