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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ The type packages come next: `wf install typescript@5.9.3 @types/react@19.3.0 @t

An optional native [automation launcher](docs/AUTOMATION.md) exposes the developer window through
local stdio MCP or a JSON CLI, with explicit permissions for check/build/test/preview and bounded
UI inspection/actions. It requires a compatible environment built from the sources; the pinned
0.6.2 archive predates this API.
UI inspection/actions. It requires an environment containing automation API v1 (0.6.3 or later),
built from the sources or obtained from a verified published distribution.

### 5. Try the result

Expand Down
8 changes: 4 additions & 4 deletions docs/AUTOMATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ test configurations also build the launcher for their regression tests. Without
embedded engine, requesting the launcher fails configure instead of opening a system browser.
The implementation is native C++23; no Node.js, npm or Python is required to run the launcher.

Provision an environment built from sources that export automation API v1. The currently pinned
0.6.2 release predates that API; passing an older environment produces a bootstrap error with
status 70. The launcher requires an explicit archive and its independently trusted SHA-512 SRI
until a compatible environment is published and pinned. To build one in this repository:
Provision an environment containing automation API v1 (0.6.3 or later). Environment 0.6.2
predates that API; passing an older environment produces a bootstrap error with status 70.
The launcher takes an explicit archive and its independently trusted SHA-512 SRI. Use a verified
published distribution or build one in this repository:

```sh
build-agent/test/web/webfront-wf --project "$PWD" --manifest-dir js/developer -- restore
Expand Down
23 changes: 16 additions & 7 deletions docs/DEVELOPER_ENVIRONMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ ship developer mode as the distribution configuration: `wf embed` produces the a
`.d.ts` files and the type packages (`@types/*`, `types` and `typings` fields) of the locked graph. No external compiler is
installed or required (see [Type checking](#type-checking-wf-check)).

The latest published environment is **0.6.2**, published as `developer-v0.6.2` and pinned by the release data. Earlier published
versions stay immutable; the sources advance to 0.6.3 (the terminal no longer prints its banner line), which is not published yet.
The generated `DeveloperReleaseData.hpp` selects the default environment and its integrity. Published
versions stay immutable. Environment **0.6.3** adds automation API v1 and the shared human/agent execution
lease; version 0.6.2 predates that API. Publication and pin changes follow
[PUBLISHING](../js/developer/tools/PUBLISHING.md), with deployment verified before merging a new pin.

## Minimal C++ application

Expand All @@ -60,9 +62,13 @@ Each published version is immutable: 0.3.0 introduced the packed-bitset Life sta
`wf install` keep the versions of the installed lock, 0.4.1 changed the include of the generated provider, 0.5.0 added the
manifest, `wf restore`, `wf run`, `wf exec`, `wf check` and the complete terminal, and 0.6.0 `wf build`, `wf dev` and `wf test`.

The default configuration is generated in `include/webfront/system/DeveloperReleaseData.hpp` and targets
`https://ambroise-leclerc.github.io/WebFront/developer/0.6.2/environment.tgz`. This version (`wf build`, `wf dev`, `wf test` and the non-interactive entry, on top of the 0.5.0 manifest, `wf restore`, `wf run`, `wf check` and the complete terminal) is published and archived as `developer-v0.6.2`; it also installs the archives of `@types` packages and honours a manifest directory. Published 0.6.1, 0.6.0, 0.5.0 and 0.4.1 stay immutable; 0.4.0 and earlier target the former include layout. The configuration pins one version and
its SHA-512 rather than resolving a mutable `latest` channel. An explicit
The default configuration is generated in `include/webfront/system/DeveloperReleaseData.hpp`; it contains
an exact versioned environment URL and the trusted digest. The 0.6.3 release pin selects
`https://ambroise-leclerc.github.io/WebFront/developer/0.6.3/environment.tgz`; the
[publication gate](validation/developer-0.6.3-release.md) requires deployed verification before that pin is merged.
Published 0.6.2 introduced installation of the archives of `@types` packages and the manifest directory;
0.6.1, 0.6.0, 0.5.0 and 0.4.1 stay immutable, while 0.4.0 and earlier target the former include layout.
The configuration pins one version and its SHA-512 rather than resolving a mutable `latest` channel. An explicit
`DeveloperBootstrapOptions{.environment = url, .integrity = trustedHash}` still selects a different
HTTPS/CORS repository or a same-origin test fixture. Users install no JavaScript tooling.

Expand Down Expand Up @@ -455,7 +461,8 @@ the Worker, cancels polling and aborts staged publication; a publication already
the preview before stopping.
The last successful preview stays available. Browser disconnection also stops the loop.

`wf build`, `wf dev` and `wf test` are in developer distribution 0.6.0 and later; `DeveloperReleaseData.hpp` pins 0.6.2 (published as `developer-v0.6.2`).
`wf build`, `wf dev` and `wf test` are in developer distribution 0.6.0 and later; the default
version and integrity are selected by `DeveloperReleaseData.hpp`.

## Tests (`wf test`)

Expand Down Expand Up @@ -561,7 +568,9 @@ field). `webfront.developer.config` carries `supported: {protocol: [1], api: [1]
`Incompatible WebFront developer environment: api version 2, this application supports 1`; it never falls back. A change
to the callbacks increments `apiVersion` and requires publishing a new bootstrap environment.

The pin, for the release and for the bootstrap of the tests (`cmake/WebFrontBootstrap.cmake`), is 0.6.2: 0.6.0 was the first published environment with a non-interactive mode (`WfDriverPinned` runs `wf init` from it; the starters are not provisioned, only the archive), 0.6.1 fixed `runNonInteractive`, which dropped what a command wrote before it ended (a script's console output, install progress) and kept only its summary, and 0.6.2 reads the archives of `@types` packages and the manifest directory. The other `WfDriver*` cases run the environment built from the current sources
The release pin (`DeveloperReleaseData.hpp`) and test-bootstrap pin are independent;
`cmake/WebFrontBootstrap.cmake` keeps the verified 0.6.2 test bootstrap.
Historically, 0.6.0 was the first published environment with a non-interactive mode (`WfDriverPinned` runs `wf init` from it; the starters are not provisioned, only the archive), 0.6.1 fixed `runNonInteractive`, which dropped what a command wrote before it ended (a script's console output, install progress) and kept only its summary, and 0.6.2 reads the archives of `@types` packages and the manifest directory. The other `WfDriver*` cases run the environment built from the current sources
(the `SelfBuild` cases, assembled by the fixture `DeveloperFixtures`), which may be ahead of the pin: `wf install` and `wf test` on a fixture project (pass, fail,
report file), a starter, an entry module renamed in `environment.json`, an unknown command, the time limit, a wrong integrity,
a missing archive and archives with an incompatible protocol or API. `BootstrapProvisioning` checks the
Expand Down
8 changes: 4 additions & 4 deletions docs/PROJECT_STATUS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ WebFront is a header-only C++23 HTTP/WebSocket core plus a standalone developer
the native adapter with a browser fallback; see the [consumer example](../README.md#use-webfront-in-your-project)
and [frontends](FRONTENDS.md).
- **Developer environment.** `NativeApp::bootstrap("developer")` loads the verified, pinned
environment (0.6.2). Its terminal provides `wf init`, `create`, `install`, `restore`, `run`,
`exec`, `check`, `test`, `build`, `dev`, `preview`, `embed`, `list` and `help`. The manifest and lock describe
environment selected by `DeveloperReleaseData.hpp`. Its terminal provides `wf init`, `create`,
`install`, `restore`, `run`, `exec`, `check`, `test`, `build`, `dev`, `preview`, `embed`, `list` and `help`. The manifest and lock describe
dependencies, entries, providers, scripts and permissions. TypeScript/TSX compilation uses
esbuild-wasm; type checking uses the project's locked TypeScript. Application commands use
`webfront::Commands`. See the [developer reference](DEVELOPER_ENVIRONMENT.md).
Expand All @@ -27,8 +27,8 @@ WebFront is a header-only C++23 HTTP/WebSocket core plus a standalone developer
- **Developer automation (opt-in).** `webfront-agent` provides local stdio MCP and a JSON CLI
for an explicitly launched developer window. Native grants select check/build/test/preview,
bounded inspection and semantic actions. [Automation](AUTOMATION.md) documents provisioning,
lifecycle, limits and the supported MCP profile. It requires a rebuilt compatible environment;
the pinned 0.6.2 archive predates the API. Explicitly shared human windows support authenticated
lifecycle, limits and the supported MCP profile. It requires a compatible environment
(0.6.3 or later), supplied as a rebuilt archive or verified published distribution. Explicitly shared human windows support authenticated
native attachment. This does not discover arbitrary processes or isolate untrusted project code.
- **Maintaining WebFront.** The repository is itself a `wf` project, selected with
`--manifest-dir js/developer`. Build and publish its environment using
Expand Down
49 changes: 49 additions & 0 deletions docs/validation/developer-0.6.3-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Developer distribution 0.6.3 — release preparation

Prepared on 2026-10-29 from the merged automation implementation, `22f6795` (PR #407).
This release branch updates the generated pin and its input checksum. It **does not itself publish
an archive**. Keep the PR as a draft until deployment and the live smoke check pass. The acceptance
report and architecture decision are in PR #411.

## Prepared and verified

- Environment includes automation API v1, shared operation ownership and the final entry-label/dev fixes.
- Four builds (two acceptance outputs, two release outputs including --refresh-bootstrap) produce
identical environment, Life starter, provision and generated header bytes.
- The generated pin matches the built header. Its URL is
https://ambroise-leclerc.github.io/WebFront/developer/0.6.3/environment.tgz.
- 121 developer Jasmine specs, real MCP shared-window and official Python SDK 2.3.0 regressions
pass against these exact candidate bytes. The source baseline passes 357 CEF-off CTest.
- Public 0.6.3 provision was HTTP 404 during preparation. Existing versions are not overwritten.
Pages is configured for gh-pages, root. No publication or tag has been made by this preparation.
- The test bootstrap remains the separately verified published 0.6.2; it is not advanced here.

| Archive | Bytes | SHA-256 |
|---|---:|---|
| environment.tgz | 4095568 | fbf4c4036bd084cf4057d4dbc163cabef6444e002e1684896c4be579ad01337a |
| life-starter.tgz | 25497 | 1a79a9d6660a724ed981c17acba5091eda290301279cdf2916414db391ec9e92 |

Environment SRI:

```text
sha512-3AVF2xKsUfHys5VREA6DmkjiEDKjx9VQtPTrsjdiazzfpNQvbKEjW2ox5Kd2hPeOP5MfcMvbDHQ4SZoO97P5Xg==
```

## Publication gate

Follow [PUBLISHING](../../js/developer/tools/PUBLISHING.md), in this order:

1. Review the release commit and its green Developer packages workflow. Download the
`developer-distribution` artifact and compare the bytes/digests above. The workflow rebuilds
twice, compares the committed pin and runs the developer specs without Node/npm on the host.
2. Publish that reviewed commit with the dedicated `developer-v0.6.3` tag, or the explicit
DeveloperDistribution.yml dispatch with publish=true. Tags also archive a dedicated prerelease.
Do not tag the ADR-only acceptance branch, whose pin deliberately remains on 0.6.2.
3. Verify deployed environment and starter SHA-512 against provision.json and this generated pin,
and check cross-origin response headers. Do not replace a published version if bytes differ.
4. Run the real-engine public mode of developer_integration as documented in PUBLISHING.
Record the tag, publish run, URLs, digests and live smoke result in this PR.
5. Only then make the PR ready and merge the pin. No application should default to an unpublished URL.

The candidate artifacts and green packaging checks establish readiness to publish; they are not
a substitute for checking the actual deployed bytes and browser CORS behavior.
6 changes: 3 additions & 3 deletions include/webfront/system/DeveloperReleaseData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string_view>

namespace webfront::developer::release {
inline constexpr std::string_view version{"0.6.2"};
inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.6.2/environment.tgz"};
inline constexpr std::string_view integrity{"sha512-SYnS6iRdK0VZM1PLECwK9Iwm/I6wxVlpM+1a0IXDs/lZN0y7lSB6hnv4+gSsX+U+aZ600WDXniF4w0LtHJFH/A=="};
inline constexpr std::string_view version{"0.6.3"};
inline constexpr std::string_view environment{"https://ambroise-leclerc.github.io/WebFront/developer/0.6.3/environment.tgz"};
inline constexpr std::string_view integrity{"sha512-3AVF2xKsUfHys5VREA6DmkjiEDKjx9VQtPTrsjdiazzfpNQvbKEjW2ox5Kd2hPeOP5MfcMvbDHQ4SZoO97P5Xg=="};
} // namespace webfront::developer::release
2 changes: 1 addition & 1 deletion js/developer/environment/bundles.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"js/developer/webfront.project.json": "2acbc698cf93d66c4da29030179151211d8d313632dac421683c018a296b5c05",
"js/core/bootstrap/bootstrap.bundle.mjs": "536831257f0fc92e31911841750e1e59247f7c64e756b0fcb878efd9860a741f",
"js/developer/environment/packages.bundle.mjs": "2d62f3fcdece8e898f15814d7e80fc3a27ea062f45514cf8e5c3ae32fd9d26c5",
"include/webfront/system/DeveloperReleaseData.hpp": "567a88fed2839a23c2abad2dd9c2b74afe9934b1e1bdf44ec1099d9332b35c90"
"include/webfront/system/DeveloperReleaseData.hpp": "4feca3d4e06dcc6e81f5ac1c9d7750f733ee96fb31d40f8998956e20c5e621a6"
}
4 changes: 4 additions & 0 deletions js/developer/tools/PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ the same version; a publication (a `developer-v*` tag or a dispatch with `publis
sources are ahead, `wf run pin` requires the header to be exactly the one generated for its version and the deployed
archive at its URL to have its integrity.

A release preparation branch may carry the new pin before the archive exists (for instance
[0.6.3](../../docs/validation/developer-0.6.3-release.md)). Keep its pull request as a draft and
merge it only after the deployed bytes and headers are verified.

1. Merge the changes with the header still on the previous version.
2. On a release branch, run `wf run build build-distribution --refresh-bootstrap` and commit the new header (and the
checksums of `bundles.json`, which cover it).
Expand Down
2 changes: 1 addition & 1 deletion test/unit/AutomationChannelTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,6 @@ SCENARIO("Attachment response deadlines are configurable independently of render
});
ChannelClient impatient{endpoint.path, std::chrono::milliseconds{5}};
REQUIRE_THROWS_AS(impatient.describe(), TransportError);
ChannelClient patient{endpoint.path, std::chrono::milliseconds{500}};
ChannelClient patient{endpoint.path, std::chrono::milliseconds{5000}};
REQUIRE(Object(patient.describe()).string("state") == "ready");
}
Loading