SPB Git

Repository Public

CONTRIBUTING-AGENTS.md 1.7 KB 20 lines markdown

1# Working rules for parallel contributors23- One module = one owner. Edit only the directories you were given (`Sources/<Module>`, `Tests/<Module>Tests`).4  Never edit `Package.swift` or another module: report the need instead.5- Zero external dependency in `Sources/`. System frameworks only where stated (Security for randomness).6  CryptoKit and other reference implementations are allowed in `Tests/` only, as independent oracles.7- Public API style: `Bytes` (`[UInt8]`) in and out, parameter sets as enums, typed `Error` enums, no `fatalError`8  on attacker-controlled input (malformed keys, ciphertexts, signatures must return an error or `false`).9- Randomness: every algorithm exposes its deterministic "internal" function (explicit seeds, as in the FIPS documents)10  and a wrapper that draws from `SystemRandom.bytes` (QyvoraMath). No other entropy source.11- Secrets: no secret-dependent branch or table index where the specification requires constant time; wipe temporary12  secrets with `SecureMemory.zero`; never print or log key material.13- Tests use Swift Testing (`import Testing`). Heavy suites must pass with14  `swift test -c release --filter <Module>Tests --scratch-path /tmp/qy-<name>`.15- Test vectors: commit gzip files (`Tests/<Module>Tests/Vectors/*.json.gz`) with a `README.txt` giving source, revision16  and licence; raw `*.json` in `Vectors/` is git-ignored.17- Commits: `sp-git commit -m "type(scope): …" <files>` (Conventional Commits, English), one per coherent step that18  builds and passes. Do not push from a worktree branch; the integrator merges and pushes.19- Never use `pkill -f`. Never claim a test passed without having run it; report exact counts and any failure.20
Files main
Menu

Theme