Commit 11f68d5
committed
chore(mocks): cover rule version history/diff/rollback paths
The round-3/4 review introduced new error paths (VERSION_CONFLICT,
VERSION_LEDGER_PENDING, FEATURE_DISABLED, intent repair/abandon) that
the dev-mode mocks could not exercise, so UI regressions in those
flows would only surface against a live backend.
- new ruleVersion.ts: in-memory ledger per (kind, ruleName); rollback
appends a ROLLBACK version so the history-drawer close-the-loop is
realistic
- routing/tag/dynamicConfig writes honour -conflict / -pending /
-disabled rule-name conventions to trigger the matching 409/503
branches without runtime config knobs1 parent ae5ed03 commit 11f68d5
5 files changed
Lines changed: 399 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
31 | 50 | | |
32 | 51 | | |
33 | 52 | | |
| |||
45 | 64 | | |
46 | 65 | | |
47 | 66 | | |
48 | | - | |
| 67 | + | |
49 | 68 | | |
50 | 69 | | |
51 | 70 | | |
52 | 71 | | |
53 | 72 | | |
54 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
55 | 76 | | |
56 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
57 | 80 | | |
58 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
59 | 84 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | 42 | | |
33 | 43 | | |
| |||
59 | 69 | | |
60 | 70 | | |
61 | 71 | | |
62 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
63 | 75 | | |
64 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
65 | 79 | | |
66 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
67 | 83 | | |
0 commit comments