evidence · 11.3 KiB

README.md

Committed at docs/evidence/coherent-shell/motion-2026-10-19/README.md. This is what grounds the requirements that cite it.

Open raw source

Landscape shell motion measurements — 2026-10-19

Both injected-input runs fail the declared latency and frame-interval budgets. The full and reduced runs each captured 216 accepted input IDs, all five stages, and no unresolved traces. Reduced motion shortened median release settling from 294.035 ms to 155.655 ms. Rendering still presented at about 26.095 Hz in both modes.

The CPU subdivision identifies a useful lead: scene building/painting costs about 22–23 ms of CPU per submitted-input frame, already above the nominal 19.16 ms panel interval. It accounts for about 97% of render CPU, while the input handler averages about 0.5 ms. This points the next performance investigation at the build/paint path; it is not proof of one particular Pixman operation or a claimed performance fix.

These original runs are actual-board software timestamps and native grim captures after injected uinput events. At their collection time the camera framed another device. Later, the operator aimed it at the K230 and new concurrent full/reduced runs completed the separate camera-visible gate: camera/README.md. The original runs are not retroactively claimed as optical evidence. No real-finger latency, every-refresh blanking, HDMI, performance improvement, or new reboot is claimed.

Identity and workload

Results

Budgets were retained from the existing tool: p95 within two nominal panel intervals (38.3215 ms), p99 within three (57.4823 ms), and compositor RSS growth at most 64 MiB. No CPU budget is declared.

MeasurementFullReduced
Accepted input IDs216216
Motion / release inputs210 / 6210 / 6
Missing stage chains / unresolved traces0 / 00 / 0
Input-to-present p5049.651 ms49.080 ms
Input-to-present p9570.327 ms — FAIL69.231 ms — FAIL
Input-to-present p9976.192 ms — FAIL83.860 ms — FAIL
Frame interval p5038.321 ms38.322 ms
Frame interval p9557.482 ms — FAIL57.444 ms — FAIL
Frame interval p9957.486 ms — FAIL57.483 ms — FAIL
Median output presentation cadence26.095 Hz26.095 Hz
Inferred extra nominal refresh intervals153134
Unpresented output events00
Release-to-settled-present p50294.035 ms155.655 ms
Compositor CPU, one core = 100%28.318%27.478%
Peak compositor RSS48,156,672 bytes45,400,064 bytes
Compositor RSS growth8,101,888 bytes10,973,184 bytes

The p99 interval overruns are retained even where they exceed the threshold by only a few microseconds. The latency and p95 interval overruns are much larger. Both run statuses in ../motion.json are FAIL; the analysis command exits 1, as expected for failed budgets. The reduced-motion stage/parity check succeeds, with the same stage shape and a shorter measured settle. No threshold was changed after measurement.

CPU lead

cpu-profile.json uses the existing correlated CPU analyzers and the same producer rows. It checks input/frame accounting and subdivides only frames carrying accepted input IDs (108 full, 109 reduced). Animation-only frames are included in the process sampler, but are not invented as input-bearing frame-cost rows.

Mean CPU per submitted-input frameFullReduced
Total charged CPU25.416 ms24.307 ms
Render CPU23.555 ms22.503 ms
Scene/output preparation0.532 ms0.469 ms
Build/paint22.760 ms21.770 ms
Output commit CPU0.263 ms0.264 ms
Build as share of render CPU96.623%96.742%
Input handler per input0.501 ms0.450 ms

Build includes wlroots output-state construction, painting and any tearing check; it is not a pure Pixman function profile. Commit CPU is not scanout latency. The row timing/logging itself has overhead. The current data narrows the investigation to rendering; it does not identify a single optimized function or prove how much an optimization would save.

Reproduce the analysis

telemetry.log contains only fixed-grammar exported rows. It combines the two normalized run blocks, followed by separately collected input/frame/repaint CPU rows for those same run IDs. Original timestamps are preserved; records are correlated by IDs, not by file order. Original per-run input hashes and capture times are preserved in sources/input-hashes.json.

python3 tools/shell-motion-trace.py --board \
  --log docs/evidence/coherent-shell/motion-2026-10-19/telemetry.log \
  --provenance injected --compare-motion \
  --output docs/evidence/coherent-shell/motion.json
# Expected exit: 1, with each failed budget named.

python3 docs/evidence/card-shell/input-cost-probe/analyze.py \
  --input docs/evidence/coherent-shell/motion-2026-10-19/telemetry.log \
  --output docs/evidence/coherent-shell/motion-2026-10-19/cpu-profile.json

Exact collection and restoration scripts are retained as .py.txt artifacts under sources. They record the original scratch/store paths; these are collection artifacts rather than portable installed commands. SSH used the protected configuration pathname ~/tmp/k230-coordination/ssh_config.private; its contents are not included. The exporter preserves only known keys and numeric/stage/mode values.

Timing boundaries and limits

Earlier diagnostic and recovery

The first producer (3c6ea3eb) was checked with one 16-step gesture: diagnostic-probe/metadata.json, diagnostic-probe/telemetry.log, and diagnostic-probe/held.png. It exposed the real callback ordering and seven coalesced IDs without scene rows. Its held grim capture was intrusive and its 17 IDs are below the sample minimum. It is diagnostic evidence only; its timings are not substituted for the qualifying full/reduced data above.

Reduced motion was applied through one owned runtime service drop-in, with an independent 180-second restoration timer. That override was removed, the timer stopped, and the normal shell/UI restarted. Temporary clients and injected devices were removed. restored.json confirms the installed system, active services, reduced-motion environment 0, the absent owned drop-in, zero test devices, and a successful Home command. The board and build reservations were released.

The first CI run of the new host checks (39330811752) failed because the host-only runner imported Pillow. Owner: pane 23. Commit f45bbeba makes compositor/image imports conditional; the host checks pass with python3 -S tests/test_shell_motion.py --case trace-order --case reduced-motion, and the native telemetry/exporter suite passes 30 tests. This was a CI dependency issue, separate from the measured board budget failures.

Camera proof completed separately

After the operator repositioned the camera, two new concurrent trace/video runs completed the named task 2.2 gate. See camera/README.md for run IDs, original videos, hashes, clock bounds, frame review and limits. Both new runs still fail the timing budgets; this change measures those failures rather than fixing the renderer. The initial runs and report above retain their original software-only evidence class.