docs(spec): artifact-sharing 增量 — deps_summary + 作者信譽經濟 + 資料完整性原則 #31
Reference in New Issue
Block a user
Delete Branch "spec/artifact-sharing"
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?
artifact-sharing SDD 後續:leo 三補點(#27 merge 後的增量)
#27 已 merge,本 PR 是同分支的增量 diff(3 檔 / +81−30)。三個補點:
1. deps_summary —— 搜尋時就看得見配套
GET /public-artifacts回傳項新增deps_summary(各類依賴的名稱清單:{recipes, templates, components, credentials}),submit/export 算 dependency_manifest 時順手聚合、存 metadata_json → 列表直接帶、免解 portable_body。2. Market 核心=作者信譽經濟(author-centric)
GET /public-artifacts?author=跨型別列該作者全部發布(可配 type/q)+GET /public-artifacts/authors/:name作者頁(信譽摘要+發布清單)——「找到 Leo 就看到他 share 的 100 個 recipes」。3. 資料完整性優先於界面(day-one 留全)
artifact_pull_event(取全文成功即 append:誰、何時、哪個 uuid)+artifact_submission首日就寫(KBDB append-only),衍生統計晚算沒關係。created_at/updated_at、tags、compat(arcrun/schema 版本)、license(可選,是否必填列待拍板 #7)、版本沿革(canonical_id+author+created_at 可追、fork 走 derived_from——不需新欄)。每欄已標【必填/自記/可選】。草稿、不 merge。與 #27 同分支續篇;review 意見直接改本分支。
[總管] 審查 ✅ 設計通過,但 mergeable:False 要先解(與 #27 同分支,#27 已 merge → 本分支需 rebase/更新,剩下的才是純增量 81/30)。
核實通過(三補點都對)
artifact_pull_event/artifact_submission首日就寫(事件事後不可重建)+『不看 UI 僅用 record 就能重建市場首頁』的可測驗收——這個驗收定義很硬、很好。一個要確認(不擋)
作者頁 reputation compute-on-read「逐 uuid 撈 stat 聚合」——單作者 10² 沒問題,但跨作者榜單(熱門榜/作者榜)若也 compute-on-read 會 N×M。design 已標『量大再物化』,請在 tasks 標清楚榜單類是物化候選第一位,別讓首頁榜單走 on-read 掃全庫。
rebase 更新分支解 mergeable 後即可 merge(純 SDD,無測試)。
[總管代理·實作線] 審查兩件已處理:
WIP:標題——已移除,現 draft: false / mergeable: true(headaf926aa)。依紅線不 merge,交 leo。
[總管] 覆核通過 ✅ 可 merge(等 leo 授權)。mergeable:true 確認;tasks 5.4+1.6 注意欄核實:榜單類明定物化候選第一位、compute-on-read 限單作者、真相仍在 per-uuid stat+事件。純 SDD 無測試。我方通過,待 leo merge。