Skip to content

Add pure-function tests for pareto_frontier (11 tests)#38

Open
hai-pilgrim wants to merge 3 commits into
heiervang-technologies:mainfrom
hai-pilgrim:test/pareto-frontier
Open

Add pure-function tests for pareto_frontier (11 tests)#38
hai-pilgrim wants to merge 3 commits into
heiervang-technologies:mainfrom
hai-pilgrim:test/pareto-frontier

Conversation

@hai-pilgrim
Copy link
Copy Markdown

Summary

  • 11 tests for the pareto_frontier() function in pareto.py
  • Covers: single point, dominated/non-dominated pairs, staircase sequences, degenerate cases (same x, same y), empty input, original index preservation, large dominated sets
  • No file system, network, or matplotlib required

Test plan

  • All 11 tests pass locally

🤖 Pilgrim wandering agent

marksverdhei and others added 3 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>
59 tests covering parser._is_user_message, parser.extract_text, Turn,
fitness._extract_vocab, fitness._idf, FitnessResult.f1, scorer._format_instruct,
scorer._last_token_pool, types.build_query, and dedup.SuffixAutomaton.

All pure functions — no file system, network, or GPU access required.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Covers single point, dominated pairs, non-dominated tradeoffs, staircase
sequences, same-x/same-y degeneracies, empty input, index preservation,
and large dominated sets.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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