feat(studio): improve compiler reliability and AI diagnostics
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:
@@ -409,3 +409,19 @@ modifying approval policy. Revocation removes published access even before
|
||||
asynchronous worker/runtime cleanup finishes. New grants never restore old task
|
||||
IDs or receipts. Full integrated native-client acceptance belongs to PLN-0140;
|
||||
the prior HTTP acceptance alone is insufficient.
|
||||
|
||||
## Explained build and language outcomes
|
||||
|
||||
ShipperPrepareResult preserves status/logs/manifestPath/emittedArtifacts/diagnostics and adds issues/summary/context. Shipper remains an internal orchestration structure; this contract does not require direct public access. Existing automation tools and DEV snapshots expose its result.
|
||||
|
||||
OperationState.SUCCEEDED means the callable completed mechanically. Build approval is independent: compiler-build, pack-validation, pack and manifest MUST all pass. Packer validation MUST have SUCCESS status and canPack=true. A failed validation with an empty asset list is still a rejection. A usable buildId is issued only for a successful current task build. Compiler warnings survive successful builds and pack failures.
|
||||
|
||||
summary includes scope (document/project/build), validationStatus (passed/rejected/failed/incomplete/not-evaluated/cancelled), nullable errors/warnings/infos counts, stage states and coverage. Unknown counts are null, never invented zeroes. Stage states are not-run/running/passed/rejected/failed/cancelled. Producer/verification failures are distinct from program rejection; a bounded detail sample never determines approval. Detail coverage and input-revision coverage are independent.
|
||||
|
||||
Cancellation is ShipperPreparationStatus.CANCELLED and validationStatus=cancelled. Preserve known partial issues/stages and do not issue a buildId. Cancel acknowledgement is independent of workerTerminated. Final tracked build results and the canonical session diagnostic view are published only after actual managed-worker termination. A cancelled worker's late return must not overwrite task revocation or turn into successful approval. Existing task admission, deduplication and explicit return authority remain unchanged.
|
||||
|
||||
DEV and the existing build surface render the canonical public view: summary, counts, stages, code/check, explanation, and individually expandable facts, semantic context, related origins and suggested checks. They MUST NOT reclassify logs or invoke another compiler. Source navigation checks project admission and the current digest before selecting a range. Changed source is labelled stale; unavailable revisions do not guarantee a current range. The diagnostic viewer is read-only, and generated/external navigation retains its existing read-only authority.
|
||||
|
||||
Language queries use a 10000 ms execution budget from admission (including queue/read/connect/initialize/analysis/query) plus a 2000 ms cleanup response window. Cancel pending requests and owned socket/listener/executors. shutdownNow is not evidence of termination. If a child remains alive, the caller may return the primary failure with workerTerminated=false, but the managed worker remains alive/busy until that child actually stops. Manual control and successor admission cannot be released early. Preserve the first failure and attach cleanup state rather than replacing it with a later failure.
|
||||
|
||||
Conformance distinguishes model/projection tests, source-navigation tests and real JavaFX desktop inspection. Model tests alone do not establish visual inspection. The integrated corpus uses production compiler/packer/LSP and authenticated MCP; controlled invalid IR and stubborn-child/protocol fixtures are explicitly identified test injections.
|
||||
|
||||
Reference in New Issue
Block a user