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:
+1
-1
@@ -234,7 +234,7 @@ public class IRBackend implements IRBackendReader {
|
||||
function.returnSlots(),
|
||||
function.maxStackSlots(),
|
||||
ReadOnlyList.wrap(remappedInstructions),
|
||||
function.span(), function.metadata());
|
||||
function.span(), function.metadata(), function.semanticFacts());
|
||||
}
|
||||
|
||||
private IRLifecycleFileDeclaration remapLifecycleFileDeclaration(
|
||||
|
||||
+9
-1
@@ -22,7 +22,14 @@ public record IRBackendExecutableFunction(
|
||||
int maxStackSlots,
|
||||
ReadOnlyList<Instruction> instructions,
|
||||
Span span,
|
||||
p.studio.compiler.models.registry.IRRegistry.FunctionMetadata metadata) {
|
||||
p.studio.compiler.models.registry.IRRegistry.FunctionMetadata metadata,
|
||||
java.util.Map<String, Object> semanticFacts) {
|
||||
public IRBackendExecutableFunction(FileId fileId, ModuleId moduleId, String callableName, CallableId callableId,
|
||||
int sourceStart, int sourceEnd, int paramSlots, int localSlots, int returnSlots, int maxStackSlots,
|
||||
ReadOnlyList<Instruction> instructions, Span span, p.studio.compiler.models.registry.IRRegistry.FunctionMetadata metadata) {
|
||||
this(fileId, moduleId, callableName, callableId, sourceStart, sourceEnd, paramSlots, localSlots, returnSlots,
|
||||
maxStackSlots, instructions, span, metadata, java.util.Map.of());
|
||||
}
|
||||
public IRBackendExecutableFunction(
|
||||
FileId fileId,
|
||||
ModuleId moduleId,
|
||||
@@ -68,6 +75,7 @@ public record IRBackendExecutableFunction(
|
||||
}
|
||||
|
||||
public IRBackendExecutableFunction {
|
||||
semanticFacts = p.studio.utilities.json.ImmutableJson.object(semanticFacts);
|
||||
fileId = Objects.requireNonNull(fileId, "fileId");
|
||||
moduleId = moduleId == null ? ModuleId.none() : moduleId;
|
||||
if (!moduleId.isNone()) {
|
||||
|
||||
Reference in New Issue
Block a user