e2e: drive evidence is referenced (a host path), never attached — the eyeball rule needs host access today #596
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#596
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gap
Found while writing down the e2e driver contract (#570, ADR 0182). The driver contract's screenshot-evidence clause (clause 6) requires evidence to be eyeballed before a green/red is trusted (
docs/agents/swarm-atlas.md§8: "a GREEN with unexamined screenshots is not a GREEN"). Today neither the GREEN close comment nor a RED filing meets that in practice:scripts/rehearsal-cycle.sh's GREEN path posts a Forgejo comment namingtest-results/drive-$target/$stamp/— a path on the executor host (matou-workstation), not an image..sandcastle/rehearsal-report.sh's RED filing does the same — headless-diagnosis prose plus a host path, no attached image.So the eyeball rule currently requires SSH access to the executor host, which most readers of a drive/gap issue in Forgejo don't have. Screenshots ARE captured (greens included, per
app/playwright.config.ts'sOC_E2E_CAPTUREdefault) — they just never leave the host.Ask
Attach at least one representative screenshot (e.g. the
finishleg's still, or the first red leg's) to the GREEN close comment and to any RED filing, using Forgejo's issue-comment attachment API, instead of (or alongside) the host-path reference. Scope this narrowly — one image per drive outcome, not a full evidence bundle.Related: #570 (driver contract), #574 (TUI data-layer wiring — doesn't cover this), #335 (closed — the earlier "healthy drives lose evidence" finding that got capture-on-green landed but not attachment).
Ruled by agent under ADR 0174 — a two-way door (new ticket, no code/tracker-state change beyond filing); veto anytime.
Live probe (#596): confirming Forgejo's comment-attachment API accepts a real screenshot from a stale drive run (20260815T114326Z, a RED leg's auto-capture) — proving the mechanism this ticket's fix relies on before landing it. This screenshot itself is not fresh evidence of a passing drive, just the attach-API proof.
Ruled by agent under ADR 0174 — veto anytime.
Landed — evidence is now attached, not just referenced. Commit
834d022a2d838627bd98247bf7b6f48466d208bc(834d022, onmain):.sandcastle/evidence-lib.sh(new):pick_representative_screenshot— newest*.pnganywhere under a run dir, portable across any driver satisfying the six-clause contract (not ourcloud-specific)..sandcastle/forgejo-lib.sh:forgejo_comment_id,forgejo_attach_comment_asset,forgejo_attach_issue_asset— Forgejo's comment/issue asset-upload API.scripts/rehearsal-cycle.sh's GREEN close comment, and.sandcastle/rehearsal-report.sh's matched-issue path (comment-asset) and new-filing path (issue-asset, no prior comment to key off) — all now attach one representative screenshot alongside the existing host-path note. Best-effort: a missing/failed attach never blocks the close/filing.Proof:
evidence-lib-test.sh(new, 5 cases, incl. a regression pinning that a missing run dir never trips aset -euo pipefailcaller — surfaced byfind+pipefailinteraction while wiringrehearsal-cycle.sh),forgejo-lib-test.sh(+8 checks for the id/attach primitives),rehearsal-report-test.sh(+3 cases: screenshot on new filing, on a matched-issue comment, and the no-screenshot skip path). Full.sandcastle/tests/*.sh(42) +scripts/tests/*.sh(3) sweeps green before and after.rehearsal-cycle.shhas no offline harness (none did before this ticket — it's live-infra glue), so the real attach mechanism was proven against the real Forgejo API directly on this ticket — see the screenshot comment above, a real capture from a stale drive run (20260815T114326Z), fetched back afterward and confirmed (browser_download_urlpresent, HTTP 201).docs/agents/e2e-driver-contract.md's "Known gap" section is updated to describe the landed mechanism instead. STATUS.md updated in the same commit.{token:...}; real kanidm answers[CUSessionToken, CUStatus]as an array, and even fixed the commit is MFA-policy-refused — by-hand temp_password 400s live (invite-member leg) #662provision — DigitalOcean refused: Not Found#682pairleg's 300s ceiling is unvalidated against a from-source Caddy-with-plugins compile atenroll-build#697clan machines update, and the droplet never comes back — reboot-vs-no-reboot contradiction (follow-on to #700) #702enroll-copy's shipped ServerAliveInterval=30/CountMax=10 did not terminate a live stallednix copy, ran the full 90m ceiling — the fix's synthetic proof does not match live behaviour #716