external-integration

57 beliefs (32 IN, 25 OUT)

The external-integration topic covers how the Truth Maintenance System ingests, reconciles, and maintains beliefs that originate outside the system, primarily through agent import and sync operations. This matters because a TMS that only manages internally-created beliefs is limited in scope; real-world knowledge bases need to absorb information from other agents and external sources while preserving their internal consistency guarantees. The active beliefs in this topic divide into two tiers: concrete implementation-level facts about how import and sync actually work, and a small number of higher-level claims about lifecycle completeness and governance.

At the implementation level, the system offers two distinct reconciliation strategies (import-sync-has-dual-reconciliation-modes). Import mode is additive and skips existing nodes (import-skips-existing-sync-is-remote-wins), while sync mode implements remote-wins semantics, overwriting local text and truth values and retracting beliefs removed from the remote source (sync-is-remote-wins). Both modes share critical safety mechanisms: a two-phase truth maintenance process that adds all nodes before propagating truth values and applying retractions (import-two-phase-truth-maintenance, import-ordering-ensures-correct-final-state), topological sorting that gracefully tolerates dependency cycles rather than crashing (import-topo-sort-cycle-tolerant, import-agent-topo-sort-breaks-cycles), and normalization that silently drops references to unknown IDs to prevent dangling edges (normalization-drops-unknown-refs). OUT or STALE beliefs are imported without justifications to prevent recompute from incorrectly resurrecting them (out-beliefs-imported-without-justifications). Claims whose dependencies are entirely absent from the import set become premises, defaulting to IN (external-deps-become-premises). The parser is forward-compatible, silently skipping unknown metadata fields (import-beliefs-parser-is-forward-compatible), and API functions always parse files into structured data before delegating to the database layer (import-functions-parse-before-dispatch).

The sync subsystem has several verified operational properties: it is idempotent, producing zero changes on repeated calls with identical data (sync-agent-is-idempotent), it preserves cascade wiring so that kill-switch retractions still propagate correctly after sync (sync-agent-preserves-cascade-structure, sync-preserves-cascade-wiring), it returns structured diff counts for accurate accounting (sync-returns-structured-diff-counts), and calling sync for the first time on a new agent produces identical results to import (sync-agent-first-sync-equals-import). These properties together make sync safe for automated, scheduled reconciliation (sync-is-safe-for-automated-reconciliation). At the lifecycle level, the system tracks external beliefs from ingestion through ongoing validity monitoring, including staleness detection for source drift (external-belief-lifecycle-is-complete, external-lifecycle-is-complete-and-automatically-maintained), operating within a metadata-enabled governance framework (external-lifecycle-operates-within-rich-governance).

A striking feature of this topic is the large number of OUT beliefs, nearly all of which are higher-level derived claims about external beliefs achieving "full parity," "total integration," or "complete invariant equivalence" with internal beliefs. Claims like external-beliefs-achieve-total-integration, external-beliefs-are-invariant-equivalent, and external-integration-preserves-all-invariants have all been retracted, along with intermediate claims about defensive containment, bidirectional bounding, and trust-bounded verification. This pattern suggests that while the concrete implementation mechanisms for import and sync are well-established and verified, the broader architectural claims about external beliefs being fully equivalent to internal beliefs did not survive scrutiny. The system demonstrably handles external belief ingestion and reconciliation robustly, but the retracted beliefs indicate that earlier claims about complete parity across all quality dimensions, invariant guarantees, and containment layers were overstated or could not be justified from the available evidence.