Update GitHub Actions and add AI agent guidelines #35
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR makes three key improvements to the repository's infrastructure and development standards:
Context
GitHub Actions Deprecation
GitHub is deprecating v3 of
actions/upload-artifactstarting January 30th, 2025. Workflows using v3 will fail after this date. The v4 API provides significant performance improvements (up to 98% faster uploads) and continued support.macOS Runner and Python 3.10 Compatibility
Initial workflow failures on macOS were caused by Python 3.10.19 binaries having a hard dependency on Homebrew's gettext library (libintl.8.dylib), which isn't available on newer ARM64 macOS runners (macos-latest/macos-14).
Several workarounds were attempted:
The correct solution: Switch from macos-latest to macos-13 (Intel x64). The Python 3.10.19 gettext issue only affects ARM64 runners; the Intel-based macos-13 runners work correctly with Python 3.10 out of the box.
Why maintaining Python 3.10 is critical:
AI Agent Guidelines
The project needed standardized guidelines for AI agents working on the codebase. There was a tendency for automated commits to lack the "why" context that makes git history valuable for debugging and understanding code evolution.
Approach
Artifact Actions Update
.github/workflows/main.ymlfrom v3 to v4macOS Python Setup Fix
macos-latesttomacos-13(Intel-based runner)actions/setup-pythonfrom v3 to v5 for better compatibilityAI Agent Guidelines Structure
CLAUDE.mdas an entry point that referencesAGENTS.mdAGENTS.mdwith comprehensive guidelines covering:Testing
Risks
Low risk overall:
Benefits
🤖 Generated with Claude Code