This is the engineering reference for Loktak: the eight-stage pipeline and its failure behavior, the canonical finance schema, the append-only lineage engine and its query API, and how business rules are encoded, versioned, and improved through the knowledge layer.
Loktak and InSightOS are two products with one strict boundary. Each layer has a single, clearly bounded responsibility, and neither crosses into the other's domain.
Hard halt on failure. Validation errors, sub-threshold integrity scores, and unresolved entities stop the pipeline before any rule logic runs. Nothing partial is passed forward.
Soft hold, not a hard halt. Scores below threshold route to a human review queue rather than blocking the run outright — the pipeline can proceed once reviewed.
Hard constraint violations (e.g. allocations not summing to pool) halt the run. Soft warnings (e.g. driver coverage below 99%) are logged and surfaced, not blocking.
No conditional failure — these stages either complete and write a full record, or the run is not considered complete and InSightOS never receives the handoff.
Loktak v3.4 defines 11 core finance object types with typed fields, relationships, and versioning semantics. InSightOS agents reason exclusively on these objects, which is what makes outputs traceable and grounding scores calculable.
| Object type | Core fields | Description | Linked to |
|---|---|---|---|
| finance.account | account_id, code, name, type, classification, parent_id | Chart of accounts node. Maps to canonical account taxonomy. | finance.entry, finance.period |
| finance.entry | entry_id, account_id, amount, currency, fx_rate, period_id, source_ref, run_id | Single-row financial fact. Atomic unit of all reporting. | finance.account, finance.period, finance.entity |
| finance.period | period_id, fiscal_year, fiscal_quarter, fiscal_month, calendar_start, calendar_end | Fiscal period definition. Handles 4-4-5, 4-5-4, monthly. | All time-series objects |
| finance.entity | entity_id, name, type, parent_id, currency, jurisdiction | Legal entity or cost centre in the organisational hierarchy. | finance.entry, finance.elimination |
| finance.elimination | elimination_id, debit_entity, credit_entity, amount, period_id, rule_version | Intercompany elimination entry. Links to rule that produced it. | finance.entity, knowledge.rule |
| finance.forecast | forecast_id, account_id, period_id, amount, assumption_set_id, version, created_at | Forward-looking value with version and assumption linkage. | finance.assumption, finance.account |
| finance.assumption | assumption_id, forecast_id, driver, value, rationale, created_at, created_by | Named assumption driving a forecast value. Human-authored. | finance.forecast |
| finance.variance | variance_id, account_id, period_id, actual, forecast, delta, pct_delta, drivers[] | Computed variance with driver attribution array. | finance.entry, finance.forecast |
| finance.pipeline_metric | metric_id, account_id, period_id, arr, nrr, churn, source_ref, snapshot_at | CRM-sourced pipeline and ARR metrics. Updated on CRM sync. | finance.entry, crm.opportunity |
| knowledge.rule | rule_id, name, type, definition, version, effective_from, created_by | Encoded business rule. Versioned, immutable once published. | finance.elimination, finance.entry |
| lineage.record | record_id, output_ref, source_ref, transformation_chain[], run_id, value_hash | Provenance record. Append-only. Links output to source. | All finance objects |
The lineage engine maintains an append-only, tamper-evident ledger of every data transformation, so any output can be traced back to its origin in a single query.
Your organisation's specific finance intelligence lives not in a spreadsheet, not in someone's head, and not in undocumented model logic. It is encoded in Loktak, applied to every pipeline run, and versioned permanently.
Every override, every approval, and every manual rule edit feeds back into the system, making Loktak progressively more aligned with how your finance team actually thinks.
Pre-built connectors handle authentication, pagination, incremental sync, and schema mapping for every major ERP, CRM, and data warehouse. Custom sources connect via the Loktak REST API and are mapped to the canonical finance schema automatically.