Share submission availability field copying#878
Conversation
|
Complex PR? Review this PR in Change Stack to move by importance, not file order. 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)
📝 WalkthroughWalkthroughAdds an internal helper ChangesAvailability field copying refactor
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: c262c90c-feda-49ba-a619-2679e649e1b9
📒 Files selected for processing (1)
scripts/submission_quality_gate.py
| return raw.get("payability_verified", True) is not False | ||
|
|
||
|
|
||
| def _copy_effective_availability_fields(source: dict[str, Any], target: dict[str, Any]) -> None: |
There was a problem hiding this comment.
Run the full required Python validation suite before merge.
The PR evidence shows targeted checks, but repo rules for Python changes require pytest, ruff format --check ., ruff check ., and mypy app across the repo before opening/merging.
As per coding guidelines, **/*.py: Run pytest, ruff format --check ., ruff check ., and mypy app before opening a PR.
mauricemohr88-debug
left a comment
There was a problem hiding this comment.
Approved current head b7b452d1f35018b91a1f8eaa53cb8b693dbe8400.
Evidence checked:
- inspected
scripts/submission_quality_gate.pyandtests/test_submission_quality_gate.py; - confirmed
_copy_effective_availability_fields()preserves the previous per-field copy behavior for both_load_api_bounties()and_load_live_context()while centralizing the sharedEFFECTIVE_AVAILABILITY_FIELDSloop; - confirmed the live-context regression now asserts
availability_noteis preserved along with the other effective availability fields; - rechecked GitHub state before review:
mergeStateStatus=CLEANand hostedQuality, readiness, docs, and image checksis successful on this head.
Validation on this exact head:
uv run --python 3.12 --extra dev python -m pytest tests/test_submission_quality_gate.py -q-> 45 passed.uv run --python 3.12 --extra dev ruff check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passed.uv run --python 3.12 --extra dev ruff format --check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> 2 files already formatted.uv run --python 3.12 --extra dev mypy scripts/submission_quality_gate.py-> success.uv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree74971b6f7fe39b42e83ee8bac88fca6dd68818ed.
No blockers found. Scope stays inside submission quality-gate maintainability and tests; no ledger, wallet, treasury, payout, proposal execution, bridge, exchange, cash-out, MRWK price, private data, or secret handling behavior is changed.
|
Maintenance update: CodeRabbit requested the full required Python validation suite before merge. I ran that validation on the PR branch without changing code. Validation run locally:
Scope remains validation-only; no code, ledger, wallet, treasury, payout, proposal execution, bridge, exchange, cash-out, MRWK price, private data, or secret handling behavior changed. |
|
Bounty #838 current-head review for PR #878. Reviewed head Verdict: no blocker found. GitHub state checked: |
alan747271363-art
left a comment
There was a problem hiding this comment.
Reviewed current head b7b452d1f35018b91a1f8eaa53cb8b693dbe8400 against current origin/main d7e9b530fffec7bd774da7708597648096a37393.
Scope inspected:
scripts/submission_quality_gate.pytests/test_submission_quality_gate.py
The branch-local maintainability change remains focused: _copy_effective_availability_fields() centralizes the shared effective-availability field copy path used when loading API bounty rows and live submission-gate context, and the regression confirms availability_note is preserved with the other effective availability fields. This stays inside submission quality-gate logic and tests; it does not alter ledger, wallet, treasury, payout, proposal execution, bridge, exchange, cash-out, private data, or secret-handling behavior.
Validation on this exact head:
.\.venv\Scripts\python.exe -m pytest tests\test_submission_quality_gate.py -q-> 45 passed..\.venv\Scripts\python.exe -m ruff check scripts\submission_quality_gate.py tests\test_submission_quality_gate.py-> passed..\.venv\Scripts\python.exe -m ruff format --check scripts\submission_quality_gate.py tests\test_submission_quality_gate.py-> 2 files already formatted..\.venv\Scripts\python.exe -m mypy scripts\submission_quality_gate.py-> success..\.venv\Scripts\python.exe scripts\docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.
Current blocker: GitHub now reports mergeStateStatus=DIRTY / conflicting. git merge-tree --write-tree origin/main HEAD exits non-zero with a current-main conflict in docs/agent-guide.md while also auto-merging docs/api-examples.md and tests/test_docs_public_urls.py. The visible PR diff is script/test focused, so this appears to be a branch-base rebase conflict from newer documentation changes, but it blocks merging and needs to be resolved.
No private data, credentials, wallet material, production mutation, payout execution, treasury execution, ledger mutation, exchange, bridge, cash-out, price behavior, or fabricated payout claims were used.
…ssion-availability-fields # Conflicts: # scripts/submission_quality_gate.py
mauricemohr88-debug
left a comment
There was a problem hiding this comment.
Approved current head 6d743ca74c2ca7a2b045b8b2ff560d5cb3e597a0.
I reviewed the refreshed PR after it was rebased from the previously reviewed head b7b452d1f35018b91a1f8eaa53cb8b693dbe8400. The current diff is now very small: scripts/submission_quality_gate.py keeps the shared effective-availability copy helper in the submission quality gate, and tests/test_submission_quality_gate.py adds coverage that availability_note is preserved in live bounty context alongside the other effective availability fields.
Validation I ran locally on this exact head:
uv run --python 3.12 --extra dev python -m pytest tests/test_submission_quality_gate.py -q-> 47 passed.uv run --python 3.12 --extra dev ruff check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passed.uv run --python 3.12 --extra dev ruff format --check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> 2 files already formatted.uv run --python 3.12 --extra dev mypy scripts/submission_quality_gate.py-> success.uv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree366f68450efcfa9129efa1cf3f82ea3fbbf6f597.
GitHub state checked before approval: current head 6d743ca74c2ca7a2b045b8b2ff560d5cb3e597a0, mergeStateStatus=CLEAN, hosted Quality/readiness/docs/image check successful, CodeRabbit successful, and no human review was present on this current head.
No blocker found. Scope stays inside submission quality-gate maintainability and regression coverage; no ledger, wallet, treasury, payout, proposal execution, bridge, exchange, cash-out, MRWK price, private data, credentials, or secret-handling behavior is changed.
Errordog2
left a comment
There was a problem hiding this comment.
Reviewed the submission availability field copying cleanup.
Validation performed locally after applying the PR diff cleanly to current origin/main:
git apply --3way --index-> appliedscripts/submission_quality_gate.pyandtests/test_submission_quality_gate.pycleanly.venv\Scripts\python.exe -m pytest tests/test_submission_quality_gate.py-> 47 passed.venv\Scripts\python.exe -m ruff check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passed.venv\Scripts\python.exe -m ruff format --check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passed.venv\Scripts\python.exe -m mypy scripts/submission_quality_gate.py-> passedgit diff --check-> passedgit merge-tree --write-tree origin/main HEAD-> produced merge tree46508e23e7730ca1c5c9586ceb25a19aaca94b12
The refactor keeps the effective availability field copying centralized and the added assertion confirms availability_note is preserved alongside the other effective-capacity fields. Looks good to me.
Refs #846
What changed
submission_quality_gate.py.availability_noteis preserved with the other effective availability fields.Validation
uv run --extra dev python -m pytest tests/test_submission_quality_gate.py -q-> 45 passeduv run --extra dev python -m ruff check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passeduv run --extra dev python -m ruff format --check scripts/submission_quality_gate.py tests/test_submission_quality_gate.py-> passedgit diff --check-> passedScope
This is a focused maintainability cleanup for the submission quality gate. It does not change ledger, wallet, treasury, payout, deployment, bridge, exchange, or off-ramp behavior.
Summary by CodeRabbit
Refactor
Tests