Skip to content

FU-P12-T1-5: Cap _clients dict and prune client_identities to prevent unbounded growth#81

Merged
SoundBlaster merged 7 commits into
mainfrom
codex/feature/FU-P12-T1-5-cap-clients-and-prune-identities
Feb 19, 2026
Merged

FU-P12-T1-5: Cap _clients dict and prune client_identities to prevent unbounded growth#81
SoundBlaster merged 7 commits into
mainfrom
codex/feature/FU-P12-T1-5-cap-clients-and-prune-identities

Conversation

@SoundBlaster
Copy link
Copy Markdown
Owner

Description

Implement FU-P12-T1-5 by bounding client identity growth in both in-memory and shared-metrics paths.

  • Added a 50-entry soft cap for MetricsCollector._clients with oldest-first (last_seen) eviction.
  • Added stale client_identities pruning on write in SharedMetricsStore using a retention cutoff.
  • Added/updated unit tests for eviction behavior and stale-row pruning.
  • Completed FLOW artifacts, including validation and archived review reports.

Validation report: SPECS/ARCHIVE/FU-P12-T1-5_Cap_clients_dict_and_prune_client_identities_to_prevent_unbounded_growth/FU-P12-T1-5_Validation_Report.md

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • CI/CD improvement

Quality Gates

Before submitting, ensure all quality gates pass:

make check

Or run individually:

  • make test - All tests pass with ≥90% coverage
  • make lint - No linting errors
  • make format - Code is properly formatted
  • make typecheck - Type checking passes
  • make doccheck - Documentation is synced with DocC (if docs changed)

Documentation Sync

If you modified files in docs/, ensure corresponding DocC files are also updated:

docs/ file DocC file
docs/installation.md mcpbridge-wrapper.docc/Installation.md
docs/cursor-setup.md mcpbridge-wrapper.docc/CursorSetup.md
docs/claude-setup.md mcpbridge-wrapper.docc/ClaudeCodeSetup.md
docs/codex-setup.md mcpbridge-wrapper.docc/CodexCLISetup.md
docs/troubleshooting.md mcpbridge-wrapper.docc/Troubleshooting.md
docs/architecture.md mcpbridge-wrapper.docc/Architecture.md
docs/environment-variables.md mcpbridge-wrapper.docc/EnvironmentVariables.md
README.md mcpbridge-wrapper.docc/mcpbridge-wrapper.md
  • Documentation changes are synced with DocC catalog (or N/A)

Testing

  • Added/updated tests for new functionality
  • All tests pass locally
  • Manually tested the changes

Checklist

  • Code follows the project's style guidelines
  • Self-review completed
  • Comments added for complex code
  • Documentation updated (if needed)
  • No new warnings generated
  • PR title is descriptive

@SoundBlaster SoundBlaster merged commit 0f76c04 into main Feb 19, 2026
9 checks passed
@SoundBlaster SoundBlaster deleted the codex/feature/FU-P12-T1-5-cap-clients-and-prune-identities branch February 19, 2026 08:14
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