[ARADR][MS1-D1][DESIGN] Knowledge-representation baseline architecture #385
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/prolog-rlm#385
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #411
Consumes: #412 (MS1-R1), prior #398/#392 corpus
Topic: MS1 — Knowledge Representation
Mode: DESIGN ONLY
Pass contract
No new external research was performed for this pass. Every decision below is constrained to evidence already captured by #412 and the prior Machine Spirit corpus. Missing evidence is deferred to MS1-R2.
D1 objective
Define a first coherent Machine Spirit v1 knowledge-representation architecture that:
prolog-rlmwithout requiring durablesymbolic-memory.Canonical D1 decisions
D1-01 — One closed semantic kernel, open versioned vocabulary
Machine Spirit v1 uses a closed set of structural semantic constructors plus an open versioned domain vocabulary represented as inert data.
The kernel owns structural concepts such as:
Domain-specific names such as:
are data governed by declared signatures/types. Lexical equality with a Prolog predicate, tool, capability, principal, or host action has no execution meaning.
D1-02 — Proposition identity and assertion identity are separate
A proposition/formula represents semantic content. An assertion episode represents a source/context/stance event involving that semantic content.
Many assertion episodes may reference one proposition. Contradiction/corroboration/history therefore operate over assertion/support records, not by destructively rewriting proposition payloads.
Exact proposition fingerprint normalization is intentionally deferred to MS1-G01/MS1-R2.
D1-03 — Native n-ary proposition/formula algebra; graph triples are an adapter
The canonical internal representation does not force arbitrary semantics into binary RDF triples.
Atomic propositions support native ordered argument vectors. Compound/quantified semantics use a closed formula AST/data algebra.
RDF 1.2/triple-term representation is an interoperability/export/import projection, not the canonical internal shape.
This allows the IR to preserve quantifier/formula structure without requiring ad-hoc RDF reification for every semantic form.
D1-04 — Formula algebra is representational; execution is profile-gated
The closed formula algebra may preserve semantic forms broader than the locally executable fragment.
Support state is explicit:
representednever impliesentailed,decidable,terminating, orexecutable.No arbitrary formula is passed to unrestricted
call/1,consult/1, or generated host code.D1-05 — Existential witnesses are first-class scoped semantic terms
The kernel can represent existentially introduced unknowns without inventing global real-world entities.
Conceptually:
Hard rule:
An explicit later identity assertion/derivation may relate a witness to an entity. It does not mutate the original existential statement.
Which existential reasoning fragment is executable in v1 remains deferred to MS1-G03/MS1-R2.
D1-06 — Context and theory are first-class, not metadata bags or implicit global union
Every material assertion is interpreted in an explicit context/theory scope.
A context identifies semantic viewpoint/scope facets such as source revision, speaker, valid time, scenario, jurisdiction, ontology version, or domain.
A theory identifies a reasoning set: vocabulary/profile declarations plus assertions/rules and explicit module/bridge dependencies.
Context and theory are related but not identical.
Do not materialize a Cartesian product of every context facet. Use opaque stable IDs with normalized facets/relations.
Queries must name or derive an explicit theory/context scope. There is no ambient rule that unions every source into one world theory.
Exact context-composition semantics remain an MS1-G02/MS1-R2 research dependency.
D1-07 — Theory composition uses typed semantic edges
A single generic
imports/2is insufficient for the canonical contract.The interface supports typed, versioned semantic relationships equivalent to classes such as:
The exact v1 enum may be tightened later, but every edge carries:
Compiler/model-proposed mappings are inert candidates until admitted by trusted semantic policy.
Exact checkable guarantee classes remain MS1-G04/MS1-R2 work.
D1-08 — Semantic bridge does not transfer epistemic warrant
The MS1 semantic layer may map proposition/formula/vocabulary/context meaning.
It does not decide whether another theory's conclusion is accepted as supported/warranted/current truth.
MS3 owns epistemic federation/acceptance policy.
D1-09 — Validation is a separate contract from inference
The v1 architecture has an explicit structural/type/schema validation stage over semantic records and packages.
Successful validation means the package satisfies its IR/vocabulary/profile shape contract.
It does not mean:
Inference/query/lowering are later profile-specific operations.
D1-10 — Explicit semantic profile contracts
Each theory/package declares versioned semantic profile references rather than relying on one global Prolog interpretation.
A profile contract must eventually declare at least:
D1 does not freeze the final v1 profile inventory. That selection requires later research/design passes, especially MS1-G03/G06.
D1-11 — Three planes are canonical architecture
Keep these separate:
Plane A — Canonical Semantic Plane
Immutable/versioned semantic meaning and source-linked structures:
Plane B — Deductive Plan Plane
Rebuildable query-specific compilation state:
Plane C — Derived State Plane
Rebuildable consequences/caches:
Planes B/C are never canonical semantic truth.
D1-12 — Justification dependency schema is first-class; ordinary proof expansion may be rebuildable
The semantic/reasoning contract can identify a conclusion's supporting rule/premise/assumption/context/profile dependencies.
Alternative derivations are distinct support paths.
The architecture does not require eagerly persisting every expanded proof tree. Durable promoted/material conclusions and externally relied-on decisions must be able to retain replayable justification receipts; ordinary intermediate proof expansion may remain derived/rebuildable.
Exact retention policy remains MS1-G05/MS1-R2 research.
D1-13 — Event/change, temporal, constraints, procedures and defeasible semantics are standard profile families, not hidden kernel execution
The kernel can represent the structural objects needed by specialized semantic profiles, but D1 does not bake one temporal/procedural/default reasoner into every package.
In particular:
are profile-level semantic contracts.
A symbolic action or predicted procedure effect remains data until later execution admission.
D1-14 — Frames/object views are projections
Object-centered/frame views may be generated for ergonomics and querying, but they are not a separate hidden semantics.
Slots/defaults/procedural attachments resolve to explicit canonical semantic records/profile semantics rather than callbacks attached to objects.
D1-15 — Storage ownership remains split
prolog-rlmowns:symbolic-memorymay own:Dependency remains one-way:
The semantic library must operate without a persistent memory service installed.
D1 conceptual package model
This is an interface sketch, not implementation authorization and not final predicate naming:
Query/lowering consumes a package plus explicit theory/profile/query/options and produces a separate deductive plan/result/receipt rather than mutating the package.
Invariants exported to downstream topics
D1 acceptance criteria for the eventual implementation
These are design requirements, not claims that tests exist today.
Research gaps deferred to MS1-R2
D1 does not research or resolve the following:
Additional design-discovered research questions:
MS1-G08 — Kernel/profile boundary minimization
Research whether event/time/procedural structural constructors belong in the universal kernel or can remain wholly extension-profile vocabulary without harming interoperability/fingerprints.
MS1-G09 — Canonical serialization / schema-evolution evidence
Research deterministic serialization/versioning approaches that preserve fingerprints and historical interpretability across schema evolution without conflating semantic equality with byte identity.
D1 checkpoint