Skip to content

fix(ci): normalize windows paths in architecture self-test - #522

Open
yichen11818 wants to merge 1 commit into
vercel-labs:mainfrom
yichen11818:codex/windows-architecture-selftest
Open

yichen11818 wants to merge 1 commit into
vercel-labs:mainfrom
yichen11818:codex/windows-architecture-selftest

Conversation

@yichen11818

@yichen11818 yichen11818 commented Nov 3, 2026 •

Copy link
Copy Markdown

Summary

On Windows, the architecture gate inserts an unescaped temporary-directory path into a Rust string literal in its absolute-path G11 fixture. The lexer consumes the backslashes as escapes, so the fixture no longer points outside its module and the self-test fails before the repository scan.

Normalize the substituted path to forward slashes. The absolute-path violation stays valid on Windows, and the existing planted case detects it without changing any architecture rule.

Related issues

Found while validating #521. This fix is independent of the feature PRs and changes only the architecture self-test fixture.

Type of change

  • fix: correct Windows path substitution in the self-test
  • test: restore the existing absolute-path G11 regression case

How tested

  • Reproduced on clean upstream 93ae89e86fb849eeb5fc265b0b8e37eca56aaf72 with Python 3.13 on Windows.
  • Ran all three G11 planted cases separately: both relative-path cases passed; the absolute-path case failed before the fix.
  • bash scripts/check-architecture.sh: all planted violations and the repository scan passed after the fix.
  • Repository pre-commit harness/script checks passed with hooks enabled.
  • git diff --check
  • Upstream GitHub workflows are currently action_required; Vercel preview requires Vercel Labs authorization.

Checklist

  • Conventional-commit title
  • No production Rust, CLI behavior, or public interface changes
  • Existing regression reproduced before the fix and passed after it
  • All required upstream checks pass

@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

@yichen11818 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

@yichen11818
yichen11818 marked this pull request as ready for review November 5, 2026 02:34
SanHsien added a commit to SanHsien/agent-desktop that referenced this pull request Nov 10, 2026
Merge the vercel-labs/agent-desktop v1.2.0 release commit. The only product
file both sides touched is crates/windows/src/tree/hit_test/envelope_tests.rs
(auto-merged; the fork's 1000 ms budget stays). The README conflict keeps the
fork's own README and adds the mcp and --stdin notes; ad_init(6) becomes
ad_init(7), the example envelope version becomes 2.6, and the removed macOS
command host and the Homebrew availability are corrected in README.en.md and
the spec. docs/DIVERGENCE.md is re-pinned to 2b0a733 with the same 34 paths.

Port the one-line upstream vercel-labs#522 fix to scripts/check_architecture.py so the
Architecture boundaries gate stops failing on Windows (G11 self-test).

ADR-009 records the verdict for the 63 PRs and 25 issues past the old
watermark; tools/upstream_baseline.json moves to v1.2.0, PR 569, issue 577 and
pins five more open PR heads.

Co-Authored-By: Claude Sonnet <noreply@anthropic.com>

This branch has not been deployed

No deployments
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