Commit 4e7c8ff
committed
test(dogfood): the sweep's SELECTION scope on the real driver stack
The differential control the branch never had: `sched_org_sweep`, a
`time_relative` flow declared for org A, with matching rows in BOTH A (one) and
B (two). The discriminating number is the count of LAUNCHED RUNS — 1 with the
fix, 3 on the defect — because a pin asserting only "A's row was touched"
passes on the defect too.
Three properties, three producers:
- selection: exactly one run, and it names A's record;
- the data plane: `update_record` lands on A's row and on no other (the half
the branch left unpinned — the earlier fixture flow was start -> notify ->
end, so nothing would have gone red if the run's narrowing were wrong);
- disclosure: no `sys_notification` names a B record. An unscoped sweep emits
that notification BEFORE its write silently matches nothing, so a fix that
narrowed only the writes would leave the leak open.
The memory limb answers the other question the card is about: a store with no
tenant isolation REFUSES the scoped sweep (#16589) and the failure is reported
at `error` naming the flow, with a paired control proving the refusal is about
the scope and not about the fixture (the same query unscoped still sees all
three rows).
The fixture object gains `due_date` as `datetime`, not `date`: the window is a
pair of ISO instants, and a column the driver truncates to YYYY-MM-DD would put
a per-driver truncation rule between the fixture and the property under test.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012zTkyNHJ7TkuN2oXtP5x371 parent 5cb5f96 commit 4e7c8ff
3 files changed
Lines changed: 399 additions & 5 deletions
File tree
- packages/qa/dogfood
- test
- fixtures
Lines changed: 83 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
13 | 22 | | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
18 | 27 | | |
| 28 | + | |
19 | 29 | | |
20 | 30 | | |
21 | 31 | | |
| |||
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
0 commit comments