Repository navigation
feat(seam): a check run can execute a bed's own run: steps - #426
Conversation
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)*
Review — PASSHead SHA: Security screen: PASS Notes (non-blocking): This is a producer-first contract-module schema change ( Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…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)*
Summary
opencharly/plugin-check#153 — the kde-cstream plan's G5. In
charly check run, the live stage is verify-only, so every bedrun:step is skipped and a bed's actions (resize the stream, launch a terminal, send input) never happen; every dependentcheck:step then asserts against an action that did not run. Measured oncheck-kde-cstream-pod:121 steps: 71 passed, 22 failed, 28 skipped, with each failure traceable to askipped — verify-only mode (mutating step)step. Authoring those actions ascheck:steps is what D-VERB-1 forbids ("the one step that changes state is arun:step").#CheckRunRequestgains one field:charly check run's live stage on adisposable: truebed — D-DEP-3 authorizes apply-and-reverse there. A plaincharly check livestays verify-only, and the plugin refuses a non-disposable deployment loudly rather than skipping.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 nodisposable: trueentity here to run a bed against):Regeneration is a no-op beyond the new field:
spec/cue_types_gen.godiffers only by the addedBedActionsfield and its comment, andspec/vocab_gen.gois untouched.Rulebook compliance
/charly-internals:go,/charly-internals:design,/charly-check:check(mode discipline),/charly-internals:git-workflow.check:steps.git statusclean before the push; branch off freshorigin/main; no force-push.TestGenReproducibleproves the generated file matches the schema; the behavioural rule lands in sdk with a test that fails when reverted.run:step is the state-changing step; acheck:observes) and D-DEP-3 (adisposable: truetarget authorizes apply-and-reverse). No DESIGN amendment: the field expresses an existing contract rather than adding a mechanism.deepseek-v4.1-flash:cloud, reported asdeepseek-v4.1-flash.Filed issues
None new. opencharly/plugin-check#153 is the issue this chain closes once the plugin leg lands.
Change classification
fully tested and validated— module gate green on this tree, including the reproducible-generation test.Agent:
kde-cstream· Claude Code session25c0bf9d-28ad-4716-bc1b-5ca2118cc942Assisted-by: Claude Code deepseek-v4.1-flash (fully tested and validated)