Uh oh!
There was an error while loading. Please reload this page.
schemas: KnowledgeNugget + SemanticAction v0.1 — L2 content grain + typed-action registry - #210
Merged
Merged
Conversation
…yped-action registry Two spec-first contract families feeding platform Waves 6 and 7, held to the bar exercised by the MPCC event contract (#204): additionalProperties: false everywhere, specVersion pinned to the 0.1.0 const, anchored urn:srcos: id patterns, type const == title, fixtures-backed negative vectors, and a per-family validator wired into make validate. KnowledgeNugget (Wave 6, the estate's L2 content grain): warrant-typed fragments (direct-quote/computed/inferred/model-generated) with content-addressed source spans (sha256-pinned), evidence refs, confidence, KKO type refs, provenance chain links, and wallTime/logicalTime carried verbatim from the ConversationEvent envelope (parity machine-enforced). Normative: model-generated MUST stay visibly distinguishable downstream (admissibility discounting); computed/inferred must cite evidence (schema-enforced via if/then); direct-quote spans must be exactly as long as their text (validator-enforced). SemanticAction (Wave 7, the NL→plan compiler registry): ontology-typed inputs/output, subClassOf/instanceOf/sameAs constraints (polymorphism via subsumption), executor binding, owner + deprecated registry metadata, and a two-value effect posture: actions are side-effect-free at plan-search time; sideEffects "effect-request" declares the executor emits an EffectRequest and defers to an EffectDecision rather than acting directly. No direct-mutation vocabulary exists, and the validator pins the enum so one can never land silently.
Uh oh!
There was an error while loading. Please reload this page.
mdheller added a commit
that referenced
this pull request
Jul 29, 2026
Union-resolve the Makefile validate targets: keep knowledge-nugget and semantic-action from main (#210) alongside epistemic-kernel.
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 freeto 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.
What changed
Two spec-first contract families feeding platform Waves 6 and 7, held to the exact bar exercised by the MPCC event contract (#204):
additionalProperties: falseon every object,specVersionpinned to the0.1.0const, anchoredurn:srcos:id patterns,typeconst ==title, fixtures-backed negative vectors, per-family validator wired intomake validate,schemas/README.md"Recent additions" section, CHANGELOG entry, and a normative spec note per family.KnowledgeNugget (
schemas/KnowledgeNugget.json,urn:srcos:knowledge-nugget:) — the estate's L2 content grain, generalizing the production IFM warrant-typed extraction:sourceRef= doc URN + character span (+ optional page) +sha256-<64hex>content hash, required for every warrant type (a model-generated nugget must still pin its conditioning window).direct-quote | computed | inferred | model-generated+ evidence refs + confidence 0..1. Normative: model-generated MUST stay visibly distinguishable downstream (admissibility discounting);computed/inferredmust cite ≥1 evidence ref (schema-enforcedif/then); a direct-quote span must be exactly as long as its text (validator-enforced).kkoTypeRefs(ontology concept URIs),canonicalPayload, typed{rel, ref}provenance chain links,policyLabels(required, empty allowed, per the tranche-0001 bar),createdByactorRef, andwallTime/logicalTimebyte-identical to the ConversationEvent envelope, parity machine-enforced (same discipline as the MPCC trading profiles).SemanticAction (
schemas/SemanticAction.json,urn:srcos:semantic-action:) — the declarative typed-action registry for the NL→plan compiler:inputs[]/output(fully declared slots: name/typeRef/required/cardinalityone|many), closed constraint taxonomysubClassOf | instanceOf | sameAs(polymorphism via subsumption; subjects resolve to input names or"output", validator-enforced),executorRefURN, registry metadata (owner + deprecated).sideEffectsis exactly"none" | "effect-request"—"effect-request"declares the executor emits anEffectRequestand defers to anEffectDecision(decision before action) rather than acting directly. No"direct"value exists; the validator pins the enum so one can never land silently, and the canonical effect-request example's output is typed by theEffectRequestcontract URI itself.Support files: 2+2 canonical examples (direct-quote vs model-generated; pure lookup vs effect-request), negative vectors in
fixtures/knowledge-nugget/conformance.json+fixtures/semantic-action/conformance.json(5 each), validatorstools/validate_knowledge_nugget_examples.py+tools/validate_semantic_action_examples.py, Makefile targetsvalidate-knowledge-nugget-examples+validate-semantic-action-examplesadded tovalidate, specsspecs/knowledge-nugget-contract.md+specs/semantic-action-contract.md(incl. overlap-decision tables: ProvenanceRecord/MemoryEntry/ContentRef/ReasoningAssay and SkillManifest/LauncherAction/WorkflowSpec/Effect lifecycle are referenced, not duplicated).Exact commands run
Pass/fail output summary
make validate→OK: validate(all 19 family targets green, including both new ones; re-run after rebasing onto 66ea10a).validate_knowledge_nugget_examples.py→"ok": true, 11/11 checks (2 examples, strictness, wallTime+logicalTime envelope parity, warrant soundness, 5 negative vectors FAIL as required).validate_semantic_action_examples.py→"ok": true, 12/12 checks (2 examples, strictness, binding soundness, purity posture, 5 negative vectors FAIL as required).check_duplicate_schema_ids.py→OK: 302 unique schema $id values.validate_control_plane_wrapper_ids.py→ all wrappers resolve, end-to-end OK.ok.Results: 194 passed, 82 skipped, 0 failed(the 4 new examples allok; baseline before this PR had 0 failures too — no regressions).Known gaps (deliberate, v0.1 — mirrored in the spec notes)
semantic/context.jsonldmappings yet — matches how schemas: MPCC event contract v0.1 — conversation + trading event family #204 and the other recent families landed (the JSON-LD CI step warns, does not fail); wiring follows once names settle.subClassOf/instanceOfsubsumption is resolved by the planner against the ontology, not in CI — CI validates structure and subject resolution only.docRefandwarrant.evidenceentries are free-form-within-URN-grammar stable refs pending dedicated document-identity and step-ref contracts.https://schemas.srcos.ai/ont/...are illustrative estate-namespace concept URIs, not yet a published ontology.Blocked
Nothing blocked. Do not merge without review (this PR is intentionally left unmerged).
🤖 Generated with Claude Code