Documentation
¶
Index ¶
- func NewArchitectStopGuard(st *store.Store) agentcore.StopGuard
- func NewEditorStopGuard(st *store.Store, task string) agentcore.StopGuard
- func NewStopGuard(st *store.Store, onBlock func(reason string, consecutive int32)) agentcore.StopGuard
- func NewWriterStopGuard(st *store.Store) agentcore.StopGuard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewArchitectStopGuard ¶
NewArchitectStopGuard 要求 architect 本轮至少落盘一次 save_foundation。
func NewEditorStopGuard ¶
NewEditorStopGuard 要求 editor 本轮落盘与"任务"匹配的产物后才能结束。
任务感知:被派去生成摘要时,仅 save_review(复核)不算完成——必须产出对应摘要。 否则"被派生成弧摘要却先复核"的 editor 会满足旧的宽松判据提前结束,弧摘要永不落盘 (配合 dispatcher 去重哑火曾导致卷中骨架弧死循环,详见 outline-exhaustion-livelock)。 StopAfterTool 退出会绕过 StopGuard(loop.go),故 build.go 同步把 save_review 移出硬停, 让复核后能继续走到摘要工具,再由本 guard 把关收尾。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.