factory ruling: the e2e drive + gap-ticketing loop is a CORE factory process — driver contract + screenshot evidence spec #570

Closed
opened 2026-08-15 06:01:09 +00:00 by ben · 3 comments
Owner

Ruling (Ben, 2026-08-15)

The e2e drive + gap-ticketing loop is a core factory process, not an ourcloud one-off. It exists to confirm actual implementation of new features, and to capture and share screenshots as the verification currency (the "a GREEN with unexamined screenshots is not a GREEN" rule generalised). Consequence: repo onboarding must ask for e2e setup — a project joins the factory with a drive driver, or explicitly opts out.

Design work needed

The driver contract is real but implicit — four clauses scattered across the scripts (survey: docs/research/2026-08-15-factory-reengineering-survey.md):

  1. driver exits non-zero on red (rehearsal-cycle.sh:53-55 → reporter $2)
  2. writes <run_dir>/artifacts/legs.json as LegRecord[], rewritten on every leg transition (fixtures/legs.ts:6-9)
  3. text logs at <run_dir>/logs/*.txt (reporter tails these blind)
  4. run dirs named so lexical sort = chronological, under test-results/<name>/

Design tasks:

  • Write the contract down as a factory doc, and extend it: a verdict.json in the run dir (removes the rc-passing hazard class — the "red drive with zero red legs" branch exists only because the run dir can't say green from red), and a screenshot-evidence clause (capture on greens too; evidence attached to the drive issue; the eyeball rule).
  • Define the minimum e2e a new repo must provide at onboarding (a journey spec satisfying the contract? a smoke-only tier?), and what the factory provides for free (executor, reporter dedup/caps/blocked-invariant, healer law, legs.ts).
  • Decide where the product/factory seam sits for the current scripts: executor + reporter + rehearsal-heal-lib.sh (zero hardcodes) + legs.ts are factory-shaped today; cycle/smoke/droplet/journey are ourcloud's driver.

Needs Ben: confirm the contract scope and the onboarding minimum. Blocks the onboarding design ticket.

## Ruling (Ben, 2026-08-15) The **e2e drive + gap-ticketing loop is a core factory process**, not an ourcloud one-off. It exists to confirm *actual implementation* of new features, and to **capture and share screenshots** as the verification currency (the "a GREEN with unexamined screenshots is not a GREEN" rule generalised). Consequence: **repo onboarding must ask for e2e setup** — a project joins the factory with a drive driver, or explicitly opts out. ## Design work needed The driver contract is real but implicit — four clauses scattered across the scripts (survey: `docs/research/2026-08-15-factory-reengineering-survey.md`): 1. driver exits non-zero on red (`rehearsal-cycle.sh:53-55` → reporter `$2`) 2. writes `<run_dir>/artifacts/legs.json` as `LegRecord[]`, rewritten on every leg transition (`fixtures/legs.ts:6-9`) 3. text logs at `<run_dir>/logs/*.txt` (reporter tails these blind) 4. run dirs named so lexical sort = chronological, under `test-results/<name>/` Design tasks: - Write the contract down as a factory doc, and **extend it**: a `verdict.json` in the run dir (removes the rc-passing hazard class — the "red drive with zero red legs" branch exists only because the run dir can't say green from red), and a **screenshot-evidence clause** (capture on greens too; evidence attached to the drive issue; the eyeball rule). - Define the minimum e2e a new repo must provide at onboarding (a journey spec satisfying the contract? a smoke-only tier?), and what the factory provides for free (executor, reporter dedup/caps/blocked-invariant, healer law, `legs.ts`). - Decide where the product/factory seam sits for the current scripts: executor + reporter + `rehearsal-heal-lib.sh` (zero hardcodes) + `legs.ts` are factory-shaped today; cycle/smoke/droplet/journey are ourcloud's driver. **Needs Ben:** confirm the contract scope and the onboarding minimum. Blocks the onboarding design ticket.
Author
Owner

Ben ruled (2026-08-19, live session): the factory block is delegated under ADR 0174 — dispatched to the agent/session lanes with dependency edges wired; veto via the tracker anytime.

Ben ruled (2026-08-19, live session): the factory block is delegated under ADR 0174 — dispatched to the agent/session lanes with dependency edges wired; veto via the tracker anytime.
Author
Owner

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 ticket comment delegated this ticket's remaining design work (the ## Needs Ben gate in the body) to the agent/session lanes under ADR 0174 — a design-tier accept over documentation and tracker state only, no .sandcastle//.forgejo/ protected paths touched.

What landed (commit 7a73772)

  • docs/adr/0182-the-e2e-driver-contract-is-six-clauses-verdict-and-eyeballed-screenshots.md — the ruling. Ratifies the four existing clauses (grounded against real source lines: rehearsal-cycle.sh:53-55, app/tests/e2e/fixtures/legs.ts, rehearsal-report.sh:225,246, the test-results/<name>/ sort convention) and adds two: verdict.json (written unconditionally by the driver, both green and red, before it exits — schema in the ADR, closes the "red drive with zero red legs" hazard, feeds #574 item 3) and a screenshot-evidence clause (capture-on-green — already ourcloud's OC_E2E_CAPTURE default off the back of #335 — plus the eyeball rule already stated in the swarm atlas, now made binding on every driver, not just ourcloud's).
  • docs/agents/e2e-driver-contract.md — the agent-facing reference doc the ticket asked for, pointed at from docs/agents/swarm-atlas.md §8 and the pointers index.
  • Onboarding minimum (feeds #572): three declared tiers — journey (full multi-leg driver, all six clauses), smoke (single/few-leg, same six clauses at minimal scope), opt-out (declared, with a reason recorded at onboarding, per Ben's 2026-08-15 "or explicitly opts out").
  • Product/factory seam: ratified survey §3's mapping as a decision rather than an observation — factory-shaped (executor, reporter, rehearsal-heal-lib.sh, legs.ts — the last has zero product imports today, portable as-is) vs product-owned (rehearsal-cycle.sh, smoke-private-path.sh, rehearsal-droplet.sh, journey.droplet.spec.ts). Consistent with ADR 0180's "an e2e driver conforming to #570's driver contract" line.
  • Gap found while writing the contract down: evidence is referenced by a host path in the drive-issue comment, never actually attached — the eyeball rule needs SSH access to matou-workstation today. Scoped narrowly and filed as #596 (ready-for-session — touches protected .sandcastle/rehearsal-report.sh) rather than folded into this design ticket.
  • STATUS.md updated in the same commit.

No code changed — documentation and tracker state only, provable by reading the cited source lines against the ADR's claims. This unblocks #572's design side (the onboarding-minimum question now has three concrete answers) and gives #574 a verdict.json schema to implement against.

Closing — the design work this ticket asked for is done; implementation (verdict.json wiring, screenshot attachment) rides #574 and #596.

Ruled by agent under ADR 0174 — veto anytime. Ben's 2026-08-19 ticket comment delegated this ticket's remaining design work (the `## Needs Ben` gate in the body) to the agent/session lanes under ADR 0174 — a design-tier accept over documentation and tracker state only, no `.sandcastle/`/`.forgejo/` protected paths touched. ## What landed (commit `7a73772`) - **`docs/adr/0182-the-e2e-driver-contract-is-six-clauses-verdict-and-eyeballed-screenshots.md`** — the ruling. Ratifies the four existing clauses (grounded against real source lines: `rehearsal-cycle.sh:53-55`, `app/tests/e2e/fixtures/legs.ts`, `rehearsal-report.sh:225,246`, the `test-results/<name>/` sort convention) and adds two: `verdict.json` (written unconditionally by the driver, both green and red, before it exits — schema in the ADR, closes the "red drive with zero red legs" hazard, feeds #574 item 3) and a screenshot-evidence clause (capture-on-green — already ourcloud's `OC_E2E_CAPTURE` default off the back of #335 — plus the eyeball rule already stated in the swarm atlas, now made binding on every driver, not just ourcloud's). - **`docs/agents/e2e-driver-contract.md`** — the agent-facing reference doc the ticket asked for, pointed at from `docs/agents/swarm-atlas.md` §8 and the pointers index. - **Onboarding minimum** (feeds #572): three declared tiers — journey (full multi-leg driver, all six clauses), smoke (single/few-leg, same six clauses at minimal scope), opt-out (declared, with a reason recorded at onboarding, per Ben's 2026-08-15 "or explicitly opts out"). - **Product/factory seam**: ratified survey §3's mapping as a decision rather than an observation — factory-shaped (executor, reporter, `rehearsal-heal-lib.sh`, `legs.ts` — the last has zero product imports today, portable as-is) vs product-owned (`rehearsal-cycle.sh`, `smoke-private-path.sh`, `rehearsal-droplet.sh`, `journey.droplet.spec.ts`). Consistent with ADR 0180's "an e2e driver conforming to #570's driver contract" line. - **Gap found while writing the contract down**: evidence is referenced by a host path in the drive-issue comment, never actually attached — the eyeball rule needs SSH access to `matou-workstation` today. Scoped narrowly and filed as #596 (`ready-for-session` — touches protected `.sandcastle/rehearsal-report.sh`) rather than folded into this design ticket. - `STATUS.md` updated in the same commit. No code changed — documentation and tracker state only, provable by reading the cited source lines against the ADR's claims. This unblocks #572's design side (the onboarding-minimum question now has three concrete answers) and gives #574 a `verdict.json` schema to implement against. Closing — the design work this ticket asked for is done; implementation (verdict.json wiring, screenshot attachment) rides #574 and #596.
ben 2026-08-19 18:56:37 +00:00
Author
Owner

Correction to the close-report above: the new ADR landed as 0182 and collided with another concurrent session's ADR 0182 (the rehearsal-red-loop diagnose-first ruling, already on main when I rebased to push). Renumbered mine to ADR 0183 (commit f47ffd5) — same content, same filename otherwise, all cross-references (docs/agents/e2e-driver-contract.md, swarm atlas §8 + pointers index, STATUS.md) updated. docs/adr/0183-the-e2e-driver-contract-is-six-clauses-verdict-and-eyeballed-screenshots.md is the correct path.

Correction to the close-report above: the new ADR landed as **0182** and collided with another concurrent session's ADR 0182 (the rehearsal-red-loop diagnose-first ruling, already on `main` when I rebased to push). Renumbered mine to **ADR 0183** (commit `f47ffd5`) — same content, same filename otherwise, all cross-references (`docs/agents/e2e-driver-contract.md`, swarm atlas §8 + pointers index, `STATUS.md`) updated. `docs/adr/0183-the-e2e-driver-contract-is-six-clauses-verdict-and-eyeballed-screenshots.md` is the correct path.
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.

Reference
Matou/idss#570
No description provided.