Working Paper 002 Design-Phase Case Study · v0.1

Kendriala: A Reference Implementation
for Organizational Context

A Design Case Study

A note on what this document is

This is a case study of a system being built, not a retrospective of one that succeeded. It contains no outcome claims, because there are no outcomes yet: only design decisions, each registered against the hypotheses of Working Paper 001, and an instrumentation plan that determines what we will be able to honestly claim later.

This framing is deliberate. Most enterprise software case studies are written backwards: outcomes first, then a narrative constructed to explain them. The result is unfalsifiable marketing. A design-phase case study inverts this: commitments are recorded before results exist, so that when results arrive, they can confirm or embarrass the design. Both are useful. Only one is possible if you write the case study afterward.

1. The Question Kendriala Exists to Answer

WP-001 argues that organizations don't primarily suffer from a lack of software: they suffer from a lack of context: the relationships, rationale, and history connecting their fragmented records. It further argues (H3, H4) that context can only accumulate sustainably as a byproduct of work, never as a separate documentation duty, and that this requires the work itself to happen in, or be instrumented into, a system designed to generate context from every action.

Kendriala is the apparatus for testing that claim. The compressed research question:

Can a founder-led organization, running its real operations on software designed for context generation, accumulate a queryable organizational memory that measurably outperforms the fragmented-tools baseline: without anyone doing documentation work?

Every design decision below is downstream of this question.

2. The Host Organism

A research vehicle needs a real organization to run inside: synthetic data cannot test capture incentives, and a demo environment cannot test whether context survives contact with actual client pressure. Kendriala's first host is the author's own software consulting practice (an Indian LLP serving domestic and international clients): small, founder-led, multi-client, and, critically: the researcher bears the full cost of his own design mistakes.

Self-hosting the experiment is a feature, not a limitation: it aligns incentives exactly as the capture taxonomy (WP-001 §4.1) requires, and it means the system's failures are experienced, not surveyed.

The obvious objection: n=1, and a conflicted n=1 at that, is accepted upfront. This phase establishes existence proofs and instrumentation, not generalizable effect sizes. Generalization is a later phase's problem (§8).

3. Why It Starts With Billing, of All Things

The build began not with knowledge graphs or AI, but with the least glamorous workflow available: invoicing. Create an invoice, a client pays it (via Razorpay domestically, Wise for foreign-currency clients: a constraint of building from India, where Stripe is unavailable), the system reflects the payment. That's the entire first slice.

This looks like a strange opening for a context-research platform. It is a deliberate application of three principles:

3.1: The wedge must carry its own weight (H4)

WP-001 §9.1 identifies adoption as the program's binding risk: byproduct capture requires work happening in-system, but nothing moves into an unproven system. The mitigation is a vertical slice whose value is independent of the context thesis: billing must be worth using even if every context hypothesis fails. Money movement is the one workflow no organization can defer the way it abandons wikis.

3.2: Financial events are context-dense and ground-truthed

An invoice.paid event is unfakeable, timestamped by an external party, and causally entangled with nearly everything upstream: the project that earned it, the milestone that triggered it, the commitment it fulfills, the client relationship it evidences. Payment behavior is also the single most objective input any client-context model will ever get. Starting the event log (Layer 2) with financially ground-truthed events means the context graph grows outward from its most reliable region.

3.3: Trust is earned in descending order of stakes

A system asking to become an organization's memory is asking for enormous trust. Handling the organization's money correctly: idempotent webhook processing, reconciliation jobs, exact integer arithmetic, immutable audit logs, is the highest-stakes trust test available, taken first, on purpose. An organizational memory built by people who got payments right reads differently from one built by people who started with the demo-friendly parts.

4. Architecture Decisions as Registered Hypotheses

Each major decision below is a commitment made now, mapped to the WP-001 hypothesis it operationalizes, with the observable that will later judge it. This table is the heart of the case study.

# Decision Operationalizes What will judge it
D1 Append-only event log under everything. Every state change emits an immutable domain event (invoice.paid, milestone.completed, decision.recorded) with a standard envelope: actor, org, timestamp, payload. Current state is always reconstructable as a fold over history. H1 (event log as ground truth); WP-001 §5.1 Whether Layer-3 reinterpretation ("apply 2027's ontology to 2025's events") is actually performed and works when the ontology changes
D2 Relational spine, graph semantics, no graph engine. PostgreSQL for everything: entities and typed edges as tables, assertion metadata (source, method, confidence) as columns, recursive CTEs for traversal, pgvector for embeddings. A dedicated graph database is explicitly deferred until measured query latency demands it. H5; WP-001 §5.2 Instrumented latency on rationale-chain (C2) and cross-entity synthesis (C4) queries as edge count grows; the decision reverses at measured, pre-stated thresholds: not at aesthetic discomfort
D3 Bitemporal assertions from the first migration. Every context assertion carries valid-time and transaction-time. Implemented as schema discipline in Postgres, not a specialty engine. WP-001 §5.3 (non-negotiable) Whether decision-time reconstruction (C3) queries are actually used, or bitemporality proves to be architecture the org never asks questions of: a real possibility worth measuring
D4 Tenant-scoped from row one. Every table carries an organization_id, though exactly one organization exists. Generalization path (§8) without rewrite Cost of onboarding host-organization #2, whenever that happens
D5 Decision and Question as first-class entities, with mandatory input-edges, participants, and supersession chains: arriving in the schema before any AI extraction exists to populate them automatically. H2 (minimal core ontology); WP-001 §3.2 Decision traceability ratio over time; whether manually-recorded decisions in the early phase are recorded at all: an honest early test of solicitation economics
D6 Capture-mode provenance on every assertion. From day one, every piece of context knows whether it was byproduct, instrumented, extracted, solicited, or authored. H3: this metadata is the experiment The capture-mode mix curve: H3 predicts byproduct+instrumented dominate; a drift toward authored capture is the pre-registered signature of KM-style failure
D7 AI writes are proposals, never facts. When extraction arrives, model-inferred assertions land at reduced confidence in a review lane; a human confirmation promotes them. No autonomous writes to Layer 3. WP-001 §3.3, §6.2 (trust boundary); Q6 Agent-proposal acceptance rate, tracked per edge type: simultaneously a quality metric and the empirical answer to Q6's precision-threshold question
D8 Instrumented capture as first-class, not fallback. Calendar, email metadata, and code events stream in as events alongside native ones: hedging the §9.1 adoption risk by allowing context density to grow over tools that were not replaced. H4 hedge; WP-001 §4.1 Boundary-loss measurement: what fraction of relationship context survives federated ingestion vs. native capture: a number WP-001 calls for and no literature provides
Decisions deliberately not made

Recorded with equal weight:

  • No knowledge-graph engine, no RDF, no ontology language (deferred per D2/H5): resisting the gravitational pull of graph-flavored novelty that WP-001 §5.2 identifies as a common self-inflicted wound.
  • No autonomous agents anywhere in the loop yet. The reasoning layer's roadmap is sequenced by query class (C1→C6), and C1–C3: state with provenance, rationale reconstruction, decision-time reconstruction, are pure retrieval engineering requiring zero agentic machinery. Agents enter only where a query class demands them, which on current analysis is C5 (proactive contradiction surfacing) at the earliest.

5. The Build Sequence as Research Sequence

The roadmap is usually presented as engineering pragmatism. It is equally a research design: each phase brings a specific hypothesis into testable range:

Phase 1 Current
Money moves.

Billing end-to-end. Research yield: the event log exists and is populated by ground-truthed events (D1 live); trust infrastructure (audit logs, reconciliation) proven at highest stakes. No context claims are testable yet, by design: a system must exist before its memory can.

Phase 2 Next
Work happens in-system.

Projects, milestones, tasks, client portal, support. Research yield: byproduct capture (D6) starts producing its mix curve; Decision entities (D5) meet reality; the first honest read on H4: does the delivery vertical actually hold daily work, or does it leak back to the fragmented baseline?

Phase 3 Planned
Context becomes queryable.

The C1–C3 retrieval layer over the accumulated graph: state-with-provenance, rationale chains, decision-time reconstruction. Research yield: retrieval fidelity against a curated organizational Q&A set; first data on whether bitemporal queries (D3) get asked.

Phase 4 Planned
Extraction and the trust experiment.

Meeting → decision extraction, commitment detection, directory-edge inference; all through D7's proposal lane. Research yield: Q6's per-edge-type acceptance thresholds, to our knowledge the first organizational-setting numbers for this.

Phase 5 Conditional
The intelligence claims.

C4–C6: cross-boundary synthesis, contradiction surfacing, counterfactual advisory. Only reachable if Phases 2–4 survive their falsifiers; explicitly conditional. A demo of C6-style advisory could be built in a week on a synthetic graph; it would prove nothing.

The sequencing encodes an epistemic commitment: capability claims are made only after their preconditions have been measured, not after they have been demoed.

6. What Could Kill It: Restated for This Implementation

WP-001 §9's program-level threats, localized to this build, in the order they will be encountered:

1
Phase-2 leakage (the §9.1 wedge risk, live). The practice already runs on entrenched tools. If daily delivery work does not migrate: if the event rate flatlines while real work continues elsewhere: H4 fails in the friendliest possible environment (a builder maximally motivated to use his own system), which would be close to dispositive for the strong version of the thesis. The D8 instrumented-capture hedge then becomes the whole game, and the research pivots to the federated-context question. This is the single most likely failure branch, and it is written down here so it cannot later be reframed as a pivot of choice.
2
Solicitation fatigue. D5's decision entities initially depend on a human recording decisions at natural moments. If even the researcher-founder won't do it, solicited capture's economics are worse than modeled, and Phase 4's extraction becomes load-bearing rather than augmentative: raising the required precision bar (Q6) before it has been measured.
3
The n=1 conflict. The builder studying his own organization's memory has every incentive to see signal. The defenses are structural: pre-registered falsifiers (this document), metrics computed from event data rather than self-report, and a commitment to publish the capture-mode mix and adoption proxies raw: the numbers least amenable to narrative rescue.
4
The model-scale bear case. If frontier context windows make brute-force whole-org ingestion practical, Layers 3–4 depreciate. Per WP-001 §9.4, the build therefore concentrates irreversible investment in Layers 1–2 (events, artifacts, provenance discipline): the components load-bearing in every future, and treats retrieval machinery as replaceable. D1/D3/D6 are the survive-everything core; D2's deferred-graph-engine stance is partly this same logic.

7. What This Case Study Will Look Like in One Year

A commitment device, in the form of the table of contents of the results paper this document obligates:

  1. Capture-mode mix curve, Phases 2–4 (the H3 verdict)
  2. Adoption proxies: event rate per workday, workflow coverage, leakage inventory (the H4 verdict)
  3. C1–C3 retrieval fidelity against the org Q&A eval set
  4. Per-edge-type extraction acceptance rates (the Q6 numbers)
  5. Decision traceability ratio and its trajectory
  6. Traversal latency vs. graph size (the H5 checkpoint)
  7. Everything that failed, and which falsifier caught it

If section 7 of that paper is empty, this document has failed at its job.

8. Beyond n=1

The tenant-scoped foundation (D4) exists so that, conditional on Phases 2–3 surviving, a second and third host organization can be onboarded without rewrite: converting the existence proof into a small-n study, and converting context-debt metrics from internal telemetry into cross-organizational comparables.

That is also the point at which Kendriala stops being only a research vehicle and faces the ordinary questions of a product. Those questions are real but out of scope here; the research reserves the right to outlive any particular commercial form of the implementation: which is precisely why the project and the product carry different names.

Appendix: Fact Sheet

Research program The Organizational Context Project (WP-001)
Reference implementation Kendriala
Host organization Founder-led software consulting LLP (India); domestic + international clients
Current phase Phase 1: billing vertical (Razorpay domestic / Wise cross-border), event log, audit infrastructure
Stack (current) PostgreSQL (relational spine + pgvector), TypeScript (NestJS / Next.js), event-sourced context substrate over CDC, S3-compatible artifact store
Hypotheses under test H1–H5, Q6–Q9 (registered in WP-001 §8)
Pre-registered failure signatures Authored-capture drift (H3); event-rate flatline with off-system work (H4); traversal latency thresholds (H5)
Next publication Phase-2 adoption and capture-mix findings, positive or negative