Skip to content

Clean up incomplete evaluation workspaces - #633

Merged
addyosmani merged 2 commits into
addyosmani:mainfrom
rudycelekli:fix/workspace-cleanup-20261003
Oct 10, 2026
Merged

addyosmani merged 2 commits into
addyosmani:mainfrom
rudycelekli:fix/workspace-cleanup-20261003

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Problem and change

A setup exception occurs before runBehavioral receives the workspace and enters its cleanup finally block. If an earlier fixture was already copied, the partially populated temporary directory survives. Scope cleanup ownership around initialization and retain the successful return path.

Reproduction

Copy a valid fixture, then reference a missing fixture. Main leaves an agent-skills-eval-* directory behind; the fix removes it and preserves the original fixture error. Existing successful baseline and working-tree-patch controls remain green.

Verification

  • Node 24.19.0 on macOS: 174 tests passed, no skips.
  • All five validators passed; routing passed 141 checks with 89/89 rank-1 positives at the unchanged 95% floor.
  • Bash cache controls 29/29, ignore controls 49/49, and session-start payload passed.
  • A targeted guard mutation was caught, then the exact signed source was restored.
  • No paid model calls were used. Linux/Windows and plugin-install checks will be reported by hosted CI; they are not claimed as locally run.

Existing work

Production rules are distinct from #524’s shared-test-helper refactor. A local compatibility check retained all current and added test bodies, exercised #524’s actual helper API, and passed 80 focused tests. #524 has existing conflicts with main; this is not a claim that its entire branch merges or passes. The exact patch also composes cleanly with #455’s fixture dereference change; its symlink-copy behavior is retained.

AI assistance: OpenAI Codex / GPT-6 was used for investigation, code and tests.

rudycelekli and others added 2 commits October 3, 2026 11:01
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>

@addyosmani addyosmani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

praise: small but right. A failed fixture copy left a temp directory behind, and this cleans it up without changing the success path. Merging.

It conflicted with #632 and #636 on the test file, so I pushed a merge to your branch that keeps all three tests.

@addyosmani
addyosmani merged commit 9616b93 into addyosmani:main Oct 10, 2026
7 checks passed
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.

2 participants