Skip to content

docs: visual refresh — theme-aware SVGs + design system + contributing/security#15

Merged
kmadan merged 3 commits into
mainfrom
chore/visual-refresh
May 14, 2026
Merged

docs: visual refresh — theme-aware SVGs + design system + contributing/security#15
kmadan merged 3 commits into
mainfrom
chore/visual-refresh

Conversation

@kmadan
Copy link
Copy Markdown
Contributor

@kmadan kmadan commented May 14, 2026

Summary

Apply the same viral-ready treatment to gopal that AICertify just received. Three logical commits, one bundled PR, easy to revert individually if needed.

1. chore(diagrams) — replace 5 baked-in-color PNGs with 10 paired light/dark SVGs embedded via ``. Add a hero banner SVG at the top of all 5 READMEs (the repo previously had no top-of-README image). Delete diagram 4 (framework_grid) — the markdown comparison table directly under it already covers the same content. Retire the matplotlib generator.

2. docs(diagrams) — establish the design system: `diagrams/STYLE.md` (palette, type, shape language, light/dark pattern), standalone `logo_{light,dark}.svg` (hexagon + `{}` curly braces), and a 1200×630 OG card for GitHub Social Preview upload. Add an AGENTS.md section so future agents follow the system. CHANGELOG updated.

3. `docs` — write `CONTRIBUTING.md` (was a broken link in all 5 READMEs!) and `SECURITY.md` (private disclosure flow at security@principledevolution.ai).

Plus repo-metadata polish: description set, 16 GitHub topics added (ai-governance, opa, rego, eu-ai-act, nist-ai-rmf, faa, easa, icao, ferpa, fair-lending, …).

The design system is intentionally shared with AICertify — the two repos visually echo each other while staying distinct (AICertify = hexagon + check; gopal = hexagon + braces).

Test plan

  • All 14 SVGs validated as well-formed XML
  • No stale `diagram*.png` or `generate_diagrams.py` references anywhere in the repo
  • All 5 READMEs use the same `` markup pattern
  • CONTRIBUTING.md and SECURITY.md render correctly in markdown preview
  • OG card renders cleanly when rasterized via Inkscape (1200×630, 68 KB)
  • GitHub repo description + 16 topics set
  • Manual: review rendered READMEs in GitHub light and dark theme post-merge
  • Manual after merge: upload `diagrams/og_card.png` via Settings → General → Social preview

kmadan added 3 commits May 14, 2026 15:56
Convert all README diagrams from baked-in PNGs to hand-authored,
theme-aware SVGs paired as _light.svg + _dark.svg and embedded via
<picture>, so GitHub light-theme and dark-theme readers each see the
variant that matches their canvas. Adds a hero banner SVG at the top
of all 5 READMEs containing the wordmark, tagline, and framework chips.

Diagram 4 (framework_grid) is removed across all 5 READMEs — the
markdown comparison table directly under it already covers the same
content. The matplotlib generator (generate_diagrams.py, ~700 lines)
is retired in favour of the hand-authored SVG system.

All 5 READMEs (en, zh-CN, ja-JP, ko-KR, hi-IN) updated in lockstep.

Resolves the design-review finding that PNG diagrams with baked-in
colors render poorly on GitHub's dark theme. Mirrors the visual
refresh shipped to the sister project AICertify.
Establish the visual system as a documented, contributable asset:

- diagrams/STYLE.md — palette, type, shape language, light/dark
  pattern, naming, and the contribution flow for new diagrams. Shared
  with sister project AICertify so the two repos visually echo each
  other. Hand-authored SVG only; no automated generator.
- diagrams/logo_{light,dark}.svg — standalone square mark, the hexagon
  + {} curly braces signalling "policy as code". Distinct from
  AICertify's hexagon + checkmark but in the same family.
- diagrams/og_card_{light,dark}.svg + og_card.png — 1200×630 social
  preview card. PNG must be uploaded via GitHub Settings → General →
  Social preview; it cannot be set automatically.
- AGENTS.md — new "Diagrams and visual assets" section pointing
  future agents at STYLE.md and explicitly retiring the matplotlib
  generator.
- CHANGELOG.md — Unreleased section now documents the visual refresh,
  brand assets, and removed generator.
Two doc additions that the repo has been missing:

- CONTRIBUTING.md — policy-authoring conventions (package paths,
  default deny, METADATA blocks, report composition), the local-checks
  recipe (opa check + regal lint + tests), PR review criteria, and a
  step-by-step "adding a new framework" guide. Resolves the broken
  link the README has been carrying in all 5 language variants.
- SECURITY.md — private vulnerability-disclosure flow at
  security@principledevolution.ai, 5-business-day acknowledgement,
  coordinated disclosure. Explicitly separates security issues
  (CI workflows, supply chain, helper_functions bugs) from policy-
  correctness disputes (which are public discussions, not embargoed
  vulnerabilities).
@kmadan kmadan merged commit a40f3ce into main May 14, 2026
2 checks passed
@kmadan kmadan deleted the chore/visual-refresh branch May 14, 2026 10:28
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