investigate: dual status classifiers — DO-NOT-RECOMMEND unification (#2898)#2933
investigate: dual status classifiers — DO-NOT-RECOMMEND unification (#2898)#2933
Conversation
…iers (#2898) Investigation finding: DO-NOT-RECOMMEND unifying the two classifiers. WorkflowClassifier (pre-action routing, string input) and SessionDetectionMixin (post-hoc enforcement, transcript input) serve fundamentally different purposes with different input types, output taxonomies, and consumers. Adds outside-in regression tests that guard against unbounded keyword drift. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
🤖 Auto-fixed version bump The version in If you need a minor or major version bump instead, please update |
951ce5d to
5445549
Compare
|
🤖 Auto-fixed version bump The version in If you need a minor or major version bump instead, please update |
Repo Guardian - Action Required❌ 1 file violates the repository policy on ephemeral content ViolationFile: Why flagged: This is a point-in-time investigation report with temporal markers:
Investigation notes like this become stale as the codebase evolves and belong in:
Not in the repository as a permanent file. What to doOption 1: Remove the file
Option 2: Override The reason must explain why this temporal content should be preserved permanently.
|
…2898) (#2933) * investigate: add recommendation doc and tests for dual status classifiers (#2898) Investigation finding: DO-NOT-RECOMMEND unifying the two classifiers. WorkflowClassifier (pre-action routing, string input) and SessionDetectionMixin (post-hoc enforcement, transcript input) serve fundamentally different purposes with different input types, output taxonomies, and consumers. Adds outside-in regression tests that guard against unbounded keyword drift. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci: trigger full CI pipeline * [skip ci] chore: Auto-bump patch version --------- Co-authored-by: Ubuntu <azureuser@deva.ftnmxvem3frujn3lepas045p5c.xx.internal.cloudapp.net> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Summary
_status.pyis worth doingdocs/investigations/2898-status-classifiers.mdtests/outside_in/test_status_classifiers_investigation.pyFinding: DO-NOT-RECOMMEND
The Two Classifiers
WorkflowClassifierSessionDetectionMixinsrc/amplihack/workflows/classifier.py.claude/tools/amplihack/hooks/power_steering_checker/session_detection.pyThey serve different purposes, accept different inputs, and produce different output vocabularies. The apparent similarity is superficial.
What's Actually Shared
~8 keyword strings overlap (
investigate,understand,analyze,research,explore,how does,cleanup,clean up,organize). This does not justify coupling the two modules.If keyword drift becomes a concrete bug, a thin
_shared_keywords.pyconstants module (not a unified classifier) would be the right fix.Test Plan
uv run pytest tests/outside_in/test_status_classifiers_investigation.py -vQuality Audit
🤖 Generated with Claude Code