--- title: T0.4 broker↔app 契约放在 internal/app/port type: decision permalink: main/projects/25464650-ed5d-440e-b362-190f2852d451/t0.4-broker-app-契约放在-internal-app-port stable_id: c21e8947-fefb-4701-90a9-e378158f8e8b scope: project memory_type: decision project_id: 25464650-ed5d-440e-b362-190f2852d451 usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 status: active revision: 1 request_id: t04-decision-port-pkg-20260930 created_at: '2026-09-29T22:36:45.402844+00:00' updated_at: '2026-09-29T22:36:45.402844+00:00' tags: - t04 - port - decision --- T0.4 决定:broker 与 app 之间的接口放在 internal/app/port(UplinkHandler、Downlink、ConnControl),不放 internal/broker/port,也不依赖 mochi。原因见 docs/DEVIATIONS.md 总控 L T0.4。