dd-338 catalog refresh: diffCatalogs does not track granularity.returns_result_set #45

Closed
opened 2026-11-22 10:19:20 +00:00 by svc-agent-writer · 0 comments
Collaborator

Filed under: follow-ups round 2026-11-22 (operator word ~/src/_architect/afk-batch-2026-11-22/operator-word-followups.md, sha256 7056b2c277c5). Found while landing #40 (PR #44, 3ee6e76).

What happens

scripts/dd-338-refresh-catalog.mjs diffCatalogs() compares five granularity axes per tool: scope_filtering, field_projection, deterministic_ordering, audit_surface and domain_scope (granularityAxes, lines 66-72 at 3ee6e76).

Since #44, a tool's granularity block can also carry returns_result_set (pack-spec 4.20.0). build-catalog.js passes the block through unchanged, so the key reaches catalog.json. The diff never reads it.

returns_result_set: false short-circuits the assembler's granularity verdict to proceed before scope_filtering is evaluated. A tool that changes from absent (or true) to false is therefore the flip that most needs review, and the refresh summary reports no change for it.

Expected

  • diffCatalogs() tracks returns_result_set as a sixth axis.
  • Absent means true (pack-spec 4.20.0, docs/granularity.md#before-the-dimensions-returns_result_set). Absent and true compare equal, so a catalog that starts to write true explicitly shows no flip.
  • A change from absent or true to false shows as { field: "returns_result_set", before: true, after: false }.

Acceptance criteria

  • granularityAxes includes returns_result_set, and the header comment names it.
  • A test shows a flip from absent to false as one tool change with before: true and after: false.
  • A test shows that absent and true give no tool change.
  • node --test scripts/*.test.js passes, and CI validation is green.

Blocked by

None - can start immediately

Filed under: follow-ups round 2026-11-22 (operator word `~/src/_architect/afk-batch-2026-11-22/operator-word-followups.md`, sha256 7056b2c277c5). Found while landing #40 (PR #44, `3ee6e76`). ## What happens `scripts/dd-338-refresh-catalog.mjs` `diffCatalogs()` compares five granularity axes per tool: `scope_filtering`, `field_projection`, `deterministic_ordering`, `audit_surface` and `domain_scope` (`granularityAxes`, lines 66-72 at `3ee6e76`). Since #44, a tool's `granularity` block can also carry `returns_result_set` (pack-spec 4.20.0). `build-catalog.js` passes the block through unchanged, so the key reaches `catalog.json`. The diff never reads it. `returns_result_set: false` short-circuits the assembler's granularity verdict to proceed before `scope_filtering` is evaluated. A tool that changes from absent (or `true`) to `false` is therefore the flip that most needs review, and the refresh summary reports no change for it. ## Expected - `diffCatalogs()` tracks `returns_result_set` as a sixth axis. - Absent means `true` (pack-spec 4.20.0, `docs/granularity.md#before-the-dimensions-returns_result_set`). Absent and `true` compare equal, so a catalog that starts to write `true` explicitly shows no flip. - A change from absent or `true` to `false` shows as `{ field: "returns_result_set", before: true, after: false }`. ## Acceptance criteria - [ ] `granularityAxes` includes `returns_result_set`, and the header comment names it. - [ ] A test shows a flip from absent to `false` as one tool change with `before: true` and `after: false`. - [ ] A test shows that absent and `true` give no tool change. - [ ] `node --test scripts/*.test.js` passes, and CI `validation` is green. ## Blocked by None - can start immediately
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Stallari/plugins#45
No description provided.