Skip to content

fix(public): repair broken App Store citation on /audit (dogfood 78fcaed682fa) - #33

Merged
nish3451 merged 2 commits into
mainfrom
fix/audit-app-store-citation-link
Aug 9, 2026
Merged

fix(public): repair broken App Store citation on /audit (dogfood 78fcaed682fa)#33
nish3451 merged 2 commits into
mainfrom
fix/audit-app-store-citation-link

Conversation

@nish3451

@nish3451 nish3451 commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

What

Closes dogfood finding 78fcaed682fa — "Broken external links on /audit.html" (audit run 20260808T074205Z-msk2fl3n, issue-19, severity warning).

The dogfood engine found apps.apple.com/app/tinystudio returning 404 (724 B) on the audit page's rendered AI-search evidence table. That URL is the "TinyStudio - App Store" citation the q1-what-tinystudio-does/Google run carries — it is rendered as an outbound link by public/audit.js, so /audit.html shipped a dead external link, weakening the credibility of the supporting proof (the site sells link audits, so this is exactly the fault it flags for clients).

Change

  1. evidence-fixtures/ai-search/evidence.json — the citation URL is replaced with the live authoritative page: https://apps.apple.com/us/app/tinystudio/id6448954288. Verified 200 (Apple's canonical macOS App Store page for the same app — "TinyStudio — your AI subtitle generator", id 6448954288, developer site tinystudio.ai, matching the run's other citations). The bare-slug form apps.apple.com/app/tinystudio has no region and no app id, which is why Apple serves 404 for it.
  2. public/audit.html — the embedded evidence bundle regenerated to match the fixture (the existing drift guard fails otherwise).
  3. Regression guard in scripts/check-site.mjs — new "External citation links (dogfood 78fcaed682fa)" section: any citation URL on the App Store family of hosts (apps.apple.com, itunes.apple.com) must carry an app id (/app/<numeric-id> or <region>/app/<slug>/id<digits>). This catches the exact broken shape offline, so CI never depends on the network.

Verification

  • npm run check — passes; mutation-tested: reintroducing https://apps.apple.com/app/tinystudio in the fixture fails with "AI-search source URL is a dead App Store form"; reverting only the embed fails the drift guard; the valid id-only form apps.apple.com/app/6448954288 passes (guard is not over-strict)
  • npm test — 6/6 headings + 53/53 worker + 15/15 UI + site checks, all pass
  • npm run check:render-blocking — all six pages PASS under the production CSP (real Chromium)
  • wrangler deploy --dry-run — bundles cleanly
  • Live: https://apps.apple.com/us/app/tinystudio/id6448954288 resolves to the real TinyStudio App Store page (browser-verified)

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@nish3451, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 21 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1dd24c71-5d17-4b15-b5ad-19652263cfa9

📥 Commits

Reviewing files that changed from the base of the PR and between fa8d83c and ce9b0ab.

📒 Files selected for processing (3)
  • evidence-fixtures/ai-search/evidence.json
  • public/audit.html
  • scripts/check-site.mjs

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 179cfff57d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"sources": [
{ "title": "Fiberygoodness - what is tinyStudio", "url": "https://www.fiberygoodness.com/whatistinystudio" },
{ "title": "TinyStudio - App Store", "url": "https://apps.apple.com/app/tinystudio" },
{ "title": "TinyStudio - App Store", "url": "https://apps.apple.com/us/app/tinystudio/id6448954288" },

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve the URL that the engine actually cited

For this historical 2026-08-06 run, replacing the captured URL with a different canonical page corrupts the evidence: evidence-fixtures/ai-search/README.md requires every source URL to be recorded exactly as shown by the engine, and /audit.html promises readers the pages each engine cited. Unless the engine was rerun and actually returned this URL, keep the original URL in the fixture and solve the dead-link problem in the rendering layer, such as by displaying it without a link or storing a separate resolved link target; the new checker should not force historical observations to be rewritten.

Useful? React with 👍 / 👎.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nish3451 has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ce9b0ab66c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/check-site.mjs
const host = parsedUrl.hostname.replace(/^www\./, "");
if (host === "apps.apple.com" || host === "itunes.apple.com") {
const path = parsedUrl.pathname;
const carriesAppId = /^\/app\/\d+/.test(path) || /\/id\d+/.test(path);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Anchor the accepted App Store route shapes

When a future citation contains an ID-like substring in the wrong route, this check silently accepts it: for example, /foo/id6448954288, /us/not-app/tinystudio/id6448954288, and /app/6448954288garbage all make carriesAppId true even though none matches either supported form documented immediately above. Consequently, a structurally broken App Store link can still pass CI; validate the complete pathname rather than an unanchored substring or numeric prefix.

Useful? React with 👍 / 👎.

@nish3451
nish3451 merged commit aa64d7d into main Aug 9, 2026
3 checks passed
nish3451 added a commit that referenced this pull request Aug 9, 2026
This branch sat open long enough for four other public-page PRs (#28 heading
hierarchy, #30 apple touch icon, #32 schema.org, #33/#34 links) to land on the
same five head sections and the same guard script, so every touched file
conflicted.

Resolution: all six conflicts were additive, not competing.
- The five HTML files each gained a <link rel="canonical"> on this branch and
  icon/og/twitter/JSON-LD tags on main; both sets are kept.
- scripts/check-site.mjs was rebuilt from main's version with this branch's
  53-line canonical guard inserted verbatim before the migrations loop, rather
  than by textually merging two overlapping hunks — the first attempt at that
  spliced a dangling `const canonicalPages = [` and broke the file.

intended-outcome: PR #29 becomes mergeable with the canonical guard and every
already-landed head guard both enforced.
verify: node scripts/check-site.mjs -> "TinyStudio.io checks passed."; npm test
-> 15/15; npm run check, test:headings, test:worker all pass. check:render-blocking
is not runnable here (playwright is not installed in this worktree) — CI covers it.
nish3451 added a commit that referenced this pull request Aug 11, 2026
…current main and live (#94)

The tracker item 'Ship origin/main past fa8d83c so merged PR #33 App Store
citation goes live — /audit still embeds the 404 Apple URL' (scout 2026-08-09)
was accepted by the fleet pipeline on 2026-08-09 (release-state advanced past
fa8d83c to a163327 the same day, then kept shipping), but no closeout receipt
was recorded on origin/main, so the tracker item stayed open. This lane
re-verified the acceptance criteria against the current head and live
(2026-08-11) and records the closeout so the item cannot re-open by drift:

- release-state-tinystudio-io.json pins 354e725 (2026-08-11T03:38:32),
  strictly newer than fa8d83c and containing PR #33's fix commit aa64d7d.
- Live /audit embeds exactly the id-carrying App Store citation
  (https://apps.apple.com/us/app/tinystudio/id6448954288) matching
  public/audit.html on origin/main; the fixed URL resolves 200 (301 regional
  redirect followed), the bare-slug baseline still 404.
- git diff 354e725..origin/main -- public/ src/ scripts/ is empty: zero
  product-code changes pending; only docs receipts sit between the deployed
  release and main.
- npm run check and full npm test pass on origin/main dc95ebf (90 tests,
  0 failures).
nish3451 added a commit that referenced this pull request Aug 12, 2026
…-2026-08-12

docs(evidence): ship-verify origin/main past fa8d83c so merged PR #33 App Store citation goes live (2026-08-12)
nish3451 added a commit that referenced this pull request Aug 15, 2026
…on current head and live (2026-08-15) (#223)

Re-verified the finding on the current origin/main head (e35b4bf) and the
deployed site, in the pattern of the 2026-08-11 closeout (PR #33) and the
2026-08-12/08-14 re-verifications: npm run check and npm test pass, the
live /audit bundle is byte-identical to the fixtures (25 unique citation
URLs), all 25 URLs resolve (23 at 200; Peerspace 403 and LinkedIn 999 are
anti-bot walls, not dead links), and the dead bare-slug App Store form
stays 404 and absent. The finding remains closed with no code change
needed.

Co-authored-by: nish3451 <nish3451@users.noreply.github.com>
Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
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