Files
buzz/VISION_PROJECTS.md

16 KiB

🐝 Buzz Projects — A Nostr-Native Forge

Someone pushes a fix. Buzz creates a channel for the branch. The CI agent picks up the push, runs the tests, posts results back to the channel. A co-maintainer reviews the diff inline, approves it — a signed event, cryptographic proof. Merge. The workflow runs the integration. The channel archives into a permanent record of why that code exists.

Bug report to merged fix. One place. One search index. One identity system. The work channel held the pull request, the CI results, and the discussion.

This document is the software-forge slice of the broader Buzz platform. VISION.md covers the platform. VISION_SOVEREIGN.md covers the sovereign relay story — one domain, one relay, one project. This doc zooms in on what it looks like when that relay hosts code. In multi-community Buzz, the same rule is lifted one level up: a project domain or subdomain selects the community first, and repositories, workflows, approvals, Blossom artifacts, and git ref updates under that host are community-local even if an operator runs many communities on shared backend infrastructure.


The Project Model

A project lives on the relay. myproject.com in a browser shows the project home. Click a repo and you're at repoa.myproject.com — README rendered, file tree navigable, code syntax-highlighted, clone URL at the top. The same URL serves HTML to a browser and git protocol to git clone. Content negotiation. One URL, two audiences.

Git transport is standard Smart HTTP — git clone, git push, nothing special. Your npub signs pushes. Same domain, same auth, same identity as everything else on the relay. The host in the clone/push URL is also the community selector: the same owner/repo name may exist in two communities without sharing refs, branch protections, workflow runs, approvals, or repo announcements.

The portable representation is a NIP-34 repo announcement (kind:30617) — standard metadata that any NIP-34 client can discover and render. Buzz extends it with buzz- prefixed tags for channel binding and visibility:

{
  "kind": 30617,
  "tags": [
    ["d", "buzz"],
    ["name", "buzz"],
    ["clone", "https://repoa.myproject.com"],
    ["relays", "wss://myproject.com"],
    ["maintainers", "<co-maintainer-npub>"],
    ["buzz-channel", "<channel-uuid>"],
    ["buzz-visibility", "listed"],
    ["buzz-protect", "refs/heads/main", "push:admin", "no-force-push", "no-delete"]
  ]
}

Branch protections live in the same event as buzz-protect tags, and the relay enforces them at the git transport layer. The repo channel's roles decide who can push: members write, and push:admin narrows a protected branch to admins. no-force-push and no-delete apply to everyone, the owner included. Required approvals and checks are governance rules still to build; see VISION_GOVERNANCE.md.

Agents act under their own authority, never their owner's. An agent reaches a repo through its own membership in the repo channel, and where the community requires it, a grant from its owner that further limits its repos, actions, and lifetime. NIP-OA identifies the human who delegated: every push is attributed to that owner, and a ban on the owner reaches the agent too. Owner attestation never replaces the agent's own channel access or a required grant. An agent never holds more than its owner currently does: when the owner loses access to a repo, the agent loses it too, grant or no grant. See VISION_GOVERNANCE.md.

Standard NIP-34 clients see a normal repo. gitworkshop.dev renders it. ngit-cli works with it. Buzz clients read the buzz- tags and wire up the channel and project UI. One event, two audiences, no custom kind for the repo itself.

NIP-34 is the metadata and discovery layer. Git remains the transport. The transport is boring. The metadata is portable.


One Project, Many Repos

Real work spans repositories. The platform is a relay, a desktop app, and a mobile app — three repos, one project. Render one card per repo and they look like three unrelated things.

Grouping is the one forge semantic that per-repo tags cannot express, and it's worth being precise about why, because everything else here deliberately avoids a custom kind.

Put membership in each kind:30617 and a project spanning Alice's and Bob's repos needs both of them to publish a tag naming the group. Alice can't enroll Bob's repo — she can't sign for his key. Cross-owner grouping becomes impossible, and the project's own name, description, and channel end up scattered across events with no single writer and no deletion story: dropping a repo from the group would mean editing an event you don't control.

So there is exactly one custom kind — NIP-MP, kind:30621. One signer, one replaceable event, all group state in one place:

{
  "kind": 30621,
  "tags": [
    ["d", "platform"],
    ["name", "Platform"],
    ["a", "30617:<alice-npub-hex>:buzz"],
    ["a", "30617:<bob-npub-hex>:buzz-infra"],
    ["buzz-channel", "<channel-uuid>"],
    ["buzz-visibility", "listed"]
  ]
}

A project points at repos. That's all it does. The signer gets no authority over any member — no edit, no delete, no push, no admin. Adding Bob's repo to your project is your signed assertion that the two belong together, and it changes nothing about Bob's repo or who can push to it. Push policy reads the repo's own event, never the project's.

The cost is stated plainly: a third-party NIP-34 client sees the member repos individually and ignores the grouping. Nothing degrades — the repos are still standard, portable kind:30617 events. And a repo in no project still renders on its own, exactly as before.


Branches as Channels

A feature branch is a conversation.

When you create a branch, Buzz creates a channel. The branch's pull request, review comments, CI results, and merge decision all live in that channel. When the branch merges, the channel archives. The conversation becomes the permanent record of why that code exists.

#feat-auth-fix
├── 🧑 alice: "Starting OAuth2 PKCE implementation"
├── 🤖 ci-agent: "Build triggered — commit a1b2c3d"
├── 🤖 ci-agent: "✅ All 47 tests pass (12.3s)"
├── 📎 kind:1618 pull request — src/auth/pkce.rs (+120 lines)
├── 🧑 bob: "One nit on error handling line 45"
├── ⬆️ alice pushed d4e5f6a — addressed review
├── 🤖 review-agent: "LGTM — error variants match trait spec"
├── ✅ bob: Approval event (kind:46011)
├── 🔀 Merged to main — kind:1631
└── 📦 Channel archived

No tab-switching between issue tracker, CI dashboard, chat, and code review. The channel shows the pull request, the CI dashboard, and the discussion thread. One stream. One search index. It displays the proposal and grants nothing: who can read, push, and approve always comes from the repo channel and the community's rules. See VISION_GOVERNANCE.md.


The Merge Flow

Push to merge, fully traced. Every step is a signed event.

Push          CI              Review          Merge
  │            │                │               │
  │ kind:30618 │                │               │
  │ (ref update)               │               │
  │───────────►│                │               │
  │            │ Workflow       │               │
  │            │ triggers       │               │
  │            │                │               │
  │            │ Build ✅       │               │
  │            │ Test ✅        │               │
  │            │ Lint ✅        │               │
  │            │                │               │
  │            │ check ────────►│               │
  │            │ (signed result)│               │
  │            │                │ Review in     │
  │            │                │ branch channel│
  │            │                │               │
  │            │                │ kind:46011    │
  │            │                │ (approved) ──►│
  │            │                │               │
  │            │                │               │ Merge to main
  │            │                │               │ kind:1631
  │            │                │               │
  │            │                │               │ Channel archives

The approval event is signed by the maintainer's npub. The merge status references the approval. The audit log chains them together. Cryptographic proof of who approved what. In a governed community, landing goes through one gate that checks every applicable rule and leaves a receipt; see VISION_GOVERNANCE.md.


The Web of Trust

Every contributor — human or agent — has a verifiable identity and a queryable contribution history across every project on the network. Within Buzz, that history is queried through a community boundary: one community can choose to surface reputation from other communities later, but profiles, DMs, memberships, and project records are not implicitly shared across hosts.

A new contributor opens a pull request. Before you read the code:

  1. Query their npub — pull requests opened, pull requests merged, projects contributed to.
  2. Check your trust graph — have maintainers you trust vouched for this person? Signed approval events are public and queryable.
  3. Assess risk — fresh npub with no history gets scrutiny. An npub with 50 merged pull requests across projects you respect gets fast-tracked.

This works because identity is cryptographic and portable. Your npub, your contribution history, and your trust relationships travel with you. No platform owns your reputation.

For agents: an agent with a persistent npub and verifiable contribution history is fundamentally different from an anonymous generator. The agent's reputation is on the line with every contribution, across every project it touches. See NIP-OA for the owner attestation mechanism that proves which human authorized which agent — independent keys, contained blast radius.


CI and Workflows

Workflows orchestrate. Agents perform the compute. The relay is the message bus, not the build server.

A push to a branch channel triggers the CI workflow. The workflow engine coordinates the steps — build, test, lint. Agents run the actual jobs on their own infrastructure: your server, a cloud function, a laptop. Results post back to the branch channel alongside the conversation.

Workflows live in the repo (.buzz/workflows/) or are defined at the project level and inherited by every branch channel automatically — no per-branch configuration, no copy-pasting YAML. Workflow definitions, schedules, webhooks, runs, and approval tokens inherit the project/community selected by the host, so a webhook or cron trigger for one community cannot resolve a same-named workflow in another.

name: CI
trigger:
  on: diff_posted
steps:
  - id: build
    action: call_webhook
    url: "https://ci.internal/build"
    body: '{"commit": "{{trigger.commit}}"}'
  - id: test
    action: call_webhook
    url: "https://ci.internal/test"
    if: "steps.build.output.status == 'success'"
  - id: gate
    action: request_approval
    message: "CI passed. Approve merge?"
    if: "steps.test.output.status == 'success'"

Every step traced. Every trace a signed event. Change the project CI once and every branch gets it.


Issues, Docs, Releases

Issues → Forum + NIP-34

Bug reports are NIP-34 kind:1621 events, rendered through Buzz's forum surface. Threaded comments use NIP-22 kind:1111. Labels, assignees, milestones are nostr tags. Design discussions and RFCs use the forum's long-form async surface.

NIP-34 clients can discover and interact with issues. Buzz's forum gives them a home with threading, search, and agent triage.

Docs → Canvases

Living documents, collaboratively editable by humans and agents via MCP tools. Not static HTML deployed to a CDN — documents that update when the code changes, because the doc writer agent watches ref updates and proposes edits.

Releases → Agent + Workflow

An agent in #releases watches main. When a release is needed — triggered by a workflow or by a human posting "ship it" — it assembles the changelog from every merged pull request since the last tag, posts a draft. The maintainer approves. The workflow builds artifacts, pushes to content-addressed storage (Blossom/S3), and publishes. Logged, signed, traceable.


Agents as Contributors

Agents are project members with npubs, contribution histories, and reputations. The protocol treats them identically to humans. Visual badges distinguish them in the UI.

Human Agent
Identity secp256k1 keypair secp256k1 keypair
Handle alice@buzz.dev triage-bot@buzz.dev
Events Signed with npub Signed with npub
History On the relay On the relay
Reputation Earned by contributions Earned by contributions
Role Watches Does
Triage Issues (kind:1621) Labels, assigns, detects duplicates, pre-screens
Review Pull requests (kind:1618) First-pass code review, style checks, dependency audit
Docs Ref updates (kind:30618) Keeps docs in sync after merges
Merge coordinator CI results Runs the merge train, requests human sign-off
Coding agent Jobs (kind:43001) Implements tasks, pushes branches for review

Nostr-Native

Standard kinds as substrate. Custom kinds only where genuinely novel.

Layer Standard NIP Kinds Buzz Custom Rationale
Git state 30617, 30618, 1617, 1618, 1621, 1630-1633 (NIP-34) — Interop with ngit, gitworkshop.dev
Comments 1111 (NIP-22) — Threaded replies everywhere
Channels 9000-9022, 39000-39003 (NIP-29) — Project workspaces
HTTP auth 27235 (NIP-98) — Git push authentication
Agent identity 0 (NIP-01 profile) — Agents are npubs
Artifacts 1063 (NIP-94) — Build outputs on Blossom/S3
Workflows — 46001-46012 No NIP equivalent
Job dispatch — 43001-43006 Delegation trees
Project binding 30617 (NIP-34) buzz- tags Channel, visibility
Multi-repo projects — 30621 (NIP-MP) Cross-owner grouping is unexpressible in per-repo tags
Audit — 48001 Hash-chain tamper-evident log

If Buzz disappears tomorrow, your repos still work on gitworkshop.dev, your pull requests still work with ngit-cli, your identities still work on any nostr client. Centralized deployment, decentralized protocol.


Status

Capability Status
Channels, forums, DMs, canvases ✅ Ships today
Workflow engine (triggers, traces, conditional logic) ✅ Ships today
MCP server + ACP agent harness ✅ Ships today
Blossom media storage (SHA-256, S3) ✅ Ships today
Approval gates 🚧 Infrastructure exists; executor wiring in progress
Project binding (kind:30617 + buzz- tags) 📋 Designed
Multi-repo projects (kind:30621, NIP-MP) 📋 Designed
Git hosting (smart HTTP + NIP-34) ✅ Ships today
Merge coordinator 📋 Designed
NIP-34 issues (kind:1621) 📋 Designed
Web-of-trust reputation 📋 Designed

The collaboration platform is built, and git hosting ships today — git clone/git push over smart HTTP with NIP-34 manifests. The forge layer above it is the work ahead — the merge train, project binding, issues, and the reputation system, wired into the surfaces that already exist. See VISION.md for the platform and VISION_SOVEREIGN.md for the sovereign relay story.


Buzz 🐝 — the forge where identity is the foundation.