docs(adr): ADR-WULF-010, the stage runner (phase 2, part 1) #16

Merged
neerdoc merged 3 commits from docs/phase-2-runner-adr into main 2026-11-18 09:18:24 +00:00
Owner

Phase 2, part 1: the stage runner ADR

Adds ADR-WULF-010 (accepted), the decisions the stage runner needs that the
stage isolation decision does not make. No code.

  • The script: one stage-run.sh in the shared tooling, run on the host
    from the project: stage-run.sh STAGE [--adapter NAME] [--dry-run].
  • The declaration: stages.yaml at the project root. Per stage: the image,
    the read-only and read-write paths and the paths that must not be visible;
    one common list for every stage. The runner refuses an inconsistent
    declaration and never mounts .git or .env*. Links into a shared module
    are resolved on the host and the real files are mounted.
  • The run: a fresh rootless Podman container per run, a read-only root
    filesystem, the real read-write folders of the project, no network until the
    allow-list exists, a throwaway repository when the stage needs one, and the
    container's exit status as the status of the run.
  • Adapters: a small file per agent (command, environment variable names,
    endpoints, what was verified). No agent is assumed; the first adapter is a
    plain command without a model.
  • Images: a recipe for a base image in the shared tooling, built locally;
    the project names the image of each stage, so an image from another project
    can replace it.
  • Evidence: runs/<UTC time>-<stage>/ with the transcript (credential
    values replaced by ***), the mount list, the command and the exit status.
    Not tracked by git and mounted in no stage.

P2-1 is ticked in docs/roadmap/phase-2-stage-runner.md, in its own commit.
The project stays at effort level tool.

🤖 Generated with Claude Code

## Phase 2, part 1: the stage runner ADR Adds ADR-WULF-010 (accepted), the decisions the stage runner needs that the stage isolation decision does not make. No code. - **The script:** one `stage-run.sh` in the shared tooling, run on the host from the project: `stage-run.sh STAGE [--adapter NAME] [--dry-run]`. - **The declaration:** `stages.yaml` at the project root. Per stage: the image, the read-only and read-write paths and the paths that must not be visible; one `common` list for every stage. The runner refuses an inconsistent declaration and never mounts `.git` or `.env*`. Links into a shared module are resolved on the host and the real files are mounted. - **The run:** a fresh rootless Podman container per run, a read-only root filesystem, the real read-write folders of the project, no network until the allow-list exists, a throwaway repository when the stage needs one, and the container's exit status as the status of the run. - **Adapters:** a small file per agent (command, environment variable names, endpoints, what was verified). No agent is assumed; the first adapter is a plain command without a model. - **Images:** a recipe for a base image in the shared tooling, built locally; the project names the image of each stage, so an image from another project can replace it. - **Evidence:** `runs/<UTC time>-<stage>/` with the transcript (credential values replaced by `***`), the mount list, the command and the exit status. Not tracked by git and mounted in no stage. P2-1 is ticked in `docs/roadmap/phase-2-stage-runner.md`, in its own commit. The project stays at effort level `tool`. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
WulfScience-FOSS/wulf-dev!16
No description provided.