Space
Graph space expresses connectivity and constraints. Vector space expresses similarity and distance. Both are queryable and composable over the same records.
Tethesis comprises a unified database foundation, composable platform capabilities and application products. At its core, InvariantDB is a unified bitemporal property graph, vector and memory database. Graph and vector spaces compose in either direction over a common bitemporal data model, with individual-node RBAC, historical graph reconstruction, isolated hypothetical evaluation, provenance, memory and coordination primitives.
InvariantDB is the shared data and enforcement foundation. Tethesis builds reusable application-layer capabilities on that foundation, which can be composed into products, industry solutions and customer applications. The database can also be used independently.
The platform layers supply domain semantics and workflows; InvariantDB enforces the configured data and transaction contracts within its interfaces. A decision service, for example, can define a review policy and evidence requirements, while the engine applies the relevant configured access rules, revision conditions and approval controls. The layer remains responsible for correctly expressing business rules, capturing evidence and reconciling external operations.
InvariantDB unifies graph relationships, vector retrieval and temporal history at the graph engine boundary. This reduces the application-level reconciliation required when separate stores manage different representations of the same information.
Coordinate identifiers, versions, access policies and failures across separate systems.
Retrieve and govern records through one engine and its documented consistency boundaries.
Unification reduces the number of boundaries where applications must reconcile state. It does not eliminate external systems, application logic or the need for correctly configured controls.
Space, time and meaning describe complementary aspects of the model. Space includes both graph topology and vector geometry; time supplies versioned context, and meaning is represented through semantic similarity and explicit relationships.
Topology, relationships, predicates
Similarity, distance, ranking
Valid time and recorded time select the historical context.
Represent meaning through vectors, explicit relationships, knowledge and evidence.
Graph space expresses connectivity and constraints. Vector space expresses similarity and distance. Both are queryable and composable over the same records.
Valid time and recorded time distinguish when a fact applies from when the database learned it. Temporal queries recover historical state within retention and access boundaries.
Embeddings provide a representation of semantic similarity; graph relationships, facts, evidence and memory supply explicit context. Similarity is not evidence of truth.
A customer completes verification on June 1. The evidence arrives on June 3. A decision made on June 2 must be understood using the information actually recorded then, not information that arrived later.
The verification had taken effect, but the database had not yet received evidence. The earlier recorded status is pending.
MATCH (c:Customer {id: 'c-42'})
AT VALID '2026-06-02'
AT RECORDED '2026-06-02'
RETURN c.kycStatus;The subsequently recorded evidence establishes that verification was effective on June 1. The original decision context remains available.
MATCH (c:Customer {id: 'c-42'})
AT VALID '2026-06-02'
AT RECORDED '2026-06-04'
RETURN c.kycStatus;Reconstruct the evidence and state that were recorded when an operation occurred. This does not imply that nondeterministic models or external systems will reproduce identical outputs.
Explore bitemporal history →A retained graph state can be reconstructed at a selected valid and recorded time. That state can serve as the baseline for isolated hypothetical changes, dependency analysis and evaluation of alternative outcomes without modifying the authoritative graph.
Inspect the facts, relationships and evidence available at the selected time.
Use an isolated graph overlay or transaction-based simulation to evaluate changed assumptions.
MATCH (n)-[r]->(m)
AT VALID '2026-06-01'
AT RECORDED '2026-06-15'
RETURN n, r, m;This pattern selects relationships and connected nodes at the specified historical coordinates. Other patterns can select standalone nodes, properties or governed retrieval results. Reconstruction is subject to retained history, access controls, cryptographic erasure and query limits.
Hypothetical state is not recorded fact. Counterfactual evaluation must preserve the distinction between the authoritative baseline, proposed changes and computed results. It does not establish real-world causality or reproduce nondeterministic external behavior by itself. A subsequent authoritative change remains subject to the ordinary commit, staleness and authorization checks.
Graph and vector queries can be composed in either direction. The order is meaningful: ranking within a graph-defined population is not equivalent to ranking globally and filtering afterward.
Use a graph pattern, relationship, predicate or node set to define the eligible population. Rank that population using vector similarity, in exact or explicitly approximate mode as supported.
MATCH (c:Customer {id: $cid})-[:OWNS]->(d:Document)
AT VALID '2026-06-02'
AT RECORDED '2026-06-04'
RETURN d.title
ORDER BY cosine(d.embedding, $q) DESC
LIMIT 10;Illustrative exact ranking over the matched, eligible records. The historical coordinates and caller's permissions still apply.
Find eligible semantic seed records using vector retrieval, then traverse specified relationships to recover connected evidence, dependencies and context.
CALL gds.semanticMatchExpand(
'Chunk', '_embedding_v1', $queryEmbedding,
10, 2, ['DERIVED_FROM']
)
YIELD nodeId, score, distance
RETURN nodeId, score, distance
ORDER BY distance, score DESC;Documented match-and-expand example. Seed ranking and expansion have distinct semantics; an expanded record's seed score is not its own similarity score.
Cost-based planning uses per-graph statistics and indexes. EXPLAIN and EXPLAIN ANALYZE expose plan and timing; retrieval statistics describe eligible population, exact or approximate discovery and fusion. Resource limits bound query execution.
InvariantDB supports graph-scoped multi-statement serializable transactions where enabled. Commit-time checks distinguish a successful write from a conflict, a stale read or a missing authorization.
A statement or supported transaction records one recorded instant. Multi-statement transaction constraints are checked at commit. No-op writes do not create additional versions.
Conditional writes compare expected revisions with current state. Supported tracked read sessions can refuse protected writes based on covered records that changed after they were read. Historical reads are not themselves assertions of current freshness.
Claims and fenced leases coordinate workers. A superseded holder cannot use an earlier fencing token to commit a protected change. Idempotency keys support safe retries within the documented contract.
POST /graphs/ops/cypher
{
"query": "MATCH (d:Decision {id: $id}) SET d.status = $status",
"params": {"id": "decision-42", "status": "reviewed"},
"conditions": [
{"node": "decision-42", "rev": "1792310400123456789"}
]
}Example of the documented conditional-write mechanism. Actual revision identifiers must come from the relevant read.
409 CONDITION_FAILED409 READ_SET_CHANGEDLEASE_LOST; protected write refusedProtected write held until authorizedTEMPORAL_READ_LIMIT; no silently partial historical resultGraph-local transaction guarantees are not a claim of atomic cross-server commit. External effects and uncertain remote outcomes require their own coordination and reconciliation.
Transaction and API reference →Graphs are units of data organization and access control. InvariantDB supports cross-graph calls, including calls across servers and regions, allowing deployments to extend beyond a single server while maintaining governed access.
Applications can call other graphs rather than requiring all records to live in a single graph. Graph access remains governed.
Distribute graph workloads across servers and use cross-server graph calls where appropriate. This is distinct from claiming that one graph is transparently sharded across machines.
Cross-region graph calls are strongly guarded for compliance. Authorization and regional policy boundaries matter even when applications have a legitimate reason to retrieve remote information.
Cross-region access must be evaluated against applicable residency, transfer and access requirements. The ability to call another graph does not imply unrestricted data transfer, automatic regulatory compliance, globally serializable transactions, synchronous replication or automatic failover. Remote result freshness, authorization, failure semantics and transaction scope must be evaluated under the relevant deployment contract.
The engine exposes the following enforcement primitives. Their behavior depends on the graph, enabled features, configured policies and applicable transaction boundary.
Access policy, temporal context and evidence.
Revision, read set, lease and required authorization.
Commit durable state or return a refusal; held writes await approval.
Role-based access control applies at graph, label, relationship-type, individual-node and property scopes. Individual-node permissions allow two records with the same label to have different access decisions. Purpose constraints and scoped credentials further restrict permitted operations.
Eligible for the authorized operation.
Excluded from the authorized result.
Guarantees apply within documented interfaces, policies, retention settings and deployment configuration. Source truth, application-defined evidence links, legal compliance and external side effects require additional controls.
The engine separates prevention of modification, detection of tampering, protection of sensitive values and independently verifiable evidence. Each has a distinct enforcement boundary.
Preserve an independently held commitment to the recorded history.
Check the chain, signatures and previously held anchors without querying the running database.
Write-once-read-many controls and subject-key destruction solve different retention problems. Their interaction is explicit: erasure is refused while WORM is engaged on the graph.
Once engaged, WORM cannot be disabled through the API. Covered updates and deletes are refused while new records can be created. It is a licensed graph feature.
POST /graphs/{name}/worm/engageConsult the regulated-industry reference for covered write routes and exclusions, including the legacy default-graph write route and schema or index changes. WORM alone is not a certification of regulatory recordkeeping compliance.
Schema-declared sensitive values are sealed under subject-specific keys. Destruction of all subject key versions makes covered values unreadable in current and historical reads, without changing the stored history.
CALL db.destroySubjectKey(
'subject-42', {reason: 'data_subject_request'}
)
YIELD receiptId, nonce, commitment, signedReceipt;A durable key provider is required. Erasure is scoped to sealed values in the live graph and covered history. It does not extend to earlier backups, pre-declaration values, undeclared copies or data already exported.
Licensed signed compliance bundle exports, subject exports, purpose-bound field access, recorded provenance and historical queries provide evidence for control assessment. Regional graph calls are subject to governed boundaries. Retention settings, WORM and erasure policies must be designed together; a graph engaged in WORM refuses subject-key destruction, with no destruction receipt. Separate graphs can be considered when retention obligations differ.
These are data-layer controls, not a certification or legal determination of compliance. Organizations must assess the complete system, including backups, external processors, access administration, retention schedules and operational procedures.
The following logical diagram describes the exposed engine surfaces and persistence components. It does not prescribe internal process boundaries.
Per-graph storage, immutable version history and a write-ahead log. Acknowledged writes are synced to the log; recovery runs on open. History retention can be configured.
One recorded instant per transaction or supported multi-batch write. Conditions and supported tracked read sets are checked at commit; no-op changes do not create new versions.
Cost-based planning with per-graph statistics; historical key indexes, full-text ranking and exact or approximate vector retrieval. EXPLAIN exposes the plan.
Graph-scoped credentials, signed time-limited capability tokens, access policies and purpose restrictions. Approval policies are configured per graph.
Hash-chained audit and provenance records can be verified. Evidence links and property attribution connect changes to their recorded sources; integrity does not establish source truth.
Compressed history, memory-aware query admission, group commit and disk-backed indexes. Hosted and self-hosted options; feature availability and configuration vary.
Graph records on a single Amazon EC2 instance with 64 GB of RAM, in internal testing.
Graph traversal, exact and approximate retrieval, and historical queries in one engine. See the performance page for benchmark scope and qualifications.
Explore performance →Memory is a set of engine primitives over versioned, governed graph records, not a separate opaque conversation store.
Episodes, beliefs, summaries, documents and recall state persist beyond individual sessions. Versioned documents and beliefs retain earlier recorded versions subject to retention.
Beliefs can link to the evidence that supports them, carry confidence and retain revision lineage. Derived records can reference the source versions on which they depend.
Graph, vector and full-text signals can support recall; higher-level retain, recall and reflect operate on stored memory. The documented reflect operation does not call a model or write state.
Agent coordination uses engine-enforced primitives rather than relying on prompts or cooperative behavior. These mechanisms also apply to conventional workers and human-led workflows.
Tracked read validation applies to supported read-session shapes. Future-dated single-label reads are covered by the reported fix; transaction-integrated tracking and relationship-read tracking require separate version verification. Use explicit revision conditions where tracking coverage is unavailable.
The engine governs operations within its interfaces and configured policies. It does not independently guarantee correct model reasoning, truthful external sources, safe external side effects or autonomous completion.
The SDK harness assembles engine guarantees into a run lifecycle and tool policy. The server enforces its own contracts independently; the runtime controls how the model sees information and invokes tools.
Typed SDK calls for leases, budgets, receipts and authority are also provided in .NET and Go. Full harness availability is stated separately for Python and Node. Feature coverage and configuration must be verified against the installed release.
Select a reference pattern, identify its authority and persistence boundaries, and validate the actual failure behavior in the intended deployment.