Skip to content

fix(review): escape literal pipes in finding table cells#779

Merged
tmchow merged 1 commit intomainfrom
tmchow/debug-issue-761
May 5, 2026
Merged

fix(review): escape literal pipes in finding table cells#779
tmchow merged 1 commit intomainfrom
tmchow/debug-issue-761

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented May 5, 2026

Summary

Code-review findings whose titles or descriptions contained a literal | (cache-key delimiter examples, regex alternations, logical-OR operators) corrupted the synthesized findings table — unescaped pipes were parsed as column separators, splitting content across the Reviewer, Confidence, and Route columns. The findings JSON was correct upstream; the bug lived purely in the prose-driven serialization step.

Adds an escape rule to both ce-code-review and ce-doc-review review-output-template.md files: literal | inside a table cell must be written as \|. The rule sits next to the existing pipe-table directive at the top of each template, plus as a parallel bullet in ce-code-review's Formatting Rules section where the issue reporter expected to find it. The same gap was latent in ce-doc-review's template, so both ship together.

Synthesis is purely LLM-prose-driven from these @-included templates, so there is no unit-test surface; manual verification is to run /ce-code-review on a diff containing a |-bearing finding and confirm the table renders intact.

Fixes #761


Compound Engineering
Claude Code

Findings whose titles or descriptions contained a literal `|`
(e.g. cache key delimiter examples like `userName + " |" + groups`,
regex alternations, logical-OR operators) corrupted the markdown
table -- unescaped pipes were parsed as column separators, splitting
content across the `Reviewer`, `Confidence`, and `Route`/`Tier`
columns.

Add an escape rule to both review-output templates so the synthesis
LLM writes literal pipes as `\|` inside table cells. The rule lives
prominently next to the existing pipe-table directive at the top of
each template, plus as a parallel Formatting Rules bullet in
ce-code-review where the issue reporter expected to find it.

The synthesis path is purely prose-driven (`@`-include from SKILL.md),
so a missing rule = missing behavior; no code or test surface to change.

Fixes #761

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tmchow tmchow merged commit c7fc674 into main May 5, 2026
2 checks passed
@github-actions github-actions Bot mentioned this pull request May 5, 2026
davidalee added a commit to davidalee/compound-engineering-plugin that referenced this pull request May 6, 2026
PR EveryInc#779 added pipe-escaping guidance to the stable copy of
references/review-output-template.md but the beta copy didn't pick it
up through the main->branch merge. The shared-reference parity test
was failing because of the drift; copying stable's content over beta's
restores byte parity and unblocks CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ce-code-review] Pipe characters in finding descriptions break table column alignment

1 participant