Pin the SQLite activity guard and document its refusals #482

Closed
weichen wants to merge 13 commits from feature/u8-sqlite-instance-guard into main
Owner

Why: Operators need the guard errors and migrate, and the integration pin has to carry the Backend activity lock.

Evidence: Task card .task/feature-u8-sqlite-instance-guard.md holds the precheck receipt, task-sync checkpoint, and SELF go test receipt. GATE is this PR's CI (make test and make build), including the PostgreSQL job. Local PG durability mutation was not run.

Impact: Pins Backend 1f7bcac. docs/svc.md lists the refusal strings. PROJECT.md records the 2026-10-12 approval of the account r2 and recovery r3 additions. scripts/svc.sh is unchanged.

Refs: Merge the Backend PR for feature/u8-sqlite-instance-guard first.

Why: Operators need the guard errors and `migrate`, and the integration pin has to carry the Backend activity lock. Evidence: Task card `.task/feature-u8-sqlite-instance-guard.md` holds the precheck receipt, task-sync checkpoint, and SELF `go test` receipt. GATE is this PR's CI (`make test` and `make build`), including the PostgreSQL job. Local PG durability mutation was not run. Impact: Pins Backend `1f7bcac`. `docs/svc.md` lists the refusal strings. `PROJECT.md` records the 2026-10-12 approval of the account r2 and recovery r3 additions. `scripts/svc.sh` is unchanged. Refs: Merge the Backend PR for `feature/u8-sqlite-instance-guard` first.
weichen added 7 commits 2026-10-12 14:21:24 +00:00
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-u8-sqlite-instance-guard.md; R0=6a494d3977e6557e7bebe0e5bb1c4a12091296e0.

Impact: task metadata only; the feature workspace starts at 6a494d3977.

Refs: .task/feature-u8-sqlite-instance-guard.md
Why: recovery r3 U8 is approved for implementation through a mergeable PR, and the lock, inode and durability rules need a single spec before code.
Evidence: precheck receipt /tmp/u8-sqlite-instance-guard-precheck-2.json (SELF, exit 0, R0 6a494d3977).
Impact: task card and docs only; no runtime change yet.
Refs: docs/recovery/u8-sqlite-instance-guard.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: Operators need the guard error text and the migrate command, and the integration pin has to carry the Backend change. This branch was cut before the identity CLI pin, so the gitlink moves from 8e50977 to 89acd16, which also contains the already merged public identity CLI.
Evidence: SELF go test of the U8 cases in the Backend commit 89acd16. PG durability readback remains NOT_RUN until Dev CI.
Impact: SQLite serve and migrate share one activity lock. docs/svc.md lists the refusal strings. PROJECT.md records the 2026-10-12 approval of the account r2 and recovery r3 additions.
Refs: docs/recovery/u8-sqlite-instance-guard.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: include the current integration baseline before verification.
Evidence: fetched origin/main=$(git rev-parse origin/main).
Impact: integrate upstream changes without rewriting task history. The backend gitlink stays at 89acd16, which already contains the pinned identity CLI acabb85.
Refs: task-sync
Co-authored-by: Cursor <cursoragent@cursor.com>
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=4d362537d0e8755a03b1757b5bad92779a064b33; candidate=70d10d5fdd69414e1bc5b23fe38c5da1006a6b2e.

Impact: task metadata only.

Refs: .task/feature-u8-sqlite-instance-guard.md
Why: the task card has to carry the command output for the SQLite guard tests instead of a hand-copied summary.
Evidence: SELF receipt for go test of instanceguard, store, app, and the migrate command package; exit 0.
Impact: task metadata only.
Refs: .task/feature-u8-sqlite-instance-guard.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Pin the activity-lock fixes and tighten the guard spec
ci / test-pg (pull_request) Failing after 2m17s
ci / test (pull_request) Failing after 2m21s
a0259118f7
Why: the first pin allowed adopt to recreate a missing database and could write the guard record through a lock symlink. The spec now matches the refusal rules from review.
Evidence: Backend 1f7bcac; SELF tests named in that commit.
Impact: Dev gitlink moves from 89acd16 to 1f7bcac. Operators still see the same migrate command.
Refs: docs/recovery/u8-sqlite-instance-guard.md
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 14:21:43 +00:00
Link the U8 task card to its pull requests
ci / test-pg (pull_request) Failing after 1m42s
ci / test (pull_request) Failing after 2m25s
9140b07f75
Why: the card is the delivery record and needs the Backend and Dev pull request URLs.
Evidence: PR creation returned Backend #183 and Dev #482. CI GATE is not recorded yet.
Impact: task metadata only.
Refs: .task/feature-u8-sqlite-instance-guard.md
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 14:57:11 +00:00
Pin the activity-guard CI fixes
ci / test-pg (pull_request) Failing after 2m23s
ci / test (pull_request) Failing after 3m15s
c9191d6e34
Why: the integration pin has to include the copy-list registration and the inode-reuse test fix that CI rejected.
Evidence: Backend 15e7ec5. SELF go test of TestCopyOrderCoversAllFixtureTables and TestDatabaseReplacementRefusedBeforeOpen.
Impact: Dev gitlink moves from 1f7bcac to 15e7ec5.
Refs: Backend pull request 183
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 15:07:36 +00:00
Pin the lock generation and document it
ci / test-pg (pull_request) Successful in 1m59s
ci / test (pull_request) Failing after 2m39s
c811ff1cce
Why: inode reuse let a rebuilt lock pass Bind. The pin and the spec now require a shared lock_gen.
Evidence: Backend ef66bfb. SELF go test of instanceguard, store, and app.
Impact: Dev gitlink moves to ef66bfb. Operators still adopt only after confirming the same instance.
Refs: Backend pull request 183
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 15:32:12 +00:00
Allow the activity-guard package in the architecture baseline
ci / test-pg (pull_request) Successful in 1m51s
ci / test (pull_request) Successful in 4m4s
4464255037
Why: the boundary lint rejects the new app-to-instanceguard and instanceguard-to-store edges that the activity lock needs.
Evidence: SELF bash scripts/lint-boundaries.sh exited 0.
Impact: the allowlist records those two edges. No runtime change.
Refs: Backend pull request 183
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 15:47:05 +00:00
Pin the instance guard after merging backend main
ci / test-pg (pull_request) Successful in 2m11s
ci / test (pull_request) Successful in 5m4s
5841fff1ec
Why: the guard branch has to contain the identity-open and schema-compatibility commits that landed on backend main.
Evidence: backend 167609b merges origin/main and the local package tests passed before that commit.
Impact: the Dev pin moves from ef66bfb to 167609b. CI still has to rerun on this pin.
Refs: modules/backend
Co-authored-by: Cursor <cursoragent@cursor.com>
weichen added 1 commit 2026-10-12 15:47:57 +00:00
Merge origin/main into the instance-guard pin
ci / svc-realcombo (pull_request) Successful in 2m29s
ci / test-pg (pull_request) Successful in 2m47s
ci / test (pull_request) Successful in 5m19s
d5e8d6ab7a
Why: main recorded the r3.1 deployment notes while this branch records the approved U8 scope, and the pull request could not merge until both remained.
Evidence: bash scripts/lint-boundaries.sh printed architecture ok (84 edges) after the merge. Backend pin 167609b already contains backend main.
Impact: the approval text keeps the U8 scope and the rdmcand note. D1-D3 stay separately reviewable.
Refs: PROJECT.md
Co-authored-by: Cursor <cursoragent@cursor.com>
Author
Owner

Dev main 的最终同步、完整 PR CI 与智能体合入目前按唯一调度记录 #518协调;r2 第二轮仍 pending-activation / waiting。最近 #551 在另一已领取窗口内推进 main,该窗口已失效并释放,已在 #518 对账。

本 PR 如要恢复到最终交付,请实际工作区 owner 先在 #518 登记当前 PR/head、原任务授权与阶段结论、依赖/组件、活动写者和就绪时间,再由协调者确认目标窗口;等待期间无需为追 main 反复跑最终 CI。此评论只通知共享目标规则,不接管 #482、不批准其实现或合入,也不修改现有平台保护。

<!-- mq-dev-main-window-coordination-20261014-pr482 --> Dev main 的最终同步、完整 PR CI 与智能体合入目前按[唯一调度记录 #518](https://git-home.u1680832.nyat.app:30319/weichen/Agent-System-Dev/issues/518)协调;r2 第二轮仍 `pending-activation / waiting`。最近 #551 在另一已领取窗口内推进 main,该窗口已失效并释放,已在 #518 对账。 本 PR 如要恢复到最终交付,请实际工作区 owner 先在 #518 登记当前 PR/head、原任务授权与阶段结论、依赖/组件、活动写者和就绪时间,再由协调者确认目标窗口;等待期间无需为追 main 反复跑最终 CI。此评论只通知共享目标规则,不接管 #482、不批准其实现或合入,也不修改现有平台保护。
Author
Owner

Superseded by #615 (merged as ba81d638): U8 re-ported onto current main by fresh agent-exec workers; Backend #210 fast-forwarded to 276dd738 and pinned. Closing without merge.

Superseded by #615 (merged as ba81d638): U8 re-ported onto current main by fresh agent-exec workers; Backend #210 fast-forwarded to 276dd738 and pinned. Closing without merge.
weichen closed this pull request 2026-10-18 10:20:09 +00:00

Pull request closed

This pull request cannot be reopened because the branch was deleted.
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#482