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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ libraries marked with it are published, in the superproject's `main`.
| 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 | [wasm-tools](organization/openspec/changes/wasm-tools) | organization: build and install the wasm bindings generator as a host tool | organization | accepted | | 2026-11-03 | [code](https://github.com/webcpporg/webcpp) |
| 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 | [cobalt-target-names](organization/openspec/changes/archive/2026-11-14-cobalt-target-names) | organization: the build names Cobalt's targets only under /webcpp/cobalt | organization | implemented | 0.1.0 | 2026-11-14 | [code](https://github.com/webcpporg/webcpp/tree/eb0819805cb890b006ededef925115e4fdc54497) |
| 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 across native, browsers and WASI | wrapper | implementing | | 2026-10-11 | [code](https://github.com/webcpporg/asio) |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
schema: spec-driven
created: 2026-11-14
webcpp:
library: organization
title: "organization: the build names Cobalt's targets only under /webcpp/cobalt"
kind: organization
port_of: null
status: implemented
release: "0.1.0"
implementation: https://github.com/webcpporg/webcpp/tree/eb0819805cb890b006ededef925115e4fdc54497
decided: 2026-11-14
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
## Context

Until 2026-11-06 webcpp built Boost.Cobalt from Boost's own sources, as `/webcpp//boost_cobalt`
in `tools/boost/Jamfile`, and the organization's genesis specified it with Boost.URL,
Boost.Charconv and Boost.Locale. Cobalt then became a library of its own, `webcpporg/cobalt` at
`libs/cobalt`, which ships its sources (`libs/cobalt/sources.json`) and declares its targets in
`/webcpp/cobalt`; the old names were kept as aliases that forwarded to the new ones. On 2026-11-14
the owner decided that each Cobalt target has one name, and the aliases at the superproject's root
and in Asio were removed (webcpp `eb08198`, Asio `6c4e2c8`, Cobalt `5d51c4a`), with a test,
`tools/test/cobalt_ownership_test.py`, that a program naming a removed name stops. Cobalt's and
Asio's genesis proposals were updated on the same day. The organization's main specification is
the one text that still names `boost_cobalt`.

## Goals / Non-Goals

**Goals:**

- The organization's specification names no removed Cobalt target and says where Cobalt's
targets are.
- Each modified requirement describes the Jamroot and `tools/boost/Jamfile` as they are at webcpp
`eb08198`.

**Non-Goals:**

- Restating Cobalt's targets, configurations or exception behaviour: they are Cobalt's own
specification's.
- `/webcpp//boost_context`, which the Jamroot builds from Boost's sources since Beast's
integration (webcpp `91af39e`) and which the organization's specification has never named.
Specifying it, on which targets it builds and whether it is explicit at the root, needs its own
change.
- Any change to the build, the tools or the libraries.

## Decisions

### D1. The list of explicit targets is the Jamroot's

The requirement's list is copied from the Jamroot's `explicit` declaration at `eb08198`, so it
drops `boost_cobalt` and also names `node-test`, which the Jamroot has declared since the test
under node (webcpp `5d63e95`) and the specification never listed.

Rejected: removing `boost_cobalt` alone. The requirement would still disagree with the Jamroot it
describes, in a list this change rewrites anyway.

### D2. Cobalt's own specification owns what Cobalt builds

The organization's specification says only that Cobalt is a library whose targets are under
`/webcpp/cobalt`, and that the root and `/webcpp/boost-libraries` declare none. The sentence
"Boost.Cobalt is built for native programs and has no build without exceptions" is removed rather
than rewritten: it described the removed build from Boost's sources, and Cobalt's genesis now
specifies its targets ("Explicit configuration and runtime capability matrix") and its exceptions
("Exceptions follow the caller with precise limitations").

Rejected: rewriting the sentence for the shipped library. Two texts would describe one library's
targets and drift apart, which is how this sentence became stale.

### D3. A dependency on Cobalt is a dependency on a library

"Library: build.jam" names Cobalt among the libraries a library depends on by its target, with
`<library>/webcpp/cobalt//core` as the example, and a scenario that lists the four targets. Which
of them a library or a program needs (`core` for a custom main, `cobalt` for `co_main`, `io_ssl`
and `cobalt_ssl` for TLS) is Cobalt's documentation's.

### D4. Recorded as implemented, and archived in the same change

The decision is the owner's, of 2026-11-14, and its implementation is merged in the superproject
(webcpp#13), Asio (asio#3), Cobalt (cobalt#1) and the proposals (proposals#9). Nothing is left to
implement but the specification itself, which archiving writes. The change is therefore
`implemented`, in the 0.1.0 release in preparation as every implemented organization change is,
and archived in the pull request that proposes it; merging that pull request is the owner's
acceptance.

Rejected: an open change with status `accepted`. The main specification would keep naming the
removed targets until a later archive, with no work left in between.

## Risks / Trade-offs

- [A reader of an older proposal finds `/webcpp//boost_cobalt`] -> archived proposals and plans
keep their text as records; b2 stops with the name of the target, and Cobalt's genesis lists
the four removed names and their replacement.
- [The specification still omits `/webcpp//boost_context`] -> named as a non-goal here so that
its own change can specify it.

## Migration Plan

None: programs that named a removed target already stop since the implementation was merged, and
the specification follows the build.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
## Why

The owner decided on 2026-11-14 that the build names each of Cobalt's targets once, under
`/webcpp/cobalt` (`core`, `cobalt`, `io_ssl` and `cobalt_ssl`), and removed the four legacy names
that forwarded to them: `/webcpp/asio//cobalt`, `/webcpp/asio//cobalt_ssl`, `/webcpp//boost_cobalt`
and `/webcpp//boost_cobalt_io_ssl`. The superproject, Asio, Cobalt, the Cobalt and Asio genesis
proposals, `AGENTS.md` and `CODING-GUIDELINES.md` were updated and merged that day. The
organization's main specification still names `boost_cobalt` in three requirements, and was
already stale before the decision: it says that `/webcpp//boost_cobalt` is built from Boost's own
sources in `tools/boost/Jamfile`, while since 2026-11-06 Cobalt has shipped its own sources
(`libs/cobalt/sources.json`) in its own project. A reader of the specification would name a
target that b2 no longer finds.

## What Changes

- "Build: The aggregates and the explicit targets": the explicit targets are the Jamroot's at
webcpp `eb08198` (`boost_version`, `throw_exception`, `boost_json`, `boost_url`,
`boost_charconv`, `boost_locale`, `node-test` and `emscripten-reference`), without
`boost_cobalt`; the Jamroot declares no Cobalt target nor an alias to one, with a scenario for
a program that still names a removed root name.
- "Build: Boost's compiled libraries from its sources": the libraries built from Boost's sources
are `/webcpp//boost_url`, `/webcpp//boost_charconv` and `/webcpp//boost_locale`; Boost.Cobalt
is not one of them, since Cobalt ships its own sources and builds them in `/webcpp/cobalt`.
- "Build: What Boost.Locale and Boost.Charconv give on each target": the closing sentence on
Boost.Cobalt, which described the removed `/webcpp//boost_cobalt` build, is removed; Cobalt's
targets and its exceptions are its own specification's.
- "Library: build.jam": a dependency on Cobalt is one of its targets under `/webcpp/cobalt`, like
a dependency on any other library, and Boost.Cobalt leaves the list of Boost's compiled
libraries.
- Nothing in the build, the tools or the libraries changes: the implementation is already merged.

## Capabilities

### New Capabilities

None.

### Modified Capabilities

- `organization`: the requirements "Build: The aggregates and the explicit targets", "Build:
Boost's compiled libraries from its sources", "Build: What Boost.Locale and Boost.Charconv give
on each target" and "Library: build.jam" are modified.

## Impact

- **Kind:** the organization (the organization's specification of the superproject's build).
- **Implementation:** already merged on 2026-11-14 by the owner's decision of that day:
https://github.com/webcpporg/webcpp/pull/13 (merge commit
`eb0819805cb890b006ededef925115e4fdc54497`), https://github.com/webcpporg/asio/pull/3,
https://github.com/webcpporg/cobalt/pull/1 and https://github.com/webcpporg/proposals/pull/9;
see `reference/STATUS.md`.
- **Status:** implemented in the 0.1.0 release in preparation; archived on 2026-11-14, which
writes the modified requirements into `specs/organization/spec.md`.
- **Other proposals:** Cobalt's genesis (`libraries/cobalt/openspec/changes/genesis/`) holds
the requirement that each Cobalt target has one name, and Asio's genesis the requirement that
Asio declares no Cobalt target; this change only aligns the organization's specification with
them.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Cobalt's target names: implementation and archival evidence

Verified on 2026-11-14 against the published merge commits, without running the CI.

## Implementation

- https://github.com/webcpporg/webcpp/pull/13 merged as
`eb0819805cb890b006ededef925115e4fdc54497`: the Jamroot and `tools/boost/Jamfile` no longer
declare `boost_cobalt` nor `boost_cobalt_io_ssl`, and
`tools/test/cobalt_ownership_test.py`, `test_only_the_cobalt_library_names_cobalt`, checks
that a program naming `/webcpp/asio//cobalt`, `/webcpp/asio//cobalt_ssl`,
`/webcpp//boost_cobalt` or `/webcpp//boost_cobalt_io_ssl` stops with "Unable to find file or
target named", while `/webcpp/cobalt//cobalt` builds.
- https://github.com/webcpporg/asio/pull/3 merged as
`6c4e2c85fe6e875bbf67db095df2497b93bf455b`: Asio's `build.jam` names no Cobalt target.
- https://github.com/webcpporg/cobalt/pull/1 merged as
`5d51c4aa89e563070aa244e0635139758d762f97`: `build.jam` declares `project /webcpp/cobalt`
with `core`, `cobalt`, `io_ssl` and `cobalt_ssl`, built from the sources `sources.json` lists
through the project `/webcpp/cobalt-sources`.
- https://github.com/webcpporg/proposals/pull/9 merged as
`18ba2b6cb2c2646d38ec4dbc62e799aa80576a54`: Cobalt's and Asio's genesis proposals record the
decision.

## What each modified requirement was checked against

- "Build: The aggregates and the explicit targets": the Jamroot's `explicit` declaration at
`eb08198` lists `boost_version throw_exception boost_json boost_url boost_charconv boost_locale
node-test emscripten-reference` before the aggregates and the notfile targets. `node-test` has
been in that list since webcpp `5d63e95`.
- "Build: Boost's compiled libraries from its sources": the Jamroot's aliases checked against the
sources are `boost_url`, `boost_charconv`, `boost_locale` and `boost_context`; none is a Cobalt
target. `boost_context` is a non-goal of this change (`../design.md`).
- "Build: What Boost.Locale and Boost.Charconv give on each target" and "Library: build.jam":
Cobalt's `README.md` at `5d51c4a` names its canonical targets, `/webcpp/cobalt//core` for a
custom main and `/webcpp/cobalt//cobalt` for `co_main`, with the optional `io_ssl` and
`cobalt_ssl`.

## Reproduce the read-only checks

From a webcpp checkout that holds the merge commit:

```sh
git show eb08198:Jamroot | grep -n -A3 '^explicit boost_version'
git show eb08198:Jamroot | grep -n 'for local name in boost_'
git grep -n 'boost_cobalt' eb08198 -- Jamroot tools/boost
git show eb08198:tools/test/cobalt_ownership_test.py | grep -n -A20 'def test_only_the_cobalt_library_names_cobalt'
```

The third command prints nothing. The others print the list of explicit targets, the four
compiled aliases and the test of the removed names.

## Archive

The change is implemented for the 0.1.0 release in preparation, consistent with the index; no
release tag is created. Archiving writes the four modified requirements into the organization's
main specification and the index is regenerated. Local validation covers the organization's
OpenSpec root, the proposal index and the proposal tool's tests.
Loading