From 394d3a20810aa1dd330bd0b7295274023394579d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 24 Apr 2026 05:20:31 +0000 Subject: [PATCH] chore: update drain3 default weights from daily training run --- pkg/agentdrain/data/default_weights.json | 1314 ++++------------------ 1 file changed, 214 insertions(+), 1100 deletions(-) diff --git a/pkg/agentdrain/data/default_weights.json b/pkg/agentdrain/data/default_weights.json index 74ea4e2b819..fec19e7ed95 100644 --- a/pkg/agentdrain/data/default_weights.json +++ b/pkg/agentdrain/data/default_weights.json @@ -1,106 +1,14 @@ { "error": { - "clusters": [ - { - "id": 1, - "size": 1, - "stage": "error", - "template": [ - "stage=error", - "reason=The", - "tools", - "`activate_project`", - "and", - "`find_symbol`", - "are", - "not", - "available", - "in", - "this", - "environment.", - "These", - "appear", - "to", - "be", - "Serena", - "language", - "server", - "MCP", - "tools,", - "which", - "are", - "not", - "listed", - "among", - "the", - "tools", - "I", - "have", - "access", - "to.", - "tool=activate_project", - "/", - "find_symbol", - "(Serena", - "MCP", - "tools)", - "type=missing_tool" - ] - }, - { - "id": 2, - "size": 1, - "stage": "error", - "template": [ - "stage=error", - "reason=Phase", - "0", - "prerequisite", - "check", - "failed:", - "the", - "`close_discussion`", - "safe-output", - "tool", - "is", - "required", - "to", - "archive", - "previous", - "daily", - "regulatory", - "discussions", - "before", - "creating", - "a", - "new", - "report,", - "but", - "it", - "is", - "not", - "available", - "in", - "the", - "current", - "safe-output", - "toolset", - "(only:", - "create_discussion,", - "missi", - "[Content", - "truncated", - "due", - "to", - "length]", - "tool=close_discussion", - "type=missing_tool" - ] - } - ], + "clusters": [], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -138,7 +46,7 @@ "RareClusterThreshold": 2, "SimThreshold": 0.4 }, - "next_id": 3 + "next_id": 1 }, "finish": { "clusters": [ @@ -146,12 +54,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", @@ -195,14 +112,23 @@ "clusters": [ { "id": 1, - "size": 58, + "size": 20, "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", @@ -243,10 +169,15 @@ "next_id": 2 }, "retry": { - "clusters": null, + "clusters": [], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -287,10 +218,15 @@ "next_id": 1 }, "tool_call": { - "clusters": null, + "clusters": [], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -333,232 +269,80 @@ "tool_result": { "clusters": [ { - "id": 12, + "id": 6, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "action", - "needed:", + "valid", + "markdown", + "spellcheck", + "fixes", + "needed", + "for", + "docs/src/content/.", "The", - "pre-agent", - "step", - "did", - "not", - "produce", - "a", - "pr-filter-results.json", - "file", + "spellcheck", + "artifact", + "files", "at", - "the", - "workspace", - "root.", - "Without", - "the", - "pre-filtered", - "PR", - "list,", + "/tmp/gh-aw/spellcheck/", + "do", + "not", + "exist,", + "indicating", "no", - "contribution", - "checks", - "could", - "be", - "dispatched.", - "The", - "repository", - "currently", - "has", - "2", - "open", - "PRs", - "(#25532,", - "#25403),", - "but", - "both", - "appear", - "to", - "be", - "authored", - "by", - "`@Copilot`", - "(the", - "coding", - "agent)", - "and", - "may", - "have", - "been", - "filtered", - "out", + "findings", + "were", + "produced", "by", "the", - "pre-agent", - "step.", - "No", - "report", - "issue", - "was", - "created.", + "spellcheck", + "job.", "status=noop" ] }, { - "id": 13, + "id": 7, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "DIFC", - "integrity-filtered", - "events", - "found", - "in", - "the", - "last", - "7", - "days.", - "The", - "filtered-logs.json", - "contained", - "16", - "workflow", - "runs", - "(IDs:", - "24207309248,", - "24204964096,", - "24204964101,", - "23943687887,", - "23943472009,", - "23940778805,", - "24197644015,", - "24193714728,", - "24189259135,", - "24186119866,", - "24175322446,", - "24172071943,", - "24148090336,", - "24142323339,", - "24138665837,", - "24137591061),", - "but", - "none", - "of", - "the", - "audited", - "runs", - "contained", - "`gateway_analysis.filtered_events`", - "data", - "—", - "no", - "DIFC", - "integrity-filtering", - "events", + "test", + "files", "were", - "recorded", - "for", - "this", - "repository", + "added", + "or", + "modified", "in", - "the", - "analysis", - "window.", - "status=noop" - ] - }, - { - "id": 14, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Reviewed", - "187", - "lock", - "files", - "(last", - "run", - "was", - "2026-04-08,", - "within", - "the", - "3-day", - "skip", - "threshold).", - "Only", - "change", - "since", - "last", - "run", - "is", - "e406559", - "(test", - "fix,", - "no", - "step", - "name", - "changes).", - "Verified", - "open", - "issues", - "#23941", - "(Cache", - "naming,", - "3", - "files)", - "and", - "aw_chkout2", - "(Checkout", - "code,", - "2", - "files)", - "are", - "still", - "open.", - "Confirmed", - "aw_safeout1", + "this", + "PR.", + "PR", + "#28174", "is", - "now", - "resolved:", - "'Upload", - "Safe", - "Output", - "Items'", - "(singular)", - "no", - "longer", - "exists,", - "replaced", - "by", - "'Upload", - "Safe", - "Outputs", - "Items'", - "(plural).", - "'Upload", - "Safe", - "Outputs", - "Assets'", + "a", + "documentation-only", + "change", + "(docs:", + "document", + "Claude", + "bypassPermissions/--allowed-tools", + "security", + "boundary)", + "—", + "only", + ".md", "and", - "'Upload", - "Safe", - "Outputs", - "Items'", - "confirmed", - "as", - "distinct", - "intentional", - "steps", - "(different", - "upload", - "paths).", - "Cache", - "updated.", + ".changeset", + "files", + "were", + "modified.", + "Test", + "Quality", + "Sentinel", + "skipped.", "status=noop" ] }, @@ -569,728 +353,142 @@ "template": [ "stage=tool_result", "message=No", - "action", - "needed:", - "Analyzed", - "module", - "`github.com/aymanbagabas/go-osc52/v2`", - "(next", - "in", - "round-robin", - "from", - "107", - "Go", + "GPL", "dependencies", + "found", "in", - "SBOM).", - "Module", - "is", - "MIT", - "licensed,", - "has", - "no", - "transitive", - "dependencies,", - "and", - "introduces", - "no", - "GPL-type", - "licenses.", - "Also", - "verified", - "licenses", + "Go", + "packages.", + "Analyzed", + "the", + "SBOM", "for", - "30+", - "additional", - "modules", - "this", - "run", - "(all", - "MIT,", - "BSD-2-Clause,", - "BSD-3-Clause,", - "Apache-2.0,", - "or", - "Unlicense", - "—", - "all", - "compatible", - "with", - "MIT).", - "Cache", - "state", - "updated", - "to", - "track", - "progress", - "(12/107", - "modules", - "checked).", - "status=noop" - ] - }, - { - "id": 3, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=Smoke", - "test", - "complete", - "—", - "all", - "12/12", - "tools", - "available:", - "|", - "Tool", - "|", - "Status", - "|", - "Version", - "|", - "|------|--------|---------|", - "|", - "bash", - "|", - "✅", - "|", - "5.2.21", - "|", - "|", - "sh", - "|", - "✅", - "|", - "available", - "|", - "|", - "git", - "|", - "✅", - "|", - "2.53.0", - "|", - "|", - "jq", - "|", - "✅", - "|", - "1.7", - "|", - "|", - "yq", - "|", - "✅", - "|", - "v4.52.5", - "|", - "|", - "curl", - "|", - "✅", - "|", - "8.5.0", - "|", - "|", - "gh", - "|", - "✅", - "|", - "2.89.0", - "|", - "|", - "node", - "|", - "✅", - "|", - "v20.20.2", - "|", - "|", - "python3", - "|", - "✅", - "|", - "3.12.3", - "|", - "|", - "go", - "|", - "✅", - "|", - "1.24.13", - "|", - "|", - "java", - "|", - "✅", - "|", - "openjdk", - "21.0.10", - "|", - "|", - "dotnet", - "|", - "✅", - "|", - "10.0.201", - "|", - "**Result:**", - "12/12", - "tools", - "available", - "✅", - "—", - "PASS", - "status=noop" - ] - }, - { - "id": 4, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Queried", - "all", - "open", - "issues", - "in", "github/gh-aw", - "for", - "no:label", - "and", - "found", - "0", - "unlabeled", - "issues.", + "(105", + "Go", + "dependencies).", "All", - "open", - "issues", - "already", - "have", - "at", - "least", - "one", - "label", - "applied", - "—", - "the", - "unlabeled", - "percentage", - "is", - "currently", - "0%,", - "well", - "below", - "the", - "5%", - "target", - "threshold.", - "status=noop" - ] - }, - { - "id": 6, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "SQL", - "injection", - "vulnerabilities", - "found.", + "Go", + "packages", + "use", + "permissive", + "licenses", + "(MIT,", + "Apache-2.0,", + "BSD,", + "ISC).", "The", - "gh-aw", - "codebase", - "has", - "no", - "SQL", - "database", - "usage", - "—", - "no", - "imports", - "of", - "database/sql,", - "sqlx,", - "gorm,", - "pgx,", - "or", - "any", - "SQL", - "ORM/driver.", - "All", - "\"\u003c*\u003e\"", - "references", + "16", + "UNKNOWN-licensed", + "Go", + "packages", + "were", + "spot-checked", + "and", + "confirmed", + "MIT/Apache-2.0.", + "The", + "only", + "LGPL", + "entries", "in", "the", - "codebase", + "SBOM", "are", - "in", - "test", - "fixture", - "data", - "representing", - "Docker", - "service", - "configurations", - "in", - "GitHub", - "Actions", - "workflows,", + "npm", + "packages", + "(`@img/sharp-libvips-`*", + "and", + "`@opentelemetry/api`)", + "from", + "the", + "docs", + "website,", "not", - "application", - "database", - "access.", - "There", - "is", - "no", - "attack", - "surface", - "for", - "SQL", - "injection", - "in", + "the", + "Go", + "binary.", + "Checked", + "module", "this", - "repository.", + "run:", + "charm.land/bubbles/v2", + "(MIT).", + "Cache", + "state", + "updated.", "status=noop" ] }, { - "id": 7, - "size": 1, + "id": 2, + "size": 3, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "action", + "ADR", + "enforcement", "needed:", - "Issue", - "#25548", - "already", - "has", - "appropriate", - "labels", - "(enhancement,", - "awf).", - "The", - "issue", - "is", - "a", - "feature", - "request", - "to", - "add", - "--diagnostic-logs", - "flag", - "for", - "collecting", - "Docker", - "operational", - "logs", - "on", - "AWF", - "failures.", - "Author", - "is", - "a", - "COLLABORATOR,", - "so", - "no", - "community", - "label", - "needed.", - "status=noop" - ] - }, - { - "id": 9, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=All", - "Safe", - "Outputs", - "conformance", - "checks", - "passed", - "-", - "no", - "issues", - "to", - "report.", - "Script", - "exited", - "with", - "code", - "0.", - "Results:", - "0", - "Critical,", - "0", - "High,", - "0", - "Medium,", - "2", - "Low", - "failures.", - "The", - "2", - "LOW", - "findings", - "(USE-001:", - "generate_safe_outputs_tools.cjs", - "may", - "not", - "use", - "standardized", - "error", - "codes;", - "USE-003:", - "upload_artifact.cjs", - "missing", - "🎭", - "emoji", - "in", - "staged", - "mode)", - "do", + "PR", + "\u003c*\u003e", + "does", "not", - "meet", - "the", - "threshold", - "for", - "issue", - "creation", - "(requires", - "5+", - "LOW", - "issues", - "in", - "same", - "category).", - "status=noop" - ] - }, - { - "id": 10, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=✅", - "Daily", - "malicious", - "code", - "scan", - "completed.", - "Analyzed", - "296", - "code", - "files", - "(145", - "commits)", - "from", + "have", "the", - "last", - "3", - "days", - "across", - "authors:", - "Copilot", - "(100),", - "github-actions[bot]", - "(27),", - "dependabot[bot]", - "(9),", + "'implementation'", + "label", "and", - "4", - "human", - "contributors.", - "**Patterns", - "scanned:**", - "-", - "Secret", - "exfiltration", - "(env", - "vars", - "+", - "network", - "calls)", - "-", - "Obfuscated/encoded", - "payloads", - "(base64,", - "hex)", - "-", - "Suspicious", - "eval/exec", - "usage", - "-", - "External", - "unauthorized", - "HTTP", - "calls", - "-", - "Unusual", - "file", - "additions", - "in", - "unexpected", - "locations", - "-", - "Suspicious", - "system", - "operations", - "-", - "Out-of-context", - "cryptographic", - "operations", - "**Key", - "changes", - "reviewed:**", - "-", - "New", - "`copilot_driver.cjs`:", - "Legitimate", - "retry", - "wrapper", - "for", - "Copilot", - "CLI", - "subprocess", - "-", - "New", - "`upload_artifact.cjs`:", - "Safe-output", - "artifact", - "upload", - "handler", - "with", - "path", - "traversal", - "protection", - "-", - "New", - "`start_cli_proxy.sh`", - "/", - "`stop_cli_proxy.sh`:", - "Docker-based", - "CLI", - "proxy", - "lifecycle", - "scripts", - "using", - "project-scoped", - "images", - "(ghcr.io/github/gh-aw-mcpg)", - "-", - "New", - "`runner_guard.go`:", - "Taint", - "analysis", - "scanner", - "integration", - "with", - "input", - "validation", - "(#nosec", - "comment", - "appropriately", - "placed)", - "-", - "`sanitize_content_core.cjs`", - "changes:", - "Security", - "hardening", - "(homoglyph", - "normalization,", - "percent-encoding", - "bypass", - "prevention)", - "-", - "`eval()`", - "uses:", - "All", - "in", - "`.test.cjs`", - "files", - "for", - "test", - "harness", - "simulation", - "—", - "pre-existing", - "pattern,", - "not", + "has", + "0", "new", - "production", + "lines", + "of", "code", - "-", - "GITHUB_TOKEN", - "references:", - "All", - "legitimate", - "(proxy", - "setup,", - "test", - "mocks", - "with", - "`delete`", - "to", - "clean", - "env)", - "**No", - "suspicious", - "patterns", - "detected.**", - "All", - "changes", - "align", - "with", - "the", - "repository's", - "purpose", - "(GitHub", - "CLI", - "extension", - "for", - "agentic", - "workflows)", - "and", - "show", - "security-positive", - "patterns", - "(input", - "validation,", - "token", - "handling", - "hardening,", - "sanitization", - "improvements).", + "in", + "business", + "logic", + "directories", + "(threshold:", + "100).", "status=noop" ] }, { - "id": 11, - "size": 1, + "id": 3, + "size": 4, "stage": "tool_result", "template": [ "stage=tool_result", - "message=##", - "Service", - "Ports", - "Smoke", - "Test", - "(Redis)", - "|", - "Test", - "|", - "Status", - "|", - "|------|--------|", - "|", - "Redis", - "PING", - "|", - "✅", - "PONG", - "received", - "|", - "|", - "Redis", - "SET/GET", - "|", - "✅", - "Value", - "round-tripped", - "(`service-ports-ok`)", - "|", - "|", - "Redis", - "INFO", - "|", - "✅", - "Server", - "info", - "retrieved", - "(redis", - "7.4.8)", - "|", - "**Result:**", - "3/3", - "tests", - "passed", - "✅", - "Note:", - "`redis-cli`", - "was", - "not", - "available;", - "all", - "tests", - "used", - "`nc`", - "(netcat)", - "with", - "raw", - "Redis", - "protocol.", - "No", + "message=smoke-ci:", + "push", + "event", + "-", + "no", "PR", - "number", - "available", - "in", - "this", - "workflow", "context,", - "so", - "reporting", - "via", - "noop.", + "no", + "action", + "needed", "status=noop" ] }, { - "id": 2, + "id": 4, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", - "message=No", - "action", - "needed:", - "GitHub", - "Remote", - "MCP", - "authentication", - "test", - "passed.", - "MCP", - "tools", - "(github-issue_read,", - "github-list_issues)", - "successfully", - "accessed", - "github/gh-aw", - "using", + "message=Labels", + "applied", + "to", "the", - "GitHub", - "Actions", - "token.", - "Retrieved", - "open", - "issues", - "without", - "authentication", - "errors.", + "triggering", + "issue:", + "bug,", + "workflows,", + "automation,", + "community", "status=noop" ] }, @@ -1301,121 +499,37 @@ "template": [ "stage=tool_result", "message=No", - "action", - "needed:", - "Triage", - "complete", - "for", - "Run", - "#24220921278.", - "Found", - "2", - "open", - "Copilot-authored", - "PRs", - "(#25561", - "draft,", - "#25553", - "open),", - "both", - "originating", - "from", - "same-repo", - "branches", - "(not", - "forks).", - "Per", - "fork-only", - "triage", - "policy,", - "0", - "PRs", + "test", + "files", "were", - "eligible", - "for", - "triage.", - "PR", - "#25403", - "(previously", - "tracked", - "as", - "draft)", - "is", - "now", - "closed.", - "Memory", - "updated", - "with", - "current", - "state.", - "status=noop" - ] - }, - { - "id": 8, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Analyzed", - "3", - "open", - "draft", - "PRs", + "added", + "or", + "modified", "in", - "github/gh-aw.", - "All", - "3", - "were", - "updated", - "today", - "(2026-04-09)", - "with", - "0", - "days", - "of", - "inactivity", - "—", - "well", - "below", - "the", - "10-day", - "warning", - "threshold.", - "No", - "warnings", - "added,", - "no", - "PRs", - "closed.", - "Summary:", - "#25541", - "(0d", - "inactive),", - "#25540", - "(0d", - "inactive),", - "#25403", - "(0d", - "inactive).", - "None", - "have", - "exemption", - "labels.", - "All", - "classified", - "as", - "ACTIVE.", + "this", + "PR.", + "PR", + "#28194", + "only", + "modifies", + "docs/src/content/docs/reference/concurrency.md", + "(documentation).", + "Test", + "Quality", + "Sentinel", + "skipped.", "status=noop" ] } ], "config": { "Depth": 4, - "ExcludeFields": ["session_id", "trace_id", "span_id", "timestamp"], + "ExcludeFields": [ + "session_id", + "trace_id", + "span_id", + "timestamp" + ], "MaskRules": [ { "Name": "uuid", @@ -1453,6 +567,6 @@ "RareClusterThreshold": 2, "SimThreshold": 0.4 }, - "next_id": 15 + "next_id": 8 } -} +} \ No newline at end of file