reporter: widen the pre-legs synthesis pattern to catch an SSH auth refusal (Permission denied) — a Matou/dev-factory re-vendor (#1422 follow-up) #1426

Closed
opened 2026-09-12 07:01:30 +00:00 by matou-build-agent · 1 comment

Follow-up from #1422 (defect 2 — agent-actionable but a vendored file).

What

The rehearsal reporter's pre-legs synthesis greps the harvested log tail for Error|error|FAIL|timed out to key a pre-legs red on its cause. An SSH auth refusal (Permission denied (publickey)) carries NONE of those words, so drive 20260912T053407Z (#1422) got the useless red before legs.json was written marker while the real cause sat verbatim in all five droplet-*.txt files.

Widen the pattern to catch the auth refusal:

grep -m1 -iE 'Error|FAIL|timed out|Permission denied'

(case-insensitive folds error/Failed/FAILED in too.) There are two identical synthesis sites in rehearsal-report.sh — the pre-legs one (:550) and the sibling wizard-stage one (:586); widen both for consistency. Add a reporter-test case (a pre-legs run whose only log content is a Permission denied (publickey) line must synthesize that cause, never the fallback marker).

Why this is a follow-up, not landed in #1422

.sandcastle/rehearsal-report.sh and .sandcastle/tests/rehearsal-report-test.sh are Matou/dev-factory-vendored files (FACTORY_MANIFEST). A direct edit here is refused by the pre-push drift gate — the fix must land upstream in Matou/dev-factory, then FACTORY_REF bumped + re-vendored (the #1411/#1394 pattern). The factory has drifted several unrelated commits ahead of the current pin (26f142c), so the re-vendor is a deliberate sync and was kept out of #1422's product-owned banner-wait commit.

Done when

  • The two synthesis patterns in Matou/dev-factory:rehearsal-report.sh are widened + a reporter-test case added, offline-test-green there.
  • FACTORY_REF bumped here and the manifest re-vendored; bash .sandcastle/check-harness-drift.sh green; bash .sandcastle/tests/rehearsal-report-test.sh green.

Ref: GOTCHAS #228 (the hazard + the product-side banner-wait fix that landed in #1422).

Follow-up from #1422 (defect 2 — agent-actionable but a vendored file). ## What The rehearsal reporter's **pre-legs synthesis** greps the harvested log tail for `Error|error|FAIL|timed out` to key a `pre-legs` red on its cause. An **SSH auth refusal** (`Permission denied (publickey)`) carries NONE of those words, so drive `20260912T053407Z` (#1422) got the useless `red before legs.json was written` marker while the real cause sat verbatim in all five `droplet-*.txt` files. Widen the pattern to catch the auth refusal: ``` grep -m1 -iE 'Error|FAIL|timed out|Permission denied' ``` (case-insensitive folds `error`/`Failed`/`FAILED` in too.) There are **two** identical synthesis sites in `rehearsal-report.sh` — the pre-legs one (~:550) and the sibling wizard-stage one (~:586); widen both for consistency. Add a reporter-test case (a pre-legs run whose only log content is a `Permission denied (publickey)` line must synthesize that cause, never the fallback marker). ## Why this is a follow-up, not landed in #1422 `.sandcastle/rehearsal-report.sh` and `.sandcastle/tests/rehearsal-report-test.sh` are **`Matou/dev-factory`-vendored** files (FACTORY_MANIFEST). A direct edit here is refused by the pre-push drift gate — the fix must land upstream in `Matou/dev-factory`, then `FACTORY_REF` bumped + re-vendored (the #1411/#1394 pattern). The factory has drifted several unrelated commits ahead of the current pin (`26f142c`), so the re-vendor is a deliberate sync and was kept out of #1422's product-owned banner-wait commit. ## Done when - The two synthesis patterns in `Matou/dev-factory:rehearsal-report.sh` are widened + a reporter-test case added, offline-test-green there. - `FACTORY_REF` bumped here and the manifest re-vendored; `bash .sandcastle/check-harness-drift.sh` green; `bash .sandcastle/tests/rehearsal-report-test.sh` green. Ref: GOTCHAS #228 (the hazard + the product-side banner-wait fix that landed in #1422).
Author
Member

Close-report — landed & proven (ADR 0174, two-way door).

Both synthesis patterns in the rehearsal reporter now catch an SSH auth refusal. Widened grep -m1 -E 'Error|error|FAIL|timed out' → grep -m1 -iE 'Error|FAIL|timed out|Permission denied' at BOTH sites (the pre-legs ~:550 and the sibling wizard-stage ~:586); the -i also folds error/Failed/FAILED. A Permission denied (publickey) tail — which carries none of the old words — now keys the red on its real cause instead of the red before legs.json was written marker.

Vendored-path route (the #1411/#1394 pattern): .sandcastle/rehearsal-report.sh + tests/rehearsal-report-test.sh are Matou/dev-factory-vendored (drift-gated), so the fix landed upstream first.

  • Upstream: Matou/dev-factory@292f95e — both greps widened + reporter-test case 41 added (a pre-legs run whose only log content is a Permission denied (publickey) line must synthesize that cause, never the fallback marker). Offline-test-green there.
  • Re-vendor here: FACTORY_REF 26f96ce → 292f95e (commit 8cf9a402). The bump also carries dev-factory #142's list-ready-tasks.sh/schedule-lib.sh verdict-wording — the deliberate drift sync this ticket + #1422 anticipated (the factory was one commit ahead of the pin).

Proof:

  • bash .sandcastle/check-harness-drift.sh → OK (every vendored file matches @292f95e).
  • bash .sandcastle/tests/rehearsal-report-test.sh → PASS (50 cases) (was 49).
  • Red-before-green confirmed: case 41 FAILS against the un-widened pattern (body carried red at pre-legs: red before legs.json was written), passes with the widened grep.
  • No token leak: # Source: line is the clean anonymous URL; git grep <token> -- .sandcastle/ empty.

STATUS.md milestone log updated in the same commit. GOTCHAS #228.

Ruled by agent under ADR 0174 — veto anytime. Two-way door: a revertible vendored-grep widening, no security-posture or credential change, proven red-before-green offline both upstream and post-vendor.

**Close-report — landed & proven (ADR 0174, two-way door).** Both synthesis patterns in the rehearsal reporter now catch an SSH auth refusal. Widened `grep -m1 -E 'Error|error|FAIL|timed out'` → `grep -m1 -iE 'Error|FAIL|timed out|Permission denied'` at BOTH sites (the pre-legs `~:550` and the sibling wizard-stage `~:586`); the `-i` also folds `error`/`Failed`/`FAILED`. A `Permission denied (publickey)` tail — which carries none of the old words — now keys the red on its real cause instead of the `red before legs.json was written` marker. **Vendored-path route (the #1411/#1394 pattern):** `.sandcastle/rehearsal-report.sh` + `tests/rehearsal-report-test.sh` are `Matou/dev-factory`-vendored (drift-gated), so the fix landed upstream first. - **Upstream:** `Matou/dev-factory@292f95e` — both greps widened + reporter-test **case 41** added (a pre-legs run whose only log content is a `Permission denied (publickey)` line must synthesize that cause, never the fallback marker). Offline-test-green there. - **Re-vendor here:** `FACTORY_REF 26f96ce → 292f95e` (commit `8cf9a402`). The bump also carries dev-factory #142's `list-ready-tasks.sh`/`schedule-lib.sh` verdict-wording — the deliberate drift sync this ticket + #1422 anticipated (the factory was one commit ahead of the pin). **Proof:** - `bash .sandcastle/check-harness-drift.sh` → OK (every vendored file matches `@292f95e`). - `bash .sandcastle/tests/rehearsal-report-test.sh` → `PASS (50 cases)` (was 49). - Red-before-green confirmed: case 41 FAILS against the un-widened pattern (body carried `red at pre-legs: red before legs.json was written`), passes with the widened grep. - No token leak: `# Source:` line is the clean anonymous URL; `git grep <token> -- .sandcastle/` empty. STATUS.md milestone log updated in the same commit. GOTCHAS #228. **Ruled by agent under ADR 0174 — veto anytime.** Two-way door: a revertible vendored-grep widening, no security-posture or credential change, proven red-before-green offline both upstream and post-vendor.
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#1426
No description provided.