fix(kbdb): 三元組版標庫批次補存量+對外通道(Arcrun#87 二次收尾) #114
Reference in New Issue
Block a user
Delete Branch "fix/triplet-library-batch-backfill-87"
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?
補 Arcrun#87 缺的批次能力:藏書地圖讀的是三元組 record 自己的 library slot,Arcrun#85 的 POST /entries/backfill-library 補的是 entries.metadata_json.library(不同存放處,補了地圖依然是 0)。既有通道只有單筆 PATCH /kbdb/records/:id,母體上千筆逐筆呼叫不現實。
新增 backfillTripletLibraryTags + POST /records/backfill-library + cypher proxy 對外通道,安全原則對齊既有 entries 版(呼叫端決定 library+source_prefix、冪等、共用 D69 每日額度、owner_id 必填、沿用既有 updateRecord 不手刻第二套 SQL)。
測試:kbdb 218/218 全綠(新增 5 案);cypher-executor 新增 5 案全過;兩處既有失敗確認 pre-existing(stash 前後一致)。
紅線:未部署、未對 leo21c 執行任何實際 backfill——MCP 工具集沒有 update/patch record 能力,且不可對 leo21c 裸跑 CLI。批次執行留給總管/leo 決定執行方式與時機(
POST /kbdb/records/backfill-librarybody 範例:{library:"arcrun", source_prefix:"gitea:Leo/Arcrun@"},逐庫呼叫直到 GET .../status 回 pending:0)。詳細調查與對照清單見
system-dev/wiki/ops-facts.md「雲端庫↔本機資料夾對照清單+來源標籤設計」段。對應票:Leo/Arcrun#87。View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.