Skip to content

fix(case): keep work artifacts in the analysis project - #48

Merged
dhicoc merged 1 commit into
zhaoxuya520:mainfrom
doublecurry:codex/fix-issue-45-work-root
Aug 4, 2026
Merged

fix(case): keep work artifacts in the analysis project#48
dhicoc merged 1 commit into
zhaoxuya520:mainfrom
doublecurry:codex/fix-issue-45-work-root

Conversation

@doublecurry

@doublecurry doublecurry commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Default route and case artifacts now follow the caller's analysis project instead of the skill package.
  • Add -ProjectRoot for deterministic output when the skill is invoked from another directory; preserve -PackageRoot compatibility.
  • Add regression coverage for explicit and caller-directory roots, plus PowerShell parsing/coherence checks.

Verification

  • powershell -NoProfile -ExecutionPolicy Bypass -File skills/scripts/verify-routing-coherence.ps1
  • powershell -NoProfile -ExecutionPolicy Bypass -File skills/scripts/smoke.ps1

Closes #45

@dhicoc
dhicoc merged commit 6556b04 into zhaoxuya520:main Aug 4, 2026
dhicoc added a commit that referenced this pull request Aug 4, 2026
…tten guard

PR #48 introduced -ProjectRoot as a [string] parameter. When
test-p0-friction.ps1 passes -InScopeAssets as an array via
`powershell -File`, the array is flattened and the second element
binds to the -ProjectRoot positional slot, causing case artifacts to
land in the wrong directory.

Fix:
- case-init.ps1: add [AllowEmptyString()] to -ProjectRoot so it can
  be explicitly passed an empty string under -File mode
- test-p0-friction.ps1: pass -ProjectRoot $PackageRoot explicitly in
  the multi-asset lab init step to block the positional binding

Verified: test-p0-friction 41/41 PASS, verify-routing-coherence 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

2 participants