[FEAT] aw-docs: T14: 日英state-recovery文書と受け入れ基準の照合 #1168
All Vouch review confidence checks passed
Residual risk 0.40 = Change Risk (0.52) × (1 − Review Confidence (0.22)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 34% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #1168"
general
weight: 0.35
chatgpt-codex-connector[bot]
概要 (Pull Request Description)
関連Issue番号
Refs #1106, Closes #1136
受け入れ条件とスコープガード (Acceptance Criteria & Scope Guard)
変更内容 (Walkthrough)
1. 日英
state-recovery.mdへの Section 6 追加・同期docs/ja/architecture/state-recovery.mdおよびdocs/en/architecture/state-recovery.mdに Section 6(active-worktree-lifecycleアンカー)を新設し、以下を網羅・同期しました:- サブレコード分割と不変構造:
core(共通)、launch(起動・モデル)、claim(所有権)、completion(完了記録)の4つがメモリ上の唯一の正本(slots=True、フラット属性廃止)。- 深層不変性とイミュータブルペイロード:
completion_payloadおよびcompletion_policy_configのMappingProxyType深層不変化と破壊的操作拒絶。- 永続JSONのflat不変性と後方互換性: 35フィールドのフラット構造、フィールド順序、null時省略の維持。
schema_version不導入。active_codecによる双方向変換。- ライフサイクル優先順位(ActiveWorktreeLifecycle):
HANDOFF_READY>COMPLETING>RUNNING>LAUNCHING>RECOVERY_REQUIRED>CLAIMED>RESERVEDの評価順と各条件。- Handoff候補と検証済みReceiptの違い: 候補段階と、
CompletionReceiptを発行する authoritative な検証(Issueコメント・PR・dirty hold)の分離。- 整合性プロジェクション:
consistencyカーネルへの疎結合なExecutionRecord射影。- 所有者境界とASTガード: 各所有者モジュールの限定と静的検査。
- 親Epic #1106 受け入れ基準とT01〜T13検証証拠の照合表: 全受け入れ基準の実装タスクおよびテストスイート対比。
orchestune recover)の解説を追加。2. 日英
architecture.mdの記述更新docs/ja/architecture.mdおよびdocs/en/architecture.mdのセクション 4.1(共有実行台帳と所有権契約)において、T12カットオーバー後のメモリ正本構造(core+ 3 frozen subrecords)、所有者モジュール(complete.journalを含む)、およびstate-recovery.md#active-worktree-lifecycleへの相互リンクを更新・同期。3. 機械的ドキュメントテストの拡充
tests/test_dependency_architecture_docs.pyにactive-worktree-lifecycleアンカー、共有語彙・日英proseの契約検査、シンボル存在検証、およびライフサイクル契約ミューテーションテスト(test_each_lifecycle_guarantee_is_required)を追加。Reconciled Impact Scope Table
| Reference / Target | Status | Rationale |
| :--- | :--- | :--- |
|
docs/ja/architecture/state-recovery.md| done | セクション 6 を追加し、サブレコード構造、ライフサイクル優先表、flat JSON 不変性、handoff vs receipt、consistency projection、immutable payload、および #1106 受け入れ基準照合表を記載。 ||
docs/en/architecture/state-recovery.md| done |docs/ja/architecture/state-recovery.mdと同等の内容を Section 6 として日英同期。 ||
docs/ja/architecture.md| done | セクション 4.1 の記述をカットオーバー後のメモリ正本構造に改訂し、所有者境界とstate-recovery.mdへの相互リンクを追加。 ||
docs/en/architecture.md| done |docs/ja/architecture.mdと同等の内容を日英同期。 ||
tests/test_dependency_architecture_docs.py| done |active-worktree-lifecycleアンカー、セクション契約、シンボル存在テスト、およびライフサイクルミューテーションテストを追加。 ||
orchestune/ledger/active_lifecycle.py| still out of scope | 既存実装は固定・完了しており変更不要。 ||
orchestune/ledger/active_records.py| still out of scope | 既存実装は固定・完了しており変更不要。 ||
orchestune/ledger/active_codec.py| still out of scope | 既存実装は固定・完了しており変更不要。 ||
orchestune/ledger/run_state.py| still out of scope | 既存実装は固定・完了しており変更不要。 ||
orchestune/dispatch/launch_state.py| still out of scope | launch 所有者 API は固定・完了しており変更不要。 ||
orchestune/claim/ownership.py| still out of scope | claim 所有者 API は固定・完了しており変更不要。 ||
orchestune/complete/journal.py| still out of scope | completion 所有者 API は固定・完了しており変更不要。 ||
tests/test_active_worktree_ownership_architecture.py| still out of scope | AST ガードテストは固定・完了しており変更不要。 |---
品質管理 & テスト結果
ローカルCI実行結果
再現手順と修正確認(バグ修正の場合)
該当なし(ドキュメント・テスト契約追加)tests/test_dependency_architecture_docs.pyにライフサイクル新契約がなく未検査だった。ベースライン差分(Baseline-aware Test Evaluation)
---
#822 Observation Record
| Field | Value / evidence |
| :--- | :--- |
| PR, cohort, status, inclusion/exclusion | Task Issue #1136, PR pending, cohort 2026-10, status: in-progress |
| Environment, tool/version, actual use, fallback, index/base SHA | Linux, git grep (Serena fallback: root was main checkout without unmerged parent branch files), base SHA c625948 |
| Preparation / update / investigation times; method; shared setup link | Preparation: 2026-10-02T05:20Z - 05:27Z; git grep and view_file; shared setup via local worktree |
| Tokens: value, source, scope or unavailable reason | unavailable (CLI agent does not expose per-command token counters) |
| Original scope snapshot; appended reconciliation | Preserved in https://github.com/Saltmu/orchestune/issues/1136#issuecomment-5946131508 and Walkthrough table above |
| First requested / actual reviewed SHA; reviewer/provider/model | 876add3; reviewer: codex |
| Initial files / additions / deletions / base; change type | 5 files; +286 / -19; base c625948; docs/test change |
| Findings: canonical link, A–D/excluded, origin, A attribution/evidence | None yet |
| Rounds: SHA, evidence, next-round reason | Pending round 1 |
| Counts A/B/C/D (explicit zero only when reviewed); unresolved items | Pending review |
| Test results / post-integration defects or not yet observed | 5198 passed, 93.24% coverage, local CI clean |