diff --git a/pkg/agentdrain/data/default_weights.json b/pkg/agentdrain/data/default_weights.json index 5ed9cfb5f89..77fc9e54c8d 100644 --- a/pkg/agentdrain/data/default_weights.json +++ b/pkg/agentdrain/data/default_weights.json @@ -2,218 +2,129 @@ "error": { "clusters": [ { - "id": 4, + "id": 1, "size": 1, "stage": "error", "template": [ "stage=error", "reason=No", - "agentic-workflows", + "Serena", "MCP", "server", - "is", + "tools", + "are", "available", "in", "this", - "agent's", - "toolset.", - "MCP", + "session.", + "The", "tool", - "calls", - "are", - "not", - "exposed", - "as", - "callable", - "functions", - "here.", - "tool=agentic-workflows", + "list", + "includes", + "bash,", + "view,", + "edit,", + "grep,", + "glob,", + "task,", + "safeoutputs,", + "mcpscripts,", + "agenticworkflows,", + "github,", + "and", + "playwright", + "tools", + "—", + "but", + "no", + "Serena", + "MCP", + "tools.", + "tool=Serena", "MCP", "server", - "`logs`", - "tool", + "(activate_project,", + "find_symbol)", "type=missing_tool" ] }, { - "id": 5, - "size": 1, - "stage": "error", - "template": ["stage=error", "reason=The", "Serena", "MCP", "server", "is", "not", "available", "in", "this", "environment.", "No", "serena-*", "tools", "are", "registered.", "tool=Serena", "MCP", "server", "type=missing_tool"] - }, - { - "id": 6, + "id": 2, "size": 1, "stage": "error", "template": [ "stage=error", - "reason=Phase", - "0.2", - "prerequisite", - "check", - "failed:", - "close_discussion", - "safe-output", - "tool", - "is", - "required", + "data_type=GraphQL", + "comment", + "node", + "ID", + "reason=Needed", "to", - "close", - "previous", - "regulatory", - "reports", - "before", - "creating", - "a", - "new", - "one,", + "hide", + "spam", + "comment", + "via", + "hide_comment,", "but", - "it", - "is", - "not", "available", - "in", - "this", - "environment.", - "Available", - "tools:", - "create_discussion,", - "missing_tool,", - "missing_data,", - "[Content", - "truncated", - "due", - "to", - "length]", - "tool=close_discussion", - "safe-output", - "tool", - "type=missing_tool" + "GitHub", + "MCP", + "comment", + "reads", + "only", + "return", + "numeric", + "REST", + "comment", + "IDs.", + "type=missing_data" ] }, { - "id": 1, + "id": 3, "size": 1, "stage": "error", "template": [ "stage=error", - "reason=No", - "Sentry", + "reason=The", + "Serena", "MCP", - "tools", - "are", + "server", + "is", + "not", "available", "in", "this", "environment.", - "Live", - "span", - "data", - "could", - "not", - "be", - "queried.", - "Analysis", - "is", - "based", - "on", - "static", - "code", - "review", - "only.", - "tool=Sentry", - "MCP", - "(find_organizations,", - "search_events,", - "get_trace_details,", - "search_issues)", - "type=missing_tool" - ] - }, - { - "id": 2, - "size": 1, - "stage": "error", - "template": [ - "stage=error", - "reason=No", - "MCP", - "client", + "No", "tools", + "matching", + "`activate_project`", + "or", + "`find_symbol`", "are", - "available", + "registered", "in", - "this", - "session", - "to", - "call", - "the", - "agentic-workflows", - "MCP", - "server", - "directly.", - "Will", - "attempt", - "via", - "gh", - "aw", - "CLI", - "instead.", - "tool=agentic-workflows", + "my", + "tool", + "set.", + "tool=Serena", "MCP", "server", - "(logs", - "+", - "audit", - "tools)", + "(activate_project,", + "find_symbol)", "type=missing_tool" ] - }, - { - "id": 3, - "size": 1, - "stage": "error", - "template": [ - "stage=error", - "data_type=GitHub", - "authentication", - "credentials", - "/", - "agentic-workflows", - "MCP", - "server", - "access", - "reason=Calling", - "`logs`", - "and", - "`audit`", - "MCP", - "tools", - "(or", - "`gh", - "aw", - "logs`/`gh", - "aw", - "audit`", - "CLI", - "equivalents)", - "requires", - "GitHub", - "authentication,", - "which", - "is", - "not", - "present", - "in", - "this", - "session.", - "type=missing_data" - ] } ], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -251,7 +162,7 @@ "RareClusterThreshold": 2, "SimThreshold": 0.4 }, - "next_id": 7 + "next_id": 4 }, "finish": { "clusters": [ @@ -259,12 +170,21 @@ "id": 1, "size": 100, "stage": "finish", - "template": ["stage=finish", "\u003c*\u003e", "tokens=\u003cNUM\u003e"] + "template": [ + "stage=finish", + "\u003c*\u003e", + "tokens=\u003cNUM\u003e" + ] } ], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -308,14 +228,23 @@ "clusters": [ { "id": 1, - "size": 72, + "size": 15, "stage": "plan", - "template": ["stage=plan", "errors=\u003cNUM\u003e", "turns=\u003cNUM\u003e"] + "template": [ + "stage=plan", + "errors=\u003cNUM\u003e", + "turns=\u003cNUM\u003e" + ] } ], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -359,7 +288,12 @@ "clusters": null, "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -403,7 +337,12 @@ "clusters": null, "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -446,46 +385,7 @@ "tool_result": { "clusters": [ { - "id": 2, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "GitHub", - "Remote", - "MCP", - "authentication", - "test", - "PASSED.", - "Successfully", - "retrieved", - "3", - "open", - "issues", - "(#24660,", - "#24658,", - "#24653)", - "from", - "github/gh-aw", - "using", - "MCP", - "tools.", - "Authentication", - "with", - "GitHub", - "Actions", - "token", - "is", - "working", - "correctly.", - "status=noop" - ] - }, - { - "id": 3, + "id": 4, "size": 1, "stage": "tool_result", "template": [ @@ -494,16 +394,15 @@ "test", "complete", "—", - "no", - "PR", - "to", - "comment", - "on.", - "Results:", "12/12", "tools", - "available", - "✅", + "available.", + "Results:", + "##", + "Agent", + "Container", + "Tool", + "Check", "|", "Tool", "|", @@ -587,7 +486,9 @@ "|", "✅", "|", - "10.0.201", + "21.0.10", + "(OpenJDK", + "Temurin)", "|", "|", "dotnet", @@ -601,12 +502,19 @@ "tools", "available", "✅", - "PASS", + "—", + "PASS.", + "No", + "PR/issue", + "context", + "to", + "comment", + "on.", "status=noop" ] }, { - "id": 4, + "id": 5, "size": 1, "stage": "tool_result", "template": [ @@ -616,451 +524,64 @@ "needed:", "Triage", "run", - "23991201561", + "24111901010", "found", - "3", + "7", "open", - "agent", "PRs", - "(#24503,", - "#24610,", - "#24623),", + "(5", + "Copilot-authored,", + "2", + "dependabot),", + "but", "all", - "originating", + "originate", "from", "same-repo", "branches", - "(github/gh-aw", - "→", - "github/gh-aw).", + "(head.repo.full_name", + "==", + "base.repo.full_name", + "==", + "'github/gh-aw').", "Per", "fork-only", "triage", "policy,", - "same-repo", + "only", "PRs", - "are", - "excluded", + "opened", "from", - "triage.", - "Since", - "last", - "run:", - "PRs", - "#24544,", - "#24539,", - "#24441", - "were", - "closed/merged.", - "2", - "new", + "forks", + "are", + "in", + "scope.", + "Zero", + "fork", "PRs", - "detected:", - "#24610", - "(Tavily", - "MCP", - "docs", - "fix", - "+", - "mcp", - "inspect", - "bug)", - "and", - "#24623", - "(WIP", - "CI", - "Cleaner", - "fix).", - "Memory", - "updated.", - "status=noop" - ] - }, - { - "id": 5, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=Deep", - "audit", - "complete.", - "Gathered", - "data", - "via:", - "started", - "local", - "gh-aw", - "MCP", - "server", - "on", - "port", - "9877", - "(logs/audit", - "tools", - "require", - "GitHub", - "auth", - "—", - "unavailable", + "exist", "in", - "sandbox),", - "queried", - "GitHub", - "MCP", - "server", - "for", - "PR/issue", - "data,", - "read", - "workflow", - "source", - "files.", - "Created", - "GitHub", - "issue", - "with", - "full", - "analysis", - "including", - "7", - "audited", - "runs,", - "6", - "root", - "causes,", - "and", - "6", - "prioritized", - "recommendations", - "targeting", - "85%", - "token", - "reduction.", - "status=noop" - ] - }, - { - "id": 8, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Scanned", "the", - "repository", - "for", - "SQL", - "injection", - "vulnerabilities.", - "The", - "codebase", - "(Go", - "+", - "JavaScript)", - "does", - "not", - "use", - "any", - "SQL", - "databases", + "backlog", "—", - "no", - "SQL", - "libraries", - "are", - "imported", - "in", - "Go", - "files", - "and", - "no", - "SQL", - "queries", - "are", - "executed", - "in", - "JavaScript", - "files.", - "The", - "only", - "SQL-related", - "content", - "found", - "is", - "a", - "test", - "fixture", - "in", - "autofix_code_scanning_alert.test.cjs", - "showing", - "a", - "correctly", - "parameterized", - "query", - "as", - "example", - "test", - "data.", - "No", - "SQL", - "injection", - "vulnerabilities", - "exist.", - "status=noop" - ] - }, - { - "id": 11, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=All", - "Safe", - "Outputs", - "conformance", - "checks", - "passed", - "-", - "no", - "issues", - "to", - "report.", - "18/18", - "checks", - "passed", - "(SEC-001", - "through", - "SEC-005,", - "USE-001", - "through", - "USE-003,", - "REQ-001", - "through", - "REQ-003,", - "IMP-001", - "through", - "IMP-003,", - "MCE-001,", - "MCE-002,", - "CI-001,", - "CI-002)", + "consistent", "with", - "0", - "Critical,", - "0", - "High,", - "0", - "Medium,", - "0", - "Low", - "failures.", - "Run", - "ID:", - "23988410540,", - "Date:", - "2026-04-04.", - "status=noop" - ] - }, - { - "id": 13, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=✅", - "Daily", - "malicious", - "code", - "scan", - "completed.", - "Analyzed", - "183", - "commits", - "and", - "308", - "source", - "files", - "changed", + "previous", + "runs", + "(0", + "fork", + "PRs", "in", - "the", - "last", - "3", - "days.", - "No", - "suspicious", - "patterns", - "detected.", - "**Scan", - "coverage:**", - "-", - "Authors:", - "7", - "known", - "contributors", - "(Copilot,", - "github-actions[bot],", - "Landon", - "Cox,", - "Peli", - "de", - "Halleux,", - "Don", - "Syme,", - "Jiaxiao", - "Zhou,", - "dependabot[bot])", - "-", - "Files", - "scanned:", - "308", - "source", - "files", - "(.go,", - ".cjs,", - ".sh,", - ".py)", - "-", - "Total", - "changed", - "files:", - "744", - "**Patterns", - "checked:**", - "-", - "Secret", - "exfiltration", - "(env", - "vars", - "+", - "network", - "calls)", - "-", - "Out-of-context", - "file", - "locations", - "-", - "Suspicious", - "network", - "calls", - "to", - "unexpected", - "domains", - "-", - "Base64/obfuscation", - "patterns", - "-", - "Privilege", - "escalation", + "run", + "24097842638", "and", - "dangerous", - "exec", - "patterns", - "-", - "Newly", - "added", - "files", - "reviewed", - "individually", - "**Key", - "findings", - "(all", - "benign):**", - "-", - "New", - "`pkg/agentdrain/`", - "package:", - "legitimate", - "log", - "pattern", - "mining", - "library", - "-", - "New", - "`actions/setup/js/effective_tokens.cjs`", - "+", - "`parse_token_usage.cjs`:", - "token", - "metering", - "utilities", - "-", - "New", - "`actions/setup/js/create_labels.cjs`:", - "GitHub", - "label", - "management", - "utility", - "-", - "New", - "`actions/setup/sh/copy_copilot_session_state.sh`:", - "copies", - "session", - "data", + "24081593583).", + "Triage", + "state", + "saved", "to", - "artifact", - "dir", - "for", - "secret-redacted", - "upload", - "-", - "Base64", - "usage", - "in", - "test", - "files:", - "standard", - "GitHub", - "API", - "mock", - "patterns", - "only", - "-", - "All", - "curl/wget", - "calls", - "target", - "github.com,", - "api.github.com,", - "or", - "localhost", - "only", - "status=noop" - ] - }, - { - "id": 14, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=Contribution", - "check", - "complete", - "for", - "github/gh-aw#24579.", - "Verdict:", - "🟢", - "Aligned", - "/", - "lgtm.", - "Automated", - "dependency", - "lock", - "file", - "update", - "by", - "Daily", - "Workflow", - "Updater", - "bot.", - "No", - "issues", - "found.", + "repo", + "memory.", "status=noop" ] }, @@ -1075,249 +596,58 @@ "needed:", "Analyzed", "module", - "`cloud.google.com/go/auth`", - "(v0.16.5)", - "and", + "`github.com/anthropics/anthropic-sdk-go`", + "(MIT", + "license).", + "Full", + "SBOM", + "scan", + "of", "all", - "its", - "transitive", + "107", + "Go", "dependencies", - "(google/s2a-go,", - "googleapis/enterprise-certificate-proxy,", - "googleapis/gax-go,", - "google.golang.org/grpc,", - "opentelemetry", - "packages,", - "golang.org/x/*", - "packages).", - "All", - "use", - "Apache-2.0", - "or", - "BSD", - "licenses", - "—", - "no", - "GPL-type", - "licenses", - "detected.", - "State", - "updated", - "in", - "cache-memory,", - "module", - "added", - "to", - "checked_modules", - "list.", - "status=noop" - ] - }, - { - "id": 6, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Reviewed", - "30", - "workflow", - "runs", - "active", - "in", - "the", - "last", - "24", - "hours.", - "Identified", - "5", - "report-generating", - "workflows:", - "daily-observability-report,", - "daily-safe-output-optimizer,", - "copilot-token-optimizer,", - "ci-doctor,", - "and", - "dev-hawk.", - "All", - "are", - "compliant", - "—", - "the", - "first", - "3", - "include", - "`shared/reporting.md`", - "(which", - "enforces", - "h3", - "headers", - "and", - "progressive", - "disclosure),", - "ci-doctor", - "has", - "explicit", - "\"\u003c*\u003e\"", - "guidance,", - "and", - "dev-hawk", - "uses", - "proper", - "###/####", - "headers", - "with", - "\u003cdetails\u003e", - "tags", - "in", - "its", - "output", - "templates.", - "No", - "style", - "normalization", - "issues", - "found.", - "Non-reporting", - "workflows", - "(grumpy-reviewer,", - "issue-monster,", - "changeset,", - "refiner,", - "smoke", - "tests)", - "were", - "excluded", - "as", - "they", - "don't", - "generate", - "structured", - "reports.", - "status=noop" - ] - }, - { - "id": 7, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Analyzed", - "109", - "workflow", - "runs", - "from", - "the", - "last", - "24", - "hours", - "across", - "all", - "agentic", - "workflows.", - "Found", - "7", - "runs", - "with", - "active", - "safe", - "output", - "usage", - "(Smoke", - "Claude,", - "Smoke", - "Copilot,", - "Agent", - "Container", - "Smoke", - "Test,", - "Daily", - "Safe", - "Output", - "Integrator,", - "Daily", - "Copilot", - "Token", - "Usage", - "Audit,", - "Daily", - "Project", - "Performance", - "Summary", - "Generator).", - "Zero", - "safe", - "output", - "schema", - "validation", - "errors", - "were", - "detected", - "—", + "found", "no", - "wrong", - "field", - "names,", - "missing", - "required", - "fields,", + "GPL,", + "LGPL,", "or", - "incorrect", - "schema", - "types.", + "AGPL", + "licenses.", "All", - "24", - "safe", - "output", - "items", - "processed", - "across", - "these", - "runs", - "succeeded", - "(0", - "failures).", - "The", - "only", - "\"\u003c*\u003e\"", - "was", - "send_slack_message", - "in", - "Smoke", - "Copilot,", - "which", - "is", - "an", - "intentional", - "custom", - "safe", - "output", - "job", - "handler", - "and", - "expected", - "behavior.", - "No", - "tool", - "description", - "improvements", + "licenses", "are", - "needed", - "at", - "this", - "time.", + "permissive", + "(MIT,", + "Apache-2.0,", + "BSD-2-Clause,", + "BSD-3-Clause,", + "ISC).", + "One", + "package", + "(`github.com/fatih/color`)", + "had", + "an", + "unknown", + "scancode", + "reference", + "but", + "confirmed", + "MIT", + "on", + "pkg.go.dev.", + "Cache", + "updated:", + "10/107", + "modules", + "checked", + "so", + "far.", "status=noop" ] }, { - "id": 9, + "id": 2, "size": 1, "stage": "tool_result", "template": [ @@ -1325,235 +655,94 @@ "message=No", "action", "needed:", - "All", - "38", - "safe-output", - "types", - "already", - "have", + "GitHub", + "Remote", + "MCP", + "authentication", "test", - "workflows", - "in", - "pkg/cli/workflows/", + "PASSED.", + "Successfully", + "used", + "GitHub", + "MCP", + "tools", + "to", + "read", + "repository", + "data", "and", - "Go", - "compiler", - "tests", - "in", - "pkg/workflow/compiler_safe_outputs_config_test.go.", - "Coverage", - "is", - "complete", - "—", - "every", - "type", - "(create-issue,", - "create-discussion,", - "update-discussion,", - "close-discussion,", - "close-issue,", - "close-pull-request,", - "mark-pull-request-as-ready-for-review,", - "add-comment,", - "create-pull-request,", - "create-pull-request-review-comment,", - "submit-pull-request-review,", - "reply-to-pull-request-review-comment,", - "resolve-pull-request-review-thread,", - "create-code-scanning-alerts,", - "autofix-code-scanning-alert,", - "add-labels,", - "remove-labels,", - "add-reviewer,", - "assign-milestone,", - "assign-to-agent,", - "assign-to-user,", - "unassign-from-user,", - "update-issue,", - "update-pull-request,", - "push-to-pull-request-branch,", - "upload-asset,", - "update-release,", - "create-agent-session,", - "update-project,", - "create-project,", - "create-project-status-update,", - "link-sub-issue,", - "hide-comment,", - "set-issue-type,", - "dispatch-workflow,", - "call-workflow,", - "missing-tool,", - "missing-data,", - "noop)", + "list", + "open", + "issues", + "(#25231,", + "#25226).", + "Authentication", + "with", + "GitHub", + "Actions", + "token", "is", - "covered.", + "working", + "correctly.", "status=noop" ] }, { - "id": 10, + "id": 3, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", - "message=###", - "🧹", - "Draft", - "PR", - "Cleanup", - "Summary", - "**Run", - "Date**:", - "2026-04-04", - "####", - "Statistics", - "-", - "**Total", - "Draft", - "PRs**:", - "1", - "-", - "**Exempt", - "from", - "Cleanup**:", - "0", - "-", - "**Active", - "(\u003c", - "10", - "days)**:", - "1", - "—", - "PR", - "#24585", - "\"\u003c*\u003e\"", - "(created", - "~34", - "minutes", - "ago)", - "-", - "**Warned", - "(10-13", - "days)**:", - "0", - "-", - "**Closed", - "(14+", - "days)**:", - "0", - "####", - "Actions", - "Taken", - "-", - "**New", - "Warnings", - "Added**:", - "0", - "-", - "**PRs", - "Closed**:", - "0", - "-", - "**PRs", - "Skipped", - "(exempt)**:", - "0", - "No", - "action", - "needed:", - "Only", - "1", - "open", - "draft", - "PR", - "exists", - "and", - "it", - "was", - "created", - "less", - "than", - "1", - "hour", - "ago", - "—", - "well", - "within", - "the", - "active", - "threshold", - "of", - "\u003c10", - "days.", - "---", - "*Draft", - "PR", - "Cleanup", + "message=Documentation", + "unbloat", "workflow", - "run:", - "23988424621*", - "status=noop" - ] - }, - { - "id": 12, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=Smoke", - "test", "complete.", - "No", - "PR", - "to", - "comment", + "Processed", + "safe-outputs.md", + "(reference", + "documentation):", + "removed", + "93", + "lines", + "and", + "398", + "words", + "across", + "7", + "targeted", + "edits", + "(compiled", + "output", + "section,", + "redundant", + "bullet", + "lists,", + "verbose", + "examples).", + "Pull", + "request", + "created", "on", - "(no", - "pull-request-number", - "in", - "context).", - "Results:", - "Redis", - "PING", - "✅", - "PONG", - "received,", - "Redis", - "SET/GET", - "✅", - "value", - "round-tripped", - "(service-ports-ok),", - "Redis", - "INFO", - "✅", - "server", - "info", - "retrieved", - "(redis", - "7.4.8).", - "All", - "3/3", - "tests", - "passed", - "using", - "nc/netcat", - "(redis-cli", - "not", - "available).", - "host.docker.internal:6379", - "accessible", - "via", - "--allow-host-service-ports.", + "branch", + "docs/unbloat-safe-outputs.", + "Cache", + "memory", + "updated", + "with", + "2026-04-08", + "entry.", "status=noop" ] } ], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -1591,6 +780,6 @@ "RareClusterThreshold": 2, "SimThreshold": 0.4 }, - "next_id": 15 + "next_id": 6 } -} +} \ No newline at end of file