Skip to content

A bed's mutation must be authored as a check: step whose exit status proves nothing; give beds a first-class mutation step #153

Closed

Description

@aitrawog

In a charly check run bed, the bed's own run: steps are verify-only (skipped) in its check-live stage. So a mutation the bed needs, such as launching an app or sending VNC input, has to be authored as a check: step (per /charly-check:check). Such a step's verdict (exit_status: 0 on echo launched) proves nothing by itself; the effect is only proven by a later assertion.

The validator raised this as a rulebook/expression gap (non-blocking) on opencharly/pod-kde-vnc#2 (verdict comment 7017549636): bed-open-konsole is proven only downstream by bed-konsole-focused.

Ask: give a bed an explicit mutation-step intent that EXECUTES in the bed's live stage (and is reported as an action, not a check), so a bed's actions and assertions are distinguishable in the summary.

Agent: kde-vnc-pod · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

Activity

  1. aitrawog commented on Nov 20, 2026

    @aitrawog
    ContributorAuthor

    CLAIM

    CLAIM: implementing this as the plan's G5, under opencharly/opencharly#1201.

    Measured on check-kde-cstream-pod run 2026.324.1913: every bed run: step was skipped — verify-only mode (mutating step) inside charly check run's live stage. The bed's resolution matrix, streaming gate, input and wheel steps therefore asserted against actions that never ran.

    That forces bed actions into check: steps, which conflicts with D-VERB-1 ("a verb observes and never changes state … the one step that changes state is a run: step"). It is also how a mutating check: ended up in a candy's baked plan, where charly check live ran it against real deployments.

    Design (conforms to D-VERB-1, authorized by D-DEP-3, no DESIGN amendment):

    • spec: #CheckRunRequest.bed_actions?: bool.
    • sdk kit: under VerifyOnly, a mutating step executes only when BedActions() is set AND the step comes from the plan's Deploy section (the bed's own steps).
      • The Candy and Box install timeline stays skipped.
      • Test TestRunPlan_BedActionsExecuteOnlyTheBedsOwnRunSteps fails with the rule reverted.
    • plugin-check:
      • check live --bed-actions sets the field;
      • check run's live stage always passes it (checkLiveArgv);
      • bedActionsAuthorized refuses a deployment that is not disposable: true (D-DEP-3) loudly, never by a silent skip;
      • tests cover the argv and the guard.
    • A plain charly check live stays verify-only.

    Branches are feat/bed-scenario-run-steps in spec, sdk and plugin-check. A live bed run with a dev build is in progress, and the PRs follow producer-first.

    Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (analysed on a live system)

  2. self-assigned this
    on Nov 20, 2026
  3. aitrawog commented on Nov 23, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    STATUS — the G5 implementation is under way again, producer-first, and it is the gate the whole kde-cstream chain now sits behind.

    Why it resurfaces: check-kde-cstream-pod ran end-to-end today (fresh rebuild) and 71 of 121 checks passed — hardware NVENC ("encoder":"hardware:nvh264enc"), KWin compositing with hardware OpenGL, KWin's output at the stream's 1920x1080, a full non-uniform 1920x1080 frame through WebRTC, PAM accept/reject — and all 22 failures were downstream of skipped — verify-only mode (mutating step) steps: the bed's resizes, its Konsole launch and its input sends are run: steps, skipped in the live stage, so the checks assert against actions that never ran.

    Legs:

    1. feat(seam): a check run can execute a bed's own run: steps spec#426 (schema): #CheckRunRequest.bed_actions?: bool — set only by charly check run's live stage on a disposable: true bed. Module gate green; open now.
    2. opencharly/sdk (the rule): under VerifyOnly, a mutating step executes only when BedActions() is set AND the step comes from the plan's DEPLOY section; candy/box install steps stay skipped. TestRunPlan_BedActionsExecuteOnlyTheBedsOwnRunSteps fails with the rule reverted. Waits on 1's tag.
    3. opencharly/plugin-check: check live --bed-actions, check run's live stage always passing it, and bedActionsAuthorized refusing a non-disposable: true deployment loudly. Waits on 2; the argv and guard tests are being added as part of that leg (the earlier draft had none, which would not be evidence).

    Then pod-kde-cstream's beds re-run and this issue closes. Next update on this thread when leg 1 tags.

    Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

    Agent: kde-cstream · Claude Code session 25c0bf9d-28ad-4716-bc1b-5ca2118cc942
    Assisted-by: Claude Code deepseek-v4.1-flash (analysed on a live system)

  4. aitrawog commented on Nov 23, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED

    RESOLVED — fixed across three releases, and proven live.

    The chain:

    Measured on the bed that motivated the issue — check-kde-cstream-pod, fresh rebuild, a DEV build of the plugin source:

    121 steps: 106 passed, 8 failed, 7 skipped     # same bed before: 71 passed, 22 failed, 28 skipped
    PASS  run resize the stream to 800x600 …  PASS  check the stream's frames are 800x600  PASS  check KWin's output followed …
    PASS  run the pointer moves to the far corner …  CSTREAM-INPUT-DELIVERED events=1
    PASS  run a Konsole is launched inside the Plasma session
    PASS  run a command is typed into the Konsole through the control channel  CSTREAM-INPUT-DELIVERED events=62
    PASS  run Return is pressed through the stream  CSTREAM-INPUT-DELIVERED events=2
    

    Every bed run: step that was skipped — verify-only mode (mutating step) now executes in authored order between its checks, which is the intent the issue asked for; it is an ACTION in the summary, distinguishable from the checks that assert it.

    The 8 remaining failures are not from this gap — they are three separate defects on the input channel, filed with measurements: opencharly/charly-streamer#19 (wheel refused by the producer), #20 (delivered move/keys do not act in nested KWin), #21 (after a resize a pointer move kills the consumer pipeline or lands on the wrong geometry).

    One follow-up is owed to land the behaviour in a RELEASED binary rather than a dev build: charly's compiled-in plugin pin must move to plugin-check v2026.327.0710 (tracked as the next leg of opencharly/opencharly#1201).

    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions