thread-advance
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseThread Advance
线程推进
Use this skill to continue an existing thread by one bounded round.
使用本技能将现有线程推进一个限定轮次。
Core Rule
核心规则
Read the minimal thread state, run one bounded contract, write back only the current baton, then stop.
读取最小线程状态,运行一个限定合约,仅回写当前接力棒,随后停止。
Workflow
工作流程
- Confirm the target branch context.
thread/<thread-id> - Read ,
AGENTS.md, the threadCLAUDE.md, and the threadmemory.md.interrupt.md - Check for dirty or pending
interrupt.md.memory-proposal.md - Follow the active .
NextStepContract - Advance exactly one round.
- Rewrite with the new stop point.
interrupt.md
- 确认目标分支上下文。
thread/<thread-id> - 读取、
AGENTS.md、线程CLAUDE.md以及线程memory.md。interrupt.md - 检查是否存在脏或待处理的
interrupt.md。memory-proposal.md - 遵循生效的。
NextStepContract - 精准推进一个轮次。
- 用新的停止点重写。
interrupt.md
Stop Conditions
停止条件
Stop immediately if:
- is dirty and
interrupt.mdTHREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true - is pending and
memory-proposal.mdTHREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true - the contract would be exceeded
- verification fails
- a truth or boundary change is required
出现以下情况需立即停止:
- 为脏文件且
interrupt.mdTHREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true - 处于待处理状态且
memory-proposal.mdTHREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true - 合约将被超出
- 验证失败
- 需要变更事实或边界
Env Defaults
环境变量默认值
THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=trueTHREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=trueTHREAD_SELECTION_POLICY=highest-priority-runnableTHREAD_PRIORITY_DEFAULT=P2
Fallback behavior:
- If env vars are absent, use conservative stop-on-blocker defaults.
THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=trueTHREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=trueTHREAD_SELECTION_POLICY=highest-priority-runnableTHREAD_PRIORITY_DEFAULT=P2
兜底行为:
- 若环境变量不存在,使用保守的「遇到阻塞项即停止」默认配置。
When To Load Reference
何时加载参考文档
Load thread-advance-guards.md when you need exact blocker semantics or continuation discipline.
当你需要确切的阻塞语义或延续规则时,加载thread-advance-guards.md。