Skip to content

System breakdown ​

Follow a single imported passage across the system. At each step, one component must be able to say what changed and who had authority to change it.

Two plywood modules pull apart to reveal their blue connecting dowels.

LinkedIn opens a draft you can review before posting.

The easiest way to understand the proposed architecture is to follow one passage. An importer identifies its source, a worker suggests a claim, a reviewer qualifies the change, and a reader can later retrieve it. The boundaries below identify which component may make each change durable.

Proposed application architecture. The documentation site and synthetic contract labs exist; the runtime below does not yet exist in this repository. The reuse map identifies the implementation starting points.

Seven modules, a small number of process roles ​

ModuleOwnsStarting point
Research interfaceChat, evidence, library, jobs and reviewSvelteKit/TypeScript; workshop protocol behavior
APIAuthenticated commands, sessions, HTTP/SSE deliveryRust/Axum/Tokio; current Ordo adapter boundaries
RetrievalLexical/vector candidates, authorized graph expansion and citation packetsRust adapters; explicit evaluation before semantic claims
Knowledge librarySources, identities, claims, review and revisionsRust/SQLite; historical graph lifecycle, redesigned invariants
IngestionParsing, extraction and identity proposalsBounded capability workers; reviewed executor steps
Workflow enginePlans, tasks, leases, idempotency and replayHistorical Rust kernel/event log with identified repairs
Capability workersModels, speech, OCR, media and native accelerationRust/Swift processes with versioned contracts

Hosted process boundary ​

text
Browser: Chat / Evidence / Library / Jobs / Review
                         |
          Stateless Rust API + built web assets
                         |
       Private Rust store / command + event boundary
               |                         |
       Durable operational DB    Published library + objects
               |
       Leased bounded workers → validated results

The private store owns transactions; it does not expose arbitrary SQL. The API and workers access it through authenticated, scoped commands. Their local caches and temporary buffers are not the only copy of accepted state. This is a small same-codebase deployment, not a mandate for seven microservices.

The store is a stateful backing resource. It is not horizontally replicated by starting more SQLite writers on shared network storage. Scale bounded compute workers first; measure contention and memory before redesigning storage. Twelve-factor decisions document the hosted boundary and local exception.

One authority per kind of state ​

Only the Rust store can commit canonical changes. A worker returns a result envelope and artifacts; permission-bearing identity, library scope and review decisions come from the server, not model text or browser context. The UI renders authorized projections.

Within a writable library, publication records and publication events share one transaction. Within operational state, run admission and its events share one transaction. No atomic transaction is assumed across independent databases: a run references an already published immutable library revision, which is retained while citations depend on it.

Task execution is at least once. Result acceptance is idempotent and lease-fenced. External providers and side effects are not automatically exactly once. Retry policy distinguishes safe deterministic work from paid generation that has already produced output.

Two deployment profiles ​

Local authoring: a Mac or Linux workstation owns source imports, drafts and review. It may embed the store in one process for convenience. This is an explicit stateful appliance profile, not strict stateless hosting. The same domain and schema contracts apply.

Hosted demonstration: a private store serves an approved research snapshot and separate operational conversation/job records. It does not independently author the canonical research graph in v1. Public chat cannot ingest arbitrary files, install workers or approve drafts.

Publish revisions through verified export/import. Retain evidence needed by older conversations. Mac processing capability is optional: the hosted library must still open when the Mac is offline. Inference/query capabilities that are unavailable are reported honestly rather than silently replaced.

First vertical slice ​

Use the proposed first slice to answer a narrow question: after a restart, can a second reader recover the same accepted result and identify its input? This check gives the team a starting point before it adds richer extraction, retrieval or interface behavior.

Follow line A2 of the fictional harbor log through the proposed slice.

  1. A worker reads the immutable passage and returns a proposed motion claim with its location. The store verifies the result and records it as a draft.
  2. A reviewer checks A2 and approves the exact proposal. The store commits the accepted claim, the review decision, the publication event and the new library revision together.
  3. Retrieval selects A2 from that published revision for an authorized reader. The answer cites the same passage. The API delivers the recorded answer and citation in the reader's run.

See knowledge, workers, streaming, acceptance and the dependency-ordered roadmap.

IS373 · Documentation and contract labs available · Research runtime planned