diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 26b143ab..2856322b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,39 +15,49 @@ contribution unmergeable no matter how good it is. ## Getting set up +The public product is headless v0.1: the Python engine, `heph` CLI, MCP server, +and packaged agent sidecar. `web/` is an in-tree **optional contributor +workspace** (React + three.js client), not the product. Skip it unless you are +changing the web client or running Gate G4. See the [README +Status](README.md#status). + ```console $ git clone https://github.com/autonome-research/hephaestus && cd hephaestus $ uv sync --dev # Python workspace $ pnpm --dir agent install --frozen-lockfile # the TypeScript agent -$ pnpm --dir web install --frozen-lockfile # the web workspace client ``` -Python is driven with `uv run …`; the two Node packages with -`pnpm --dir agent …` and `pnpm --dir web …`. They are separate packages with -separate lockfiles, not members of one root workspace (`repo_conventions.md`, -"Stage 4 `web/` accepted versions"). +Python is driven with `uv run …`; the agent package with `pnpm --dir agent …`. +They are separate packages with separate lockfiles, not members of one root +workspace (`repo_conventions.md`, "Stage 4 `web/` accepted versions"). Running the engine tests needs bubblewrap on Linux x86_64 — see [docs/install.md](docs/install.md) for what each capability requires and what fails closed without it. -Gate G4's browser suite has two extra prerequisites, both once per machine: - -```console -$ pnpm --dir web exec playwright install chromium -$ pnpm --dir web build # `heph serve --web` serves web/dist at / -$ pnpm --dir web test:e2e # the Gate G4 command; see web/e2e/README.md -``` +The default local checks (no `web/`): ```console $ uv run ruff check . && uv run ruff format --check . $ uv run pyright opstore core server $ uv run pytest -m "not slow" # add -m slow for the wheel lanes $ pnpm --dir agent typecheck && pnpm --dir agent test -$ pnpm --dir web typecheck && pnpm --dir web lint && pnpm --dir web test $ uv run python scripts/docs_check.py # links, paths, and §refs $ uv run python scripts/license_headers.py --check ``` +### Optional: `web/` client + +Public v0.1 is still headless. Install and test `web/` only if you are changing +that tree or running Gate G4 (`heph serve --web` serves `web/dist` at `/`). + +```console +$ pnpm --dir web install --frozen-lockfile # the web workspace client +$ pnpm --dir web exec playwright install chromium +$ pnpm --dir web build # `heph serve --web` serves web/dist at / +$ pnpm --dir web typecheck && pnpm --dir web lint && pnpm --dir web test +$ pnpm --dir web test:e2e # the Gate G4 command; see web/e2e/README.md +``` + ## The clean-room boundary This project derives from **observed behavior** of a commercial product — screen diff --git a/README.md b/README.md index 934ca3c9..6d9c5e20 100644 --- a/README.md +++ b/README.md @@ -93,20 +93,29 @@ hephaestus/ ├── core/ Python: CAD executor, kernel, render, checks + opstore adapters ├── agent/ TypeScript: Pi SDK runtime + thread-phase workflows ├── server/ Python: MCP/HTTP API + Node agent bridge -├── web/ TypeScript: React + three.js client +├── web/ TypeScript: React + three.js client (optional contributor workspace; not the v0.1 product) ├── registries/ skills/, parts/, materials/, dfm/ └── corpus/ golden prompts + expected assertions ``` ## Status -Under active construction, engine-first. Stages S through 3 are complete with +Public product is **headless v0.1.0** (git tag `v0.1.0-headless`). Engine-first: +the `heph` CLI and MCP server are the product — no browser dependency. The tag +exists on this repository; there is **no PyPI package** and no GitHub Release. +Install from the tag ([Install](#install)). Stages S through 3 are complete with green gates (durability substrate, CAD engine, render service, agent runtime, MCP server); the validation ladder (Stage 2V) and manufacturing depth (Stage 6) -follow, then a **headless v0.1 release** — wheel, `heph` CLI, MCP server and -packaged agent sidecar, no browser dependency — before any web UI work begins -(`mission_plan.md`, 2026-07-26 ordering amendment). Everything built so far is -headless and deployable into any MCP client today. +continue. + +`web/` is in-tree as an **optional contributor workspace** (React + three.js +client). It is not the public v0.1 product. Contributors who are not changing +the web client can skip it; [CONTRIBUTING.md](CONTRIBUTING.md) marks those +steps optional. + +The 2026-07-26 `mission_plan.md` ordering amendment still holds as the *product* +story: ship CLI + MCP before treating a browser UI as the product. The `web/` +tree existing for contributors does not change that. Originally documented as: pre-implementation. `mission_plan.md` is the operative document: a staged droid mission in which every stage gates on machine-checkable evidence @@ -119,3 +128,40 @@ platform. v0.1 agent/server script execution requires either native Linux bubblewrap isolation or a capability-tested Docker/Podman/OrbStack-compatible OCI backend (including on macOS); it fails closed when neither is available. No stage advances on human vibes. + +## Install + +Hephaestus is **not on PyPI**. `pip install hephaestus-cad` against the Python +Package Index 404s. Install the `hephaestus-cad` aggregate from this repository +at tag `v0.1.0-headless`. + +The repo root is a uv workspace, not a package. `hephaestus-cad` lives in +`packaging/` and depends on four in-repo distributions (`hephaestus-core`, +`hephaestus-server`, `hephaestus-contract`, `opstore`) that are also unpublished, +so they must come from the same tag — not from the index. + +```console +$ uv pip install \ + "opstore @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=opstore" \ + "hephaestus-contract @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=contract" \ + "hephaestus-core @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=core" \ + "hephaestus-server @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=server" \ + "hephaestus-cad @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=packaging" +$ heph --version +heph 0.1.0 +``` + +```console +$ pip install \ + "opstore @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=opstore" \ + "hephaestus-contract @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=contract" \ + "hephaestus-core @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=core" \ + "hephaestus-server @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=server" \ + "hephaestus-cad @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=packaging" +$ heph --version +heph 0.1.0 +``` + +Python 3.11 through 3.14. Capability tiers (engine vs sandbox vs agent/Node) +and the `bench` extra: [docs/install.md](docs/install.md). A checkout of the +tag plus `uv sync` is the contributor path — [CONTRIBUTING.md](CONTRIBUTING.md). diff --git a/docs/install.md b/docs/install.md index 28dc30db..b84fbe26 100644 --- a/docs/install.md +++ b/docs/install.md @@ -5,21 +5,47 @@ SPDX-License-Identifier: Apache-2.0 # Install -Hephaestus ships as one PyPI distribution, `hephaestus-cad`. The import package -is `hephaestus` regardless (`repo_conventions.md`), and the CLI binary is -`heph`. +The public product is the **headless** `hephaestus-cad` aggregate: CLI `heph`, +MCP server, packaged agent sidecar. The import package is `hephaestus` +regardless (`repo_conventions.md`). + +**Not on PyPI.** Tag `v0.1.0-headless` exists on this repository; the name +`hephaestus-cad` is not published to the Python Package Index, so +`pip install hephaestus-cad` / `pipx install hephaestus-cad` / +`uv tool install hephaestus-cad` against the index 404. Install from this +GitHub repository at that tag. + +The repo root is a uv workspace (`hephaestus-workspace`, `package = false`), +not an installable project. `hephaestus-cad` lives in `packaging/` and depends +on four in-repo distributions that are also unpublished. Pull them from the +same tag — otherwise the installer looks on PyPI and 404s. + +```console +$ uv pip install \ + "opstore @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=opstore" \ + "hephaestus-contract @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=contract" \ + "hephaestus-core @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=core" \ + "hephaestus-server @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=server" \ + "hephaestus-cad @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=packaging" +$ heph --version +heph 0.1.0 +``` ```console -$ pipx install hephaestus-cad +$ pip install \ + "opstore @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=opstore" \ + "hephaestus-contract @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=contract" \ + "hephaestus-core @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=core" \ + "hephaestus-server @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=server" \ + "hephaestus-cad @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=packaging" $ heph --version heph 0.1.0 ``` -`pipx` is the recommended path because `heph` is a tool, not a library you -import into your own project: pipx gives it a private virtual environment and -puts one binary on your `PATH`. `uv tool install hephaestus-cad` does the same -thing. Plain `pip install hephaestus-cad` into an environment you manage works -identically — nothing in Hephaestus inspects how it was installed. +`heph` is a tool, not a library you import into your own project. Prefer a +venv (or `uv pip install` into one uv manages) so one binary lands on `PATH`. +Nothing in Hephaestus inspects how it was installed. A clone of the tag plus +`uv sync` is the contributor path — [CONTRIBUTING.md](../CONTRIBUTING.md). Python 3.11 through 3.14 are supported. @@ -37,19 +63,22 @@ version. | `opstore` | The durable op/WAL store the project store is built on (internal component, not a separate product) | The evaluation harness is deliberately **not** installed by default — it pulls -dataset tooling no one modeling a bracket should have to download: +dataset tooling no one modeling a bracket should have to download. Extra +`bench` is the unpublished `hephaestus-bench` member (`bench/` on the same tag): ```console -$ pipx install 'hephaestus-cad[bench]' # adds `heph bench` and `heph bench cadgenbench` +$ pip install \ + "hephaestus-bench @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=bench" \ + "hephaestus-cad[bench] @ git+https://github.com/autonome-research/hephaestus.git@v0.1.0-headless#subdirectory=packaging" ``` -`heph bench` simply does not appear in `heph --help` without it. See -[cli.md](cli.md). +(Plus the four members above if they are not already installed.) `heph bench` +simply does not appear in `heph --help` without it. See [cli.md](cli.md). ## What each capability requires Hephaestus has three capability tiers and they have genuinely different -prerequisites. Installing the wheel gets you the first one everywhere. +prerequisites. Installing the distribution gets you the first one everywhere. ### 1. The engine — everywhere, no Node @@ -119,18 +148,18 @@ $ heph check --json # inside a project: the engine path, no Node $ heph agent --project . # the agent path: Node + packaged sidecar + a provider config ``` -If you want to confirm the wheel is using *its own* sidecar rather than +If you want to confirm the install is using *its own* sidecar rather than something on your machine, ask for the resolution directly: ```console $ python -c "from hephaestus.agent_bridge.sidecar import resolve_sidecar; \ r = resolve_sidecar(); print(r.source, r.root)" -packaged /home/you/.local/pipx/venvs/hephaestus-cad/lib/python3.13/site-packages/hephaestus/agent_bridge/_sidecar +packaged /home/you/.venv/lib/python3.13/site-packages/hephaestus/agent_bridge/_sidecar ``` -`source` is `packaged` for any installed wheel. It is `development` only in a -checkout of this repository that has no packaged sidecar, and `override` only -when you set `HEPHAESTUS_SIDECAR` yourself. +`source` is `packaged` for any installed distribution. It is `development` only +in a checkout of this repository that has no packaged sidecar, and `override` +only when you set `HEPHAESTUS_SIDECAR` yourself. ## Environment variables