All agent/* and agent-loop/config-start-failed events take one payload object carrying the agent subject; waterfall/serial payloads require a signal and keep next as the final argument. PreStepContext and RequestFailureContext are unfolded into payloads and retired. goal/changed follows the same shape so agentEvents keeps its listener error containment. ReactLoopAgent builds its scope carrier once in the constructor. Regenerates scope resolvers, tool-cordis api catalog, and docs catalogs; updates all affected listeners, tests, and the core-data-structures docs (en + zh).
plan/ — plan collaboration state
English | 中文
Plan mode is logged, per-agent collaboration state rather than a generic mode registry or capability seam.
| Package | Role | ctx key |
|---|---|---|
plan-mode/ |
Owns plan-mode state, guidance, commands, and review flow | ctx.planMode |
The plan-specific collaboration state decision records the family design.