Commit Graph

23 Commits

Author SHA1 Message Date
ship b0a2f84eb4 ship 1.4.29:Arcrun@19c82df 2026-08-09 18:48:12 +08:00
ship 652f261183 ship 1.4.28:Arcrun@19c82df 2026-08-09 15:16:55 +08:00
ship 6878f7afbf ship 1.4.26:Arcrun@ebd4bf5 2026-08-09 13:43:14 +08:00
ship ab4ef01709 ship 1.4.24:Arcrun@466e56b 2026-08-08 23:17:07 +08:00
ship e0b3592ae6 ship 1.4.24:Arcrun@07cc7f5 2026-08-08 21:52:19 +08:00
Leo fc3c3cad06 1.4.24:CORS 自動放行同實例 portal(不再依賴 UI_ORIGINS)+診斷端點+portal 導流文案 2026-08-08 21:15:15 +08:00
Leo 31a6ccf455 staging daemon v0.18.24:dmg+exe 上架,manifest.daemon 同步 2026-08-08 17:16:22 +08:00
Leo 51f84bf4c3 staging 1.4.22: t213 診斷檔雲端半(新端點 GET /portal/daemon/diagnostics)+ portal 按鈕文案改導流
source Arcrun@8447165(93b1140 新端點 + 8447165 portal 文案)
InkStoneCo 總管交辦,走 stage-first 出貨鏈驗收
2026-08-08 13:31:02 +08:00
Leo e91e379530 manifest.source 修正:5388f40 → c7a0b31(同型病當天第二次)
build-bundles 全量重建時仍沿用舊 manifest 的 source。
早上已修過一次(0d49989→5388f40),下午又犯 => 這是腳本的缺陷不是人的疏忽,
該讓 source 由產物推導。已列為待修。
2026-08-07 23:04:33 +08:00
Leo 93c20e938e 1.4.20:今天全部修復一次到位(KV 額度/credential 自癒/檢修孔/靜默回空)
來源 Arcrun@c7a0b31(gitea/main),九筆 commit:
  60688c3 執行紀錄搬離 KV(Evan 事故止血)
  7ba7855 credential 目錄改走 KBDB API
  9344562 embed 自我檢查端點
  83aa1f6 /portal/data/diagnostics 檢修孔聚合端點
  5388f40 設定頁「匯出診斷檔給我們看」按鈕
  ac4fb56 portal 前端文案講人話
  046ceba credential 目錄自癒搬遷(修 youlin 20/20 全敗)
  c7a0b31 補 entries.ts 缺的自癒 hook

出貨前八項複驗(grep 產物,不假設):
  ANALYTICS_KV.put 殘留 0/execution_log 2
  credential 自癒 3/empty_reason 5
  diagnostics 端點 1/檢修孔按鈕 1
  天書詞只在 admin_hint 與 OFF_HINT(用戶欄位 capability_hint 四種全人話)
  manifest release=1.4.20 core=24 顆

真機驗證(youlin 實例):
  第一輪 20 次 17 成功/3 失敗(自癒暖機)
  第二輪 20 次 20 成功/0 失敗
  兩輪共 40 次後 stats: key 663 → 663,增加 0

⚠️ 打包踩到的坑:用 git worktree 打會 0/4 bundled(沒有 .component-builds
的預編 wasm,那是 gitignore 產物)=> 必須用主工作區,且先還原部署注入的 KV id。
2026-08-07 23:03:29 +08:00
Leo 4ba73815bf staging 1.4.18:檢修孔按鈕進 UI bundle(Oscar 按得到了)
build-ui-bundle.mjs 把 console-ui/public 重打進 tier2/ui/index.js。
複驗(grep 產物,不假設):
  「匯出診斷檔給我們看」 1 處
  createObjectURL        1 處(按一下下載一個 JSON 檔)
  /portal/data/diagnostics 3 處
  owner_id 外露          0 處

背景:build-bundles.mjs 只打 4 顆核心(cypher/kbdb/http_request/code),
UI 屬「沿用非本腳本產的 20 顆」不重打 => 只跑 build-bundles 的話
檢修孔前端永遠送不出去。這支要另外跑。
2026-08-07 18:55:36 +08:00
Leo 8eedce55fe manifest.source 修正:0d49989 → 5388f40(宣告要由產物推導)
抓到的缺陷:build-bundles 全量重建時沒有更新 manifest.source,
沿用了 staging repo 裡 07-31 那次留下的舊值
=> 產物實際來自 5388f40,卻宣告成 0d49989。

這是 CP 08-06「版本號手寫=說謊的溫床,凡宣告版本一律由產物推導」
同型病的第二次——上次是版本號,這次是來源 commit。
後果:追「這個產物是哪個 commit 打的」會被誤導。
2026-08-07 18:48:09 +08:00
Leo ea9690692a staging 1.4.17:執行紀錄不再吃 KV 額度(Evan 事故止血)
來源 matrix/arcrun main(60688c3 KV 搬離 + 7ba7855 credential 走 API)。
打包後 grep 複驗(不假設):
  ANALYTICS_KV.put 殘留 = 0   ← 舊行為清乾淨
  execution_log       = 2 處   ← 新行為在 bundle 裡

版本處理:staging manifest 原本沒有 release 欄位,每次重打都從 1.4.0 起算
=> 版本會倒退、安裝器判成不用更新。先對齊 prod 的 1.4.16 再重打 => bump 成 1.4.17。
(這是 stage/prod 又一個漂移,已記入 wiki。)

僅 staging,不影響 prod。
2026-08-07 18:46:14 +08:00
Leo 46651b3348 修 arcrun-rag#10(Arcrun@0d49989):cypher 補 /portal/admin/ai+UI 已輸入態
- tier2/cypher:新增 GET|POST /portal/admin/ai(grep 0→2)——這是「key 從來沒存進去」的真因
- tier2/ui:拔掉寫死 cypher.arcrun.dev fallback(portal+console 兩處,grep 歸 0);
  金鑰欄改 leo 規格「已輸入+修改」唯讀態(不顯示 key)
- manifest 24 顆 sha256 全數重新核對相符(含我手動重建的 ui)
- daemon 仍 v0.15.0,tier1 未變
2026-07-31 19:59:18 +08:00
Leo 6182e39f4b 教材修正重打包(Arcrun@c735b91):MCP instructions 不再說「不支援條件分支」
端到端 haiku 考 0/3、1/3 的斷點在教材不在引擎——MCP instructions 是 AI 一連上就讀到的
最前置教材,卻寫死「沒有 ON_TRUE/ON_FALSE/ON_BRANCH——引擎目前不支援條件分支」,
與實際行為相反(探針實測分支正常)。考生據此判定「不支援」而退回寫 code。

本包變更(產物實查):
- tier2/mcp:舊「不支援條件分支」**歸 0**;新「2026-08-01 起引擎支援」2 處;
  新增「分支跑完怎麼判斷成功」段(走 true 路時 false 路節點不出現=正確行為非失敗)
- publish_component 在產物內**歸 0**(#23 死代碼已 git rm)
- tier1/cypher 未變(本次只動教材與 MCP),core 維持 24、daemon 仍 v0.15.0
2026-07-31 18:39:15 +08:00
Leo 94eb298c17 batch step3/4/5/6 全量重生(Arcrun@eefbed9):步驟5 引擎條件邊+recipe 三層
來源=Arcrun `batch/step3456-20260801`(eefbed9)=step3 最前緣(已含 step4+step6+
t158-t162)合入 step5。**先合流再打包**(bundle 是 worker 粒度,三步同一顆 cypher,
分開建會讓 stage 只拿到一步——08-01 那個坑)。

cypher 產物指紋(步驟5 新增,實查):
  ON_BRANCH 13/ON_TRUE 9/ON_FALSE 11/branch_hint 4
  body_template 8/response_map 8/binding_name 4
步驟3/4/6 迴歸指紋(不得歸零,實查全在):
  trySubstitution 3/input_schema 6/not_found 5/suggestion 2/success_rate 4/bundle_version 1
mcp 教材世代更新:「引擎不支援條件分支」字串歸 0,換成三型分支寫法+branch_hint 指路。

保留未動(本建置腳本不產這兩顆):tier1/code、tier2/ui、daemon 段(仍 v0.15.0,
這批不含新小幫手,leo 不必重下載)。core 條目維持 24。

順手清掉既存污染:上一版 staging 的 tier1/*/index.js 內含建置機器的絕對路徑
(`/Users/youlinhsieh/...`,19 檔命中)=前次以 symlink node_modules 打包的殘留;
本次改為實體複製 node_modules 後重建,路徑回正常相對形式,命中歸 0。
⚠️ 僅 `tier1/code/index.js` 仍有(該檔本腳本不重建、本次未動),留給產它的那條線處理。
2026-07-31 17:05:46 +08:00
Leo ba291f83d4 t161+t162(Arcrun@9f777ff):/health 吐 bundle_version(解假警報迴圈)+portal session 過期說原因
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 15:35:15 +08:00
Leo 0a043701d0 arm 候選 batch(Arcrun@341bcb1):step3 誠實化+step4 意圖替換+step6 統計回寫+t158 mode 分流+t159 daemon 登記+t160 現行 ui
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 14:57:54 +08:00
Leo 8cc794c354 t160:ui 條目換回現行世代(e28e190 基+登記表單 0 殘留;Arcrun@e744ad1 世代閘後首打)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 14:37:02 +08:00
Leo 85645941a6 t159 重打包(Arcrun@062757f):補 /portal/daemon/libraries 登記端點(portal 庫目錄空的根因)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 14:07:40 +08:00
Leo 216d3512c6 t158 重打包(Arcrun@7e631a8):/cypher/search mode 分流——複製路徑回毫秒級
- compile=純編圖零查詢(安裝器/acr push);discover=誠實查詢預設(契約不變)
- /cypher/execute 一律 compile;discover 批次化(registry 新增 /components/catalog)
- 本地實測:compile 8 節點 3ms(迴歸前水準);verify 01/03 9/9 綠

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 13:32:39 +08:00
Leo 0bfe37cffb feat/step3 全量重生(Arcrun@7e87a33):查詢誠實化 cypher/registry+manifest 投影乾淨
- build-bundles.mjs(work/installer-batch-0725 版)+build-ui-bundle.mjs 全量建:
  tier1 19(18 TinyGo+code)+tier2 4(cypher/kbdb/registry/mcp)+ui=24 顆
- manifest built=2026-07-31 source=Arcrun@7e87a33(feat/step3-missing-guidance)
- 死零件 km_writer/claude_api/kbdb_upsert_block 消失(G13);claude_api 在
  .component-builds 仍殘留、建置時排除(上游 Arcrun 待刪,已落帳)
- daemon 段沿用 v0.15.0(zips 非本機可重建、非本次修復範圍)
- 含 feat/step3 修復:isVirtualIoName(Input 角色假 found)+registry input_schema
  透傳+not_found 分型指路 suggestion+recipe 兩庫查詢

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:59:09 +08:00
Leo 3918ee629c staging 釘點初版=prod daa047a 內容原樣(cypher/mcp 重打包 Arcrun@0a426c4;manifest.built 2026-07-29)
來源:youlinhsieh/arcrun-rag-bundles@daa047a0aaa8df08fb108fd0ec8fda4e24a0841b 的完整內容鏡像。
本 repo=staging 安裝器 BUNDLE_BASE 釘點來源(D37);投影自 build-bundles.mjs,不手改。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:33:32 +08:00