docs(engine): correct normalizeNonNegativeInteger's floor in its doc comment (#6775)#6800
Conversation
…comment (JSONbored#6775) The comment claimed parity with MinerGoalSpec's normalizePositiveInteger, which rejects anything < 1 after flooring. normalizeNonNegativeInteger only rejects < 0 and deliberately accepts 0 (already-tested behavior — a 0 budget is a meaningful "do nothing" setting). Describe its own >= 0 floor instead, so the comment can't mislead a contributor into thinking 0 is rejected here. Comment-only; no behavior change. Closes JSONbored#6775
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-17 07:19:13 UTC
Review summary Nits — 3 non-blocking
Flagged checks (non-blocking)
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Summary
normalizeNonNegativeInteger's doc comment claimed it matches "MinerGoalSpec's own normalizePositiveInteger convention" — but that sibling rejects any value< 1after flooring, while this one only rejects< 0and deliberately accepts0(already-tested behavior: a 0 budget is a meaningful "do nothing" setting).>= 0floor and why0is accepted, so it can't mislead a contributor into believing0is rejected here the way it is inminer-goal-spec.ts.Closes #6775
Test plan
npm run test --workspace @loopover/enginegreen — 588 pass / 0 fail, including the existingams-policy-spec-parserzero-budget case that pins the real>= 0behavior.npm run typecheckclean.