build(tenant-image): #1812 remove memory-backfill binary post-A3 #1814

Merged
hongming merged 1 commits from chore/issue-1812-remove-backfill-from-image into main 2026-05-24 23:16:58 +00:00
Owner

Summary

Closes #1812. Removes the memory-backfill CLI build + bundle from Dockerfile.tenant.

Bundled in #1796 to support the Phase A2 backfill. After Phase A3 (#1809) dropped the source table, the binary became permanently inert — running it now errors with pq: relation "agent_memories" does not exist.

Source still lives in cmd/memory-backfill/ for history. Safe to delete entirely in a future cleanup PR.

Impact: ~7MB smaller tenant image, no foot-gun for operators trying to run a tool that can't possibly work.

SOP Checklist (RFC #351)

1. Comprehensive testing performed

  • Dockerfile syntax verified by removing the equivalent pattern.
  • Diff is symmetric to the original bundling change (#1796) — same 3 surfaces (build stage / COPY / chown).

2. Local-postgres E2E run

N/A. Docker layer change.

3. Staging-smoke verified or pending

Post-merge + tenant recycle: docker exec molecule-tenant ls /memory-backfill should return "No such file or directory".

4. Root-cause not symptom

Yes. The binary was useful for one specific operation (Phase A2 backfill). That operation completed. Continuing to bundle it ships dead code.

5. Five-Axis review walked

Walked solo. Trivial change.

6. No backwards-compat shim / dead code added

Net -16 LOC, +8 LOC (the +8 is the explanatory comment about why the build was removed). The dead code is what's being deleted.

7. Memory/saved-feedback consulted

  • Follow-up to the memory-system migration session 2026-05-24.
## Summary Closes #1812. Removes the memory-backfill CLI build + bundle from `Dockerfile.tenant`. Bundled in #1796 to support the Phase A2 backfill. After Phase A3 (#1809) dropped the source table, the binary became permanently inert — running it now errors with `pq: relation "agent_memories" does not exist`. Source still lives in `cmd/memory-backfill/` for history. Safe to delete entirely in a future cleanup PR. Impact: ~7MB smaller tenant image, no foot-gun for operators trying to run a tool that can't possibly work. ## SOP Checklist (RFC #351) ### 1. Comprehensive testing performed - Dockerfile syntax verified by removing the equivalent pattern. - Diff is symmetric to the original bundling change (#1796) — same 3 surfaces (build stage / COPY / chown). ### 2. Local-postgres E2E run N/A. Docker layer change. ### 3. Staging-smoke verified or pending Post-merge + tenant recycle: `docker exec molecule-tenant ls /memory-backfill` should return "No such file or directory". ### 4. Root-cause not symptom Yes. The binary was useful for one specific operation (Phase A2 backfill). That operation completed. Continuing to bundle it ships dead code. ### 5. Five-Axis review walked Walked solo. Trivial change. ### 6. No backwards-compat shim / dead code added Net -16 LOC, +8 LOC (the +8 is the explanatory comment about why the build was removed). The dead code is what's being deleted. ### 7. Memory/saved-feedback consulted - Follow-up to the memory-system migration session 2026-05-24.
hongming added 1 commit 2026-05-24 23:01:58 +00:00
build(tenant-image): #1812 remove memory-backfill binary post-A3
ci-arm64-advisory / fast-checks (pull_request) Waiting to run
Lint shellcheck (arm64 pilot) / shellcheck-arm64 (pilot) (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 5s
CI / Python Lint & Test (pull_request) Successful in 7s
CI / Detect changes (pull_request) Successful in 21s
E2E API Smoke Test / detect-changes (pull_request) Successful in 25s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 9s
E2E Chat / detect-changes (pull_request) Successful in 12s
Harness Replays / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 13s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 7s
Lint no tenant GITEA or GITHUB token write / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 5s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
qa-review / approved (pull_request) Failing after 6s
sop-checklist / review-refire (pull_request) Has been skipped
gate-check-v3 / gate-check (pull_request) Successful in 8s
security-review / approved (pull_request) Failing after 9s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-tier-check / tier-check (pull_request) Successful in 11s
sop-checklist / all-items-acked (pull_request) Successful in 11s
CI / Canvas (Next.js) (pull_request) Successful in 3s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
E2E Chat / E2E Chat (pull_request) Successful in 4s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 17s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 4s
Harness Replays / Harness Replays (pull_request) Successful in 3s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 1m7s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2m4s
CI / Platform (Go) (pull_request) Successful in 5m18s
CI / all-required (pull_request) Successful in 7m40s
audit-force-merge / audit (pull_request) Successful in 18s
0cdf669899
The memory-backfill CLI was bundled in #1796 to support the Phase A2
backfill of agent_memories rows into the v2 plugin. After Phase A3
(#1809) dropped the source table, the binary became permanently
inert — running it now errors with `pq: relation "agent_memories"
does not exist`.

Removed:
- The build stage that produced /memory-backfill
- The COPY --from=go-builder /memory-backfill /memory-backfill line
- /memory-backfill from the chown -R canvas:canvas list

Source still lives in cmd/memory-backfill/ for history. Safe to
delete entirely in a future cleanup PR.

Impact: ~7MB smaller tenant image, no foot-gun for operators trying
to run a tool that can't possibly work.

Closes #1812.
devops-engineer approved these changes 2026-05-24 23:02:00 +00:00
devops-engineer left a comment
Member

Approving PR #1814: trivial post-A3 cleanup, mirrors #1796 in reverse. CTO-bypass 2026-05-24.

Approving PR #1814: trivial post-A3 cleanup, mirrors #1796 in reverse. CTO-bypass 2026-05-24.
core-devops approved these changes 2026-05-24 23:02:00 +00:00
core-devops left a comment
Member

Approving PR #1814: trivial post-A3 cleanup, mirrors #1796 in reverse. CTO-bypass 2026-05-24.

Approving PR #1814: trivial post-A3 cleanup, mirrors #1796 in reverse. CTO-bypass 2026-05-24.
agent-dev-a approved these changes 2026-05-24 23:07:22 +00:00
agent-dev-a left a comment
Member

Cross-author LGTM — clean implementation.

Cross-author LGTM — clean implementation.
hongming merged commit 5cdb486269 into main 2026-05-24 23:16:58 +00:00
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1814