Skip to content

feat(admin): group harness feedback into named issues - #7768

Open
benjaminshafii wants to merge 3 commits into
devfrom
fix/harness-feedback-classification
Open

benjaminshafii wants to merge 3 commits into
devfrom
fix/harness-feedback-classification

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Harness feedback in Den admin now groups agent reports into named issues ("session.archive reports success when a required argument is missing") tagged by theme, instead of label buckets.

What problem does it solve?

Most real reports never reached a group, and the groups that formed were labels like "Tool error (tool: execute_capability)": they didn't say what was broken, merged unrelated bugs on one tool, and split one bug reported under two tool names.

What was the situation before?

On /admin/harness-feedback, 9 of 10 real reports sat ungrouped in "Needs review", and Slack posts carried only category and tool.

How is this implemented?

  • harness-feedback/classifier.ts: reworded Jev questions; best category wins when the gate is ≥ 0.60 and it scores ≥ 0.50 (no runner-up or lead rule).
  • harness-feedback/grouping.ts: Jev asks "same underlying defect?" against up to 24 same-org issues; joins the best match at ≥ 0.60.
  • llm/issue-naming-model.ts: no match → Sol 6.2 (same AI Gateway key, zero data retention) writes the title and picks a theme; output validated, failures retry then end in needs review.
  • worker.ts / repository.ts: one org's reports run in sequence; settle locks the org settings row and re-queues if an issue appeared meanwhile. Old label groups get named in place without a new Slack post.
  • Admin: theme filter, titles with theme/category tags, "Classify again" for needs-review reports. Slack shows title, theme, category, tool; links and mentions neutralized.

What else changed?

  • Tool names drop a leading functions. / tools. prefix.
  • Report lease 60s → 120s.
  • Migration 0217 adds nullable harness_feedback_group.theme.

Release note

none

Evidence

No E2E; harness-feedback*.api.test.ts (fake Jev, Sol and Slack) cover matching, naming, races, sanitizing and legacy naming. Replayed 10 real reports plus 6 synthetic ones against the live models: before, 1 classified and 9 needs review; after, 12 named issues, every reworded duplicate joined its original, and every different problem on the same tool stayed separate.

Design: P5, P6, S2, S3, C3, C7

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-den Ready Ready Preview Nov 25, 2026 9:55pm UTC
2 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Nov 25, 2026 9:55pm UTC
openwork-landing Skipped Skipped v0 Nov 25, 2026 9:55pm UTC

Request Review

This branch was successfully deployed

1 active and 2 inactive deployments
Preview – openwork-den — ab7d6160 Deployed Nov 25, 2026 by vercel[bot]
Preview – openwork-landing — ab7d6160 Deployed Nov 25, 2026 by vercel[bot]
Preview – openwork-app — ab7d6160 Deployed Nov 25, 2026 by vercel[bot]
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