Skip to content

Fix fugu scan constraint + static-HTML stats tracker install - #58

Merged
ralyodio merged 2 commits into
masterfrom
fix/fugu-engine-and-static-html-installer
Jun 25, 2026
Merged

ralyodio merged 2 commits into
masterfrom
fix/fugu-engine-and-static-html-installer

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Two fixes from a support session:

1. fugu scans hit a check-constraint violation

The Sakana Fugu engine (#57 / f341c77) was wired into the code (lib/credits.ts, app/actions/runAudit.ts ALL_ENGINES, worker/index.ts) but no migration extended audits_engine_check. Any scan running fugu failed with:

new row for relation "audits" violates check constraint "audits_engine_check"

Adds supabase/migrations/20260625120000_engine_fugu.sql. Already applied to prod (ywcizjsgrcmhgyplldac) — this checks the migration in for reproducibility.

2. GitHub installer can't find static-HTML monorepo sites

Static sites with a hand-written apps/web/public/index.html (no framework, e.g. tronbrowser.dev) were only discoverable via the </body> code-search fallback, which is flaky/unindexed for freshly-pushed repos. Now probes apps/web/{,public/,src/}index.html explicitly. Adds a contract test.

Tests: tests/contract/install-tracker.test.ts 7/7 green.

🤖 Generated with Claude Code

ralyodio and others added 2 commits June 25, 2026 01:00
The Sakana Fugu engine (f341c77) was wired into the code (lib/credits.ts,
app/actions/runAudit.ts, worker/index.ts) but shipped no migration to extend
audits_engine_check, so any scan running 'fugu' failed with
"new row for relation \"audits\" violates check constraint \"audits_engine_check\"".

Already applied to prod (ywcizjsgrcmhgyplldac); this checks the migration in.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Static-HTML sites in a monorepo (no framework — e.g. a hand-written
apps/web/public/index.html) were only discoverable via the </body> code-search
fallback, which is flaky for freshly-pushed repos. Probe the static index.html
paths under apps/web explicitly so the GitHub installer opens the PR reliably
(e.g. tronbrowser.dev).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio
ralyodio merged commit 4d86f7a into master Jun 25, 2026
8 checks passed
@ralyodio
ralyodio deleted the fix/fugu-engine-and-static-html-installer branch June 25, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant