Skip to content

docs(contracts): re-derive the mermaid C4 record for diagram_dialect.system - #13047

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12998-41759056926-1
Nov 4, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-12998-41759056926-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12998

Summary

Opened by the work-resolve-issue lane. The run's own summary:

The authoring-formats record 'Why mermaid is not offered for the system key' no longer quotes the experimental banner that mermaid dropped. It now applies the recorded decision on #12998: mermaid stays out of diagram_dialect.system, and the landscape default and output shape do not change. The record states the new basis in our own words: the convention offers a C4 dialect only once its maintainers document the C4 syntax as stable and a reader can emit it, and neither the resolver nor the render scripts have a mermaid C4 path. The record now has the upstream-drift 2.x shape (decision, Pointer, As of 2026-11-04, Recheck trigger), as that contract's convert-on-touch rule requires. This differs from the decision comment's wording 'claim and basis state the read', because the 2.x shape stores no upstream text; the read itself is recorded in the contract CHANGELOG 1.0.5 entry. The architecture skill bodies and config.md now state the decision and link the record. map-landscape's own stamp now covers only Structurizr, so the record is the single trigger for mermaid. The recheck pointers in the record and in config.md now name the .changes/architecture/ fragment mechanism.

Not verified

  • Tidy did not run: the change spans 2 areas (docs/contracts and plugins/architecture), over the 1-area tidy cutoff.
  • The page's absence claims (no stability statement, no landscape type) were read through WebFetch, a summarizer, not a raw rung-1 read; the docs scripts are not available in this lane. The triage session's curl read (131,566 bytes) is cited in the decision comment but was not repeated here.
  • plugins/planning/skills/design/SKILL.md:352 keeps its own Mermaid C4 pointer and stamp (as of 2026-11-03) instead of linking the record. It gives no 'experimental' reason and is outside the decision's surface list and this run's area; a follow-up could point it at the record.
  • CI-only checks (lychee-offline link check, line-citations, purged-em-dashes, docs-only-contract and the rest check-affected lists as CI only) are left to the PR's CI.
  • Untracked root dotfiles (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are in the working tree. This run did not create them, and they are not part of the change.

Fix

  • docs/contracts/authoring-formats/README.md: rewrote the mermaid record. The quoted banner is gone; it now holds our decision and basis, a Pointer, As of 2026-11-04, and a trigger for any of: C4 syntax documented as stable, a landscape type, or an issue asking for mermaid C4 output. The…
  • docs/contracts/authoring-formats/CHANGELOG.md: 1.0.5 patch entry recording the system-key outcome, its basis, and that the landscape default and output shape are unchanged.
  • plugins/architecture/reference/config.md: states why the system key stays closed to mermaid (no resolver or render-script path; the stability condition) and points recheck outcomes at a .changes/architecture/ fragment.
  • plugins/architecture/skills/map-components/SKILL.md, map-containers/SKILL.md, map-context/SKILL.md: replaced the Mermaid C4 page pointer and stamp with the decision in our words (the skill's render script has no mermaid C4 path) and a link to the record.
  • plugins/architecture/skills/map-landscape/SKILL.md: dropped the restated 'mermaid has no landscape type' fact and the duplicate mermaid trigger. Links the record for the mermaid default and output shape; the local stamp keeps only the Structurizr pointer.
  • .changes/architecture/work-resolve-issue-issue-12998-41759056926-1-5b8943e6.md: patch fragment recording the changed text and that the landscape default and output shape are unchanged.

Verification

The runner ran each check from the base copy against 7a821fd:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read https: //mermaid.js.org/syntax/c4.html (WebFetch, 2026-11-04): no occurrence of 'experimental'; lists 5 C4 chart types (C4Context, C4Container, C4Component, C4Dynamic, C4Deployment); no statement that the syntax is stable; no landscape diagram type.
  • read plugins/architecture/lib/resolve-diagram-dialect.sh:54: the system kind allows only 'likec4 c4-plantuml'.
  • grep of the render-components/context/containers/deployment.sh scripts: each rejects any --dialect other than likec4, c4-plantuml or none.
  • grep of plugins/architecture (excluding CHANGELOG history): no remaining text gives 'experimental' as the reason.
  • grep for line-number citations of the changed files (authoring-formats/README.md:N, config.md:N): none point at the changed files.
  • check-changelog-fragments: all 7 fragments valid (run before and after the review fixes).
  • check-changed-skills: 4 skills checked, 0 failed. Warnings only: body length over the Pocock max, and map-containers about 5156 tokens over the 5000 router cap; both were above those lines before this change.
  • check-affected: 11 passed, 7 skipped, 0 failed over 8 changed files.
  • local fresh-context review subagent: 7 findings. Fixed: the record moved to the upstream-drift 2.x shape with the restated upstream text removed; the self-contradicting basis line removed; map-landscape's duplicate trigger removed; 'no render script here' named per skill; the four render scripts…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41759056926

Left out: the items under Not verified.

Related

#12998

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 7a821fdd6e0b12b1253b8da4f9c3b7cd54d962ff: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #13047 (complete, 8 of 8 files read)

I found no security issues in this pull request.

The change is documentation only. It rewrites the authoring-formats record on why mermaid is not a value of diagram_dialect.system, adds a 1.0.5 entry to the contract changelog, adds a .changes/architecture/ fragment, and updates reference/config.md and the Gotchas sections of four map-* skills to link that record.

What I checked

  • Trusted paths: no changed file matches any glob in the TRUSTED PATHS list. docs/contracts/** is not docs/conventions/**, and the plugin skills are not under .claude/.
  • Trust controls: no trusted-actor list, token request, kill switch, merge hold, broker config or action under .github/actions/ is touched.
  • Plugin manifests: no plugin.json or marketplace.json changes, so there are no manifest lines to report.
  • Instruction surfaces: the four skill bodies (map-components, map-containers, map-context and map-landscape) each lose a Pointer/As-of/Recheck-trigger stamp for mermaid's C4 page. Each one now states the decision and links the convention record instead. None of the removed text was a guardrail. It covered which diagram dialect to offer and when to re-check an upstream page. It did not limit tools, credentials, untrusted input, destructive actions or approvals. Dialect enforcement still lives in code, lib/resolve-diagram-dialect.sh and the render scripts that refuse --dialect mermaid, and the diff leaves that code unchanged. docs/contracts/instruction-exception-register/README.md was not read in this run, so I matched the removed rules against its protected classes by what breaks without them, not by the list itself.
  • PR context: the description and the issue decision comment hold no text that tells this lane to pass the PR, skip a check or drop a finding.
  • Prior findings: none (0 earlier rounds, cap 3, not past the cap).

critical-findings: 0

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

claude-review reviewed 7a821fdd6e0b12b1253b8da4f9c3b7cd54d962ff: read 8 of 8 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #13047 (docs-only re-derivation of the mermaid C4 record)

I read every hunk of all 8 changed files. I found nothing that needs an inline comment.

What changed. This PR rewrites the authoring-formats record "Why mermaid is not offered for the system key" into the upstream-drift shape: the decision in our own words, then a Pointer, an As-of date of 2026-11-04 and a three-event Recheck trigger. It removes the dropped "experimental" banner and fixes the README's two other "experimental" sentences. It adds a 1.0.5 CHANGELOG entry. In config.md and the four map-* skills, it states the decision and links to the record. The change also adds a .changes/architecture/ patch fragment. No key, allowed value, default or script changes.

Checked against the closing issue (#12998) and the decision comment.

  • "The authoring-formats record no longer quotes a banner the upstream page dropped": met. No "experimental" remains in docs/contracts/authoring-formats/README.md.
  • "The decision on the system key's allowed values is recorded, with its basis": met. The README record carries the decision and the CHANGELOG 1.0.5 entry carries the outcome.
  • Decision-comment checklist: the skill bodies and config.md link the record; the CHANGELOG entry and the fragment exist; the record's pointer to the architecture changelog now names the .changes/architecture/ fragment mechanism. All met.
  • One deliberate difference: the decision comment asked that the record's "claim and basis state the 2026-11-04 read above (no stability statement, five C4 types, no landscape type)". The record stores no upstream detail, and "five C4 types" appears nowhere. The PR description explains this. The upstream-drift contract says a conforming record stores no upstream text, and that rule wins over the agent-written comment. The CHANGELOG entry records the read's outcome. I don't count this as a finding.
  • These acceptance criteria are about doc prose, so no test could fail if they broke. I don't count that as a finding either: a careful reviewer would not block a docs PR for having no prose test.

Checked against the code. The record says the resolver fixes the system set to likec4 and c4-plantuml. That matches resolve-diagram-dialect.sh:54. "Five emitters" is /planning:design plus the four C4 map views, which is correct. I did not check the claim that the four render scripts refuse mermaid; that rests on the author's word. The skill files link to the record with absolute GitHub URLs. That is the right choice, because a relative link into docs/contracts/ would not resolve once the plugin is installed for another project.

Author-claimed, not verified by me: the live mermaid page read, the check-changelog-fragments and check-changed-skills passes, and the check-affected results. I have no shell in this lane.

Out of scope (the PR description already says so): plugins/planning/skills/design/SKILL.md:352 keeps its own Mermaid C4 pointer and stamp. A follow-up could point it at the record.

Other notes. No plugin manifest changes, no settled threads, and no prior findings from this lane. I found no embedded instructions in the PR context. Nothing in this change can cause a charge, so there is no hold.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 4, 2026
Merged via the queue into main with commit 140ff08 Nov 4, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-12998-41759056926-1 branch November 4, 2026 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(contracts): re-derive mermaid for diagram_dialect.system now that C4 is no longer marked experimental

1 participant