Skip to content

docs: modernize README and move reference material into docs - #2571

Merged
chubes4 merged 1 commit into
mainfrom
docs/modernize-readme
Oct 24, 2026
Merged

chubes4 merged 1 commit into
mainfrom
docs/modernize-readme

Conversation

@chubes4

@chubes4 chubes4 commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

The README had grown to 1,519 lines of reference material. It now runs 173 lines: what WP Codebox is, two quick starts verified against the current build, the CLI commands that describe the live contract (--help, commands --json, schema recipe --json, runtime descriptor, doctor), a map of entry points, artifact bundles, runtime policy, the repo layout and development commands.

Its reference sections are now in docs/ and listed in docs/README.md:

  • docs/cli-reference.md: CLI commands, run lifecycle, previews
  • docs/artifact-bundles.md: bundle layout and runtime evidence attestation
  • docs/runtime-episodes.md
  • docs/wordpress-plugin.md: why a plugin, browser site operations, browser runner
  • docs/host-tool-registry.md, docs/sandbox-workspace-contract.md
  • docs/distribution.md: rewritten against scripts/package-release-artifact.ts and .github/workflows/release.yml

Removed stale content

  • The agent-sandbox-run, agent-sandbox-batch and agent-runtime-probe CLI sections. These are recipe steps, not CLI commands (wp-codebox agent-sandbox-run returns Unknown command). docs/agent-runtime-contract.md is corrected to match.
  • The npm install -g @automattic/wp-codebox-cli and npm publish instructions. The scoped packages aren't published, so installation goes through release assets.
  • Hardcoded lists of commands and abilities that no longer matched commands --json and the registered abilities. The docs now point to those live sources.
  • The v0.4.0 examples and the lead paragraph pointing to the adversarial runtime.

Testing

  • Both README quick starts were run on this branch. wordpress.run-php succeeded. wordpress.browser-probe with profile=low-end-mobile-slow-4g and assert=fcp_ms<=1800 passed (FCP 820 ms).
  • npm run check passes (325/325 smoke). tests/production-boundary-enforcement.test.ts stays green: the public docs keep consumer-neutral vocabulary.
  • Every relative link in README.md and docs/*.md resolves.
  • A script checked every backtick term from the old README against the new README, docs/ and the package and example READMEs. The only terms now missing belong to the removed sections listed above.

AI disclosure

Written by Claude (via the Pi coding agent in a Roadie session). It read the CLI router, command registry, runtime policy, release scripts and workflows, ran the quick starts and npm run check, and rewrote the README and docs. Chris Huber reviewed and directed the work.

The README was 1,519 lines of reference material. It now leads with what WP Codebox is, two verified quick starts, and the self-describing CLI commands, and links to docs for depth.

Reference sections move into docs/ (cli-reference, artifact-bundles, runtime-episodes, wordpress-plugin, host-tool-registry, sandbox-workspace-contract, distribution) and are indexed in docs/README.md. Removed stale content: the agent-sandbox-run, agent-sandbox-batch and agent-runtime-probe CLI sections (these are recipe steps, not CLI commands), the npm install instructions (the packages are not published), and hardcoded command and ability lists that had drifted from commands --json and the registered abilities.
@chubes4
chubes4 marked this pull request as ready for review October 24, 2026 09:43
@chubes4
chubes4 merged commit 3ba4c07 into main Oct 24, 2026
5 checks passed
@chubes4
chubes4 deleted the docs/modernize-readme branch October 24, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant