GitOps v2 Design Anchor
This directory freezes the GitOps v2 control-plane boundary before the full cutover.
Scope
- State moves out of
ljwx-deployintoljwx-release-state. ljwx-release-statebecomes the only writer for runtime state.ljwx-deployremains the only writer for deploy overlays and Argo-owned desired state.- Service repositories publish facts and requests only; they must not mutate deploy state directly.
Phase 0 Decisions
- Generated service workflows default to
auto_merge_pr=false. - Generated service workflows require an executable
ci/validate.sh. - Legacy promoter/smoke CronJobs are suspended.
release/queue.yamlis retained only as an empty compatibility file for old references.
Target Object Model
EventReleaseBundleReleaseRequestDeployResolutionReleaseResult
Temporary Boundary During Transition
- New v2 schema work starts in
/root/codes/ljwx-release-state/schemas/. - Any new behavior added during the transition must preserve the single-writer destination:
- runtime state ->
ljwx-release-state - deploy mutation ->
ljwx-deploy
- runtime state ->
Follow-up Implementation Order
- Shadow intake into
ljwx-release-state - Shadow request -> resolution generation
- Deploy-controller cutover
- Prod-controller cutover
- Legacy queue/evidence cleanup
Current Shadow Tooling
ljwx-release-state/scripts/intake_shadow.py- Persists
Event,ReleaseBundle, andReleaseRequest
- Persists
ljwx-release-state/scripts/state_controller_shadow.py- Persists
DeployResolution
- Persists
ljwx-deploy/scripts/gitops_v2/render_shadow_diff.py- Renders overlay diffs from
DeployResolutionwithout mutatingljwx-deploy
- Renders overlay diffs from
ljwx-deploy/scripts/gitops_v2/apply_resolutions.py- Applies
DeployResolutioninto deploy overlays
- Applies
ljwx-deploy/scripts/gitops_v2/copy_resolution_images.py- Copies prod-target images into production Harbor before overlay commit
ljwx-deploy/scripts/gitops_v2/purge_legacy_runtime_state.py- Dry-run / apply tool for deleting legacy
queue/evidencedirty state after cutover
- Dry-run / apply tool for deleting legacy