Add runtime observability and capability governance contracts#101
Merged
Add runtime observability and capability governance contracts#101
Conversation
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.
Summary
Adds the runtime observability and capability governance contract family proposed in #99.
This tranche captures the lessons from runtime, browser, terminal, session, and runtime-install logs as typed SourceOS contracts. The goal is to make effective capability state, browser assistance sessions, Git workspace classification, orphan lifecycle-event recovery, and runtime install provenance explicit, receipt-backed, and validator-friendly.
Added schemas
schemas/CapabilityLedger.jsonschemas/BrowserAutomationReceipt.jsonschemas/GitWorkspaceState.jsonschemas/OrphanEventReceipt.jsonschemas/RuntimeInstallReceipt.jsonAdded canonical examples
examples/capabilityledger.jsonexamples/browserautomationreceipt.jsonexamples/gitworkspacestate.jsonexamples/orphaneventreceipt.jsonexamples/runtimeinstallreceipt.jsonValidation
Adds
tools/validate_runtime_observability_examples.pyand wires it intomake validatethroughvalidate-runtime-observability-examples.The validator checks:
evidenceRefspolicyDecisionRefGitWorkspaceStateDocumentation
docs/runtime-observability-contracts.mdas the contract catalog and downstream rollout guide.docs/adr/0012-runtime-observability-capability-governance.mddocumenting rationale, constraints, validation, and ownership.CHANGELOG.md.Makefilevalidation target.Downstream implementation links
Review checklist
make validate-runtime-observability-examples.GitWorkspaceStatedoes not require raw path storage.Branch state before PR
Compared with
main, this branch is ahead by 15 commits and behind by 0 at PR creation time.