thread-advance

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Thread 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

工作流程

  1. Confirm the target
    thread/<thread-id>
    branch context.
  2. Read
    AGENTS.md
    ,
    CLAUDE.md
    , the thread
    memory.md
    , and the thread
    interrupt.md
    .
  3. Check for dirty
    interrupt.md
    or pending
    memory-proposal.md
    .
  4. Follow the active
    NextStepContract
    .
  5. Advance exactly one round.
  6. Rewrite
    interrupt.md
    with the new stop point.
  1. 确认目标
    thread/<thread-id>
    分支上下文。
  2. 读取
    AGENTS.md
    CLAUDE.md
    、线程
    memory.md
    以及线程
    interrupt.md
  3. 检查是否存在脏
    interrupt.md
    或待处理的
    memory-proposal.md
  4. 遵循生效的
    NextStepContract
  5. 精准推进一个轮次。
  6. 用新的停止点重写
    interrupt.md

Stop Conditions

停止条件

Stop immediately if:
  • interrupt.md
    is dirty and
    THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true
  • memory-proposal.md
    is pending and
    THREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true
  • the contract would be exceeded
  • verification fails
  • a truth or boundary change is required
出现以下情况需立即停止:
  • interrupt.md
    为脏文件且
    THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true
  • memory-proposal.md
    处于待处理状态且
    THREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true
  • 合约将被超出
  • 验证失败
  • 需要变更事实或边界

Env Defaults

环境变量默认值

  • THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true
  • THREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true
  • THREAD_SELECTION_POLICY=highest-priority-runnable
  • THREAD_PRIORITY_DEFAULT=P2
Fallback behavior:
  • If env vars are absent, use conservative stop-on-blocker defaults.
  • THREAD_ADVANCE_STOP_ON_DIRTY_INTERRUPT=true
  • THREAD_ADVANCE_STOP_ON_PENDING_PROPOSAL=true
  • THREAD_SELECTION_POLICY=highest-priority-runnable
  • THREAD_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