Skip to content

Virga stands alone: the build document runs, its own workspace, and the gaps - #1

Merged
pullely merged 5 commits into
mainfrom
fix/stands-alone
Oct 1, 2026
Merged

pullely merged 5 commits into
mainfrom
fix/stands-alone

Conversation

@pullely

@pullely pullely commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Split out of sourceplane/cirrus, this tree ran its own workflows and its own bootstrap tooling as a repository root for the first time. Four things were wrong that could not be seen from inside Cirrus. The first means no bootstrap from this repository could have started. This change also attaches the repository to its own workspace and records what is still unproven.

1. No released orun would run the build document

As first pushed, repo-blueprint.yaml was refused at phase one:

✕ phases[0] (01-scaffold) hooks[9] (land): action orun.pr/land@v1 has no parameter "repo"
✕ input "domain" has unknown type "bool"

All eight orun.pr/land@v1 hooks passed a repo the action has never taken (checked at v2.58.15, v2.60.0, v2.65.0 and v2.71.0; Cirrus does not pass it). repoPrivate and domain were typed bool, where orun's word is boolean. Every gate was green, because every gate read the document with PyYAML and none asked orun.

testing/placement.test.sh asks. It places the whole blueprint with hooks off, brands the tree as 01-scaffold's hooks do, and checks what the product carries. Baseline CI runs it in a new blueprint-runs job pinned to the bootstrap floor, v2.60.0.

2. A product's secret refs named the baseline's workspace

rebrand.mjs kept lumen as the workspace segment of every secret://<workspace>/<project>/… ref whenever orunWorkspace was a ws_… id. The blueprint's input is from: workspace, so it is always a ws_… id. Every product built from Virga therefore carried secret://lumen/<repo>/…, which the platform refuses:

Ref workspace "lumen" does not name this run's workspace

Cirrus already fixed this rule. The port did not carry the fix. testing/tenancy.test.sh rebrands a copy three ways and reads the refs back.

3. Baseline CI's migration-checksums lane was red on the first push

setup-node@v5 reads packageManager from the root package.json, turns pnpm caching on by itself, and fails looking for a pnpm the job never installs. A nested .github/ is inert, so this lane had never run. Fixed with package-manager-cache: false.

4. testing/retouch.test.sh failed on macOS on its own plumbing

head -n -1 is GNU-only. sed '$d' says the same thing everywhere. Cirrus main carries the same line.

5. Virga claims its own workspace

intent.yaml now declares ws_F6PEAMKD (virga, under the openproduct account) instead of ws_REPLACE_ME, and the 18 secret refs say secret://virga/virga/… instead of secret://lumen/virga/…. The refs use the slug on purpose: the rebrand's scoped rule would not match a ws_… id there.

The repository is allow-listed in that workspace, and one CI run with ORUN_CI=true reached the platform: run 36834192908 planned 12 jobs and each was answered Secret not found. ORUN_CI is unset again, because no secret has been minted yet.

The repository was made public on 2026-10-01, because an openproduct workspace is public and requires its repositories to be. Cloudflare is now connected in the workspace.

6. The gaps are written down

docs/GAPS.md lists what is proven and what is not. The ones that block a first bootstrap:

  • No phase has run with its hooks on.
  • No rehearsal, so no tag and no registry row. Left out deliberately for now.
  • The tag ruleset has no bypass actor, so tag.yml cannot create a tag even for a proven commit.
  • The workspace's GitHub connection is to pullely, not sourceplane, and the Cloudflare token's D1 Write permission is unchecked.

Verified

  • All eight gates pass locally on macOS: coverage, phases, manifest, leak, retouch, tag-gate, tenancy, placement.
  • placement passes with orun v2.60.0 and v2.71.0, and fails against the document as first pushed.
  • A product placed from this branch and branded passes its own install, wire:fixture, typecheck, lint, test and build.

🤖 Generated with Claude Code

varahul and others added 2 commits October 1, 2026 05:58
…e worst

Split out of sourceplane/cirrus, this tree ran its own workflows and its own
bootstrap tooling as a repository root for the first time. Three things were
wrong that could not be seen from inside Cirrus.

1. A product's secret refs named the baseline's workspace.
   rebrand.mjs kept `lumen` as the workspace segment of every
   `secret://<workspace>/<project>/…` ref whenever `orunWorkspace` was a ws_…
   id — and the blueprint's input (`from: workspace`) is always a ws_… id. So
   every product built from Virga carried `secret://lumen/<repo>/…`, which the
   platform refuses: `Ref workspace "lumen" does not name this run's
   workspace`. Cirrus fixed this rule; the port did not carry the fix.
   Now: explicit slug, else the workspace as given, else the repo name.
   `testing/tenancy.test.sh` rebrands a copy three ways and reads the refs
   back; it fails on the old rule and runs in Baseline CI.

2. Baseline CI's `migration-checksums` lane was red on the first push.
   setup-node@v5 reads `packageManager` from the root package.json and turns
   pnpm caching on, then fails looking for a pnpm the job never installs. A
   nested `.github/` is inert, so this lane had never run.
   `package-manager-cache: false`; the script needs node and nothing else.

3. `testing/retouch.test.sh` failed on macOS on its own plumbing.
   `head -n -1` is GNU-only. `sed '$d'` says the same thing everywhere.

Not in this change: `intent.yaml` still says `ws_REPLACE_ME`, and the
component.yaml refs still say `secret://lumen/virga/…`. Both wait on the
workspace this repository is attached to.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
As pushed, `repo-blueprint.yaml` was refused by every released orun at the
first phase:

  ✕ phases[0] (01-scaffold) hooks[9] (land): action orun.pr/land@v1 has no
    parameter "repo"
  ✕ input "domain" has unknown type "bool"

All eight `orun.pr/land@v1` hooks passed a `repo` the action has never taken
(checked at v2.58.15, v2.60.0, v2.65.0 and v2.71.0; Cirrus's hooks do not pass
it), and `repoPrivate` / `domain` were typed `bool` where orun's word is
`boolean`. A bootstrap would have failed before placing a file — with every
gate green, because every gate read the document with PyYAML and none asked
orun.

`testing/placement.test.sh` asks. It places the whole blueprint with hooks
off, which parses the document, validates every hook against the action
registry and runs orun's own validate + plan --dry-run on the placed tree;
then brands the tree as 01-scaffold's hooks do (the `orun-workspace` hook is
extracted from the document and run, not re-typed) and checks the product
carries no factory path and that intent.yaml and every secret ref name the
build's workspace. Baseline CI runs it in a new `blueprint-runs` job pinned to
the bootstrap floor, v2.60.0.

Verified locally with orun v2.60.0 and v2.71.0; fails against the document as
first pushed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pullely pullely changed the title Virga stands alone: three things the split exposed, and a gate for the worst Virga stands alone: the build document runs, and four things the split exposed Oct 1, 2026
varahul and others added 2 commits October 1, 2026 13:35
`intent.yaml` said `ws_REPLACE_ME`, which failed loudly on purpose, and the
eighteen `secret://` refs named `lumen` — the workspace Cirrus declares.
This repository now has a workspace of its own, `virga`, under the openproduct
account, and both point at it.

The refs use the workspace SLUG (`secret://virga/virga/…`), not the ws_… id:
rebrand.mjs's scoped rule matches `[a-z0-9-]+` in that segment, so an id there
would not be rewritten and a product would keep this tenant. The workspace and
the repo now share a word, which is the case the rule's ordering exists for;
`testing/tenancy.test.sh` and `testing/placement.test.sh` both rebrand this
tree and read the refs back, and both pass.

Attached and checked from a clone: `orun workspace` resolves ws_F6PEAMKD from
intent.yaml, `orun cloud check` reports sourceplane/virga allow-listed, and
`orun plan` resolves 16 components into 33 jobs.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
`docs/GAPS.md` records the state at the split: what was run and passed, and
what has never been run, each with the thing that would prove it. Written so
it can be shortened: an entry is deleted when it stops being true.

The short version. Placement, the static contract, the attachment to workspace
`virga` (ws_F6PEAMKD) and a credential-free CI run reaching the platform are
proven. Not proven: any phase with its hooks on; a rehearsal, and so a tag and
a registry row (left out deliberately for now); a bypass actor for the tag
ruleset; and a workspace that can actually bootstrap — it is public while this
repository is private, has no Cloudflare connection, and its GitHub connection
is to the wrong account.

`ORUN_CI` was set to prove the CI path and is unset again: with no secrets
minted, every run lane fails at secret resolution, which is the pre-bootstrap
red the variable exists to prevent.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pullely pullely changed the title Virga stands alone: the build document runs, and four things the split exposed Virga stands alone: the build document runs, its own workspace, and the gaps Oct 1, 2026
Two entries stopped being true and are removed, as the file asks. The
repository was made public to satisfy the openproduct covenant, and the
`virga` workspace now inherits a Cloudflare connection: `orun baseline check
cirrus` answers `ready to build` there.

What that does not prove stays written down: the token's D1 Write permission
group (only a mint shows it), a GitHub connection on the account that owns the
repository, an admin API key, and any secret at all.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@pullely
pullely merged commit ae0fe94 into main Oct 1, 2026
6 checks passed
@pullely
pullely deleted the fix/stands-alone branch October 1, 2026 09:10
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.

2 participants