์ด ์ํฌ์คํ์ด์ค๋ CLEVER ์์ ๋ค๋ฅธ ํ๋ก์ ํธ์ ๋ถ๋ฆฌ๋ MSA ์ ํ ํ๋ซํผ ์
ธ์ด๋ค.
๋ชฉ์ ์ ๋ ๊ฐ์ง๋ค.
- ์ค๊ณ์ ๋งคํ์ ์ ๋ณธ์
docs/์ ๊ณ ์ ํ๋ค. - ์ค์ ๊ตฌํ์
development/์๋์ root-tracked source slice๋ก ํตํฉ ๊ด๋ฆฌํ๋ค.
์ด ๋ฃจํธ๋ ํ๋ซํผ monorepo umbrella๋ค. ์๋น์ค ๊ตฌํ ์ฝ๋๋ development/* ์๋์์ root repo๊ฐ ์ง์ ์ถ์ ํ๋ค.
AGENTS.md์ ๊ฐ repo์ README.md๋ ์ด์ ์๋ด ๋ฌธ์๋ค. ์ ๋ณธ์ docs/์ root mapping ๋ฌธ์์๋ง ๋๋ค.
clever-msa-platform/
โโโ WORKSPACE.md
โโโ repo-map.md
โโโ docs/
โ โโโ goals/
โ โโโ boundaries/
โ โโโ mappings/
โ โโโ contracts/
โ โโโ decisions/
โ โโโ rollout/
โ โโโ archive/
โ โโโ superseded/
โ โโโ historical/
โ โโโ rejected/
โโโ development/
docs/๋ ์ด ํ๋ซํผ์ ๋ฌธ์ ์ ๋ณธ์ด๋ค.
goals/- ํ๋ซํผ์ ๋ชฉํ ์ํ์ ์์ ๋ฐฉํฅ
boundaries/- ์๋น์ค ๊ฒฝ๊ณ, ์์ ๋ฐ์ดํฐ, join risk
mappings/- ํ์ฌ ๊ตฌ์กฐ์์ ๋ชฉํ ๊ตฌ์กฐ๋ก ๊ฐ๋ ์ด๋ํ, legacy cut map, source index, current runtime inventory
contracts/- ID, ์ํ, read model contract, integration rule
decisions/- ์ ์ด๋ฐ ๊ฒฝ๊ณ๋ฅผ ํํ๋์ง์ ๋ํ ๊ฒฐ์ ๊ธฐ๋ก๊ณผ spec
rollout/- living rollout docs์ active plan only ์์ญ
archive/- ๋ ์ด์ ์ ๋ณธ์ด ์๋ ๋ฌธ์๋ง ๋ณด๊ด, completed rollout artifact ํฌํจ
docs/์๋ ์คํ ์ฝ๋, compose, env, seed script๋ฅผ ๋์ง ์๋๋ค.
development/ ์๋๋ ์ค์ ๊ตฌํ source slice ๋ฌถ์์ด๋ค.
์์น:
- ๊ฐ ๋๋ ํ ๋ฆฌ๋ ๋ ๋ฆฝ ๋ฐฐํฌ/์์ ๊ฒฝ๊ณ๋ฅผ ๊ฐ์ง source slice๋ค.
- root repo๊ฐ whitelist์ ํฌํจ๋
development/*ํ์ผ์ ์ง์ ์ถ์ ํ๋ค. - ์๋น์ค๋ ๋ค๋ฅธ ์๋น์ค ๋ด๋ถ ๊ตฌํ์ importํ์ง ์๋๋ค.
- ๊ณต์ ์ฝ๋๋ ๊ธฐ๋ณธ ๊ธ์ง๋ค.
- cross-service ์ฐ๊ฒฐ์ ๊ณ์ฝ ๋ฌธ์์ API ๊ธฐ์ค์ผ๋ก๋ง ๊ด๋ฆฌํ๋ค.
๋ก์ปฌ clone/update ๊ท์น:
- ๋ฃจํธ๋ฅผ ์๋ก cloneํ๋ฉด
development/*๊ตฌํ ์ฝ๋๊ฐ root checkout์ ๊ฐ์ด ํฌํจ๋๋ค. - root pull ์ดํ ๋ณ๋
git submodule update์ ์ฐจ๋ ์๋ค. - ๊ตฌํ ์ฝ๋๋ root worktree์ ํด๋น
development/*slice์์ ์์ ํ๋ค. - root๋ platform docs์ runtime source๋ฅผ ํจ๊ป ์ถ์ ํ์ง๋ง, ์๋น์ค ๊ฒฝ๊ณ๋ docs/contracts ๊ธฐ์ค์ผ๋ก ์ ์งํ๋ค.
ํ์ฌ ๋ชฉํ repo ์ด๋ฆ ๊ท์น:
integration-*- ๋ก์ปฌ ํตํฉ ์คํ ์ ธ
infra-*- ํน์ runtime slice์ ALB, ECS, Route53, CDK deploy๋ฅผ ์์ ํ๋ ์ ์ฉ infra repo
runtime-*- production runtime release control plane ๋๋ runtime shape owner
edge-*- gateway, edge routing
front-*- ์ฌ์ฉ์ UI
service-*- ๋ฐฑ์๋ ์๋น์ค
์ญํ suffix ๊ท์น:
accessprofileregistryassignmentoperations-viewhublistenerdead-letter
ํ์ฌ root monorepo์ development/ tree์์ ์ ์งํ๋ ํ์ source slice๋ ์๋์ ๊ฐ๋ค.
runtime-prod-releaseruntime-prod-platformedge-api-gatewayfront-web-consolefront-driver-appservice-organization-registryservice-account-accessservice-driver-profileservice-personnel-document-registryservice-attendance-registryservice-delivery-recordservice-dispatch-registryservice-dispatch-operations-viewservice-region-registryservice-region-analyticsservice-announcement-registryservice-support-registryservice-notification-hubservice-vehicle-registryservice-vehicle-assignmentservice-vehicle-operations-viewservice-driver-operations-viewservice-terminal-registryservice-telemetry-hubservice-telemetry-listenerservice-telemetry-dead-letterservice-settlement-registryservice-settlement-payrollservice-settlement-operations-viewservice-settlement-inquiry
์๋ repo๋ค์ root development/ whitelist ๋ฐ๊นฅ์ผ๋ก ๋๋ค.
- local stack support repo
- legacy infra repo
- bridge lane / historical support repo
ํ์ฌ application repo์ ๋ณ๋๋ก, production runtime cutover๋ฅผ ์ํด ์๋ runtime repo ์ด๋ฆ์ active target์ผ๋ก ์ ์งํ๋ค.
runtime-prod-releaseruntime-prod-platform
์ด ์ด๋ฆ๋ค์ ์๋ฏธ๋ ์๋์ ๊ฐ๋ค.
runtime-prod-release- production rollout control plane
- release intent, rollout plan, SSM dispatch, smoke, rollback evidence owner
runtime-prod-platform- production EC2 runtime shape and canonical inventory owner
- plain root-tracked source slice๋ก ๋ฑ๋ก๋ ๋์
root development/ whitelist ๋ณ๊ฒฝ์ ์๋ ๋ ๋ฌธ์์์ ๋จผ์ ์ ๋ณธ์ ๋ฐ๊พผ ๋ค์๋ง ํ๋ค.
repo-map.mddocs/mappings/current-runtime-inventory.md
WORKSPACE.md์ ๋ถ๋ถ ๋ชฉ๋ก๋ง ๋ณด๊ณ source slice๋ฅผ ์ง์ฐ์ง ์๋๋ค. root source visibility๋ whitelist ๊ธฐ์ค์ผ๋ก๋ง ์ ์งํ๊ณ , support/legacy repo๋ root ๋ฐ๊นฅ์ผ๋ก ๋๋ค.
- ์๋ก์ด ์๋น์ค๋ ๊ตฌ์กฐ ๋ณ๊ฒฝ์ ๋จผ์
docs/์ ๋ฐ์ํ๋ค. development/slice ์์ README๋ slice ์ฌ์ฉ๋ฒ๊ณผ ์ด์ ๋ฉ๋ชจ๋ง ๋ด๊ณ , ์ํคํ ์ฒ/๊ฒฝ๊ณ/๋ฐํ์ ์ ๋ณธ์docs/๋ฅผ ๊ฐ๋ฆฌํจ๋ค.- ๋ก์ปฌ ํตํฉ ์คํ ์์ฐ์ root
development/whitelist ๋ฐ๊นฅ์ ๋ณ๋ integration repo๊ฐ ์์ ํ๋ค. settlement์ฒ๋ผ ์์ง ๋ ๋ถํด๋ ์์ญ์ ๊ธฐ์กด ํด๋๋ฅผ ๊ทธ๋๋ก ์น๊ฒฉํ์ง ์๋๋ค.- ํ์ฌ runtime naming, compose service, gateway prefix๋
docs/mappings/current-runtime-inventory.md๋ฅผ ๋จผ์ ๋ณธ๋ค. docs/rollout/plans/๋ active plan only๋ค. ์๋ฃ๋ rollout artifact๋docs/archive/historical/rollout/๋ก ์ด๋ํ๋ค.- archive๋ ๋ฌธ์ ์ ์ฉ์ด๋ค. ์ฝ๋์ runtime ์์ฐ์ archive๋ก ๋ณด๋ด์ง ์๋๋ค.
- slice-local
AGENTS.md๋ ์์ธ ๊ท์น์ด ๋ง์ slice์๋ง ๋๋ค. ํ์ฌ ํ์ฉ ๋ฒ์๋ ํ๋ซํผ ๋ฃจํธ์development/edge-api-gateway/๊น์ง๋ค. development/infra-*slice๋ platform-specific runtime infra๋ง ์์ ํ๋ค. app code, shared library, cross-domain catch-all infra slice๋ก ํค์ฐ์ง ์๋๋ค.
ํ์ฌ ์์ ์ true monorepo umbrella migration in progress ์ํ๋ค.
docs/๋ platform source of truth๋ค.- root whitelist์ ํฌํจ๋
development/*slice๋ root-tracked source๋ก ์ ํํ๋ค. - ๋ฃจํธ๋ whitelist ๋์ source slice๋ฅผ ์ง์ ์ถ์ ํ๋ค.
- active implementation source๋ root monorepo ์์
development/*๋ค. - old
MSA-Server/services์๋ direct runtime source๊ฐ ๋ ์ด์ ๋จ์ ์์ง ์๋ค.
์ด ๋ฃจํธ๋ ์๋๋ฅผ ์ง์ ์์ ํ์ง ์๋๋ค.
- ๊ณต์ฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ
- root
development/whitelist ๋ฐ support/legacy runtime - build artifact
- node_modules, venv, generated runtime output
- The active
clever-msa-platformroot is the true monorepo umbrella for platform docs, contracts, rollout, and the whitelisteddevelopment/*source slices. - Runtime implementation code under
development/is owned and tracked by the root repo. - The root GitHub view must expose only the approved whitelist:
front-web-console,front-driver-app,edge-api-gateway,runtime-prod-release,runtime-prod-platform, and activeservice-*slices. - Slice implementation ownership stays with the slice boundary even though Git ownership is now root-level.
- New root-visible
development/*source slices must be added to the whitelist and tracked by the root repo from day one.