Verification — R93 B6 stake_discount_bps Rename
Round: R93 debug-sweep · XS scope
β task: 2e8978e9-e83d-4c3a-a20a-bf66cacc9251
§1. Gates
| Gate | Command | Result |
|---|---|---|
| Build | npm run build |
✅ exit 0 |
| Lint | npm run lint |
✅ exit 0 |
| Test (run 1) | npm test |
⚠️ 3490/3492 (2 floating documented flakes) |
| Test (run 2) | npm test |
⚠️ 3491/3492 (1 floating documented flake — reputation/tools parallel-migration race per memory; or parity-harness G7.1 perf borderline) |
Test count = baseline 3492 (no new tests; rename does not change test count). Both observed failures are documented pre-existing flakes that float across the test runs of every R93 PR; neither is caused by this slice.
§2. Rename coverage
| File | Old occurrences | New occurrences |
|---|---|---|
src/domains/reputation/tools.ts |
7 → 0 | 7 |
src/__tests__/domains/reputation/tools.test.ts |
1 → 0 | 1 |
docs/contracts/p2-5-1-tools-contract.md |
4 → 0 | 4 |
docs/audits/p2-5-1-tools-audit.md |
4 → 0 | 4 |
docs/guides/implementation/task-prompts/p2.1-lambda-reputation.md |
1 → 0 | 1 |
Post-rename, git grep stake_discount_bps returns only this slice’s own audit/contract/packet (3 files), which legitimately reference the old name to describe the rename.
The underlying pure-function name stake_discount(...) at src/domains/reputation/limits.ts:172 is preserved — that name describes the formula (an inverse-rep scaling with a floor) and is referenced from the spec at docs/spec/s04-reputation.md.
§3. Result
PASS. Ready to commit / push / PR / writeback. Closes R93 B6, the final fix in the R93 debug-sweep round.