主線成員由相依邊決定,不靠同名里程碑;adopt 別 repo 的票=加相依到 hub 票;帳本落在 InkStoneCo/system-dev(inkstone/ISEP#133) #151
Reference in New Issue
Block a user
Delete Branch "feat/133-members-by-dependency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
【身份】isep-hand/inkstone/ISEP/feat/133-members-by-dependency
票:inkstone/ISEP#133 → comment 6743
改了什麼
leo 2026-09-07:「拆,誰說『同名跨 repo 是 mainline 機制的一部分』,早就定了只有一個 milestone,不同 repo 用指針」。
hooks/lib/mainline.py:collect_members()=hub 里程碑裡的票+hub 票,沿/dependencies邊(跨 repo)收下去;belongs()要同時拿到「掛哪個 milestone」+「誰把它當相依」才准說「不屬於」,只知一半回 None(閘放行);project_roots()給主線檔與帳本共用scripts/mainline:set --hub <票>;adopt別 repo 的票 ⇒ POST 相依到 hub 票(--via可指定成員),沒 hub 票時擋下並給兩條走得通的路,不建同名里程碑;has查/blocks;refresh --members才重收成員(真 Gitea 25 張要 19 秒,SessionStart 成本不變)scripts/ticket:add_dependency()一份(subtask與adopt共用,409 冪等);pick主線組走成員清單、逾期組一個里程碑物件一組;claim的主線判定改看相依hooks/mainline-focus-guard.sh:新鮮查詢問 milestone+/blocks;補收出路明講不要去開同名里程碑scripts/milestone-account:帳本找家用同一把尺,退回原始碼目錄只在它有.git(plugin 快取沒有)驗過什麼
bash hooks/tests/mainline-members-by-dependency.test.sh→ 通過 57 條,失敗 0 條(假 Gitea 照真的回 201/409)bash scripts/test-ticket-pick.sh→ 通過 53 條,失敗 0 條mainline set inkstone/Arcrun#48 --hub inkstone/InkStoneCo#44收到 25 張、5 個 repo,mira#6/ISEP#130/ISEP#140/arcrun-rag#104都在——不必新增任何邊;has四張回「在」;ticket pick --all主線組回Arcrun#197、mira#5寫入那半也真跑過(commit 19face1)
adopt inkstone/ISEP#133(hub=InkStoneCo#44,state 指暫存):POST 成功、/blocks回InkStoneCo#44、清空快取後has靠/blocks判「在」add_dependency()改成先讀/dependencies,邊在就不 POST;假伺服器改照真的回 500;A41 56→57 條/blocks空)版本:待總管定版(改了會被載入的 hook/scripts)。
🤖 Generated with Claude Code
https://claude.ai/code/session_0178ef1fGw3XeZtpN7LaZrm4