Autonomous experiment loop extension for pi
This report summarizes scanner evidence for davebcn87/pi-autoresearch, a TypeScript project with 8,166 GitHub stars. SynthScan examined 16,408 lines of code across 45 source files, recording 79 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 9.8 (Moderate 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.
Can maintainers explain intent, assumptions, and trade-offs? 25 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 76 finding(s).
Which changes need focused human review? 79 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 79 distinct pattern matches across 5 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 |
|---|---|---|---|---|
| MEDIUM⚡ | tests/finalize_test.sh | 404 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/finalize_test.sh | 406 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/finalize_test.sh | 408 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/finalize_test.sh | 410 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 64 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 66 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 144 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 146 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 189 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 191 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 252 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 254 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 311 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 313 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 360 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 362 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 427 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 429 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 474 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 476 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 520 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 522 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 546 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 548 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 594 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 596 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 613 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 615 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 659 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 661 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 733 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 735 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 804 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 806 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 857 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 859 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 915 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 917 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 979 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 981 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 1073 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/finalize_test.sh | 1075 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 53 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 55 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 88 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 90 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 176 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 268 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 270 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 375 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 377 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 430 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | skills/autoresearch-finalize/finalize.sh | 432 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | extensions/pi-autoresearch/commands.ts | 41 | export function getAutoresearchArgumentCompletions(argumentPrefix: string): AutocompleteItem[] | null { | CODE |
| LOW | extensions/pi-autoresearch/compaction.ts | 32 | export function autoresearchSummaryPathsFor(workDir: string): AutoresearchSummaryPaths { | CODE |
| LOW | extensions/pi-autoresearch/compaction.ts | 45 | export function buildAutoresearchCompactionSummary(paths: AutoresearchSummaryPaths): string { | CODE |
| LOW | extensions/pi-autoresearch/jsonl.ts | 145 | export function isAutoresearchConfigEntry(entry: unknown): entry is AutoresearchConfigEntry { | CODE |
| LOW | extensions/pi-autoresearch/jsonl.ts | 161 | export function hasAutoresearchConfigHeader(jsonlContent: string): boolean { | CODE |
| LOW | extensions/pi-autoresearch/jsonl.ts | 165 | export function extractAutoresearchSessionName(jsonlContent: string): string { | CODE |
| LOW | extensions/pi-autoresearch/shortcuts.ts | 30 | export function autoresearchShortcutsConfigPath(agentDir: string = getAgentDir()): string { | CODE |
| LOW | extensions/pi-autoresearch/shortcuts.ts | 34 | export function resolveAutoresearchShortcuts( | CODE |
| LOW | extensions/pi-autoresearch/shortcuts.ts | 79 | function isValidShortcutConfigValue(value: unknown): value is KeyId | null | undefined { | CODE |
| LOW | extensions/pi-autoresearch/shortcuts.ts | 113 | function defaultAutoresearchShortcuts(): AutoresearchShortcuts { | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 126 | export function countConsecutiveDiscardOrCrashResults(state: AutoResumeGuardState): number { | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 523 | export function shouldAutoActivateAutoresearch( | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 538 | function autoresearchActivationData(entry: CustomEntry): AutoresearchActivationEntryData | null { | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 547 | function recordedActivationDecision(ctx: ExtensionContext, workDir: string): boolean | null { | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 683 | function appendRightAlignedAdaptiveHint( | CODE |
| LOW | extensions/pi-autoresearch/index.ts | 2578 | function canOpenFullscreenDashboard(ctx: ExtensionContext): boolean { | CODE |
| LOW | extensions/pi-autoresearch/hooks.ts | 166 | export function appendHookLogEntryIfConfigured( | CODE |
| LOW | site/public/script.js | 253 | function replaceQuoteWithSandboxedEmbed(quote) { | CODE |
| LOW | site/public/script.js | 270 | function resizeSandboxedTweetEmbed(event) { | CODE |
| LOW | site/public/script.js | 289 | function initializeResultsDashboard() { | CODE |
| LOW | site/public/script.js | 348 | function setDashboardPlaybackState(dashboard, visibleRuns, isComplete) { | CODE |
| LOW | assets/template.html | 950 | function computeImprovementPercent(baseline, best, direction) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/finalize_test.sh | 21 | # Create a fresh test repo with a simulated autoresearch session | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | site/public/index.html | 38 | <a href="#guardrails">Guardrails</a> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/autoresearch-finalize/finalize.sh | 1 | #!/usr/bin/env bash | COMMENT |