U5 core: execution leases with epoch fencing and persistent run commands (pin #151/#152) #352

Merged
weichen merged 27 commits from feature/collab-storage-u5-ownership into main 2026-10-11 15:30:33 +00:00
Owner

Plan U5 core slice (KTD4/KTD5, R4/R10), continuation toward completion.

  • backend PR #151: v23 migration (conversation_executions + run_commands); lease claim with monotonic epoch on takeover; in-transaction fenced settle (stale owners cannot commit, run unchanged, run.fenced event); persistent command inbox - cancel cascades locally or closes out at DB level, HITL revalidates the gate and rejects expired explicitly; commands consumed only by the current execution owner (SKIP LOCKED claim, exactly-once); server cancel/HITL fall back to command enqueue with 202; app wires host:addr instance identity and the consumer loop.
  • backend PR #152: internal core pin aligned with Dev modules/core.

Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (lease and multi-instance suites green twice - same-conversation contention 409, stale-owner settle fenced with run unchanged, cross-instance cancel consumed exactly once, non-owner does not consume), make build - all exit 0. CI GATE first run on this PR.

Honest boundaries: dual-Manager shared-store tests (equivalent storage view of two processes); CI-grade two-real-process isolation and the same-transaction outbox remain open before multi-instance writes are declared open.

Task card: .task/feature-collab-storage-u5-ownership.md

Plan U5 core slice (KTD4/KTD5, R4/R10), continuation toward completion. - backend PR #151: v23 migration (conversation_executions + run_commands); lease claim with monotonic epoch on takeover; in-transaction fenced settle (stale owners cannot commit, run unchanged, run.fenced event); persistent command inbox - cancel cascades locally or closes out at DB level, HITL revalidates the gate and rejects expired explicitly; commands consumed only by the current execution owner (SKIP LOCKED claim, exactly-once); server cancel/HITL fall back to command enqueue with 202; app wires host:addr instance identity and the consumer loop. - backend PR #152: internal core pin aligned with Dev modules/core. Evidence (SELF via evidence tool in the task card): make test, make test-backend-pg against isolated real PostgreSQL 18.6 + Redis (lease and multi-instance suites green twice - same-conversation contention 409, stale-owner settle fenced with run unchanged, cross-instance cancel consumed exactly once, non-owner does not consume), make build - all exit 0. CI GATE first run on this PR. Honest boundaries: dual-Manager shared-store tests (equivalent storage view of two processes); CI-grade two-real-process isolation and the same-transaction outbox remain open before multi-instance writes are declared open. Task card: .task/feature-collab-storage-u5-ownership.md
weichen added 7 commits 2026-10-11 12:34:07 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-collab-storage-u5-ownership.md; R0=0f589ed7ff5c1dc63a9700906fe9138fe607d85c.

Impact: task metadata only; the feature workspace starts at 0f589ed7ff.

Refs: .task/feature-collab-storage-u5-ownership.md
Why: the parent must pin the merged component SHA for combined build and CI.

Evidence: backend origin-main merge of #151 fetched post-merge.

Impact: gitlink only.

Refs: backend PR #151.
Why: the evidence tool appends must be committed before task-sync can proceed.

Evidence: three receipt segments appended by make evidence.

Impact: task metadata only.

Refs: backend PR #151.
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=0f589ed7ff5c1dc63a9700906fe9138fe607d85c; candidate=8ef19cd3479c89ccb0232f611450c2435843539d.

Impact: task metadata only.

Refs: .task/feature-collab-storage-u5-ownership.md
Why: after merging the U5 ownership PR and the core-pin alignment, the task branch carries both; Dev pins the merged tip with the internal core pin at 7a98a7e.

Evidence: backend task branch merged origin/main, builds green, internal core checkout aligned.

Impact: gitlink + task card evidence only.

Refs: backend PR #151, #152.
Why: PR #152 merged the internal core-pin alignment after #151; the task branch must pin the final combination.

Evidence: backend origin-main tip carries internal pin 7a98a7e matching Dev modules/core.

Impact: gitlink only.

Refs: backend PR #151, #152.
Record the U5 delivery state and evidence in the task card
ci / test (pull_request) Failing after 1s
ci / test-pg (pull_request) Failing after 1s
f0f8d9f863
Why: stage review needs results and evidence in the card before the PR.

Evidence: make test / test-backend-pg / make build exit 0 via the evidence tool.

Impact: task metadata only.

Refs: backend PR #151, #152.
weichen added 1 commit 2026-10-11 12:34:21 +00:00
Fill the task record PR link
ci / test (pull_request) Failing after 1s
ci / test-pg (pull_request) Failing after 0s
f9092a61f8
Why: card and PR description are one document.

Evidence: Dev PR #352 created via Gitea API.

Impact: task metadata only.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:14:19 +00:00
Retrigger CI after transient runner-to-server connect failure
ci / test-pg (pull_request) Failing after 1s
ci / test (pull_request) Failing after 1s
3ef4545e0a
Why: job 2555 failed at checkout - runner could not reach 127.0.0.1:3000 (Failed to connect); no code or test failure.

Evidence: job 2555 log tail 'Checkout refused: ... exit status 128'.

Impact: empty commit, no file change.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:24:56 +00:00
Retrigger CI (runner connectivity burst 1)
ci / test-pg (pull_request) Failing after 12m11s
ci / test (pull_request) Failing after 12m11s
9824ca900b
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:35:14 +00:00
Retrigger CI (runner connectivity burst 2)
ci / test-pg (pull_request) Successful in 1m25s
ci / test (pull_request) Successful in 2m57s
a2fe55580f
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:40:56 +00:00
Retrigger CI (runner connectivity burst 3)
ci / test-pg (pull_request) Successful in 2m18s
ci / test (pull_request) Successful in 3m26s
c1eec8db41
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:46:37 +00:00
Retrigger CI (runner connectivity burst 4)
ci / test-pg (pull_request) Successful in 1m13s
ci / test (pull_request) Successful in 3m7s
d9046fbb06
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:52:18 +00:00
Retrigger CI (runner connectivity burst 5)
ci / test-pg (pull_request) Successful in 1m26s
ci / test (pull_request) Successful in 3m30s
19d516122f
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 13:58:00 +00:00
Retrigger CI (runner connectivity burst 6)
ci / test-pg (pull_request) Successful in 1m34s
ci / test (pull_request) Successful in 3m42s
bd9e171fee
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:04:36 +00:00
Retrigger CI (runner connectivity burst 7)
ci / test-pg (pull_request) Successful in 1m29s
ci / test (pull_request) Successful in 3m20s
51d346a600
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:10:19 +00:00
Retrigger CI (runner connectivity burst 8)
ci / test-pg (pull_request) Successful in 1m26s
ci / test (pull_request) Successful in 3m16s
201d881a68
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:16:02 +00:00
Retrigger CI (runner connectivity burst 9)
ci / test-pg (pull_request) Failing after 2m12s
ci / test (pull_request) Successful in 4m11s
2812680545
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:20:47 +00:00
Retrigger CI (runner connectivity burst 10)
ci / test-pg (pull_request) Successful in 2m28s
ci / test (pull_request) Successful in 3m41s
4e3be0e557
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:27:25 +00:00
Retrigger CI (runner connectivity burst 11)
ci / test-pg (pull_request) Successful in 1m24s
ci / test (pull_request) Successful in 4m53s
ad041ed68b
Why: runner cannot reach the server at checkout (Failed to connect 127.0.0.1:3000) - infrastructure-wide, affecting adjacent runs too.

Evidence: jobs 2555/2580/2581 checkout failures; adjacent heads 1370ef24/178a052e failing identically.

Impact: empty commit.

Refs: PR #352.
weichen added 1 commit 2026-10-11 14:54:00 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m34s
ci / test (pull_request) Successful in 3m16s
447dde575f
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=5d6d1d2e64bdc27fa98e9bccdc78bc4edf2956eb.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync

# Conflicts:
#	modules/backend
weichen added 1 commit 2026-10-11 14:57:44 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m29s
ci / test (pull_request) Successful in 3m32s
67071f0a21
weichen added 1 commit 2026-10-11 15:01:26 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m45s
ci / test (pull_request) Successful in 3m50s
7368e85ec1
weichen added 1 commit 2026-10-11 15:05:30 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m31s
ci / test (pull_request) Successful in 4m21s
544f1a4795
weichen added 1 commit 2026-10-11 15:10:05 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m27s
ci / test (pull_request) Successful in 13m21s
23c2818a49
weichen added 1 commit 2026-10-11 15:20:56 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m16s
ci / test (pull_request) Successful in 3m59s
57bf5394f4
weichen added 1 commit 2026-10-11 15:25:01 +00:00
Merge authoritative main into the task branch
ci / test-pg (pull_request) Successful in 1m22s
ci / test (pull_request) Successful in 5m21s
00bab91b53
weichen merged commit 5cbb38e788 into main 2026-10-11 15:30:33 +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#352