Share work proof remaining-awards helper#948
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR extracts effective-awards-remaining calculation into a new helper function ChangesEffective Awards Remaining Consolidation
Possibly related PRs
🚥 Pre-merge checks | ✅ 5 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
yui-stingray
left a comment
There was a problem hiding this comment.
Reviewed PR #948 at current head da4056f558a063a12ee428606a92ed19b523ac3a as a non-author.
Evidence checked:
- inspected
app/mcp_work_proof.pyandtests/test_mcp_work_proof.py; - confirmed
_effective_awards_remaining_from_payload()centralizes the effective-awards fallback and is reused by text guidance, submission availability, and JSON guidance; - confirmed JSON availability warnings now use the effective award slot count, keeping full/open decisions aligned with effective capacity;
- confirmed the added test locks the text guidance output for
effectively remaining: 6; - confirmed the hosted Quality check succeeded, CodeRabbit generated no actionable comments, there were no existing human reviews, and the #838 claim thread had no #948 claim immediately before this review.
No actionable concerns from this review.
|
Update after syncing with latest
Re-validation on the updated branch:
Scope remains the same: focused work-proof guidance maintainability cleanup only. |
mauricemohr88-debug
left a comment
There was a problem hiding this comment.
Current-head review for #838 on 549195d56c3f61c70e28410fb47155648a97530d.
Evidence checked:
- Inspected
app/mcp_work_proof.py;_effective_awards_remaining_from_payload()centralizes the effective-awards fallback and is reused by text guidance, submission availability, and structured JSON guidance. - Verified the helper preserves the previous fallback behavior when
effective_awards_remainingis absent, while JSON warnings and JSON output now use the same computed effective award count. - Inspected
tests/test_mcp_work_proof.py; the added assertion locks the visible text guidance output foreffectively remaining: 6. - Confirmed GitHub reports PR #948 open, current head
549195d56c3f61c70e28410fb47155648a97530d, merge state clean, and both visible checks successful. - Confirmed the existing human review/claim for #948 was on older head
da4056f558a063a12ee428606a92ed19b523ac3a; I found no current-head human review or current-head #838 claim before posting. - Ran
uv run --python 3.12 --extra dev python -m pytest tests/test_mcp_work_proof.py -q: 8 passed. - Ran
uv run --python 3.12 --extra dev ruff check app/mcp_work_proof.py tests/test_mcp_work_proof.py: passed. - Ran
uv run --python 3.12 --extra dev ruff format --check app/mcp_work_proof.py tests/test_mcp_work_proof.py: 2 files already formatted. - Ran
uv run --python 3.12 --extra dev mypy app/mcp_work_proof.py: success. - Ran
uv run --python 3.12 --extra dev python scripts/docs_smoke.py: docs smoke ok. - Ran
git diff --check origin/main...HEADandgit merge-tree --write-tree origin/main HEAD: clean.
No blocker found. The change is narrow, test-backed, and keeps the work-proof guidance paths aligned around one effective-awards calculation without changing ledger, treasury, payout, wallet, or API contract behavior.
Summary
app/mcp_work_proof.pyinto_effective_awards_remaining_from_payload().Bounty
Scope / Safety
Validation
.venv\Scripts\python.exe -m pytest tests\test_mcp_work_proof.py -q-> 8 passed..venv\Scripts\python.exe -m ruff check app\mcp_work_proof.py tests\test_mcp_work_proof.py-> passed..venv\Scripts\python.exe -m ruff format --check app\mcp_work_proof.py tests\test_mcp_work_proof.py-> 2 files already formatted..venv\Scripts\python.exe -m mypy app\mcp_work_proof.py-> success..venv\Scripts\python.exe scripts\docs_smoke.py-> docs smoke ok.git diff --check-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree9c2767b5a16feff1e787f4f144de44356d168701.Summary by CodeRabbit
Refactor
Tests