Repository navigation
Description
Task ID or area
GH-C37 (Contributor Task Board, area: interaction model)
Technical direction
Core control-plane hardening
Intent
I want to claim an existing task
Summary
The Lark Manager connection shipped a boundary the interaction pattern catalog does not describe, even though the behavior and its protocol doc are on main.
docs/reference/protocols/lark-manager-context-authority-v0.md states that a Manager connection separates message visibility from Turn authority. LoopX may retain compact non-self group messages as local-private context, but retention starts no model call, sends no reply or reaction, acknowledges no provider event, and authorizes no Goal or Todo mutation. A Manager Turn is authorized only by a provider-native mention of the bound Bot, a provider-verified reply to that Bot, or another existing typed authority record.
Two properties make this a reusable interaction shape rather than an adapter detail:
- An authorized Turn receives at most eight context-only items within a 4,000-character total budget, each labeled
context-only, and the prompt states they are not commands, authorization, or independent Todos. - History catch-up is always
context-only, including messages that originally mentioned the Bot, so a bounded turn-start history sync never replays a missed Turn.
It has its own trigger, user channel, agent channel, state contract, bad smell, and validation, so it qualifies as a new IP rather than an amendment to an existing one. The bad smell is concrete: an agent acting on a visible group message that never addressed the Bot, which reads visibility as permission.
Proposed scope
In scope:
- Add one pattern under the State And Boundary family, allocated as IP-031, covering retention, the three authorized Turn sources, the projection budget, history catch-up, and settlement.
- Add the matching row to the State And Boundary catalog table and register it in the pattern-to-canary matrix.
- Link the manager-context protocol and the turn-start-sync / goal-topic-runtime tests as the validation path.
Out of scope:
- Changing any Lark adapter behavior, budget, or protocol.
- Editing existing IP entries or other families.
Intended base branch
main
Relevant files or commands
docs/concepts/interaction-pattern-catalog.mdloopx check --scan-path docs/concepts/interaction-pattern-catalog.md
Activity
Exusty commentedon Sep 15, 2026
认领这个任务(claiming this task),PR: #4432
方案 / Approach:按 issue 的 Proposed scope 执行——在 State And Boundary 家族新增 IP-031,补 catalog 表格行与 pattern-to-canary 矩阵登记,不碰任何 Lark adapter 行为与协议。
一个需要 maintainer 确认的点:importance 我定的是
P0。理由是"把可见性当授权"会直接产生一次未授权的 Turn,符合模板里 P0 的定义(hot-path,会 misroute 一个 controller turn)。如果你认为它更接近 IP-028 这类 P1 的边界型条目,我改一行表格即可。Validation:
loopx check --scan-path docs/concepts/interaction-pattern-catalog.md→ ok, errors=0;examples/interaction-pattern-catalog-smoke.py与examples/canary/catalog-planner-smoke.py均通过。状态契约字段全部取自现有实现(ManagerAuthorityMode、8 / 4000、historical_context_only、context_only_captured/replied_and_acknowledged)。docs(catalog): fold the manager-context state contract into IP-031