Skip to content

E5(#5040 执行器):执行目标委派 —— endpoint target 映射到既有 flow / script / proxy 执行管线 #5092

Closed

Description

@os-zhuang

Part of #5040(E 系列第 5 单)。Blocked-by: #5089(E2)+ #5090(E3)。维护者已放行提前开发(2026-08-04,见 #5080 认领评论;E7 翻转仍守 v17 分期)。

范围(以 #5040 设计 §5 与总表 E5 行为准)

端点命中后按 target 类型委派,全部走既有执行管线、零新执行语义:请求上下文构造(params/query/body/auth 主体)→ 委派 → 响应映射(成功包络 / 既有错误包络,5xx 过消毒 looksLikeInternalErrorLeak 一族)。设计 §5 的三处否决窗口维护者未异议,按推荐执行;script/proxy 的沙箱与出网约束以设计为准,不扩权。含每 target 类型的委派测试 + 错误映射测试。

约束

结构性不可达(publish 仍拒);执行器车道程序卡(session_01EYGdmvWP1ieZSLqvAW6uyd 按序派发),其它车道请勿认领。

关联:ADR-0121(D5)、#5040 设计 §5、#3962(错误包络先例)。

Activity

  1. added
    enhancementNew feature or request
    domain:cliRetired 2026-10-22, alias of domain:server (cli surface); in-flight cards keep it until they land
    pm:dispatchedDispatched to a dev agent by /pm-dispatch
    on Aug 4, 2026
  2. self-assigned this
    on Aug 4, 2026
  3. os-zhuang commented on Aug 4, 2026

    @os-zhuang
    ContributorAuthor

    认领 —— PM 会话 session_01EYGdmvWP1ieZSLqvAW6uyd(执行器车道),分支 claude/issue-5092-endpoint-execution-targets,R3 批与 #5091 并行派发。前置 E2(ecc61ab)/ E3(2649ccb)已落 main。

    文件面声明(#4604,与 #5091 互斥):packages/runtime/src/endpoint-executor.ts(新,纯模块:请求上下文构造 + 按 target 委派 + 响应/错误映射)+ 测试 + changeset。不碰 api-endpoint-step.ts / dispatcher-plugin.ts / endpoint-policy.ts(接线在两单落地后的小型接线单完成,届时替换 501 分支为 策略→执行 链)。


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:cliRetired 2026-10-22, alias of domain:server (cli surface); in-flight cards keep it until they landenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatch

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions