Orazaka
Documentation
GitHub
Pour les développeurs

Every architecture rule enforced at build time and the test suites that enforce it — generated from the governance kit. For contributors who want to know what the build will refuse.

Governance Rules

🤖 Generated from code by scripts/generate-docs.mjs — do not hand-edit. Run orazaka docs build to refresh.

A rule with no suite is a rule that enforces nothing — it is written, it compiles, and no build fails when it is violated. Treat an empty cell as a defect, not as a gap.

ConfigBindingRules

RuleEnforced bySummary
assertConfigurationBindsUnambiguouslyAutomationServiceGovernanceTest
BillingServiceGovernanceTest
EdgeGovernanceTest
GovernanceTest
IdentityServiceGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Asserts [CFG-001] over the given classes: no type reachable from a configuration-binding root has more than one constructor without one of them annotated @ConstructorBinding.
assertInjectableComponentsHaveOneConstructorAutomationServiceGovernanceTest
BillingServiceGovernanceTest
EdgeGovernanceTest
GovernanceTest
IdentityServiceGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Asserts every Spring-instantiated component has a constructor set the container can choose from.

ExecutorCoherenceRules

RuleEnforced bySummary
assertEveryCapabilityHasAnExecutorAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[EXEC-001] Every enabled capability executed in process has a JobExecutor for its handler_key.
assertEveryCapabilityIsDrainedAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[EXEC-002] Every enabled capability's routing_key is drained by some worker's declared bindings.

GovernanceRules

RuleEnforced bySummary
assertCollectionFieldsPrivateFinalBusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
ToolsGovernanceTest
Asserts collection fields (List, Map, Set) in non-record classes are private final.
assertDedupIsAtomicJobServiceGovernanceTest[KIT-002] Message deduplication is a claim, never a check followed by an act.
assertDomainHasNoTransportDtosBillingServiceGovernanceTest
BusinessGovernanceTest
IdentityGovernanceTest
StudioServiceGovernanceTest
Asserts the domain package holds no transport DTOs (*Request/*Response).
assertDomainPurityIdentityGovernanceTest
ToolsGovernanceTest
[HEX-002] Prohibits domain classes from depending on framework packs.
assertEndpointRuleHasOneAuthorJobServiceGovernanceTest[CAP-002] The endpoint rule has one author.
assertEveryCapabilityHasAnExecutorAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[EXEC-001] Fails when an in-process capability's handler_key has no JobExecutor.
assertEveryCapabilityIsDrainedAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[EXEC-002] Fails when a capability's routing_key is drained by no declared worker.
assertFieldsPrivateBusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
ToolsGovernanceTest
Asserts instance fields in concrete non-record classes are private.
assertImplClassesPackagePrivatePersistenceGovernanceTest
PersistenceIdentityGovernanceTest
Asserts *Impl classes in the given service package are not public.
assertInternalSurfaceRequiresServiceAuthorityAutomationServiceGovernanceTest
BillingServiceGovernanceTest
EdgeGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Fails when a SecurityConfig matches /internal/v1/** without demanding the SERVICE authority.
assertMappersFinalIdentityGovernanceTest
InterceptorsGovernanceTest
PersistenceBridgeGovernanceTest
Asserts *Mapper classes in the given package are final.
assertMappersPackagePrivateIdentityGovernanceTest
InterceptorsGovernanceTest
PersistenceBridgeGovernanceTest
Asserts *Mapper classes in the given package are not public.
assertNoAnonymousClassesBusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
ToolsGovernanceTest
Asserts no anonymous classes in production (with enum/TypeReference exemption).
assertNoDependencyOnBusinessBoundaryTest
InterceptorsBoundaryTest
Asserts that classes in modulePackage do not depend on forbiddenPackage.
assertNoFieldInjectionBillingServiceGovernanceTest
BusinessBoundaryTest
InterceptorsBoundaryTest
JobServiceGovernanceTest
PersistenceBridgeGovernanceTest
StudioServiceGovernanceTest
Asserts no @Autowired field injection in the given module package.
assertNoForeignTier3DependencyAutomationServiceGovernanceTest
BillingServiceGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
StudioServiceGovernanceTest
[SEAM-002] Asserts an autonomous service depends on no bounded context's Tier-3 (owned-domain) implementation.
assertNoPackKeyConditionalsAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[PACK-003] Fails when engine code branches on one of those identifiers — inline, or through a constant declared in the same file.
assertNoPackKeyLiteralsAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
[PACK-002] Fails when a pack, studio, or pack-capability key appears as a literal in engine code under orazaka-libs/, orazaka-apps/services/ or orazaka-apps/workers/**.
assertNoPermitAllOnInternalOrUploadsBillingServiceGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Fails when a SecurityConfig opens /internal/** or /uploads/**.
assertNoRedundantPrefixBillingServiceGovernanceTest
BusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
StudioServiceGovernanceTest
ToolsGovernanceTest
Asserts no class names start with 'Orazaka' prefix.
assertNoStandardStreamsBillingServiceGovernanceTest
BusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
StudioServiceGovernanceTest
ToolsGovernanceTest
Asserts no classes access System.out or System.err.
assertNoWebControllersBusinessGovernanceTest
InterceptorsGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
ToolsGovernanceTest
Asserts no @RestController or @Controller annotations exist in the given module.
assertOneCapabilityModelJobServiceGovernanceTest[CAP-001] One record models a capability, and the projections of it say so.
assertOneDeclarationAuthorStudioServiceGovernanceTest[SAGA-002] One author resolves what a dispatched step carries from its pack.
assertOneSettlementAuthorStudioServiceGovernanceTest[SAGA-001] One author closes a run's credit hold.
assertOneTopLevelClassPerFileBillingServiceGovernanceTest
BusinessGovernanceTest
IdentityGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
StudioServiceGovernanceTest
ToolsGovernanceTest
Asserts every top-level class resides in a dedicated file matching its simple name.
assertOutboxRelaysClaimJobServiceGovernanceTest[KIT-003] An outbox relay claims the rows it publishes.
assertPersistenceAdapterPackageKindIdentityGovernanceTestAsserts the exact infrastructure.adapter.persistence package (excluding its entity/repository/converter sub-packs) holds only *Adapter/*Mapper — one package, one component kind [ERR-130].
assertPersistencePackageHygienePersistenceGovernanceTest
PersistenceIdentityGovernanceTest
Asserts JPA components reside in correct sub-packs.
assertSagaReadersDoNotWriteStudioServiceGovernanceTest[SAGA-003] The saga's read-only invariants stay read-only.
assertSecurityBaselineIsUniformJobServiceGovernanceTest[KIT-001] Every service's security baseline says the same four things.
assertServicePackageOnlyServicesBillingServiceGovernanceTest
JobServiceGovernanceTest
StudioServiceGovernanceTest
ToolsGovernanceTest
Asserts every top-level class in servicePackage is named *Service (capability-oriented).
assertSessionSecretMinimumIsUniformJobServiceGovernanceTest[KIT-004] The session JWT minimum is one number with five authors, and they agree.
assertStrictHexagonalBoundariesToolsGovernanceTest[HEX-001] Enforces strict hexagonal layer dependencies using ArchUnit's layeredArchitecture.
assertSupportPackageHygienenoneAsserts infrastructure.support holds only cross-cutting helpers / shared plumbing — never a use-case *Service, a *Controller/*Adapter, or config [ERR-130].
assertVirtualThreadsEnabledAutomationServiceGovernanceTest
BillingServiceGovernanceTest
EdgeGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Fails when a service that serves HTTP does not run its requests on virtual threads.

GovernanceSubjects

RuleEnforced bySummary
assertEveryRuleIsNonVacuousGovernanceSubjectsTest[GOV-006] Asserts every governance rule in this package is non-vacuous by construction.

LaneCoherenceRules

RuleEnforced bySummary
assertEveryCapabilityDeclaresItsLaneJobServiceGovernanceTest[LANE-001] Every seeded capability whose routing key a lane binds declares that lane's class.

LoggedContentRules

RuleEnforced bySummary
assertNoLoggingCallTakesContentAutomationServiceGovernanceTest
BillingServiceGovernanceTest
EdgeGovernanceTest
GovernanceTest
IdentityServiceGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Asserts [LOG-001] over the given classes: no argument of a logging call is, or was derived from, a prompt, a response body or a message text.

MeteringMarkerRules

RuleEnforced bySummary
assertEveryJobProducerDeclaresItsMeteringMeteringMarkerTestAsserts that every class publishing to the jobs exchange stamps #MARKER or is exempt with a written reason.

PackCoherenceRules

RuleEnforced bySummary
assertPackCatalogueIsCoherentSqlBoundaryTestAsserts the pack catalogue is coherent: infra/initdb seeds no pack, and no bundle manifest declares a pack the database would refuse.

RunSurfaceRules

RuleEnforced bySummary
assertNoInboundEntryDispatchesAJobBillingServiceGovernanceTest
EdgeGovernanceTest
IdentityGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
Asserts [DOOR-001] over this module's production classes, against the whole repository's sinks.

SourceFileScanner

RuleEnforced bySummary
assertNoBannedLiteralsEdgeGovernanceTestScans Java source files under sourceRoot for default banned patterns [GOV-003].
assertNoEnvironmentInjectionAutomationServiceGovernanceTest
BillingServiceGovernanceTest
BusinessGovernanceTest
EdgeGovernanceTest
GovernanceTest
IdentityGovernanceTest
IdentityServiceGovernanceTest
InterceptorsGovernanceTest
JobServiceGovernanceTest
KnowledgeServiceGovernanceTest
NotificationServiceGovernanceTest
PersistenceBridgeGovernanceTest
PersistenceGovernanceTest
PersistenceIdentityGovernanceTest
RouterGovernanceTest
StudioServiceGovernanceTest
ToolsGovernanceTest
Scans for org.springframework.core.env.Environment imports in non-@Configuration classes [ERR-113].

SqlBoundaryRules

RuleEnforced bySummary
assertNoCrossContextForeignKeysSqlBoundaryTestAsserts that every REFERENCES in every *.sql file under initdbDir targets a table created in the same file (same bounded context).