Skip to content

Support Fractal Architecture Modeling (System → Service → Module → Layer → Library) #32

Description

@akhundMurad

Currently, Pacta architecture modeling feels focused on a single service or a flat structure.
In real-world systems, architecture is fractal: the same concepts repeat at different levels of scale.

This issue proposes introducing a fractal architecture model, where a Pacta project can describe:

  • a whole system (or platform)
  • multiple services (microservices or bounded contexts)
  • modules inside services
  • layers inside modules
  • shared libraries as first-class architectural elements

All levels should use the same conceptual building blocks and rules.

Why this matters

  • Enables Pacta to work with monorepos and microservice architectures
  • Avoids forcing users to split architecture across multiple tools
  • Makes Pacta applicable beyond “single-service” use cases

Acceptance Criteria

  • Architecture model supports multiple hierarchy levels: system, service, module, layer, library
  • Rules can be applied at any level (e.g. service-to-service, layer-to-layer)
  • Libraries can be modeled independently or attached to services
  • Architecture remains analyzable via CLI and CI

Out of scope

  • Enterprise architecture layers (Business / Technology)
  • Visual modeling UI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions