Organization Contributing Guide โ
This guide applies across all repositories in the stellar-agent-guard organization:
stellar-agent-guard-contractsstellar-agent-guard-sdkstellar-agent-guard-dashboard
๐ Commit Convention โ
Commits follow Conventional Commits:
<type>(<scope>): <imperative summary>Allowed types: feat, fix, docs, chore, ci, test.
The One File Per Commit Rule โ
Every commit and push across all repositories must touch exactly one file:
- Never bundle a source change with its test file.
- Never bundle a doc update with the code file it describes.
- Maintain atomic commit reviewability and clean revert boundaries.
Verify before committing:
bash
git diff --cached --name-onlyOutput must show exactly 1 path.
๐ฟ Branching & Review Policy โ
- Main Protection:
mainis protected by mandatory status checkci. - Solo-Maintainer Policy: PRs require green CI checks. Main-protection ruleset bypass is documented and used by the maintainer to merge without an unsatisfiable second review requirement.
- Branch Cleanup: Remote and local branches are deleted immediately after PR merge.
git branch -amust showmainonly.
๐งช Pre-Push Testing Checklist โ
Contracts (stellar-agent-guard-contracts) โ
bash
cargo test
cargo clippy --all-targets -- -D warnings
cargo fmt --checkSDK (stellar-agent-guard-sdk) โ
bash
npm run typecheck
npm run lint
npm testDashboard (stellar-agent-guard-dashboard) โ
bash
npm run typecheck
npm run lint
npm test
npm run build