feat(studio): improve compiler reliability and AI diagnostics
Test / Tests and coverage occurred while executing withChecks step.
Intrepid/Prometeu/Studio/pipeline/pr-master There was a failure building this commit

Preserve structured diagnostics, source attribution, phase outcomes and revision context through compiler, Studio, LSP, MCP and JavaFX. Add project service discovery and resilient VS Code reconnection.

Correct all eight reproduced PBS production failures in expression context, sibling executable bindings and nominal owner identity. Consolidate specs, lessons, immutable baseline evidence and the maintained source-to-guest qualification runner.

Validation: required Gradle gate recorded 724 tests, with 711 passed and 13 skipped. Full corpus passed 168 compilation observations and 108 guest runs (104 successes and four deliberate faults); supplemental controls passed 42 compilations and 16 guest runs. TypeScript compilation, two Node discovery tests and discussion validation passed.
This commit is contained in:
2026-11-10 12:36:25 +00:00
parent 38f201a9c9
commit ea1cc26fe3
1216 changed files with 168017 additions and 354 deletions
@@ -298,3 +298,13 @@ Its requirements apply in addition to this chapter; pause/resume remain independ
Emit an existing typed return group: Int32 status 0 for success or canonical nominal error case index 1..N, followed by the complete plain payload group. Unit result has only status. Error payloads use admitted typed defaults, including nullable references, without constructing payload objects. Preserve typed reference/builtin/Fn/trait groups across signatures, Registry, direct/contract calls, branches and discard. Propagation fills the enclosing inactive payload and returns immediately; handle recovers locally or remaps outward. The common backend consumes neutral typed IR with no PBS branches.
See [Core Sprite and Animation](27.%20Core%20Sprite%20and%20Animation%20Specification.md) for the complete API, ranges, state table and conformance obligations.
## Production binding preservation
Comparison lowering MUST scope expected types to the operands rather than leaking the enclosing bool result expectation into nested calls. Type inference does not execute an operand; emission evaluates each receiver and explicit argument once in the existing order. Legitimate contextual overload selection remains available at the owning expression boundary.
The module assembly supplies admitted sibling declaration/signature identities. Lowering references ordinary sibling functions and service methods/accessors in their defining module. Global accesses resolve to the defining file's single storage slot; they MUST NOT allocate or initialize another global in each caller. Services retain one canonical singleton/accessor at their definition. Internal symbolic global bindings MUST be fully resolved within PBS before publishing common IR; the common instruction contract, ABI and backend remain unchanged.
Runtime owner lookup and imported callable selection MUST preserve canonical declaration origin, rather than flattening private types into a name-only owner map. Synthesized receiver parameter types retain the defining source scope. Callable shape matching is qualified by the known owner declaration so distinct private owners with identical method spelling cannot replace or ambiguate one another. Aliases remain source-facing names for their original declaration.
Conformance includes F1-direct/two-calls/service-this, F3-function/global/service and F4-same-dependency/direct with their original files/names/imports. All original F1/F2/F3/F4/F5 controls, file-private rejection and deliberate guest fault remain mandatory. An investigation-only unoptimized probe omits OptimizeIRVMPipelineStage and emits original IRVM; this is not a public compiler optimization option. See [Static Semantics](4.%20Static%20Semantics%20Specification.md) and [Diagnostics](12.%20Diagnostics%20Specification.md).