Commit 04b7b08
feat(wiki): add flow-diagram canonical section (parity with agentic-ai)
agentic-ai added a 14th canonical section ``flow-diagram`` alongside
``sequence-diagram`` because they cover different mermaid types and
different intents:
* ``sequenceDiagram`` — call traces between participants (caller
→ this file → callees). Lives in the existing ``sequence-diagram``
section.
* ``flowchart`` / ``stateDiagram-v2`` — branching, lifecycle,
decision trees within one component. Now lives in the new
``flow-diagram`` section.
Lumping both into ``sequence-diagram`` forced the LLM to pick one
and skip the other; splitting lets it author whichever shape fits
the file's actual semantics.
Changes:
* ``core/wiki_curation_gaps.py`` — new ``CurationSection(name="flow-diagram", …)``
with probes for ``## Flow diagram`` / ``## Flowchart`` / ``## State
diagram`` and the corresponding mermaid fence forms. ``sequence-diagram``
probes tightened so it no longer claims a ``## Flow diagram`` heading.
* ``handlers/consolidation/headless_authoring.py`` —
``_GAP_DESCRIPTIONS`` + ``_gap_heading`` extended so the worker
knows what to write under ``## Flow diagram``.
* ``ui/unified/js/wiki.js`` — curation banner label for ``flow-diagram``,
total section count bumped 13 → 14.
121-test wiki suite + ruff format + ruff check all green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2ef0a08 commit 04b7b08
3 files changed
Lines changed: 38 additions & 3 deletions
File tree
- mcp_server
- core
- handlers/consolidation
- ui/unified/js
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
166 | 188 | | |
167 | 189 | | |
168 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
464 | 475 | | |
465 | 476 | | |
466 | 477 | | |
| |||
500 | 511 | | |
501 | 512 | | |
502 | 513 | | |
| 514 | + | |
503 | 515 | | |
504 | 516 | | |
505 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
| 751 | + | |
752 | 752 | | |
753 | 753 | | |
754 | 754 | | |
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
| |||
0 commit comments