[semantic-memory] General symbolic recall/query over facts, rules, events, time, causality, procedures, constraints, claims, and provenance #42
Labels
No labels
accessibility
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/symbolic-memory#42
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: #4
Depends on: #6
Integrates with: prolog-rlm#392-#394
Goal
Expose the remembered general semantic world model as a queryable reasoning surface so callers can ask arbitrary knowledge questions without rereading original prose.
The query layer must not be specialized to
how do I do X?. It should reason over every semantic class persisted by #6.Query classes
Support at least:
Entity / definition / taxonomy
Rule / implication
Procedure / planning
Event / state / temporal
Causal / diagnostic
Constraint / quantitative
Use upstream safe reasoning/constraint semantics rather than arbitrary evaluation.
Normative / policy knowledge
This reports remembered policy knowledge only; it does not grant host authority.
Claims / beliefs / conflicting sources
Attributed claims must remain attributed.
Goals / plans / preferences
Hypothesis / scenario
Scenario facts cannot leak into ordinary world queries.
General API direction
Provide a general query substrate equivalent to:
Specialized convenience predicates may sit on top but must reuse one general semantic reasoning layer.
MACHINE-SPIRIT #400A epistemic query contract
Depth 3A requires the query surface to separate evidence support from warrant/acceptance under a chosen epistemic profile.
Do not reduce query status to one mutable truth enum or confidence score.
Conceptual API refinement:
A result should expose at least:
Candidate profile family from #400A:
support_paraconsistent: report positive/negative support without explosion or automatic winner;well_founded_default: candidate deterministic default profile for admitted bounded tabled logic-program fragments;stable_models: optional multi-model profile exposing skeptical vs credulous conclusions;argumentation: derived argument/attack/defeat view for contested/default queries;revision_projection: AGM-inspired coherent operational belief projection over explicitly selected evidence/trust policy.Profile selection is part of the query contract.
all memoriesdoes not mean one implicit global classical theory.Cross-memory joins must explicitly state evidence admission/context/trust policy. A source claim, hypothetical proposition or historical fact cannot become an ordinary current-world premise merely because entity IDs join.
Hard query distinctions:
For model/default profiles with multiple admissible models/extensions, expose plurality rather than choosing the first solver result.
For resource-limited environment/model search, return an explicit bounded undecided/resource-limited outcome with receipt.
Result model
A result should preserve:
Reasoning
Use Prolog inference over upstream safe semantic reasoning semantics. Support chaining across multiple memories when namespace/trust policy permits it.
Required properties:
Bounded projection
Do not return the whole semantic store to downstream models.
Given a goal, select only relevant semantic records, epistemic support/counterevidence, assumptions, rules/defaults and compact provenance refs. A caller can explicitly expand original source when needed.
Acceptance
how-toquery derives ordered procedure with correct branch after restart.Refs #4 #6 and prolog-rlm#392 #394 #397 #400.
MACHINE-SPIRIT #400B query handoff — defeat paths, independence, known-at vs valid-at
Depth 3B strengthens the epistemic query surface.
A nontrivial result should expose two orthogonal status axes:
Do not use
resource_limitedas another word forunknown, and do not turn WFSundefinedor no-stable-model into ordinary false.Explanations/results should additionally expose, where material:
Add an explicit distinction equivalent to:
For a correction learned in February about what was actually true in January,
valid_at(January)under today's evidence may differ fromknown_at(January).Profile changes may legitimately alter reinstatement/default/cycle warrant, but the canonical ESG + typed defeat/dependence history must remain identical and the profile/version must explain the disagreement.
Full design and 24 adversarial fixtures are preserved on prolog-rlm#400.
MACHINE-SPIRIT #400C query handoff — explicit epistemic federation
Cross-memory/cross-theory joins must no longer mean
union all matching propositions and run one implicit reasoner.Add query semantics equivalent to:
Required explicit inputs include participating theories, bridge/admission policy, federation profile/version, context,
valid_atand/orknown_atwhere relevant.Result must preserve:
Hard defaults:
Recommended federation modes:
federated_evidenceas safest baseline,federated_skeptical,federated_credulous,federated_argumentation, optional boundedmcs_equilibrium, and managed/revision federation where explicitly requested.Cross-memory query planning should be demand-driven. A query over one unaffected deterministic theory must not evaluate every unrelated ASP/default context merely because they share the same store.
MACHINE-SPIRIT #400D handoff — federated query planning / projected-interface execution
Depth 3D refines
memory_semantic_query/…into a demand-driven federated execution contract.A query should compile to an inspectable Epistemic Query Plan that records:
Do not evaluate every memory/theory just because it is queryable. Do not enumerate full local model sets when multiple models have the same bridge-visible epistemic exports.
Federation execution should use:
Result must continue to split semantic acceptance from evaluation completeness, including
noncomposable,no_equilibrium,resource_limited,backend_unavailable, andstalewhere applicable.Explanations should be compressed receipt DAGs linking query plan -> local interface summaries -> bridge/SCC receipts -> local justifications -> source assertions, with expandable counterevidence rather than duplicated proof trees.
Required conformance now includes:
Full design/sources are preserved on prolog-rlm#400D.
Machine Spirit #401C handoff — procedural portability/query status
General semantic recall should expose procedural interoperability/admission state without implying execution authority. For procedure-oriented results, preserve distinctions equivalent to:
Return PSC/bridge/mapping versions, declared losses/approximations, source/projected guarantee, fairness assumptions, unbound actions/tasks and relevant provenance in explanation/projection receipts. A remembered procedure may be semantically useful/queryable while still non-projectable or locally blocked.
source says this worksremains different fromtrusted/admitted here.This query status is descriptive symbolic knowledge only; memory recall cannot create host action bindings or authority. See prolog-rlm#401 Depth-4C PIFF/PSC design.
Upstream Machine Spirit #401D handoff — procedure query/admission status
Depth 4D adds a computational distinction that the general query surface should expose without conflating recall with execution:
A
how do I do X?query may return a represented/compatible procedure even when no local executable binding exists.currently_admissibleis live derived state and must expose the evidence/policy generations it depends on; it is not a durable truth bit.Procedure results should also carry, where applicable:
Hard distinction:
Known symbolic procedure recall/planning remains zero-model once semantics are present. Full DPEC design is on prolog-rlm#401.
MACHINE-SPIRIT #402B handoff — historical commitment vs retrievability
General query results must now separate:
A valid historical answer after authorized erasure may be
committed at frontier F; payload redacted; replay=commitment_only. It must not recover erased source text from a stale projection. Likewisequarantined,integrity_failure, and incompatible-schema states are notfalseor ordinaryunknown.Action/VERIFY-sensitive queries must fail closed on stale/integrity-failed projections and exact source expansion remains authority-gated. See prolog-rlm#402B.
MACHINE-SPIRIT #402C handoff — federated query/cut semantics
General query must not interpret
all memories/all ledgersas one implicit latest snapshot. Federated queries select or construct an explicit federation cut over named logical ledgers and expose its completeness/integrity state.Conceptual refinement:
Result/receipt should preserve:
causally_closed,partial_remote_unavailable,incomplete_dependency,integrity_blocked.Missing/offline remote knowledge is not
false. Deterministic presentation order is not semantic causal order. A valid remote transparency receipt is evidence of registration/inclusion, not epistemic warrant; #400's epistemic profiles still decide warrant above the storage federation layer.Exact same cut/frontiers/versions must be replay-addressable subject to GRIE replay capability (
exact|semantic_only|commitment_only|redacted|...). Full C design and fixtures are on prolog-rlm#402.Machine Spirit #402D handoff: semantic query/history/current/explain surfaces must carry the exact requested cut, materialized cut, projection dependency generations, freshness/completeness and replay capability.
lagging,stale_dependency,rebuilding,integrity_blocked,redaction_blocked,resource_limited, and partial federation cuts must not collapse intounknownorcurrent. Exact-cut callers may catch up or demand-evaluate, but serving an older projection silently is forbidden. See prolog-rlm#402 SAFIRE D16-D21/D36.Machine Spirit prolog-rlm#403A handoff — TAPS bounded projection semantics
Bounded projection now needs two independent completeness dimensions rather than one implicit
completebit:A returned result can be support-closed (all admitted rules/premises/assumptions/counterevidence needed for that returned derivation are present) while search coverage remains heuristic (other answers may have been missed by top-k/activation/vector retrieval).
Recommended world-model projection flow over an exact #402/SAFIRE cut:
Hard distinctions:
Working-memory residency is derived transient state; eviction never retracts ledger records and stable refs permit re-entry. Source expansion remains explicit and read-authorized.
Refs prolog-rlm#403 #381 #396 #400 #402.
Upstream Machine Spirit #403B handoff — OATH-TAPS projection/query semantics
prolog-rlm#403Bis complete. B hardens bounded semantic projection against manipulation of candidate exposure.memory_semantic_projection/ query should preserve, where triggered by the attention/evidence profile:Hard requirements:
poison_free=trueresult.Refs lost-rob0t/prolog-rlm#403 #397 #400 #402 and this repo #6/#9/#10.
MACHINE-SPIRIT prolog-rlm#403C handoff — MOSAIC-TAPS
General semantic query/projection should preserve heterogeneous retriever semantics rather than flattening to one score/list. Add/retain fields sufficient for:
exact_match, rank, BM25, vector metric/model, graph activation, etc.);robust=true.Cross-memory/backend joins must use reversible #10 mappings and #6/#402 source-dependence lineage. An external retrieval result does not become a durable canonical memory record merely because it was returned.
Refs lost-rob0t/prolog-rlm#397 #403 #381 #396 and this repo #6 #9 #10.
Machine Spirit #403D handoff — RACE-TAPS query/projection execution
Depth 6D closes the computational contract for bounded semantic recall.
memory_semantic_query/memory_semantic_projectionshould preserve a replayable retrieval receipt containing at least: exact SAFIRE cut, logical obligation plan, relevant RSC/translator/backend/index generations, backend observations/pages, physical-plan/revision refs where exposed, normalized candidate/fusion/closure receipts,support_closure,search_coverage,opposition_coverage, freshness, selection integrity, explicit gaps and budgets.Hard requirements:
model_calls = 0).Physical durable indexes/cursors/generations and useful persistent caches belong in symbolic-memory; logical obligation/RSC semantics remain upstream in prolog-rlm. Full D design and fixtures are on prolog-rlm#403D.
MACHINE-SPIRIT #404A handoff — learned-knowledge query/explanation
General semantic query should be able to expose learned knowledge without flattening lifecycle/evidence:
A query may use only currently admitted learned knowledge under the selected profile/policy; candidate/suspended material remains inspectable evidence but cannot silently participate as trusted control knowledge. Strategy-performance statistics are operational selection evidence, not proposition warrant. Historical replay must resolve the exact learned-object versions used then.
Ref upstream prolog-rlm#404A EPOCH.
Machine Spirit #404B / CITADEL-EPOCH query/explanation handoff
Queries over learned rules/methods/strategies must expose more than
learned=trueor one confidence number. A learned-object result should be able to report:Hard query distinction:
admitted learned knowledgeis an operational/semantic status, not source-explicit truth, epistemic warrant, capability or authority. Historical queries must recover the exact promotion/evaluation state that applied at the requested knowledge frontier. Refs prolog-rlm#404B.Machine Spirit #404C handoff — query foreign vs local learned status
General semantic query/explanation should expose learned-object transfer state explicitly:
and return source admission authority/policy, target local promotion receipt, transfer assumptions, guarantee status (
preserved|translated|weakened|invalidated|unknown|noncomposable), ontology/identity mappings, origin-dependence status and drift/calibration epoch separately.A query must not flatten
admitted_by(source)into local warrant. If privacy prevents proving source independence, report independenceunknownand do not count it as independent corroboration/validation. Full design: prolog-rlm#404C.Implementation decomposition
#7 remains the canonical general symbolic query/reasoning requirement. Focused implementation is now:
Prolog-RLM keeps epistemic consequence/reasoning semantics. Symbolic Memory supplies durable indexed evidence, exact cuts, identities, bounded projections, and replayable query receipts.
MACHINE-SPIRIT #404D query-surface refinement
Learned-object queries must expose status and guarantees as structured, versioned results, not flatten them to one confidence/admitted flag.
For a candidate/admitted/foreign object, query/explain should be able to return: exact candidate/version; current lifecycle; origin experiences; exposure/dependence completeness (
independent|dependent|unknownas justified); EvaluationSnapshot/profile; support/counterexample coverage; baseline/safe-improvement receipt where applicable; LAC/attestation/transfer chain; drift/calibration epoch; and historical suspension/supersession lineage.Bounded counterexample coverage, statistical improvement and exact symbolic proof are different guarantee classes. Query APIs must not present them as interchangeable confidence. Refs prolog-rlm#404D and #16/#35/#36.
prolog-rlm#405B AEGIS-MS query handoff: strong query/answer receipts need more than
(world_cut, epistemic_profile). Expose the material identity/admission/redaction/integrity/control generations plus direct influence/coverage gaps required by the caller's conformance profile. A result cannot claimcurrent/exactif a mandatory dependency is stale/unavailable/redacted beyond the required evidence. Query provenance must keepsource provenance,logical justification, andcontrol/influence provenancedistinct; none is host authority.Machine Spirit #405C / CONCORDAT query handoff
General semantic query must make federation explicit in the query contract.
all memoriesmust not become an ambient union of foreign theories/trust domains.A federated query/result should pin:
Cross-domain results preserve status vectors/losses. In particular foreign credulous/undefined/conflicted states cannot be relabeled as target skeptical/false/winner; missing/private provenance cannot prove independence; multiple/no equilibrium remains explicit.
Known already-projected federated queries must remain eligible for
model_calls = 0.Canonical research + C8-C13/C45-C50: lost-rob0t/prolog-rlm#405C.