[BUG] Physical-input guests receive incomplete command lines #145

Open
opened 2026-10-16 20:48:56 +02:00 by erikinkinen · 2 comments
Owner

Summary

Two physical-input scenarios reach the shell, but its echoed command line is
incomplete and Exsh reports command not found. The existing serial watchdog
then stops the VM. The point where characters are lost is not yet established.

Reproduction

Integration CI 2738
fails these original scenarios:

  • appliance-disk-image-launch-handle-partition-positive.toml
  • appliance-disk-image-exact-one-shot-replay-negative.toml

Both use QMP physical input after the trusted evidence-ready marker. The input
helper sends complete character strokes with a fixed 10 ms pause; it does not
wait for the guest to echo each character.

Expected and actual behavior

The launch-handle command starts with /bin/false;/bin/echo STATUS$?;.
The serial log instead shows /bin/fal/bin/echo STATUS$?;, followed by the rest
of the command and command not found.

The replay command starts with /bin/mkdir tmp/replay;/bin/echo REPLAY$?;exit.
Its echoed line is /bin/mkdho REPLAY$?;exit, also followed by command not found.
Neither scenario reaches its required result markers.

Every command should arrive intact before Enter is sent. A delivery check must
preserve the original deadline and consent gates and must not retry a command
or decision after execution may have started.

Environment and identity

  • Integration 179801c0e927c3fbf6ee386df2bd87348d7b58c8, CI 2738.
  • VM job 47570, attempt 1; launch-handle worker 9 and replay worker 8.
  • Release development images, one virtual CPU, original 120-second VM and
    45-second serial-silence bounds.
  • No introducing revision or common cause with other VM failures is known.

Evidence and prior checks

The complete original job log is retained. Both guests reach Launchd and Rootd
readiness and the physical-input evidence marker before the incomplete line.
QMP command acceptance alone does not establish delivery through the guest
keyboard, TTY and shell path. The original outcomes remain failures.

Tracking

Physical observer report,
implementation PR,
phase completion.

  • Locate the loss along the original injection and guest input path.
  • Add delivery regression coverage without retries or weaker deadlines.
  • Pass both original scenarios with their existing consent and result checks.
## Summary Two physical-input scenarios reach the shell, but its echoed command line is incomplete and Exsh reports `command not found`. The existing serial watchdog then stops the VM. The point where characters are lost is not yet established. ## Reproduction [Integration CI 2738](https://git.erikinkinen.fi/erix/integration/actions/runs/2738) fails these original scenarios: - `appliance-disk-image-launch-handle-partition-positive.toml` - `appliance-disk-image-exact-one-shot-replay-negative.toml` Both use QMP physical input after the trusted evidence-ready marker. The input helper sends complete character strokes with a fixed 10 ms pause; it does not wait for the guest to echo each character. ## Expected and actual behavior The launch-handle command starts with `/bin/false;/bin/echo STATUS$?;`. The serial log instead shows `/bin/fal/bin/echo STATUS$?;`, followed by the rest of the command and `command not found`. The replay command starts with `/bin/mkdir tmp/replay;/bin/echo REPLAY$?;exit`. Its echoed line is `/bin/mkdho REPLAY$?;exit`, also followed by `command not found`. Neither scenario reaches its required result markers. Every command should arrive intact before Enter is sent. A delivery check must preserve the original deadline and consent gates and must not retry a command or decision after execution may have started. ## Environment and identity - Integration `179801c0e927c3fbf6ee386df2bd87348d7b58c8`, CI 2738. - VM job 47570, attempt 1; launch-handle worker 9 and replay worker 8. - Release development images, one virtual CPU, original 120-second VM and 45-second serial-silence bounds. - No introducing revision or common cause with other VM failures is known. ## Evidence and prior checks The complete original job log is retained. Both guests reach Launchd and Rootd readiness and the physical-input evidence marker before the incomplete line. QMP command acceptance alone does not establish delivery through the guest keyboard, TTY and shell path. The original outcomes remain failures. ## Tracking [Physical observer report](https://git.erikinkinen.fi/erix/integration/issues/64), [implementation PR](https://git.erikinkinen.fi/erix/integration/pulls/12), [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [ ] Locate the loss along the original injection and guest input path. - [x] Add delivery regression coverage without retries or weaker deadlines. - [ ] Pass both original scenarios with their existing consent and result checks.
Author
Owner

5c28ab2d waits for fresh guest echo after each character and rejects incomplete or changed delivery before Enter, without retries or longer deadlines. Host regression coverage passes. The original VM cases still need verification; the point where input is lost remains unknown.

[5c28ab2d](https://git.erikinkinen.fi/erix/integration/commit/5c28ab2d1137cc71a6e1de8b125360026eafd599) waits for fresh guest echo after each character and rejects incomplete or changed delivery before Enter, without retries or longer deadlines. Host regression coverage passes. The original VM cases still need verification; the point where input is lost remains unknown.
Author
Owner

The original launch-handle scenario now passes with Integration d324d475. The command arrives once, cat produces fresh echo and output, and one physical Ctrl+C gives CONTROL130 before the final authority and physical-input checks pass. The normal build, signing, image creation and guest run completed without warnings under the existing 120-second VM and 45-second serial deadlines.

The original replay scenario and the diagnosis of where characters were lost remain open.

The original launch-handle scenario now passes with Integration `d324d475`. The command arrives once, cat produces fresh echo and output, and one physical Ctrl+C gives `CONTROL130` before the final authority and physical-input checks pass. The normal build, signing, image creation and guest run completed without warnings under the existing 120-second VM and 45-second serial deadlines. The original replay scenario and the diagnosis of where characters were lost remain open.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:34:18 +01:00
Sign in to join this conversation.
No milestone
No project
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
erix/integration#145
No description provided.