catalog-entry schema: adopt returns_result_set (pack-spec 4.20.0) #40

Closed
opened 2026-08-20 15:12:10 +00:00 by piersdd · 4 comments
piersdd commented 2026-08-20 15:12:10 +00:00 (Migrated from github.com)

What to build

Adopt the pack-spec 4.20.0 returns_result_set key in the catalog-entry schema, so plugin authors can declare it.

returns_result_set — boolean, default true, on the per-tool granularity block. Declares whether the tool returns a result set at all.

Why

scope_filtering: none means two different things, and this repo's own schema description says both:

"none: tool has no concept of scope (data is naturally unscoped, or the plugin punts entirely)."

Only the second is the failure mode DD-333 refuses. The first — no result set to scope — is a different claim the verdict table cannot express, so it refuses tools the contract was never written about.

Ratified in stallari-harness ADR-0042 § Amendment 2026-08-21 (0f1aced2). Normative definition and the version bump land upstream in Groupthink-dev/stallari-pack-spec#20.

Blocked by

Scope

Write set:

  • schemas/catalog-entry.schema.json — add returns_result_set to the granularity block. The block is additionalProperties: false, so this edit is what makes the key declarable at all.
  • scripts/catalog-entry.schema.test.js — cases for present-true, present-false, and absent.
  • scripts/build-catalog.js — only if it needs to carry the key through; check before assuming it does.

Acceptance criteria

  1. schemas/catalog-entry.schema.json accepts returns_result_set as a boolean on the granularity block, and it is not added to that block's required array.
  2. A catalog entry that omits the key still validates, and every existing plugin JSON in plugins/tools/ validates unchanged — 59 files, 20 of which carry a granularity block.
  3. A catalog entry declaring returns_result_set: false validates.
  4. A non-boolean value is rejected.
  5. scripts/catalog-entry.schema.test.js covers 1–4, and the existing suite stays green.
  6. The non_conformance_rationale derivation in build-catalog.js is untouched. The new key is not a non-conformance signal — see #20 for why conflating the two would mislabel a shape fact as a diligence failure.

Evidence

Measured at da20179: 59 JSON files under plugins/tools/, 20 carrying a granularity block, 19 declaring at least one scope_filtering: "none", 243 such declarations in total, 78 of them in cloudflare-blade-mcp.json. All of them keep their current verdict — the default is true.

Refs Groupthink-dev/stallari-harness#1026, Groupthink-dev/stallari-harness#1027, Groupthink-dev/stallari-pack-spec#20.

## What to build Adopt the pack-spec 4.20.0 `returns_result_set` key in the catalog-entry schema, so plugin authors can declare it. `returns_result_set` — boolean, default `true`, on the per-tool `granularity` block. Declares whether the tool returns a result set at all. ## Why `scope_filtering: none` means two different things, and this repo's own schema description says both: > "none: tool has no concept of scope (data is naturally unscoped, or the plugin punts entirely)." Only the second is the failure mode DD-333 refuses. The first — no result set to scope — is a different claim the verdict table cannot express, so it refuses tools the contract was never written about. Ratified in `stallari-harness` ADR-0042 § Amendment 2026-08-21 (`0f1aced2`). Normative definition and the version bump land upstream in Groupthink-dev/stallari-pack-spec#20. ## Blocked by - Groupthink-dev/stallari-pack-spec#20 — pack-spec 4.20.0 defines the key. Adopting it here first would ship a schema ahead of its own specification. ## Scope Write set: - `schemas/catalog-entry.schema.json` — add `returns_result_set` to the `granularity` block. The block is `additionalProperties: false`, so this edit is what makes the key declarable at all. - `scripts/catalog-entry.schema.test.js` — cases for present-true, present-false, and absent. - `scripts/build-catalog.js` — only if it needs to carry the key through; check before assuming it does. ## Acceptance criteria 1. `schemas/catalog-entry.schema.json` accepts `returns_result_set` as a boolean on the `granularity` block, and it is **not** added to that block's `required` array. 2. A catalog entry that omits the key still validates, and every existing plugin JSON in `plugins/tools/` validates unchanged — 59 files, 20 of which carry a `granularity` block. 3. A catalog entry declaring `returns_result_set: false` validates. 4. A non-boolean value is rejected. 5. `scripts/catalog-entry.schema.test.js` covers 1–4, and the existing suite stays green. 6. The `non_conformance_rationale` derivation in `build-catalog.js` is untouched. The new key is not a non-conformance signal — see #20 for why conflating the two would mislabel a shape fact as a diligence failure. ## Evidence Measured at `da20179`: 59 JSON files under `plugins/tools/`, 20 carrying a `granularity` block, 19 declaring at least one `scope_filtering: "none"`, 243 such declarations in total, 78 of them in `cloudflare-blade-mcp.json`. All of them keep their current verdict — the default is `true`. Refs Groupthink-dev/stallari-harness#1026, Groupthink-dev/stallari-harness#1027, Groupthink-dev/stallari-pack-spec#20.
piersdd commented 2026-09-04 00:37:31 +00:00 (Migrated from github.com)

This was generated by AI during triage.

Agent Brief

Category: enhancement · Summary: AJV catalog-entry schema adopts returns_result_set.
Premise verified: schemas/catalog-entry.schema.json:124-155 granularity block, additionalProperties: false (:127), four required dimensions (:128); returns_result_set absent repo-wide. ≤3 files (catalog-entry.schema.json, catalog-entry.schema.test.js, optionally build-catalog.js). AC 6 pre-decides non_conformance_rationale untouched.
Blocked by pack-spec#20 (unlanded). CONV-40 rule 2. Operator ruled ready-for-agent 2026-09-04, no svd:go until #20 merges.

> *This was generated by AI during triage.* ## Agent Brief **Category:** enhancement · **Summary:** AJV catalog-entry schema adopts `returns_result_set`. **Premise verified:** `schemas/catalog-entry.schema.json:124-155` granularity block, `additionalProperties: false` (`:127`), four required dimensions (`:128`); `returns_result_set` absent repo-wide. ≤3 files (`catalog-entry.schema.json`, `catalog-entry.schema.test.js`, optionally `build-catalog.js`). AC 6 pre-decides `non_conformance_rationale` untouched. **Blocked by pack-spec#20** (unlanded). CONV-40 rule 2. Operator ruled `ready-for-agent` 2026-09-04, **no `svd:go` until #20 merges**.
Collaborator

⏸ SVD architect gate: Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20

Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity standard · dispatch effort medium

Run: 20261122T093114Z-9f61c013

Held because: CLEAN but 4 open risk(s) (2 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:

Open risks:

  1. Stallari/pack-spec PR #26 (head 7282750, VERSION 4.20.0) is not yet merged; the operator overrode the dependency gate for a back-to-back merge. Post-merge check: confirm PR #26 merged with docs/granularity.md § 'Before the dimensions' unchanged from 7282750 (sha256 558f4dfd…). If the merged text changes the type, the default or the optional status, re-open the schema change before merging the #40 PR. [verification]
  2. No test baseline could be measured: node cannot start in the Half-A sandbox (dyld: libllhttp blocked by sandbox). Dispatch must run node --test scripts/*.test.js on pristine base cf12745 before editing and assert the failure set is unchanged after the change, with all new returns_result_set cases passing. [verification]
  3. scripts/dd-338-refresh-catalog.mjs:66-72 diffs a fixed granularityAxes list, so a future returns_result_set flip would be invisible in DD-338 refresh summaries. Question: should a follow-up issue add the key to granularityAxes? (Lean: yes, as a separate issue; it is outside #40's write set.) [decision]
  4. schemas/version.json reads 4.12.0 and is a make sync-pack-spec copy of pack-spec dist, so this change leaves it alone, and the repo keeps advertising 4.12.0 while adopting a 4.20.0 key (the lag predates this change). Question: is a later sync refresh acceptable, or must it gate this PR? (Lean: a later refresh is fine.) [decision]

Change: Insert returns_result_set: {type: boolean, default: true, description: <pack-spec 4.20.0 normative wording>} as the first property of tools.items.properties.granularity.properties in schemas/catalog-entry.schema.json (block at :124-151). Mirror the optional-key precedent domain_scope (:146-149, not in required :128) and the boolean+default shape at schemas/stallari-plugin.schema.json:61-65. Leave required and additionalProperties: false (:127-128) untouched. Optionally add one sentence to the scope_filtering description (:132) pointing no-result-set tools at returns_result_set: false. Add a new describe block to scripts/catalog-entry.schema.test.js, before the smoke gate at :320, using validPluginEntry (:33-48): a schema-shape assertion (type, default, not required, closed block), accept cases for true, false and absent, a parametrised non-boolean reject loop in the :301-309 style asserting a type error at /tools/0/granularity/returns_result_set, and a case proving the four dimensions stay required alongside false. build-catalog.js gets no change: pluginToCatalogEntry passes raw.tools through verbatim (:450), AJV runs without useDefaults (:40), and the F.1 derivation (:118-134) only fires for tools with no granularity block.

Files: schemas/catalog-entry.schema.json · scripts/catalog-entry.schema.test.js

Decision: accept the 4 open risk(s) above and dispatch this spec (svd:go), or park (svd:skip) / re-spec (svd:respec)?

Your call (when this issue is held at the gate via svd:hold):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md

### ⏸ SVD architect gate: Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20 **Status:** CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity `standard` · dispatch effort `medium` **Run:** `20261122T093114Z-9f61c013` **Held because:** CLEAN but 4 open risk(s) (2 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim: **Open risks:** 1. Stallari/pack-spec PR #26 (head 7282750, VERSION 4.20.0) is not yet merged; the operator overrode the dependency gate for a back-to-back merge. Post-merge check: confirm PR #26 merged with docs/granularity.md § 'Before the dimensions' unchanged from 7282750 (sha256 558f4dfd…). If the merged text changes the type, the default or the optional status, re-open the schema change before merging the #40 PR. [verification] 2. No test baseline could be measured: node cannot start in the Half-A sandbox (dyld: libllhttp blocked by sandbox). Dispatch must run `node --test scripts/*.test.js` on pristine base cf12745 before editing and assert the failure set is unchanged after the change, with all new returns_result_set cases passing. [verification] 3. scripts/dd-338-refresh-catalog.mjs:66-72 diffs a fixed granularityAxes list, so a future returns_result_set flip would be invisible in DD-338 refresh summaries. Question: should a follow-up issue add the key to granularityAxes? (Lean: yes, as a separate issue; it is outside #40's write set.) [decision] 4. schemas/version.json reads 4.12.0 and is a `make sync-pack-spec` copy of pack-spec dist, so this change leaves it alone, and the repo keeps advertising 4.12.0 while adopting a 4.20.0 key (the lag predates this change). Question: is a later sync refresh acceptable, or must it gate this PR? (Lean: a later refresh is fine.) [decision] **Change:** Insert `returns_result_set: {type: boolean, default: true, description: <pack-spec 4.20.0 normative wording>}` as the first property of tools.items.properties.granularity.properties in schemas/catalog-entry.schema.json (block at :124-151). Mirror the optional-key precedent domain_scope (:146-149, not in required :128) and the boolean+default shape at schemas/stallari-plugin.schema.json:61-65. Leave `required` and `additionalProperties: false` (:127-128) untouched. Optionally add one sentence to the scope_filtering description (:132) pointing no-result-set tools at returns_result_set: false. Add a new describe block to scripts/catalog-entry.schema.test.js, before the smoke gate at :320, using validPluginEntry (:33-48): a schema-shape assertion (type, default, not required, closed block), accept cases for true, false and absent, a parametrised non-boolean reject loop in the :301-309 style asserting a type error at /tools/0/granularity/returns_result_set, and a case proving the four dimensions stay required alongside false. build-catalog.js gets no change: pluginToCatalogEntry passes raw.tools through verbatim (:450), AJV runs without useDefaults (:40), and the F.1 derivation (:118-134) only fires for tools with no granularity block. **Files:** `schemas/catalog-entry.schema.json` · `scripts/catalog-entry.schema.test.js` **Decision:** accept the 4 open risk(s) above and dispatch this spec (`svd:go`), or park (`svd:skip`) / re-spec (`svd:respec`)? **Your call** (when this issue is held at the gate via `svd:hold`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md`</sub>
Collaborator

✅ SVD architect gate: Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20

Status: CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity unclassified · dispatch effort unclassified

Run: 20261122T093929Z-fff7a48c

Files: schemas/catalog-entry.schema.json · scripts/catalog-entry.schema.test.js

Write-set divergence: present table wins. 0 sourceHashes vs 10-row table.

Decision: dispatch this spec (svd:go)?

Your call (when this issue is held at the gate via svd:hold):

  • add label svd:go — approve; Half-B dispatch accepts exactly this spec (open risks accepted)
  • add label svd:fire beside svd:go — approve AND authorise the Half-B fire from the phone; never on its own
  • add label svd:skip — park it; dispatch refuses it and the issue stays for a human
  • add label svd:respec — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context

Spec: /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md — next: codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md

### ✅ SVD architect gate: Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20 **Status:** CLEAN after 0 rework round(s) · 0 blocking defect(s) · 0 lens(es) INCONCLUSIVE (could not run) · 0 lens(es) DEGRADED (deterministic denial) · complexity `unclassified` · dispatch effort `unclassified` **Run:** `20261122T093929Z-fff7a48c` **Files:** `schemas/catalog-entry.schema.json` · `scripts/catalog-entry.schema.test.js` **Write-set divergence:** present table wins. 0 sourceHashes vs 10-row table. **Decision:** dispatch this spec (`svd:go`)? **Your call** (when this issue is held at the gate via `svd:hold`): - add label `svd:go` — approve; Half-B dispatch accepts exactly this spec (open risks accepted) - add label `svd:fire` **beside** `svd:go` — approve AND authorise the Half-B fire from the phone; never on its own - add label `svd:skip` — park it; dispatch refuses it and the issue stays for a human - add label `svd:respec` — discard this spec; the next Half-A run re-produces it with this record as prior-attempt context <sub>Spec: `/Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md` — next: `codex-svd dispatch --args '<same-json>' --approved-spec-path /Users/piers/.local/state/exhaust/groupthink/specs/2026-11-22-catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20.md`</sub>
Collaborator

spec-verify-dispatch Half B for Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20 completed integration verify.

  • PR: #44
  • Branch: feat/svd-stallari-plugins-40-catalog-entry-schema-adopt-retur-b61958c2
  • Commit: 149dc758ca
  • Build: none
  • Test: green
  • Reader audit clean: True
  • Spec fidelity: True
  • Ready for merge: True
  • Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/16/pipeline/3/1
  • Checks: ci/woodpecker/pr/validation: green on head 149dc758ca. Local: 225 tests, 210 pass, 0 fail, 15 skipped. No blockers.
  • Warning: The catalog build ran against a stallari-packs checkout at 6ae66e6, not the pinned fa48ae0 (subagent deviation). It does not affect this schema-only change.
  • Warning: Merge order (A5): merge Stallari/pack-spec PR #26 pinned to 72827508d225cec707440e2751a81496108a21b3 first. Then check that docs/granularity.md on pack-spec main has sha256 558f4dfd2350b8ecdcea972068b001daa9f22083b6b64984d6c514482dae6dd6 before merging this PR.
  • Warning: Follow-ups for the operator to file (A4): add returns_result_set to granularityAxes in scripts/dd-338-refresh-catalog.mjs, and refresh schemas/version.json (4.12.0) through make sync-pack-spec.
  • Decision: review the PR and merge? (codex-svd ship --run-id 20261122T094825Z-b61958c2 --confirm-merge)
spec-verify-dispatch Half B for Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20 completed integration verify. - PR: https://git.groupthink.asia/Stallari/plugins/pulls/44 - Branch: feat/svd-stallari-plugins-40-catalog-entry-schema-adopt-retur-b61958c2 - Commit: 149dc758cac919350ff822d3ae84f4be0c0ea417 - Build: none - Test: green - Reader audit clean: True - Spec fidelity: True - Ready for merge: True - Check ci/woodpecker/pr/validation: green https://ci.groupthink.asia/repos/16/pipeline/3/1 - Checks: ci/woodpecker/pr/validation: green on head 149dc758cac9. Local: 225 tests, 210 pass, 0 fail, 15 skipped. No blockers. - Warning: The catalog build ran against a stallari-packs checkout at 6ae66e6, not the pinned fa48ae0 (subagent deviation). It does not affect this schema-only change. - Warning: Merge order (A5): merge Stallari/pack-spec PR #26 pinned to 72827508d225cec707440e2751a81496108a21b3 first. Then check that docs/granularity.md on pack-spec main has sha256 558f4dfd2350b8ecdcea972068b001daa9f22083b6b64984d6c514482dae6dd6 before merging this PR. - Warning: Follow-ups for the operator to file (A4): add returns_result_set to granularityAxes in scripts/dd-338-refresh-catalog.mjs, and refresh schemas/version.json (4.12.0) through make sync-pack-spec. - Decision: review the PR and merge? (`codex-svd ship --run-id 20261122T094825Z-b61958c2 --confirm-merge`)
svc-svd-writer 2026-11-22 09:51:03 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
2 participants
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#40
No description provided.