--- id: LSN-0113 ticket: compiler-game-production-reliability title: Coordinating Compiler Reliability and Diagnostic Delivery created: 2026-11-11 tags: [compiler, pbs, studio, diagnostics, coordination] --- ## Original problem and scope **Owner:** compiler, production reliability and diagnostic coordination. **Discussion:** DSC-0104 / AGD-0106. This lesson records the completed umbrella; technical decisions, implementation and original evidence remain in its three owner discussions. Production feedback described rejected expressions, modular composition problems, workarounds using locals or renaming, and verifier failures identified only by function or PC. These reports did not establish one common compiler defect. The accepted direction was a reduced corpus with valid controls, corrections for demonstrated causes, and structured diagnostics reaching the AI and human views. The user explicitly organized the agenda as an umbrella. Its two deliveries were preserved: first faithful end-to-end diagnostics/results, then corrections of the reproduced PBS failures. The umbrella coordinated handoffs and integrated acceptance; it did not introduce another global technical decision or implementation plan. The user's 2026-11-11 housekeeping request closes this completed coordination. ## Final result and ownership | Delivery | Owner and durable reference | Qualified result | | --- | --- | --- | | Common compiler attribution | compiler, [LSN-0104](../DSC-0112-compiler-verifier-source-diagnostics/LSN-0104-faithful-compiler-attribution-and-structured-failures.md), DEC-0089 / PLN-0167 | Faithful available source attribution, structured rejection and stage results; 704 tests, 691 passed and 13 skipped. | | Public results and projections | studio, [LSN-0105](../DSC-0113-studio-ai-first-build-language-results/LSN-0105-explained-diagnostics-from-producers-to-studio.md), DEC-0090 / PLN-0168 | Compiler/LSP results preserved through neutral services, authenticated MCP and applicable FE projections; 869 tests, 856 passed and 13 skipped. | | Reproduced product corrections | compiler/pbs, [LSN-0106](../DSC-0111-pbs-production-reproductions-and-fixes/LSN-0106-pbs-production-binding-and-lowering-corrections.md), DEC-0088 / PLN-0166 | All eight reproduced valid sources corrected; complete 28-case corpus, 168 compilations and 108 guest executions. Required suites: 724 tests, 711 passed and 13 skipped. | These are separate historical qualification runs, not additive coverage totals. Each has zero failures/errors. Skipped cases are not passes. The [closure record](evidence/closure.json) identifies and hashes the original qualification records without replacing their evidence. The user accepted the first integrated delivery on 2026-11-10 and released the second-delivery dependency with “vamos impl o plan 166 dado que agora podemos.” This gate release preceded product edits. The corrected causes were operand context, executable sibling surfaces admitted by the barrel, and nominal owner identity with canonical origin. The eight original valid sources passed without renaming, import changes or boundary changes. Eighteen valid controls remained valid; the file-private negative remained rejected. The execution matrix includes 104 normal successes of three frames and four deliberate faults; all guest sessions terminated. Seven additional controls provided 42 compilations and 16 executions, documented separately in the child lesson. The diagnostic proof includes real LSP and authenticated MCP, successful analysis with no issues, controlled backend/verifier fixtures and an inspected JavaFX view. A later independent MCP/LSP check covers the corrected positives and file-private negative. Historical first-delivery failures remain immutable evidence of the before state; they are not rewritten as post-correction results. ## Contracts preserved across handoffs Program rejection and failure to perform an analysis are different outcomes. A failed or timed-out LSP query must not become an empty successful diagnostic list. Structured producer codes, phases, facts, explanations and source context must survive adapters. Missing source spans, executed PCs or causal attribution remain unavailable rather than being invented. Shipper remains internal. Public specialized automation services aggregate build and pack outcomes, and FE/MCP project that same result. Completing a stage is progress; final success depends on the aggregate. Compiler/LSP details do not occupy the native `runtimeError` field. Task/project authority, request correlation, cancellation and worker termination remain part of the service contract. The common backend remains independent of PBS, and neutral Core remains independent of transport DTOs. PBS visibility, initialization, boolean evaluation, PBX and machine capacities were not loosened to make the corpus pass. ## Limits and external coordination Historical Zelda BAD_RET and unsupported Scene reports remain **not reproduced**. Closing this umbrella does not label those reports corrected. The PBS correction matrix identifies the existing debug executable by hash; it does not qualify an installed runtime distribution. The initial diagnostic delivery's partial coverage of pack/assets/configuration revisions remains an explicit limit of that evidence. Later child or external deliveries do not retroactively widen historical claims. Related production work stays separate: - [LSN-0107](../DSC-0108-pbs-production-contracts-executable-examples/LSN-0107-quoted-project-identities-and-installed-authoring-contracts.md) preserves installed PBS contracts/examples. - [LSN-0108](../DSC-0109-pbs-logical-viewport-composition/LSN-0108-composition-reference-coverage-and-studio-boundaries.md) records the accepted composition-reference evaluation and its compiler/PBS content handoff. It introduced no Studio product change, third delivery or closure prerequisite here. - [LSN-0109](../DSC-0110-studio-headless-lifecycle-observability/LSN-0109-immutable-runtime-observations-and-control-return.md), [LSN-0110](../DSC-0105-studio-visual-regression-artifacts/LSN-0110-original-checkpoints-and-reviewed-visual-evidence.md) and [LSN-0111](../DSC-0106-studio-isolated-guest-test-targets/LSN-0111-isolated-guest-targets-and-complete-structured-results.md) consolidate lifecycle, original visual evidence and isolated guest tests. - [LSN-0112](../DSC-0107-studio-agent-asset-authoring-budgets/LSN-0112-shared-asset-batches-and-qualified-residency.md) closes shared asset authoring and qualified glyph/scene budgets. Sound was explicitly removed from that wave. No runtime write or commit is authorized by umbrella coordination. Provider changes require their own explicit scope and write authorization, with commit authorization separate. ## Reusable coordination pattern and pitfalls Keep implementation and evidence with their domain owners. An umbrella should track requirement coverage, dependency direction, explicit integrated acceptance and final closure. This avoids both a central plan that mixes domains and circular closure dependencies between children and their coordinator. Do not equate opening children with delivering work, local completion with integrated acceptance, or non-reproduction with a correction. Do not add related work as an implicit prerequisite after the accepted scope is fixed. Preserve before/after evidence and name the actual executable and observation limits. The current discussion CLI does not model umbrella/child relationships or handoff dependencies. Canonical links in lessons preserve those relationships; no manual index fields are invented. A generic `add-decision` suggestion for an accepted umbrella agenda does not require creating a redundant global decision. The CLI still owns deterministic housekeeping and index updates. ## Specification references Implementation propagation remains owned by the child lessons, including [Compiler 15](../../../docs/specs/compiler/15.%20Bytecode%20and%20PBX%20Mapping%20Specification.md) and [Studio 9](../../../docs/specs/studio/9.%20Studio%20Core%20and%20Adapter%20Architecture%20Specification.md). Housekeeping changes documentation and workflow state; it introduces no product behavior or new implementation requirements.