Skip to content

ClientTypeErrors measures AgentCommsProject through the audit's project parameter - #3637

Merged
trissim merged 1 commit into
work/checkout-caller--P883from
claude-nra/generic-client-measure
Oct 30, 2026
Merged

trissim merged 1 commit into
work/checkout-caller--P883from
claude-nra/generic-client-measure

Conversation

@trissim

@trissim trissim commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3566's red debt-tools: tools/agent_comms_project.py:298: error: Argument 1 of "parts" is incompatible with supertype "audit.ratchet.Runner"; supertype defines the argument type as "Project[Any]" [override], introduced by #3630.

Numbers: 2 files: 1 line in tools/agent_comms_project.py, plus the submodule pin. mypy (the TypeErrors measure's own invocation, mypy --explicit-package-bases --no-error-summary with MYPYPATH=tools:src:<audit scripts>) on tools/agent_comms_project.py: 1 error before, 0 after.

What changed

  • ClientTypeErrors(audit.checkers.SideCounts[AgentCommsProject]): the measure names the project it reads. Its parts(repo: AgentCommsProject, ...) is now the declared repo: P, not a narrowing override.
  • src/agent_comms/skills/refactor-audit pinned to Measures are generic in the project they read refactor-audit#12, merged as ae542194, where Runner/Compared/SideCounts are generic in a contravariant project parameter defaulting to Project.

Required last commit

Done: refactor-audit#12 merged as ae542194, and the submodule pins that main merge commit (head 9c3a44e5), the same tree as b80510df.

Proof

Base: work/checkout-caller--P883 (#3566). The ratchet is being replaced by NRA (OpenHCSDev/NominalRefactorAdvisor#155 plus the agent-comms removal PR). This is only what unblocks the queue fix.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RnH6dS2Kmg1WxNnAc78YHA

…ct parameter

#3630 narrowed ClientTypeErrors.parts(repo: AgentCommsProject) to read
repo.clients, and mypy rejected the override against Runner.parts(repo:
Project) [override]; CI's debt-tools went red on #3566. The pinned audit
now makes Runner, Compared and SideCounts generic in the project they
read (refactor-audit fix/generic-project-runner b80510df), so the
measure declares SideCounts[AgentCommsProject] and its parts takes the
project it actually reads, with no narrowing.

mypy (the TypeErrors measure's invocation) on tools/agent_comms_project.py:
1 error before, 0 after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RnH6dS2Kmg1WxNnAc78YHA
Copilot AI balanced review requested due to automatic review settings October 30, 2026 03:50

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@trissim
trissim merged commit 592b646 into work/checkout-caller--P883 Oct 30, 2026
1 check 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.

2 participants