Commit c2cf2da
committed
test(plugin-hono-server): make the localization pin's ObjectQL double honour
The double answered by object name and dropped `opts.limit`, so neither read it
serves could tell a bounded read from an unbounded one — and both carry a bound
(`sys_user` at 1, the grouped `sys_setting` `$in` read at 10). It now draws from
a row table, filters with a `where` matcher that refuses any operator it does not
implement, and applies the bound BY PRESENCE (`typeof opts?.limit === 'number'`)
AFTER the filter.
`check:objectql-double-limit` could not grade the old double at all: its deepest
binding strategy stubs every non-function declaration, the counter
`let sysUserReads = 0` became the gate's row-stub Proxy, and `++sysUserReads`
raised `TypeError: Cannot convert object to primitive value` — reported as
UNJUDGED, which the gate treats as debt rather than a skip. The double now seats
on the gate's control probe at the earlier binding strategy, so it is graded
CONFORMING (limit 3 -> 3 rows, 5 -> 5, 0 -> 0 of 7 matches) instead of throwing.
No baseline entry was added; the ledger never grows.
What the file ASSERTS is unchanged — all 13 cases pass, including the corrected
`timezone`/`currency` contract.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D47qPfEWVPmhguWgBZCi5Nwhere and the caller's bound1 parent 18588cd commit c2cf2da
1 file changed
Lines changed: 53 additions & 18 deletions
Lines changed: 53 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
97 | 123 | | |
98 | 124 | | |
99 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
100 | 144 | | |
101 | 145 | | |
102 | 146 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
121 | 156 | | |
122 | 157 | | |
123 | 158 | | |
| |||
0 commit comments