Skip to content

fix: repair CI build broken by Free tier agent-limit bump - #547

Merged
JabbaKadabra merged 1 commit into
masterfrom
claude/fix-ci-build-diyxdm
Aug 16, 2026
Merged

fix: repair CI build broken by Free tier agent-limit bump#547
JabbaKadabra merged 1 commit into
masterfrom
claude/fix-ci-build-diyxdm

Conversation

@JabbaKadabra

Copy link
Copy Markdown
Collaborator

Problem

CI on master is red. The single failing test is:

Failed IngestAsync_WhenAgentLimitReached_DropsTraceForNewAgent
  Expected (agentRepo.CountNonSystemAsync(...)) to be 1, but found 2.
  Proxytrace.Application.Tests/AgentCallIngestorTests.cs:807

Cause

PR #545 ("Raise Free tier agent and test-suite limits to 2") bumped LicenseLimit.MaxAgents in the Free tier from 1 to 2. This test hard-coded the assumption that the default Free license caps non-system agents at 1, so a second distinct agent is now allowed instead of dropped, and the assertions fail.

PR #545 updated LicensePolicyTests.cs but missed this ingestion test.

Fix

Decouple the test from the Free tier's configured value: inject an ILicenseService substitute that caps MaxAgents at 1 explicitly (other limits stay unlimited). This mirrors the sibling test IngestAsync_WhenAgentLimitUnlimited_CreatesSecondAgent, which already stubs the license. The test now verifies the drop-on-limit behavior regardless of what the Free tier limit is set to.

Verification

dotnet test Proxytrace.Application.Tests --filter "FullyQualifiedName~AgentCallIngestorTests"
Passed!  - Failed: 0, Passed: 33, Skipped: 0, Total: 33

🤖 Generated with Claude Code


Generated by Claude Code

IngestAsync_WhenAgentLimitReached_DropsTraceForNewAgent relied on the Free
tier capping MaxAgents at 1. Raising that cap to 2 broke the test. Inject a
license substitute that caps MaxAgents at 1 explicitly (other limits stay
unlimited), so the test verifies the drop-on-limit behavior independent of
the Free tier's configured value.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F2NRNGHxoyq4vWo5b9uyeg
@JabbaKadabra
JabbaKadabra merged commit 0bfec76 into master Aug 16, 2026
14 checks passed
@JabbaKadabra
JabbaKadabra deleted the claude/fix-ci-build-diyxdm branch August 16, 2026 05:47
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