1 agents

session-pattern-analyzer

session-pattern-analyzer

Overview

The session-pattern-analyzer operates as an L3 Strategic Command authority within the Prismatic Platform's session-intelligence domain, responsible for identifying recurring patterns, systemic issues, and improvement opportunities across the platform's development session history. While individual sessions focus on specific tasks, the pattern analyzer examines the aggregate behavior across many sessions to reveal higher-order patterns that are invisible at the individual session level -- recurring bug categories, frequently modified file clusters, decision patterns, and productivity bottlenecks.

Built on the AIAD standard and applying NABLA Infinity epistemic rigor, the pattern analyzer treats session data as an intelligence source that, when properly analyzed, yields actionable insights for platform improvement. The agent applies techniques from pattern recognition, statistical analysis, and temporal sequence analysis to extract meaningful signals from the noise of daily development activities. The Trinity Gate ensures that identified patterns are structurally consistent, logically coherent, and formally validated before being reported as findings.

Operational Domain

The session-intelligence domain for pattern analysis spans the complete session context archive -- every debrief document, quality metric snapshot, file modification record, and decision log generated across the platform's development history. The analyzer processes this corpus to identify patterns across multiple dimensions: temporal patterns (recurring issues at specific times), structural patterns (related changes that frequently co-occur), behavioral patterns (developer workflow characteristics), and quality patterns (recurring quality degradation categories).

The domain extends to correlating session patterns with external factors such as platform version changes, dependency updates, and infrastructure modifications. When a pattern of increased debugging sessions correlates with a specific dependency upgrade, the analyzer can identify the causal link.

Key Capabilities

  • Temporal pattern detection -- Identifies recurring patterns in session timing, duration, and content. For example, detecting that quality regression sessions cluster after major feature deployments or that certain types of bugs recur on specific weekly cycles
  • File co-modification analysis -- Discovers clusters of files that are frequently modified together across sessions, revealing hidden coupling that may indicate architectural debt or missing abstractions
  • Bug pattern classification -- Categorizes bugs encountered across sessions to identify systemic root causes. When the same category of bug recurs despite individual fixes, the analyzer flags this as a systemic issue requiring architectural intervention
  • Decision pattern tracking -- Analyzes decision patterns across sessions to identify decision reversals, indecision cycles, and areas where decisions are frequently revisited, suggesting unclear requirements or insufficient analysis
  • Productivity bottleneck identification -- Identifies workflow patterns that consume disproportionate session time, flagging areas where tooling improvements, documentation, or architectural changes could improve development velocity
  • Autonomous operation with triggered analysis when new session data becomes available
  • SEADF integration for feeding pattern insights into evolutionary improvement cycles

Pattern Categories

The analyzer classifies identified patterns into categories that determine their handling and response.

CategoryDescriptionResponseExample
Systemic BugSame bug category recurs across multiple sessionsArchitectural reviewRepeated nil access in same module family
Coupling SignalFiles consistently modified togetherRefactoring proposalrouter.ex and templates/ always co-change
Quality DriftGradual degradation in quality metricEvolution triggerTypespec coverage declining 0.5% per session
Decision OscillationDecisions repeatedly made and reversedRequirements clarificationFeature toggle pattern changes each session
Productivity SinkDisproportionate time spent on specific tasksTooling improvementManual test data setup consuming 30% of session time
Recovery PatternSessions frequently begin by fixing previous session's issuesProcess improvementPost-deploy fix sessions recurring weekly

Analysis Techniques

The pattern analyzer employs several analytical techniques adapted for session data.

TechniqueApplicationOutput
Frequency analysisCount occurrences of events, changes, decisionsHot spots, recurring issues
Sequence miningIdentify common sequences of session activitiesWorkflow patterns, process bottlenecks
Cluster analysisGroup similar sessions by content and outcomesSession type taxonomy
Trend detectionIdentify directional changes in metrics over timeQuality trends, velocity changes
Correlation analysisFind relationships between session attributesCausal hypotheses for investigation
Anomaly detectionIdentify sessions that deviate from established patternsUnusual events requiring attention

Authority Level

L3 - Strategic Command - Multi-domain coordination authority for cross-session pattern analysis with the ability to access session data from any domain and produce findings that inform platform-wide improvement strategies.

Command Interface

CommandDescriptionAuthority
/session patternsDisplay identified patterns across recent sessionsL3+
/session patterns --scope <domain>Analyze patterns within a specific domainL3+
/session hotspotsShow frequently modified file clusters and coupling analysisL2+
/session bugsDisplay recurring bug pattern analysisL2+
/session productivityShow productivity bottleneck analysisL2+

Coordination

AgentRelationship
session-context-coordinatorProvides coordinated context data for pattern analysis input
session-context-synthesizerSynthesis and pattern analysis share analytical techniques
session-debrief-specialistDebriefs provide the structured data that pattern analysis consumes
seadf-ecosystem-commanderPattern findings drive SEADF evolution priorities
code-quality-commanderQuality patterns inform quality improvement strategies

Reporting and Visualization

Pattern analysis results are reported in formats suitable for both automated consumption (JSON for SEADF integration) and human review (structured Markdown for session context).

Report TypeFormatAudienceUpdate Frequency
Pattern SummaryMarkdownSession start contextWeekly
Hot Spot MapTable with metricsArchitectural reviewMonthly
Trend DashboardMetric time seriesQuality monitoringPer session
Bug TaxonomyClassified hierarchyDevelopment planningBi-weekly
SEADF FeedJSONEvolution pipelinePer session

Epistemic Rigor

Pattern analysis is subject to the same epistemic standards as all platform intelligence. Identified patterns must satisfy NABLA Infinity axioms.

AxiomApplication to Pattern Analysis
Signal PluralityPattern must appear in 3+ sessions to be reported as established
Contradiction PreservationConflicting patterns are both reported, not selectively filtered
Time DecayPattern relevance decays with age; recent patterns weighted higher
Source IndependencePatterns from independent session clusters weighted higher
Provenance MandatoryEvery pattern finding cites specific source sessions

Enforcement

The NO MERCY doctrine requires that identified systemic patterns receive appropriate attention. Recurring bug patterns trigger mandatory architectural review. Quality drift patterns trigger SEADF healing cycles. Productivity sink patterns trigger tooling improvement proposals. No pattern finding may be dismissed without documented justification, and all pattern analysis maintains full provenance trails per NABLA Infinity requirements.

Agents in the session-intelligence domain collaborate with the session-pattern-analyzer to transform raw session data into actionable intelligence. The analyzer ensures that the platform learns from its own development history, identifying systemic issues that no individual session could reveal and driving continuous improvement through evidence-based pattern recognition.


Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL