Skip to main content

Module trust

Module trust 

Source
Expand description

State Trust Score — machine-readable rollup of ASD semantic state quality.

Answers: “Can the agent rely on ASD’s output for the current task?”

§Signals

SignalSourceMax deduction
Index freshnessFTS last_indexed_at−0.30
Symbol countFTS symbol_countblocking
Sidecar statesidecar_lifecycle_state−0.10
Dirty filesgit status --short−0.05
Ledger densityEngine ledger tree−0.15
Concept gapsOwnership without Concept−0.05

§Levels

  • high — score ≥ 0.85
  • medium — score ≥ 0.65
  • low — score ≥ 0.40
  • blocked — score < 0.40 or any blocking signal fires

Structs§

DataQuality
Distinguishes intentional clean-room state from unexpected data loss.
TrustScore
Rolled-up state trust score for the current ASD workspace.
TrustSignals
Raw signal values gathered before scoring. Exposed for debugging and for truth-drift history snapshots.

Functions§

compute_trust_score
Compute a TrustScore for the ASD workspace at db_path.