ClawSweeper scans all issues and PRs and suggest what we can close, and why. It runs every PR / Issue once a week.
This report summarizes scanner evidence for openclaw/clawsweeper, a TypeScript project with 2,005 GitHub stars. SynthScan examined 551,758 lines of code across 1545 source files, recording 1705 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 3.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 1672 finding(s).
Are imports declared and package/API names verified? 33 finding(s).
Are wrappers, guards, and repeated structures necessary? 1663 finding(s).
Which changes need focused human review? 1705 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1705 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/exact-review-dead-letter-operator.test.ts | 2973 | async function assertMissingRepositoryRecovery(maxTargets: number) { | CODE |
| LOW | test/exact-review-dead-letter-operator.test.ts | 4195 | async function automaticReconcileScenario(options) { | CODE |
| LOW | test/exact-review-dead-letter-operator.test.ts | 4927 | function assertSkipAccountingComplete(summary) { | CODE |
| LOW | test/apply-pr-duplicate-proof.test.ts | 25 | function boundDuplicateCloseComment(number: number, canonicalUrl: string): string { | CODE |
| LOW | test/apply-pr-duplicate-proof.test.ts | 195 | function assertChangedReviewNeverRepublishes(action: string): void { | CODE |
| LOW | test/helpers.ts | 309 | export function realBehaviorProofReportSection(overrides = {}) { | CODE |
| LOW | test/helpers.ts | 648 | export function verifiedImplementationPullRequestReport(overrides = {}) { | CODE |
| LOW | test/helpers.ts | 706 | export function stripProofAndRatingFrontMatter(report: string): string { | CODE |
| LOW | test/helpers.ts | 715 | export function canonicalPullRequestClusterForTest( | CODE |
| LOW | test/helpers.ts | 1222 | export function markedReviewCommentForTest(number: number, body: string): string { | CODE |
| LOW | test/helpers.ts | 1230 | export function reportWithSyncedReviewComment( | CODE |
| LOW | test/helpers.ts | 1426 | export function runOpenClawApplyDecisionsForTest(options: { | CODE |
| LOW | test/dashboard-worker-publication-lifecycle.test.ts | 283 | function restrictedPublicationFixture() { | CODE |
| LOW | test/dashboard-worker-publication-lifecycle.test.ts | 498 | function lifecycleRouterOrderingFixture({ | CODE |
| LOW | test/dashboard-worker-publication-lifecycle.test.ts | 2119 | async function savedDirectRequeueFixture( | CODE |
| LOW | test/dashboard-worker-publication-lifecycle.test.ts | 3897 | async function pendingTerminalFinalizerFixture() { | CODE |
| LOW | test/github-api.test.ts | 132 | function workerGithubWebhookRequest() { | CODE |
| LOW | test/dashboard-worker-command-intake.test.ts | 775 | async function mainEquivalentOldCommandPath(origin: string) { | CODE |
| LOW | test/dashboard-worker-queue-policy.test.ts | 32 | function credentialRecoveryJitterMs(key: string) { | CODE |
| LOW | test/apply-unsponsored-feature-policy.test.ts | 77 | function staleInsufficientInfoCloseReport(overrides = {}) { | CODE |
| LOW | test/apply-product-direction-policy.test.ts | 15 | function unconfirmedProductDirectionCloseReport(overrides = {}) { | CODE |
| LOW | test/apply-product-direction-policy.test.ts | 78 | function unconfirmedProductDirectionApplyGhMock( | CODE |
| LOW | test/agent-input-scan-fixtures.test.ts | 912 | function gitSourceRedactionFixture(): ReturnType<typeof autoreviewFixtures>[number] { | CODE |
| LOW | test/agent-input-scan-fixtures.test.ts | 1081 | function acpxOldBaseServiceFixture(): ReturnType<typeof autoreviewFixtures>[number] { | CODE |
| LOW | test/agent-input-scan-fixtures.test.ts | 1967 | function nativeRuntimeEndpointFixture(config: boolean) { | CODE |
| LOW | test/compatibility-proof-fixture.ts | 74 | export function generatedCompatibilityReport( | CODE |
| LOW | test/apply-label-sync.test.ts | 759 | function assertCompletedIssueLeaseAccepted(extraArgs: string[], reusedLease = false): void { | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 74 | function assertAggregateTriageSnapshot(snapshot: any, viewIds: string[], marker: string) { | CODE |
| LOW | test/review-tool-bootstrap.test.ts | 39 | function allowOtherPrincipalWrites(path: string): void { | CODE |
| LOW | test/dashboard-worker-harness.ts | 741 | function signedGithubWebhookRequest({ | CODE |
| LOW | test/dashboard-worker-harness.ts | 756 | function signedGithubWebhookBodyRequest({ | CODE |
| LOW | test/dashboard-worker-harness.ts | 801 | function createExactReviewAdmissionHarness( | CODE |
| LOW | test/dashboard-worker-harness.ts | 1007 | function buildExactReviewQueueRequest( | CODE |
| LOW | test/dashboard-worker-harness.ts | 1036 | function exactReviewPublicationOverrides( | CODE |
| LOW | test/dashboard-worker-harness.ts | 1071 | function legacyExactReviewPublicationOverrides( | CODE |
| LOW | test/dashboard-worker-harness.ts | 1094 | function leasedExactReviewQueueItem(itemNumber: number, runId: string, runAttempt = 1) { | CODE |
| LOW | test/dashboard-worker-harness.ts | 1125 | function leasedExactReviewPublicationItem(itemNumber: number, runId: string) { | CODE |
| LOW | test/dashboard-worker-harness.ts | 1151 | function unclaimedExactReviewQueueItem(itemNumber: number) { | CODE |
| LOW | test/dashboard-worker-bay-records-routes.test.ts | 2726 | async function renderPublicTriageApplication( | CODE |
| LOW | test/dashboard-worker-bay-records-routes.test.ts | 2773 | function publicTriageApplicationScript(html: string) { | CODE |
| LOW | test/review-command-workflow.test.ts | 226 | function testScheduledCacheScenario( | CODE |
| LOW | test/review-blob-hydration.test.ts | 78 | function ensureShallowPullRequestReviewHead(targetDir: string, headSha: string): boolean { | CODE |
| LOW | test/apply-stalled-pr-policies.test.ts | 14 | function stalledUnprovenCloseReport(overrides = {}) { | CODE |
| LOW | test/dashboard-public-observability.test.ts | 23 | function assertPrivateMarkersAbsent(value: unknown) { | CODE |
| LOW | test/dashboard-public-observability.test.ts | 53 | function reviewObservabilityFixture() { | CODE |
| LOW | test/dashboard-public-observability.test.ts | 161 | function applyObservabilityFixture() { | CODE |
| LOW | test/dashboard-public-observability.test.ts | 344 | function githubThrottleEgressFixture() { | CODE |
| LOW | test/agent-input-scan.test.ts | 1000 | function classifyWithProductionPolicy( | CODE |
| LOW | test/agent-input-scan.test.ts | 1394 | function crabboxPostgresDocsFixture() { | CODE |
| LOW | test/apply-pr-promotion.test.ts | 106 | function assertResolvedPromotionRespectsCloseReasonFilter(options: { | CODE |
| LOW | test/pr-proof-automation.test.ts | 1243 | function unprovenPullRequestReport(summary: string, fixedRelease = "unknown"): string { | CODE |
| LOW | test/pr-proof-automation.test.ts | 1308 | function parsedSummaryWithForgedProof(spoofBlock: string): string { | CODE |
| LOW | test/pr-proof-automation.test.ts | 1486 | function renderedPullRequestReport( | CODE |
| LOW | test/exact-review-deferred-publication-fixture.ts | 273 | export async function deferredContinuationClaim( | CODE |
| LOW | test/dashboard-worker-durable-object-error.test.ts | 80 | function signedPublicationsListRequest(body: string, secret: string) { | CODE |
| LOW | test/dashboard-worker-queue-runtime.test.ts | 223 | function manualArtifactAdmissionFixture() { | CODE |
| LOW | test/dashboard-worker-queue-runtime.test.ts | 350 | function assertConsoleCallsExclude(calls: unknown[][], sentinels: string[]) { | CODE |
| LOW | test/dashboard-worker-queue-runtime.test.ts | 363 | async function reserveDueSourceAuthority( | CODE |
| LOW | test/failed-review-retry.test.ts | 243 | async function runFailedIssueRetryAtDispatchDeadline( | CODE |
| LOW | test/repair/notify-github-activity.test.ts | 28 | function routineGithubActivityReason(activity: Parameters<typeof compiledRoutineReason>[0]) { | CODE |
| 1603 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/sweep-workflow.test.ts | 1187 | elif [[ "$*" == *"repos/openclaw/libterminal/issues/41"* ]]; then | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 307 | print(json.dumps({"status": "imported"}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 343 | print(json.dumps({"events": events}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 364 | print(json.dumps(payload, separators=(",", ":")).replace(base, "<base>")) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 385 | print(json.dumps(results, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 404 | print(json.dumps({ | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 419 | print(json.dumps({"mounts": mounts}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 427 | print(json.dumps({"done": done, "tracked": sorted(tracked)}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 444 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 460 | print(json.dumps({"tracked": sorted(tracked), "status": "ok"}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 487 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 496 | print(json.dumps(error_payload(error), separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 535 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | src/action-ledger-files.ts | 26 | print(f"{reported_pid}:{started_sec}:{started_usec}") | CODE |
| HIGH | src/repair/process-tree-containment.ts | 132 | return None | CODE |
| HIGH | src/repair/process-tree-containment.ts | 248 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 263 | return True | CODE |
| HIGH | src/repair/process-tree-containment.ts | 268 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 758 | return True | CODE |
| HIGH | src/repair/process-tree-containment.ts | 760 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 776 | elif primary_process is not None and primary_process.poll() is not None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | test/review-content-cache.test.ts | 23 | assert.ok(before.context.issue.bodyCoverage.excerpts.every(({ end }) => end < body.length - 1)); | CODE |
| CRITICAL | test/dashboard-assessment-corpus.test.ts | 31 | mine.groups.historical.security.items.map((item) => item.number), | CODE |
| CRITICAL | test/dashboard-assessment-corpus.test.ts | 35 | mine.groups.changed.security.items.map((item) => item.number), | CODE |
| CRITICAL | test/exact-review-publication-batches.test.ts | 5246 | const publishedCause = completedStats.lanes.publication.flow.last_15_minutes.causes.rows.find( | CODE |
| CRITICAL | test/exact-review-publication-batches.test.ts | 5936 | stats.lanes.publication.flow.last_15_minutes.causes.rows.map((row) => ({ | CODE |
| CRITICAL | test/dashboard-worker-queue-runtime.test.ts | 12644 | stats.lanes.publication.flow.last_15_minutes.causes.rows.map((row) => ({ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/scheduler-policy.test.ts | 981 | selectedNumbers(due, 6, now).sort((a, b) => a - b), | COMMENT |
| LOW | …s/proof/record-front-matter-literal-write/run-proof.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | docs/proof/evidence-url-scheme-case/run-proof.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | dashboard/wrangler.toml | 101 | EXACT_REVIEW_PENDING_SOFT_LIMIT = "600" | COMMENT |
| LOW | scripts/review-target-checkout.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | scripts/dashboard-corpus.ts | 1 | #!/usr/bin/env node | COMMENT |
| LOW | .github/workflows/dashboard-corpus.yml | 1 | name: Dashboard corpus | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/review-placeholder-recovery.test.ts | 23 | title: "placeholder", | CODE |
| LOW | test/github-webhook-read-model.test.ts | 262 | ["comment-create", "created", "placeholder", "2026-08-14T10:01:00.000Z"], | CODE |
| LOW | test/github-webhook-read-model.test.ts | 263 | ["comment-delete", "deleted", "placeholder", "2026-08-14T10:01:00.000Z"], | CODE |
| LOW | .agents/skills/crabbox/SKILL.md | 574 | ../crabbox/bin/crabbox desktop paste --id <cbx_id-or-slug> --text "user@example.com" | CODE |
| LOW | docs/proof/native-worker-fixtures/README.md | 15 | `b4b313e03e7bcff43b7ba7426add5a76af436129`, line 341: a dummy-user/password | CODE |
| LOW | docs/proof/native-worker-fixtures/README.md | 18 | `8ea970c7b3467718eb7b64ecee9ebe7bcf0256c4`, line 409: a dummy-user/password | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/proof/saved-lease-authority/run-proof.sh | 187 | # Retain exactly the generated synthetic harness, not any ephemeral credentials or state. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/repair/comment-webhook.ts | 115 | async function handleRequest(request: http.IncomingMessage, response: http.ServerResponse) { | CODE |