U4: storage-migrate tool, switch/drill runbook, baseline ratchet (pin #144/#145/#65, core 452daf3) #337

Merged
weichen merged 10 commits from feature/collab-storage-u4-migrator into main 2026-10-11 09:15:16 +00:00
Owner

Plan U4/R7, continuation of the user-approved transformation.

  • backend PR #144 (storage-migrate: inventory/backup/migrate; migration identity and same-snapshot-only resume; foreign/non-empty/unknown-owner refusals; per-table counts and PK-ordered hash-chain checksums with symmetric bool normalization; serial advance; generated columns and FTS shadow tables excluded; secrets never in reports) + PR #145 (surface tables added to the copy list after the coverage guard caught PR #143 new tables).
  • documents PR #65: runbook section 10 - commands, identity/resume rules, verification semantics, authorized-window switch sequence.
  • Dev: make build emits bin/storage-migrate; architecture baseline ratcheted for surfacesvc (edges already merged in backend #143) and stale runmgr edge dropped; modules/core pinned to 452daf3 matching backend internal pin (unblocked test-pins).

Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (migrator suite incl. idempotent/resume/refusals twice green), make build - all exit 0. CI GATE first run on this PR. Authorized-window switch NOT opened (requires separate approval).

Task card: .task/feature-collab-storage-u4-migrator.md

Plan U4/R7, continuation of the user-approved transformation. - backend PR #144 (storage-migrate: inventory/backup/migrate; migration identity and same-snapshot-only resume; foreign/non-empty/unknown-owner refusals; per-table counts and PK-ordered hash-chain checksums with symmetric bool normalization; serial advance; generated columns and FTS shadow tables excluded; secrets never in reports) + PR #145 (surface tables added to the copy list after the coverage guard caught PR #143 new tables). - documents PR #65: runbook section 10 - commands, identity/resume rules, verification semantics, authorized-window switch sequence. - Dev: make build emits bin/storage-migrate; architecture baseline ratcheted for surfacesvc (edges already merged in backend #143) and stale runmgr edge dropped; modules/core pinned to 452daf3 matching backend internal pin (unblocked test-pins). Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (migrator suite incl. idempotent/resume/refusals twice green), make build - all exit 0. CI GATE first run on this PR. Authorized-window switch NOT opened (requires separate approval). Task card: .task/feature-collab-storage-u4-migrator.md
weichen added 7 commits 2026-10-11 08:40:10 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-collab-storage-u4-migrator.md; R0=80a518628c526fd6ddece4abeb707ab4bb0b5618.

Impact: task metadata only; the feature workspace starts at 80a518628c.

Refs: .task/feature-collab-storage-u4-migrator.md
Why: the parent must pin the merged component SHAs for the combined build and CI gates.

Evidence: backend origin-main merges of #144 (storage-migrate) and #145 (surface tables in copy list); documents origin-main merge of #65 (runbook section 10).

Impact: gitlink updates only.

Refs: backend PR #144, #145; documents PR #65.
Why: the U4 managed migration entry must ship with make build so operators and CI get the tool.

Evidence: make build emits both binaries; migrator suite green on SQLite and real PostgreSQL.

Impact: build target output adds bin/storage-migrate; no test-path change.

Refs: backend PR #144; runbook section 10.
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=80a518628c526fd6ddece4abeb707ab4bb0b5618; candidate=3a07bb6b4ee0d205aaa7e9bebd49739416dabede.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u4-migrator.md
Why: backend PR #143 added surfacesvc with app/server/store edges already merged into component main; the Dev baseline must record them (lint failed after task-sync). runmgr->cmdbus no longer exists in code.

Evidence: lint-boundaries.sh green after the update; edges match the merged backend main exactly.

Impact: baseline bookkeeping only; no dependency change made by this task.

Refs: backend PR #143; Dev U4 task.
Why: backend main pins deps/agent-system-core at 452daf3 (Surface types, core PR #25); Dev's top-level core gitlink lagged at a253a40, failing make test-pins after task-sync.

Evidence: check-pins green after the bump; core origin-main tip is 452daf3.

Impact: gitlink bump only.

Refs: core PR #25; backend PR #143.
Record the U4 delivery state and evidence in the task card
ci / test (pull_request) Successful in 2m31s
ci / test-pg (pull_request) Successful in 53s
e8a79d20f8
Why: stage review needs results, stage verdicts and the three evidence segments in the card before the PR.

Evidence: make test / test-backend-pg (real services) / make build all exit 0 via the evidence tool.

Impact: task metadata only.

Refs: backend PR #144, #145; documents PR #65.
weichen added 1 commit 2026-10-11 08:40:19 +00:00
Fill the task record PR link
ci / test-pg (pull_request) Successful in 57s
ci / test (pull_request) Successful in 2m21s
b8a510d374
Why: card and PR description are one document; record the PR link before merge.

Evidence: Dev PR #337 created via Gitea API.

Impact: task metadata only.

Refs: PR #337.
weichen added 2 commits 2026-10-11 08:57:52 +00:00
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=b3b48f5efa2a6a25f16f6413d8b9c89715f22960.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
Record the sync checkpoint
ci / test (pull_request) Successful in 2m13s
ci / test-pg (pull_request) Successful in 55s
3d5bf3792c
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=b3b48f5efa2a6a25f16f6413d8b9c89715f22960; candidate=4fd2c8ce32d62c483ff543a1ad17555fda925ee8.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u4-migrator.md
weichen merged commit 0bda404ac0 into main 2026-10-11 09:15:16 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Dev#337