How it works
One description of the work. Everything else follows from it.
Neighbourhoods starts from a description of the work that everyone involved can read. The software, the shared record and the limits on who can do what all follow from it.
- Working today
- In progress
- Designed
Why the architecture is different
The description is the program.
Usually, the way a group works and the software it uses are defined separately. Neighbourhoods brings them together: a readable grammar becomes the software that coordinates the work.
From grammar to execution
-
Describe
Grammar
Describes the group’s information, relationships, rules and views.
Working today -
Run
Engine
Checks every action against those rules before it takes effect.
Working today -
Share
Shared state
Keeps everyone’s copy in step, even when people edit at the same time.
Working today -
Remember
History
Keeps a signed record of every change, so the group can see what happened.
Working today
Grammars
Working todayA structured description of a shared piece of work: the things it holds, how they relate, the states they move through, the rules on each step, and how each appears to the people involved.
Why it matters: one source produces both the browser and the server software, so the two cannot drift apart, and the rules stay readable.
For builders
Neighbourhoods Grammars declare entities, components, references, state machines with guards, permission gates and presentation views. They compile to TypeScript and Rust that produce identical bytes on the wire, pinned by cross-language fixtures. Generated views are browser-only.
Engine
Working todayThe runtime that turns each grammar into a running process. Each behaviour is an explicit state machine, and every action is checked before it changes anything; a refused action is reported, never silently dropped.
Why it matters: every step is visible and checkable, rather than hidden in application code.
For builders
The engine is a streaming x-machine runtime in TypeScript and Rust. Transitions return structured results, so a refused action is reported rather than dropped.
History and persistence
Working todayEvery change is recorded in an append-only, signed log, encoded the same way on every platform, with snapshots for fast catch-up.
Why it matters: a group can see who did what and when, and any member can check that the record has not been altered.
For builders
Deterministic CBOR (dCBOR) encoding and per-peer Merkle logs following RFC 6962. Log compaction is designed.
The loop: people act through the views the grammar defines; the engine checks each action, shares the result and records it. We are designing for AI agents to act through the same loop, under the same checks.
A worked example
Readable by people. Runnable by software.
This community blog grammar describes its content, relationships, publishing rules and views. The same description sets how the application behaves: what a post holds, when it can be published, and how it is shown.
Example: a community blog
- Information
- A post has a title, a body and a status.
- Relationships
- Every post belongs to a blog.
- Rules
- A post moves between draft, published and archived. A draft has to stay within the blog’s word limit.
- Views
- Drafts and published posts each have their own preview, with the title, an excerpt and a word count.
entity Post
components
title: text
body: richtext
status: lww<string> = "Draft"
end
references
this -[in-blog]-> blog : Blog
end
grammar
state Draft where status.value == "Draft"
require word_count <= max_words
on Publish -> Published
status = "Published"
…
presentation PostPreview for Post
view Draft
<article class="post-preview">
<h3>{title.value}</h3>
<p class="excerpt">{body.value}</p>
…
See it running
Here is that rule at work. Two people collaborate in a shared blog application. When one lowers the word limit, the other’s draft picks up the new limit immediately, and as soon as the draft runs over, it can no longer be published. Watch how the application responds to the rule expressed in the grammar above.
What happens in the video
- Anita creates her identity and starts a blog.
- Sam joins from his own device with her invite. They edit the blog’s settings together, each watching the other’s changes arrive.
- Anita starts the first post, and Sam, mischievously, cuts the word limit to five.
- Her word count switches to the new limit straight away. Once her draft passes five words, the publish button gives way to a prompt to trim it.
- They put the limit back to 500 and she publishes. The post appears on Sam’s screen straight away.
Who can reach what
Everyone works from the shared context.
Working together doesn’t mean sharing everything. Neighbourhoods lets groups define who can access information, who can act on it and where permission stops, even when AI assistants automate the work.
Relationships and governed participation
Three participants, a third-party integration and two spaces. The administrator is a member of both the shared team space and the sealed restricted-records space. The member belongs to the team space only. An AI assistant acts for the member, with a grant for read and draft access to the team space. It is drawn with a dashed outline because AI participation is designed. Grants for people are working today; a separate restricted space like this one illustrates the intended direction. Its path to the restricted records is refused: it has no grant, and the space is encrypted with a key only its members hold. A third-party integration, an existing system shown as an application window, connects to the team space through a grant for scoped access and has no path to the restricted records. Integrations are not yet available; the integration and its scoped access illustrate the intended direction. The team space holds documents, research papers, reference material, meeting notes, spreadsheets and plans.
- Separate spaces. Restricted records live in their own space, with their own members, encrypted with a key only those members hold.
- Working todayExplicit grants. Where access rules apply, they determine what members are permitted to do through explicit, scoped and revocable grants. Revocation takes effect at the relay, and on each copy as it arrives.
- DesignedAgents on the same terms. An AI assistant acting for a member reaches what it has been granted, and nothing else.
- Existing systems on the same terms. Third-party integrations are part of our approach to connecting existing tools with shared spaces, under the same principles of governed access.
- Rules and permissions
- People and AI agents
Rules and permissions
Working todayWho may do what is part of the shared description. Each action is checked against the actor’s grants and refused by default; roles can be delegated and revoked.
Why it matters: the rules are not a setting buried in a vendor’s admin panel. Members can read them, and the software applies them the same way to everyone.
For builders
Grammar guards and gates, identity grant chains and role grants are working for people. Restricting reads to particular roles within one space is not available yet, and neither are separate restricted spaces with their own members; today a group’s membership and settings records sit in their own sealed space.
People and AI agents
People: working todayAI agents: designedMembers hold their own identity and keys, use several devices, and their contributions stay attributed. AI agents are designed to take part the same way: as participants with their own explicit, revocable permissions.
Why it matters: help from an AI agent should never be a separate, invisible authority. It should be bound by the same rules as everyone else.
For builders
Member-held identity with device keys and an encrypted wallet is working. Agents acting as signed participants through a grammar’s own actions is designed and not yet built.
Knowledge that keeps its connections.
Knowledge is more than information stored in separate places. Neighbourhoods keeps the connections between people, sources, ideas and decisions, so groups can build on what they know and see how their work evolves.
Loom puts that connected knowledge to work. It coordinates repeatable processes across people, tools and AI assistants, bringing in human judgment where it matters.
How knowledge connects, and where Loom fits
Two areas. In shared knowledge, sources are cited by findings, and findings support decisions, which a member makes. Loom runs a process step by step: it gathers sources, drafts findings, and then asks a member to decide. Both are designed.
- Knowledge graph
- Loom
Knowledge graph
DesignedThe relationships among information, people, agents and rules: this finding cites that source, this decision rests on those findings, this member may act in that space.
Why it matters: shared context becomes something people and agents can follow and check, while each space keeps its own boundaries.
For builders
We already run our own engineering on an internal knowledge graph of plans, decisions and evidence. The product version, partitioned by space and permission, is designed.
Loom
DesignedLoom runs a group’s methods as repeatable processes over the knowledge graph. It passes results from one step to the next, calls on AI assistants within their grants, records where each result came from, and pauses where a person has to decide.
Why it matters: a method becomes explicit and reusable, so a group can see how a result was reached and run the same method again.
For builders
The engine, working today, runs one grammar and checks each action; Loom is designed to run process grammars over the knowledge graph. We build Neighbourhoods itself with an AI-assisted, ledger-driven workflow in which we plan, carry out and review work through structured records. Loom is designed to generalise that pattern for other groups.
Identity and access
Members hold their own identity and keys.
In most tools, a company holds everyone’s accounts and the keys to their data. In Neighbourhoods, members hold their own, on their own devices. Every change they make is signed, so the group can verify who did what, and sealed spaces stay private, even from the relay server that passes changes between members.
From a member’s keys to a sealed space
A member unlocks their wallet, which keeps their identity and keys locked. Each change the member makes is signed and sent to the relay server, which passes changes between members’ devices but cannot read inside sealed spaces. The relay passes a sealed copy to a sealed space, open to its members only and locked with its own key, which holds the membership records. A device the member has revoked is refused when it tries to open the member’s private spaces.
- No company account. A member creates their identity on their own device and adds their other devices from it. Every change they make is signed, so others can check who made it.
- Sealed spaces. Only the members of a sealed space can read it; the relay passes it along without being able to open it.
- Device revocation. Members can revoke a lost device, and it can then no longer open their private spaces.
What the relay server can and cannot see
Working todayThe relay cannot read what a sealed space contains. It can see which devices are connected, when changes are sent and roughly how large they are. Each member’s own space and each group’s membership and settings records are sealed; the shared space where invited people work together is not sealed yet.
For builders
Each identity is a did:nhd document built from a hash-linked log of signed operations; device keys join it by signed attestation from the identity or an earlier device, and signed revocations are checked before a device may attach. Changes are signed with Ed25519. Sealed spaces use AES-256-GCM with a per-space key, wrapped to invited members with X25519. The wallet’s vault is AES-256-GCM under a PBKDF2-derived key. History is an append-only signed log with RFC 6962 inclusion proofs that any member can verify.
The relay checks each change’s signature against the signer’s device chain, and only verified changes carry authority, such as granting a role; refusing untraceable changes outright is the in-progress item below. Hiding activity from network observers is not a goal of the current design.
Current security limitations
Today’s protections include signed changes, separate keys for sealed spaces and member-held wallets.
There are limits. Revoking a device does not close an existing connection or erase information it already holds. Removing a member or device does not yet replace a sealed space’s key. If a member loses every device, their identity cannot currently be recovered.
For builders
Roadmap: fail-closed ingress; an AuthoritySet on each identity (per-class signing thresholds over member keys); Shamir N-of-K custodian recovery; an origin allowlist for wallet access; revocation by threshold-signed governance epoch; agent keys held in a host signing broker; a KDF after X25519 and the other open primitive fixes.
Explored, not scheduled: FROST threshold group keys; BBS+ pseudonymous ballots; hybrid X25519 + ML-KEM-768 encryption; witness-cosigned log checkpoints; a per-recipient forward-secrecy ratchet; QR and NFC device pairing; memory-hard password hashing for the vault.
What comes next
- In progress The relay will turn away any change it cannot trace to a member.
- Designed Several keys for one identity, and recovery through people a member trusts, so losing a device does not mean losing an identity.
- Designed Websites ask a member before using their wallet.
Where we are
What works today. What’s still ahead.
Neighbourhoods is in active development. This is where the pieces described above stand.
- Working today Grammars run as software, and every action is checked against the group’s rules.
- Working today Members hold their own identity and keys on their own devices, and roles and grants for people are enforced.
- Working today Each member’s own space and each group’s membership records are sealed with a key only their members hold.
- Working today Copies stay in step through a relay server. Direct device-to-device operation is a direction, not a feature.
- Designed AI assistants taking part with their own identity and grants.
- Designed The shared knowledge graph and Loom. The internal versions we build with are not products.
- Groups cannot yet reshape a grammar while it runs.
- Separate restricted spaces with their own members, as in the restricted-records example above, show the intended direction; how groups will set them up is still being settled.