You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2026. It is now read-only.
AWCMS-Mini has completed the generic base backlog and the platform-hardening epic #679. The current repository already provides a Bun + Astro 7 + PostgreSQL modular monolith, tenant-aware RBAC/ABAC/RLS, audit, idempotency, sync/outbox patterns, workflow approval, reporting, module management, connection pooling/backpressure, observability, resilience verification, and production preflight.
The next readiness gap is not rebuilding those foundations. It is proving and extending AWCMS-Mini as a reusable technical application kernel for many independently maintained derived repositories, horizontal deployment, high-volume data, enterprise processes, optional SaaS control-plane extensions, and ERP extension contracts.
This epic adapts the validated recommendations in Validasi Arsitektur, Skalabilitas, Performa, dan Ekspansi AWCMS-Mini v1.0 dated 13 July 2026 after checking the current main branch and open backlog.
Relationship to completed work
This is a follow-up to, not a reopening or duplicate of:
Child issues must reuse those implemented mechanisms and scope only the remaining deltas.
Objective
Make AWCMS-Mini a reusable platform kernel that:
can be composed safely by multiple derived repositories without editing base registry files;
verifies base/derived compatibility before build and release;
has an operational transactional domain-event runtime;
proves horizontal database capacity and performance regression budgets;
governs retention, partitioning, archival, legal hold, and safe purge for high-volume data;
supports reusable business scope, enterprise workflow, party/profile, organization, reference data, document, data-exchange, reporting-projection, and integration primitives;
defines ERP extension contracts without adding ERP functional domains to the base repository.
Architecture placement
AWCMS-Mini
├── Core
│ ├── tenant_admin
│ ├── profile_identity
│ ├── identity_access
│ ├── logging
│ └── module_management
├── System Foundation
│ ├── workflow
│ ├── sync_storage
│ ├── reporting
│ ├── domain_event_runtime
│ ├── data_lifecycle
│ ├── integration_hub
│ └── extension_assembly
├── Official Optional Business Foundation
│ ├── organization_structure
│ ├── reference_data
│ ├── managed_files/document infrastructure
│ ├── case_management
│ └── data_exchange
└── Extensions outside the base
├── SaaS control plane
├── ERP functional modules
└── application-specific derived repositories
The exact admission category of every new top-level module remains subject to docs/awcms-mini/21_module_admission_governance.md and an ADR/admission decision before implementation.
Non-negotiable guardrails
Preserve the modular monolith as the default deployable; no premature microservices.
Preserve the trusted static registry; no runtime plugin upload/install, marketplace, eval, or arbitrary code execution.
Derived applications must not directly edit the base module registry after build-time assembly is available.
Tenant remains the security boundary. Legal entity and organization unit are business scopes, not substitutes for tenant isolation.
Tenant-scoped tables use tenant_id, ENABLE + FORCE RLS, tenant-first indexes, default-deny ABAC, and least-privilege DB roles.
External provider calls remain optional, timeout-bounded, and outside database transactions.
Offline/LAN-first profiles must continue to work with online/provider capabilities disabled.
No direct shared-table writes across module ownership boundaries; use capability ports, APIs, or versioned events.
Posted transactions remain immutable; corrections use reversal/compensation.
No Platform Masjid, Jualanku.info, POS, marketplace, finance ledger, inventory valuation, payroll, tax, or other vertical business logic in the base.
Planned implementation waves
Wave 1 — prerequisites for many derived repositories
Business-scope assignments and segregation-of-duties hooks.
Enterprise workflow minimum.
Canonical party/profile completion.
Optional organization structure.
Wave 3 — reusable business infrastructure
Effective-dated reference data.
Generic document infrastructure and numbering.
Staged data exchange.
Reporting read models/projections.
Integration hub.
Wave 4 — expansion contracts
ERP extension readiness contracts.
SaaS control-plane work only after Wave 1 contracts and compatibility gates are stable.
Evidence-gated work not created yet
The following must not be implemented merely because they are fashionable:
tenant-safe distributed cache;
service extraction/microservices;
sharding or tenant placement/migration automation.
Create separate issues only after benchmarks or operational evidence prove the need, with an ADR, data-ownership plan, cutover, rollback, and no-dual-write strategy.
Epic completion criteria
Derived repositories can compose application modules without editing src/modules/index.ts in the base.
Base/derived semantic and capability compatibility is verified automatically.
Transactional domain events have provider-neutral dispatch, idempotent consumers, retries, replay, ordering rules, and dead-letter handling.
Horizontal connection/work-class budgets are validated against approved PostgreSQL/PgBouncer capacity.
Load, soak, burst, large-data/RLS, and query-plan regression evidence is reproducible across releases.
High-volume table lifecycle policies support retention, partitioning, archive checksum, legal hold, dry-run, safe batching, resume, and metrics.
Reusable business-scope, workflow, party, organization, reference-data, document, exchange, reporting, and integration contracts are implemented or explicitly deferred through admission review.
ERP contracts are documented and tested through an external example extension without adding accounting/inventory/payroll tables to the base.
bun run check, relevant PostgreSQL integration tests, E2E tests, performance suites, security readiness, and a non-production preflight pass.
Standards and controls
Implementation should map practical controls to UU PDP, UU ITE, PP 71/2019, ISO/IEC 27001/27002/27005/27017/27018/27034/27701, ISO/IEC 20000-1, ISO 22301, ISO/IEC 15408 as an assurance reference, OWASP ASVS/API Security Top 10, NIST CSF, and CIS Controls without claiming certification.
Context
AWCMS-Mini has completed the generic base backlog and the platform-hardening epic #679. The current repository already provides a Bun + Astro 7 + PostgreSQL modular monolith, tenant-aware RBAC/ABAC/RLS, audit, idempotency, sync/outbox patterns, workflow approval, reporting, module management, connection pooling/backpressure, observability, resilience verification, and production preflight.
The next readiness gap is not rebuilding those foundations. It is proving and extending AWCMS-Mini as a reusable technical application kernel for many independently maintained derived repositories, horizontal deployment, high-volume data, enterprise processes, optional SaaS control-plane extensions, and ERP extension contracts.
This epic adapts the validated recommendations in
Validasi Arsitektur, Skalabilitas, Performa, dan Ekspansi AWCMS-Mini v1.0dated 13 July 2026 after checking the currentmainbranch and open backlog.Relationship to completed work
This is a follow-up to, not a reopening or duplicate of:
Child issues must reuse those implemented mechanisms and scope only the remaining deltas.
Objective
Make AWCMS-Mini a reusable platform kernel that:
Architecture placement
The exact admission category of every new top-level module remains subject to
docs/awcms-mini/21_module_admission_governance.mdand an ADR/admission decision before implementation.Non-negotiable guardrails
eval, or arbitrary code execution.tenant_id,ENABLE+FORCE RLS, tenant-first indexes, default-deny ABAC, and least-privilege DB roles.Planned implementation waves
Wave 1 — prerequisites for many derived repositories
Wave 2 — enterprise security and process
Wave 3 — reusable business infrastructure
Wave 4 — expansion contracts
Evidence-gated work not created yet
The following must not be implemented merely because they are fashionable:
Create separate issues only after benchmarks or operational evidence prove the need, with an ADR, data-ownership plan, cutover, rollback, and no-dual-write strategy.
Epic completion criteria
src/modules/index.tsin the base.bun run check, relevant PostgreSQL integration tests, E2E tests, performance suites, security readiness, and a non-production preflight pass.Standards and controls
Implementation should map practical controls to UU PDP, UU ITE, PP 71/2019, ISO/IEC 27001/27002/27005/27017/27018/27034/27701, ISO/IEC 20000-1, ISO 22301, ISO/IEC 15408 as an assurance reference, OWASP ASVS/API Security Top 10, NIST CSF, and CIS Controls without claiming certification.