.sandcastle/.env.example should document REHEARSAL_DRIVE_TARGET=rented (phase-4 arming, deferred from #651) #653

Closed
opened 2026-08-22 06:18:48 +00:00 by matou-build-agent · 1 comment

The phase-4 rented-gateway rehearsal Task 7 (#651) asks, among its script edits, that .sandcastle/.env.example document the new drive target — a comment/value pointing at REHEARSAL_DRIVE_TARGET=rented (today it reads REHEARSAL_DRIVE_TARGET=selfhosted at line 60, and REHEARSAL_DRIVE_ISSUE=523 at line 56, a now-closed issue).

Why this is a separate issue: .sandcastle/ is a protected path (#445 tree-fingerprint). A Sandcastle agent editing it would have the change rolled back and the run failed loud, so #651 landed every non-protected part (smoke-private-path.sh --target rented, oc_rented_preflight/oc_rented_cleanup/oc_rented_teardown, the offline test, GOTCHAS #48, STATUS.md) and deferred only this doc line.

Proposed change (a session applies it):

  • .sandcastle/.env.example line ~58-60: add a comment noting rented is a valid target (the phase-4 rented-gateway path — the wizard rents its gateway from the broker mid-drive). When #652 (the phase-4 standing drive) is armed, this becomes REHEARSAL_DRIVE_TARGET=rented alongside REHEARSAL_DRIVE_ISSUE=652, matching the arming ritual in #652's body.

Note this is coupled to the #493/#575 split-brain discipline: the drive-issue value in .env.example is single-sourced with scripts/lib/swarm-identity.sh + the three protected .sandcastle/ script defaults. Arming phase-4 flips all of them together — so this edit is best done as part of the #652 arming, not standalone. Filed from #651 (Task 7) per the CLAUDE.md protected-path rule.

The phase-4 rented-gateway rehearsal Task 7 (#651) asks, among its script edits, that `.sandcastle/.env.example` document the new drive target — a comment/value pointing at `REHEARSAL_DRIVE_TARGET=rented` (today it reads `REHEARSAL_DRIVE_TARGET=selfhosted` at line 60, and `REHEARSAL_DRIVE_ISSUE=523` at line 56, a now-closed issue). **Why this is a separate issue:** `.sandcastle/` is a protected path (#445 tree-fingerprint). A Sandcastle agent editing it would have the change rolled back and the run failed loud, so #651 landed every non-protected part (smoke-private-path.sh `--target rented`, `oc_rented_preflight`/`oc_rented_cleanup`/`oc_rented_teardown`, the offline test, GOTCHAS #48, STATUS.md) and deferred only this doc line. **Proposed change (a session applies it):** - `.sandcastle/.env.example` line ~58-60: add a comment noting `rented` is a valid target (the phase-4 rented-gateway path — the wizard rents its gateway from the broker mid-drive). When #652 (the phase-4 standing drive) is armed, this becomes `REHEARSAL_DRIVE_TARGET=rented` alongside `REHEARSAL_DRIVE_ISSUE=652`, matching the arming ritual in #652's body. Note this is coupled to the #493/#575 split-brain discipline: the drive-issue value in `.env.example` is single-sourced with `scripts/lib/swarm-identity.sh` + the three protected `.sandcastle/` script defaults. Arming phase-4 flips all of them together — so this edit is best done as part of the #652 arming, not standalone. Filed from #651 (Task 7) per the CLAUDE.md protected-path rule.
Author
Member

Ruled by agent under ADR 0174 — veto anytime.

Ruling: landed the proposed change as a two-way door — a comment-only edit to .sandcastle/.env.example (a protected .sandcastle/ path per #445, hence ready-for-session rather than swarm-claimable). No credentials, no security-posture widening, no live-infra action. Revertible by commit; provable by the existing offline suites (env-allowlist-lib-test.sh, run-swarm-env-guard-test.sh, scripts/tests/rehearsal-rented-target-test.sh), all green before and after.

What landed (commit c09a75f4): .sandcastle/.env.example's REHEARSAL_DRIVE_TARGET comment (line ~58) now names rented as the phase-4 path (the wizard rents its gateway from the broker mid-drive, ADR 0189), alongside the existing selfhosted/droplet-default options, and notes the value flips to rented (with REHEARSAL_DRIVE_ISSUE=652) only once #652 arms per its own ritual. As the ticket itself specified, this is doc-only — the actual default stays REHEARSAL_DRIVE_TARGET=selfhosted (#523's phase-3 value); flipping the live defaults is #652's arming act (Ben's !), per the #493/#575 single-sourcing discipline, and out of scope here. STATUS.md updated in the same commit per the repo convention.

Proof: bash .sandcastle/tests/env-allowlist-lib-test.sh (8 scenarios), bash .sandcastle/tests/run-swarm-env-guard-test.sh (4 scenarios), bash scripts/tests/rehearsal-rented-target-test.sh (6 checks) all green — none depend on the exact comment wording, confirming the doc change is inert to existing tooling. bash -n clean on the touched file.

Pushed to main: c09a75f4 (rebased cleanly onto b9f07f76, #654's concurrent commit — merged the two STATUS.md "Last updated" head entries in order).

Advances #653. Closing — the ticket's own scope (a comment noting rented is valid) is fully landed; the value-flip itself is #652's job.

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** landed the proposed change as a two-way door — a comment-only edit to `.sandcastle/.env.example` (a protected `.sandcastle/` path per #445, hence `ready-for-session` rather than swarm-claimable). No credentials, no security-posture widening, no live-infra action. Revertible by commit; provable by the existing offline suites (`env-allowlist-lib-test.sh`, `run-swarm-env-guard-test.sh`, `scripts/tests/rehearsal-rented-target-test.sh`), all green before and after. **What landed (commit `c09a75f4`):** `.sandcastle/.env.example`'s `REHEARSAL_DRIVE_TARGET` comment (line ~58) now names `rented` as the phase-4 path (the wizard rents its gateway from the broker mid-drive, ADR 0189), alongside the existing `selfhosted`/droplet-default options, and notes the value flips to `rented` (with `REHEARSAL_DRIVE_ISSUE=652`) only once #652 arms per its own ritual. As the ticket itself specified, this is **doc-only** — the actual default stays `REHEARSAL_DRIVE_TARGET=selfhosted` (#523's phase-3 value); flipping the live defaults is #652's arming act (Ben's `!`), per the #493/#575 single-sourcing discipline, and out of scope here. `STATUS.md` updated in the same commit per the repo convention. **Proof:** `bash .sandcastle/tests/env-allowlist-lib-test.sh` (8 scenarios), `bash .sandcastle/tests/run-swarm-env-guard-test.sh` (4 scenarios), `bash scripts/tests/rehearsal-rented-target-test.sh` (6 checks) all green — none depend on the exact comment wording, confirming the doc change is inert to existing tooling. `bash -n` clean on the touched file. Pushed to `main`: c09a75f4 (rebased cleanly onto `b9f07f76`, #654's concurrent commit — merged the two `STATUS.md` "Last updated" head entries in order). Advances #653. Closing — the ticket's own scope (a comment noting `rented` is valid) is fully landed; the value-flip itself is #652's job.
Sign in to join this conversation.
No milestone
No project
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
Matou/idss#653
No description provided.