Repository navigation
fix(monitor): プロファイル保存時の未起動配信を補償する - #6139
Merged
Merged
Conversation
3 of 14 tasks
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 20 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
akiojin
enabled auto-merge
October 23, 2026 05:25
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
起動プロファイルを一括保存して選択 provider が unattended 非対応になったとき、未所有の起動配信と予約枠を同じ保存内で補償します。保存後の receipt 再読込でも古い予約を復活させません。
Changes
issue_monitor.rs: switch 専用だった permission 補償を pool setter と共用。新しい保存状態の exact ReleaseClaim を根拠に、未所有・未稼働の古い予約を rebase 前に解消します。後継 claim、materializer 所有、稼働 pane/process は保護します。cli/issue.rs: daemon 不在の profiles.set も同じ State 遷移を使い、設定と補償を一緒に保存します。issue_monitor_worker.rs/cli/daemon/server.rs: 既存 fixture で pool 保存、通常の ResumeIfSafe delivery、parent sync 失敗後の receipt replay、exact mismatch / 所有済み保護を確認します。CLI fallback の再現を追加しました。issue_monitor.rsの既存 cache retention test: CIで観測したprocess共通cacheの並行evictionとthread-local parse counterの不一致を解消するため、同じreaderへのcache参照を引数化し、このtestだけ独立mapを使用。既存assertとproduction cache挙動は維持します。Cargo.lock: PM裁定に従いcargo update -p ctutils --precise 0.4.4でctutilsのversion/checksumだけを更新。Cargo Denyの新規advisoryを解消し、deny.toml/他依存は変更しません。単独commite3a60f529。Testing
production 未変更で State / daemon / CLI fallback の RED を確認。最小修正後に残った receipt replay の RED も確認して根因を修正しました。
permission / profile / provider hold / auto-tier 関連 nextest: 28 PASS(既存cache testを含む)。
push 後の canonical pre-pr
vrr-85fa7787d0af48758b5773f97a14a177/ HEADe3a60f529afc25b1bd69ad5e62b6a6433c34af8f: 10 commands / 78 tests PASS(関連28、hygiene36、env/home12、headed2。保守 helper 1 ignored)。workspace strict Clippy / format / Cargo Deny / checkout binary build も PASS。headed Chromium: checkout + fresh HOME の既存 candidate-pool live fixture で保存・再読込、dark/light 各1 PASS、console/page error ゼロを確認。未所有配信の補償そのものは Rust durable fixture で検証します。
旧headのFlake detection失敗は既存cache retention testの並行evictionが根因で、rerunで隠さず単独test commitで修正しました。旧headのCargo Deny失敗も、新規advisoryの修正版へlockを上げて解消しました。修正版は RustCrypto/utils#1569 で確認しました。
PR Readiness
Closing Issues
None
Related Issues / Links
Refs #5876 (T-2w-a/b/c / AC-1 の限定 slice)
Checklist
Context
直前の T-2v は launch_agent switch だけを補償していました。一括保存と CLI fallback には補償がなく、保存後に GUI へ古い delivery が渡り得ました。また、delivery を置換し active 予約を union する rebase が、保存済み receipt との一致を拒否していました。
Risk / Impact
PM default ruling (override available): 保存トランザクション内で既存 exact 補償を共有し、不明・後継・所有済み・実稼働の証拠がある work を維持する最小の変更です。新しい台帳・epoch 更新・receipt 再適用は加えていません。
Rollback: 機能修正とcache test補正は個別commitでrevert可能です。ctutils更新は独立commitで、元の脆弱版へ戻すとCargo Denyが再び失敗します。永続 schema 変更はありません。Agent Settings wizard の直接 Prefs 保存、外部 definition 変更、materializer 所有後の前提変更は今回の対象外で、親 SPEC に残ります。
CI cache test補正とctutils更新は、観測した必須CI失敗を同じ配信で解消する最小範囲としてPlan/tasksへ追補し、読み戻し済みです。
Coverage: ローカル未測定(required
coverage / Rust Coverageへ委任)。最終配信報告で同 HEAD の CI gate 90% / 80% を確認します。Agent: ミサ-2 (Codex)