feat(schemas): add decision-emission draft schema (governed cognition loop) - #74
Merged
Merged
Conversation
Per-decision emission for the governed cognition loop (Substrates/Structures/ Circuits): trunk substrate/structure/slots + Hopfield retrieval regime (single/metastable/global = the approval handle), head verdict, four-way approval trigger (regime/confidence/mixture/anomaly), and replay_seal (^sha256:64hex). Draft schema; canonical ownership defers to sourceos-spec per AGENTS.md. - schemas/decision-emission.draft.schema.json - tests/fixtures/decision-emission.valid.json - Makefile: validate-decision-emission wired into validate (repo's own src.m1.validate_schema_instance) - LICENSE: add MIT (repo had none; public repo, no-AGPL policy) Rejects bad replay_seal, unknown approval trigger, and bad regime.
validate-decision-emission runs src.m1.validate_schema_instance, which imports jsonschema; the m1-deterministic-loop job (the only one running 'make validate') installed only pytest+numpy. Add jsonschema so the schema validation runs in CI.
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.
Implements the decision-emission event schema from the Substrates/Structures/Circuits framework (spec §13.2), as a draft here (canonical ownership defers to sourceos-spec per AGENTS.md).
What
schemas/decision-emission.draft.schema.json— trunk (substrate ℝ/ℂ/ℍ/𝕆/𝕊/gcForest, structure, mixture slots), Hopfield retrieval regime (single/metastable/global — the governance handle), head verdict, four-way approval trigger,replay_seal.tests/fixtures/decision-emission.valid.json, wired intomake validatevia the repo's ownsrc.m1.validate_schema_instance.Verification
make validate-decision-emission→OK ... against schemas/decision-emission.draft.schema.jsonreplay_seal, unknownapproval.triggered_byvalue, invalid retrievalregime.Part of the Agentic-Stack Emergence stratum (circuit/approval governance).