The Observation Corpus
Author: Raeez Lorgat
Every institution produces evidence through its work. Company formation and cross-border payment each record a fact about the world. Other events record a compliance rule firing, a board resolution passing, a license being granted, or a dispute being filed. These ordinary events accumulate into institutional memory, which contains information beyond any single event.
This paper argues that the observation corpus, the structured accumulation of institutional evidence, is the right foundation for institutional intelligence. Like common-law precedent, it grows case by case, with each observation slightly refining what the institution knows about its operations. This learning does not use shared statistical training on pooled regulatory data. Memory crosses a border only as a policy-governed aggregate, never as raw evidence.
1. Institutions Already Learn
A court builds precedent case by case, providing a longstanding example of institutional learning. Each ruling records an observation: these facts, this law, this outcome. Over centuries, the rulings accumulate into knowledge that no single judge possesses. A new judge inherits and extends that precedent.
Common law works because it has two properties that most “institutional intelligence” proposals lack: structured observations and incremental learning. A ruling has a jurisdiction, a cause of action, a set of facts, a holding, and a disposition. This common structure makes relevant precedent retrievable. No one “trains” the common law. Each case adds to the corpus: the vast majority confirm what was already known, and the rest introduce a small refinement. The corpus compounds slowly.
The observation corpus applies this process computationally to the operations of jurisdictional compliance infrastructure.
2. What an Observation Is
Every state-changing operation passes through a single write-path control point. The system emits a structured observation record into a transactional outbox within the database transaction that commits the mutation (Richardson 2018). This guarantees consistency: observation and mutation commit or roll back together. No observation describes a mutation that did not commit.
Completeness requires an observation for every committed mutation. It holds for every mutation that passes the control point. Two mechanisms make that control point the application’s only write path. Mutating components hold a typed handle to it and have no other route to the store. An automated check rejects any request handler that mutates state without passing through it.
Writes that bypass the application entirely, including migrations, backfills, and administrative SQL, lie outside this guarantee. Under this explicit assumption, a reconciliation process compares the stores and repairs divergence.
An observation is a tuple containing the entity involved, jurisdiction, time of occurrence, operation family, payload class, canonical payload, event type, and resource identifier. It also contains the originating request identifier for traceability. These fields record who did what, where, and when. The fifth dimension, under which rules, is derived rather than recorded. The jurisdiction and timestamp resolve against the versioned history of rule packs to recover the rules in force.
The corpus unites two classes of observations, each complete with respect to its write paths. Compliance-rich observations come from operations that run the full compliance evaluation pipeline: preflight checks, sanctions enforcement, evidence collection, post-flight re-evaluation, and credential issuance. They carry per-domain pass/fail outcomes, evaluation duration, and evidence classifications. Compliance-minimal observations come from internal service operations and carry only event type, resource binding, and metadata.
The raw observation type defines no serialization for network transmission. No typed code path can transmit a raw observation over the network. Only the consumer reconstructs a typed observation, reasserting its invariants at the construction site. This control applies to code. The outbox row carries the raw observation in persisted form from transaction to consumer, outside the type’s reach. Database access control and retention protect that row, which the compiler cannot protect. Section 8 examines the corresponding distinction between constraints on code and constraints on information.
3. The Eight Dynamics
Over time, the observation corpus reveals eight distinct institutional processes:
Compliance dynamics. Per-domain pass/fail outcomes, evaluation duration, evidence types, and intervention flags provide the richest signal. They show which rules work, which fail, and where friction occurs.
Operational dynamics. Step-level execution records which steps succeed or fail, how long they take, and whether they trigger compensation (rollback). These records show how the institution’s multi-step processes behave in practice.
Governance dynamics. Board resolutions, shareholder votes, officer approvals, and exercises of delegated authority carry participation counts, eligible counts, and governance outcomes. These records describe institutional decision-making as it occurs, rather than the procedure the bylaws prescribe.
Institutional lifecycle. Formation, amendment, dissolution, migration, reinstatement, suspension, and renewal records include entity types, compliance domain coverage, and completion times. Together they describe the demographics of the institutional population.
Corridor dynamics. Corridors carry activity between zones, the jurisdictions running this institutional stack. Observations show which jurisdictions trade, which compliance domains transfer cleanly, and which require re-evaluation at the border. This trade intelligence extends beyond the information any single zone possesses.
Innovation dynamics. Observations record the deployment and adoption of new institutional forms, regulatory approaches, or operational patterns across zones. The corpus lets other zones learn when one zone finds an approach that works.
Transaction dynamics. Fiscal operations record coarsened amount buckets, balance effects, and outcomes. Bucketing amounts into orders of magnitude preserves the pattern signal while reducing the precision at which a single transaction can be matched. Coarsening alone provides no privacy guarantee. Privacy depends on the release policy in Section 8.
Identity dynamics. KYC verification attempts and outcomes show which identity verification approaches work and which produce friction.
These eight processes use the same observation stream. Observations record domain outcomes as string-keyed maps, separate from the evaluation layer’s native representation, the compliance tensor of Section 5. This decouples the intelligence layer from the evaluation layer. The records contain observed facts without interpretations.
4. Two Parallel Stores
The observation surface feeds two parallel stores, each serving a different purpose.
The event store is the permanent record. Every committed write produces a content-addressed event. Its identifier is the SHA-256 digest of the canonical serialization of its event type, payload, and prior event identifier. The prior-event field links each event to its predecessor, forming the hash-linked audit trail (Haber and Stornetta 1991). Walking the chain detects reordering, insertion, or deletion by any party without write authority over the stored suffix. A party with that authority can rewrite a suffix and recompute its identifiers, or truncate the tail, leaving a chain that verifies.
Signatures restrict who can rewrite or forge a suffix. The zone signs each event identifier with its signing key and records the signer with the event. Rewriting or forging then requires both the zone’s key and write authority over the store. This excludes parties holding only one, including a storage administrator or a compromised database. Truncation needs no key, and only an anchor detects it.
The zone holds both the key and write authority, so protection against the zone requires external anchoring. Where configured, timestamp authorities outside the zone periodically anchor chain heads. Any rewrite or truncation that reaches an anchored head breaks the match, leaving exposure within the window between anchors. Where no external authority is configured or answers, the anchor is zone-signed and binds nothing against the zone.
Retention requires a storage rule as well: hashing alone does not ensure permanence. The storage layer admits appends only, and aged events move to archives under digested receipts. The store retains history without rewriting it.
The observation outbox is a reliable, transient, prunable relay. A consumer drains unconsumed records and marks them consumed. A retention sweep then prunes consumed records after a configured period. It never prunes unconsumed records, regardless of age.
The event store answers “what happened.” The observation outbox answers “what should the intelligence layer learn from.” The mutation’s atomic transaction populates both stores, so the guarantees of Section 2 cover both. A rollback removes both the event and the observation, and every mutation that passes the control point has both records.
5. The Compliance Tensor as Observation Source
The compliance tensor is a jurisdiction-parameterized function from a finite set of compliance domains to per-domain verdict factors. It both consumes and produces observations.
Every tensor evaluation produces compliance dynamics observations for precedent construction. The intelligence layer receives the domains that passed or failed, the evaluation duration, and the evidence presented.
In return, the intelligence layer can propose changes to rule packs, the versioned bundles of encoded regulation that tensor evaluators consume. A pack update proposal changes the evaluation’s inputs without modifying its logic. The tensor remains a deterministic function from rules, attestations, and jurisdiction configuration to verdicts.
The tensor’s algebraic structure makes this feedback loop precise. On the Applicable fragment of the N-fold product, composition is a commutative idempotent monoid. Each per-domain factor and the fragment product are finite distributive lattices, so their residual operations (Heyting implication) are well defined. The companion paper How Compliance Composes establishes this structure.
The residual computes the gap between the current tensor state from the event store and a target state from the pack rules. It identifies exactly which domains require improvement at that point in time. Repeating the measurement shows whether a pack change closed the gap. The observation corpus supplies that longitudinal record.
6. Why This Is Not Statistical Training
The observation corpus uses no shared statistical model trained on pooled regulatory data, no neural network, and no gradient descent. It has no training set in the statistical-learning sense and adjusts no weights to minimize a loss function over a training distribution.
Its use resembles that of a compliance officer who has seen thousands of cases over twenty years. She knows that Delaware incorporations with a specific capitalization structure tend to trigger securities review in certain jurisdictions. She also knows that cross-border payments through specific corridors tend to stall at the sanctions check. Her judgment draws on structured memory of experience.
The observation corpus makes this memory computational through retrieval (“show me all cases where this compliance domain failed for this operation type in this jurisdiction”), precedent construction (“this pattern has been stable across 500 observations in 10 zones; it is a reliable prior”), and anomaly detection (“this domain’s pass rate just dropped from 95% to 40%; something changed”).
This distinction has consequences for security, data provenance, and the basis of statistical claims. In federated statistical training, model inversion or membership inference attacks can extract information about training data from the model. The corpus contains only structured observations and typed summaries, with no model for these attacks to target. Aggregate releases still admit reconstruction (Dinur and Nissim 2003). The release policy below therefore uses population floors, cohort suppression, contribution caps, and calibrated noise.
Statistical systems trained on regulatory filings, court decisions, or enforcement actions face serious questions about the provenance and licensing of their training data. The corpus uses only observations of the system’s own operations, so it needs no outside data or regulatory training set.
The basis of a claim is inspectable. When the system says “this compliance domain fails 30% of the time for this operation type,” the claim rests on a specific observation count. The count comes from a specific set of zones over a specific time window. These observations make its epistemic status transparent without reference to model weights.
7. The Institutional Memory Analogy
The transaction-cost account of institutions runs from Coase (1937) through North (1990). Institutions reduce transaction costs, and institutional change slowly accumulates these reductions. Szabo (1997) extended the account toward computation by treating institutions as technologies. Common law, property registries, and corporate charters enable certain kinds of cooperation by making certain kinds of defection expensive.
Institutional memory explains how such technologies improve. A property registry with ten million transactions contains information about which transfers are common, which are disputed, and which require special handling. A brand-new registry lacks this accumulated information, which no single transaction record makes explicit.
Case law provides the same structure: each case records jurisdiction, parties, facts, issues, holding, and disposition. The legal system retrieves relevant precedent, identifies stable doctrinal patterns, and detects anomalies when new cases conflict with established precedent. These are the retrieval, pattern recognition, and anomaly detection operations of an observation corpus.
The operational-compliance counterpart accumulates institutional evidence, structures it for retrieval, and makes patterns visible.
8. Sovereignty and Sharing
The architecture requires each zone to retain its own raw observations, which never leave the zone that produced them. This institutional memory is sovereign in the same sense as national census returns: the statistical office keeps individual returns and publishes aggregates.
Zones can share aggregated, anonymized digests with corridor partners. These cover per-jurisdiction operation profiles, compliance-domain outcome summaries, and detected innovations, with cryptographic signatures protecting each digest’s integrity.
The release policy provides five privacy controls. Nothing is shared by default, and a zone must affirmatively opt in. A zone below a minimum population shares nothing because aggregates over small populations leak too much. Within a release, the policy suppresses cohorts smaller than a threshold and pads sparse cohorts with dummy records so suppression itself carries no signal. Each entity contributes at most once to any cohort in a release window, preventing a single entity from dominating an aggregate.
The fifth control adds Laplace noise to released rates at a configured privacy parameter (Dwork, McSherry, Nissim, and Smith 2006). The release mechanism coarsens the exact rate into a bucket, adds noise to the bucket midpoint, and re-buckets the noised value for release. It releases counts and durations as buckets without noise.
The anonymized summary type is one-way within the type system: the summarizing map takes raw observations to typed summaries and has no inverse. No term reconstructs the observations from the summaries. This property constrains code without guaranteeing that information cannot be reconstructed. An adversary can infer information from released aggregates without applying an inverse function. Privacy therefore depends on the five release controls, while the type records the direction of the mapping.
Two obligations remain open. First, the privacy parameter is spent per release and not accounted across releases. An entity present in many windows is exposed once per window against no cumulative ceiling. The construction records cumulative expenditure as digests cross corridors but does not yet refuse a release for exceeding a budget. A partner who accumulates windows faces limits from release cadence and cohort discipline, with no enforced budget.
Second, the per-release parameter is nominal rather than proved. Noise is calibrated to the sensitivity of the exact rate, which shrinks as cohorts grow. It is applied to the bucketed value, whose sensitivity is a full bucket width. The configured parameter therefore understates the leakage of the released statistic, increasingly so as cohorts grow. The construction does not claim differential privacy as a theorem. Calling the summarizing map irreversible would conceal both obligations.
Confidentiality limits the common-law analogy. Common-law jurisdictions learn from foreign case law while retaining sovereign authority over their own precedent and separate court systems. Justice requires publication, so foreign opinions travel verbatim. Commerce requires confidentiality for operational evidence. The corpus therefore retains structured observations, incremental accumulation, and sovereign memory, with policy-governed release of aggregates replacing publication. Common law supplies the learning model, while the evidence’s confidentiality determines the release model.
9. What Makes the Corpus Valuable
Accumulated observations provide information beyond any individual observation.
A single compliance evaluation answers a limited question: whether a specific entity passed a specific domain check at a specific time. A thousand evaluations of the same operation type in the same jurisdiction show its baseline pass rate, common failure modes, and typical evaluation duration. Ten thousand evaluations show whether the baseline is stable or shifting. Cross-zone aggregation shows whether a pattern is local to one jurisdiction or global to the operation type.
The corpus adds a time dimension to tensor evaluation that static rules cannot supply. On the Applicable fragment of the tensor state space, the lattice residual computes the gap between current compliance state and target state. Only the longitudinal record shows whether that gap is closing, stable, or widening. Repeated evaluations thus describe a trajectory.
Operations produce observations whose patterns generate pack update proposals. Approved proposals change compliance rules, which affect future operations and the observations they produce. Each iteration refines the rules through empirical evidence rather than static analysis. This institutional learning is slow, incremental, limited, and cumulative.
10. Conclusion
Every institutional action produces structured evidence that accumulates into a corpus for retrieval, pattern recognition, and anomaly detection. Shared aggregates extend learning across zones without pooling raw evidence.
Systematic storage and retrieval give institutions information they would lack if they discarded their operational evidence. Common law has relied on this principle for centuries. Applying it to computational compliance infrastructure requires careful observation, structured storage, disciplined retrieval, and exactness about what is shared.
References
Coase, R. H. (1937). “The Nature of the Firm.” Economica, 4(16), 386-405.
Dinur, I. and Nissim, K. (2003). “Revealing Information While Preserving Privacy.” In Proceedings of the ACM Symposium on Principles of Database Systems (PODS), 202-210.
Dwork, C., McSherry, F., Nissim, K., and Smith, A. (2006). “Calibrating Noise to Sensitivity in Private Data Analysis.” In Theory of Cryptography (TCC), Lecture Notes in Computer Science 3876, 265-284.
Haber, S. and Stornetta, W. S. (1991). “How to Time-Stamp a Digital Document.” Journal of Cryptology, 3(2), 99-111.
Lorgat, R. How Compliance Composes. Companion paper in this series.
North, D. C. (1990). Institutions, Institutional Change and Economic Performance. Cambridge University Press.
Richardson, C. (2018). Microservices Patterns. Manning Publications.
Szabo, N. (1997). “Formalizing and Securing Relationships on Public Networks.” First Monday, 2(9).