fix(report): harden essay HTML title trust boundaries - #981
Conversation
|
Warning Review limit reached
Next review available in: 59 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
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 |
|
@opencode-agent Please review exact head |
|
@opencode-agent Please review the new exact head |
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
@coderabbitai review |
|
There was a problem hiding this comment.
Pull request overview
OpenCode cannot approve yet because required coverage evidence did not pass.
Review outcome
1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
-
Problem: The required coverage-evidence job result was
failure, so OpenCode cannot establish approval sufficiency for this head. -
Root cause: Automated approval is only valid when the same-head coverage-evidence job proves supported repository test suites passed and configured docstring gates passed or were advisory, or reports not applicable because no supported source files or package manifests exist. Missing, failed, skipped, unavailable, or unsupported-tooling test evidence is a blocker.
-
Fix: Install or configure the repository test/docstring evidence tooling when source files or package manifests exist, rerun the current-head coverage-evidence job, and approve only after it reports
successwith required evidence or explicit no-source not-applicable evidence. -
Regression test: Keep the approval branch checking
needs.coverage-evidence.result == successbefore posting APPROVE, and publish REQUEST_CHANGES when coverage-evidence blocker states such as cancelled, skipped, failed, unsupported-tooling, or below-100 evidence are present. -
Result: REQUEST_CHANGES
-
Reason: coverage-evidence result was
failure, so required test/docstring evidence was not proven for current heade2d5e0ebfe11d9b842a88f4773dbad3d4c577ccb. -
Head SHA:
e2d5e0ebfe11d9b842a88f4773dbad3d4c577ccb -
Workflow run: 32124690362
-
Workflow attempt: 1
Coverage evidence
Coverage evidence job did not run or did not publish coverage evidence.
Changed-File Evidence Map
flowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Docs: 980-essay-report-title-trust-boundary.md"]
S1 --> I1["operator or user guidance"]
I1 --> R1["Review risk: Docs: 980-essay-report-title-trust-boundary.md"]
R1 --> V1["docs review"]
Evidence --> S2["Changed file (3 files)"]
S2 --> I2["repository behavior"]
I2 --> R2["Review risk: Changed file (3 files)"]
R2 --> V2["required checks"]
Evidence --> S3["Test: test_essay_report_title_trust_boundary.py"]
S3 --> I3["regression suite"]
I3 --> R3["Review risk: Test: test_essay_report_title_trust_boundary.py"]
R3 --> V3["targeted test run"]
OpenCode Review Overview
Pull request overviewOpenCode cannot approve yet because required coverage evidence did not pass. Review outcome1. HIGH .github/workflows/opencode-review.yml:1 - Coverage evidence did not prove required test/docstring evidence
Coverage evidenceCoverage evidence job did not run or did not publish coverage evidence. Changed-File Evidence Mapflowchart LR
PR["PR changed files"] --> Evidence["OpenCode bounded evidence"]
Evidence --> S1["Docs: 980-essay-report-title-trust-boundary.md"]
S1 --> I1["operator or user guidance"]
I1 --> R1["Review risk: Docs: 980-essay-report-title-trust-boundary.md"]
R1 --> V1["docs review"]
Evidence --> S2["Changed file (3 files)"]
S2 --> I2["repository behavior"]
I2 --> R2["Review risk: Changed file (3 files)"]
R2 --> V2["required checks"]
Evidence --> S3["Test: test_essay_report_title_trust_boundary.py"]
S3 --> I3["regression suite"]
I3 --> R3["Review risk: Test: test_essay_report_title_trust_boundary.py"]
R3 --> V3["targeted test run"]
|
|
@opencode-agent Please re-review unchanged exact head |
|
@opencode-agent Please re-review unchanged exact head |
|
Superseded by #1007 at the identical exact source SHA |
Closes #980.
Defect
All three public essay HTML renderers — score, validation-evidence, and facets-calibration — admitted arbitrary
strsubclasses and calledtitle.strip()during validation. A caller-controlled subclass could execute an overridden text callback inside the report trust boundary before any artifact was written; admitted values later flow through HTML escaping as well.Test-first lineage
0d222c0e639839fee0a6ded63db866729ebf0c11— initial RED hostile-subclass regression for the score-report renderer.4724b43761b9ffd2b478784a15ac842fbee45a73— GREEN score-report boundary: admit only exact built-in strings (orNone).2ec8aa36b7b37a9d07039430f00e2401213f0c9d— expanded RED regression across score, validation-evidence, and facets-calibration renderers.096345838fae8822961a4b9af7d8c5b14a2f26bf— GREEN validation-evidence boundary.d992e775eaf58c85a66f88e81c69590aebe53007+304bb9ae4806be1dd11ce6107a12aa8d5a74fe43— GREEN facets-calibration boundary followed by cleanup of incidental full-file replacement noise; the final calibration patch is exactly one validation-line change.b7dd14dd1e24e1157d330589fe3e8f868c20f5cb— changelog trace updated for all three renderers.Final boundary
The branch is a descendant of protected
main@04d0bc21a2a20693bcf16108cd76d394fe844d23. Net production changes are one title-admission line in each of the three essay HTML renderers, plus one focused hostile-subclass regression file and one changelog fragment. Built-in string blank validation and HTML escaping remain unchanged.No scoring, facets calibration estimation, likelihood, optimizer, or other psychometric arithmetic changes; Rust numerical ownership is unchanged.
Keep Draft until exact-current-head hosted CI/security/review evidence is terminal. Predecessor-head checks and reviews are historical only.