ClawSweeper scans all issues and PRs and suggest what we can close, and why. It runs every PR / Issue once a week.
This report presents the forensic synthetic code analysis of openclaw/clawsweeper, a TypeScript project with 1,969 GitHub stars. SynthScan v2.0 examined 490,364 lines of code across 1123 source files, recording 2353 pattern matches distributed across 7 syntactic categories. The overall adjusted score of 4.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 2353 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/live-proof-report.test.ts | 73 | function attachedVerificationStatus(report: string, plan: LiveProofPlan) { | CODE |
| LOW | test/exact-review-dead-letter-operator.test.ts | 3902 | async function automaticReconcileScenario(options) { | CODE |
| LOW | test/exact-review-dead-letter-operator.test.ts | 4631 | function assertSkipAccountingComplete(summary) { | CODE |
| LOW | test/apply-pr-coverage-proof-recheck.test.ts | 163 | function boundDuplicateCloseComment(number: number, canonicalUrl: string): string { | CODE |
| LOW | test/apply-pr-duplicate-proof.test.ts | 21 | function boundDuplicateCloseComment(number: number, canonicalUrl: string): string { | CODE |
| LOW | test/apply-pr-duplicate-proof.test.ts | 181 | function assertChangedReviewNeverRepublishes(action: string): void { | CODE |
| LOW | test/helpers.ts | 265 | export function realBehaviorProofReportSection(overrides = {}) { | CODE |
| LOW | test/helpers.ts | 442 | export function verifiedImplementationPullRequestReport(overrides = {}) { | CODE |
| LOW | test/helpers.ts | 483 | export function stripProofAndRatingFrontMatter(report: string): string { | CODE |
| LOW | test/helpers.ts | 937 | export function markedReviewCommentForTest(number: number, body: string): string { | CODE |
| LOW | test/helpers.ts | 945 | export function reportWithSyncedReviewComment( | CODE |
| LOW | test/github-api.test.ts | 149 | function workerGithubWebhookRequest() { | CODE |
| LOW | test/dashboard-worker-command-intake.test.ts | 506 | async function mainEquivalentOldCommandPath(origin: string) { | CODE |
| LOW | test/dashboard-worker-queue-policy.test.ts | 35 | function credentialRecoveryJitterMs(key: string) { | CODE |
| LOW | test/apply-unsponsored-feature-policy.test.ts | 68 | 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 | 67 | function unconfirmedProductDirectionApplyGhMock( | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 76 | function assertAggregateTriageSnapshot(snapshot: any, viewIds: string[], marker: string) { | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 109 | function dashboardApplyObservabilityFixture() { | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 169 | function dashboardAutomergeMetricsFixture() { | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 216 | function dashboardReviewCoverageFixture() { | CODE |
| LOW | test/dashboard-worker-dashboard-status.test.ts | 242 | function dashboardHealthHistoryFixture(range = "6h") { | CODE |
| LOW | test/dashboard-worker-harness.ts | 671 | function signedGithubWebhookRequest({ | CODE |
| LOW | test/dashboard-worker-harness.ts | 686 | function signedGithubWebhookBodyRequest({ | CODE |
| LOW | test/dashboard-worker-harness.ts | 731 | function createExactReviewAdmissionHarness( | CODE |
| LOW | test/dashboard-worker-harness.ts | 867 | function buildExactReviewQueueRequest( | CODE |
| LOW | test/dashboard-worker-harness.ts | 896 | function exactReviewPublicationOverrides( | CODE |
| LOW | test/dashboard-worker-harness.ts | 931 | function legacyExactReviewPublicationOverrides( | CODE |
| LOW | test/dashboard-worker-harness.ts | 954 | function leasedExactReviewQueueItem(itemNumber: number, runId: string, runAttempt = 1) { | CODE |
| LOW | test/dashboard-worker-harness.ts | 985 | function leasedExactReviewPublicationItem(itemNumber: number, runId: string) { | CODE |
| LOW | test/dashboard-worker-harness.ts | 1011 | function unclaimedExactReviewQueueItem(itemNumber: number) { | CODE |
| LOW | test/dashboard-worker-bay-records-routes.test.ts | 5583 | async function renderPublicTriageApplication( | CODE |
| LOW | test/dashboard-worker-bay-records-routes.test.ts | 5630 | function publicTriageApplicationScript(html: string) { | CODE |
| LOW | test/apply-runtime-budget.test.ts | 65 | function applySleepObserverPreload(tracePath: string): string { | 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 | 478 | function githubThrottleEgressFixture() { | CODE |
| LOW | test/apply-pr-promotion.test.ts | 100 | function assertResolvedPromotionRespectsCloseReasonFilter(options: { | CODE |
| LOW | test/pr-proof-automation.test.ts | 1510 | function unprovenPullRequestReport(summary: string, fixedRelease = "unknown"): string { | CODE |
| LOW | test/pr-proof-automation.test.ts | 1563 | function parsedSummaryWithForgedProof(spoofBlock: string): string { | CODE |
| LOW | test/live-proof.test.ts | 4537 | function recordedAttachmentFixture() { | CODE |
| LOW | test/live-proof.test.ts | 4941 | function terminalCommandInvocation(args: readonly string[]): | CODE |
| LOW | test/live-proof.test.ts | 4987 | function terminalCleanupInvocation(args: readonly string[]): TerminalCleanupInvocation | undefined { | CODE |
| LOW | test/live-proof.test.ts | 5005 | function terminalCaptureInvocation(args: readonly string[]): | CODE |
| LOW | test/dashboard-worker-durable-object-error.test.ts | 26 | function signedPublicationsListRequest(body: string, secret: string) { | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 464 | source.indexOf("function applyItemIdempotencyIdentity("), | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 488 | ledgerSource.indexOf("function startReviewActionLedgerItem("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 510 | ledgerSource.indexOf("function startReviewMutationAttempt("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 511 | ledgerSource.indexOf("function recordReviewLogPublication("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 519 | ledgerSource.indexOf("function finishReviewActionLedgerItem("), | CODE |
| LOW⚡ | test/clawsweeper-action-ledger.test.ts | 520 | ledgerSource.indexOf("function actionLedgerFailureDisposition("), | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 601 | const mutationAttemptStart = source.indexOf("function startApplyMutationAttempt("); | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 1087 | function assertCommandFinalizerUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 1096 | function assertCommandPublisherUsesCanonicalRoot(step: string): void { | CODE |
| LOW | test/clawsweeper-action-ledger.test.ts | 1118 | function assertStateBlobPublisherWiring(step: string): void { | CODE |
| LOW | test/dashboard-worker-queue-runtime.test.ts | 52 | function assertConsoleCallsExclude(calls: unknown[][], sentinels: string[]) { | CODE |
| LOW | test/failed-review-retry.test.ts | 140 | async function runFailedIssueRetryAtDispatchDeadline( | CODE |
| LOW | test/repair/spam-scanner-core.test.ts | 118 | +export function mergeSqliteSessionTranscriptEvents() { | CODE |
| 2261 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | test/sweep-workflow.test.ts | 671 | elif [[ "$*" == *"repos/openclaw/libterminal/issues/41"* ]]; then | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 279 | print(json.dumps({"status": "imported"}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 296 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 312 | print(json.dumps({"tracked": sorted(tracked), "status": "ok"}, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 339 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 348 | print(json.dumps(error_payload(error), separators=(",", ":"))) | CODE |
| HIGH | test/repair/process-tree-containment.test.ts | 386 | print(json.dumps(payload, separators=(",", ":"))) | CODE |
| HIGH | src/action-ledger-files.ts | 26 | print(f"{status}:{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 | 706 | return True | CODE |
| HIGH | src/repair/process-tree-containment.ts | 708 | return False | CODE |
| HIGH | src/repair/process-tree-containment.ts | 724 | elif primary_process is not None and primary_process.poll() is not None: | CODE |
| HIGH | src/live-proof/drivers.ts | 597 | elif ! pane_owns_tty; then | 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/exact-review-publication-batches.test.ts | 3691 | const publishedCause = completedStats.lanes.publication.flow.last_15_minutes.causes.rows.find( | CODE |
| CRITICAL | test/exact-review-publication-batches.test.ts | 4314 | stats.lanes.publication.flow.last_15_minutes.causes.rows.map((row) => ({ | CODE |
| CRITICAL | test/dashboard-worker-queue-runtime.test.ts | 8654 | 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 | docs/repair/README.md | 221 | # Stage unprocessed active gitcrawl clusters. The scheduled intake gives their | COMMENT |
| LOW | docs/repair/README.md | 241 | # exactly-once worker execution intent. GitHub workflow_dispatch has no atomic | COMMENT |
| LOW | src/clawsweeper-runtime.ts | 1081 | // downstream consumers of the checklist see command/path text unaltered. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/review-placeholder-recovery.test.ts | 20 | title: "placeholder", | CODE |
| LOW | test/github-webhook-read-model.test.ts | 57 | ["comment-create", "created", "placeholder", "2026-08-14T10:01:00.000Z"], | CODE |
| LOW | test/github-webhook-read-model.test.ts | 58 | ["comment-delete", "deleted", "placeholder", "2026-08-14T10:03: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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docs/proof/automerge-repo-case-sensitivity/run-proof.sh | 59 | # robust inside a lease than reconstructing the whole repair lane. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/repair/comment-webhook.ts | 97 | async function handleRequest(request: http.IncomingMessage, response: http.ServerResponse) { | CODE |