Skip to content

Commit 8ca2432

Browse files
committed
test(client): ledger the #29304 route pin's two producer analytics.query sites
The envelope-caller census (#13079) counts producer-service analytics.query call sites. The #29304 route pin in objectql-echo-non-date-bucket.test.ts adds two, calling the plugin-registered AnalyticsService directly: NOT_SDK, as the file's existing sites. Ledger row 2 -> 4; service sites and NOT_SDK total 17 -> 19. No logic change. Claude-Session: https://claude.ai/code/session_016WV4cyTehJsfYGVMzcXLJD Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6bcd578 commit 8ca2432

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

‎packages/client/src/envelope-caller-census.test.ts‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,8 @@ const LEDGER: readonly LedgerRow[] = [
534534
// ── [#28977] the /analytics/sql dry run vs the query for a date bucket over a column that is not a date: producer reads only ──
535535
{
536536
file: 'packages/services/service-analytics/src/__tests__/objectql-echo-non-date-bucket.test.ts',
537-
method: 'analytics.query', receiver: 'service', count: 2, verdict: 'NOT_SDK',
538-
why: 'the real AnalyticsService that AnalyticsServicePlugin registers over a live engine, called directly (no HTTP, no dispatcher envelope) to compare the query\'s refusal with the dry run\'s (a date bucket over a text, select, number, boolean or time column), and to read the `sql` the query serves for a date and a datetime bucket',
537+
method: 'analytics.query', receiver: 'service', count: 4, verdict: 'NOT_SDK',
538+
why: 'the real AnalyticsService that AnalyticsServicePlugin registers over a live engine, called directly (no HTTP, no dispatcher envelope) to compare the query\'s refusal with the dry run\'s (a date bucket over a text, select, number, boolean or time column), and to read the `sql` the query serves for a date and a datetime bucket; [#29304] and to read which strategy serves a stored, measure-only or cube dimension (native) and which refuses a formula dimension (the engine)',
539539
},
540540
{
541541
file: 'packages/client/src/analytics-automation-json-erasure.test.ts',
@@ -781,7 +781,10 @@ describe('#13079 §2 — positive controls on the matcher itself', () => {
781781
// bucket over a column that is not a date calls the same
782782
// plugin-registered AnalyticsService to compare the query's refusal
783783
// and served `sql` with `generateSql`'s.
784-
expect(service.length, literalNote()).toBe(17);
784+
// [#29304] Two more sites in that file: the route pin calls the same
785+
// plugin-registered AnalyticsService to read which strategy serves a
786+
// stored dimension and which refuses a formula one.
787+
expect(service.length, literalNote()).toBe(19);
785788
expect([...new Set(service.map((s) => s.file))].sort()).toEqual([
786789
'packages/client/src/analytics-automation-json-erasure.test.ts',
787790
'packages/drivers/driver-memory/src/memory-exists-non-boolean-refusal.test.ts',
@@ -836,15 +839,16 @@ describe('#13079 §3 — every call site is classified', () => {
836839
expect(production, literalNote()).toEqual([]);
837840
});
838841

839-
it('records the split: 18 payload pins, 10 result-insensitive, 17 not-SDK', () => {
842+
it('records the split: 18 payload pins, 10 result-insensitive, 19 not-SDK', () => {
840843
expect(verdictTotal('PAYLOAD_DEPENDENT')).toBe(18);
841844
expect(verdictTotal('RESULT_INSENSITIVE')).toBe(10);
842845
// [#21441] 8 -> 9: the date-bucket echo pin's producer call (§2).
843846
// [#21647] 9 -> 11: the bucket echo enumeration's two producer calls (§2).
844847
// [#28841] 11 -> 14: the dry-run parity pin's three producer calls (§2).
845848
// [#28852] 14 -> 15: its dateRange-precedence call.
846849
// [#28977] 15 -> 17: the non-date bucket dry-run parity pin's two producer calls (§2).
847-
expect(verdictTotal('NOT_SDK')).toBe(17);
850+
// [#29304] 17 -> 19: the same file's route pin, two producer calls (§2).
851+
expect(verdictTotal('NOT_SDK')).toBe(19);
848852
// The three above are LEDGER sums and cannot move on a census reading;
849853
// this one is census-derived, so it carries the note. [#13874]
850854
expect(sdkSites.length, literalNote()).toBe(28);

0 commit comments

Comments
 (0)