spec/conception.yaml | Conception, actors (from auth/middleware code), glossary |
spec/<system>/system.yaml | System node inferred from repo structure |
spec/<system>/<domain>/domain.yaml | Domains inferred from package/module boundaries |
spec/<system>/<domain>/<module>/module.yaml | One per service/package with packaging + runtime |
spec/<system>/<domain>/<module>/<element>.yaml | Elements with inline properties + operations |
spec/<system>/types/<TypeName>.yaml | Types extracted from schema definitions |
spec/<system>/errors/<ErrorName>.yaml | Errors extracted from error enums, HTTP status handling |
spec/<system>/policies/<policy>.yaml | Policies inferred from auth middleware, rate limiters, validators |
spec/<system>/contracts/<contract>.yaml | Contracts from OpenAPI / protobuf / explicit interface boundaries |
spec/<system>/interactions/<interaction>.yaml | Interactions from service-to-service call sites |
spec/<system>/flows/<flow>.yaml | Flows from orchestration code or explicit workflow definitions |
spec/<system>/implementation/datastores.yaml | Datastores from ORM schemas, migrations, connection config |
spec/<system>/implementation/environments.yaml | Environments from CI/CD config, .env files, deployment manifests |
spec/<system>/workbench/discovery.md | System overview, decisions inferred, open questions |
spec/<system>/workbench/cast-report.md | Uncertain candidates, low-confidence inferences, gaps |