Skip to content

feat(seam): a check run can execute a bed's own run: steps - #426

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/bed-actions
Nov 23, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/bed-actions

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

opencharly/plugin-check#153 — the kde-cstream plan's G5. In charly check run, the live stage is verify-only, so every bed run: step is skipped and a bed's actions (resize the stream, launch a terminal, send input) never happen; every dependent check: step then asserts against an action that did not run. Measured on check-kde-cstream-pod: 121 steps: 71 passed, 22 failed, 28 skipped, with each failure traceable to a skipped — verify-only mode (mutating step) step. Authoring those actions as check: steps is what D-VERB-1 forbids ("the one step that changes state is a run: step").

#CheckRunRequest gains one field:

bed_actions?: bool @go(BedActions)
  • Set only by charly check run's live stage on a disposable: true bed — D-DEP-3 authorizes apply-and-reverse there. A plain charly check live stays verify-only, and the plugin refuses a non-disposable deployment loudly rather than skipping.
  • The sdk rule that consumes it executes only the plan's DEPLOY section — the candy and box install timeline (which ran at build) stays skipped.
  • This PR is the SCHEMA half; the sdk rule and the plugin's argv/guard follow producer-first, each with its own mutation-proven test.

How tested

Module gate on this tree (spec is a contract module: its module CI is the class gate — git grep -nE '^[[:space:]]*disposable:' finds no disposable: true entity here to run a bed against):

$ GOWORK=off go run ./schemagen -mode=params -schema=schema -pkg=spec -out=spec/cue_types_gen.go
$ GOWORK=off go run ./schemagen -mode=vocab  -schema=schema -out=spec/vocab_gen.go
$ gofmt -w spec/cue_types_gen.go spec/vocab_gen.go
$ git status --porcelain          # only the two intended files
 M schema/seam.cue
 M spec/cue_types_gen.go

$ GOWORK=off go build ./... && GOWORK=off go vet ./... ; echo "build_vet=$?"
build_vet=0
$ gofmt -l .
(no output)
$ GOWORK=off go test ./... -count=1 ; echo "TESTS_EXIT=$?"
… ok  	github.com/opencharly/spec/{spec,container,refs,transport,…}
TESTS_EXIT=0
$ GOWORK=off go test ./spec/ -run TestGenReproducible -count=1
ok  	github.com/opencharly/spec/spec	0.468s

Regeneration is a no-op beyond the new field: spec/cue_types_gen.go differs only by the added BedActions field and its comment, and spec/vocab_gen.go is untouched.

Rulebook compliance

  • R0: /charly-internals:go, /charly-internals:design, /charly-check:check (mode discipline), /charly-internals:git-workflow.
  • R1: the finding is A bed's mutation must be authored as a check: step whose exit status proves nothing; give beds a first-class mutation step plugin-check#153, with the measured bed run above.
  • R2: one field, one consumer rule (sdk), one argv producer (plugin-check) — no second encoding of "a bed may act".
  • R3: no workaround; the schema states the capability instead of bed authors faking mutations in check: steps.
  • R4: code first; the mode-discipline documentation already states the behaviour and will name the flag when the plugin leg lands.
  • R5: nothing deleted.
  • R6: git status clean before the push; branch off fresh origin/main; no force-push.
  • R7: TestGenReproducible proves the generated file matches the schema; the behavioural rule lands in sdk with a test that fails when reverted.
  • R8: no live service.
  • R9: no binary artifact.
  • R10: module CI is the class gate (pasted above); the behavioural bed proof rides the plugin leg on a disposable bed.
  • R11: conforms to D-VERB-1 (a run: step is the state-changing step; a check: observes) and D-DEP-3 (a disposable: true target authorizes apply-and-reverse). No DESIGN amendment: the field expresses an existing contract rather than adding a mechanism.
  • A3 identity: the footer's model string is this session's runtime declaration — deepseek-v4.1-flash:cloud, reported as deepseek-v4.1-flash.

Filed issues

None new. opencharly/plugin-check#153 is the issue this chain closes once the plugin leg lands.

Change classification

  • Change class: contract-module schema (CUE-first, generated Go).
  • Attribution tier: fully tested and validated — module gate green on this tree, including the reproducible-generation test.
  • Breaking change + rollback: none — an optional field. Rollback: revert this squash commit and re-tag.

Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)

opencharly/plugin-check#153 (the kde-cstream plan's G5): in `charly check run`, the live
stage is verify-only, so EVERY bed `run:` step is skipped — and a bed's actions (resize
the stream, launch a terminal, send input) never happen, leaving every dependent check
asserting against an action that did not run. Authoring those actions as `check:` steps
contradicts D-VERB-1 ("the one step that changes state is a run: step").

#CheckRunRequest gains `bed_actions?: bool`, set only by `charly check run`'s live stage
on a `disposable: true` bed (D-DEP-3 authorizes apply-and-reverse there). The sdk rule
that consumes it executes ONLY the plan's Deploy section — the candy and box install
timeline stays skipped — and a plain `charly check live` stays verify-only.

*Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`*
*Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 6af89a0b9be0acca6dc0e3c9fc8210e39daca823 (branch: feat/bed-actions)

Security screen: PASS
Checklist: All applicable rules PASS or NA.

Notes (non-blocking): This is a producer-first contract-module schema change (schema/seam.cue + regenerated spec/cue_types_gen.go), internally consistent — the +9/-0 field+comment in both files matches the body's claim, vocab_gen.go correctly untouched, SDD (a)/(e) satisfied (source change accompanies generated change, no drift), and D-VERB-1/D-DEP-3 cited under R11. The behavioral bed proof legitimately rides the sdk/plugin legs (cross-repo producer-first, tracked by opencharly/plugin-check#153), so the module gate is the correct class gate and the fully tested and validated tier is honest for the schema artifact. No comments in the thread to disposition.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 23, 2026 06:05
@github-actions
github-actions Bot merged commit 81f06e2 into main Nov 23, 2026
4 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 23, 2026
github-actions Bot pushed a commit to opencharly/plugin-check that referenced this pull request Nov 23, 2026
…ed may have them (#155)

#153 (G5), the plugin leg. `charly check run`'s live stage is
verify-only, so every bed `run:` step was skipped; the schema and sdk now carry
`#CheckRunRequest.bed_actions` (opencharly/spec#426, opencharly/sdk#621, tagged
`v0.2026327.625`), and this leg produces and guards the flag.

- `check live --bed-actions` sets the request field; a plain `charly check live` stays
  verify-only.
- `check run`'s live stage ALWAYS asks for it (`checkLiveArgv`), so a bed's own actions
  execute in authored order between its checks.
- `bedActionsAuthorized` refuses a deployment that is not `disposable: true` (and accepts
  an ephemeral one, which implies disposable) with an error naming D-DEP-3 — never a silent
  skip.
- Every live RunnerConfig arm threads the request through: pod/vm, the local deploy-scope
  plan, and kubevirt. The box and instrument paths deliberately do NOT (no deployment to
  authorise).
- Pin: sdk `v0.2026327.625` (which brings spec `v0.2026327.605`).

*Agent: `kde-cstream` · Claude Code session `25c0bf9d-28ad-4716-bc1b-5ca2118cc942`*
*Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant