Skip to content

fix: allowlist adapter registry + test coverage (#18, #19, #20)#29

Closed
jphein wants to merge 2 commits into
M0nkeyFl0wer:mainfrom
techempower-org:fix/upstream-issues-18-19-20
Closed

fix: allowlist adapter registry + test coverage (#18, #19, #20)#29
jphein wants to merge 2 commits into
M0nkeyFl0wer:mainfrom
techempower-org:fix/upstream-issues-18-19-20

Conversation

@jphein
Copy link
Copy Markdown
Contributor

@jphein jphein commented May 23, 2026

Summary

Addresses three open issues in one PR:

Test plan

  • 264 tests pass, 1 skipped (pre-existing daemon integration skip)
  • ruff check clean on all new/modified files
  • No new dependencies added
  • _load_adapter change is backwards-compatible: same adapter names, same CLI behavior

🫏 Generated with Claude Code

jphein and others added 2 commits May 23, 2026 13:31
Replace the 8-branch if-chain with per-adapter drop-lists with a
declarative _ADAPTER_SPECS registry. Each adapter declares its
module path, class name, aliases, and kwarg renames. The actual set
of accepted kwargs is discovered via inspect.signature() at
construction time, so the allowlist never drifts from the constructor.

Root cause fix for the PR #7 regression where stale drop-lists
silently swallowed CLI kwargs that should have been forwarded.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Three measurement-critical modules shipped with zero direct unit
tests. Adds 42 tests:
- test_multi_hop.py: score_cat2c aggregation, delta/ratio math,
  verdict heuristics, format_report, to_dict serialization
- test_topology.py: structural_health, community_structure,
  filtered_subgraph, edge_type_components
- test_graph_mapping.py: project_graph wing/room/tunnel/KG
  projection, edge cases (empty payload, missing IDs, general
  room filtering)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 23, 2026 20:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@jphein
Copy link
Copy Markdown
Contributor Author

jphein commented May 24, 2026

Superseded by #30 which includes a cleaner cherry-pick of the same work (issues #8, #18, #19, #20) rebased on current main. 🫏

@jphein jphein closed this May 24, 2026
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