review classifier: plain table cells, no backslash escapes
This commit is contained in:
parent
a9d181b53f
commit
a2dca32bb8
3 changed files with 57 additions and 18 deletions
|
|
@ -398,11 +398,14 @@ followed by the table when there is one. A comment neither approves nor
|
|||
blocks the merge: nine timeouts and one pass post a comment, not an
|
||||
approval.
|
||||
|
||||
The controller flattens every cell to one line, with `|`, backticks, brackets, `<`, `>`,
|
||||
`&`, `#` and other markup characters escaped, and a zero-width space after
|
||||
each `@`, `#`, `!`, `://` and `www.`, so a model's `reason` can't break the
|
||||
table, embed markup, mention anyone, reference an issue or PR, or carry a
|
||||
link.
|
||||
The controller flattens every cell to one line and backslash-escapes the
|
||||
characters that could end the cell or start markup, math or raw HTML: `|`, `\`,
|
||||
backticks, `[`, `]`, `<`, `>`, `&`, `*`, `~`, `$`, and `_` except between two
|
||||
letters or digits (`ci_metrics.rs` stays as is). Ordinary punctuation such as
|
||||
`(`, `)` and `.` passes through unescaped. Each `@`, `#`, `!`, `://` and `www.`
|
||||
gets a zero-width space after it, with no backslash, so a model's `reason`
|
||||
can't break the table, embed markup, mention anyone, reference an issue or PR,
|
||||
or carry a link. The prompt asks the model for plain text in `reason`.
|
||||
|
||||
## Runtimes
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue