1仕組みと動作原理
入口でのトリアージ:Codex のネイティブ resume によって同一セッションの turns/compaction 状態がすでに現在のコンテキストに引き継がれている場合、本スキルも read-codex-history も呼び出さず、保持されたコンテキストに基づき直接作業を継続してワークスペースを検証します。新規または別のアカウント/Agent コンテキストが過去の rollout を引き継ぐ場合、あるいはユーザーが別の Session ID を提示した場合にのみ本スキルを実行します。
A restart is not enough to choose the second row. The deciding fact is whether the current conversation is the host-restored continuation of the same Session, not whether a Codex process was restarted.
Step 1: verified Codex read receipt の強制:read-codex-history を呼び出して完全な時系列ブリーフィングを取得します。prompt-ledger/state-index/rollout ソース、session_meta.id の完全一致、root から child への fork 系統と継承バイト境界、選択されたユーザー/アシスタントの turns、compaction、end reason、未解決の呼び出しおよびギャップが含まれている必要があります。
Fail closed on a mismatched rollout, missing child rollout, ambiguous physical copy, missing parent, broken byte boundary, or continuation cue with no recoverable parent objective. Never continue from the “closest” file.
Step 2: 同型な 7 フィールドの継続契約の再構築:子セッションに「継続/continue/fork」のみが含まれる場合、検証済みの親スナップショットからタスクを継承します(ローカルの手がかりは独立した目標ではありません)。
If the child contains only “继续,” “continue,” or `/fork`, inherit the task from the verified parent snapshot. A local cue is not a standalone goal.
Step 3: 現実との照合:対象プロジェクトの AGENTS.md/CLAUDE.md を確認し、cwd/branch/作業ツリー/外部状態をチェックして、記録された patch/commit/push/download/job/agent の出力が実際に反映されているかを検証します。一時的な障害(利用制限/サービスエラー)については、元のプロセスがその後自動回復して完了していないかを確認してから再実行の要否を判断します。
rollouts record attempted actions too.
Step 4: 実行とゲートウェイ:次の直接アクション+フィードバックループ。分岐前に「これが成功した場合、どの未達の本来の成果が縮小されるか?」を自問します。codex resume/--continue は禁止し、無関係な変更は上書きしません。
Do not run `codex resume` or `codex --continue`.
2コア機能
3外部依存関係
| Kind | Dependency / Endpoint |
|---|---|
| cli | codex(宿主 CLI,禁止 resume/--continue) |
| skill | read-codex-history(同仓兄弟技能,读本地 Codex 会话库) |
4推奨統制措置と判定根拠
- 本地工作目录: ファイル読み書きおよび成果物出力:(通常認可されたプロジェクト作業として Agent が実行。スキル自体には書き込み指示は含まれず、変更前に read receipt と契約の締結を強制)
5二重目の独立検証
- [ok] 无脚本/无网络/无凭证 — 目录仅 SKILL.md,无任何命令执行/网络/凭证读取指令
- [ok] 引用的兄弟技能存在 — read-codex-history 与 continue-claude-code-work 均在 daymade-claude-code/ 下
- [ok] Entry gate 自洽 — ‘deciding fact is whether current conversation is host-restored continuation of same Session, not whether process restarted’ 前后无矛盾
- [ok] fail-closed 条件有可操作性 — mismatched rollout/missing child/ambiguous copy/missing parent/broken byte boundary 均为可判定条件
- [ok] 不夸大能力 — 宣称只做‘external takeover 续接’,原生 resume 场景被显式排除——与 SKILL 内容一致
6結論
5f48ef1a57b0b2b3…