68d90c08a7
---ci--- project: acdl phase: 7 milestone: v1.1 status: plan-as-execute persona: backend-engineer+security-engineer task: T-7.9 requirements.covered: [REQ-19] ---/ci--- Wave 4 (co-authored): platform/confidence_signal.py (REQ-19). backend-engineer: 6-input weighted sum (WEIGHTS = policy 0.30, validation 0.25, freshness 0.10, source 0.15, history 0.10, nfrs 0.10 per D-040; sums to 1.0), per-env thresholds (dev 0.50, qa 0.75, prod 0.90, dr 0.95), _per_input_score rules, compute() orchestration, Signal dataclass, dev-warn->block flip (autonomous, no reviewer). security-engineer: PENALTY dict (critical=None hard-override sentinel, high 0.20, medium 0.05, low 0.01, info 0.0), critical-override short-circuit return in compute(), severity penalty loop over the policy input's failing PolicyCheckResult records. Verified: missing input -> block + INPUT_MISSING:<name>; critical fail -> 0.0 block + CRITICAL_OVERRIDE:<ruleId>; cold-start spike dev (ACDL _TAG_NAMING skipped, all validation true, nfrs neutral 0.5) -> 0.95 pass. stdlib only.