rehearsal-4: design tier — ADR 0189 rental terms while alpha + DDR 0190 S4a card without a payment edge #645

Closed
opened 2026-08-22 04:12:27 +00:00 by ben · 1 comment
Owner

Arc: #183 rehearsal phase 4 — rented gateway (S4a). Spec: docs/superpowers/specs/2026-08-21-183-phase-4-rented-gateway-rehearsal-design.md. Plan: docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.md (read its Global Constraints first — they apply to this task). This ticket's body is the plan's task verbatim. Phase-3 precedent: #515–#523.

Task 1: Design tier — ADR 0189 (rental terms amendment) + DDR 0190 (S4a without payment)

Files:

  • Create: docs/adr/0189-rented-gateways-free-while-alpha-ttl-reaped-pubkey-in-release-on-abandon.md
  • Create: docs/adr/0190-design-s4a-rent-card-states-alpha-terms-no-payment-edge.md
  • Modify: docs/adr/0047-matou-rental-broker-for-rented-gateways.md (add "Amended by ADR 0189" line under the frontmatter)
  • Modify: docs/adr/0142-design-wizard-reopens-for-access-and-address.md §4 (one sentence: abandonment now releases — ADR 0189)
  • Modify: docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html (drop the data-field="payment" block; provider/region become read-only offer facts; button copy Rent this server; add a data-field="terms" line; add data-status="rent-error" retriable error block)
  • Modify: docs/ux/wireframes/p1-founding/p1-s4-access-reopened-abandoned-rental.html (copy: "released — it no longer exists and nothing is owed" replaces "still exists and stays billed")
  • Modify: docs/ux/flows/p1-founding.mermaid S4→S4a edge label → "picks a rented gateway — the Matou broker provisions it from the gateway image, free while alpha", plus a dated provenance comment
  • Modify: docs/architecture/01-system-context.md + 02-containers.md (broker now "rents + releases gateways"; ADR 0042 same-commit rule)
  • Modify: STATUS.md

Interfaces:

  • Produces: the wire vocabulary every later task uses — GatewayOffer{Preset, Provider, Region, TTL, Terms}, routes /v1/gateways/{offer,rent,renew,release}, selectors data-action="option:rented", data-action="rent", data-field="terms", data-status="rent-error", data-status="address".

  • Step 1: Write ADR 0189 — frontmatter status: accepted # 2026-08-21 — ruled by Ben (phase-4 scoping, spec 2026-08-21-183-phase-4). Body sections: Decided (the five rulings 1/4/5/6 + TTL default 24h, renew by the gateway heartbeat's claim-secret bearer, reap by the broker); Rejected (Stripe test mode; rehearsal-only flag; broker-returned root key); Consequences (broker gains a Provider port + ledger; app pubkey in RentRequest; ReopenAccess releases; GA pricing still deferred, eject route untouched — nothing in the free tier may make leaving harder).

  • Step 2: Write DDR 0190 — frontmatter status: accepted # 2026-08-21 — design ruling 8, Ben reviews. Decisions: (1) S4a shows preset · provider · region · terms as offer data (no payment field); (2) the single action is Rent this server; (3) failure = in-place retriable data-status="rent-error" with the broker's stage + message, draft untouched; (4) success auto-fills the IP and lands S5 (data-status="address" visible); (5) abandoned-rental copy says released.

  • Step 3: Apply the wireframe, flow, ADR 0047/0142 and architecture edits listed in Files.

  • Step 4: Verify — git diff --stat shows every file above; open both wireframes in a browser (or python3 -m http.server) and eyeball: no "Stripe", no "$12/mo"; grep -n 'Stripe' docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html → no output.

  • Step 5: Commit — git commit -m "rehearsal-4: ADR 0189 rental terms while alpha + DDR 0190 S4a card without a payment edge (#645)" with the STATUS.md lead updated.

**Arc:** #183 rehearsal phase 4 — rented gateway (S4a). Spec: `docs/superpowers/specs/2026-08-21-183-phase-4-rented-gateway-rehearsal-design.md`. Plan: `docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.md` (read its **Global Constraints** first — they apply to this task). This ticket's body is the plan's task verbatim. Phase-3 precedent: #515–#523. ### Task 1: Design tier — ADR 0189 (rental terms amendment) + DDR 0190 (S4a without payment) **Files:** - Create: `docs/adr/0189-rented-gateways-free-while-alpha-ttl-reaped-pubkey-in-release-on-abandon.md` - Create: `docs/adr/0190-design-s4a-rent-card-states-alpha-terms-no-payment-edge.md` - Modify: `docs/adr/0047-matou-rental-broker-for-rented-gateways.md` (add "Amended by ADR 0189" line under the frontmatter) - Modify: `docs/adr/0142-design-wizard-reopens-for-access-and-address.md` §4 (one sentence: abandonment now releases — ADR 0189) - Modify: `docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html` (drop the `data-field="payment"` block; provider/region become read-only offer facts; button copy `Rent this server`; add a `data-field="terms"` line; add `data-status="rent-error"` retriable error block) - Modify: `docs/ux/wireframes/p1-founding/p1-s4-access-reopened-abandoned-rental.html` (copy: "released — it no longer exists and nothing is owed" replaces "still exists and stays billed") - Modify: `docs/ux/flows/p1-founding.mermaid` S4→S4a edge label → `"picks a rented gateway — the Matou broker provisions it from the gateway image, free while alpha"`, plus a dated provenance comment - Modify: `docs/architecture/01-system-context.md` + `02-containers.md` (broker now "rents + releases gateways"; ADR 0042 same-commit rule) - Modify: `STATUS.md` **Interfaces:** - Produces: the wire vocabulary every later task uses — `GatewayOffer{Preset, Provider, Region, TTL, Terms}`, routes `/v1/gateways/{offer,rent,renew,release}`, selectors `data-action="option:rented"`, `data-action="rent"`, `data-field="terms"`, `data-status="rent-error"`, `data-status="address"`. - [ ] **Step 1: Write ADR 0189** — frontmatter `status: accepted # 2026-08-21 — ruled by Ben (phase-4 scoping, spec 2026-08-21-183-phase-4)`. Body sections: *Decided* (the five rulings 1/4/5/6 + TTL default 24h, renew by the gateway heartbeat's claim-secret bearer, reap by the broker); *Rejected* (Stripe test mode; rehearsal-only flag; broker-returned root key); *Consequences* (broker gains a Provider port + ledger; app pubkey in `RentRequest`; `ReopenAccess` releases; GA pricing still deferred, eject route untouched — nothing in the free tier may make leaving harder). - [ ] **Step 2: Write DDR 0190** — frontmatter `status: accepted # 2026-08-21 — design ruling 8, Ben reviews`. Decisions: (1) S4a shows preset · provider · region · terms as **offer data** (no payment field); (2) the single action is `Rent this server`; (3) failure = in-place retriable `data-status="rent-error"` with the broker's stage + message, draft untouched; (4) success auto-fills the IP and lands S5 (`data-status="address"` visible); (5) abandoned-rental copy says released. - [ ] **Step 3: Apply the wireframe, flow, ADR 0047/0142 and architecture edits** listed in Files. - [ ] **Step 4: Verify** — `git diff --stat` shows every file above; open both wireframes in a browser (or `python3 -m http.server`) and eyeball: no "Stripe", no "$12/mo"; `grep -n 'Stripe' docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html` → no output. - [ ] **Step 5: Commit** — `git commit -m "rehearsal-4: ADR 0189 rental terms while alpha + DDR 0190 S4a card without a payment edge (#645)"` with the STATUS.md lead updated.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: this ticket's design-tier work (ADR 0189 + DDR 0190) is a two-way door — both artifacts are revertible by commit, and DDR 0190 is exactly the draft-then-review shape Ben's own ruling 8 in the phase-4 spec already named ("I draft the DDR + wireframe amendment, Ben reviews — needs-design + ready-for-session, auto-accept on his nod"). This extends the #514/#388 design-tier auto-accept precedent (ADR 0174 rule 1). Landed both as status: accepted per the plan's frontmatter instructions; Ben's nod closes the loop, a veto reverts commit 42cfa0a9.

What landed (commit 42cfa0a9, pushed to origin/main):

  • docs/adr/0189-rented-gateways-free-while-alpha-ttl-reaped-pubkey-in-release-on-abandon.md — rented gateways free while alpha, TTL-reaped (default 24h, renewed by the gateway heartbeat's claim-secret bearer, reaped by the broker); app pubkey rides the rent request, no key returned; abandonment releases. Rejects Stripe test mode, a rehearsal-only broker flag, and a broker-returned root key.
  • docs/adr/0190-design-s4a-rent-card-states-alpha-terms-no-payment-edge.md — S4a renders offer data (preset/provider/region/terms), one rent action, an in-place retriable rent-error, success auto-fills the address; abandoned-rental copy says released.
  • docs/adr/0047-*.md — "Amended by ADR 0189" pointer under the frontmatter.
  • docs/adr/0142-*.md §4 — one-sentence amendment: abandonment now releases.
  • docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html — payment field dropped; provider/region become read-only offer facts (DigitalOcean/Sydney, per ADR 0048 — replaces the stale "Hetzner" placeholder and resolves its open question); data-field="terms" added; button is data-action="rent" ("Rent this server"); data-status="rent-error" retriable block added.
  • docs/ux/wireframes/p1-founding/p1-s4-access-reopened-abandoned-rental.html — copy changed to "released — it no longer exists and nothing is owed".
  • docs/ux/flows/p1-founding.mermaid — S4→S4a edge label drops "paid by Stripe" for the alpha-terms wording, dated provenance comment added.
  • docs/architecture/01-system-context.md + 02-containers.md — broker described as "rents + releases gateways", ADR 0189 cross-referenced (ADR 0042 same-commit rule).
  • STATUS.md — header lead + milestone log entry.

Proof:

  • git diff --stat (pre-commit) showed exactly the 8 files the ticket listed as Modified, plus the 2 new ADR/DDR files.
  • grep -n 'Stripe' docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html → no output (verified before commit; the one rendered "Stripe" mention in an HTML comment was reworded to "payment provider" specifically to satisfy this literal check).
  • Verified programmatically (HTML comments stripped) that neither wireframe's rendered content contains "Stripe", "$12/mo", or the old "still exists and stays billed" copy.
  • git push origin main succeeded (7d16145b..42cfa0a9).

This closes task 1 of 8 in docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.md. Tickets #646–#651 build against the wire vocabulary this lands (GatewayOffer{Preset, Provider, Region, TTL, Terms}, routes /v1/gateways/{offer,rent,renew,release}, the selector set named in the ticket's Interfaces block).

Ruled by agent under ADR 0174 — veto anytime. **Ruling:** this ticket's design-tier work (ADR 0189 + DDR 0190) is a two-way door — both artifacts are revertible by commit, and DDR 0190 is exactly the draft-then-review shape Ben's own ruling 8 in the phase-4 spec already named ("I draft the DDR + wireframe amendment, Ben reviews — needs-design + ready-for-session, auto-accept on his nod"). This extends the #514/#388 design-tier auto-accept precedent (ADR 0174 rule 1). Landed both as `status: accepted` per the plan's frontmatter instructions; Ben's nod closes the loop, a veto reverts commit `42cfa0a9`. **What landed** (commit `42cfa0a9`, pushed to `origin/main`): - `docs/adr/0189-rented-gateways-free-while-alpha-ttl-reaped-pubkey-in-release-on-abandon.md` — rented gateways free while alpha, TTL-reaped (default 24h, renewed by the gateway heartbeat's claim-secret bearer, reaped by the broker); app pubkey rides the rent request, no key returned; abandonment releases. Rejects Stripe test mode, a rehearsal-only broker flag, and a broker-returned root key. - `docs/adr/0190-design-s4a-rent-card-states-alpha-terms-no-payment-edge.md` — S4a renders offer data (preset/provider/region/terms), one `rent` action, an in-place retriable `rent-error`, success auto-fills the address; abandoned-rental copy says released. - `docs/adr/0047-*.md` — "Amended by ADR 0189" pointer under the frontmatter. - `docs/adr/0142-*.md` §4 — one-sentence amendment: abandonment now releases. - `docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html` — payment field dropped; provider/region become read-only offer facts (DigitalOcean/Sydney, per ADR 0048 — replaces the stale "Hetzner" placeholder and resolves its open question); `data-field="terms"` added; button is `data-action="rent"` ("Rent this server"); `data-status="rent-error"` retriable block added. - `docs/ux/wireframes/p1-founding/p1-s4-access-reopened-abandoned-rental.html` — copy changed to "released — it no longer exists and nothing is owed". - `docs/ux/flows/p1-founding.mermaid` — S4→S4a edge label drops "paid by Stripe" for the alpha-terms wording, dated provenance comment added. - `docs/architecture/01-system-context.md` + `02-containers.md` — broker described as "rents + releases gateways", ADR 0189 cross-referenced (ADR 0042 same-commit rule). - `STATUS.md` — header lead + milestone log entry. **Proof:** - `git diff --stat` (pre-commit) showed exactly the 8 files the ticket listed as Modified, plus the 2 new ADR/DDR files. - `grep -n 'Stripe' docs/ux/wireframes/p1-founding/p1-s4a-rent-a-server.html` → no output (verified before commit; the one rendered "Stripe" mention in an HTML comment was reworded to "payment provider" specifically to satisfy this literal check). - Verified programmatically (HTML comments stripped) that neither wireframe's *rendered* content contains "Stripe", "$12/mo", or the old "still exists and stays billed" copy. - `git push origin main` succeeded (`7d16145b..42cfa0a9`). This closes task 1 of 8 in `docs/superpowers/plans/2026-08-21-183-phase-4-rented-gateway-rehearsal.md`. Tickets #646–#651 build against the wire vocabulary this lands (`GatewayOffer{Preset, Provider, Region, TTL, Terms}`, routes `/v1/gateways/{offer,rent,renew,release}`, the selector set named in the ticket's Interfaces block).
matou-build-agent 2026-08-22 04:27:57 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#645
No description provided.