Skip to content

Add 'legal' as a task cluster pattern to reduce 'other' bucket #11

@iRonin

Description

@iRonin

Problem

"other" is currently the largest category at 30% of sessions (59 sessions). This suggests the classifier is missing a significant cluster of user behavior.

Proposed addition

Add a "legal" category to _CLUSTERS in hermes_hud/collectors/patterns.py:

("legal", ["affidavit", "exhibit", "pleading", "brief", "court", "filing", "cpr", "rule ", "defendant", "claimant", "injunction", "discovery", "deposition", "ECSC", "application notice", "witness"]),

Rationale

Users with litigation workloads would have many sessions involving court documents, evidence review, legal research, and filing preparation. These sessions are currently lumped into "other" because the existing keywords don't cover legal terminology.

Impact

  • Would reclassify a meaningful portion of the "other" bucket
  • Gives legal users better visibility into their agent usage patterns
  • Aligns with Hermes' documented ECSC litigation capabilities

Placement

Put "legal" near the top of _CLUSTERS (after "git ops") so it matches before "other" as a fallback.

Files to modify

  • hermes_hud/collectors/patterns.py (line 23 area)
  • hermes_hud/models.py if any constants need updating

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions