Skip to content

Decision/finding fallback is emitted as siblings of the carrier → double render in rich themes #9

Description

@EiffL

Found while reviewing astra-theme rendering against the DESI DR1 BAO prototype (LightconeResearch/astra-theme#2).

For a placed decision (:::{astra} <scope>.decisions.<id>) the plugin emits:

  1. a heading carrier (class: astra-decision, identifier: decision-<id>), and
  2. the neutral fallback as sibling nodes — a stock details/summary dropdown (" — selected: ").

A rich theme overrides the carrier and renders the full decision panel from the store — but the fallback siblings still render, so readers see the decision twice (rich panel + gray dropdown right under it). Findings have the same shape: the carrier heading is followed by sibling notes/scope paragraphs and an evidence dropdown, all of which repeat what the rich finding card already shows.

The theme can hide .astra-decision + details.myst-dropdown with CSS as a stopgap, but the finding fallback siblings are unclassed paragraphs and can't be safely suppressed.

Proposal: nest the neutral fallback inside the carrier node (as its children), so a rich theme replacing the carrier automatically replaces the fallback, and neutral themes render the children as today. Same pattern the output/insight carriers already follow — those don't double-render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions