docs(DSH5-10): scope the replay-preference -> TypedOperatorPolicyScorer adapter gap - #1144
Conversation
…er adapter gap Investigation-only design note, no code or training changes. Confirms and extends PR #1131's reward-shape mismatch finding with a deeper structural gap: OperatorActionViewV1 (operator_policy_view.py) requires operator_id/ verdict/coverage fields that history-control actions (undo/redo/checkout/ merge -- 6 of the 7 confirmed ReplayPreferenceRelation members) simply don't have, since those actions never route through the operator-legality compiler. Only PRONOUN_FOCUS_FOLLOWUP rows draw both chosen/rejected from real OperatorActionViewV1-compatible legal_actions. Lays out two candidate designs (extend the frozen OperatorPolicyInputV1 schema vs. a separate history-control scorer) with tradeoffs and a recommendation, so a future session with real time budget (MAX_RUN_MINUTES is 3, too tight for this) doesn't have to re-derive the mismatch before writing code. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDeTk7RxBAbWX5fKjBqb4r
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 38 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Summary
Following the repeated "next steps" notes across the recent autotrain smoke-loop PRs (#1130, #1132) pointing here instead of further fixture-loop variance checks, and after the repo owner closed my prior 64/128-step PR (#1123) as no-longer-wanted, this session pivoted to the DSH5-10 preference-training scope. Given
MAX_RUN_MINUTES=3, a real trained head isn't boundable in one autonomous session — this is an investigation-only design note that scopes the actual blocker so a future session with real time budget doesn't have to re-derive it.PreferencePairbuilt for full-program pairs scored bycomposite_reward, but replay-preferencechosen/rejectedare bare action tokens like"undo").OperatorActionViewV1(src/slm_training/models/operator_policy_view.py:242-260) requiresoperator_id/operator_version/verdict: OperatorSupportVerdict/coverage: LegalSetCoverage— fields that history-control actions (undo/redo:<state>/checkout:<state>/merge tokens) simply don't have, since those never route through the operator-legality compiler.ReplayPreferenceRelationmembers, onlyPRONOUN_FOCUS_FOLLOWUPdraws bothchosen/rejectedfrom realOperatorActionViewV1-compatibleentry.legal_actions(src/slm_training/dsl/operators/replay_preference.py:383-407). The other 6 relations' chosen action can't be expressed as anOperatorActionViewV1row at all, independent of the reward-shape issue.OperatorPolicyInputV1schema with a history-control action-row variant, vs. (B) a separate scorer for the history-control decision space — with tradeoffs, and recommends prototyping (B) first since it needs no change to already-tested code and unblocks 6/7 relations immediately.versions.jsontouched), no readiness claim.Test plan
python -m scripts.verify_version_stamps --check --base origin/main— ok, 0 components touchedpython -m scripts.repo_policy— okmainsource (operator_policy_view.py,typed_operator_policy.py,replay_preference.py)Generated by Claude Code