Skip to content

figure-agent v0.1.7

Choose a tag to compare

@moonweave moonweave released this 29 Apr 10:48

v0.1.7 plumbed the previously-orphan spec.yaml.selection_notes field into the LLM TikZ authoring prompt.

This release was hardened pre-publish: see v0.1.7.1 for the agent-team mid-review fixes that landed before the first remote push.

Added

  • prompts/llm_author_tikz.md ### Selection notes section with priority order text directing the LLM to honor briefing.md §6 invariants over selection notes.
  • commands/fig_preview_select.md step 6: recommended 4-heading template (Visual motifs to preserve / Preview errors to fix in TikZ / Labels to lift / Style overrides). Free-form remains accepted; HTML-comment author-only notes are stripped.
  • commands/fig_new.md scaffolds spec.yaml with an empty selection_notes: "" key.
  • docs/design-v0.1.md per-figure folder contract lists selection_notes as a recognized spec.yaml key.
  • docs/roadmap-v0.1.7-selection-notes.md records the audit-driven rationale for plumbing this orphan field instead of adding a /fig_decompose slash command.
  • tests/test_llm_author_prompt.py four new tests: plumbing, HTML strip, fallback, backslash safety.
  • examples/fig3_trap_schematic_v97/ activated as tracked dogfood demonstrating the 4-heading convention.

Changed

  • scripts/llm_author_prompt.py reads spec.yaml.selection_notes, strips HTML comments using inputs._HTML_COMMENT (parity with parse_briefing), and substitutes the result into {{selection_notes}} with a fallback when the field is missing or whitespace-only.

105 pytest pass, ruff clean.