[MACHINE-SPIRIT 3/8] Epistemics and truth maintenance: belief revision, ATMS/TMS, paraconsistency, defaults, provenance, temporal truth #398
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#398
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: #397
Related: #394
Downstream: lost-rob0t/symbolic-memory#4 #6 #7
Distinct research mandate
Treat truth maintenance and epistemic state as the primary problem: belief revision, TMS/ATMS, non-monotonic/default reasoning, paraconsistency, provenance, temporal truth, source dependence, defeat, and cross-theory epistemic composition.
Depth 3 status — DESIGN-COMPLETE, IMPLEMENTATION-UNPROVEN
All four required subpasses are durably preserved in this issue's comments.
A — foundations: COMPLETE
Epistemic Support Graph (ESG) + explicit versioned Epistemic Profiles.
Canonical evidence independently preserves positive/negative support, justifications, assumptions/environments, validity, lifecycle and provenance. Warrant is computed under an explicit profile rather than stored as one mutable truth value.
Hard distinctions:
Candidate profiles include support-paraconsistent, WFS/default, stable-model, argumentation and revision-projection views.
B — semantic/adversarial deepening: COMPLETE
ESG is augmented by a Typed Defeat / Dependence Graph.
Preserve rebut / undermine / undercut / deterministic invalidate separately; preferences are typed/partial/scoped; source dependence prevents echo corroboration; circular support cannot self-bootstrap; iterated revision retains lineage; bitemporal
valid_atvsknown_atpreserves historical epistemic state; semantic acceptance remains separate from evaluation completeness.C — composition / heterogeneity: COMPLETE
Adopt an Epistemic Federation Fabric (EFF). Local theories retain local WFS/ASP/paraconsistent/argumentation/revision semantics and exchange status-bearing epistemic exports through typed/versioned bridges.
Hard federation invariants:
Classic global MCS equilibrium remains an optional bounded federation profile, not ambient memory truth.
D — computational realization / scaling / conformance: COMPLETE
Adopt the Demand-Driven Interface-Factored Epistemic Executor.
Key D decisions:
valid_at/known_at, interface signature, identity/dependence, bridge/mapping/closure generation and relevant translator/backend contract versions.under semantic/receipt-normalized comparison.
All compiled-semantic epistemic conformance fixtures must execute with zero provider/LLM calls.
Required conformance direction
Depth 3 records adversarial fixtures covering contradiction without explosion, withdrawal vs negation, default/defeat cycles, source dependence, bitemporal corrections, multiple/no stable models, profile plurality, noncomposable bridges, irrelevant-theory pruning, projected-interface quotienting, scoped invalidation, same-interface propagation stop, resource ceilings, concurrency determinism, cache/incremental differential equivalence, historical replay, explanation compression and stale-cache rejection for action/VERIFY.
Canonical handoffs
Strong conclusions are cross-linked to:
Unresolved implementation questions
Completion statement
Depth 3 A/B/C/D is design-complete only. No Machine Spirit milestone is claimed from this research. Executable acceptance remains gated by later implementation/conformance evidence.
Next: #401A — procedural intelligence / expert systems.
Refs #392 #394 #397 #376 and downstream symbolic-memory#4/#6/#7.
Depth 3 / #400A — epistemic foundations: support graphs, truth maintenance, revision, defaults, paraconsistency
This is subpass A only. It establishes representative epistemic formalisms and candidate architectures. #400 remains open for B/C/D. Do not advance to #401.
Research question
Given the source/semantic architecture produced by #398/#399, how should Machine Spirit represent and compute epistemic state when all of the following can coexist?
The core requirement is truth/support/acceptance separation. A proposition's stored evidence state is not the same thing as what a particular non-monotonic semantics warrants, and neither is the same thing as a destructive belief-set rewrite.
Primary / authoritative sources inspected
tnot/1, including residual conditions for undefined answers.What current architecture already gets right
#392/#394 and symbolic-memory already preserve several essential distinctions:
unknownis not Prolog failure;Those decisions survive.
The missing layer is a precise separation between evidence state, assumption environment, non-monotonic consequence, and revision policy.
Candidate architecture A — global JTMS / retract-and-propagate belief state
Maintain one current belief state. Each accepted node has justifications; when premises disappear, recursively retract dependent conclusions. Defaults can use absence conditions.
Conceptually:
Strengths
Failure
It is the wrong canonical model for Machine Spirit. One global IN/OUT status loses plurality:
A JTMS-style view remains useful as a derived context-local materialization, not the durable epistemic substrate.
Candidate architecture B — AGM belief-set revision as canonical truth state
Represent Machine Spirit's current beliefs as a logically closed theory K. New evidence P triggers expansion/revision; correction/retraction triggers contraction; use entrenchment/preference to minimize change.
Strengths
Failure
Canonical Machine Spirit memory is intentionally multi-source, append-only, inconsistent and contextual. Classical AGM assumes a much cleaner target object than the evidence ledger we need. Destructively revising K when a news source changes would erase exactly the historical disagreement/provenance we want to preserve.
AGM should therefore be available as a revision projection/profile over a selected theory/context/trust policy, not as the storage semantics.
Example:
Changing policy X produces another projection, never mutated history.
Candidate architecture C — ATMS environments + paraconsistent evidence support (preferred foundation)
Use immutable assertion/derivation records to build an Epistemic Support Graph (ESG). Every proposition has independent positive and negative support sets. Justifications are hyperedges. Assumptions/context choices form explicit environments. Incompatible environments/nogoods are recorded rather than globally deleting one side.
Conceptual data model:
The base evidence state for a proposition at context/time can be summarized as:
This is deliberately Belnap-like information state, not the final consequence relation.
ATMS-style environments preserve which assumption combinations support which conclusions. A contradiction marks an incompatible environment/nogood; it does not require deleting source evidence. de Kleer's ATMS is especially relevant because multiple contexts can coexist while avoiding repeated destructive retraction.
Why this fits Machine Spirit
Candidate architecture D — argumentation graph as canonical state
Translate every supporting/refuting chain into an argument; contradictions/defaults/priorities become attack/defeat relations; use Dung-style grounded/preferred/stable semantics to calculate acceptance.
Strengths
Failure
Making argumentation the primitive store adds unnecessary expansion for ordinary facts, temporal state and deterministic Horn consequences. Arguments should be a derived epistemic view over ESG justifications, especially for contested/default queries.
Preferred architecture: ESG + explicit Epistemic Profiles
The architecture should therefore be:
The profile is part of query semantics. It must never be inferred from whichever Prolog predicate happened to be called.
Conceptual API:
Outcome should distinguish at least:
Do not compress this into one
confidencefloat.Baseline epistemic profile direction
A should establish the profile family but not prematurely freeze every B/C/D semantic detail.
support_paraconsistentThis should be the safest base query mode for heterogeneous memory.
well_founded_defaultstable_modelsfalse;argumentationrevision_projectionFive distinctions that MUST become hard invariants
1. Retraction/withdrawal != explicit negation
If a source says
P, then later withdraws that statement:The lifecycle event deactivates that source support in ordinary current views; it does not create negative world evidence unless the correction explicitly asserts ¬P.
2. Temporal change != belief revision
is not a contradiction requiring AGM contraction. Both can be true at different valid times. Epistemic conflict detection must occur after temporal/context qualification.
3. Defeated default != false proposition
If
birds normally flyis defeated for a penguin, that means the default justification does not warrantflies(penguin)in that environment. It is not by itself explicit support fornot(flies(penguin)).4. Source trust != proposition probability
A trust policy may control admission/preference, but:
is not automatically:
Trust, compiler confidence, provenance multiplicity, probability and default priority remain separate dimensions.
5. Supersession != destruction
Newer semantic projections or source revisions can supersede old active support, but historical support/derivation remains replayable.
Defaults and rule priority: A-level decision
Do not encode priority by Prolog clause order.
Represent defaults explicitly:
Priority information is symbolic data and should support at least explicit declared priority and specificity evidence. The resolution semantics belongs to an epistemic profile.
Reiter default logic demonstrates why this matters: default theories can have multiple extensions. Stable-model semantics similarly admits multiple models. Machine Spirit must expose this plurality where it exists rather than selecting the first solver result.
Depth 3B should attack exact default priority/specificity behavior and competing non-monotonic semantics.
Incremental invalidation model
Canonical ESG records are immutable. Current support indexes/materialized warranted views are derived.
When a premise becomes inactive for a query context because of correction, expiry, identity revision, context change or explicit lifecycle event:
This composes directly with #398D's canonical-vs-derived split and #399D's incremental build architecture.
A source correction should therefore not cause a global semantic rebuild unless dependency reachability actually requires it.
Provenance model
Provenance semiring ideas are valuable for compactly representing alternative/conjunctive derivations, but provenance is not the consequence semantics.
Keep separate:
An explanation can then answer:
Complexity / scaling
ESG/support graph
Storage is proportional to durable assertion/support/justification edges rather than expanded proof trees. Share premise/conclusion nodes and keep alternative derivations as independent hyperedges.
ATMS environments
This is the dangerous part: minimal assumption environments can grow exponentially. Therefore Machine Spirit must not globally enumerate all ATMS labels over the whole corpus.
Required design direction:
WFS
For admitted tabled logic-program fragments, WFS provides a unique partial interpretation and maps well to SWI tabling. Incremental tabling can later maintain affected tables rather than whole-theory recomputation.
stable models/default extensions
Potentially combinatorial/exponential and possibly many models. Use only bounded theory slices with explicit resource receipts. Never materialize every answer set for an entire long-term memory.
argumentation
Argument construction itself can explode if every derivation becomes an argument. Build it demand-driven from ESG justification slices.
AGM-like revision
Computing minimal contractions/revisions can be expensive depending on representation. Treat as bounded profile operation over selected evidence, not an always-on global invariant.
Safety / authority
Epistemic acceptance never grants host authority.
Similarly, a malicious document cannot obtain operational priority by containing text such as:
Source trust, epistemic preference and host action authority are configured through trusted metadata/policy boundaries, not learned from open source vocabulary.
An LLM may propose:
Those remain semantic candidates until trusted policy admits them. Model-generated epistemic policy cannot silently control the truth engine.
Adversarial fixtures / falsifiable claims
The eventual conformance suite must include at least:
both; no explosion to unrelated Q.false.undecided/resource_limitedwith receipt, never arbitrary top-1 truth.Canonical design recommendations
prolog-rlm #394
Add an explicit Epistemic Support Graph + Epistemic Profile boundary.
true/explicit_false/unknown/conflictedshould not be a single opaque enum produced directly from facts. Results need independent support/refutation state plus profile acceptance.Recommended result direction:
Do not finalize one universal default semantics in #394 before #400B/D.
symbolic-memory #6
Persist immutable epistemic support/lifecycle/justification inputs sufficient to rebuild current epistemic views. The ledger should not persist a single mutable
truthcolumn as authority.Specifically preserve:
symbolic-memory #7
Query APIs should accept an explicit epistemic profile and return support state + acceptance + counterevidence, not just
true/false/conflicted.Cross-memory reasoning must make the evidence admission/trust/context policy explicit.
all memoriesmust not silently mean one global classical theory.#397
Mark Depth 3A complete only. Queue #400B next.
Rejected simplifications
A-level decision
GO: adopt a canonical Epistemic Support Graph over the existing proposition/assertion/context/justification substrate, with independent positive/negative support and explicit assumption environments. Treat all actual warrant/truth-maintenance behavior as versioned Epistemic Profiles over that substrate.
Preferred default safety posture for arbitrary heterogeneous memory is paraconsistent support reporting; a bounded well-founded default profile is the strongest current candidate for deterministic zero-LLM default reasoning over admitted logic-program fragments. Stable-model, argumentation and AGM-style revision remain explicit opt-in profiles/views.
This is a foundations decision, not final epistemics. #400B must now attack it, especially: default specificity/priorities, reinstatement, cycles of defeat, belief-vs-source trust, probabilistic/uncertain evidence, iterated revision, temporal correction, contradiction propagation, and whether ESG+profiles can avoid semantic mismatches between WFS/ASP/argumentation/paraconsistent views.
Depth 3 / #400B — adversarial epistemics: typed defeat, source dependence, circular support, and iterated correction
This is subpass B only. It attacks #400A's
Epistemic Support Graph (ESG) + explicit Epistemic Profilesrather than assuming that architecture is correct. #400 remains open for C/D; do not advance to #401.Research questions
The A design preserves positive/negative support and profile-relative warrant. B asks whether that is enough when real non-monotonic systems contain attacks on reasons, not merely opposite conclusions, and when evidence histories are correlated, cyclic, ordered, and temporally backdated.
Specifically:
what is believed nowversuswhat was known then?undefined,credulous_only,profile_inconsistent) versus operational (resource_limited)?Primary / authoritative sources inspected
temporal change != belief revisionand motivates bitemporal treatment of backdated corrections.Attack on #400A: what breaks
A's ESG can represent:
but this does not distinguish these materially different cases:
If every attack is encoded as negative support for
P, the system fabricates false propositions. If every attack merely toggles a justification inactive, history and profile semantics disappear.Therefore ESG survives, but must be refined with a typed defeat/attack layer whose targets can be propositions, support episodes, premises, inference applications, assumptions, source-independence claims, or policy/admission decisions.
Candidate architecture A — global priority-ranked defaults
Give each default/source/rule a numeric weight or total order. Resolve every conflict by taking the stronger item.
Strengths
Fatal problems
Rejected as canonical semantics. Numeric/ordered preferences may exist inside explicit profiles, but cannot be the substrate.
Candidate architecture B — translate everything to ASP/stable models
Compile ESG/defaults/priorities into extended logic programs; use answer sets/preferred answer sets as the universal epistemic semantics.
Strengths
Failure
Keep as a profile/engine, not the canonical epistemic representation.
Candidate architecture C — structured argumentation as canonical epistemic store
Turn every assertion/rule/derivation into arguments and every conflict/exception into attacks/defeats. Use ASPIC+/ABA-style structures as canonical memory.
Strengths
Failure
Use as a derived profile/view.
Candidate architecture D — ESG + Typed Defeat Graph + profile-specific acceptance (preferred)
Refine A into two canonical but distinct graph layers:
The defeat layer does not itself decide acceptance. It preserves the structure required for profiles to do so honestly.
Conceptual records:
ep_preferenceis deliberately partial and typed. The substrate does not collapse unrelated dimensions into one total ranking.B decision 1 — rebuttal, undermining and undercutting are hard semantic distinctions
Adopt a target taxonomy equivalent to:
Example:
Only the first two need a contrary proposition. Undercutting must never manufacture
not(P).This is a canonical refinement required for #394 and symbolic-memory #6/#7.
B decision 2 — preference is a typed relation, not one magic score
Default/source resolution must keep at least these dimensions distinguishable:
A profile may define a composition policy, e.g. lexicographic or partial-order lifting, but the composition policy itself is named/versioned and appears in the warrant receipt.
No implicit:
And no raw Prolog clause order.
B does not freeze one universal specificity algorithm. Brewka/Brewka-Eiter demonstrate that priority semantics are substantive and can alter extensions. C/D should decide which bounded profile(s) actually ship.
B decision 3 — source correlation is first-class epistemic structure
This is a major addition from truth-discovery/source-dependence research.
Suppose ten news sites repeat the same wire story:
Canonical evidence still contains ten assertion episodes. But a corroboration query must not conclude
10 independent sources.Introduce an evidence-origin/dependence graph and expose both:
or equivalent structured summaries.
Hard rules:
The dependence graph influences selected profiles/admission/corroboration policies but does not become proposition probability by fiat.
B decision 4 — circular support cannot bootstrap itself into warrant
A raw justification graph can contain:
or nastier cycles through defaults/attacks.
The system needs an external-grounding invariant:
For monotonic strict/Horn support, an SCC with no externally supported seed contributes no new support.
For default/negative cycles:
undefined;Therefore
self_supportingandcircular_dependencybecome explanation conditions, not hidden implementation quirks.B decision 5 — reinstatement belongs to acceptance semantics, not ledger mutation
Classic pattern:
Some semantics reinstate A/P; cycles and floating reinstatement can differ under grounded vs preferred semantics.
Machine Spirit therefore must never store:
Canonical state stores attack/defeat candidates and their provenance. The selected profile computes acceptance. Changing from grounded to preferred semantics may change warrant while the ESG/typed defeat graph remains identical.
This is exactly why argumentation remains a profile/view rather than canonical truth storage.
B decision 6 — iterated revision requires revision-state lineage
Darwiche-Pearl shows that the current belief set alone is insufficient for rational iterated revision. Machine Spirit's
revision_projectionmust therefore be defined over an explicit revision epistemic state and operation sequence, not simply rerun AGM contraction on a set of currently accepted propositions.Conceptual receipt/state:
Hard invariant:
Revision projections are rebuildable if all operator/version/state inputs are retained. Different revision operators may legitimately produce different commitment states.
B decision 7 — backdated corrections require bitemporal epistemics
A correction may arrive today stating that a claim was wrong since last month.
We must distinguish:
Example:
Queries differ:
Do not rewrite the old epistemic snapshot. This requires bitemporal lifecycle/query semantics downstream in symbolic-memory #6/#7.
Backdated correction is also distinct from an actual world-state transition on Feb 10.
B decision 8 — semantic outcomes need two orthogonal status axes
A-level
acceptancewas still too easy to overload.Separate at least:
Semantic acceptance
Evaluation completeness
Why:
undefinedis a semantic result under e.g. WFS negative recursion;undecidedcan be a legitimate argumentation/default state;credulously_warrantedmeans some but not all admitted models/extensions;resource_limitedsays the computation did not finish enough to establish the requested semantic status;profile_inconsistent/no-model is not ordinary refutation.Never collapse computational incompleteness into epistemic uncertainty.
B decision 9 — WFS, ASP, argumentation and paraconsistent views can share ESG only through explicit translation contracts
The attack confirms the A architecture can serve multiple profiles, but there is no semantics-free universal lowering.
Required profile declaration should include something equivalent to:
Examples:
Thus the common ESG is an evidence/justification substrate, not a universal proof theory.
Revised preferred architecture after adversarial attack
This is a stronger architecture than #400A's plain ESG+profiles while preserving A's central insight.
Complexity / scaling implications
Epistemic/provenance implications
Add two provenance dimensions beyond #400A's baseline:
Do not treat source-dependence inference as fact without its own evidence/status.
A warrant explanation should now be able to say not only:
but:
Safety / authority implications
undercutclaiming that a safety verifier is unreliable cannot disable the actual runtime verifier; semantic epistemics and host enforcement remain separate.resource_limitedcannot be interpreted as permission to choose the most convenient result.Adversarial fixtures / falsifiable conformance
B adds at least these required fixtures:
looks_red -> red, red-light evidence undercuts the rule; result must lose defeasible warrant forredwithout gaining support fornot red.P<-Q, Q<-Pwith no external seed must not bootstrap ordinary strict support.undefinedwith residual/cycle explanation.false.known-atquery does not rewrite itself.A>B, B>C, C>Amust be detected and handled by profile semantics, not sort accident.Cross-profile differential oracle:
Different profiles may legitimately disagree, but the disagreement must be attributable to the profile contract.
Canonical changes required from B
prolog-rlm #394
Add:
symbolic-memory #6
Persist enough append-only evidence to reconstruct:
symbolic-memory #7
Query outcomes should expose:
Add
known_at(TransactionTime)separately fromvalid_at(WorldTime).Unresolved questions intentionally preserved for #400C/#400D
B conclusion
The A architecture survives, but only after a significant refinement:
This does not freeze one universal default semantics. #400C must now research composition/interoperability among epistemic profiles/theories and #400D must prove bounded executable behavior.
Depth 3 / #400C — epistemic composition/interoperability: typed federation without one global truth semantics
This is subpass C only. #400 remains open for D. The purpose of C is not to pick a better single non-monotonic logic; it is to define how heterogeneous epistemic theories can exchange evidence and conclusions without silently inheriting each other's negation, default, priority, contradiction, revision, or acceptance semantics.
Research questions
Primary / authoritative sources inspected
The older MCS literature is unusually on-point here. It validates the architectural direction of heterogeneous local semantics plus explicit bridges, but it also exposes a trap: global equilibrium semantics is too strong to be Machine Spirit's default federation contract. A globally inconsistent/no-equilibrium subsystem should not automatically make unrelated memories unusable.
Candidate A — flatten all admitted knowledge into one global epistemic profile
Convert every theory into a common rule language/profile, normalize all priorities/defaults/negation, then reason globally.
Strengths
Fatal problems
not Pcan mean WFS/NAF absence, ASP default negation, explicit refutation, or merely unsupported; flattening changes meaning;Rejected as canonical federation. It may be an explicitly selected export/compilation target only when a compatibility proof says the relevant fragment is semantics-preserving.
Candidate B — classic heterogeneous MCS with mandatory global equilibrium
Each theory is a context with its own logic; bridge rules exchange formulas; global acceptable states are MCS equilibria.
Strengths
Problems for Machine Spirit
Retain as an optional federation profile, especially for bounded tightly-coupled subtheories whose semantics genuinely requires fixed-point/equilibrium reasoning. Do not make it the memory-wide default.
Candidate C — Typed Epistemic Federation Contracts + query-bounded federation (preferred)
Each theory remains semantically sovereign. It exports epistemic objects, not naked propositions. Bridges have typed import/export contracts describing exactly what local status is being transmitted and what the destination is allowed to do with it.
Conceptual records:
A bridge is not mere
P@A -> P@B. It says what A knows/warrants, under which semantics, and how B may treat that information.Recommended import modes:
Critical default
evidence_onlyorattributed_acceptanceis the safe cross-profile default. Stronger imports require explicit compatibility/admission contracts.Candidate D — argumentation as the universal federation layer
Translate every local accepted conclusion into an argument, then federate through attacks/defeats.
Strengths
Problem
It still imposes argumentation acceptance as the global semantics and can lose important local statuses such as WFS
undefined, ASP model multiplicity, revision state lineage, or support-only paraconsistent evidence. Argumentation remains an excellent derived federation profile, not the universal bus.Preferred design: Epistemic Federation Fabric (EFF)
The surviving architecture is ESG + Typed Defeat/Dependence Graph locally, connected by an Epistemic Federation Fabric.
Hard interoperability invariants
1. Default negation / absence does not cross an open boundary by default
If A's WFS/ASP logic derives
not pbecausepis absent locally, that cannot become explicit negative support in B.A bridge may transmit
A lacks/would-default-negate p under profile Xas meta-knowledge. It may only use absence as a premise in B under an explicit closure contract identifying the closed predicate/domain/time/context and compatible negation semantics.This is the single most important cross-profile safety rule.
2. Local skeptical/credulous status survives export
ASP example:
Export must preserve:
A recipient cannot treat either as ordinary warranted support unless a bridge explicitly imports credulous alternatives as assumptions/hypotheses.
3.
undefined,conflicted,no_model,resource_limited,unsupportedare non-isomorphicDo not map them all to
unknownwhen crossing a theory boundary. The export envelope preserves semantic acceptance and evaluation completeness separately.4. Priorities are namespaced
priority(rule7, high)in A has no ordering relation with B'spriority(rule9, high)unless a bridge supplies a typed lifting policy.Valid forms include:
Never compare arbitrary numeric weights merely because both sides have numbers.
5. Defaults do not inherit globally
Imported default rule D from A is not automatically active in B. Bridge mode must distinguish:
Activation requires B's profile to understand the default's semantics or a declared semantics-changing translation with a loss receipt.
6. Defeat edges preserve type and target
Cross-context rebut/undermine/undercut/invalidate remains typed. An imported undercutter does not turn into ¬P merely because B lacks an equivalent undercut primitive. If B cannot represent the attack semantics, mark it
represented_only/noncomposableor route through an argumentation federation view.7. Source dependence propagates across contexts
If theory A and theory B both ultimately depend on the same Reuters article, federation must preserve that lineage. Crossing a context boundary does not reset independence.
Conceptually:
Bridge receipts therefore carry dependence/source-origin IDs, not only local assertion IDs.
8. Identity/ontology reconciliation is epistemic input, not invisible preprocessing
Suppose A refers to
x, B toy, and reconciliation proposessame_entity(x,y).Merging proposition identity may suddenly make A:P and B:¬P conflict. Therefore identity mappings carry status/provenance and can be conditional assumptions in the federation environment.
A disputed identity mapping cannot silently rewrite support graphs. Query results must be able to say the conflict exists only under identity assumption I.
Distributed Description Logic work strongly supports preserving peer-local domains and explicit mappings rather than assuming globally identical individuals.
9. Contradiction containment is the default
Conflict in theory A remains local unless:
no_equilibrium(A)cannot poison unrelated B. A global equilibrium is an optional federation profile, not ambient memory semantics.10. Federation itself has a profile/version
A federation query must declare how local outcomes are combined.
Candidate modes:
The query result must expose the federation profile and selected theory/bridge closure.
Bridge compatibility contract
Before an epistemic bridge can be active, validation should classify it approximately as:
Relevant dimensions:
noncomposableis a legitimate result. Machine Spirit should be able to remember/query both theories without pretending their reasoning can be merged.Federation query contract
Conceptual API:
Outcome should expose at least:
A useful internal intermediate is:
This creates an auditable path from each local semantics through every cross-context transformation.
Complexity / scaling implications
Classic heterogeneous MCS equilibrium reasoning can inherit the complexity of local logics plus cross-context fixed-point/model search; nonmonotonic bridges introduce additional global search. The inconsistency-diagnosis literature exists precisely because bridge interactions can make whole systems inconsistent in non-obvious ways.
Machine Spirit should therefore not globally materialize all federated equilibria.
Preferred operational strategy:
resource_limitedseparately from semantic undecidedness.If independent context A has
madmissible models and B hasn, naïvely constructing a Cartesian product can yieldm*ncombinations before bridge constraints. More contexts create exponential products. Federation should therefore preserve factored/local model sets and expand combinations only when bridge dependencies make them relevant.Acyclic positive evidence-only bridges can be evaluated much more cheaply as a topological propagation plan. Negation/default/managed revision across a bridge SCC requires the stronger federation solver/profile.
Epistemic/provenance implications
C adds a new provenance class:
This is distinct from source/compiler/logical/lifecycle/profile provenance and records:
A conclusion may be fully warranted locally but only
status_onlyacross a bridge. That is not lower confidence in P; it is a limitation of semantic interoperability.Likewise, importing a skeptical conclusion as evidence creates a new derived support path whose provenance includes the local warrant receipt. It never turns the upstream source into a direct source of the recipient proposition.
Safety / authority implications
Epistemic federation is not capability federation.
Hard rule:
No bridge may transfer host authority, tool permissions, credentials, principal identity, or effect capability merely because the imported semantic content names an action/policy/permission.
Security principal identity mappings use a stricter authority-owned mechanism than ordinary semantic
same_asmappings. A metonymic/ontology/entity reconciliation bridge can never merge principals or capability identities.Host execution remains behind the existing typed authority/effect boundary.
Adversarial review / failure cases
not pfrom local absence; bridge turns it into B's explicit¬p. Forbidden without explicit closure + negation translation contract.10; importer compares them globally. Forbidden absent lifting contract.A:broader-than Btranslated as equivalence, creating spurious defeaters. Mapping relation/loss must be explicit.operator may delete X; bridge treats it as host permission. Never.known_atqueries use mapping state available at transaction time.Falsifiable / conformance fixtures
C requires at least these executable fixtures later:
not pcrossing an open bridge does not create explicit¬psupport.{p}/{¬p}export remains credulous on both sides; no skeptical P.skeptical_warrant_as_supportcreates a derived support path with local warrant receipt.undefinedsurvives round-trip through a federation query.no_stable_modelstays a local profile failure and does not refute unrelated propositions.resource_limitedlocal evaluation remains computational status, not epistemic unknown.known_at(T)federation uses bridge/identity/profile versions known at T.Rejected alternatives
Concrete canonical changes recommended
prolog-rlm #392
Keep the existing typed
sem_bridge, but its semantic-profile work should allow a bridge to reference an epistemic interoperability contract rather than implying that proposition mapping alone transfers warrant. Semantic proposition mapping and epistemic admission are separate layers.prolog-rlm #394
Add an Epistemic Federation Fabric contract:
noncomposable/lossy_declaredare valid bridge outcomes;symbolic-memory #6
Persist enough to replay federation:
Do not persist one merged global truth graph.
symbolic-memory #7
Cross-memory query joins need explicit:
and must return local outcome vector + bridge/import receipts + noncomposable edges + mapping assumptions + dependence components.
all memoriesis never implicit permission to flatten epistemic semantics.#397 / #400
Mark #400C complete, keep #400 open, and queue #400D for computational realization/scaling/conformance of ESG + defeat/dependence + federation: query planning, local-result caches, bridge SCC evaluation, incremental invalidation, bounded model/environment products, diagnostics and deterministic differential replay.
Unresolved questions preserved for D/later depths
C decision
Adopt the Epistemic Federation Fabric: local epistemic sovereignty + typed status-bearing exports + explicit admission bridges + query-bounded federation. Classic heterogeneous MCS equilibrium remains an optional strong federation profile, not global ambient semantics.
This materially extends #400A/B rather than replacing them: ESG + typed defeat/dependence remains the local/canonical epistemic substrate; C defines how those local epistemic worlds communicate without lying about their semantics.
Next: #400D.
Depth 3 / #400D — computational realization: demand-driven epistemic federation, projected interfaces, SCC execution and replay
This is subpass D only. It operationalizes the surviving A/B/C architecture (
ESG + Typed Defeat/Dependence Graph + Epistemic Federation Fabric) without flattening local epistemic semantics. With this result, Depth 3 can be reconciled and closed as design-complete; this is still implementation-unproven.Research questions
Primary / authoritative sources inspected
What A/B/C got right
Keep all of these:
valid_atandknown_atare independent;The missing piece was an execution model that does not turn those distinctions into a combinatorial global-model explosion.
Candidate A — eagerly materialize one global epistemic closure
Translate every local theory, bridge, attack, preference and identity mapping into one global program/materialized closure and keep it continuously updated.
Strengths: simple query path after materialization; easy global indexing.
Failure: semantically wrong for noncomposable profiles and computationally hostile. A local model change can invalidate huge global state; ASP/default model plurality becomes global Cartesian multiplication; one broken/no-model context can contaminate unrelated queries. Reject as canonical execution.
Candidate B — classic distributed MCS equilibrium enumerator
Each context is a local solver. Enumerate local belief states and bridge applications until a federation-wide equilibrium is found; distribute search and add symmetry breaking.
Strengths: clean formal global semantics for a deliberately coupled MCS; heterogeneous engines remain local; mature theory exists for equilibria/inconsistency.
Failure: still too expensive and too strong as default. Most Machine Spirit queries do not need a global equilibrium, and full local models contain huge amounts of information invisible to bridges. Retain only as an explicit bounded
mcs_equilibriumprofile.Candidate C — compile everything to one ASP/meta-interpreter
Encode WFS, argumentation, source policies and bridge semantics into one ASP program and use one optimized solver.
Strengths: powerful mature solver; compact deployment; skeptical/credulous query support can be implemented.
Failure: collapses profile semantics into an encoding layer whose correctness becomes the whole system; non-ASP theories become simulations; incremental invalidation and explanations become opaque; authority of profile translators grows dangerously. Reject as universal architecture. ASP remains one backend.
Candidate D — Demand-Driven Interface-Factored Epistemic Executor (preferred)
Compile each federated query into an explicit Epistemic Query Plan (EQP). The planner reasons over theory interfaces and dependencies, not full local world models.
Conceptual API:
The existing runtime/scheduler executes plan nodes. EQP is not a second scheduler.
1. Demand slice before reasoning
Start from query predicates/entities/context and walk backward through:
Unreachable theories and bridges are excluded. This is analogous in spirit to goal-directed rewriting/magic sets: federation work should be proportional to the relevant dependency region, not total memory size.
The plan must record why each theory/bridge was included.
2. The epistemic interface is the expensive object — not the full local model
For federation, two local states that differ internally but produce the same bridge-visible epistemic exports are equivalent for the current federation query.
Define a projected summary keyed by an explicit boundary signature:
InterfaceSignaturecontains only propositions/status dimensions actually visible to selected outgoing bridges or the query.Hard rule:
This quotient must not be used for local queries that distinguish M1/M2.
For ASP contexts, prefer solver-native brave/cautious queries or projected answer-set interfaces over enumerating every full answer set. Full model enumeration happens only when the requested semantics genuinely needs it.
3. Condense bridge dependencies into SCCs
Build a query-local dependency graph over theory-interface nodes and bridge edges, then compute strongly connected components.
Acyclic component DAG
Evaluate topologically. Positive/evidence-only edges propagate deltas once their prerequisites change. No global fixed point is required.
Monotone cyclic SCC
Use least-fixed-point / semi-naive delta iteration over the finite admitted status lattice/interface domain when profile contracts prove monotonicity.
WFS-compatible SCC
Use tabled/alternating-fixed-point machinery; local incremental tabling can invalidate/recompute affected tables lazily. Preserve
undefinedand residual conditions.ASP / nonmonotonic equilibrium SCC
Do not pretend monotone fixed-point evaluation is sound. Compile a bounded interface search using local solver oracles / multi-shot ASP where compatible. Search over projected interface assignments, not full model Cartesian products. Preserve zero/multiple equilibrium outcomes.
Argumentation SCC
Grounded semantics can use its deterministic fixed-point evaluation. Preferred/stable/etc. semantics require explicit bounded search/enumeration and skeptical/credulous reporting.
Noncomposable SCC
Return
noncomposable/partial federation diagnosis. Do not create a synthetic common semantics merely to make the query executable.4. Factorized epistemic choice graph (FECG)
When a cyclic/nonmonotonic federation requires alternatives, represent them as a shared AND/OR + constraint DAG, not as a materialized list of global worlds.
Conceptual nodes:
This is an engine-neutral factorization contract. Implementations may choose BDD/ZDD/d-DNNF/tree-decomposition/solver-native structures where profitable, but none becomes canonical semantics.
Treewidth/separator size of the query-local interface graph, SCC size, number of bridge-visible atoms/statuses and number of genuine alternative interface projections become planning metrics. Structural decomposition literature shows these parameters can materially change feasibility, while also warning that ASP remains hard even at modest structural width. The planner must expose estimates/limits, not promise tractability.
5. Cache immutable derived summaries by exact epistemic frontier
Cache key must include at least:
A cache hit means same derived semantics for that exact frontier, not “same proposition text.”
Ordinary caches remain disposable. Durable promoted decisions/actions retain a replay receipt referencing the exact frontiers and plan.
6. Incremental invalidation is dependency-directed
Maintain derived dependency indexes equivalent to:
Examples:
That last rule is important: internal churn that does not alter the federation interface must not cascade globally.
7. Local incremental engine strategy
Backend choices are profile capabilities:
Do not write one fake generic incremental algorithm over semantics it cannot preserve.
8. Query planning must expose structural cost and hard ceilings
An EQP records explicit ceilings such as:
LLM/model calls are not a fallback for epistemic solver exhaustion.
resource_limitedremains resource-limited. Once semantics are compiled, all #400 conformance fixtures must be zero-model.9. Evaluation result separates semantics from execution
Required shape:
A complete result may legitimately be
undefinedorno equilibrium; a partial timeout may not be relabeledunknownorfalse.10. Explanation compression
Do not copy giant proof/model trees into every answer. Return a shared receipt DAG:
Default explanation is a bounded synopsis with IDs and counterevidence; callers can expand local receipts/source spans. Alternative derivations share nodes. For a conflict/noncomposable result, diagnostics must identify the minimal known relevant bridge/profile/interface causes when available; never claim a globally minimal diagnosis unless the algorithm actually proved minimality.
11. Deterministic concurrency
The actor/runtime may evaluate independent SCC-DAG nodes concurrently, but semantic results are identified by immutable plan/frontier/interface keys and combined in deterministic canonical order.
For identical canonical inputs/profile versions/budgets:
A race that changes skeptical/credulous/complete status is a correctness bug.
Complexity / scaling contract
No universal polynomial claim is allowed.
Therefore the target is output-/interface-sensitive bounded execution, not a claim that arbitrary heterogeneous epistemic federation is tractable.
Epistemic / provenance implications
Safety / authority implications
resource_limitednever triggers an implicit LLM or unsafe executable fallback;Adversarial failure cases / conformance corpus
At minimum add fixtures for:
undefined, survives caching/rebuild;maybe_same(x,y)invalidates only bridge/SCC results that consumed it;resource_limited, never top-1 truth;known_at(Tpast)reproduces historical warrant even after later corrections and cache rebuild;Rejected alternatives
Canonical decision
Adopt the Demand-Driven Interface-Factored Epistemic Executor as the Depth-3 D architecture:
The canonical semantic history remains in Symbolic Memory; all EQP plans, interface summaries, WFS/ASP tables, FECGs and ordinary warrant caches are rebuildable derived state unless a promoted action/decision requires a durable replay receipt.
Unresolved questions handed forward
Depth-3 conclusion
A/B/C/D now form one coherent design:
Depth 3 is therefore design-complete, implementation-unproven. Canonical handoffs should land on #394, #376 and symbolic-memory #6/#7 before advancing to #401A.