tests: 4 more offline suites red on clean main (post-issue-ask, resume-parked-asks + 2 git-fence-blocked) — #586 follow-up #587

Closed
opened 2026-08-15 08:57:07 +00:00 by ben · 2 comments
Owner

Found 2026-08-15 while landing #586 (which pinned the last three suites the
#537 sweep flagged — list-ready-tasks-test, session-runner-test,
heal-test). A full .sandcastle/tests/*.sh sweep on clean main turned up
four MORE red suites, kept out of #586's diff to stay scoped. They split
into two kinds:

Chat-env-sensitive (likely the same ambient-leak family as #537/#586):

  1. post-issue-ask-test.sh — fails P7 exit 2 then P7 no calls. The P7
    case appears to assert a specific exit/behaviour when NO chat env is
    configured; a host carrying ambient MATTERMOST_* (or the inverse) likely
    flips it. Needs a diagnosis pass + an env -u MATTERMOST_* scrub (or a
    pin) so the case controls its own chat-env precondition.

  2. resume-parked-asks-test.sh — fails T7 exit 2 without chat env then
    T7 no calls made — the same shape as (1), same likely fix.

Sandbox git-fence artifacts (NOT real reds on a normal host):

  1. sweep-lib-test.sh and 4. worktree-lib-test.sh — both die on
    git-fence: refusing 'git worktree add' inside the Sandcastle sandbox (#239). These suites exercise real git worktree operations that the
    sandbox deliberately blocks; they are expected to pass on a normal
    workstation/CI where the fence is absent. Confirm they are green off-sandbox
    before treating them as bugs — they may need a fence-aware skip guard rather
    than a fix.

All four reproduce on clean main (my #586 diff touches only the other three
suites). Acceptance: (1)+(2) green and hermetic to ambient chat env; (3)+(4)
either green off-sandbox or carrying an explicit in-sandbox skip.

Why human

Nothing — ready-for-agent; found while landing #586, kept out of that
ticket's diff to stay scoped.

Found 2026-08-15 while landing #586 (which pinned the last three suites the #537 sweep flagged — `list-ready-tasks-test`, `session-runner-test`, `heal-test`). A full `.sandcastle/tests/*.sh` sweep on clean `main` turned up four MORE red suites, kept out of #586's diff to stay scoped. They split into two kinds: **Chat-env-sensitive (likely the same ambient-leak family as #537/#586):** 1. `post-issue-ask-test.sh` — fails `P7 exit 2` then `P7 no calls`. The `P7` case appears to assert a specific exit/behaviour when NO chat env is configured; a host carrying ambient `MATTERMOST_*` (or the inverse) likely flips it. Needs a diagnosis pass + an `env -u MATTERMOST_*` scrub (or a pin) so the case controls its own chat-env precondition. 2. `resume-parked-asks-test.sh` — fails `T7 exit 2 without chat env` then `T7 no calls made` — the same shape as (1), same likely fix. **Sandbox git-fence artifacts (NOT real reds on a normal host):** 3. `sweep-lib-test.sh` and 4. `worktree-lib-test.sh` — both die on `git-fence: refusing 'git worktree add' inside the Sandcastle sandbox (#239)`. These suites exercise real `git worktree` operations that the sandbox deliberately blocks; they are expected to pass on a normal workstation/CI where the fence is absent. Confirm they are green off-sandbox before treating them as bugs — they may need a fence-aware skip guard rather than a fix. All four reproduce on clean `main` (my #586 diff touches only the other three suites). Acceptance: (1)+(2) green and hermetic to ambient chat env; (3)+(4) either green off-sandbox or carrying an explicit in-sandbox skip. ## Why human Nothing — `ready-for-agent`; found while landing #586, kept out of that ticket's diff to stay scoped.
Author
Owner

swarm-claim host=matou-dev-server-01 run=6869
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=6869 (automated multi-host claim — lowest live claim id works this ticket)
Author
Owner

close-report for #587 — status success

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

envelope
{
  "issue": 587,
  "status": "success",
  "commits": [
    "627aee5c21d5f053af81ea491f34fb25a6cc8b96"
  ],
  "changed_files": [
    ".sandcastle/tests/post-issue-ask-test.sh",
    ".sandcastle/tests/resume-parked-asks-test.sh",
    ".sandcastle/tests/sweep-lib-test.sh",
    ".sandcastle/tests/worktree-lib-test.sh",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash .sandcastle/tests/post-issue-ask-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash .sandcastle/tests/resume-parked-asks-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash .sandcastle/tests/sweep-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "bash .sandcastle/tests/worktree-lib-test.sh",
      "exit_code": 0
    },
    {
      "command": "PATH=<real-git-ahead> bash .sandcastle/tests/sweep-lib-test.sh (off-sandbox sim)",
      "exit_code": 0
    },
    {
      "command": "PATH=<real-git-ahead> bash .sandcastle/tests/worktree-lib-test.sh (off-sandbox sim)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "(1)+(2) green and hermetic to ambient chat env": "post-issue-ask-test.sh P7 and resume-parked-asks-test.sh T7 now scrub all three MATTERMOST_* vars instead of only MATTERMOST_BOT_TOKEN; URL/CHANNEL_ID have no /run/secrets fallback so the guard fires regardless of ambient chat env. Verified green under a hostile ambient env (MATTERMOST_*=evil values) AND with MATTERMOST_* fully unset. post-issue-ask 17/0, resume-parked-asks 31/0 (commit 627aee5).",
    "(3)+(4) either green off-sandbox or carrying an explicit in-sandbox skip": "sweep-lib-test.sh and worktree-lib-test.sh confirmed green off-sandbox (real git ahead on PATH: 9 groups / 21 checks). Each now carries an explicit fence-aware in-sandbox SKIP (detects .sandcastle/git-fence via its source marker on the git shim, exits 0); runs in full where the fence is absent (commit 627aee5)."
  },
  "summary": "Made post-issue-ask/resume-parked-asks P7/T7 hermetic to the secret-file chat-env fallback and gave sweep-lib/worktree-lib an explicit in-sandbox git-fence skip; all four suites exit 0 in-sandbox, and the fence pair still runs green off-sandbox.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #587 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 587, "status": "success", "commits": [ "627aee5c21d5f053af81ea491f34fb25a6cc8b96" ], "changed_files": [ ".sandcastle/tests/post-issue-ask-test.sh", ".sandcastle/tests/resume-parked-asks-test.sh", ".sandcastle/tests/sweep-lib-test.sh", ".sandcastle/tests/worktree-lib-test.sh", "STATUS.md" ], "tests": [ { "command": "bash .sandcastle/tests/post-issue-ask-test.sh", "exit_code": 0 }, { "command": "bash .sandcastle/tests/resume-parked-asks-test.sh", "exit_code": 0 }, { "command": "bash .sandcastle/tests/sweep-lib-test.sh", "exit_code": 0 }, { "command": "bash .sandcastle/tests/worktree-lib-test.sh", "exit_code": 0 }, { "command": "PATH=<real-git-ahead> bash .sandcastle/tests/sweep-lib-test.sh (off-sandbox sim)", "exit_code": 0 }, { "command": "PATH=<real-git-ahead> bash .sandcastle/tests/worktree-lib-test.sh (off-sandbox sim)", "exit_code": 0 } ], "criteria": { "(1)+(2) green and hermetic to ambient chat env": "post-issue-ask-test.sh P7 and resume-parked-asks-test.sh T7 now scrub all three MATTERMOST_* vars instead of only MATTERMOST_BOT_TOKEN; URL/CHANNEL_ID have no /run/secrets fallback so the guard fires regardless of ambient chat env. Verified green under a hostile ambient env (MATTERMOST_*=evil values) AND with MATTERMOST_* fully unset. post-issue-ask 17/0, resume-parked-asks 31/0 (commit 627aee5).", "(3)+(4) either green off-sandbox or carrying an explicit in-sandbox skip": "sweep-lib-test.sh and worktree-lib-test.sh confirmed green off-sandbox (real git ahead on PATH: 9 groups / 21 checks). Each now carries an explicit fence-aware in-sandbox SKIP (detects .sandcastle/git-fence via its source marker on the git shim, exits 0); runs in full where the fence is absent (commit 627aee5)." }, "summary": "Made post-issue-ask/resume-parked-asks P7/T7 hermetic to the secret-file chat-env fallback and gave sweep-lib/worktree-lib an explicit in-sandbox git-fence skip; all four suites exit 0 in-sandbox, and the fence pair still runs green off-sandbox.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
ben closed this issue 2026-08-15 09:08:10 +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#587
No description provided.