Atruss Code Atlas: Portable Architectural & Pipeline Intelligence Platform
A passive, zero-agent, offline-capable platform combining Hexagonal Architecture, Polyglot Tree-sitter ASTs across 10 ecosystems, CI/CD supply-chain DAGs, 6-Dimension A–F Scorecards, Read-Only MCP, and an Astro Starlight Material Design 3 portal.
Enterprises suffer from silent architectural drift and CI/CD pipeline fragmentation. Across hundreds of repositories, engineering teams frequently operate like “Master Blacksmiths”—hand-crafting bespoke GitHub Actions workflows and burying critical domain logic and infrastructure couplings where only tribal memory can trace them.
Atruss Code Atlas is my open-source CLI and static Material Design 3 (Astro Starlight) intelligence portal built to replace tribal archaeology with passive, zero-agent, offline-capable architectural and pipeline observability. Without requiring webhooks, background agents, or modifications to target repositories, Atruss answers three questions across an organization:
- What is being built (structural code boundaries, workspace graphs, and infrastructure dependencies).
- How it gets to production (end-to-end CI/CD execution DAGs from triggers to jobs and reusable workflows).
- Where hidden risk lives (architectural layer violations, blast radius hotspots, supply-chain security anti-patterns, CVEs, and temporal drift).
1. The Market Gap & Stakeholder Value Model
Most static analysis and developer portal tools illuminate only a single slice of an engineering portfolio while imposing operational friction or proprietary lock-in:
| Tool Category | Blind Spot / Adoption Friction | How Atruss Code Atlas Solves It |
|---|---|---|
| Static Code Scanners (e.g., SonarQube) | Blind to CI/CD workflow DAGs, triggers, and deployment supply-chain risks | Parses .github/workflows/*.yml into NetworkX DAGs alongside source ASTs |
| Proprietary Security UIs (e.g., GHAS) | Locks governance insights inside vendor dashboards | Emits portable JSON, CSV, YAML, Arc42 Markdown, CycloneDX v1.6 SBOMs, and OASIS SARIF v2.1.0 |
| Active IDP Catalogs (e.g., Backstage) | Demands months of manual catalog-info.yaml upkeep and running Postgres/plugins | 100% Passive: discovers via GitHub /git/trees API and shallow --depth 1 clones |
| Runtime CI Telemetry (e.g., Datadog CI) | Lacks code-level boundary and domain architecture mapping | Correlates CI/CD deployment jobs directly to code modules, containers, Kubernetes, and Terraform |
---
config:
layout: elk
---
flowchart LR
%% title: Stakeholder Intelligence & Value Model
classDef core fill:#FFFBEB,stroke:#D97706,stroke-width:2px,color:#78350F
classDef role fill:#EFF6FF,stroke:#2563EB,stroke-width:2px,color:#1E3A8A
classDef output fill:#ECFDF5,stroke:#059669,stroke-width:2px,color:#064E3B
Engine["Atruss Code Atlas Engine<br/>Passive CLI + YAML Policy-as-Code + Tree-sitter"]:::core
subgraph Stakeholders["Stakeholder Intelligence Lenses"]
Exec["Executives & CISOs<br/>6-D A-F Scorecards & Tech Debt Heatmaps"]:::role
Arch["Software Architects<br/>Arc42 + C2C Docs & Layer Fitness Rules"]:::role
SWE["Software Engineers<br/>PR Check, Drift Diff & Stdio MCP Server"]:::role
DevOps["DevOps & Platform<br/>14-Rule CI/CD DAG & SARIF v2.1.0 Gates"]:::role
SRE["Infra, Cloud & SRE<br/>PageRank Blast Radius & OTel Overlays"]:::output
end
Engine e1@--> Exec
Engine e2@--> Arch
Engine e3@--> SWE
Engine e4@--> DevOps
Engine e5@--> SRE
e1@{ animate: true }
e2@{ animate: true }
e3@{ animate: true }
e4@{ animate: true }
e5@{ animate: true }
2. Core Hexagonal Architecture (v1.0 + Horizon 2 v2.0)
Following the “Lego” Framework, Atruss Code Atlas enforces strict Hexagonal (Ports & Adapters) boundaries—remaining 100% database-free and broker-free (zero FastAPI, Celery, Redis, or Postgres runtime dependencies):
---
config:
layout: elk
---
flowchart TB
%% title: Atruss Code Atlas Hexagonal Architecture
classDef policy fill:#FEF2F2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D
classDef inbound fill:#EFF6FF,stroke:#2563EB,stroke-width:2px,color:#1E3A8A
classDef domain fill:#FFFBEB,stroke:#D97706,stroke-width:2px,color:#78350F
classDef outbound fill:#ECFDF5,stroke:#059669,stroke-width:2px,color:#064E3B
subgraph Policy["Declarative Policy-as-Code YAML"]
ECO["manifests/ecosystems.yaml<br/>27-Col Classification Rules"]:::policy
ARCH["manifests/architecture-rules.yaml<br/>Layer Boundaries"]:::policy
PIPE["manifests/pipeline-rules.yaml<br/>14 CI/CD Policy Rules"]:::policy
end
subgraph Inbound["Inbound Ports (Adapters)"]
CLI["CLI Adapter<br/>discover | analyze-pipeline | analyze-code | check | diff"]:::inbound
MCP["Read-Only MCP Adapter<br/>atruss mcp (10 Stdio JSON-RPC Tools)"]:::inbound
end
subgraph Core["Hexagonal Core Domain (Python 3.11+)"]
CLASS["27-Column Classifier<br/>Multi-Ecosystem Monorepo Splitting"]:::domain
AST["Polyglot Tree-sitter AST & Fitness Engine<br/>10 Ecosystems + Cycles + PageRank Blast Radius"]:::domain
DAG["Pipeline DAG & Supply-Chain Scanner<br/>OSV.dev Batch + Redacted Secrets"]:::domain
SCORE["6-Dimension Scorecard, Drift & C2C<br/>Code-to-Cloud + OTel / Coverage Overlays"]:::domain
end
subgraph Outbound["Outbound Exporters & M3 Portal"]
EXPORTS["exports/latest/<br/>JSON, CSV, YAML, Arc42 .md, CycloneDX v1.6, SARIF v2.1.0, llms.txt"]:::outbound
WEB["Astro v5 + Starlight Material Design 3 Portal<br/>4-Tab Repo View, ScorecardHeatmap, CrossRepoTopology"]:::outbound
end
ECO -.-> CLASS
ARCH -.-> AST
PIPE -.-> DAG
CLI e1@--> CLASS
CLI e2@--> DAG
CLI e3@--> AST
CLASS --> AST
AST e4@--> SCORE
DAG e5@--> SCORE
SCORE e6@--> EXPORTS
MCP <--> EXPORTS
EXPORTS e7@--> WEB
e1@{ animate: true }
e3@{ animate: true }
e4@{ animate: true }
e6@{ animate: true }
e7@{ animate: true }
Implemented Capabilities Across FR-001–FR-030
- Dual-Mode 27-Column Organization Discovery (
FR-005):atruss discover --org <org>queries GitHub/git/trees/{sha}?recursive=1without full cloning, isolating monorepo submodules viamanifests/ecosystems.yamland exporting canonicalrepositories.{json,csv,yaml}with frameworks, deployable types, container/Kubernetes presence, and documentation priority (Tier 1–Tier 3). - Polyglot Tree-sitter AST & Fitness Functions (
FR-012,FR-022,FR-023): Analyzes 10 ecosystems (Python,.NET,TypeScript/JavaScript,Java,Go,Rust,Ruby,PHP,Elixir, andContainer/Helm/IaC) forAPI_ROUTE,SERVICE,DATA_ACCESS_LAYER,UI_COMPONENT, andMODULEboundaries—computing cyclomatic & cognitive complexity, AST clone duplication, dead code, declarative layer bypasses, circular dependencies (nx.simple_cycles), and PageRank Blast Radius. - 14-Rule CI/CD Pipeline DAG & Supply-Chain Security (
FR-010,FR-021,FR-024,FR-028): Constructs NetworkX workflow DAGs (workflow_call/workflow_runcross-workflow edges included) and flags 7 operational gaps plus 7 supply-chain security anti-patterns (UNPINNED_ACTION,TEMPLATE_INJECTION,PWN_REQUEST_RISK,EXCESSIVE_PERMISSIONS,NO_TIMEOUT,ARTIFACT_CREDENTIAL_PERSISTENCE,STATIC_CLOUD_CREDENTIALS). Combines offline-safeOSV.devlockfile scanning with redacted secret detection to emit CycloneDX v1.6 SBOMs and OASIS SARIF v2.1.0 reports. - 6-Dimension A–F Scorecard & Code-to-Cloud Traceability (
FR-025,FR-026,FR-027): Produces deterministic0–100A–F grades (Code Quality, Security, Maintainability, Test Coverage, Dependency Health, Pipeline Health), maps Arc42 Section 7 Code-to-Cloud flows with--otel-tracesand--coverageoverlays (HOT_PATH,COVERED_STATIC,DEAD_UNOBSERVED), and evaluates snapshot regressions viaatruss diffandatruss check --sarif. - AI Context Engineering (
llms.txt/ MCP) & Material Design 3 Observatory (FR-017,FR-029,FR-030): Exports deterministicllms.txtandllms-full.txtbundles, runs a read-only stdio Model Context Protocol server (atruss mcp) exposing 10 structural/security tools, and feeds an Astro v5 + Starlight Material Design 3 static site with 4-tab repo deep dives,ScorecardHeatmap,CrossRepoTopology, SVG/PNG diagram exports, and Print/PDF layouts.
3. Built as a Living Laboratory for Agentic SDLC Governance
Over iterations 001 through 009 and Horizon 2, Atruss Code Atlas served as an empirical testbed for combining SpecKit Specification-Driven Development (specs/001–006A) with Antigravity Native Agentic Coding & Parallel Swarms (006B–009).
---
config:
layout: tidy-tree
---
mindmap
root(("Atruss Code Atlas<br/>Capability & Governance Taxonomy"))
("Discovery & Policy-as-Code")
("GitHub Recursive Trees API")
("27-Column Inventory Schema")
("External YAML Rule Manifests")
("Code & Architecture AST")
("10-Ecosystem Tree-sitter")
("Layer Boundaries & Cycles")
("PageRank Blast Radius")
("Arc42 + Code-to-Cloud")
("CI/CD & Supply-Chain")
("14-Rule Pipeline DAG")
("Offline-Safe OSV.dev Batch")
("CycloneDX v1.6 SBOM")
("OASIS SARIF v2.1.0 Gate")
("Agentic Context & M3 Portal")
("llms.txt & llms-full.txt")
("atruss mcp (10 Read-Only Tools)")
("Astro Starlight M3 Portal")
("5-Gate Validator + 372-Repo Benchmark")
To prevent cross-iteration agent drift (“checkbox compliance” where a Markdown task is ticked while stubs or skipped tests remain), scripts/validate_agent_workflow.py enforces a zero-trust 5-Gate Conformance Validator (Grade A target) alongside a 372-repository checkpointed corpus benchmark (--isolated --checkpoint-dir):
- Gate 1 — Traceability: 100% of
FR-001–FR-030andSC-001–SC-010map to tasks, and every path referenced inplan.mdexists on disk. - Gate 2 — AST Anti-Stub Audit: Zero empty
pass/...stub functions, zero# Mockplaceholders, and zeropytest.skipmarkers. - Gate 3 — Full Pytest Execution: 100% pass rate with zero skipped tests (
--strict-markers). - Gate 4 — Cross-Stack Schema Contract: Backend JSON, SBOM, SARIF,
llms.txt, andcatalog-history.jsonmatch the Astro Starlight UI consumer contracts. - Gate 5 — SHA-256 Determinism: Repeated runs against pinned fixtures produce byte-for-byte identical hashes.