Skip to content

refactor(candidates): store-level skills dir, no global env in tests (task 7894af1c)#11

Merged
eveselove merged 1 commit into
mainfrom
fix/promote-test-isolation
Jun 20, 2026
Merged

refactor(candidates): store-level skills dir, no global env in tests (task 7894af1c)#11
eveselove merged 1 commit into
mainfrom
fix/promote-test-isolation

Conversation

@eveselove

Copy link
Copy Markdown
Owner

Salvaged from forge agy/Opus run (batch bf_ee47c549). CandidateStore.with_skills_dir(); promote resolves skills via store; copy-tests use per-test temp dir, no global AGENTFORGE_SKILLS_DIR set_var (kills --test-threads=2 race + real-skills pollution). Prod behavior unchanged. Verified workspace --lib --test-threads=2 green without the env. task 7894af1c

…ote tests

Produced by forge (agy/Opus, batch bf_ee47c549 / task-b3a2dbdc); salvaged from the
worktree after the agy run hit a model-response timeout before forge committed.

CandidateStore now carries an optional skills dir (with_skills_dir); promote
resolves it via the store instead of reading AGENTFORGE_SKILLS_DIR directly.
Copy-tests pass a per-test temp skills dir and no longer mutate the process-global
env, removing the --test-threads=2 race and the real-skills pollution. Production
behavior unchanged (env override + home_agentforge default still honored).

Verified: cargo test --workspace --lib -- --test-threads=2 passes WITHOUT
AGENTFORGE_SKILLS_DIR and writes nothing into ~/agentforge/skills; clippy + fmt clean.

task 7894af1c

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@eveselove eveselove merged commit c101ec3 into main Jun 20, 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.

1 participant