fix(stagecraft): read records with swamp data query, not the deprecated data get (swamp-club #2974) #446

Merged
seth merged 1 commit from cue/2974-stagecraft-stop-relying into main 2026-10-02 19:13:46 +00:00
Owner

Closes swamp-club #2974.

swamp data get is being deprecated in favor of swamp data query. This moves stagecraft off it.

  • Subagent prompt (dispatch.ts, buildSubagentPrompts): each injected product is read with swamp data query 'modelName == "<key>" && name == "<record>"' --select content --json. The prompt says each read prints {"results": [...]} with one result, the payload.
  • Integration harness (harness.ts, data()): reads the same way, with version == N added for an earlier version. data query succeeds with no results, so the harness fails unless exactly one record matches. The skill test and the example runner, which ran data get themselves, now read through it.
  • Skill-command checker (skill_commands.ts): accepts the data query form in place of data get.
  • Docs: the stagecraft skill (SKILL.md, references/driving.md, the worked example), REFERENCE.md and DESIGN.md.
  • Studio bundle: rebuilt, since it embeds dispatch.ts.

This ships without data query --single (swamp-club #2961), which hasn't been released yet. swamp-club #2978 tracks switching to it.

No files are added, so the held manifest (cue/2947-stagecraft-manifest) needs nothing new.

Verification

Attestation be6b5be8-64b2-4cba-b3e4-2140114fea8b for 78e03b5d6:

  • verify-build: 12 of 14 steps succeeded, 2 skipped by their guards, none failed. This includes the stagecraft integration suite against the installed swamp, which runs the worked example's commands as written.
  • Code review and adversarial review: both pass.

🤖 Generated with Claude Code

Closes swamp-club #2974. `swamp data get` is being deprecated in favor of `swamp data query`. This moves stagecraft off it. - **Subagent prompt** (`dispatch.ts`, `buildSubagentPrompts`): each injected product is read with `swamp data query 'modelName == "<key>" && name == "<record>"' --select content --json`. The prompt says each read prints `{"results": [...]}` with one result, the payload. - **Integration harness** (`harness.ts`, `data()`): reads the same way, with `version == N` added for an earlier version. `data query` succeeds with no results, so the harness fails unless exactly one record matches. The skill test and the example runner, which ran `data get` themselves, now read through it. - **Skill-command checker** (`skill_commands.ts`): accepts the `data query` form in place of `data get`. - **Docs:** the stagecraft skill (`SKILL.md`, `references/driving.md`, the worked example), `REFERENCE.md` and `DESIGN.md`. - **Studio bundle:** rebuilt, since it embeds `dispatch.ts`. This ships without `data query --single` (swamp-club #2961), which hasn't been released yet. swamp-club #2978 tracks switching to it. No files are added, so the held manifest (`cue/2947-stagecraft-manifest`) needs nothing new. ## Verification Attestation `be6b5be8-64b2-4cba-b3e4-2140114fea8b` for `78e03b5d6`: - verify-build: 12 of 14 steps succeeded, 2 skipped by their guards, none failed. This includes the stagecraft integration suite against the installed swamp, which runs the worked example's commands as written. - Code review and adversarial review: both pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(stagecraft): read records with swamp data query, not the deprecated data get (swamp-club #2974)
All checks were successful
CI / Review Integrity (pull_request) Successful in 1m7s
CI / Validate Attestation (pull_request) Successful in 59s
78e03b5d62
swamp data get is being deprecated in favor of swamp data query.

- The dispatch subagent prompt reads each injected product with
  data query 'modelName == "<key>" && name == "<record>"' --select content
  --json, and says the payload is the one result.
- The integration harness reads records the same way and fails unless
  exactly one matches, since data query succeeds with no results. The skill
  test and the example runner read through it.
- The skill command checker accepts the data query form in place of
  data get.
- The skill, REFERENCE.md and DESIGN.md show data query; an earlier
  version is read with version == N in the predicate.
- Rebuilt the studio bundle, which embeds dispatch.ts.

Moving to data query --single once it ships is swamp-club #2978.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
seth force-pushed cue/2974-stagecraft-stop-relying from 78e03b5d62
All checks were successful
CI / Review Integrity (pull_request) Successful in 1m7s
CI / Validate Attestation (pull_request) Successful in 59s
to 87ee23d5d2
All checks were successful
CI / Review Integrity (pull_request) Successful in 1m2s
CI / Validate Attestation (pull_request) Successful in 58s
2026-10-02 19:11:25 +00:00
Compare
seth merged commit cd511d0352 into main 2026-10-02 19:13:46 +00:00
seth deleted branch cue/2974-stagecraft-stop-relying 2026-10-02 19:13:46 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
swamp-club/swamp-extensions!446
No description provided.