docs(pending-changes): 提案——認證儲存搬回 D1/KV(撤 D61 的儲存層決定,留其明顯失敗語意)
arcrun-rag#99 止血修法(安裝精靈傳 OAuth token 給 cypher 建第一個帳號)只解一格, 之後的寫入(換密碼/加使用者/存金鑰)仍永久 writable:false,是留債。 查證(讀碼+讀本機重打的 .worker-builds/manifest.json,非猜測):D61 想解的病根 (重裝時 binding 被照名字重新指到新建空資源)已在 2026-08-13 被更通用的 shared/resource-rule(Arcrun#97)解掉——SESSIONS_KV、KBDB 的 D1 都在 cypher 的 requires 清單裡,且 runInstall:1762 每次安裝/更新都會走這條規則。技術前提成立。 提案:認證資料搬回 D1/KV(走 binding,零外部 CF token、零過期、零新 OAuth scope、 零手動步驟),保留 D61 加的三個明顯失敗機制。附影響分析、遷移考量、信心水位 (靜態推論,未動態實測)、D84 三段式驗法(③ uninstall 目前做不到,如實標記)。 ⏸ 等 leo/總管 confirm,本 commit 不動任何架構程式碼。 順手修:writeAuthStore 的錯誤訊息移除誤導的「/ CF_ACCOUNT_ID」(已查證全新實例 一定有這個 var,installer worker.js:1354 無條件注入,列兩項只會讓下一個人白工)。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"built_for": "arcrun-tier2-worker-artifacts",
|
||||
"generated_at": "2026-08-14T03:45:54.247Z",
|
||||
"repo_head": "c3856470ad5616b55aff846839581c15ed0975ed",
|
||||
"generated_at": "2026-08-14T04:06:12.523Z",
|
||||
"repo_head": "ca1ed2aaf6525df247e8bbac5277bb77dc78ba6b",
|
||||
"repo_dirty": true,
|
||||
"workers": [
|
||||
{
|
||||
"name": "arcrun-cypher-executor",
|
||||
"source_dir": "cypher-executor",
|
||||
"source_commit": "b223a698844be289c1b01f99eb34a8e2ac85bb74",
|
||||
"source_commit": "ca1ed2aaf6525df247e8bbac5277bb77dc78ba6b",
|
||||
"main_module": "worker.mjs",
|
||||
"main_file": "arcrun-cypher-executor/worker.mjs",
|
||||
"js_bytes": 588919,
|
||||
"content_sha256": "d28f500a0d70f6e9364958dd7b4d446ceb7f3ce96584d6ef509d286fc2e86e86",
|
||||
"js_bytes": 589408,
|
||||
"content_sha256": "2c2fa5e2e0240ea27da424d543091b02d61b36ecc37310ca513220fe60c6096a",
|
||||
"modules": [],
|
||||
"compat_date": "2025-02-19",
|
||||
"compat_flags": [
|
||||
|
||||
Reference in New Issue
Block a user