e2e: Finding G — healthy drives lose evidence the red drives keep #335

Closed
opened 2026-08-08 15:04:07 +00:00 by ben · 4 comments
Owner

Finding G from the private-path live e2e arc: the harness's evidence fixture harvests richly on FAILURE (page snapshot, trace, screenshots), but a HEALTHY drive keeps much less — and some sources referenced by the evidence contract were observed missing entirely on green runs (the arc's ledger notes a state/logs path that never exists). Recent runs (19/20) do write logs/*.log (helper, qemu, guest journal, founding-state, state-logs), so part of this may already be fixed — the ticket is to AUDIT the evidence contract against a green run dir and a red run dir side by side, close the gaps, and pin the contract with a harness test so a renamed source fails loud instead of silently harvesting nothing.

Evidence to hand: test-results/private-path/20260808T144518Z/ (green, drive 20) vs 20260808T140850Z/ (red, drive 19). Ledger: .superpowers/sdd/2026-08-07-private-path-live-e2e/progress.md.

Finding G from the private-path live e2e arc: the harness's evidence fixture harvests richly on FAILURE (page snapshot, trace, screenshots), but a HEALTHY drive keeps much less — and some sources referenced by the evidence contract were observed missing entirely on green runs (the arc's ledger notes a `state/logs` path that never exists). Recent runs (19/20) do write `logs/*.log` (helper, qemu, guest journal, founding-state, state-logs), so part of this may already be fixed — the ticket is to AUDIT the evidence contract against a green run dir and a red run dir side by side, close the gaps, and pin the contract with a harness test so a renamed source fails loud instead of silently harvesting nothing. Evidence to hand: `test-results/private-path/20260808T144518Z/` (green, drive 20) vs `20260808T140850Z/` (red, drive 19). Ledger: `.superpowers/sdd/2026-08-07-private-path-live-e2e/progress.md`.
Author
Owner

This was generated by AI during triage.

Triage Notes

What we've established so far:

  • The report asks to audit the evidence-harvest contract by comparing a green run directory against a red one side by side, close any gaps, and pin the contract with a harness test so a renamed source fails loud.
  • Both referenced run directories are not available to me — test-results/ is gitignored on the harness branch (private-standup-polish), so these are local-only artifacts from that drive session, not present in any git ref.
  • The harvesting code itself does exist on that branch (recent commits harvest four log sources into the run directory and bound every collector so harvest can't strand the app), so a like-for-like code read is possible — but the report specifically wants a side-by-side audit against real green/red evidence, which needs either the original run dirs or a live re-run on real KVM-capable hardware (this harness's preflight requires /dev/kvm and a real guest lifecycle — the same real-hardware dependency this project already routes to ready-for-human for #183 and #332).

What needs deciding:

  • Whether the two referenced run directories can be supplied (or pointed at) so an agent can audit against real evidence, or whether this waits for a driver with real-hardware access to re-run the drive and capture fresh green/red evidence.

Routing to ready-for-human — same real-hardware / external-evidence pattern as this project's other e2e tickets.

> *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - The report asks to audit the evidence-harvest contract by comparing a green run directory against a red one side by side, close any gaps, and pin the contract with a harness test so a renamed source fails loud. - Both referenced run directories are not available to me — `test-results/` is gitignored on the harness branch (`private-standup-polish`), so these are local-only artifacts from that drive session, not present in any git ref. - The harvesting code itself does exist on that branch (recent commits harvest four log sources into the run directory and bound every collector so harvest can't strand the app), so a like-for-like code read is possible — but the report specifically wants a side-by-side audit against real green/red evidence, which needs either the original run dirs or a live re-run on real KVM-capable hardware (this harness's preflight requires `/dev/kvm` and a real guest lifecycle — the same real-hardware dependency this project already routes to `ready-for-human` for #183 and #332). **What needs deciding:** - Whether the two referenced run directories can be supplied (or pointed at) so an agent can audit against real evidence, or whether this waits for a driver with real-hardware access to re-run the drive and capture fresh green/red evidence. Routing to `ready-for-human` — same real-hardware / external-evidence pattern as this project's other e2e tickets.
Author
Owner

Approved by Ben 2026-08-08 (decision sweep) as scoped: audit the evidence contract against a green run dir (20260808T144518Z, drive 20) and a red one (20260808T140850Z, drive 19) side by side, close the gaps, pin the contract with a harness test so a renamed source fails loud. The run dirs live on the driving laptop and harness changes are proven by local drives, so it stays session work → no-triage.

Approved by Ben 2026-08-08 (decision sweep) as scoped: audit the evidence contract against a green run dir (`20260808T144518Z`, drive 20) and a red one (`20260808T140850Z`, drive 19) side by side, close the gaps, pin the contract with a harness test so a renamed source fails loud. The run dirs live on the driving laptop and harness changes are proven by local drives, so it stays session work → `no-triage`.
Author
Owner

Backlog walk (Ben, 2026-08-12): promoted ready-for-agent — the deliverable is the in-tree evidence-contract audit + an offline harness test pinning it (a renamed source fails loud). Note: the referenced 2026-08-08 run dirs may no longer exist locally; audit against the harness code and whatever run dirs remain, and say so in the close report if the originals are gone.

Backlog walk (Ben, 2026-08-12): promoted `ready-for-agent` — the deliverable is the in-tree evidence-contract audit + an offline harness test pinning it (a renamed source fails loud). Note: the referenced 2026-08-08 run dirs may no longer exist locally; audit against the harness code and whatever run dirs remain, and say so in the close report if the originals are gone.
Author
Owner

close-report for #335 — status success

✅ close-report gates passed — every claim verified against main; closing.

envelope
{
  "issue": 335,
  "status": "success",
  "commits": [
    "25cc257"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/evidence.ts",
    "app/tests/e2e/fixtures/evidence.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "cd app && npx vitest run tests/e2e/fixtures/evidence.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "AUDIT the evidence contract (green vs red run dir side by side)": "The cited 2026-08-08 run dirs (20260808T144518Z / 20260808T140850Z) and the arc ledger are gone (Ben flagged this at promotion, 2026-08-12); audited against harness code instead. Root cause confirmed in code: the `state-logs` collector globbed `<stateDir>/logs/*` via `bash -c`, and grep across internal/ Go + app/helper + app/src found NO writer of `<stateDir>/logs` — launch.ts:39 lists `logs/` only aspirationally. So on a green drive the glob never expands and harvest records the literal pattern + a `cat` error = 'silently harvesting nothing'.",
    "close the gaps (missing source no longer silently harvests nothing)": "collectStateLogs (evidence.ts) replaces the glob: a missing dir THROWS -> runCollectors records `ERROR: no state logs directory at <path>` (LOUD, matching the 'unreachable source is recorded AS unreachable' contract); existing-but-empty -> `EMPTY: <dir> exists but holds no files`; real contents dump unchanged.",
    "pin the contract with a harness test so a renamed source fails loud": "evidence.test.ts freezes guestCollectors/hostCollectors name sets (a renamed/dropped source fails the deep-equal) and pins collectStateLogs' missing/empty/present behaviour. Offline (real bash + tmp dirs, no live guest). 12 tests green."
  },
  "summary": "Fixed Finding G's silent-green evidence gap: the state/logs source now fails loud on a missing directory and the collector contract is frozen by an offline harness test.",
  "no_code_change": "",
  "blockers": []
}
**close-report** for #335 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 335, "status": "success", "commits": [ "25cc257" ], "changed_files": [ "app/tests/e2e/fixtures/evidence.ts", "app/tests/e2e/fixtures/evidence.test.ts", "STATUS.md" ], "tests": [ { "command": "cd app && npx vitest run tests/e2e/fixtures/evidence.test.ts", "exit_code": 0 } ], "criteria": { "AUDIT the evidence contract (green vs red run dir side by side)": "The cited 2026-08-08 run dirs (20260808T144518Z / 20260808T140850Z) and the arc ledger are gone (Ben flagged this at promotion, 2026-08-12); audited against harness code instead. Root cause confirmed in code: the `state-logs` collector globbed `<stateDir>/logs/*` via `bash -c`, and grep across internal/ Go + app/helper + app/src found NO writer of `<stateDir>/logs` — launch.ts:39 lists `logs/` only aspirationally. So on a green drive the glob never expands and harvest records the literal pattern + a `cat` error = 'silently harvesting nothing'.", "close the gaps (missing source no longer silently harvests nothing)": "collectStateLogs (evidence.ts) replaces the glob: a missing dir THROWS -> runCollectors records `ERROR: no state logs directory at <path>` (LOUD, matching the 'unreachable source is recorded AS unreachable' contract); existing-but-empty -> `EMPTY: <dir> exists but holds no files`; real contents dump unchanged.", "pin the contract with a harness test so a renamed source fails loud": "evidence.test.ts freezes guestCollectors/hostCollectors name sets (a renamed/dropped source fails the deep-equal) and pins collectStateLogs' missing/empty/present behaviour. Offline (real bash + tmp dirs, no live guest). 12 tests green." }, "summary": "Fixed Finding G's silent-green evidence gap: the state/logs source now fails loud on a missing directory and the collector contract is frozen by an offline harness test.", "no_code_change": "", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 17:05:29 +00:00
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#335
No description provided.