Repository navigation
test(routing): add 302-case legacy parity baseline - #57
Conversation
|
Nice work on this, the approach of running the real legacy code against the 302 cases is solid. One change before merge: the whole-file checksum on The cases already catch real behaviour changes. Your
Either is fine with me; the second keeps a "you touched the decision code" signal if you want it. |
|
Addressed the whole-file checksum concern in commit 6a4ce77.
Validation: 487 routing/worklist tests passed; all 306 baseline/guard tests also passed when replayed against #58's extracted legacy code. Ruff and repository hooks passed. |
|
/lgtm |
|
/approved |
Import the 302 SDK fixture cases into Traust and verify them against the checked-out legacy Python worklist code, so subsequent extraction can expose behavior changes by case name. - Preserve both SDK JSON fixtures byte for byte (93 table, 20 risk-tier, 30 event-lane and 159 primary-selection cases) - Execute legacy functions/constants using the original generators' adapter approach - Verify fixture checksums/counts and compare all 302 cases against the current legacy code - Mutation check proves a changed churn threshold is detected XWING-2216 Co-authored-by: Cursor <cursoragent@cursor.com>
6a4ce77 to
5d401f9
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chubirka, girish1430, smith-xyz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The work-router refactor needs a repeatable record of existing decisions. This PR imports the 302 SDK fixture cases into Traust and verifies them against the checked-out legacy Python worklist code, so subsequent extraction can expose behavior changes by case name.
This is the legacy-baseline portion of XWING-2216 and can be reviewed and merged independently of XWING-2215. It does not complete old/new router parity or change production routing policy.
Implementation
main(), using the original generators' adapter approach. Temporary JSONL/SQLite fixtures cover events and inventory bootstrap; network connections and subprocesses are blocked during these tests.XWING-2216 progress and follow-up
Route(lane, priority, reason), including rule IDs, helper cases, multiple event decisions and bootstrap; preserve coverage without inventing interface fields.Validation
python -m pytest -q tests/test_route_parity.py tests/test_build_rescan_worklist.py: 487 passed in 2.21s (306 baseline/guard tests and 181 existing worklist tests).feat/per-repo-observation(feat(observe): expose Core repository observation through Traust CLI #58).