feat(schema): RLD loader/diagnostics contracts (LoaderFault + ResilientDiagnosticRecord) [E13/WS-A] - #280
Open
mdheller wants to merge 1 commit into
Open
feat(schema): RLD loader/diagnostics contracts (LoaderFault + ResilientDiagnosticRecord) [E13/WS-A]#280mdheller wants to merge 1 commit into
mdheller wants to merge 1 commit into
Conversation
…entDiagnosticRecord Epoch E13 / WS-A. Lands the fail-closed L1 substrate contracts the rest of the epoch stands on (the RLD Rust workspace + Lean proof remain the reference impl): - LoaderFault: typed sum with stable codes (LDR-DEP-MISSING, LDR-ABI-MISMATCH, ...); no bare abort (I5/R2). Severity is a table of the failing edge's binding class (REQUIRED->fatal, FEATURE->degraded, WEAK->info, LAZY->handled|fatal), machine-checked. - ResilientDiagnosticRecord: root-cause-first; reproKey excludes timestamps/PIDs so identical defects coalesce; privacy-by-projection (I8) telemetry tier is an allowlist projection with symbolic (path-free) fields, validator-enforced. + canonical examples (the CoreSimulator abort re-encoded + its correct FEATURE-degraded form), invariant validator (make-wired), ADR-0018. Built in an isolated worktree.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RLD loader/diagnostics contracts — LoaderFault + ResilientDiagnosticRecord
Epoch E13 / WS-A. Lands the fail-closed L1 substrate contracts the rest of the epoch (identity twin, capture receipts) stands on. The RLD Rust workspace + Lean launch-completeness proof remain the reference implementation; this is the wire/record form the fabric carries.
Contracts
LoaderFaultLDR-DEP-MISSING,LDR-ABI-MISMATCH, …). No bare string abort (I5/R2). Non-fatalFEATURE/LAZYmisses recorded atdegraded/handled— the "what quietly turned off" trail.ResilientDiagnosticRecordreproKeyexcludes timestamps/PIDs so identical defects coalesce; privacy-by-projection (I8) telemetry tier is an allowlist projection with symbolic, path-free fields.Machine-checked invariants
REQUIRED→fatal,FEATURE→degraded,WEAK→info,LAZY→handled|fatal.reproKeymust exclude the timestamp.Verification
Examples: the reference
CoreSimulatorlaunch abort re-encoded, plus its correctFEATURE-degraded form (the design fix — it should have been a feature, not a REQUIRED leaf).ResilientDiagnosticRecord$refsLoaderFaultby$id, resolved via areferencingregistry. Validator wired intomake validate; duplicate-$idguard clean (354 schemas). Built in an isolated worktree. ADR-0018.🤖 Generated with Claude Code