Skip to content

Fix catalog duplicate accounting and malformed API handling - #4

Merged
HuffmanMainNode merged 5 commits into
mainfrom
fix/catalog-duplicate-accounting
Nov 3, 2026
Merged

HuffmanMainNode merged 5 commits into
mainfrom
fix/catalog-duplicate-accounting

Conversation

@HuffmanMainNode

@HuffmanMainNode HuffmanMainNode commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

This review found a false-negative in the catalog validator and a malformed-response crash path in the optional upstream metadata checker.

Changes

  • Detect duplicate cards within each index independently, even when the same repository is also correctly cross-indexed.
  • Preserve the existing cross-index reporting and add a regression fixture with two agency cards plus one interest-area card.
  • Treat an unexpected non-object GitHub license payload as invalid_response rather than raising an uncaught attribute error.
  • Add tests for malformed JSON response shapes.

Why this matters

The previous duplicate classifier treated any repository appearing in both indexes as cross-index-only. If it also appeared twice within the agency index, the same-index duplication was hidden. The validator's prior baseline therefore could under-report this class of duplicate.

Validation

GitHub Actions run 41554782949 completed successfully on Python 3.11, 3.12, and 3.13. All unit-test and full-catalog validation steps passed.

Limits

This remains a local metadata validator and read-only GitHub metadata refresh. It does not verify upstream code, safety, official status, or license rights.

@HuffmanMainNode
HuffmanMainNode marked this pull request as ready for review November 3, 2026 00:42
@HuffmanMainNode
HuffmanMainNode merged commit 11bf94a into main Nov 3, 2026
3 checks passed
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.

1 participant