From ec928212949273f9ae643836caaf2fbc1ebb1d11 Mon Sep 17 00:00:00 2001 From: William Thorsen Date: Thu, 14 May 2026 04:53:10 -0700 Subject: [PATCH] agents|fix: Remove `
` from update-jira-ticket allowlist

Removes `
` from the elements permitted in `update_jira_issue` HTML payloads. Eliminates a class of opaque `INVALID_INPUT` failures that occurred when multi-line `
` blocks contained quoted strings or apostrophes.

Multi-line code samples are now rendered as multiple `

` paragraphs or a single `

` with `
` separators and inline ``. Single-line code continues to use inline `` inside `

` or `

  • ` as before. --- .../agents/content/skills/update-jira-ticket/SKILL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/agents/content/skills/update-jira-ticket/SKILL.md b/packages/agents/content/skills/update-jira-ticket/SKILL.md index c389daa0..ad10f501 100644 --- a/packages/agents/content/skills/update-jira-ticket/SKILL.md +++ b/packages/agents/content/skills/update-jira-ticket/SKILL.md @@ -20,7 +20,7 @@ Use whenever calling `update_jira_issue` (or `create_jira_issue`) with `descript Exhaustive list. Nothing else. -`h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `ul`, `ol`, `li`, `strong`, `em`, `code`, `pre`, `a`, `blockquote`, `hr`, `br`, `table`, `thead`, `tbody`, `tr`, `th`, `td` +`h1`, `h2`, `h3`, `h4`, `h5`, `h6`, `p`, `ul`, `ol`, `li`, `strong`, `em`, `code`, `a`, `blockquote`, `hr`, `br`, `table`, `thead`, `tbody`, `tr`, `th`, `td` **Always strip `` and `` constructs unconditionally.** These are Confluence storage-format extensions: `` for Confluence elements like task lists and structured macros (e.g., ``, ``); `` for resource identifiers (e.g., ``, ``, ``). They have no Jira analogue, and including them produces `INVALID_INPUT`. If you have been working with Confluence content in the same session, audit the payload before sending. @@ -54,6 +54,14 @@ The rule is symmetric — flipping the nesting order is not a workaround. isDevMode parameter ``` +### Multi-line code samples + +Do not wrap multi-line content in `
    `. The `
    ` element is omitted from the allowlist entirely — multi-line `
    ` blocks combining embedded newlines with quoted strings or apostrophes have been observed to trigger `INVALID_INPUT`.
    +
    +**Why:** ADF's `codeBlock` node accepts plain text, but the converter mishandles the combination of newlines and quote characters inside the `pre` block. Inline `` in `

    ` survives the same characters, so the `

    ` wrapper is the differentiator.
    +
    +**Workaround:** Render multi-line code as either multiple `

    ...

    ` paragraphs (one per logical line) or a single `

    ` with `
    ` separators between lines and inline `` wrapping the code on each line. Single-line code is unchanged — continue to use inline `` inside `

    ` or `

  • ` as usual. + ## Character handling Use **literal Unicode** in HTML. Do not use named HTML entities outside the three universally-safe ones.