Skip to content

Make the planner suite hermetic against CI's unattended env - #1

Merged
lorenzoliuzzo merged 1 commit into
mainfrom
fix/planner-ci-hermetic-env
Jul 7, 2026
Merged

Make the planner suite hermetic against CI's unattended env#1
lorenzoliuzzo merged 1 commit into
mainfrom
fix/planner-ci-hermetic-env

Conversation

@lorenzoliuzzo

Copy link
Copy Markdown
Contributor

The genesis main went red in CI while passing locally. Root cause: the
happy-path test asserted the tracking issue always gets edited, but that only
holds in an attended shell. Under CI (GITHUB_ACTIONS=true) the planner
correctly fail-closes — the tracking-issue-edit ASK collapses to DENY when
unattended, so the public edit is suppressed (the harness's stance on public
content). The test was inheriting the runner's env.

  • conftest: autouse fixture unsets GITHUB_ACTIONS so the suite defaults to
    the attended path deliberately.
  • new test locks the unattended-suppression: plan still computed + recorded, no
    public issue edit.

Tool behavior unchanged — test-hermeticity only. Green with GITHUB_ACTIONS=true locally.

🤖 Generated with Claude Code

The happy-path test asserted the tracking issue always gets edited, which only
holds in an attended shell. Under CI (GITHUB_ACTIONS=true) the planner correctly
fail-closes: the `tracking-issue-edit` ASK collapses to DENY when unattended, so
the public edit is suppressed — the harness's stance on public content. The test
was inheriting the runner's env and failing.

- conftest: autouse fixture unsets GITHUB_ACTIONS so the suite defaults to the
  attended path deliberately, not by accident of where it runs.
- add a test locking the unattended-suppression behavior: the plan is still
  computed and recorded, but no public issue edit is made.

Tool behavior unchanged; this is a test-hermeticity fix.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lorenzoliuzzo
lorenzoliuzzo merged commit 8512bf4 into main Jul 7, 2026
1 check passed
@lorenzoliuzzo
lorenzoliuzzo deleted the fix/planner-ci-hermetic-env branch July 7, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant