catalog-entry schema: adopt returns_result_set (pack-spec 4.20.0) #40
Labels
No labels
boundary:crosses
boundary:none
bug
devfu
documentation
duplicate
enhancement
epic
good first issue
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
svd:fire
svd:go
svd:hold
svd:respec
svd:skip
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Stallari/plugins#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Adopt the pack-spec 4.20.0
returns_result_setkey in the catalog-entry schema, so plugin authors can declare it.returns_result_set— boolean, defaulttrue, on the per-toolgranularityblock. Declares whether the tool returns a result set at all.Why
scope_filtering: nonemeans two different things, and this repo's own schema description says both: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-harnessADR-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— addreturns_result_setto thegranularityblock. The block isadditionalProperties: 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
schemas/catalog-entry.schema.jsonacceptsreturns_result_setas a boolean on thegranularityblock, and it is not added to that block'srequiredarray.plugins/tools/validates unchanged — 59 files, 20 of which carry agranularityblock.returns_result_set: falsevalidates.scripts/catalog-entry.schema.test.jscovers 1–4, and the existing suite stays green.non_conformance_rationalederivation inbuild-catalog.jsis 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 underplugins/tools/, 20 carrying agranularityblock, 19 declaring at least onescope_filtering: "none", 243 such declarations in total, 78 of them incloudflare-blade-mcp.json. All of them keep their current verdict — the default istrue.Refs Groupthink-dev/stallari-harness#1026, Groupthink-dev/stallari-harness#1027, Groupthink-dev/stallari-pack-spec#20.
Agent Brief
Category: enhancement · Summary: AJV catalog-entry schema adopts
returns_result_set.Premise verified:
schemas/catalog-entry.schema.json:124-155granularity block,additionalProperties: false(:127), four required dimensions (:128);returns_result_setabsent repo-wide. ≤3 files (catalog-entry.schema.json,catalog-entry.schema.test.js, optionallybuild-catalog.js). AC 6 pre-decidesnon_conformance_rationaleuntouched.Blocked by pack-spec#20 (unlanded). CONV-40 rule 2. Operator ruled
ready-for-agent2026-09-04, nosvd:gountil #20 merges.⏸ 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 effortmediumRun:
20261122T093114Z-9f61c013Held because: CLEAN but 4 open risk(s) (2 verification · 2 decision) — HOLD-ALL parks everything. The risks, verbatim:
Open risks:
node --test scripts/*.test.json pristine basecf12745before editing and assert the failure set is unchanged after the change, with all new returns_result_set cases passing. [verification]make sync-pack-speccopy 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. LeaverequiredandadditionalProperties: 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.jsDecision: 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):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/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 effortunclassifiedRun:
20261122T093929Z-fff7a48cFiles:
schemas/catalog-entry.schema.json·scripts/catalog-entry.schema.test.jsWrite-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):svd:go— approve; Half-B dispatch accepts exactly this spec (open risks accepted)svd:firebesidesvd:go— approve AND authorise the Half-B fire from the phone; never on its ownsvd:skip— park it; dispatch refuses it and the issue stays for a humansvd:respec— discard this spec; the next Half-A run re-produces it with this record as prior-attempt contextSpec:
/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.mdspec-verify-dispatch Half B for Stallari/plugins#40 catalog-entry-schema-adopt-returns-result-set-pack-spec-4-20 completed integration verify.
149dc758ca149dc758ca. Local: 225 tests, 210 pass, 0 fail, 15 skipped. No blockers.codex-svd ship --run-id 20261122T094825Z-b61958c2 --confirm-merge)