Skip to content

Conversation

@robotdad
Copy link
Member

@robotdad robotdad commented Jan 6, 2026

Summary

  • Adds comprehensive Windows development guidelines to IMPLEMENTATION_PHILOSOPHY.md
  • Documents best practices for cross-platform path handling
  • Provides clear guidance on filesystem restrictions and compatibility patterns
  • Prevents future Windows compatibility issues through proactive documentation

Context

This PR adds a dedicated "Windows Development Compatibility" section to the implementation philosophy document. The guidelines cover critical areas like path separators, filesystem restrictions (colons in filenames), case sensitivity differences, and best practices for cross-platform development.

These guidelines emerged from real compatibility issues encountered during development and testing, making them practical and actionable for contributors.

Test plan

  • Documentation is clear and comprehensive
  • Guidelines are based on real Windows compatibility scenarios
  • No code changes - documentation only

🤖 Generated with Amplifier

Co-Authored-By: Amplifier 240397093+microsoft-amplifier@users.noreply.github.com

Add comprehensive guidance for cross-platform development with focus
on Windows compatibility. This documents critical patterns discovered
from fixing production issues:

1. **File I/O Encoding**: Always specify encoding="utf-8" explicitly
   - Windows defaults to cp1252/charmap instead of UTF-8
   - Prevents "'charmap' codec can't decode" errors
   - Applies to open(), Path.read_text(), Path.write_text()

2. **Path Sanitization**: Remove Windows-prohibited characters
   - Colons, pipes, asterisks, etc. cause [WinError 267]
   - Agent names like "foundation:explorer" must be sanitized
   - Applies to any user input used in filenames

3. **Development Checklist**: Pre-commit verification steps

This guidance is loaded by all agents via common-agent-base.md,
ensuring consistent Windows-safe code across the codebase.

Related PRs:
- amplifier-app-cli#36 (encoding fixes) - Merged
- amplifier-foundation#11 (test coverage) - Open

Type: docs

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
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