- Bug report via GitHub Issue
- Classification: Critical / High / Medium / Low
- Decision: Hotfix (immediate) or scheduled fix
| Severity | Response Time | Example |
|---|---|---|
| Critical | Immediately (< 1h) | Funds at risk, reentrancy, overflow |
| High | < 24h | Governance bypass, fee calculation error |
| Medium | < 1 week | UI bug, wrong error message |
| Low | Next sprint | Typo, cosmetic issue |
- Branch:
fix/issue-{number}-short-description - Write tests first (TDD when possible)
- Implement fix
- All existing tests must remain green
- Self-review: Re-read the diff
- For Critical/High: second person (if available)
- Run Slither:
npx slither .(for Solidity changes) - Run Hardhat tests:
npx hardhat test
Conventions (STRICT):
| Prefix | Usage |
|---|---|
feat: |
New feature |
fix: |
Bug fix |
docs: |
Documentation only |
test: |
Tests only |
ops: |
Operations (deploy, governance) |
refactor: |
Refactoring without behavior change |
FORBIDDEN:
- No
force-pushto main - No
rebaseon main - No
--amendon already pushed commits - No
--no-verifyon commits - No AI-generated commit messages without review
For Solidity changes ALWAYS:
- Deploy new contract version (never patch in-place)
- Create Governance Proposal for migration
- Wait for 48h Timelock
- Execute Proposal
- Mark old contract address as deprecated
- Update all docs + wiki
Example: PartnerVault v1 -> v2
- Proposal #2 (old address) -> cancelled
- New v2 deployed + verified
- Proposal #3 (new address) -> executed (26.02.2026)
After every fix:
docs/CHANGELOG.md— Entry with datedocs/DOCS.md— Changelog section- Update affected wiki pages
README.mdif test count or features change
Semantic Versioning: MAJOR.MINOR.PATCH
| Type | When | Example |
|---|---|---|
| MAJOR | Breaking change | New contract, new API |
| MINOR | New features (backward compatible) | New Hardhat task, dashboard feature |
| PATCH | Bug fix (no API change) | Fee calculation corrected |
Current: v1.0.x (Mainnet deployed 2026-03-05)
For critical-severity bugs in smart contracts:
- Guardian can pause contracts (immediately, no timelock)
- Governance deploys fix contract
- Proposal with 48h Timelock (or shorter delay via Governance adjustment)
- Document post-mortem
- All tests green (
npx hardhat test— 578 total) - Slither clean (no new High/Critical)
- README.md updated (if needed)
- docs/DOCS.md updated
- CHANGELOG.md entry
- Affected wiki pages updated
- No
.envor secrets in diff
As of: March 2026 | Version 1.1