Skip to content
View jediwright's full-sized avatar
💭
Building at the boundary of local-first
💭
Building at the boundary of local-first

Block or report jediwright

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
jediwright/README.md

Jedi Wright

I'm an AI experience architect, content strategist and UX practitioner who builds. I'm designing a governed architecture for the boundary between personal data and institutional systems: the platform facilitates a handoff and then exits, instead of accumulating.

The core claim: the information gap between institutions and people is architectural before it is political. The architecture can now be built on the person's side. These repos are the build.

Status, December 2026. The prototypes run at the dependency versions each repo pins. Automerge, Keyhive and AT Protocol have all moved since, so read the Automerge and Keyhive code as dated evidence, not current reference code. Why, in more detail →


What's here

Running

  • localfirst.social: a social network where the user owns the graph and the relay exits after connecting. Web repo · native repo (Rust core on Automerge + Keyhive; Phase 1 runs on iOS and Android, Phase 2 waits on Keyhive)

Specified and implemented

  • seam-stack: the four-layer governance framework behind everything here. Its Blueprint maps the whole body of work.
  • employment-seam: Pattern Commons #7, where the worker owns the knowledge graph. The reference implementation, held at its pins.
  • local-first-series: specs and the Pattern Commons, a library of seam patterns.
  • selvage: a formal grammar that turns a seam spec into a schema a validator can enforce. Early.
  • tcf-runtime: the Tiered Content Framework, enforced at write time. Early.

Open for feedback

Tracked

  • The AI Governance Window: a quarterly read on whether binding democratic governance of AI is still possible. Q3 2026: Narrowing, by a thin margin. Repo

Released

  • live-auto-sampler 1.0.0: Max for Live devices that sample a hardware drum machine into Ableton Drum Racks. A separate build from the governance work.

Method


Start here

If you want… Start with
The idea, no background needed The Governed Crossing, in Plain Language, then THEORY.md (~650 words)
The full argument Full Personhood
To see the architecture run PC#7 spec, then employment-seam
To build on AT Protocol governedcrossing
The read on AI governance The AI Governance Window, then the Q3 2026 assessment
To sample hardware in Live live-auto-sampler and its user guide

In depth

Background: how I got here

I've been writing code since Flash and hand-rolled HTML/XHTML/CSS, moved into strategy and architecture as the discipline matured, and came back to active development through the local-first work in these repos. That story isn't incidental. The Seam Stack, the Tiered Content Framework and the Pattern Commons are what you get when someone who has designed and built across a wide range of projects keeps asking why the systems those decisions produced keep failing the people inside them, and wants an alternative.

The boundary I'm designing for is the place where local-first software hands off to the network: where a worker's record crosses into a platform, a patient's data reaches a health system, a person's social graph touches a relay, and a financial transaction clears through payment infrastructure. That boundary has never had a principled design.

The research program's root is systems-of-thought: the journal, cross-workstream documentation, and the full arc of the work.

Status, December 2026: what has moved upstream

Since the prototypes were built, Automerge's sync layer has been rebuilt (automerge-repo 3.0, in beta), Keyhive has replaced its authority graph, encryption and encoding, and AT Protocol has added permissioned data (Spaces, in public beta since 1 December 2026). I'm holding employment-seam at its pins, and the native app's next phase is pending Keyhive. The crossing-record drafts describe a crossing into public AT Protocol data; crossings into and out of Spaces are not covered yet. Background: Building on a Moving Substrate.

The repositories: what each one holds and where it stands

seam-stack: The foundational framework. A four-layer pattern (Substrate, Governance, Boundary, Evidence) for systems where the seam, the governed crossing point between a person's data and an institutional system, is the primary design surface, not the server. The Technical Architecture Blueprint is the full map: how the layers work, how records compose, where each idea lives in code across the repositories, the pattern's application notes and known limits, the working method, and a lexicon of architecture and method terms.

local-first-series: Specifications and Pattern Commons entries for governed boundary crossings across employment, commerce, healthcare and social domains. The Pattern Commons currently includes PC#00 (The Governed Crossing), PC#7 (Employment Seam), PC#8 (Substrate-Crossing Seam: how a local-first record crosses into a public protocol like AT Protocol / Bluesky), and PC#9 (Governed Content Production Crossing: the publish-side gate that makes the Tiered Content Framework's tier boundaries enforcement gates rather than editorial conventions; specified at v0.3, Counter-Pass tested and converged, not yet prototyped).

selvage: The formal grammar. A TypeScript parser and JSON Schema emitter for governed crossings: it reads a crossing declaration and produces the schema the crossing record must satisfy. Where the Pattern Commons specifies seams in prose, Selvage makes them machine-checkable. Early: rung-2 grammar only, one seam (the PC#8 Publish crossing) instantiated, not yet paneled. Second-seam work (PC#7 employ-side records) is staged.

tcf-runtime: The content governance layer, made executable. The Tiered Content Framework says every piece of content carries an epistemic status (confirmed, inferred, unverified, time-sensitive), declared at the smallest unit and inherited upward, so a composite is never more certain than its weakest member. This repository enforces that at write time: a content-addressed constraint store, SHACL shapes pinned by digest, and a gate that refuses or annotates a write before it is committed. It implements the framework; it is not its canonical text. Phase 0 is complete (write-time gate on fixtures, engine pinned, every refusal path reached by a real run), Python and a file-backed store first, Automerge reached through an adapter rather than assumed. Nothing here stops a real publish yet; the crossing gate that would is PC#9, which is specified to read this runtime's outputs. The runtime spec has since been revised to v0.2 after an independent adversarial review, which also caught one build defect the fixtures missed; the fix is in.

governedcrossing: The crossing record, written down for a public protocol. A governed crossing record is evidence that data crossed from a person's own system into shared infrastructure: what was authorized to cross, by whom, when, under what exposure claim, and where it landed. This repository holds the bindings that write that record down (the first is a set of AT Protocol lexicons) and the conformance rules a record must meet beyond its schema. The record's meaning stays defined by the seam:CrossingRecord vocabulary in seam-stack; each binding maps onto it rather than redefining it. The principles travel with it: the canonical record lives with the person, a public copy discloses no more than the crossing did, and a record describes what crossed without containing it. Draft: names sit under org.governedcrossing.temp.* and may change.

A live example is published: one public crossing, recorded as a signed intent and completion on 2 October 2026, with the scripts that produced and check it in tools/. The signatures follow the attestation specification as I read it. One independent verifier accepts both records when built from source at version 0.15.0-rc.5; the latest published release on 2 October 2026 (0.14.5) rejected them over how a bytes field enters the signed hash. The repository README has the details. The access-change draft was posted for comment on the Atmosphere forum; that window closed on 26 October 2026, and feedback is still welcome.

employment-seam: The reference implementation. Pattern Commons #7: the worker owns the knowledge graph; the platform facilitates the handoff and exits. Built on Automerge + Keyhive for cryptographic local-first document storage, with a live AT Protocol crossing demonstration (PC#8, Phase 3 complete). This is where the architecture runs, at the Automerge and Keyhive versions the repository pins; both have since been rebuilt upstream, and the prototype is held at those pins as dated evidence. Featured in This Month in Automerge (August 2026) as the first prototype combining Keyhive with AT Protocol.

governed-pr-framework: A lightweight PR review framework that scales rigor by blast radius rather than line count. The governance discipline developed for this work, extracted for general use.

local-first-social-network: A social network where the user owns the graph. The relay facilitates connection and exits. Built for people who want presence without performance: connection that doesn't require handing your social graph to a server that monetizes it. Running at localfirst.social. Originally an exploratory prototype, now being brought under the Seam Stack governance standard: the Phase 4 governance retrofit is in progress, with seam decisions recorded, known limits registered, and my governed PR framework applied. Find me at localfirst.social/#/connect/@jediwright.

local-first-social-native: The native device app for the same social network, on a parallel track to the web app rather than replacing it. SwiftUI and Jetpack Compose shells over a shared Rust core, with keys held on the device and data in SQLite. The core runs Keyhive's identity and group model directly: cold admin keys, a device key, grant and revoke behind the app's own policy, and recovery that restores the ability to keep administering groups, not just membership. Built so far on the device side only: the identity ceremony, grant and revoke, and recovery from the cold key all run on iOS and Android. Phase 2 (sync between devices, recovery onto a new physical device, and how a lost device's delegations are handled) is pending Keyhive, which has replaced its authority graph, encryption and encoding since Phase 1; the app stays on its Phase 1 pin for now. The AT Protocol crossing comes after. Published evidence notes, with v1 (2026-09-26) re-measured from the rows the app now stores, record what the app keeps under the Keyhive encoding it is pinned to and what a format change would cost, written for the Keyhive maintainers. Working name; renamed before public release.

The argument: why the person's side needs an architecture

The seam-stack architecture rests on a diagnosis about why personal data governance fails: institutions have always had sophisticated data architectures; individuals have not. Telling individuals to negotiate better terms or choose better platforms doesn't address the structural asymmetry. Building a governed architecture on the person's side does.

A person's employment history, health record or financial data doesn't need to live on a server someone else controls. Local-first software (document stores that sync via conflict-free data structures, with cryptographic access control) makes it technically feasible for the person to hold the authoritative copy. What's been missing is the governance layer: explicit rules for when data crosses out of that personal store, under what terms, with what evidence left behind.

The Seam Stack is that governance layer. The Pattern Commons is the reusable expression of it. The employment-seam prototype is the first demonstrated instance.

For the full theoretical argument, including the five structural requirements and their derivation: Full Personhood: The Governance Model AI Requires and Capitalism Never Built.

Essays, journal and notebook

Local-First at the Edge: Seven boundary principles for what happens where the interior theory of local-first ends, each derived from the gap the seven ideals leave at their limits: ungoverned copies, unreachable revocation, ungoverned agents, schema drift, admissibility-uncoupled longevity promises, ungoverned collectives, and ungoverned relays. The theoretical grounding for the Seam Stack, demonstrated across two substrates. Published 2026-08-20.

Full Personhood: The Governance Model AI Requires and Capitalism Never Built: The foundational argument, including the five structural requirements the Seam Stack is built to satisfy.

The AI Governance Window in Q3 2026: Narrowing by a Thin Margin: The third-quarter assessment: the verdict, the five domain readings, and the record behind them.

Journal: cross-workstream dispatches on the full research program.

  • 01: What the Work Adds Up To: the three tracks running at once (prototype, boundary theory and formal grammar), what each has established, and what second-seam work is for.

Notebook: build notes from the Seam Stack in progress.

  • 01: Building on a Moving Substrate: the Ink & Switch research arc, the Keyhive TypeScript-to-Rust transition, and why the crossing-record schema is specified at the pattern level.
  • 02: Governance, Designed to Compose: the Tiered Content Framework and the Automerge binary format, Hexane's format stability guarantee, and why the governance and storage layers are designed to compose.
  • 03: What Gets Tested Before Publishing: the adversarial sweep that narrowed the Seam Stack's schema governance claim, the prior systems that came closest, and what remains unswept.
  • 04: Testing Whether the Governance Holds: the three scenarios Phase 3 ran against the employment-seam prototype, what the delayed-release and content-integrity runs found, and what remains open.
  • 05: Running a Framework's Trust Rules for the First Time: Phase 0 of the TCF runtime's first build, the four places the runtime spec did not execute as written, the build defect a siloed critic caught that twenty fixtures missed, and what the framework's next revision has to rule on.
  • 06: Taking Stock of the Whole Build: a state of play across the whole portfolio, paired with the Blueprint: where each repository stands, the three questions that cut across all of them, and what comes next.

More writing at Systems of Thought.

The AI Governance Window: a separate track

The AI governance window is the period, roughly now to 2030, in which binding democratic governance of AI is still structurally possible. Two clocks run against it: how deeply AI is embedding in critical infrastructure, and how much capacity democratic institutions still have to impose and enforce rules. The window is the gap between them. I assess it each quarter across five domains (regulatory and legal, technical embedding, capability and deployment, democratic institutional capacity, and industry structure) and return one of five states: Opening, Holding, Narrowing, Critical or Closed.

Latest: Q3 2026 (July 1 to September 30): Narrowing, by a thin margin. The strongest opening record the tracker has logged. The heavier failures sit where the new rules don't reach.

One caveat on the repo: the app still runs the original April 2026 method. I rebuilt the method in June 2026, and the port of that rebuild to the app is specified but not yet built. Treat what the app produces as a demonstration; the quarterly assessments on the site are the current read.

Live Auto-Sampler: a separate track

live-auto-sampler: A set of Max for Live devices that samples a hardware drum machine or synth for you. It selects each kit on the machine over MIDI, plays every key, records each sound to its own file, normalizes the files, and writes an Ableton Drum Rack for each kit. A preflight checks the setup before a run, and a report afterwards says what was captured and what to capture again. It ships no audio and no Ableton presets: you record your own machine.

Version 1.0.0 is out, tested on macOS with Live 12.4.16 and a Roland MC-505 (all 26 preset rhythm sets, from its machine config). Manual mode captures other machines without a config. The known limits are listed as issues, and configs for more machines are welcome. MIT, with the machine configs under CC0.

Earlier prototypes

These explored the problem space and directly informed the architecture above. They're functional demonstrations, not governed to the same standard as the current work.

checkout-seam / local-first-ecommerce: A local-first e-commerce prototype. Y.js + IndexedDB for all state; the server is required only for payment processing. Demonstrates deliberate boundary design: the network is the seam, not the default.

fhir-seam: Local-first patient intake with a FHIR mock endpoint as the seam. The healthcare boundary-crossing case.

Other frameworks: the Tiered Content Framework and the Resonance Architecture

The Tiered Content Framework (TCF)

The Governance layer in the Seam Stack is the Tiered Content Framework: a seven-tier model for structuring and classifying content so that both humans and machines can reason about what a piece of content is, how trustworthy it is, and how it relates to other content.

The tiers run from Quarks (the governance conditions under which content is valid: constraints, schemas, terminology rules) through Particles, Clusters, Zones, Structures and Ecosystems, up to Biomes (the complete digital content presence of an organization across every channel it maintains). Three cross-cutting dimensions govern every tier: the Intelligence Layer (how content behaves when dynamically generated or assembled by AI), Taxonomy (the classification system that makes the tier structure machine-actionable), and Machine-Legibility (how content declares itself to external systems such as search engines, knowledge graphs and LLMs). The framework is designed to compose with formal knowledge representation standards. Where it sits in the Seam Stack is mapped in the Blueprint, and tcf-runtime makes it executable.

The Resonance Architecture

The Resonance Architecture is a cross-domain synthesis that argues for structural isomorphism between mind, matter and consciousness across the same seven organizational tiers first mapped in the TCF, and extends this into a much larger theoretical claim. It is the most speculative of my projects and the one that, if it holds, would reframe the others.

Current status: rigorous as a working spec, not yet ready for formal research or peer review. The framework has begun doing argumentative work in adjacent projects under a more constrained sense of "resonance": the recognition of a participant across contexts and over time, requiring a foundation on which prior recognition can compound. That operationalization has been adopted into the governed session methodology running across all active development work here, where participant recognition across sessions is a structural requirement, not a convenience. That adoption is itself an early form of testing. The full cross-domain claim still requires one independent collaborator and at least one operationalized prediction before it reaches funding-grade.

The same organizational logic I found in content strategy and systems thinking may run all the way through matter, mind and everything in between. Same structure, seven tiers. That's a testable claim, and we're the first generation with the computational and cognitive tools to find out whether it holds.

Three versions are in development: a public research essay, a researcher circulation spec, and a frontier companion document for the more speculative material, each for a different audience.


Stack: TypeScript · Rust · Python · SwiftUI · Jetpack Compose · Automerge · Keyhive · AT Protocol · SHACL · SQLite · Vitest · Max for Live

Licensing: MIT, except the native app (Apache-2.0) and the Live Auto-Sampler machine configs (CC0). Active research; work in progress.

Systems of Thought is the writing and research practice behind this work: systemsofthought.com | UX Minds, LLC

Pinned Loading

  1. seam-stack seam-stack Public

    A four-layer architectural pattern for local-first systems where the seam, not the server, is the primary design surface.

    1

  2. employment-seam employment-seam Public

    Pattern Commons #7 — employment boundary seam. Worker owns the knowledge graph; platform facilitates the handoff and exits. v0.5 spec + reference prototype.

    TypeScript 2

  3. local-first-series local-first-series Public

    Specifications and Pattern Commons entries for a local-first prototype series exploring governed boundary crossings across commerce, healthcare, social, and employment domains.

    2

  4. governed-pr-framework governed-pr-framework Public

    A lightweight PR framework that scales review rigor by blast radius, not line count. Parent document. Deploy derivatives into your own repos.

    1

  5. local-first-social-network local-first-social-network Public

    A local-first social network architecture. The user owns the graph. The relay facilitates connection and then exits.

    TypeScript 3

  6. local-first-social-native local-first-social-native Public

    Native iOS/Android client for a local-first social network: Rust core on Automerge + Keyhive, UniFFI, SwiftUI/Compose, atproto identity.

    Rust 1