4.2 KiB
4.2 KiB
PBS Diagnostics Workshop 4
Status: Active
Purpose
Run the fourth focused discussion for 11. Diagnostics Specification.md on backend-originated failures:
- lowering failures,
- verifier failures,
- load-facing failures,
- and how or whether they map back into the PBS-facing diagnostics contract.
Why This Slice Last
This slice should come last because it depends on:
- the phase vocabulary,
- the attribution baseline,
- and the lowering boundary being clearer.
It should be the point where 11 explicitly interfaces with 12, 15, and 19.
Proposed Meeting Order
- Reconfirm the frontend diagnostics baseline already closed.
- Sort backend-originated failure classes.
- Decide which backend failures remain PBS-facing diagnostics.
- Decide which failures belong only to artifact-facing tooling.
- Decide the minimum source-mapping obligations, if any.
Failure Classes To Sort
- lowering rejection due to unsupported semantic state,
- host-binding emission mismatch,
- verifier rejection of malformed artifact invariants,
- loader rejection directly attributable to malformed or unauthorized PBS-facing artifact usage,
- and artifact-only corruption not attributable to valid PBS source.
Decisions To Produce
- The boundary between PBS-facing and artifact-facing diagnostics.
- The minimum source-mapping obligation for backend failures.
- Whether verifier/load failures participate in
11directly. - The input contract
13may assert for these classes.
Candidate Decisions
1. Only Source-Attributable Backend Failures Enter The PBS Diagnostics Contract
Candidate direction:
- if a backend failure is directly attributable to validly analyzed PBS source plus normative lowering rules, it remains part of the PBS-facing diagnostics contract,
- otherwise it is artifact-tool or implementation failure surface.
Rationale:
- This keeps PBS diagnostics user-facing rather than compiler-internal.
2. Verifier And Loader Failures Enter 11 Only When Userland Actionability Exists
Candidate direction:
- malformed or unauthorized host-facing artifact usage attributable to source remains in scope,
- purely artifact-internal corruption or implementation bugs remain out of scope.
Rationale:
- This matches the current draft's narrow load-facing baseline.
3. Source Mapping Is Useful But Minimal In v1
Candidate direction:
- v1 requires a source-facing location when the failure is source-attributable,
- but does not yet require one standardized artifact offset map or source-map format.
Rationale:
- This keeps the contract implementable while leaving room for richer tooling later.
4. Conformance Should Assert Only The Stable External Surface
Candidate direction:
13may assert rejection phase, source attribution, and rejection class for backend-originated PBS diagnostics,- but not one exact verifier or loader message format.
Rationale:
- This keeps conformance aligned with the rest of
11.
Questions To Resolve In The Room
- Which lowering failures are legitimate user-facing diagnostics versus compiler bugs?
- Do verifier failures need their own normative phase label, or map into linking/load-facing rejection?
- Is one source location enough for backend-originated failures?
- How much of artifact-facing tooling belongs in the PBS language contract at all?
- What exactly must
13be able to test once12and15are closed?
Expected Outputs
This workshop should produce:
- a decision record for backend diagnostics boundaries,
- a source-mapping obligations note,
- and explicit integration tasks for
11,12,13, and15.
Explicit Deferrals
- exact source-map file formats,
- artifact UI presentation,
- implementation bug reporting policy,
- and internal compiler exception handling.
Inputs
docs/pbs/specs/11. Diagnostics Specification.mddocs/pbs/specs/12. IR and Lowering Specification.mddocs/pbs/specs/15. Bytecode and PBX Mapping Specification.mddocs/pbs/specs/19. Verification and Safety Checks Specification.mddocs/pbs/agendas/11. Diagnostics Agenda.mddocs/pbs/agendas/11.1. Diagnostics Workshop 1 - Diagnostic Identity and Attribution.mddocs/pbs/agendas/11.3. Diagnostics Workshop 3 - Cost Diagnostics and Warning Policy.md