Skip to content

fix: resolve Windows symlink compatibility in framework validators (#77)#91

Open
striderZA wants to merge 1 commit into
masterfrom
fix/issue-77-windows-symlink-compat
Open

fix: resolve Windows symlink compatibility in framework validators (#77)#91
striderZA wants to merge 1 commit into
masterfrom
fix/issue-77-windows-symlink-compat

Conversation

@striderZA

Copy link
Copy Markdown
Owner

Summary

Fixes #77 — framework validators crash with ENOTDIR on Windows when .opencode/ symlinks materialize as plain text files (default core.symlinks=false without Developer Mode).

Changes

Updated all validators to resolve .agents/ canonical paths directly, bypassing the symlink layer:

File Change
tests/workflow/references.mjs commands/skills/agents dirs → .agents/
tests/workflow/paths.mjs skills/commands dirs → .agents/
tests/workflow/gates.mjs skills/commands dirs → .agents/, stale .opencode/docs/docs/framework/
tests/workflow/invariants.mjs commands/skills/agents dirs → .agents/, stale doc path → docs/framework/
tests/modules/validate-modules.mjs PATH_MAP → .agents/ (modules/plugins kept — real dirs)
tests/agents/validate-gdscript.mjs agents dir → .agents/

Not affected (intentionally unchanged): .opencode/modules/ and .opencode/plugins/ — these are real directories, not symlinks.

Verification

  • Agent validator: 206/206 pass
  • Workflow suites: 4/4 pass (references, paths, gates, invariants)
  • Module validator: 21/21 pass

Update validators to use .agents/ canonical paths directly instead of
.opencode/ symlinks, which materialize as plain text files on Windows
without Developer Mode (core.symlinks=false), causing ENOTDIR crashes.

- tests/workflow/references.mjs: agents/skills/commands dirs → .agents/
- tests/workflow/paths.mjs: skills/commands dirs → .agents/
- tests/workflow/gates.mjs: skills dir → .agents/, commands dirs → .agents/,
  stale .opencode/docs/ refs → docs/framework/
- tests/workflow/invariants.mjs: agents/skills/commands dirs → .agents/,
  stale .opencode/docs/ refs → docs/framework/
- tests/modules/validate-modules.mjs: PATH_MAP entries → .agents/
  (MODULES_DIR and plugins/ kept as .opencode/ — real dirs, not symlinks)
- tests/agents/validate-gdscript.mjs: agents dir → .agents/

All validators pass: 206/206 structural, 4/4 workflow suites, 21/21 modules.
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.

Fix Windows symlink compatibility in framework validators

1 participant