-
Notifications
You must be signed in to change notification settings - Fork 0
14 Contributing contributing
LAP-CHRIS\chris edited this page May 28, 2026
·
2 revisions
- TDD (Test-Driven Development) — Write tests before production code
- Safety First — All contributions must respect the safety model
- Deterministic Tests — Tests must be offline, fast, and deterministic
- Local-First — No external service dependencies in community mode
- Framework: xUnit (C#) / pytest (Python)
- All tests must run offline
- No hardcoded API keys or secrets
- Each individual test < 5 seconds
- Same input → same result
# Restore
dotnet restore KrnlAICommunity.slnx
# Build
dotnet build KrnlAICommunity.slnx
# Test all
dotnet test KrnlAICommunity.slnx
# Test specific project
dotnet test tests/KrnlAI.Cli.Tests/KrnlAI.Cli.Tests.csproj
# Test with filter
dotnet test --filter "FullyQualifiedName~SafetyCommandTests"cd sdk/python
pip install -e ".[dev]"
pytest-
Community/src/KrnlAI.Desktop.Tauricontains the cross-platform desktop surface - Desktop work now includes auth state, API keys, privacy controls, and P2P/WebRTC signaling docs
cd src/KrnlAI.Desktop.Tauri
npm install
npm run build
npm run test- Build with no errors or warnings
- All tests passing
- New code has corresponding tests
- Tests written BEFORE code (TDD)
- No tests depending on network/external services
- Updated documentation if applicable
- Changes are focused on a single concern
- Documentation improvements
- Sample code and patterns
- Small CLI workflow additions
- Test coverage for existing features
- Provider examples for new LLM backends
- Bug fixes with simple reproduction
- C#: Nullable enabled, implicit usings, latest language version
- Python: Type hints, async/await patterns
- Follow existing conventions in the codebase you're modifying
- GitHub Issues — Bug reports and feature requests
- GitHub Discussions — Q&A and community showcase
Krnl-AI Community — MIT License