Repository navigation
fix(output): preserve source literals and Markdown block context in reports - #9937
Conversation
(cherry picked from commit fdabcf75c83d6a6ff43df9a7ea6191e987a41126)
(cherry picked from commit f5b086770f8e06f92a8bc46a03c3ad15f66664cc)
(cherry picked from commit 1972edde103992796477c421e58434587ceaa0e8)
(cherry picked from commit d051c9b72531485b98ff433d9b6e7a2b8627e73f)
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 30 minutes. View limit details
Comment |
There was a problem hiding this comment.
Decision
- Needs one verification check before upstream.
Verification questions
- Confirm the parser-offset implementation copies only recognized code events and neutralizes surrounding ranges; unmatched or newly created backticks are escaped on the next pass.
Refuted
- A failed ripr sensor or absent planned sensor receipt proves the Markdown fix is unsafe.; refuted because: The failure and pending receipt are evidence gaps, not a demonstrated defect; tokmd, unsafe-review, and ast-grep completed, and the source-level block-context tests directly cover the principal concern.
- The changed handoff surface could introduce an async worker boundary where bounded text is transferred before Markdown neutralization.; refuted because: The diff only synchronously constructs strings; final prose processing occurs inside repair_card_body before comment_body returns, and tests invoke that producer directly.
- The added parser dependency creates an incompatible second rendering abstraction or feature mismatch.; refuted because: pulldown-cmark is used as a parser for source ranges only, with default features disabled; output formatting remains owned by existing code_span/prose logic.
Evidence gaps
- Current build/test qualification remains external to this lane because cargo-test is scheduled late and ripr sensor failed.
- Execution evidence is not yet complete in this review packet.
- Model proof intent was rejected by deterministic validation.
- Executable package-test proof remains pending at the gate despite extensive claimed local validation.
- Current executable Rust proof is incomplete in the supplied packet.
|
#9921 part A is delivered by squash 9ae5ec74d6155850bd98caf766112fb59e5e6f36, reviewed head 2e3ba84. Independent readback verifies the full landing tree and ancestry on main, with the literal helper/guard and Python/TypeScript controls unchanged. Final qualification 39936093275 passed 20,033 tests (five skipped) on actual merge subject e39313c; the executed subject and later landing tree remain explicitly distinguished. Delivery receipt and historical exact patch/output handoffs retain source identities, the repaired literal counterexamples and both accepted fixture-history integrations. No #9937 source change or qualification is claimed by this lane, and #9937 retains its separate intentional-Markdown contract. #9928 grouped rows and #9929 other routes remain separate open work. No duplicate writer, CI, merge attempt, force push or denied-transfer retry was made. |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REPAIR_REQUIRED — intentional angle-delimited Markdown links change destination.
Reviewed head: 3922bfd6d9ad5520b7ac37790d8e3cd3ed2d00c0 (tree 0a3dd4f5c8e396b2ff6c6e1566c302fb57fcbb04). Integration basis inspected: 445347d15ee171987eba4ee132c2128122397331; actual hosted checkout 4c11a687e7aafc4f4826fd5488a0dc92cd784641, tree caac5d41448db99f3d5ca3acbb652df722d53e0f. Current main 64a98db5bb970b0de3043fc280adc73b42a86321 composes without conflict as tree e0cc2a52969074116142bce3255f2f12f02539e1; its three repaired renderer blobs match the candidate and hosted subject. This latest composition was not executed.
[P1] Preserve parser-recognized link destination delimiters
Failure mode: the actual ripr pr-comments plan CLI given [link](<https://example.test>) in any of repair_card.why_this_matters, repair_card.repair, or fallback reason emits [link](<https://example.test>). Independent Pandoc 3.1.11.1 GFM parsing yields destination <https://example.test> instead of https://example.test. This is a destination change, not just an escaped display spelling. Three real-producer cases fail.
Why here: RIPR-SPEC-0025's new Markdown Shape contract explicitly preserves intentional links. prose_once protects only Code/CodeBlock source ranges, so neutralize treats the angle opener in a recognized link destination as raw HTML. The same <-to-entity behavior exists in an exact extracted native helper from base 445347d15ee171987eba4ee132c2128122397331; this is inherited, not an introduced regression, but it falsifies this PR's claimed intentional-Markdown preservation boundary.
Fix direction: keep the repair with this candidate's canonical source owner. Preserve syntactic delimiters of parser-recognized link destinations without copying untrusted HTML/mentions in link labels or prose wholesale. Add producer-level destination-value controls for all three fields, plus code/HTML/mention negative controls. The separate #9921 identifier-wording repair is untouched and is not a prerequisite proven by its green run.
Validation observed: default-feature real CLI built successfully with locked Cargo/Rust 1.95.0. An independent Rust driver executed 87 cases with byte-preservation checks and Pandoc AST assertions: 84 passed, the 3 link-destination cases above failed. The same oracle rejects the old fixed-backtick-delimiter rendering and blanket-escaping of intentional emphasis/link formatting. A first draft of the blanket-escape negative oracle falsely expected no autolink at all; it was corrected to compare the intended link node/label, and both negative controls then rejected their wrong outputs. The 87-case denominator is independent and does not re-label or add to the reported 102 native/138 CLI totals.
Source review also confirms the submitted parser-offset question: only parsed inline Code and CodeBlock-start ranges are copied, other backticks/HTML openers/mention prefixes are neutralized, and assembled comment bodies are reparsed to byte stability. Block-boundary, HTML-to-indented-code, fenced/indented-code, whitespace, backtick-run, identifier and ordinary link/emphasis controls passed in the independent CLI replay. JSON input bytes remained unchanged.
Hosted qualification 39915468172 is still running its Required Rust tests; no second request was created. Full hosted qualification, the author's 102 native/138 CLI receipts, current-main execution and GitHub notification behavior are not independently established by this review. The accessible active ruleset requires resolved review threads and no approving-review count; the connected app denied classic review-protection read with 403, which was not retried through another route. No merge clearance is given.
Disposition: REPAIR_REQUIRED for the link-preservation contract; retain unaffected evidence, finish observing the existing run, and obtain independent exact-head review plus affected integration/qualification after any source successor.
|
PR-native continuation — PR_MERGED Delivered at 2026-10-23T15:55:28Z by normal expected-head squash of reviewed Final current-head/integration review inspected the complete candidate delta, source/consumer/oracle/spec boundaries, current findings, actual attempt-1 job steps and full Rust log. The final pre-merge refresh found all 54 head checks terminal with no failures or running rows; the extra review-event Droid row is skipped, not another qualification. The required app-15368 result and both legacy statuses succeeded. All seven submitted reviews and the full Conversation were read; the repaired angle-destination thread remains resolved with its source-owner reply. No source repair, branch push, new qualification, duplicate rendering proof or post-merge suite was needed. Existing proof remains bound to its executed subject The earlier separate-policy-receipt waiting plan below is superseded by this verified delivery. Classic review-policy data remains unavailable after the preserved integration 403, and the native CLI branch-metadata read returned Forbidden. No denied read was retried or obtained through another route. Active main ruleset 18845973 was directly inspected, including resolved-thread enforcement, zero required approving reviews and no bypass actors. The repository review procedure explicitly permits retaining unavailable policy reads while the normal protected merge API enforces its rules. The one authorized squash call succeeded; no admin bypass, settings/access change, auto-merge or merge queue was used. Successful normal enforcement does not reveal the unreadable classic configuration. Acceptance: this PR's scoped report/source-literal and tested Markdown repair is landed and independently read back. Title/legacy fields, analyzer judgments, GitHub notification behavior and universal Markdown/parser guarantees remain outside the claim. Historical #4468 was already closed; no broader issue, #9244 acceptance, #9928/#9929 work, release or deployment completion is claimed. No remaining action is required for #9937 delivery. Historical pre-merge continuation, retained for its original evidence and audit boundaries: PR-native continuation — successor review Owner / governing claim: #9937's canonical source owner; this lane independently reviews source-literal and intentional-Markdown behavior. No duplicate writer, source commit, lifecycle mutation or qualification campaign was created in this pass. Candidate: Ready, open and unmerged at Review: 5629024835, technical Validation: the original 87-case real CLI/Pandoc harness now passes 87/87. Another 114 real CLI cases pass link/reference destination/title and image-target, visible-prose neutralization, repeat-consumption and backing-JSON checks. Both deliberately wrong rendering controls and the retained predecessor rejection remain effective. These 201 cases are independent of the author's reported 279-case matrix. Executed CLI subject: GitHub merge checkout Dependency / integration: landed #9921 squash Next / exact remaining acceptance: merge-policy verification remains pending. Branch metadata exposes the passing required result, and the accessible active ruleset requires resolved threads with zero approving-review count; the separate classic review-protection requirements remain unreadable after the preserved 403. No absence of additional classic approval requirements is inferred. The coordinating owner has been asked for a current authorized policy receipt; this lane will not retry the denied read or use an alternate route. Only after that remaining policy acceptance is established may the unchanged, independently reviewed head proceed through ordinary protected expected-head squash. This is a scoped merge-eligibility gap, not a source-repair request or permission to rerun CI. Retained review witnesses remain available for that continuation. Historical predecessor audit, retained verbatim: Audit history: the initial attempt to convert #9937 to Draft was rejected by automatic approval review for insufficient explicit authorization. No alternate route or immediate retry followed. The owner subsequently approved this exact transition, with the affirmative reaction verified by the coordinating root at 08:17:54 UTC. After fresh head/thread reads, one authorized retry succeeded; separate GitHub readback at 08:19 UTC confirmed Draft on the unchanged head. This approval applies only to #9937's Draft transition. The prior classic review-protection read returned |
There was a problem hiding this comment.
Refuted
- The added parser dependency could create an unsafe ownership or aliasing seam.; refuted because: pulldown-cmark is used synchronously with owned/reference event ranges and no new unsafe code or lifetime extension is introduced; unsafe-review found no new gaps.
- The String-building/resizing path could retain an invalid slice or unchecked resize view.; refuted because: No Box::from slice, ArrayBuffer, TypedArray, borrowed callback view, or stale length snapshot appears in the changed path. Strings are synchronously rebuilt and indexing uses parser-provided ranges.
- No JavaScript runtime, JS-backed allocation, GC handle, detached worker, or transfer-list ownership issue is present in the changed Rust output path.
- Bounded field data may be sent to a worker and returned before Markdown neutralization.; refuted because: The field paths are synchronous and owned; prose(&body) is applied before repair_card_body returns, with no handoff or publication boundary in this diff.
- The new parser dependency or reference/link handling may require parallel rendering abstractions or broad sibling changes.; refuted because: pulldown-cmark is used for offset/event parsing only; existing output formatting remains in the output module, and the changed tests explicitly cover inline/reference links, code labels, and reference images.
- The new pulldown-cmark dependency creates a competing Markdown rendering abstraction.; refuted because: pulldown-cmark is confined to markdown.rs as an offset parser for trust-boundary decisions; existing code_span and prose emitters still own output spelling. CI summaries reuse code_span, and comment cards reuse prose.
- The failed ripr sensor indicates a security defect in the Markdown change.; refuted because: The recorded failure is an evidence-gate result, not a demonstrated exploit or regression; completed structural and unsafe-review packets found no new gap, while cargo-test remains late evidence.
Evidence gaps
- Model proof intent was rejected by deterministic validation.
- Qualification remains incomplete until the scheduled cargo-test receipt and actual hosted checkout results are inspected.
EffortlessSteven
left a comment
There was a problem hiding this comment.
No actionable scoped rendering findings remain on successor 5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7.
reviewed_head_sha: 5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7; tree 52a1f44d20818fae8dab60d68078d0c32905e266.
integration_basis: 91e38cc95bfe33f35efb9617687f42567a5f0d9c; actual hosted checkout and independently built/replayed composition d07a2e8fea06759b32f3da6f3d0e04c47be23207, parents that basis plus the exact head, tree d5186ce4e50761cc9e9cacf453fe57fcceedfa20.
claim_boundary: CI Changed behavior/Why source literals; comment Why/Repair/fallback reason neutralization preserving intended links, reference code labels and shared reference-image resolution. Title/legacy fields, analyzer judgments, GitHub notification behavior and universal parser bounds are not claimed.
Inspected surfaces and owners: complete successor delta in output::markdown, real pr_inline_comment_publish_plan producer/tests, specifications, traceability and changelog; retained CI-summary, JSON/source-control and field-budget contracts. Link destinations/titles are copied only in parser-recognized syntax while visible labels remain independently neutralized; reference-definition/use code-sensitive handling and nested link/image boundaries are covered by actual parser assertions. Protected source ranges are sorted and merged, ordinary prose is neutralized, and the assembled body reparses to stability. No competing semantic owner, asynchronous seam, workflow or schema change is introduced.
Independent real-consumer execution: locked/default-feature CLI build with Rust/Cargo 1.95.0 on d07a2e8f…; executable SHA-256 10ffb2c65293ffe74f9ccd680f42b898b876a883dbd218d06ea04a1a067e96af. The retained original 87-case Rust CLI/Pandoc 3.1.11.1 driver now passes 87/87, including the exact original angle-destination failures in all three fields. A further 114 actual CLI cases pass parsed destination/title and image-target assertions across inline/reference forms, code/prose labels, escaped brackets, empty labels, nested/shared reference images and invalid-link controls. They also check neutralization, repeat consumption of emitted bodies and unchanged input JSON bytes. These are 201 independently exercised cases; they are not a replay or expansion of the author's separate 279-case receipt. The original fixed-delimiter and blanket-escaping negative controls reject wrong output, and the retained predecessor executable rejects the original angle-destination acceptance. No source mutation or repeated qualification campaign was used.
#9921 integration: squash 9ae5ec74d6155850bd98caf766112fb59e5e6f36 is an ancestor of the executed composition. Its literal-preservation helper and discriminator guard, plus Python/TypeScript CLI controls, were source-bound against the landing. The current hosted run includes passing single_backtick_before_the_token_prints_as_written, bare-token and renamed-parameter controls. #9921's accepted literal-wording repair and this Markdown boundary remain distinct; no #9921 branch or hold was modified.
Hosted proof observed: existing 39947860168, attempt 1 is terminal success. The complete Rust job log proves the checkout above and 20,100 nextest tests passed, five skipped, plus successful doctests and the policy/check/Clippy/golden/fixture/corpus/evidence/schema steps. The affected inventory includes 49 Markdown, 20 comment-plan, 38 CI-summary and one JSON/source-control test. All 51 current-head check runs were read: no failed or running rows; required Ripr Rust Small Result from app 15368 passed. Both legacy commit statuses report success. Unused platform routes remain skipped, not passes.
Later-main judgment: observed main d91c14991a28cf6171424f7b4ba743d61e1a769a combines without conflict as tree 059b89eed2bd13c302773ca8b277718a32414880. Later relevant paths were inspected: agent-command export and human-evidence projection changes do not alter the repaired renderer/dependency paths. That latest composition was not executed, and no behind-only rebase or repeat campaign is warranted by these deltas.
Findings disposition: the original destination finding is verified repaired on this exact successor; its source-owner reply and resolved-state readback exist. Earlier parser-offset questions are confirmed by source and controls. The current UB review records refutations and a hosted-proof gap; the actual completed hosted proof above supplies that missing dimension. Provider quota notices remain unavailable provider reviews, not approvals.
Technical disposition: REVIEW_READY for this exact published head and the inspected integration dimension. Merge disposition: pending verification of the remaining classic review-policy requirements. The active accessible ruleset and branch metadata were inspected, but the earlier classic review-protection read returned 403 Resource not accessible by integration; it is not retried or worked around, and absence of an approval requirement is not inferred. A current authorized policy receipt has been requested from the coordinating owner. This technical review alone does not clear that gap or authorize bypass. The earlier one-time Draft approval was consumed on the predecessor transition and is not reused.
EffortlessSteven
left a comment
There was a problem hiding this comment.
No new actionable scoped findings. Current-head continuation disposition: REVIEW_READY for normal protected expected-head squash.
reviewed_head_sha: 5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7; tree 52a1f44d20818fae8dab60d68078d0c32905e266.
integration_basis: freshly observed main source 97df16cb946c7f5af0b34760d5be69a879139ffd; native merge-tree produces clean tree 9a99cc3929b44621b30152925ecd7807a163397e. This later composition is source-reviewed, not newly executed.
Inspected the complete 13-file candidate delta, actual comment-plan producer and Markdown/code-span owners, test stimuli and parsed-value oracles, specs, traceability, dependency and backing-JSON boundaries. Reuse 5629024835 and 6360098798: their 201 independent real CLI/Pandoc cases, meaningful negative controls and executable identity remain evidence for the original executed composition. No duplicate rendering campaign or CI request ran here.
Directly refreshed all 53 head check runs: 22 success, 31 skipped, none failed/running; both legacy status rows succeed. Inspected attempt-1 job steps and complete Rust log for 39947860168: actual checkout d07a2e8fea06759b32f3da6f3d0e04c47be23207, tree d5186ce4e50761cc9e9cacf453fe57fcceedfa20; 20,100 tests passed across 161 binaries, five skipped; doctests two passed, one ignored. Applicable policy/build/all-features/Clippy/golden/fixture/corpus/evidence/schema steps and required app-15368 result succeeded. Named inventory still contains 49 Markdown, 20 comment-plan and 38 CI-summary passes.
The current composed renderer, producer, CI-summary/tests, JSON regression, dependency, specifications and qualification-workflow paths match that executed subject byte for byte. #9921 squash 9ae5ec74d6155850bd98caf766112fb59e5e6f36 is an ancestor of both subjects. Its literal helper remains unchanged; later main extends its use to shared evidence rows and tightens CLI test process-status checks. Those later changes are preserved and are not relabeled as newly executed tests.
All six submitted reviews and the full Conversation were reread; the three inline comments form one resolved thread with the source-owner repair reply present. The original angle-destination finding remains disposed of; no new unresolved finding or active qualification exists. Provider quota/skipped output is not approval.
Policy: active main ruleset 18845973 was read directly: thread resolution required, zero required approving reviews, no bypass actors, current actor can never bypass. Classic review-policy data remains unavailable after the preserved integration 403; the native CLI branch-metadata read also returned Forbidden. Neither denial was retried through another route, and no absence of additional policy is inferred. The repository's review procedure explicitly says that when reads are unavailable, retain the gap and let the protected merge API enforce its rules. Under the current authorized delivery scope, the next action is one ordinary squash call bound to this reviewed head, with no bypass, settings change, auto-merge or queue. A refusal remains a blocker.
Claim boundary remains the tested CI Changed behavior/Why literal and comment Why/Repair/fallback prose/link/reference behavior. Title/legacy fields, analyzer judgments, GitHub notification behavior and universal Markdown/parser guarantees are not claimed.
Delivered by normal expected-head squash
d3daf584632625d513eb65473642782ab48ad2a1at 2026-10-23T15:55:28Z. Independent PR, commit and main-source readbacks agree. The sole parent is97df16cb946c7f5af0b34760d5be69a879139ffd, and landing tree9a99cc3929b44621b30152925ecd7807a163397eexactly equals that parent's native composition with reviewed head5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7. Landed #9921 remains an ancestor. The existing continuation retains the final delivery receipt, reused proof and historical denial audit. No new rendering campaign, qualification or post-merge test suite was requested.Backticks in report source values can terminate code spans, and Markdown block transitions can leave HTML or mentions incorrectly protected. Escaping valid link syntax can also change destinations or disconnect reference links from their definitions.
Use the shared code-span renderer for Changed behavior and CI-summary Why values. Parse assembled comment prose and repeat neutralization until its code ranges remain valid. Preserve recognized link destinations/titles and keep code-sensitive neutralization consistent between reference uses and definitions, including definitions shared with reference images.
Source-of-truth Links
Proposal: none; repair of existing report-rendering behavior.
Spec: RIPR-SPEC-0025, RIPR-SPEC-0051.
ADR: none; existing output-module ownership is retained.
Plan item: preserve literal source values and intended Markdown in report output.
Governing issue or accepted claim: report source values must retain their content, while comment prose neutralizes HTML and mentions outside actual code without corrupting intended formatting or link destinations.
Acceptance delta (one sentence): Changed behavior and CI Why values use valid literal code spans, and comment Why/Repair/reason preserve tested block, link and reference-code-label semantics under idempotent neutralization.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication):
report-main-composition; selected commit5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7.Stack parent or prerequisite PR (if any): no remote prerequisite PR identity is established; the Changed behavior repair is included in this candidate.
Proposed replacement of PR (if any; not yet accepted): none; this continues #9937.
Acceptance retained from a replaced candidate (if any): not applicable; no replacement is proposed.
Accepted winner and losing candidate disposition (when decided): no alternative PR disposition is established.
Changes
changelog.d/4468-report-prose-block-context.mdandchangelog.d/9937-link-destinations.md.Title, analyzer behavior, JSON schema, workflows and gates are outside this repair.
The output changes are exercised by native producer/helper regressions and the CLI/Pandoc controls below; existing goldens have no drift. No JSON schema or contract-registry shape changes. The policy-metadata diff adds test-to-spec traceability only, so it changes no policy behavior or operating procedure.
Validation
Selected source: commit
5bc0db6a920062e8b5808aff31b2cf17f1e2a1e7, tree52a1f44d20818fae8dab60d68078d0c32905e266. Rust/Cargo 1.95.0, pulldown-cmark 0.13.5 and Pandoc 3.1.11.1 with GFM input.check-output-contracts,check-traceability,check-file-policyandgoldens checkpass on the selected source.Full crate-native tests and aggregate Clippy/precommit remained unexecuted locally for this successor. The earlier aggregate attempt stopped at the unchanged 14 GiB local limit; it was not repeated unchanged. The passing earlier hosted run exercised the prior head's merge checkout
4c11a687e7aafc4f4826fd5488a0dc92cd784641, treecaac5d41448db99f3d5ca3acbb652df722d53e0f; it does not qualify this successor.Qualification continuation
The existing successor qualification, attempt 1 completed successfully at 2026-10-23 12:29:05 UTC. The complete Rust job log verifies actual checkout
d07a2e8fea06759b32f3da6f3d0e04c47be23207, parents91e38cc95bfe33f35efb9617687f42567a5f0d9cand the exact published head, treed5186ce4e50761cc9e9cacf453fe57fcceedfa20.Ripr Rust Small Resultpassed; unused routes were skipped.Independent exact-head review records technical
REVIEW_READYand verifies the original angle-destination finding repaired. It reports 87/87 original CLI/Pandoc cases plus 114 additional link/reference/image cases on the executed merge subject, with meaningful negative controls. These 201 independent cases are distinct from the author's 279-case matrix. The repaired thread has a verified source-owner reply and resolved readback. Automated provider quota notices remain unavailable reviews, not approvals.Freshly observed pre-merge main
97df16cb946c7f5af0b34760d5be69a879139ffdcombined cleanly as tree9a99cc3929b44621b30152925ecd7807a163397e. The repaired renderer, producer, CI-summary/tests, JSON regression, dependency, specification and qualification-workflow paths match the executed subject byte for byte. Later main's human-evidence, analyzer, agent and documentation work remains preserved. This later composition was source-reviewed, not separately executed.Final current-head and integration review confirmed
REVIEW_READYfor normal expected-head squash. Active main ruleset 18845973 was directly read; the earlier classic review-policy 403 and native CLI branch-metadata Forbidden remain preserved and were not retried through another route. The repository review procedure permits retaining the unreadable-policy gap while the ordinary protected merge API enforces its rules. The one authorized squash call succeeded without bypass, settings/access changes, auto-merge or queue. No absence of additional classic policy is inferred.Rollback
Revert the report-rendering delta with its dependency, tests and documentation changes. No data migration is involved.