Important
AI Assist Note (Knowledge Heritage): This document is part of the "Sovereign Reality" documentation.
- @docs ARCHITECTURE:Core
- Failure Path: Information drift, legacy terminology, or documentation mismatch.
- Telemetry Link: Search
[CONTRIBUTING]in audit logs.
🐸 Tadpole OS Contribution Standards
Traceability via execution/parity_guard.py.
Welcome, Overlord. To maintain the sovereignty and performance of AI-Tadpole-OS, please follow these guidelines when contributing.
All code contributions must respect our architecture:
- Directive (YAML/MD): Standardized instructions.
- Orchestration (Rust/TS): Intelligent routing and state management.
- Execution (Sub-processes/Tools): Deterministic execution.
- Fork the Repo: Create your own tactical instance.
- Clone & Install:
npm installin the root, then ensurecargo checkpasses inserver-rs/. - Environment: Copy
.env.exampleto.envand fill in required keys. - Run Locally:
npm run engine(backend on:8000) +npm run dev(frontend on:5173).
-
Feature Branches: Use descriptive names following the pattern:
feat/<area>/<description>— New features (e.g.,feat/runner/parallel-budgets)fix/<area>/<description>— Bug fixes (e.g.,fix/chat/scroll-position)refactor/<area>/<description>— Code improvements (e.g.,refactor/runner/split-tools)docs/<description>— Documentation only (e.g.,docs/api-versioning)
-
Commit Messages: Use Conventional Commits:
feat(runner): add parallel budget enforcement fix(chat): prevent scroll reset on new message docs: update API_REFERENCE with pagination refactor(state): extract rate-limit middleware -
Pre-Submit Checklist:
-
cargo checkpasses inserver-rs/ -
cargo testpasses inserver-rs/ -
npm run lintpasses -
npm run buildpasses -
npm run testpasses - Verification Parity: Run
python execution/verify_all.pyand ensure 100% parity pass. - Parity Guard: Run
python execution/parity_guard.pyto ensure security protocols are correctly reflected. - Performance Audit: Run relevant benchmarks on the Performance Analysis page and ensure no regressions (verified via Delta Analysis)
- Success Audit: Run at least one mission with Mission Analysis enabled to verify that your changes produce optimal, high-quality agent outputs.
- Documentation Alignment: Updated relevant docs (
GLOSSARY.md,ARCHITECTURE.md,API_REFERENCE.md,OPERATIONS_MANUAL.md). - Code Tagging: Ensure all critical logic is tagged with
@docs-reffor automated documentation linking. - Capability Registration: If adding new tools, ensure they are compatible with the Import Engine and are correctly categorized (User/AI).
-
-
Code Review: All PRs require at least one review. Reviewers should check:
- Correctness and edge cases
- Security implications (especially for filesystem/tool changes)
- Performance impact (especially for hot-path code in
runner.rs) - Documentation completeness
- Run
cargo clippyand address all warnings - Follow idiomatic async patterns with
tokio - Use
anyhow::Resultfor fallible functions,thiserrorfor domain errors - All tool handlers must return
anyhow::Result<String> - REST Compliance: All New API endpoints must follow RFC 9457 (Problem Details) for error responses and include HATEOAS navigability.
- Never create a
reqwest::Clientdirectly — usestate.http_client - Never hardcode workspace paths — use
ctx.workspace_root
- Use functional components with TypeScript strict mode
- State management via Zustand stores (never prop-drilling beyond 2 levels)
- Tailwind CSS variables for theme synergy — no inline color values
- All interactive elements must have unique IDs for E2E testing
- Never hardcode API keys or tokens — use
.env - All new tool calls that modify state must go through the Oversight Gate
- Filesystem operations must use
FilesystemAdapter— never rawfscalls
When filing issues, include:
- Type: Bug / Feature / Enhancement / Docs
- Severity: Critical / High / Medium / Low
- Steps to Reproduce (for bugs): Include terminal output or screenshots
- Expected vs Actual Behavior
- Environment: OS, Rust version, Node.js version, browser
- Update version in
package.jsonandCargo.toml - Run full test suite (
cargo test+npm run test) - Build production bundle (
npm run build) - Tag the release:
git tag -a v0.x.x -m "Release description" - Deploy via
./deploy.ps1to the Swarm Bunker
Thank you for strengthening the swarm.