Repository navigation
Record typed pre-routing signals in telemetry (#35) - #41
Conversation
Every stage row now carries what its router could have known before choosing a model, and nothing learned afterwards: - declared: difficulty, verifiability, security_sensitive; - observed: diff counts, area flags and fixed per-language counters from the new scripts/stage_signals.py, for stages routed after the implementation only; prior findings by severity from the latest verdict; previous failed attempts; resolution round; and verification availability when declared with --verification; - estimated: changed_lines_estimate and test_count_estimate. Unknown signals are omitted rather than recorded as zero. Paths are classified in memory and dropped; only bounded counts and flags reach FIELD_SPECS. Telemetry schema moves to version 2 additively: all new fields live in payload, so version-1 rows remain readable. Closes #35
Revisión inicial — CHANGES_REQUESTEDRevisé el diff acumulado de Hallazgos[REV-001] · medium · open · blocks:yes — El rol
|
run is a supported role that is routed after a change exists, so its row now carries the diff signals like review, resolve, security and verify. A regression test covers every post-implementation role.
Comment resolution — RESOLVEDPrevious HEAD Findings[REV-001] · medium · resolved · blocks:yes — The
|
Rerevisión — APPROVEDRevisé el diff acumulado de Hallazgo anterior[REV-001] · medium · resolved · blocks:yes — El rol
|
Closes #35 — #35
What changes in behaviour
Every stage row now records the signals its router could have known before choosing a model. Telemetry schema moves to version 2; the change is additive (all new fields live in
payload), so version-1 rows are read exactly as written.difficulty,verifiability,security_sensitiverouter.TaskSignals(now also on blocked-routing rows)changed_files_count,has_tests,touches_{dependencies,database,auth,api,migrations,ci},changed_<language>_filesorigin/<default_branch>, newscripts/stage_signals.pyprior_findings_{total,blocking,critical,high,medium,low}previous_failed_attempts,resolution_round,verification_available--verification available|unavailablechanged_lines_estimate,test_count_estimatetelemetry.PRE_ROUTING_SIGNALScarries the same classification.Temporal rule
implementis routed before any diff exists: no change signals at all (the observer is not even called).prior_findings_*come from the previous verdict; a verdict without findings leaves them unknown instead of carrying an older count forward. Severity counts are recorded only when every finding names its severity.previous_failed_attemptscounts non-succeeded dispatches (including an attempt abandoned for a reroute and blocked routings) before this routing.resolution_roundonly onresolve/rereview.Unknown ≠ zero
Unreadable diff (no worktree, no resolvable base, no Git) → every change signal omitted. A readable empty diff → zero.
--verificationomitted → not recorded.Privacy boundary
Paths and diff text are classified in memory and dropped. Languages are a fixed list of scalar counters (13 fields incl.
other), never arrays or maps. New counts are bounded byFIELD_LIMITS(non-negative,difficulty1–3). Unknown field names and containers are still refused byFIELD_SPECS. Path classifiers are heuristics (auth matched by whole word soprocessor≠sso), documented as such.Out of scope, unchanged: the routing decision itself, Jev, any prompt/prose/path storage.
Verification
python3 -m unittest discover -s tests→ 519 tests OK (33 new intests/test_stage_signals.py: classifiers, real-Git collector, recorder temporal rules, driver severity counts, field validation/bounds, v1→v2 database compatibility)python3 scripts/validate-package.py→ VALID (manifest includesstage_signals.py)