docs: clarify backport assertion policy exceptions - #7647
Conversation
Keep Bitcoin Core backports aligned with upstream unless a clear Dash-specific correctness, security, or consensus issue requires adaptation. Document that assertion primitives in src/test and src/wallet/test affect test binaries, not production nodes, so their selection is not a production-crash concern. Co-Authored-By: Claude <noreply@anthropic.com>
|
✅ Final review complete — no blockers (commit 9f8eea2) |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. WalkthroughUpdated Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This documentation-only change clarifies backport and test-source assertion guidance without changing product behavior, so no actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
thepastaclaw
left a comment
There was a problem hiding this comment.
Final validation — Codex/Sol only (Phase 2 disabled)
The exact-head documentation diff is narrow, internally consistent, and preserves the untrusted-input guidance while clarifying the intended exceptions for test-only sources and upstream-aligned backports. AGENTS.md and CLAUDE.md remain byte-identical; whitespace lint, codespell, and diff checks pass, and no actionable findings were identified.
Source: reviewers gpt-5.6-sol (general), gpt-5.6-sol (dash-core-commit-history), and gpt-5.6-sol (backport-reviewer); final verifier gpt-5.6-sol. openclaw-agent/cliproxy/gpt-5.6-sol was orchestration-only and is not reviewer evidence.
Validated zero-blocker Codex/Sol precheck evidence was promoted to final because Phase 2 (Sonnet/Opus) is temporarily disabled. This is Codex/Sol-only final validation, not Codex + Sonnet/Opus coverage.
Review provenance
- Codex reviewers:
gpt-5.6-sol— general (completed),gpt-5.6-sol— dash-core-commit-history (completed),gpt-5.6-sol— backport-reviewer (completed) - Verifier:
gpt-5.6-sol— verifier - Sonnet/Opus: not run (Phase 2 disabled — temporary Codex/Sol-only final)
- Secondary pass: disabled (
temporary_phase2_sonnet_disable)
Canonical verifier result: APPROVE. GitHub does not allow authors to approve or request changes on their own pull requests, so this review was submitted using COMMENT transport. The findings and blocker status above are unchanged.
Issue being fixed or feature implemented
Follow-up to #7615. Its condensed agent guidance correctly protects user-facing binaries, but reviewers can apply it too broadly to Bitcoin Core backports and test-only code. For example, the review comment in #7646 proposed replacing upstream
assertcalls insrc/wallet/test/util.cppsolely to satisfy the production assertion policy, even though that source is linked into the unit-test binary rather thandashdordash-qt.What was done?
Updated the byte-identical
AGENTS.mdandCLAUDE.mdguides to clarify two boundaries:src/test/andsrc/wallet/test/,assert,Assert,Assume, and related fatal test checks are all acceptable. Their selection should not be flagged as a production-crash risk because these sources compile into test binaries, not user-facing applications.The exception is intentionally limited to the two requested test directories. The production-binary safety and untrusted-input guidance from #7615 remains unchanged.
doc/developer-notes.mdis also unchanged because this follow-up scopes agent/reviewer behavior rather than weakening the developer-facing production guidance.How Has This Been Tested?
Documentation-only change. Validation performed:
cmp -s AGENTS.md CLAUDE.mdtest/lint/lint-whitespace.pycodespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=test/lint/spelling.ignore-words.txt AGENTS.md CLAUDE.mdgit diff --check upstream/develop..HEADshipwith zero findingsBreaking Changes
None.
Checklist: