Skip to content

fix(core): validate wrapped external workspace configs#1068

Merged
christso merged 2 commits intomainfrom
fix/external-workspace-config-validation
Apr 13, 2026
Merged

fix(core): validate wrapped external workspace configs#1068
christso merged 2 commits intomainfrom
fix/external-workspace-config-validation

Conversation

@christso
Copy link
Copy Markdown
Collaborator

Closes #1067

Summary

  • fail fast when an external workspace YAML file incorrectly wraps config under a top-level workspace: key
  • add a regression test covering the wrapped external workspace case
  • document that external workspace config files must contain the bare workspace object

Verification

  • bun test packages/core/test/evaluation/workspace-config-parsing.test.ts
  • pre-push checks passed during git push:
    • build
    • typecheck
    • lint
    • test
    • validate:examples

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 13, 2026

Deploying agentv with  Cloudflare Pages  Cloudflare Pages

Latest commit: 01c1a41
Status: ✅  Deploy successful!
Preview URL: https://202055e7.agentv.pages.dev
Branch Preview URL: https://fix-external-workspace-confi.agentv.pages.dev

View logs

Copy link
Copy Markdown
Collaborator Author

@christso christso left a comment

Choose a reason for hiding this comment

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

Minor nit: return resolvedWorkspace on line 767 (after the throw block) is always undefined at that point since the truthy case already returned. Should be return undefined; for clarity — there's no scenario where the variable is needed there.

    return undefined;

The return after the wrapped-workspace throw block always holds
undefined since the truthy case already returned. Use an explicit
return undefined for clarity.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@christso christso marked this pull request as ready for review April 13, 2026 01:05
@christso christso merged commit 0b41445 into main Apr 13, 2026
4 checks passed
@christso christso deleted the fix/external-workspace-config-validation branch April 13, 2026 01:05
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: validate wrapped external workspace config files

1 participant