Track returns_result_set in the catalog refresh diff (#45) #46

Merged
svc-svd-writer merged 1 commit from fix/45-returns-result-set-diff into main 2026-11-22 10:29:49 +00:00
Collaborator

Summary

diffCatalogs() now tracks granularity.returns_result_set as a sixth axis. An absent key means true.

 for each tool present in both catalogs
   for axis in [scope_filtering, field_projection, deterministic_ordering,
-               audit_surface, domain_scope]
+               audit_surface, domain_scope, returns_result_set]
-    before = prev[axis] ?? null
-    after  = new[axis]  ?? null
+    before = prev[axis] ?? axisDefaults[axis] ?? null   # returns_result_set: true
+    after  = new[axis]  ?? axisDefaults[axis] ?? null
     if before != after: record a tool change

Evidence

  • Before (3ee6e76 source, new tests): node --test scripts/dd-338-refresh-catalog.test.js gives 13 tests, 11 pass, 2 fail:
    • reports a flip from absent to false with before: true
    • reports a flip from false back to true
  • After (8b86338): 13 tests, 13 pass, 0 fail.
  • Full suite on the host after node scripts/build-forge-context.js: node --test scripts/*.test.js gives 228 tests, 213 pass, 0 fail, 15 skipped. Baseline at 3ee6e76 was 225, 210, 0, 15; the 3 new tests account for the difference.

Merge Danger

Door: two-way

The change is in one exported function of the refresh script and its tests. A revert restores the old summary.

Blast Radius: small

Only the DD-338 refresh summary changes. A tool that declares returns_result_set: false now appears as one tool flip. catalog.json and the schema are unchanged.

Closes #45

🤖 Generated with Claude Code

## Summary `diffCatalogs()` now tracks `granularity.returns_result_set` as a sixth axis. An absent key means `true`. ```diff for each tool present in both catalogs for axis in [scope_filtering, field_projection, deterministic_ordering, - audit_surface, domain_scope] + audit_surface, domain_scope, returns_result_set] - before = prev[axis] ?? null - after = new[axis] ?? null + before = prev[axis] ?? axisDefaults[axis] ?? null # returns_result_set: true + after = new[axis] ?? axisDefaults[axis] ?? null if before != after: record a tool change ``` ## Evidence - **Before** (`3ee6e76` source, new tests): `node --test scripts/dd-338-refresh-catalog.test.js` gives 13 tests, 11 pass, 2 fail: - `reports a flip from absent to false with before: true` - `reports a flip from false back to true` - **After** (`8b86338`): 13 tests, 13 pass, 0 fail. - Full suite on the host after `node scripts/build-forge-context.js`: `node --test scripts/*.test.js` gives 228 tests, 213 pass, 0 fail, 15 skipped. Baseline at `3ee6e76` was 225, 210, 0, 15; the 3 new tests account for the difference. ## Merge Danger **Door:** two-way The change is in one exported function of the refresh script and its tests. A revert restores the old summary. **Blast Radius:** small Only the DD-338 refresh summary changes. A tool that declares `returns_result_set: false` now appears as one tool flip. `catalog.json` and the schema are unchanged. Closes #45 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Track returns_result_set in the catalog refresh diff (#45)
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
8b86338384
diffCatalogs compared five granularity axes and never read
returns_result_set, which #44 added to the catalog entry schema
(pack-spec 4.20.0). A tool that changed to false, the value that
short-circuits the assembler's verdict, showed no change in the
refresh summary.

Add it as a sixth axis. An absent key means true, so absent and true
compare equal and a flip to false reports before: true.

Closes #45

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
svc-svd-writer deleted branch fix/45-returns-result-set-diff 2026-11-22 10:29:50 +00:00
Sign in to join this conversation.
No reviewers
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!46
No description provided.