feat(runtime): support Studio Play and separate integration gates
Intrepid/Prometeu/Runtime/pipeline/head This commit looks good

Add the windowless Studio host with authenticated binary control/frame channels,
managed input, pause/resume/stop, frame ownership and save-aware shutdown.
Preserve deterministic headless execution and add protocol/process fixtures.
Separate unit CI and coverage from opt-in integration/socket qualification,
retaining the prior combined coverage floors in the configuration history.

Validation: tooling make verify passed runtime ci-domains and integration.
This commit is contained in:
2026-11-19 17:32:02 +00:00
parent 2d5735cb13
commit f1adf86dd5
19 changed files with 1484 additions and 38 deletions
+35 -10
View File
@@ -53,6 +53,14 @@ prefix must be assigned before the ownership audit can pass.
## How test suites contribute
The current repository pipeline executes and measures only library/binary unit
tests (`--lib --bins`). Integration targets under `tests/`, debugger socket tests,
installed qualification and physical-device checks are excluded. Selected suites
are orchestrated by `../tooling`; their tests and fixtures stay in this repository.
Selecting them explicitly is separate from the unit quality gate.
The cross-suite contribution descriptions and previous measurements below retain
historical context; they do not imply integration execution in the current gate.
VM unit/integration tests, including numeric_contract and the portable
MPFR-generated fixture, exercise vm/core. Bytecode round-trip and Registry
admission tests exercise bytecode; end-to-end loading can also exercise
@@ -74,7 +82,7 @@ they do not create separate gates with zero executable lines.
Only crate src paths participate in this domain denominator; integration
test directories, examples, benches, external dependencies and standalone
Python oracle code are outside it. The LLVM instrumentation/report remains
the existing workspace all-features default-profile measurement. Unit tests
the workspace all-features default-profile, library/binary-unit measurement. Unit tests
colocated in src retain the tool's existing reporting behavior.
The standalone MPFR precision/bit comparison remains complementary numeric
@@ -129,12 +137,11 @@ The ordered checks are:
1. Clean previous LLVM coverage instrumentation and reports.
2. Check formatting.
3. Run workspace Clippy with warnings denied.
4. Run workspace tests across all targets and features.
5. Run the five ignored debugger socket tests.
6. Generate workspace coverage, HTML, full JSON, Cobertura and summary JSON.
7. Audit source ownership/evidence and check every fixed coverage domain floor.
4. Run library/binary unit tests across all workspace features (`make test-unit`).
5. Generate unit-only workspace coverage, HTML, full JSON, Cobertura and summary JSON.
6. Audit source ownership/evidence and check every fixed coverage domain floor.
The socket command is deliberately restricted:
The optional socket command is deliberately restricted and is not part of CI:
```sh
cargo test -p prometeu-host-desktop-winit --lib runner::tests -- --ignored
@@ -194,9 +201,8 @@ scripts/coverage-domain-evidence.sh --check --verbose hal/core
### Explicit manual qualification
Ordinary all-target tests and coverage leave ignored device/measurement tests
ignored. The shared target only opts in to the five socket tests above. It does
not certify the following manual workloads:
Unit tests and coverage leave ignored device/measurement tests ignored. The shared
target does not opt in to socket tests and does not certify the following manual workloads:
```sh
# Physical desktop audio, exact named test.
@@ -269,7 +275,26 @@ The full local `make ci-domains` validation passed with 939 tests passed and
in verification; its final floor uses the lower measurement. All gates were
rechecked against the verification report after that final adjustment.
## Current coverage measurement
## Unit-only baseline revision
The gate now measures only `--lib --bins` unit harnesses. Two independent fresh
measurements agreed on bytecode 86.51%, host/headless 58.74%, and tooling 50.96%.
Their explicitly approved unit floors use five percentage points of headroom:
| Domain | Unit measurement | Unit floor | Previous combined floor |
| --- | ---: | ---: | ---: |
| bytecode | 86.51% | 81.51% | 88.26% |
| host/headless | 58.74% | 53.74% | 83.39% |
| tooling | 50.96% | 45.96% | 59.75% |
The other twelve floors and all source ownership paths are unchanged. The config
identifies `test_suite: unit` and preserves each replaced combined floor in
`previous_combined_baseline_percent`. This is a reviewed change of measurement
scope, not an automatic response to future coverage failures. Subsequent unit
regressions remain subject to these fixed floors. Earlier combined measurements
below remain historical and are not current unit coverage claims.
## Previous combined-suite coverage measurement
The [current evidence](COVERAGE_DOMAINS_CURRENT.json) identifies the committed
source by HEAD and content fingerprints, records the strict shared gate and