feat(studio): show executed source diagnostics in UI2
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

Capture bounded compiler inputs by revision and PBX identity, consume Play v2 faults and retain static diagnostic excerpts across failed preparation. Integrate the UI2 panel, qualification evidence and regression tests without adding an editor.
This commit is contained in:
2026-11-26 08:55:33 +00:00
parent 481c479427
commit 601997d163
47 changed files with 2811 additions and 58 deletions
@@ -168,6 +168,33 @@ instruction nor a function's first line supplies an exact fallback. The complete
diagnostic and public-failure contract is defined in
[Compiler 19, sections 12–13](19.%20Verification%20and%20Safety%20Checks%20Specification.md).
### 7.2 Consumed input for interactive execution diagnostics
The compiler adapter MUST capture the exact UTF-8 bytes already consumed by the
compilation, including project files, dependencies, SDK interfaces and generated
PBS/barrels. Synthetic loaders parsing in-memory text MUST also record those same
bytes on their registered source handles. Capture MUST NOT reread working files
or regenerate text after compilation. Mixed revisions, missing observations and
malformed UTF-8 MUST fail capture explicitly.
The neutral execution capture binds compilation/build ID, emitted PBX SHA-256 and
compilation-local file IDs to immutable source text, source SHA-256, project
identity, logical origin and source kind. Dependency origins MUST identify their
owning project; generated and SDK origins MUST remain recognizable. A path or
file ID alone does not establish revision identity. Full text MUST NOT enter
generic diagnostic maps, logs or the runtime wire protocol.
The initial capture policy is 4 MiB UTF-8 per file, 1,024 files and 16 MiB per
capture. Accounting includes UTF-8 content, canonical/logical paths and reserved
metadata for each source plus capture identity. Exceeding a budget MUST fail
preparation explicitly; sources MUST NOT be silently dropped. These are retained
capture storage budgets, not a bound on total compiler or JVM heap.
These values are consumed by the current UI2 diagnostic excerpt. They do not add
PBX sections, change guest ABI or establish an editor/full-document API. Admission,
retention, source availability and presentation are specified by
[Integrated Play](../studio/14.%20Integrated%20Play%20Specification.md#execution-diagnostics).
## 8. Deterministic Emitter Rejection
Emitter-side rejection must be deterministic for malformed or inconsistent artifact candidates, including at minimum: