Repository navigation
docs(verify): oracle-limit example and shadow sys.path guidance - #85
Conversation
Two things round-4 hardening taught us, documented for users. The SAFE section now carries a worked example from a real library: flipping <= to < in Jinja2's truncate filter genuinely changes boundary behavior, yet all 911 of its tests pass and the line is covered, so the verdict is SAFE. Correct about what it claims, still not a proof of correctness, which is exactly what the verdict promises. New section on making the tests run the code being verified: an installed package (editable counts) makes imports resolve outside the verified copy, so the run proves nothing. Proven on Django, where the same diff read UNPROVEN via the installed copy and UNSAFE once the verified tree came first on sys.path.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughVerification documentation now explains SAFE verdict limitations, warns about tests importing installed copies instead of the verified tree, documents ChangesVerification documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
docs/verification/verdicts.mdxParsing error: ESLint was configured to run on docs/verification/verify-diff.mdxParsing error: ESLint was configured to run on 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 |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
What
Documents two user-facing lessons from round-4 hardening (Django, pydantic, Jinja2, pytest).
1. A worked oracle-limit example, from a real library
The "SAFE means suite-approved" section now carries evidence instead of only an argument. Flipping
<=to<in Jinja2'struncatefilter genuinely changes boundary behavior (at the exact boundary the string is truncated instead of returned whole), yet all 911 tests in Jinja2's suite pass and the changed line is covered, so the verdict isSAFE. That verdict is correct about what it claims and still not a proof of correctness, which is precisely the promise the docs make. Boundary conditions are where suites are thinnest, so this is the honest thing to show a reader.2. Make sure the tests run the code being verified
New section, plus a pointer from the verify-diff page. When a project is installed into the environment (an editable
pip install -e .is the common case),import yourpackageresolves outside the copy under verification, the tests exercise the original code, and the run proves nothing about the change. Proven on Django: the same diff readUNPROVENwhile the tests loaded the installed copy, andUNSAFE(correctly, the auth suite catches it) once the verified tree came first onsys.path.Refactron already detects this rather than guessing (a changed file that coverage never measured reports "could not be determined" instead of claiming the code is untested, shipped in PR #84). The docs now tell users how to get a real verdict: put the verified tree first on
sys.path, for examplePYTHONPATH=.orPYTHONPATH=src.Notes
Docs only, no code. Zero em or en dashes; both frontmatters parse; the added paragraph sits outside the
<Warning>component deliberately, since the formatter dedents content inside components and that indentation has broken MDX parsing on this site before.Summary by CodeRabbit
SAFEverification verdict when tests remain passing.