Skip to content

feat(schemas): add decision-emission draft schema (governed cognition loop) - #74

Merged
mdheller merged 2 commits into
mainfrom
feat/decision-emission-draft-schema
Jul 31, 2026
Merged

feat(schemas): add decision-emission draft schema (governed cognition loop)#74
mdheller merged 2 commits into
mainfrom
feat/decision-emission-draft-schema

Conversation

@mdheller

Copy link
Copy Markdown
Member

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 into make validate via the repo's own src.m1.validate_schema_instance.
  • MIT LICENSE (repo had none).

Verification

  • make validate-decision-emissionOK ... against schemas/decision-emission.draft.schema.json
  • Schema rejects: malformed replay_seal, unknown approval.triggered_by value, invalid retrieval regime.

Part of the Agentic-Stack Emergence stratum (circuit/approval governance).

mdheller added 2 commits July 31, 2026 01:27
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.
@mdheller
mdheller merged commit 2598730 into main Jul 31, 2026
10 checks passed
@mdheller
mdheller deleted the feat/decision-emission-draft-schema branch July 31, 2026 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant