feat: consolidate deduplicate_levers — classification, safety valve, B3 fix#365
Closed
feat: consolidate deduplicate_levers — classification, safety valve, B3 fix#365
Conversation
…B3 fix deduplicate_levers.py: - Add primary/secondary classification (replaces flat "keep") - Narrow safety valve: "Use primary only as a last resort" + calibration hint "expect 4-10 absorb/remove" (widened from 4-8 to fix gemini sovereign_identity regression) + "do not stop early" - Add concrete secondary examples (marketing timing, reporting cadence, team communication tooling, documentation formatting) - Fix B3 completely: conditional "..." in both _build_compact_history AND all_levers_summary (PR #364 only fixed the first) - Add OPTIMIZE_INSTRUCTIONS with 5 known failure modes (blanket-primary, over-inclusion, hierarchy-direction, chain absorption, calibration capping) enrich_potential_levers.py: - Accept optional classification field (backwards-compatible) self_improve/runner.py: - Add deduplicate_levers step support Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
Self-Improve Iteration 44 — deduplicate_levers (PR #365)7 models × 5 plans, all succeeded. 100% schema success rate. Verdict: YESAll issues from iter 43 are resolved. No new regressions. Levers kept (iter 42 → 43 → 44)
Key results
Merge recommendationReady to merge. All three iteration targets met:
|
neoneye
added a commit
that referenced
this pull request
Mar 20, 2026
Extract the runner.py changes from PR #365 so baseline runs can exercise the deduplicate_levers step on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 task
neoneye
added a commit
that referenced
this pull request
Mar 20, 2026
Replace 4-way taxonomy (keep/absorb + primary/secondary from PR #365) with 3-way: primary, secondary, remove. Absorbed levers are now classified as "remove" with the absorbing lever_id in justification. Hypothesis: fewer categories = more consistent exercise of each class, easier to validate results. Also includes best improvements from PR #365: - Safety valve narrowed ("primary only as a last resort") - Calibration hint (expect 4-10 removals, do not stop early) - B3 fix: conditional ellipsis in compact history and lever summary - OPTIMIZE_INSTRUCTIONS with 5 known failure modes - classification field preserved in OutputLever for downstream use - enrich_potential_levers accepts optional classification field Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
4 tasks
Member
Author
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
Supersedes closed PRs #363 and #364. Incorporates all learnings from self-improve iterations 42-43.
keepfor downstream prioritization...in both_build_compact_historyANDall_levers_summary(PR feat: consolidate deduplicate_levers with classification and safety valve fix #364 only fixed the first)deduplicate_leversstep supportclassificationfield (backwards-compatible)Improvements over PR #364
_build_compact_historyTest plan
🤖 Generated with Claude Code