Skip to content

fix: Mermaid diagram rendering in HTML export#35

Merged
avrabe merged 5 commits intomainfrom
fix/mermaid-export
Mar 16, 2026
Merged

fix: Mermaid diagram rendering in HTML export#35
avrabe merged 5 commits intomainfrom
fix/mermaid-export

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Mar 16, 2026

Loads mermaid@11 from CDN in export pages. Dark theme, strict security. Skipped in --offline mode.

Test and others added 5 commits March 16, 2026 16:36
…t fix

Plan docs:
- rowan-salsa-completion: 4-phase LSP-ready migration (22 work items)
- formal-verification-completion: 37 proofs, Kani CI ready
- coverage-gap-analysis: STPA gaps (23 new artifacts needed)
- oslc-analysis: deprioritize OSLC, focus on ReqIF + needs.json

FEAT-020 promoted to approved — Playwright verified AADL rendering.
Fixed initAadlDiagrams DOMContentLoaded trigger.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ndings

Fresh STPA + STPA-Sec analysis identifying:
- H-13: XSS via unescaped artifact content in dashboard/export
- H-14: WASM adapter supply chain (untrusted code)
- H-15: Commit traceability false positives
- H-16: Dashboard stale data after reload failure
- H-17: git clone code execution via rivet.yaml
- 5 new system constraints (SC-15..19)
- 15 new UCAs + 14 loss scenarios
- OSLC lifecycle gap check results
- Critical: no CSP header, no WASM signature verification

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…urity hardening docs

New STPA analysis for v0.2.0 security hardening:
- H-13..H-17: XSS, WASM supply chain, commit false positives, stale dashboard, git hooks
- SC-15..SC-19: HTML escaping, WASM validation, ID store check, reload reporting, hook disable
- 15 UCAs (UCA-D-3..D-4, UCA-C-18..C-25, UCA-L-6..L-7)
- 13 loss scenarios (LS-C-5..C-15, LS-D-3, LS-L-3)
- 13 controller constraints
- Architecture section 8.8: Security Hardening
- Verification section 12: STPA-Sec Test Requirements
- 5 REQ→SC links for security constraints
- 395 artifacts, PASS, 0 warnings

Implements: SC-15, SC-16, SC-17, SC-18, SC-19
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…M validation + code quality

Security (S1-S4):
- CSP header on all dashboard responses
- Markdown raw HTML filtering (strips <script>, <iframe>, etc.)
- git clone --config core.hooksPath=/dev/null on all sync operations
- WASM adapter output validation (empty ID/type rejection, HTML stripping)

Code quality (Q3 partial):
- ProjectContext consolidation in main.rs

408 tests, 0 failures.

Implements: SC-15, SC-16, SC-17, SC-18, SC-19
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Mermaid diagrams in exported documents were rendered as raw text
because no Mermaid JS was included. Now loads mermaid@11 from CDN
with dark theme and strict security. Skipped in --offline mode.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@avrabe avrabe merged commit 08284a8 into main Mar 16, 2026
11 of 12 checks passed
@avrabe avrabe deleted the fix/mermaid-export branch March 16, 2026 19:06
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 16, 2026

Codecov Report

❌ Patch coverage is 84.84848% with 10 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
rivet-core/src/externals.rs 76.00% 6 Missing ⚠️
rivet-core/src/results.rs 50.00% 3 Missing ⚠️
rivet-core/src/export.rs 83.33% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rivet Criterion Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 728c3f8 Previous: 7a06ac5 Ratio
store_insert/10000 58009158 ns/iter (± 1622537) 46482752 ns/iter (± 870075) 1.25
link_graph_build/10000 34073853 ns/iter (± 2046326) 26668420 ns/iter (± 3482798) 1.28

This comment was automatically generated by workflow using github-action-benchmark.

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.

1 participant