Skip to content

v1.61.0 — Agent Stamina Profiler, Competency Map, Collaboration Analyzer & 39 Performance Optimizations

Choose a tag to compare

@sauravbhattacharya001 sauravbhattacharya001 released this 30 Apr 14:33
· 73 commits to master since this release

Highlights

Agent Stamina Profiler — Autonomous intra-session degradation detection that identifies when agents lose coherence, slow down, or produce lower quality output over the course of long sessions.

Agent Competency Map — Autonomous skill profiling that builds a capability matrix across agents, enabling intelligent task routing based on demonstrated strengths.

Agent Collaboration Analyzer — Multi-agent teamwork analysis measuring communication efficiency, contribution balance, and coordination patterns across collaborative sessions.

Schema Migration System — Lightweight, versioned database migrations with auto-detection of pending upgrades and rollback support.

New Features (22)

  • Agent Memory Leak Detector — autonomous context accumulation analysis with O(1) linear regression
  • Agent Failure Forecaster — predictive failure detection engine
  • Agent Collaboration Analyzer — multi-agent teamwork analysis
  • Agent Stamina Profiler — intra-session degradation detection
  • Agent Competency Map — autonomous skill profiling with routing
  • Schema Migration System — lightweight versioned migrations
  • Session Autopsy — autonomous multi-engine root-cause investigation
  • Auto-Triage Engine — unified session diagnostics with prioritized findings
  • Agent Mood Ring — fleet metrics mood visualization dashboard
  • Agent Experiment Lab — A/B testing with statistical significance
  • What-If Scenario Planner dashboard
  • Agent Communication Graph — inter-agent message flow visualization
  • Smart Triage Queue — autonomous incident prioritization with escalation
  • Agent Canary Deployer dashboard
  • Compliance Auditor — policy-based audit with 12 configurable policies
  • Agent Regression Tracker dashboard
  • Cost Anomaly Detector — proactive cost monitoring
  • Smart Alert Correlator — groups related alerts to reduce noise
  • Codecov integration for coverage tracking
  • Agent Behavior Profiler with drift detection
  • Session Timeline — interactive Gantt chart with concurrency analysis
  • Alert Rules Builder dashboard

Performance (39 optimizations)

  • O(1) closed-form linear regression in memory leak detector
  • O(log n) window filtering via bisect timestamp index in quota
  • Single-pass metric extraction across capacity planner, drift, narrative, latency, and anomaly modules
  • Pre-computed LCS keys + fast-path identical sequences in session_diff
  • Cache model aggregates and eliminate redundant sorts in forecast
  • Amortized entropy syscall with pre-allocated random ID pool
  • Eliminated spread-copy in parseEventRow and reduced export allocations
  • Fixed LRU cache pollution in session search
  • Mann-Whitney U via sort-based rank-sum (O(n log n))
  • Single-pass GroupStats initialization (7 passes to 1)
  • MTBF computed in SQL with wrapped transactions
  • Flamegraph event-to-span placement O(EDlogS) + cached sentence tokenization
  • Static assets served before API middleware stack + covering index for analytics

Security (13 fixes)

  • Redact sensitive kwargs in decorator tracking (CWE-532)
  • ReDoS timeout guards for user-controlled regex
  • HTML-escape user-controlled data in dashboard template (CWE-79)
  • Sanitize agent_name inputs, cap window_hours in SLA
  • Add usedforsecurity=False to md5 calls
  • Restrict file permissions on config containing API key
  • Harden correlation-scheduler against DoS and resource exhaustion
  • Fix SQLite variable overflow and validate agent names in profiler
  • Cap unbounded query parameters for SQLite safety
  • Validate input types in PUT handlers
  • URL-encode CLI query parameters to prevent CWE-74 injection
  • Harden severity classification and annotation input validation
  • Input validation on anomaly endpoints

Bug Fixes (16)

  • Report truncated fields in ingest response
  • Update MODEL_PRICING with current models and add runtime override API
  • Fix ReferenceError in forecast trend detection
  • Cap event buffer and alert history to prevent memory leak
  • Correct daily session count aggregation in forecast
  • Align SQL column names with actual sessions/events schema
  • Patch 3 npm audit vulnerabilities (path-to-regexp ReDoS, brace-expansion, picomatch)
  • Validate session status against allowed values
  • Fix undefined name bug in cli_bottleneck

Refactoring (25 changes)

  • Extracted shared utilities (_utils.py): percentile, linear_regression, sparkline, format_duration, parse_iso, utcnow, new_id
  • Consolidated duplicated round/clamp utilities into lib/stats.js
  • Standardized CLI command signatures to args-only pattern
  • Migrated scorecards and pricing to createLazyStatements
  • Extracted statement cache to shared lib
  • Deduplicated across 20+ modules

Dependencies

  • Bumped: express-rate-limit 8.4.1, docker/build-push-action 7, codecov-action 6, actions/checkout 6, pydantic >=2.13.3, httpx >=0.28.1, setuptools >=82.0.1, better-sqlite3 12.9.0, pytest >=8.4.2
  • Docker: Added SBOM generation, build provenance attestation, Trivy vulnerability scanning

Documentation

  • Operations & Incident Response page
  • CLI Reference page and guide
  • Comprehensive docstrings for cost_optimizer module
  • API documentation for Profiler and Command Center endpoints

Full Changelog: v1.60.0...v1.61.0