Contributing
This documentation site is built with the shared dyne-vitepress theme.
Local preview
npm ci
npm run dev2
Production build
npm run buildFor the project site at https://dyne.github.io/gestalt/, verify the subpath build too:
BASE_PATH=/gestalt/ npm run buildRefresh source snapshots
Copy the current public documentation from the sibling gestalt-agents and gestalt-mobile repositories into reference/upstream/, then build and repair any links that no longer resolve. Internal Org plans, agent-only repository instructions, generated results, and protocol fixture dumps are not published as user documentation.
Validate scripts
npm testThe focused Bash tests use isolated temporary homes and mocked external commands. They do not alter a developer's Codex profile or global npm packages.
The default suite covers installation and updates, managed permissions, scratch ownership, large Codex history responses and process shutdown. PR and release tests run in two sequential shards, each with a five-minute limit so a hung subprocess cannot hold publication for an hour. Run either shard locally with npm test -- --shard 1/2 or npm test -- --shard 2/2; ordinary npm test runs both. The repeated twenty-reader shutdown stress loop was removed; individual signal, EOF and resistant-descendant regressions remain.
Native Codex, terminal and protocol-probe integration tests run explicitly:
npm run test:integrationThese suites require their native runtime prerequisites and the configured host test runner when they create a nested Codex sandbox. They are not part of npm test or automatic publication. Installed-release Serena checks additionally require SERENA_REAL_INSTALL; real-browser checks retain their existing opt-in commands. Skipped optional checks do not establish installed-runtime coverage.
GitHub Pages deployment
Pull requests targeting main run installation-tooling tests and a documentation build through the separate Pull request checks workflow. It uses read-only repository permissions and runs without release credentials.
The Pages workflow runs on pushes to main and can also be started manually. It derives BASE_PATH from GitHub Pages configuration, so project-site routes and assets work under the repository subpath. Repository administrators must select GitHub Actions as the Pages source once before the first deployment.
The same workflow versions the manager using Conventional Commits and the ietf-tools/semver-action. feat and feature commits increment the minor version; fix, bugfix, perf, refactor, test, and tests commits increment the patch version. When a bump is due, the workflow sets GESTALT_CLI_VERSION to the calculated release version, commits the manager if it changed, and creates the matching vMAJOR.MINOR.PATCH tag. The versioned manager is distributed through GitHub Pages and the public npm package @jaromil/gestalt. The npm job checks out that exact release tag, tests a packed offline installation, and uses GitHub Actions OIDC authentication, following Mobile's publication model. It runs independently of Pages deployment. See npm release operations.
The manager checksum is not tracked. The installer and updater download one manager file and validate its Bash syntax and version declaration. Pages generates a compatibility checksum only in the build output for older installed wrappers.
Feature PRs do not need to bump the manager version. The Pages workflow owns the published version and accepts source versions that differ from the previous tag.
The Pages job enables unprivileged user namespaces on its disposable hosted Linux runner before native Codex tests, matching OpenAI's Codex Action setup. A sandbox smoke check runs first so runner restrictions fail with the original Codex diagnostic rather than a generic Serena backend error. This setup does not change developer installations or self-hosted runners.