Skip to content

澄清 Spine runtime / adapter 边界,并将 config ownership 移入 adapters #15

@xiaoland

Description

@xiaoland

摘要

Spine runtime 与 body endpoint adapters 之间的边界仍需要进一步澄清。
adapter-specific config 应当由 adapter 自己持有,而不是泄漏进共享 runtime code。

动机

这样可以把 endpoint-specific concerns 留在本地边界内,减少 runtime core 中的偶然耦合。

规格 / 验收标准

  • Spine runtime 与 adapter 的职责在代码中被明确表达,并且在实现中得到体现。
  • adapter-specific config parsing 与 ownership 位于 adapter 边界内部。
  • 共享 runtime code 不会在缺乏明确跨 adapter 理由时吸收 endpoint-specific config concerns。

技术约束

  • 保持 Core 与 body endpoints 之间的系统边界不变量。
  • 不要为了让 config handling 更方便,就扩张 Spine 的 authority。

向后兼容

除非明确要求,否则不需要。

参考

  • 来源于 TODO.mdtasks/todo-issue-migration/RESULT.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions