Skip to content

Eidos Portal

The Eidos Portal is an interactive, visual web application generated directly from your living specifications.

Structured around a responsive left sidebar and URL hash deep-linking (#/<view>/<entity-id>), the portal synthesizes all 17 specification schemas into eight interactive views:

  1. Executive Dashboard (Home): System archetype (SYS-*), high-level KPI metric cards, the Governance Health Scorecard card (gitignored/generated-excluded source ownership, component-scoped == Public Surface coverage with separate container counts, contract bindings, bound invariants, and ratchet debt), Team Operational Memory non-blocking freshness summary card, interactive Validation & Governance Diagnostics Drawer (including non-blocking advisory warnings), progressive live-reload status indicator, architectural pillars, and recent SpecDeltas stream.
  2. Business Architecture: Bounded Domains (DOM-*), Capabilities (CAP-*) with JTBD statements, clickable realizing CNT-*/CMP-*/CTR-* badges, and inline anchored Team Memory cross-links, Actor Personas (PER-*), System Policies (POL-*), and test-bound Governance Invariants (INV-*).
  3. Design & Experience: Multi-Design System Switcher (DS-* with extends lineage), Client Switcher (CLT-*), interactive Recursive W3C DTCG Token Studio (tokens.json), UI Component Manifests (UIC-*), Screen State Machines (SCR-*), and Omnichannel User Flows (FLOW-*).
  4. Technical Architecture (Hierarchical C4 & Contract Explorer):
  5. C4 Level 1 (System Context): Actors, system boundary, and external platform integrations.
  6. C4 Level 2 (Container Topology): Containers (CNT-*) organized by semantic architectural tiers with rendered inter-container dependency edges and clickable boundary protocol contracts (CTR-*).
  7. C4 Level 3 (Component Whitebox) & Uncramped Inspector (INV-PORTAL-INSPECTOR-FULL-SPEC-READING): Click any container to drill down into its standalone components (CMP-*), with breadcrumbs, direct component card focus, and a slide-over inspector showing source paths, AST-derived component dependencies, component invariants (INV-*), embedded architectural decisions (DEC-* with rejected alternatives), inline active Team Memory cross-links anchored to the container or component, uncramped full-height Full Specification AsciiDoc prose for both containers and focused internal components, and one-click "Open in Full Reader" escalation into the full-stage SpecReader with sticky Table of Contents.
  8. Full-Page Zoomed C4 Stage & Component Connection Highlighting (INV-PORTAL-C4-FULLPAGE-AND-CONNECTION-HIGHLIGHT): Click "Full Page" to promote the live C4 canvas in-place into a full-viewport dialog opening at a readable zoomed-in scale (100%–150%, interactive 25%–400% zoom, "Fit All", "100%", and Escape dismissal), and isolate any component's incoming and outgoing connections (All / Incoming / Outgoing, Focus Connections / Shift+Click, floating Connection Summary Pill, or "Highlight on Diagram" from the inspector) across SVG nodes, edges, and edge labels.
  9. Interactive Blast Radius Simulator & Boundary Contracts (CTR-*) Explorer: Simulate 1–2 hop upstream/downstream impact (nodes and connecting edges) directly on the C4 canvas using exported knowledge graph edges (INV-PORTAL-STATIC-SCALABILITY) and inspect protocol contracts in a dedicated explorer.
  10. SpecDeltas Pipeline (Kanban & Chronological Timeline): Interactive Kanban board and Chronological Timeline tracking semantic mutations across proposed, in_review, approved, applied (paginated with archived column support), and rejected states, with clickable target and blast-radius entity badges.
  11. Technical Explorations: Discovery spikes (EXP-*) tracking hypotheses, exit criteria, empirical findings, archived status filtering, and resulting SpecDeltas.
  12. Team Operational Memory (#/memory, INV-PORTAL-TEAM-MEMORY-SURFACE): Git-native shared operational lessons, project context, and external references (eidos/memory/mem-*.adoc, MEM-*) with category (Feedback, Project Context, Reference) and freshness/lifecycle (Fresh, Needs Verification, Expired, History Unavailable, Promoted, Archived) filters, non-blocking memory_audit hygiene highlights (duplicate pairs & formal specification overlaps—strictly isolated from validation.warnings), resolved target entity cross-links, full sanitized AsciiDoc inspection, and a clean zero-memory eidos memory add quickstart empty state.
  13. Specs Master Catalog: Filterable repository inventory with pre-indexed instant full-text Spotlight search (CMD+K and / shortcut across all 17 spec types, DEC-* decisions, MEM-* notes, and section headings), AsciiDoc reader with dynamic Table of Contents (INV-PORTAL-READING-ERGONOMICS), automatic interactive rendering of embedded AsciiDoc Mermaid ([mermaid] and [source,mermaid]) diagram blocks (INV-PORTAL-DOCUMENT-MERMAID-RENDERING), and clickable relationship badges.

Embedded AsciiDoc Mermaid Diagrams (INV-PORTAL-DOCUMENT-MERMAID-RENDERING)

Any specification document rendered through the portal's AsciiDoc reader (across SpecReader / Catalog, Architecture #c4InspectorDrawer and Contract sheets, Business, Design, SpecDeltas, Explorations, Team Memory, and Home-launched specs) automatically renders embedded [mermaid] and [source,mermaid] blocks (---- or .... fences, including nested lists, admonitions, examples, definition lists, and a| table cells) as interactive Mermaid v12 SVG diagrams post-DOMPurify under securityLevel: "strict":

  • Captions & Controls: Optional AsciiDoc .Title captions appear in the card header alongside View Source / View Diagram and Copy buttons plus pan, fit, reset, and height-expand controls.
  • Non-Scroll-Trapping Zoom: Plain scrolling traverses the specification prose naturally; hold Ctrl / Cmd while scrolling to zoom an embedded diagram.
  • Theme Sync & Safe Fallback: Toggling Light/Dark mode automatically re-renders visible embedded diagrams; malformed or empty blocks display a clean inline alert banner with sanitized raw Mermaid source instead of breaking the document.

Local Interactive Development

To inspect your architecture locally with real-time Server-Sent Events (GET /api/events streaming live updates across eidos/—including eidos/eidos.yaml—, src/, and tests/, GET /api/drift uncommitted drift summaries, and same-origin loopback Host header isolation):

eidos portal serve --path eidos --port 8080
# Override portal.serve.open_browser from eidos/eidos.yaml on a single run:
eidos portal serve --open
eidos portal serve --no-open

Open http://localhost:8080 in your web browser. Any changes made to eidos/, src/, or tests/ immediately update the live drift status badge and catalog views without manual page refreshes.


Air-Gapped Static Site Export (INV-PORTAL-AIR-GAPPED-BUNDLE & INV-PORTAL-STATIC-SCALABILITY)

You can export the entire portal as a static site that can be hosted on GitHub Pages, GitLab Pages, AWS S3, or opened in air-gapped environments:

# Default chunked export (compact index.html + lazy local specs/<id>.json chunks):
eidos portal build --path eidos --out public

# Optional standalone single-file export (inlines all spec bodies for file:// archives):
eidos portal build --path eidos --out public --single-file

# Explicitly disable portal.build.single_file: true configured in eidos/eidos.yaml:
eidos portal build --path eidos --no-single-file

Repository Defaults (eidos/eidos.yaml)

You can commit team defaults for both eidos portal serve and eidos portal build inside optional eidos/eidos.yaml (explicit CLI flags always override config values):

version: 1
portal:
  serve:
    host: 127.0.0.1
    port: 3000
    open_browser: false
  build:
    out_dir: site       # validated strictly inside repository root
    single_file: false

This creates a self-contained bundle with zero external CDN dependencies, zero Node.js runtime requirement (INV-PORTAL-ZERO-NODE-DEP), strict Mermaid (securityLevel: "strict") and DOMPurify (SANITIZE_DOM) XSS protection (INV-PORTAL-XSS-AND-SERVER-ISOLATION), and lazy per-entity spec chunking:

public/
├── index.html       # Compact React 19 / Tailwind v4 / MD3 SPA shell (<400 KB in chunked mode)
├── assets/          # Extracted local JS/CSS bundles (inlined into index.html with --single-file)
├── favicon.svg      # Vector portal icon
├── data.json        # Catalog metadata, C4 topology, directed graph edges & validation diagnostics
└── specs/           # Lazy-loaded per-entity AsciiDoc bodies (<entity-id>.json; omitted with --single-file)

Automated Deployment with GitHub Actions

You can automatically build and publish the Living Portal on every push to main:

name: Deploy Living Portal

on:
  push:
    branches: [main]

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: "pages"
  cancel-in-progress: false

jobs:
  deploy:
    environment:
      name: github-pages
      url: ${{ steps.deployment.outputs.page_url }}
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: astral-sh/setup-uv@v10.3.0
      - run: uv sync --all-extras --dev
      - run: uv run eidos portal build --path eidos --out public
      - uses: actions/upload-pages-artifact@v3
        with:
          path: public
      - id: deployment
        uses: actions/deploy-pages@v4