mergegate/autorun/phase-4-file-lock/GATE.md
林 駿甫 (Shunsuke Hayashi) 146fcafc5e [追加] DTP (Deterministic Task Protocol) 設計文書・指示書を移植
deterministic-task-protocol リポから miyabi-cli-standalone に統合:
- docs/dtp/: PLAYBOOK, PLAN, UML, GIT-RULES, Codex レビュー 3件
- autorun/: Phase 0-8 の TASKS/ASSIGNMENT/GATE + INDEX/HANDOFF/ROLLBACK
- project_memory/tasks.json: 全9 Phase の DAG SSOT
- skills/: polaris-ops, rust-llm-pitfalls
- .codex/instructions.md: Codex 設定

実装は miyabi-core に gate.rs, lock.rs, protocol.rs, store.rs を追加する方針。
既存の dag.rs, github.rs, approval.rs 等は変更不要。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 01:07:32 +09:00

382 B

Approval Gate: Phase 4

Pass Criteria

  • cargo test → all GREEN
  • Lease acquire → heartbeat → release lifecycle test GREEN
  • Stale detection test GREEN (no heartbeat → expired)
  • Conflict test GREEN (2 tasks same file → reject)
  • proptest for lock invariants GREEN

On Failure

  • Timing issues → use fixed timestamps in tests
  • Retry (max 3)