Skip to content

rendered-views: retrofit existing untrusted-ish HTML lanes to the security baseline #3609

Closed

Description

@kyle-sexton

Execute the rendered-views convention's retrofit list (docs/conventions/rendered-views/README.md, "Wave-1 adoption and grandfathered surfaces"): align the existing lanes that render untrusted-ish content to the wave-1 security skeleton, replacing their scattered per-skill escaping notes with the baseline's rules.

Scope: adhd:clarify (renders conversation-derived decision tables) and architecture:improve (renders codebase-derived report content). Each today carries its own ad-hoc escaping wording; the retrofit points both at the convention's baseline (escape and-lt-gt-quote in text and attribute positions, no unescaped interpolation into script/style, no handler attributes from input, self-containment) and removes the duplicated local rules where the baseline covers them. Per-surface version bookkeeping applies.

These two remain on the instruction-level skeleton (their inputs are repo/conversation content, not attacker-controlled by default); any lane over genuinely adversarial input routes to the deterministic helper gate instead (#3605).

Activity

  1. added theissue type on Sep 1, 2026
  2. added
    needs-triage
    on Sep 1, 2026
  3. claude commented on Sep 6, 2026

    @claude
    Contributor

    Generated by Claude Code

  4. claude commented on Sep 6, 2026

    @claude
    Contributor

    This was generated by AI during triage.

    Triage verification (2026-09-06)

    Confirmed. The convention exists with the wave-1 adoption and grandfathered-surfaces section this item executes against, and both named surfaces are present and carry their own escaping wording rather than pointing at the baseline.

    The scoping judgment in the body is sound and should be preserved: these two lanes render repository and conversation content, which is not attacker-controlled by default, so the instruction-level skeleton is the right level for them. A lane over genuinely adversarial input routes to the deterministic helper gate instead. This item must not quietly promote these two into that gate, nor leave them below the baseline.

    The security area label is applied because the change is to security wording, though the priority stays at the assessed default: this consolidates duplicated rules onto a single baseline rather than closing an exposure.

    Agent Brief

    Type: Task

    Summary: Point the two instruction-baseline HTML lanes at the convention's security baseline and remove their duplicated local escaping rules.

    Current behavior:
    Two surfaces render HTML from repository and conversation content, and each carries its own ad-hoc escaping wording written before the convention existed. The rules are duplicated per skill, so they can drift from the baseline and from each other, and a reader cannot tell which statement is authoritative. Both are on the convention's retrofit list.

    Desired behavior:
    Both surfaces reference the convention's security baseline as the authoritative statement of the rules, and their local wording is removed wherever the baseline covers it. Anything genuinely specific to a surface stays, stated as an addition to the baseline rather than a restatement of it. The baseline's rules govern: escaping of the markup and quote characters in both text and attribute positions, no unescaped interpolation into script or style contexts, no handler attributes derived from input, and self-containment of the emitted page.

    Key interfaces:

    • The convention's security baseline, which becomes the single owner of these rules.
    • The two named surfaces: the conversation-derived decision-table renderer and the codebase-derived report renderer.

    Acceptance criteria:

    • Both surfaces reference the baseline; neither restates a rule the baseline already covers.
    • Any retained local wording is an addition specific to that surface, not a duplicate.
    • Both surfaces remain on the instruction-level skeleton. Neither is promoted to the deterministic helper gate, and neither is left below the baseline.
    • Emitted pages remain self-contained.
    • Version bookkeeping is carried per surface.
    • scripts/affected-tests.sh --run passes for the touched surfaces.

    Out of scope:


    Generated by Claude Code

  5. added
    status: ready
    area: security
    agent-ready
    and removed
    needs-triage
    on Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: securitystatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions