Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .agents/skills/webcpp-openspec-proposal/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ description: "Write or review a webcpp proposal: a library genesis, a change to
# Writing a webcpp proposal

Read first: `CONTRIBUTING.md` (what a proposal holds, how it is decided), `AGENTS.md`, the
organization's specification `organization/openspec/specs/`, and the superproject's `AGENTS.md`.
organization's specification `organization/openspec/specs/`, and the superproject's
`CODING-GUIDELINES.md` and `AGENTS.md`.
The generic OpenSpec skills (`openspec-propose`, `openspec-explore`, ...) apply, with the note at
their top: one OpenSpec root per library and one for the organization.

Expand Down
3 changes: 2 additions & 1 deletion .agents/skills/webcpp-reference-status/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ Then read each `.openspec.yaml` (status, decided), the first unchecked tasks and
## Rules
- A box is checked only for work done and committed.
- Recorded patches and archived material are history: never edit them to change what they record.
- A repository made from `reference/source/` starts from one import commit (superproject `AGENTS.md`, chapter 11).
- A repository made from `reference/source/` starts from one import commit (superproject
`CODING-GUIDELINES.md`, chapter 2).
12 changes: 7 additions & 5 deletions .agents/skills/webcpp-text-and-commits/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ description: "Before writing any file, commit message or proposal text for a web

# Text and commits in webcpp

The rules are in the superproject's `AGENTS.md`, chapter 11 "Commits and text"
(https://github.com/webcpporg/webcpp/blob/main/AGENTS.md). This is a checklist, not a copy.
The rules are in the superproject's `CODING-GUIDELINES.md`, chapter 2 "Commits and text"
(https://github.com/webcpporg/webcpp/blob/main/CODING-GUIDELINES.md), and a changelog's form in its
`AGENTS.md`, chapter 5. This is a checklist, not a copy.

## Before writing a file
1. English only, in files, comments and commit messages.
2. No em dash (U+2014): use a plain dash. No banned word (the regex `veru[s]`, any case).
3. No personal data: no home directory paths (write `/Users/you/` as the placeholder), no
private addresses. Name people only by the identity they publish under.
4. A source file opens with the licence notice of chapter 11, in its language's comment form.
4. A source file opens with the licence notice of chapter 2, in its language's comment form.

## Before committing
1. Commit under your own git identity, a name and address you control (a GitHub noreply address
is fine), as chapter 11 says; never under another person's identity.
is fine), as chapter 2 says; never under another person's identity.
2. No trailer of any kind: no `Co-authored-by`, no `Signed-off-by`, no agent name.
3. Stage explicit paths, never `git add -A`; a submodule's commit is recorded, never its files.
4. Subject: plain, says what the change does, prefixed by the part it touches (`xactor: ...`).
5. Check: `git log -1 --format=%B | git interpret-trailers --parse` prints nothing. A last paragraph
that starts with `word:` (`std::` does) is read as a trailer: start it otherwise.
6. A change a user can see adds its changelog line in the same commit (chapter 11, "The changelog").
6. A change a user can see adds its changelog line in the same commit (`AGENTS.md` chapter 5,
"The changelog").

## Outward actions
Pushing, merging, creating repositories, changing settings and touching credentials belong to the
Expand Down
7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Working on webcpp's proposals

Read the superproject's `AGENTS.md` first
(<https://github.com/webcpporg/webcpp/blob/main/AGENTS.md>), then
`CONTRIBUTING.md`. This file holds only what is specific to this repository.
Read the superproject's `CODING-GUIDELINES.md`
(<https://github.com/webcpporg/webcpp/blob/main/CODING-GUIDELINES.md>) and its `AGENTS.md`
(<https://github.com/webcpporg/webcpp/blob/main/AGENTS.md>) first, then `CONTRIBUTING.md`. This
file holds only what is specific to this repository.

- **Several OpenSpec roots.** There is no `openspec/` at the repository's root: the organization
is `organization/openspec/`, each library `libraries/<name>/openspec/`. Every `openspec`
Expand Down
24 changes: 17 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ submit one, and how it is decided.
1. The organization's genesis, `organization/openspec/changes/archive/*-genesis/` and
`organization/openspec/specs/`: how webcpp is organized, built, documented, tested and
released, and what every library must be. A proposal that does not fit it is not accepted.
2. The superproject's [AGENTS.md](https://github.com/webcpporg/webcpp/blob/main/AGENTS.md), the
rulebook every library follows.
2. The superproject's
[CODING-GUIDELINES.md](https://github.com/webcpporg/webcpp/blob/main/CODING-GUIDELINES.md), the
rules every library follows and the decisions of webcpp's design, and its
[AGENTS.md](https://github.com/webcpporg/webcpp/blob/main/AGENTS.md), how to work in the tree.
3. One finished proposal of the kind you write: `libraries/lexical/openspec/changes/` holds a
genesis (implemented) and a change (draft); `libraries/json_schema/openspec/changes/genesis/`
a new library partly built.
Expand Down Expand Up @@ -68,11 +70,19 @@ identity they publish under, and holds no private data.

## Commit identity in older plans

Every contributor follows the current superproject `AGENTS.md`, chapter 11, using the identity
of the account they act for or their own account. An older plan's fixed identity is historical
context, not an instruction to impersonate its author. Update that command when the open proposal
is next revised. Existing commits, archived proposals and recorded patches keep their original
identity; no bulk rewrite is required.
Every contributor follows the current superproject `CODING-GUIDELINES.md`, chapter 2, using the
identity of the account they act for or their own account. An older plan's fixed identity is
historical context, not an instruction to impersonate its author. Update that command when the open
proposal is next revised. Existing commits, archived proposals and recorded patches keep their
original identity; no bulk rewrite is required.

## Chapter citations in older proposals

Until 2026-10-26 the superproject's `AGENTS.md` held every rule, in thirteen chapters. The
organization's change `coding-guidelines` moved the rules and the decisions of webcpp's design to
`CODING-GUIDELINES.md` and renumbered both files. A citation of an old chapter in an open proposal
is read through that change's table (its `design.md`, D2), and updated when the proposal is next
revised. Archived proposals, recorded patches, plans and reference trees keep their citations.

## Grants and the DAO

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ libraries marked with it are published, in the superproject's `main`.
| organization | [genesis](organization/openspec/changes/archive/2026-10-07-genesis) | organization: the superproject, its build, its rules, its CI and its site | organization | implemented | 0.1.0 | 2026-10-07 | [code](https://github.com/webcpporg/webcpp/tree/c53f3f9) |
| organization | [site-increments-4-5](organization/openspec/changes/site-increments-4-5) | organization: the site, increments 4 and 5 (trystero's JavaScript API and the cursors; the state machine, on the server, C++ calls the browser) | organization | accepted | | 2026-10-10 | |
| organization | [agent-skills](organization/openspec/changes/archive/2026-10-13-agent-skills) | organization: agent skills in .agents/skills, in the proposals and the superproject | organization | implemented | 0.1.0 | 2026-10-13 | [code](https://github.com/webcpporg/webcpp/tree/5a441c1e90c5b242cf55c351edf6c79c37ef1f8d) |
| organization | [coding-guidelines](organization/openspec/changes/archive/2026-10-28-coding-guidelines) | organization: CODING-GUIDELINES.md, the single source of the rules and the design decisions | organization | implemented | 0.1.0 | 2026-10-26 | [code](https://github.com/webcpporg/webcpp/tree/a4c770e07becaa32b840554512b37d96b4440d18) |
| organization | [contributor-identity](organization/openspec/changes/archive/2026-10-13-contributor-identity) | organization: every contributor commits under their own git identity | organization | implemented | 0.1.0 | 2026-10-13 | [code](https://github.com/webcpporg/webcpp/tree/9a268b7efa8a9b7eab8810bc024486288c689fab) |
| asio | [genesis](libraries/asio/openspec/changes/genesis) | asio: Boost.Asio natively, the browser's event loop on Emscripten | wrapper | implementing | | 2026-10-11 | |
| beast | [genesis](libraries/beast/openspec/changes/genesis) | beast: Boost.Beast natively, the browser's WebSocket and fetch on Emscripten | wrapper | draft | | | |
Expand Down
3 changes: 2 additions & 1 deletion libraries/asio/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::asio: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/beast/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::beast: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/config/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::config: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/crypto/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::crypto: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/document/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::document: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/idna/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::idna: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/json_schema/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
3 changes: 2 additions & 1 deletion libraries/lexical/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
3 changes: 2 additions & 1 deletion libraries/pratt/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::pratt: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/trystero/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::trystero: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/wasi/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::wasi: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/webrtc/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::webrtc: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/xactor/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::xactor: its genesis and its changes.
3 changes: 2 additions & 1 deletion libraries/xstate/openspec/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ context: |
a superproject of header-only C++20 libraries for native, WASI (wasip2,
wasip3) and Emscripten targets, each library a repository of its own under
libs/<name>, licensed BSL-1.0, "Copyright (c) 2026 WebCpp.org".
The superproject's AGENTS.md is the rulebook every library follows.
The superproject's CODING-GUIDELINES.md holds the rules every library follows
and the decisions of webcpp's design; its AGENTS.md says how to work in the tree.
Everything is written in English; never the em dash, use a plain dash.
This root holds the proposals of the library webcpp::xstate: its genesis and its changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
schema: spec-driven
created: 2026-10-26
webcpp:
library: organization
title: "organization: CODING-GUIDELINES.md, the single source of the rules and the design decisions"
kind: organization
port_of: null
status: implemented
release: "0.1.0"
implementation: https://github.com/webcpporg/webcpp/tree/a4c770e07becaa32b840554512b37d96b4440d18
decided: 2026-10-26
Loading