[總管交辦] arcrun-http-request worker 補 global_fetch_strictly_public——1042 根治,workflow 才能直打同帳號 worker #33

Closed
opened 2026-07-07 10:29:13 +00:00 by Leo · 1 comment
Owner

[總管] km_wiki_ingest 重做時一手實測(probe workflow,測完已刪):workflow 內 http_request 零件打同帳號 *.leo21c.workers.dev 一律 404 + error code: 1042——該零件是獨立 WASM worker,wrangler.toml 沒帶 global_fetch_strictly_public(cypher-executor 自己有帶)。

影響:workflow 無法直打 graph /triplets/ingest 等同帳號端點,graph envelope 寫入被迫留在 client loop(過渡可用但不乾淨);graph_neighbors 範例也因此改走 recipe。

修法:credential-primitives-wasm 的 wrangler.toml 加一行 flag+重部署(B 類、PR+wrangler)。修好後把 km_wiki_ingest 的 graph 寫入收回 workflow 內。

[總管] km_wiki_ingest 重做時一手實測(probe workflow,測完已刪):workflow 內 `http_request` 零件打同帳號 `*.leo21c.workers.dev` 一律 `404 + error code: 1042`——該零件是獨立 WASM worker,wrangler.toml 沒帶 `global_fetch_strictly_public`(cypher-executor 自己有帶)。 **影響**:workflow 無法直打 graph `/triplets/ingest` 等同帳號端點,graph envelope 寫入被迫留在 client loop(過渡可用但不乾淨);graph_neighbors 範例也因此改走 recipe。 **修法**:credential-primitives-wasm 的 wrangler.toml 加一行 flag+重部署(B 類、PR+wrangler)。修好後把 km_wiki_ingest 的 graph 寫入收回 workflow 內。
Author
Owner

08-01 複核: 已修復,關閉

證據(main 源碼)

$ git show gitea/main:.component-builds/http_request/wrangler.toml | grep compatibility_flags
compatibility_flags = ["nodejs_compat", "global_fetch_strictly_public"]

落地 commit:1e85dfbbugfix(#24 #25)…+http_request 補 global_fetch_strictly_public(1042) (#56))。

檔頭並留了說明註解「self-hosted 同帳號部署時,http_request 零件外呼同 workers.dev」。且是改在版控的部署配置裡(非手工 patch live worker),符合本 issue「別手工 patch,會被下次 update 清掉」的要求。

cypher-executor 亦持續帶同一組 flag(cypher-executor/wrangler.toml:13)。

⇒ 零件 worker 缺 flag 這條根因已消。

## 08-01 複核:✅ 已修復,關閉 **證據(main 源碼)**: ``` $ git show gitea/main:.component-builds/http_request/wrangler.toml | grep compatibility_flags compatibility_flags = ["nodejs_compat", "global_fetch_strictly_public"] ``` 落地 commit:`1e85dfb`(`bugfix(#24 #25)…+http_request 補 global_fetch_strictly_public(1042)` (#56))。 檔頭並留了說明註解「self-hosted 同帳號部署時,http_request 零件外呼同 workers.dev」。且是**改在版控的部署配置裡**(非手工 patch live worker),符合本 issue「別手工 patch,會被下次 update 清掉」的要求。 cypher-executor 亦持續帶同一組 flag(`cypher-executor/wrangler.toml:13`)。 ⇒ 零件 worker 缺 flag 這條根因已消。
Leo closed this issue 2026-07-31 10:22:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Leo/Arcrun#33