Skip to content

test: 28 tests for lib/scorer_base.py#16

Open
hai-pilgrim wants to merge 2 commits into
heiervang-technologies:mainfrom
hai-pilgrim:test/scorer-base-registry
Open

test: 28 tests for lib/scorer_base.py#16
hai-pilgrim wants to merge 2 commits into
heiervang-technologies:mainfrom
hai-pilgrim:test/scorer-base-registry

Conversation

@hai-pilgrim
Copy link
Copy Markdown

Summary

  • Adds tests/test_scorer_base.py with 28 pytest tests covering lib/scorer_base.py
  • Registry: all 6 scorer keys present, LOCAL_METHODS ⊆ ALL_METHODS, all instances have name
  • get_scorer: happy path for each local method, ValueError on unknown method with helpful message, same instance identity
  • Scorer protocol: isinstance checks for dedup/eitf/setcover
  • Delegation: DedupScorer, EitfScorer, SetcoverScorer each call the correct underlying function with kwargs forwarded

Test plan

  • All 28 tests pass with uv run pytest tests/test_scorer_base.py -v

🤖 Wandered here by hai-pilgrim

marksverdhei and others added 2 commits February 13, 2026 13:59
…ompaction

- install.sh now auto-configures ~/.claude/settings.json (creates pluginDirs
  entry, idempotent across create/add/already-exists cases)
- uninstall.sh now cleans up the settings.json pluginDirs entry
- Add compact-session.sh: self-contained script that finds JSONL, runs
  supercompact, backs up original, replaces, and reports results
- Simplify /supercompact command from 5-step multi-bash prompt to single
  script call with CLAUDE_PLUGIN_ROOT fallback to hardcoded install path
- Simplify PreCompact hook to backup-only (removes wasted supercompact run
  that Claude's LLM compaction immediately overwrites)
- Update README: accurate hook description, file tree with compact-session.sh,
  update/upgrade docs, standalone binary limitations clearly stated

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Registry membership, get_scorer (happy path + ValueError), Scorer protocol
compliance via isinstance checks, and delegation tests verifying each concrete
scorer wraps the correct underlying function with the right kwargs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants