TETHESIS
Platform / Architectural Design Patterns
TETHESIS / ARCHITECTURAL DESIGN PATTERNS

Build from contracts.
Compose with confidence.

Reference architectures for connected applications, evidence-grounded intelligence and dependable execution.

Choose the pattern, define the source of truth, enforce the boundary and test the failure.

Eleven reference patterns across five workload families use the same versioned data foundation.DATAMaster dataEnrichmentKNOWLEDGERetrievalMemoryDECISIONSPinned evidenceControl assessmentEXECUTIONFenced workBounded agentsExternal actionsCHANGEReassessmentWhat-if evaluationINVARIANTDBGraph · Vector · Time · Native contracts
Eleven reference patterns across five workload families. Compose only the patterns your application needs.
01 / CHOOSE A PATTERN

Start with the contract, not the framework.

These are reference designs, not packaged applications or deployment templates. Compose them around your domain model, source ownership, authority rules and provider semantics.

CAPABILITYCONTRACT AND SCOPE
Connected operational dataHistorical corrections, transactional state and protected updates.
Knowledge retrievalEvidence-backed query context with access-aware graph and vector search.
Decision and assuranceVersioned criteria, actual factors, independent approvals and review.
Long-running workConcurrent claims, fenced commits, checkpoints and safe external reconciliation.
Change analysisTrace recorded dependencies and compare isolated alternatives.

Use only the necessary layers

A conventional database application does not require an agent harness. A read-only assistant does not need authority to perform external actions.

02 / TRANSACTIONAL DATA

Maintain a governed operational record.

Use InvariantDB directly where connected state, time and transactional constraints belong together.

PATTERN 01

Versioned master data

A source system supplies customer, supplier or asset updates. Identity mapping and valid-time corrections maintain a connected record.

Source revisionResolve identityValidateGuarded commitChange feed
Authoritative record
Source IDs, effective dates, recorded revisions and reviewed entity relationships.
Enforcement
Schema constraints, graph-local transactions, expected revisions, scoped credentials.
Failure handling
Reject conflicting updates; quarantine ambiguous identity; reconcile late events. Resume consumers from confirmed checkpoints.
Acceptance test
Apply a late correction and reconstruct the earlier recorded view; race competing updates and verify refusal.
References
Data infrastructure · Transactions
PATTERN 02

Resumable data enrichment

Transform source records using conventional workers or approved models, retaining derivations and validated outputs.

Read batchTransformLink sourcesCommitCheckpoint
Authoritative record
Source revisions, transform version, derived records and consumer position.
Enforcement
Idempotency in documented scope, transaction conditions, evidence links and bounded resources.
Failure handling
A restarted consumer inspects committed output and checkpoint; reconcile external sinks separately.
Acceptance test
Interrupt after commit before checkpoint, retry under applicable contract, confirm no duplicate business effect.
References
HTTP API · Data pipelines
03 / KNOWLEDGE AND MEMORY

Retrieve evidence, not unrestricted text.

A retrieval pipeline should have an explicit eligible population, time coordinate, source identity and output boundary.

PATTERN 03

Governed semantic retrieval

Combine graph predicates with vector ranking or expand semantic seeds into related records.

AuthorizeSelect timeRank / expandVerify sourcesAnswer
Authoritative record
Source revision, query inputs, evidence references, retrieval configuration and actual answer record where supported.
Enforcement
Access-aware eligibility, exact or explicitly approximate retrieval, scoped credentials, query limits.
Failure handling
Return explicit insufficient evidence; do not treat inaccessible or incomplete data as a negative conclusion.
Acceptance test
Hide a semantically relevant record and verify it does not appear or influence covered ranking; verify historical source citations.
References
Enterprise knowledge · Query execution
PATTERN 04

Persistent institutional memory

Connect approved source material, episodes, attributed beliefs and commitments to work across sessions.

ObserveRecord episodeReview beliefRecallRevise
Authoritative record
Episodes, beliefs, support links, revisions, ownership and retention settings.
Enforcement
Scoped recall, provenance, explicit belief lineage and applicable forgetting/erasure controls.
Failure handling
Distinguish disputed beliefs from facts; route stale summaries for review; exclude forgotten material under its recall contract.
Acceptance test
Revise a belief when evidence changes; reconstruct prior state and test permission and forgetting boundaries.
References
Memory primitives · Knowledge maintenance
04 / DECISION AND AUTHORITY

Separate evaluation from authorization.

A decision is a recorded judgment with an actual evidence basis. It is not permission to execute.

PATTERN 05

Evidence-pinned decision

An eligibility or risk decision uses approved rules, validated analytical models and qualified judgment.

Pin evidenceEvaluateRecord factorsReviewCommit
Authoritative record
Decision subject, input revisions, rule versions, result, uncertainty and actual review.
Enforcement
Supported revision conditions, covered read tracking, configured authority and held approvals.
Failure handling
Changed material evidence invalidates the relevant proposal according to configured rules; unknown remains explicit.
Acceptance test
Change an input after approval and before protected commit; verify stale authorization cannot permit the covered operation.
References
Decision intelligence · Guarantees
PATTERN 06

Continuous control assessment

Assess a control against explicit criteria and a recorded evidence set; route changes to affected reviews.

ObligationControlEvidenceAssessmentRemediation
Authoritative record
Reviewed applicability, control version, evidence, assessment and verified disposition.
Enforcement
Scoped source access, versioned criteria, derivation links, reviewed approvals and integrity evidence.
Failure handling
Missing evidence is not passing; preserve prior assessment and reopen affected work.
Acceptance test
Correct the evidence inventory and verify the configured dependency review and retained original assessment.
References
Enterprise assurance · Trust Center
05 / DURABLE EXECUTION

Build for interruptions and uncertain effects.

Workers may disappear, credentials may be revoked and external providers may time out. Durable state and explicit authority make recovery a design property.

PATTERN 07

Fenced task coordination

A worker claims an eligible task and records material progress before the next worker can take over.

ReadyClaimPerformGuard commitResume
Authoritative record
Task state, dependencies, lease/fence, checkpoints and actual committed result.
Enforcement
Fenced leases, supported conditional commits, idempotency keys and scoped worker identity.
Failure handling
A stale holder may have done speculative work, but covered stale commits are refused. Recover from recorded state.
Acceptance test
Expire worker A's lease, let worker B claim, and verify worker A's protected late commit is refused.
References
Governed automation · Agent coordination
PATTERN 08

Bounded agent runtime

An agent researches and proposes work through the Python or Node harness, without model-visible credentials.

DelegateTrace + budgetReadProposeGate actionRevoke
Authoritative record
Run identity, actual tool inputs/outputs, evidence, proposals, trace and outcome.
Enforcement
Read/propose/act classification, argument validation, trust-tier fencing, narrowed credentials and independent server enforcement.
Failure handling
Deny prohibited tools; terminate and revoke scoped authority; validate recovery after abnormal termination.
Acceptance test
Provide lower-trust source content attempting an action; verify policy denial, hidden-field stripping and independent authorization.
References
Agent runtime · SDK reference
PATTERN 09

Guarded external action

A business system prepares a consequential provider operation after reviewing current authority.

IntentAuthorizeOwnership proofDispatchConfirm / reconcile
Authoritative record
Exact action intent, approval scope, idempotency reference, provider evidence and unresolved states.
Enforcement
Guarded-action helper libraries where applicable, scoped adapters, provider-specific idempotency and confirmation.
Failure handling
Timeout is unknown; lookup or route to a person. No general exactly-once external-effect claim.
Acceptance test
Simulate lost response after provider success and ensure the workflow reconciles rather than blindly dispatching again.
References
Guarded actions · External actions
06 / CHANGE AND COUNTERFACTUALS

Evaluate alternatives without altering the actual record.

Pin a baseline, preserve the distinction between observed and hypothetical state, and review material changes.

PATTERN 10

Dependency-driven reassessment

A source, contract, policy or engineering requirement changes, affecting downstream decisions or artifacts.

Record changeTrace dependenciesMark for reviewRe-evaluateApprove
Authoritative record
Versioned source, explicit dependency links, prior outcomes and superseding review.
Enforcement
Recorded derivations, applicable revision guards and separate authorization.
Failure handling
Unknown dependencies require stewardship; do not claim complete impact coverage without validated mappings.
Acceptance test
Change a source and verify known dependents are identified, prior decisions remain accessible, and protected stale work is refused.
References
Engineering · Memory dependencies
PATTERN 11

Isolated what-if evaluation

Compare candidate rules or state changes against a pinned historical or current baseline.

Pin baselineApply isolated deltaEvaluateCompareReview
Authoritative record
Baseline coordinates, hypothetical inputs, model versions, outputs and limitations.
Enforcement
Supported graph overlays or transaction simulation, scoped access and approved domain models.
Failure handling
Hypothetical outcomes never become authoritative by implication; no causal proof or forecast guarantee.
Acceptance test
Run alternative scenarios and verify authoritative state remains unchanged, with outputs attributable to their baselines.
References
Replay and counterfactuals · Agentic twins
07 / COMPOSE AND VALIDATE

One system, several patterns.

A real enterprise application may combine multiple patterns: knowledge retrieval provides evidence to decisions, decisions create authorized intents, workflow coordinates execution, and assurance observes the outcome.

APPLICATION
Domain workflows

Reviewed business rules, data ownership and operating responsibilities

COMPOSITION
Selected reference patterns

Knowledge · Decision · Coordination · Reassessment · External effects

FOUNDATION
InvariantDB

Graph · Vector · Time · Transactions · Evidence · Scoped access

Make the failure paths part of the design.

Validate the actual configuration and workload before expanding into production.