2.8 KiB
2.8 KiB
Task: Record first-deployment model and manual schema initialization
Identity
- Task ID: 20260814-deploy-model-reconcile-9b4c2e7f
- Mode: Integration
- Branch: main
- Worktree: /Users/brother7/Documents/AI/NianAIGC
- Base commit:
ff055c972d - Owner: dsh
- Status: Ready for Integration
Scope
- Apply two human decisions from 2026-08-14 to canonical memory and deployment documentation:
- There is no production cutover: the first production deployment runs the ADR-003 split topology (Next.js frontend + Go backend) directly; no legacy production instance, no Node Worker in production.
- Schema initialization is executed manually with the versioned SQL files; the ACK migration Job pod is not deployed.
- Related: the first super administrator is created from
ZHINIAN_BOOTSTRAP_ADMIN_*configuration at Go startup (implemented in task20260814-go-bootstrap-admin-6e2b7d9c); legacy account import is not required.
Intent And Constraints
- Keep the versioned-SQL discipline (RDS-002); only the execution mechanism changes from the one-shot Job to manual execution.
- Do not claim any production validation that has not happened.
- Keep the migration Job manifest on disk, marked deprecated, for optional future automation.
Outcome
- Added
DEP-001to the decision index; movedACK-001to Superseded Decisions; amendedRDS-002execution detail; updated the ADR-003 status to "first production deployment pending". - Rewrote
current-state.mdCurrent Focus, Next Recommended Steps, Open Questions, and Risky Areas around the first-deployment model; recordedff055c9under Integrated Through. - Updated
system-overview.md,module-map.md, anddata-flow.mdto describe the split-topology first deployment and manual schema initialization. - Updated
commitments.md(dropped cutover obligations; added Go deployment artifacts, manual schema init, bootstrap config, and first-rollout validation commitments) andbusiness-rules.md(manual schema execution rule; removed the moot cookie-compatibility question). - Updated deployment guidance in
docs/DEPLOYMENT.md,README.md, andREADME.zh-CN.mdto manual SQL execution and config-driven bootstrap; markeddeploy/ack/migration-job.yamldeprecated with a header comment.
Verification
check_project_docs.pyandcheck_doc_drift.py --task-id 20260814-deploy-model-reconcile-9b4c2e7fpass.npm run deploy:checkpasses with the deprecated manifest comment in place.
Follow-ups
- Build the Go workload deployment artifacts (image, manifests, Ingress split) for the first production deployment.
- Execute the manual schema initialization and role grants against the real RDS before the first rollout.
- Decide whether to delete the deprecated
migration-job.yamllater.
Promotion Candidates
- None beyond what this integration task already applied.