@@ -152,7 +152,7 @@ describe('objectstack verify LIFECYCLE (ADR-0057): declared policies bound growt
152152 } ) ;
153153 }
154154
155- const before = await driver . count ( 'growth_probe_event' , { object : 'growth_probe_event' } ) ;
155+ const before = await driver . count ( 'growth_probe_event' , { } ) ;
156156 expect ( before ) . toBe ( 40 ) ;
157157
158158 const report = await lifecycle . sweep ( ) ;
@@ -167,11 +167,11 @@ describe('objectstack verify LIFECYCLE (ADR-0057): declared policies bound growt
167167
168168 // The telemetry table is now bounded by its declared 30d window:
169169 // rows at 5,10,15,20,25d survive (5 rows), everything older is gone.
170- const after = await driver . count ( 'growth_probe_event' , { object : 'growth_probe_event' } ) ;
170+ const after = await driver . count ( 'growth_probe_event' , { } ) ;
171171 expect ( after , 'telemetry rows past retention.maxAge must be reaped' ) . toBe ( 5 ) ;
172172
173173 // Record-class/business data is sacrosanct — same age, still alive.
174- const records = await driver . count ( 'growth_probe_record' , { object : 'growth_probe_record' } ) ;
174+ const records = await driver . count ( 'growth_probe_record' , { } ) ;
175175 expect ( records , 'record-class rows must NEVER be reaped' ) . toBe ( 5 ) ;
176176
177177 // The sweep reported the reap and reclaimed the datasource.
@@ -209,12 +209,12 @@ describe('objectstack verify LIFECYCLE (ADR-0057): declared policies bound growt
209209 // sweep applies the 'rotation' policy without touching the rows inside
210210 // the window.
211211 await streamDriver . create ( 'growth_probe_stream' , { payload : 'tick' } ) ;
212- expect ( await streamDriver . count ( 'growth_probe_stream' , { object : 'growth_probe_stream' } ) ) . toBe ( 1 ) ;
212+ expect ( await streamDriver . count ( 'growth_probe_stream' , { } ) ) . toBe ( 1 ) ;
213213
214214 const report = await lifecycle . sweep ( ) ;
215215 const entry = report . swept . find ( ( e ) => e . object === 'growth_probe_stream' ) ;
216216 expect ( entry ?. policy ) . toBe ( 'rotation' ) ;
217- expect ( await streamDriver . count ( 'growth_probe_stream' , { object : 'growth_probe_stream' } ) ) . toBe ( 1 ) ;
217+ expect ( await streamDriver . count ( 'growth_probe_stream' , { } ) ) . toBe ( 1 ) ;
218218 } ) ;
219219
220220 it ( 'ARCHIVE SAFETY: an audit ledger with a declared archive is never hot-deleted unarchived' , async ( ) => {
@@ -230,7 +230,7 @@ describe('objectstack verify LIFECYCLE (ADR-0057): declared policies bound growt
230230 // No archive datasource named 'archive_missing' exists ⇒ the rows are
231231 // RETAINED (today's behavior), not dropped. Compliance data cannot be
232232 // destroyed by declaring a lifecycle.
233- const ledger = await driver . count ( 'growth_probe_ledger' , { object : 'growth_probe_ledger' } ) ;
233+ const ledger = await driver . count ( 'growth_probe_ledger' , { } ) ;
234234 expect ( ledger , 'archive-declared audit rows must be retained until archived' ) . toBe ( 3 ) ;
235235 expect ( report . skipped ) . toContainEqual ( { object : 'growth_probe_ledger' , reason : 'archive-pending' } ) ;
236236 } ) ;
@@ -255,9 +255,9 @@ describe('objectstack verify LIFECYCLE (ADR-0057): declared policies bound growt
255255 expect ( ( entry as { archived ?: number } ) ?. archived ) . toBe ( 3 ) ;
256256
257257 // Hot store drained, cold store holds the ledger.
258- const hot = await driver . count ( 'growth_probe_ledger' , { object : 'growth_probe_ledger' } ) ;
258+ const hot = await driver . count ( 'growth_probe_ledger' , { } ) ;
259259 expect ( hot , 'archived rows must leave the hot store' ) . toBe ( 0 ) ;
260- const coldRows = await cold . count ( 'growth_probe_ledger' , { object : 'growth_probe_ledger' } ) ;
260+ const coldRows = await cold . count ( 'growth_probe_ledger' , { } ) ;
261261 expect ( coldRows , 'archived rows must land in the cold store' ) . toBe ( 3 ) ;
262262 await cold . disconnect ( ) ;
263263 } ) ;
0 commit comments