Documentation
The architecture, operator, tools and testing, and reference documentation, listed by section.
Architecture
- Kindred Architecture OverviewThis document explains how Kindred's pieces fit together and why: the reasoning behind the Node Type Agreement, the boundaries around where AI is allowed to…
Operations
- Activity Log Query Ordering & Filtering: a monotonic tiebreak and SQL-level filtersThis guide covers how ActivityLog.query in engine/activity_log.py returns entries and narrows them:
- Activity Log Tamper-Evidence: hash-chained entries, syslog checkpointsThis feature detects an edit, deletion or reordering of activity_log history made by a database administrator who deliberately disables the append-only guard…
- AI-Narrative-Drafting Tasks: Use CasesThis guide covers the Tasks that draft a narrative, an explanation or a summary from the engine's data. For each built-in use case it says whether the use…
- Case triage and summarization: Deviation/Exception gate, manual flag, and auto-draftThis guide covers how CaseTriage in engine/case_triage.py decides which events are case-worthy before full AI summarization runs, and how it drafts the…
- Changelog actionsThis page lists, in full, what a site that already runs Kindred has to do after a sync. CHANGELOG.md marks an entry "Action needed" and names the part of a…
- Changing the inference modelThis guide shows how to point Kindred's AI Inference Stack (engine/token_budget.py, engine/inference.py) at a different LLM on the configured Ollama endpoint…
- Chunking registry and the document type catalogueHow a document's text is split into chunks, and how a site says which kinds of document it has and how each is split. A site defines its document types in the…
- Communication InterfaceThis guide covers how engine/communication_interface.py implements the Communication Interface: the node-to-node protocol half of the Node Type Agreement.
- Cross-node query and narrative wiringThis guide covers how engine/node_main.py and engine/erp_main.py wire three Tasks into a running node process:
- Data Transformation Layer: petl vs. rule-based, and the generic fallbackThis guide covers how TransformationRegistry, build_petl_transform and build_rule_based_transform in engine/transformation.py implement the Data…
- Database Log ScanningHow a MES Node reads from a table in a target system's own database: an audit table, a transaction log, a status table. Kindred connects to the database the…
- Database referenceAn operator's guide to Kindred's Postgres: what's in it, how a node finds it, how to look inside, how to back it up, and what the common errors mean. This is…
- Deviation Flagging: the rule/threshold Gate that produces "deviation" TriggersThis guide covers how DeviationFlagging in engine/deviation_flagging.py implements Deviation Flagging. It is a rule/threshold Gate pattern, not one hardcoded…
- Document file sources: documents from a directoryA file source gives a Node the plain-text and markdown files of one directory as documents of one document type. The Node reads the directory on a schedule…
- ERP / Inventory Node Type: the read/write split, and its own reporting channelThis guide covers how the ERP/Inventory Node Type builds on RestPollingConnector, the REST-polling System Connector. Which connector section each Node Type…
- ERP Runtime EntrypointThis guide covers how build_erp_runtime in engine/erp_main.py turns ERP's own config file into a running process, the way node_main.py does for MES. It wires…
- Identity Resolution & Reconciliation: resolve, and route duplicatesThis guide covers how IdentityResolver and ReconciliationTask in engine/identity_resolution.py implement identity handling for the four entity types: Order…
- Inference backend configuration: supported conventions, credentials, and trust boundariesThis is a reference for two things:
- Inference Operating Mode: which Task call sites gate on inference_enabled, and how each failsThis guide covers how the inference_enabled Configuration Schema flag (engine/inference_operating_mode.py) reaches, or deliberately doesn't reach, every Task…
- Installing a Node: from a bare host to a first config runningThe whole install path in the order the scripts run, for the first Node of a site and for each Node added after it. Every command in a block below that can…
- Instruction bindingsAn instruction claim is a requirement taken from one of a site's documents, such as "cure at 180 °C ± 5 °C", confirmed by a person (see Instruction claim…
- Instruction claim draftingA Node can read the documents it takes in and draft instruction claims from them: a quoted sentence together with the quantity it states (a target, a…
- Instruction conformanceA plant's documents say how its equipment should be run: "cure at 180 °C ± 5 °C". Instruction conformance compares what the equipment does with what a…
- Management APIThe management API is a small HTTP service that runs beside a Node on the same appliance.
- Management API tokens: the lifecycleThis is the life of one management API token, from the mint to the revoke, in the order things happen. It says who does what at each step and what the service…
- Mandatory-Human Sign-off Mechanism: one Pending record, any record typeengine/mandatory_human_signoff.py's SignoffStore implements Mandatory-Human Status: a status that a Gate's branch can set on a record so that the record waits…
- Merging paginated call resultsThis guide shows how to reconcile a split BudgetPlan's several CallOutcomes into one final answer, using the optional merge callback of…
- MES Node Type (OPC UA): sidecar, protocol, and mapping pathsThis guide covers how the MES Node Type is built on top of open62541, the OPC UA library that is this system's own System Connector.
- MES runtimeHow build_mes_runtime in engine/node_main.py wires the standalone, independently tested Task modules (FirstArticleInspectionTask, CaseTriage, ShiftHandoffTask…
- MQTT System ConnectorHow a MES or PLC / Generic Device Node reads from a site's own plant MQTT broker, the one the site runs and Kindred does not control. Kindred subscribes to…
- Network/security posture & Licensing: the zero-outbound guard and local-file-only license stateengine/network_posture.py and engine/license_server.py implement a zero-outbound posture: no outbound dependency at all in production, achieved through the…
- Node Runtime: Ingestion Producer & Trigger Dispatch ConsumerThis guide covers how engine/node_runtime.py implements the Node Runtime, the piece that makes a Node instance actually run continuously.
- Orchestration Engine: Task, the five Workflow patterns, Gate, and Try/CatchHow engine/workflow.py, engine/gate.py and engine/try_catch.py implement the mechanism that every Task type's Workflow is built from, not any one Task type…
- Order-Narrative Result Caching: fingerprint-keyed, not identity-keyedOrderNarrativeCache in engine/order_narrative_cache.py caches OrderNarrativeTask.narrate() from engine/order_narrative.py. A repeat call over an unchanged…
- Order-Trail Assembly: one order's story, pulled from every node that touched itHow engine/order_trail.py's assemble_order_trail implements this capability. A Node Type's Activity Log facet is the raw material for order-trail assembly…
- Playbook answer synthesis: wiring up point-of-use SOP lookupThis guide shows how to answer a natural-language question against a Node's own Playbook store, using PlaybookAnswerer from engine/playbook_answer.py. It is…
- Playbook drafting: auto-classify and auto-draft an ingested source documentPlaybookDrafter in engine/playbook_drafting.py builds a Playbook: a per-site, AI-generated knowledge framework. Ingested source documents (SOPs, work…
- PLC / Generic Device Node Type: the semantic-mapping profileThe simplest Node Type in this repo: a bare device with no application layer above it, watched over OPC UA or MQTT.
- PLC / Generic Device Runtime EntrypointHow a PLC / Generic Device Node instance runs as a process. engine/plc_generic_device_main.py turns this Node Type's config file into a running Node the way…
- Precedent retrieval: ranking past cases for a current situationPrecedent Retrieval means surfacing relevant past cases for a current situation. This guide covers how CasePrecedentRetriever in…
- Production Scheduling Runtime EntrypointHow a Production Scheduling Node instance runs as a process. engine/production_scheduling_main.py turns this Node Type's config file into a running Node the…
- Prompt provenance and stated counts: which wording wrote a draft, and whether its numbers are rightTwo guarantees on AI-drafted text, both built so a reviewer can rely on what they sign:
- Public API changesThe breaking changes in each release of the public API, and how to move past them. The rules for what counts as breaking, and how the version responds, are in…
- Public API stabilityWhat an integrator can rely on, what counts as a breaking change, how the version responds to one, and who decides.
- Retrieval & Ingestion Pipeline: how the pieces fit togetherA document becomes retrievable in five steps: an intake provider delivers it, the ingestion stage chunks and embeds it, the store keeps it, the quality gate…
- Retrieval quality gate: strong / broadened / incompleteRetrievalQualityGate in engine/retrieval_gate.py decides what to do with a query's retrieval, on top of EmbeddingStore.similarity_search…
- Retrieval/embedding infra: adding a Node Type's own pgvector storeHow a Node Type gets a working Postgres/pgvector-backed embedding store (engine/embedding.py, engine/embedding_config.py, engine/embedding_store.py) — the…
- Sharing configuration fragments across node instancesHow to stop hand-copying the same config values into every node appliance's config file, using load_node_config's "$shared" reference mechanism…
- Shift-handoff scheduled task + license gatingThis guide covers how build_mes_runtime in engine/node_main.py wires ShiftHandoffTask (engine/shift_handoff.py) against a real, running MES Node instance's…
- Site PKI: certificates for every Kindred network linkHow a Node gets, checks, renews and replaces the certificate it uses to prove it belongs to a site. Every command in a bash block below is run by…
- Starting pointsA configuration rarely begins from nothing. A starting point is a config skeleton for one kind of target system (an OPC UA server on a PLC, an ERP's REST…
- Supported platformsWhat a Kindred appliance runs on, what is supported, and how a new platform is added. The provisioning scripts in deployment/ hard-code the packages below…
- Task Execution logginglog_task_execution in engine/task_activity_log.py connects a Task's own run (engine/workflow.py) to the ActivityLogEntry that the Node Type Agreement's…
- The configuration assistantThe configuration assistant turns a request in plain words ("poll the ERP every 30 seconds instead of 5", "use the new version of this Node Type") into a…
- The configuration pageThe configuration page is the browser page an integrator uses on site to look at an appliance's configuration and change it without writing JSON by hand: it…
- The Node's MQTT brokerEvery Kindred appliance runs its own Mosquitto. The Node publishes its Activity Log events, a retained message saying who it is and a retained count of what…
- The order narrative route: a drafted summary of an order's trail, on requestAn MES Node can write a plain-language narrative of one order's trail or genealogy when a caller asks for it. The model call needs the Node's own inference…
- The review pageThe review page is the browser page a person uses to review sign-off records and identity matches without writing an API call. It is part of the Management…
- Time-ranged activity narrative: on-demand, arbitrary-window reportingengine/time_ranged_activity_narrative.py's TimeRangedActivityNarrativeTask narrates a Node's activity over any caller-supplied (start, end) window, on demand…
- Traceability: what went into an order, and everywhere a material was consumedThis guide covers how assemble_genealogy in engine/traceability.py implements Traceability: answering what material went into an order, and everywhere a…
- Trigger Dispatch Queue: enqueue, claim, resolveHow engine/trigger_queue.py's TriggerQueue and dispatch_claimed_entry implement the Trigger Dispatch Queue.
Tools and testing
- A certificate that fails: renewed, refused, lost and replacedA Node is only as trusted as its certificate. This page works through four things on a three-Node practice site: a Node's certificate renewed in place with no…
- A file-driven OPC UA test serverA small server that offers exactly the OPC UA nodes listed in a text file. It is for standing up a stand-in for a plant's OPC UA server while you build or…
- A Node stopped and started: the trail names who is missing, and completes by itselfThis page stops one Node of a three-Node practice site and starts it again, and reads what an order's trail says on the way. You see a trail that is still…
- A sample document set to try intake onexamples/sample-documents holds nineteen documents from an invented plant, with the configuration that cuts them and a manifest that says what each one shows…
- A stand-in for a target system's REST interfaceAn ERP Node and a Production Scheduling Node poll a target system's REST interface, and an ERP Node reports back to it. When that target system is not…
- A stand-in target database and the row playerA pair of small commands for standing up a stand-in for a target system's own database while you build or test a Database Log Scanning config (see…
- Answers the site will not invent: a question the documents do not answer, and a draft that waitsTwo things a Node is built not to do, tried on a three-Node practice site. It does not make up an answer when its documents hold nothing near the question…
- Checking a config before it is stagedBefore a config goes to a site, two questions are worth answering on the integrator's own workstation: is the file sound, and can its connectors reach their…
- Checking a configuration repository in CIA site's Node configs live in a Git repository of the integrator's own. This page is a pipeline job for that repository: every config is run through the…
- Cross-Node-Type Validation (fault injection): the Conformance Suite's fail-safe-behavior mechanismengine/conformance.py injects faults into a Node Type's connector and transformation slots and checks its fail-safe handling.
- Listing the nodes of an OPC UA serverWhen a plant's OPC UA server is reachable but its node ids are not written down, one command lists them. It connects the way the Node's own OPC UA connector…
- Making a stand-in for a target system's OPC UA server with one commandWhen a target system's OPC UA server cannot be reached while a config is written, a stand-in lets the config be checked now and run against the real thing…
- Node Type Conformance Suite: the generalized runner a contributed Node Type must passThis guide covers how engine/conformance_suite.py implements the Node Type Registry's contribution model. A contributed Node Type, built-in or third-party, is…
- One late order across a site: the trail, two asks and a drafted narrativeThis page follows one blocked order through a three-Node practice site. You read its trail across the Nodes, ask the ERP Node what the MES says about it and…
- Playing captured MQTT messagesA small command that publishes a file of captured MQTT messages to a broker, one after another, at the pace you choose. It is for standing up a stand-in for a…
- Previewing a mapping over a sampleOnce a config is valid (see Checking a config before it is staged), preview_candidate runs a captured file of source records through the config's mapping…
- Previewing an instruction bindingBefore a binding is switched on, preview shows what it would have found. It takes a sample of readings that you export from the site's own historian, replays…
- Previewing how a document type cuts a documentBefore a site ingests its documents, document_preview_cli shows how a document type's configuration would cut one of them: how many chunks, where each begins…
- Re-run it yourself: a practice site, from a clone to a first trailThis page says what it takes to make the practice site on your own host and read the first order trail from it: what the host needs, the six commands, how…
- Tampering with the Activity Log, and what the chain shows afterwardsA Node's Activity Log is the record of what it did, and the database refuses to change it: an update, a delete or a truncate is rejected. This page is the…
- The fixture kit: standing in for a plant before it is reachableA Node's connectors read from the plant, and the plant is often not reachable while a config is being written: it is on another network, it is in production…
- The MES as a database log: one order's life, played into a stand-inMany plants have no way to ask their MES for an order's status, but the MES keeps its own database and writes to it as the order moves. Kindred can read that…
- Trying a config against a stand-in target systemWrite a config for a target system's OPC UA server before it can be reached: list its nodes, serve them from a stand-in, check the config against the…
- Trying an integration shape against synthetic dataA mapping decides what an event is: one per reading, one per alarm, one per change of state. Two mappings of the same source can make very different numbers…
- Two Nodes that disagree, and a record that waits for a personThis page makes the MES and ERP of a three-Node practice site hold different records for the same order, and then makes ERP's record wait for a person. You…
- Writing a config in VS CodeA config, and its transformation rules in particular, is plain JSON, so an integrator can write it in an editor. The editor kit is a small directory you copy…
- Writing Kindred rules: instructions for a coding agentYou are helping a person write the transformation rules of a Kindred config. A rule turns one raw record from a target system into one Kindred event. You…
Reference
- Build a Node TypeThis walkthrough declares a new Node Type, writes its Configuration Schema, places it where the engine finds it, validates a config against it, runs the…
- Management API referenceKindred Management API, API version /v1. This page is the service's own OpenAPI document (GET /v1/openapi.json) laid out as text; the service has no…
- Python API referenceImport every name below from engine.public, not from the module that defines it. Each entry says which release it first appeared in, or that it is not yet…
- ReferencePython API reference: every name in engine.public, one entry each, with its parameters, return type, errors and a runnable example.
Release: v0.11.0