build(controlplane): remove dead MEMORY_V2_CUTOVER env from tenant user-data (post-A3) #1811

Closed
opened 2026-05-24 23:00:38 +00:00 by hongming · 0 comments
Owner

Summary

molecule-controlplane/internal/provisioner/ec2.go:2232 still injects -e MEMORY_V2_CUTOVER='true' \ into the tenant docker-run command. Post-#1809 (Phase A3 in molecule-core, 2026-05-24) the entrypoint no longer reads this variable — the deprecation shim that bridged it to MEMORY_PLUGIN_URL was removed. The line is now literal dead text in user-data.

No production impact (it's just a no-op env var on the tenant container), but it's the last lingering reference to the v1 deprecation shim across both repos.

Reproduction

grep -n MEMORY_V2_CUTOVER ~/Documents/GitHub/molecule-controlplane/internal/provisioner/ec2.go
# 2232:  -e MEMORY_V2_CUTOVER='true' \

Entrypoint side that no longer cares (workspace-server post-A3):

grep -n MEMORY_V2_CUTOVER workspace-server/entrypoint-tenant.sh
# (no matches)

Fix

Remove the single line -e MEMORY_V2_CUTOVER='true' \ from internal/provisioner/ec2.go. Add a brief comment noting the removal references #1809 / Phase A3.

Acceptance

  • Line removed from controlplane ec2.go
  • CI/tests green on molecule-controlplane
  • After CP redeploy, a fresh tenant boot doesn't include the env var in docker inspect molecule-tenant

Discovered during

2026-05-24 memory-system migration session, called out in #1809 PR body as a follow-up.

## Summary `molecule-controlplane/internal/provisioner/ec2.go:2232` still injects `-e MEMORY_V2_CUTOVER='true' \` into the tenant docker-run command. Post-#1809 (Phase A3 in molecule-core, 2026-05-24) the entrypoint no longer reads this variable — the deprecation shim that bridged it to `MEMORY_PLUGIN_URL` was removed. The line is now literal dead text in user-data. No production impact (it's just a no-op env var on the tenant container), but it's the last lingering reference to the v1 deprecation shim across both repos. ## Reproduction ``` grep -n MEMORY_V2_CUTOVER ~/Documents/GitHub/molecule-controlplane/internal/provisioner/ec2.go # 2232: -e MEMORY_V2_CUTOVER='true' \ ``` Entrypoint side that no longer cares (workspace-server post-A3): ``` grep -n MEMORY_V2_CUTOVER workspace-server/entrypoint-tenant.sh # (no matches) ``` ## Fix Remove the single line `-e MEMORY_V2_CUTOVER='true' \` from `internal/provisioner/ec2.go`. Add a brief comment noting the removal references #1809 / Phase A3. ## Acceptance - [ ] Line removed from controlplane ec2.go - [ ] CI/tests green on molecule-controlplane - [ ] After CP redeploy, a fresh tenant boot doesn't include the env var in `docker inspect molecule-tenant` ## Discovered during 2026-05-24 memory-system migration session, called out in #1809 PR body as a follow-up.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1811