Skip to content

InfraLens — Architecture Governance

InfraLens proves whether the architecture you are running still matches the architecture you intended.

Scan infrastructure-as-code, deployment manifests and application configuration. Reconstruct the architecture, trace every conclusion to evidence, validate reality against intent, and determine whether approval remains valid.

CILicenseNodeVersion

InfraLens — Intent → Implementation → Evidence → Violation → Approval blocked

Intent versus reality · Evidence behind every conclusion · Approval that invalidates when the architecture changes

Why InfraLens?

Infrastructure tools tell you what exists.

InfraLens tells you:

  • why it exists;
  • whether it still satisfies the intended architecture;
  • what changed;
  • which assumptions failed;
  • which decisions or ADRs are invalid;
  • and whether approval remains defensible.

InfraLens does not require an LLM. Architecture reconstruction, projections, reviews, recommendations and explanations are deterministic and evidence-backed.

See it in 30 seconds

  1. Approval is blocked — production resilience intent is not satisfied.
  2. The failed assumption points at the database (multi_az = false).
  3. Linked ADR / contract impact is visible in the governance console.
  4. A graph-only simulation enabling Multi-AZ shows the finding resolve — no production change.

Full walkthrough: docs/demo/walkthrough.md

What makes it different

DifferentiatorWhat you get
Intent versus realityValidate intents, ADRs, assumptions and contracts against declared, rendered, planned and observed implementation.
Evidence behind every conclusionTrace nodes, relationships, findings and approvals to exact source evidence.
Approval invalidationBind sign-off to a specific evidence state; invalidate it when material change occurs.
One graph, many projectionsCapability, application, physical, data, ownership, security and more — each with one architectural question.
Deterministic reviewSame inputs → same graph, projections and governance outcomes.

Quick start

npm install
npm run demo

Opens the workbench at http://localhost:5173 with the Retail SaaS reference estate (Node.js ≥ 20).

npm run verify # types, tests, builds, demo scan, bundle checks

What the demo shows

  • Architecture Governance landing with readiness and blocked approval.
  • Evidence-backed findings (for example Multi-AZ disabled on the production database).
  • Projections: Application (how software communicates), Security (how trust flows), and more.
  • Counterfactual simulation that never modifies production infrastructure.
  • Four reference estates in the workbench: Retail SaaS, Serverless AWS, Kubernetes Microservices, Legacy Hybrid.
  • Reset to the bundled demonstration state at any time.

Supported inputs

InputStatus
Terraform .tf / JSONAvailable (bounded HCL; plan/state import improves fidelity)
Kubernetes manifestsAvailable
OpenShift resourcesAvailable
Helm / KustomizeAvailable as rendered manifests
AWS inventory snapshotAvailable
Live AWS (read-only)Requires credentials
Cluster inventory snapshotAvailable
Live cluster accessRequires credentials
Application config (env, Spring, package.json, Compose)Available
ADRs, intents, contracts, assumptionsAvailable

Full matrix: docs/product/capability-matrix.md

Architecture views

Each projection answers one question (projection contracts):

ViewQuestion
CapabilityWhat business capabilities exist?
ApplicationHow do applications communicate?
PhysicalWhat infrastructure implements this architecture?
DataWhere does data move?
OwnershipWho owns what?
SecurityHow does trust flow?
RiskWhat is most likely to fail?
Governance / DecisionIs this architecture acceptable?

Architecture governance

InfraLens binds intent, ADRs, assumptions, contracts and obligations to the evidence graph. Reviews and sign-off are evidence-state aware: when material drift appears, prior approval becomes stale.

See docs/guides/architecture-review.md.

Evidence model

Truth states: declared · rendered · planned · observed · inferred · assumed · unknown · historical.

Every resource, edge and finding carries confidence and evidence references. Completeness explains which domains are present, missing or conflicting — not an unexplained percentage.

Commands

npm run demo # one-command local demo
npm run demo:scan # regenerate Retail SaaS bundle
npm run demo:scan:all # regenerate all reference estate bundles
npm run demo:verify # validate demo bundle shape
npm run demo:record # write 30s storyboard (no GIF claimed)
npm run build:demo # static hosted-demo assets (apps/web/dist-demo)
npm run scan -- <path># scan a project → evidence bundle
npm run report -- <bundle.json> --format html --output report.html
npm run inspect -- <bundle.json>
npm run compare -- <baseline.json><candidate.json>
npm run capabilities # runtime readiness matrix
npm run test:generality # multi-estate correctness campaign
npm run verify # release gate used by CI

Security and privacy

  • Local-first — scans stay on your machine unless you configure a connector.
  • Secret redaction in evidence extraction.
  • Read-only cloud and cluster connectors when enabled.
  • See SECURITY.md and docs/security/scanner-security.md.

Current status and limitations

v0.1.0 — Architecture Governance Public Preview.

Honest boundaries: Terraform module/expression resolution is incomplete without plan/state; live connectors need credentials; large-graph performance and portfolio persistence are early. Details: docs/product/limitations.md.

Documentation

Contributing

npm install
npm run verify

See CONTRIBUTING.md for adapter contracts, projection contracts, fixture rules and PR checks.

Licence

Apache License 2.0 — see LICENSE. Third-party notices: THIRD_PARTY_NOTICES.md.

About

Evidence-backed architecture governance for Terraform, Kubernetes, OpenShift, AWS and application configuration.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages