fix(quota): preserve work obligations across narrative labels #5950
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 486 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.370
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5950"
general
weight: 0.35
BigDataDZ
Problem and result
A historical run with valid
surface_onlydelivery facts requiresadvance_primary_outcome_or_write_blocker. Addingdependency_observationto its free-text classification instead routed the same work into a monitor lane and removed that follow-through obligation. Even authoredprogress_scope=goalwas ineffective because status compaction dropped it.This change removes classification/status substring inference from the shared work-lane read adapter and preserves explicit scope through compact history. Both quota routing and heartbeat guidance now retain typed obligations when only narrative text changes.
Boundary and compatibility
goal|agent_laneremain distinct from the existing explicit localprimary_goal|dependency_observationread contract. Explicit local scope remains supported. Missing historical scope defaults to ordinary advancement; unknown explicit values retain their prior non-dependency behavior. No history is rewritten.Validation
21707b7fb64123df02e730bf7959192010f85a1b; proposed head:07fbc7be09885e77d8a2d4224cd411aa0e2ab6d8. The immutable counterexample baseline was5cb9e4b8222a94a24a38ad2d7163e32322c11f73; this same change was rebased without conflicts after #5882/#5861 merged.21707b7at the changed obligation/lane, then pass on head. Fixtures hold typed run/Todo/quota facts fixed and vary only narrative classification, across missing and authoredgoalscope with ordinary andsurface_onlyoutcomes.agent_laneis covered by compaction unit tests; full agent-lane CLI and promoted-provider journeys were not added.The related future-facing pass retires the duplicate prose-derived authority at the existing shared adapter, so its heartbeat caller needs no second classifier. Broader work-lane migration remains separate. All fixtures are synthetic; no active Goal, production provider, model job or external send was used. Generated lock files and raw evidence are excluded. Maintainer merge only.