You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(fields-projection): harden scanner, add meta-tests, drop PR refs
Review feedback:
- Rewrite module docstring + dual-check comment to lead with the
substantive failure mode rather than citing PR numbers — PR archeology
rots and the convention says don't reference the current task in
comments.
- Strip parenthesised notes BEFORE the `Available keys:` section
regex so a period inside a note (e.g. `(since v1.2)`) doesn't
truncate the enumeration. The old order ran paren-stripping after
the section match, which can't recover from an early truncation.
- Add `test_harvester_finds_dismissed_repair_count_in_ha_get_overview`:
pins the bug-catch guarantee. Without it the parametrize would still
pass if a refactor moved the assignment somewhere the harvester
doesn't scan — both sides of the diff would shrink in lockstep and
the regression would go silent.
- Add `test_tool_specs_covers_every_fields_using_tool`: AST-discovers
every tool function with a `fields` parameter and asserts TOOL_SPECS
enumerates them. Without it, deleting a spec entry shrinks coverage
silently — remaining cases still pass and the dropped tool gets no
drift coverage.
- Add `test_exclude_internal_keys_actually_appear_in_raw_harvest`:
parametrized over specs with `exclude_internal`. If a listed
internal key stops being emitted (e.g. the wrapper rename it
documents was undone, or the helper was deleted), the exclusion is
dead code masking nothing — surface it instead.
All 9 tests pass; ruff lint+format clean; mypy clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments