# Adding a language adapter
Discuss the proposal before implementation. Rust is the reference integration, not a requirement to use Cargo or Rust-specific solver types in other languages.
## Acceptance criteria
- Provide project initialization, day scaffolding and execution using the existing user-facing commands, or explicitly document missing capabilities for experimental support.
- Support specific years, days, parts and batch execution where the language claims stable support.
- Respect the shared project configuration, including configurable year-directory prefixes and the default YYYY layout for new projects.
- Use shared application logic and reports rather than coupling to Clap or Ratatui.
- Agree on a versioned process/reporting protocol before adding another language. The current Rust subprocess uses human-readable output; a stable structured protocol is still planned.
- Detect missing or unsupported runtimes and report actionable errors.
- Pass subprocess arguments without a shell; handle nonzero exits, cancellation and output correctly.
- Use embedded, language-specific templates and shared educational guidelines (AGENTS.md and CLAUDE.md).
- Preserve user files; reject unsafe paths and never silently overwrite existing solutions.
- Reuse shared authentication and cache infrastructure rather than implementing a separate credential store.
- Test on claimed platforms with synthetic fixtures, no personal puzzle inputs or real network credentials.
- Document the supported runtime versions, installation steps, known limitations and maintenance owner.
For stable support, add automated end-to-end coverage for initializing a temporary project, scaffolding a day, executing a synthetic solver and reporting failure. Until the common protocol exists, new adapters remain proposals or explicitly experimental.
## Layout
Place language-specific implementation under src/adapters/<language>/ and templates under templates/<language>/. Shared templates remain under templates/shared/. Do not add a separate published Cargo package solely for an adapter without a demonstrated need.