diff --git a/pkg/agentdrain/data/default_weights.json b/pkg/agentdrain/data/default_weights.json index 74ea4e2b819..7a3b036a0e6 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": null, "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": 21, "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", @@ -246,7 +172,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", @@ -290,7 +221,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", @@ -333,232 +269,39 @@ "tool_result": { "clusters": [ { - "id": 12, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "The", - "pre-agent", - "step", - "did", - "not", - "produce", - "a", - "pr-filter-results.json", - "file", - "at", - "the", - "workspace", - "root.", - "Without", - "the", - "pre-filtered", - "PR", - "list,", - "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", - "by", - "the", - "pre-agent", - "step.", - "No", - "report", - "issue", - "was", - "created.", - "status=noop" - ] - }, - { - "id": 13, + "id": 6, "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", - "is", - "now", - "resolved:", - "'Upload", - "Safe", - "Output", - "Items'", - "(singular)", - "no", - "longer", - "exists,", - "replaced", - "by", - "'Upload", - "Safe", - "Outputs", - "Items'", - "(plural).", - "'Upload", - "Safe", - "Outputs", - "Assets'", + "this", + "PR.", + "PR", + "#26138", + "only", + "updates", + "go.mod", "and", - "'Upload", - "Safe", - "Outputs", - "Items'", - "confirmed", - "as", - "distinct", - "intentional", - "steps", - "(different", - "upload", - "paths).", - "Cache", - "updated.", + "go.sum", + "files", + "(dependency", + "bump:", + "golang.org/x/mod", + "v0.34.0", + "→", + "v0.35.0).", + "Test", + "Quality", + "Sentinel", + "skipped.", "status=noop" ] }, @@ -572,694 +315,134 @@ "action", "needed:", "Analyzed", - "module", - "`github.com/aymanbagabas/go-osc52/v2`", - "(next", - "in", - "round-robin", - "from", - "107", - "Go", - "dependencies", - "in", - "SBOM).", + "github.com/catppuccin/go", + "(round-robin", + "selection,", + "15/107", + "modules", + "checked).", "Module", - "is", - "MIT", - "licensed,", "has", + "MIT", + "license", + "with", "no", "transitive", - "dependencies,", - "and", - "introduces", - "no", + "dependencies.", + "Full", + "SBOM", + "scan", + "of", + "all", + "107", + "Go", + "packages", + "found", + "zero", "GPL-type", "licenses.", - "Also", - "verified", - "licenses", - "for", - "30+", - "additional", - "modules", - "this", - "run", - "(all", - "MIT,", - "BSD-2-Clause,", - "BSD-3-Clause,", - "Apache-2.0,", - "or", - "Unlicense", - "—", - "all", - "compatible", - "with", - "MIT).", - "Cache", + "Only", + "GPL-like", + "entries", + "are", + "JavaScript/npm", + "doc-site", + "packages", + "(`@img/sharp-`*,", + "dompurify)", + "which", + "are", + "not", + "Go", + "runtime", + "dependencies.", + "Cache-memory", "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", + "updated.", "status=noop" ] }, { - "id": 4, + "id": 2, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "action", + "ADR", + "enforcement", "needed:", - "Queried", - "all", - "open", - "issues", - "in", - "github/gh-aw", - "for", - "no:label", - "and", - "found", - "0", - "unlabeled", - "issues.", - "All", - "open", - "issues", - "already", + "PR", + "#26157", + "does", + "not", "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.", - "The", - "gh-aw", - "codebase", + "'implementation'", + "label", + "and", "has", - "no", - "SQL", - "database", - "usage", - "—", - "no", - "imports", + "0", + "new", + "lines", "of", - "database/sql,", - "sqlx,", - "gorm,", - "pgx,", - "or", - "any", - "SQL", - "ORM/driver.", - "All", - "\"\u003c*\u003e\"", - "references", + "code", "in", "the", - "codebase", + "default", + "business", + "logic", + "directories", + "(src/,", + "lib/,", + "pkg/,", + "internal/,", + "app/,", + "core/,", + "domain/,", + "services/,", + "api/).", + "All", + "229", + "changed", + "lines", "are", "in", - "test", - "fixture", - "data", - "representing", - "Docker", - "service", - "configurations", - "in", - "GitHub", - "Actions", - "workflows,", - "not", - "application", - "database", - "access.", - "There", + "actions/setup/js/,", + "which", "is", - "no", - "attack", - "surface", - "for", - "SQL", - "injection", - "in", - "this", - "repository.", - "status=noop" - ] - }, - { - "id": 7, - "size": 1, - "stage": "tool_result", - "template": [ - "stage=tool_result", - "message=No", - "action", - "needed:", - "Issue", - "#25548", - "already", - "has", - "appropriate", - "labels", - "(enhancement,", - "awf).", - "The", - "issue", + "outside", + "the", + "monitored", + "directories.", + "This", "is", "a", - "feature", - "request", - "to", - "add", - "--diagnostic-logs", - "flag", - "for", - "collecting", - "Docker", - "operational", - "logs", - "on", - "AWF", - "failures.", - "Author", - "is", + "bug", + "fix", + "PR", + "that", + "adds", "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", + "dedicated", + "uploadArtifactHandler", "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", - "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", + "copy", "files", - "(145", - "commits)", "from", "the", - "last", - "3", - "days", - "across", - "authors:", - "Copilot", - "(100),", - "github-actions[bot]", - "(27),", - "dependabot[bot]", - "(9),", - "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", - "new", - "production", - "code", - "-", - "GITHUB_TOKEN", - "references:", - "All", - "legitimate", - "(proxy", - "setup,", - "test", - "mocks", - "with", - "`delete`", + "container", + "sandbox", "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).", - "status=noop" - ] - }, - { - "id": 11, - "size": 1, - "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", - "PR", - "number", - "available", - "in", - "this", - "workflow", - "context,", - "so", - "reporting", - "via", - "noop.", + "a", + "shared", + "staging", + "directory.", "status=noop" ] }, { - "id": 2, + "id": 3, "size": 1, "stage": "tool_result", "template": [ @@ -1267,155 +450,194 @@ "message=No", "action", "needed:", - "GitHub", - "Remote", "MCP", "authentication", "test", "passed.", + "GitHub", "MCP", "tools", - "(github-issue_read,", - "github-list_issues)", - "successfully", - "accessed", + "are", + "available", + "and", + "authenticated.", + "Successfully", + "retrieved", + "3", + "open", + "issues", + "from", "github/gh-aw", "using", "the", "GitHub", "Actions", "token.", - "Retrieved", - "open", - "issues", - "without", - "authentication", - "errors.", "status=noop" ] }, { - "id": 5, + "id": 4, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "action", + "ADR", + "enforcement", "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", - "were", - "eligible", - "for", - "triage.", "PR", - "#25403", - "(previously", - "tracked", - "as", - "draft)", + "#25658", + "does", + "not", + "have", + "the", + "'implementation'", + "label,", + "and", + "has", + "only", + "20", + "new", + "lines", + "of", + "code", + "in", + "business", + "logic", + "directories", + "(pkg/)", + "—", + "well", + "under", + "the", + "100-line", + "threshold.", + "The", + "PR", "is", - "now", - "closed.", - "Memory", - "updated", + "a", + "CLI", + "consistency", + "fix", + "(aligning", + "--dir", + "flag", + "semantics,", + "correcting", + "help", + "text,", + "adding", + "--dir", + "to", + "the", + "remove", + "command)", "with", - "current", - "state.", + "no", + "architectural", + "decisions", + "that", + "would", + "warrant", + "an", + "ADR.", "status=noop" ] }, { - "id": 8, + "id": 5, "size": 1, "stage": "tool_result", "template": [ "stage=tool_result", "message=No", - "action", + "ADR", + "enforcement", "needed:", - "Analyzed", - "3", - "open", - "draft", - "PRs", - "in", - "github/gh-aw.", - "All", - "3", - "were", - "updated", - "today", - "(2026-04-09)", - "with", + "PR", + "#26143", + "does", + "not", + "have", + "the", + "'implementation'", + "label", + "and", + "has", "0", - "days", + "new", + "lines", "of", - "inactivity", - "—", - "well", - "below", - "the", - "10-day", - "warning", - "threshold.", - "No", - "warnings", - "added,", + "code", + "in", + "business", + "logic", + "directories.", + "The", + "two", + "changed", + "files", + "(mcp_http_server_runner.test.cjs", + "and", + "vitest.config.mjs)", + "are", + "test", + "infrastructure", + "files", + "in", + "actions/setup/js/,", + "not", + "in", + "any", + "default", + "business", + "logic", + "directories", + "(src/,", + "lib/,", + "pkg/,", + "internal/,", + "app/,", + "core/,", + "domain/,", + "services/,", + "api/).", + "The", + "PR", + "is", + "a", + "targeted", + "bug", + "fix", + "for", + "test", + "cleanup", + "(replacing", + "server.close()", + "with", + "closeAllConnections()", + "+", + "server.close()", + "in", + "afterEach)", + "with", "no", - "PRs", - "closed.", - "Summary:", - "#25541", - "(0d", - "inactive),", - "#25540", - "(0d", - "inactive),", - "#25403", - "(0d", - "inactive).", - "None", - "have", - "exemption", - "labels.", - "All", - "classified", - "as", - "ACTIVE.", + "architectural", + "design", + "decisions.", "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 +675,6 @@ "RareClusterThreshold": 2, "SimThreshold": 0.4 }, - "next_id": 15 + "next_id": 7 } -} +} \ No newline at end of file