← Back to Pull requests

Document previewing an app that ships a build artifact, and Next.js previews #829

Open
unknown opened this pull request with 329 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 24, 2026 21:57 UTC
Author

<img src="https://github.com/user-attachments/assets/8fed404f-4a88-435b-ad71-5ad54776b48f" alt="An owl librarian adds a page to a guidebook with arrows pointing to two other books on the shelf" title="An owl librarian adds a page to a guidebook with arrows pointing to two other books on the shelf" align="right" width="256">

<!-- tour: none @f3dbb03 — one file, three paragraphs, each linked -->

⊙ Problem

The CI guide's "Applications that need a build" offered only the published-package route, and said nothing about previewing a Next.js app, which can't build on the cluster. And before harper v5.4.2, a bundled server import of harper in a branched preview reached the cluster's own databases.

💡 Solution

In learn/developers/deploying-from-ci.mdx, "Applications that need a build" adds the workflow-artifact route and a Next.js paragraph that links HarperFast/nextjs-example and the plugin's preview guide instead of copying them. "Shared or branched data" tells readers to use the bare tables and databases globals in bundled server code (harper#4594, harper#4593).

✅ Verification

  • npm run build passed on the first commit; prettier --check clean on each.

  • Outside review: 3 families over two rounds; the second round's points (successful run, this site's workflow, harper#4593) are in the last commit.
  • Merge after these, which the new text links or describes:

    Depends-on: HarperFast/nextjs#91
    Depends-on: HarperFast/harper#4594

    HarperFast/nextjs-example's preview workflows, which the new text links, are on its main as d7a16af: #6 landed by rebase merge, but a GitHub outage interrupted the merge before it was recorded, so #6 shows as closed.

    The v5.4.2 badge assumes harper#4594 ships in 5.4.2 (milestone v5.4); confirm against the tag before merging.

    🤖 Generated with Claude Code

    Related PRs: none found

    <sub>Review-Coverage: authored=claude; ran=gemini,cursor-composer,codex; adjudicated=domain; declined=cursor-grok,muse; rounds=2; full=1 @ f3dbb03efea6</sub>

    <sub>Review-Attention: study ~9m (decisions: link-out-vs-inline-recipe, version-caveat-in-learn, globals-as-the-rule; raised: open major) @ f3dbb03efea6</sub>

    Diff: 329 lines (+246 / -83) across 4 files Reviewer: Ethan-Arrowood Review duration: 5267m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 329 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.347
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #829"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.4% · Safe to merge
    22.4%