Fix fugu scan constraint + static-HTML stats tracker install - #58
Merged
Merged
Conversation
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>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two fixes from a support session:
1.
fuguscans hit a check-constraint violationThe Sakana Fugu engine (#57 / f341c77) was wired into the code (
lib/credits.ts,app/actions/runAudit.tsALL_ENGINES,worker/index.ts) but no migration extendedaudits_engine_check. Any scan runningfugufailed with: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 probesapps/web/{,public/,src/}index.htmlexplicitly. Adds a contract test.Tests:
tests/contract/install-tracker.test.ts7/7 green.🤖 Generated with Claude Code