← Back to Pull requests

Promote sandbox to qa (2288e46) #74

Merged
privlin-lgtm merged 26 files (1185 lines) on Nov 22, 2026 20:56 UTC
View on GitHub
privlin-lgtm privlin-lgtm commented on Nov 22, 2026 19:34 UTC
Author

Promotes sandbox 2288e46 to qa. Sandbox checks are green, /api/health is OK, and there are no database migrations.

Included:

  • #67 decline estimates outside the documents; close the stream if the hold release fails

  • #68 prompt: suggest a better question; split Reg E / PSD2 answers

  • #60 pricing: Sonnet 5.5 cache reads at $0.10 per MTok

  • #64 and #73: hooks enforcing the irreversible rules; agents can merge a sandbox PR only after Paul confirms

  • #15 first-pass Claude PR reviewer

  • #66 validate pass 4 docs, reviewer hardening, eslint 10.15.0

  • Dependencies: @anthropic-ai/sdk 1.6.0 (#53), next (#52), react 19.3.1 (#51), postgres 4.1.1 (#65), unpdf 2.1.0 (#55), pglite (#45)

  • Docs: #49, #50, #62 (CAG spike: keep RAG), #63 (CLAUDE.md trim)
  • Diff: 1185 lines (+946 / -239) across 26 files Reviewer: github-actions[bot] Review duration: 81m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.77) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.77 · 1185 lines diff across 26 files
    0.77
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.56 · 4 substantive comment(s)
    0.56
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    76%
    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.400
    Mass File Touch mass_file_touch
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    5 items
    vercel[bot] vercel[bot] commented on Nov 22, 2026 19:34 UTC
    Bot

    [vc]: #L5wyVCirZI67Z3vzbxCwq64aNXrNpmjNCSVOnpODTRQ=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJjaXRlZC1yYWctYWdlbnQiLCJwcm9qZWN0SWQiOiJwcmpfTllPOWZyOTQ4WEJNQzVyZ1hXNzJUNUdmbnVLQSIsImxpdmVGZWVkYmFjayI6eyJyZXNvbHZlZCI6MCwidW5yZXNvbHZlZCI6MCwidG90YWwiOjAsImxpbmsiOiJjaXRlZC1yYWctYWdlbnQtZ2l0LXNhbmRib3gtcHJpdmxpbi52ZXJjZWwuYXBwIn0sImluc3BlY3RvclVybCI6Imh0dHBzOi8vdmVyY2VsLmNvbS9wcml2bGluL2NpdGVkLXJhZy1hZ2VudC9EOGY1ZzVVWEQ3RGZXeDdjckp5TWNkQnkzVGlWIiwicHJldmlld1VybCI6ImNpdGVkLXJhZy1hZ2VudC1naXQtc2FuZGJveC1wcml2bGluLnZlcmNlbC5hcHAiLCJuZXh0Q29tbWl0U3RhdHVzIjoiREVQTE9ZRUQifV0sInJlcXVlc3RSZXZpZXdVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vdmVyY2VsLWFnZW50L3JlcXVlc3QtcmV2aWV3P293bmVyPXByaXZsaW4tbGd0bSZyZXBvPWNpdGVkLXJhZy1hZ2VudCZwcj03NCJ9
    The latest updates on your projects. Learn more about Vercel for GitHub.

    | Project | Deployment | Actions | Updated |
    | :--- | :----- | :------ | :------ |
    | <a href="https://vercel.com/privlin/cited-rag-agent"><sup><img src="https://vercel.com/api/www/avatar?projectId=prj_NYO9fr948XBMC5rgXW72T5GfnuKA&teamId=team_xv2bCuuvXqIGwgJgAKBMSbkT&s=32" width="16" height="16" align="middle" alt="" /></sup></a> cited-rag-agent | !Ready Ready | Preview | <relative-time datetime="2026-11-22T19:34:08.901Z">Nov 22, 2026 7:34pm UTC</relative-time> |

    <a href="https://vercel.com/vercel-agent/request-review?owner=privlin-lgtm&repo=cited-rag-agent&pr=74" rel="noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://agents-vade-review.vercel.sh/request-review-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://agents-vade-review.vercel.sh/request-review-light.svg"><img src="https://agents-vade-review.vercel.sh/request-review-light.svg" alt="Request Review"></picture></a>

    github-actions[bot] github-actions[bot] commented on code on Nov 22, 2026 19:36 UTC
    Code Review
    intent/2026-10-07-mvp/plan.md:1
    @@ -105,11 +106,11 @@ From nothing to the spec's four tables:
       - On the production URL itself, before production is called live: `/api/health` shows production's database, one example question gives checked citations and none unchecked, an upload can be asked about and then deleted, and one Vercel cron cleanup run appears in the production logs.
     - **M6:**
       - The README renders on GitHub.
    -  - Tests show a visitor who leaves after the first tool round causing no second model call, with the first call's cost in the window and `abandoned` in the log line; a `tool_use` stop with no tool block ending in the explicit error; a heading, a table with a citation in a cell, and indented list items rendered as the spec says; the Excerpts column's messages; and the page's sections in the stacked order.
    +  - Tests show a visitor who leaves after the first tool round causing no second model call, with the first call's cost in the window and `abandoned` in the log line (in tests; on Vercel the run is never told, see spec.md:132); a `tool_use` stop with no tool block ending in the explicit error; a heading, a table with a citation in a cell, and indented list items rendered as the spec says; the Excerpts column's messages; and the page's sections in the stacked order.

    Nit (Chain compliance): this line and line 113 send the reader to spec.md:132 for the "on Vercel the run is never told" note. This range adds a revision line and two feature-8 bullets to spec.md, so at this head line 132 is now the True-up bullet and the Server log bullet has moved to line 135. Both references now point at the wrong bullet. Point them at the section rather than a line number, for example "see spec.md feature 10, Server log", so the next spec edit can't break them again.

    github-actions[bot] github-actions[bot] commented on code on Nov 22, 2026 19:36 UTC
    Code Review
    intent/2026-10-07-mvp/plan.md:1
    @@ -257,7 +263,7 @@ The message tells the agent to push a named branch and open a PR.
     ## CLAUDE.md constraint block (verbatim, from the planning brief)
     ```
     [CRITICAL DESIGN & LANGUAGE CONSTRAINTS]
    -Target Model: Fable 5.1
    +Target Model: Opus 5.5

    Nit (Chain compliance): this section says CLAUDE.md holds this constraint block verbatim, and this range changes its target model line to Opus 5.5. In the same range, #63 replaced the block in CLAUDE.md with the paraphrased "How Paul wants code and replies" section, and CLAUDE.md no longer has any Target Model line. intent.md:39 also still says CLAUDE.md "carries Paul's constraint block (target model, ...)". The plan, the intent and CLAUDE.md now disagree about what governs agent sessions. Either note here and in intent.md that the 17 Nov trim replaced the verbatim block, or put the block back into CLAUDE.md.

    github-actions[bot] github-actions[bot] commented on Nov 22, 2026 19:37 UTC
    Bot

    Claude review of 2288e46

    Important: 0. Nits: 2. Scope: the whole pull request.

    | Severity | Pass | Where | Finding |
    |---|---|---|---|
    | Nit | Chain compliance | intent/2026-10-07-mvp/plan.md:109 | plan.md's spec.md:132 references now point at the True-up bullet |
    | Nit | Chain compliance | intent/2026-10-07-mvp/plan.md:266 | Plan and intent say CLAUDE.md holds the verbatim constraint block; it no longer does |

    Not checked: lint, typecheck, test and build were not run (this reviewer's tools are limited to git diff/log/show and file reads); scripts/mcp-gate.test.ts, lib/pricing.test.ts, lib/api.test.ts and lib/db.test.ts were read but not executed; package-lock.json was excluded from review scope by the workflow's skip list; the dependency bumps (@anthropic-ai/sdk 0.135.0 -> 1.6.0 major, postgres 3 -> 4 major, unpdf 1 -> 2 major) were checked only by their package.json lines and the db.ts channel_binding change, not for API breakage elsewhere in the code; The PR body's claims 'Sandbox checks are green' and '/api/health is OK' have no link or run in the PR and could not be verified from the repo; The Sonnet 5.5 cache-read price of $0.10/MTok was checked against the bundled Claude API reference (cached 2026-11-03), not a live pricing page; postgres.js 4.1.1 really honouring channel_binding=require on a live Neon login was not verified; only the URL-parsing test in lib/db.test.ts covers it; The .claude-code-review.yml workflow and the hook regexes were read for logic, but not run against GitHub or Claude Code; lib/api.ts:164 catches a failed releaseBudget, logs release_failed and finishes the stream. That is a catch-log-and-continue, which the CLAUDE.md failure-handling rule forbids, but spec.md feature 10 (True-up) now calls for it and lib/api.test.ts tests it, so it was not raised as a finding

    <sub>16 turns, 2.4 min, $1.62 at API list prices. Run log</sub>

    <!-- claude-review:summary -->
    <!-- claude-review:sha=2288e46ad246995ef1e440d7e5e964d2e66e0abc -->
    <!-- claude-review:important=0 -->

    Assignees
    privlin-lgtm privlin-lgtm
    Labels
    risk: low confidence: 76.1% 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: 76.5% (HIGH) · Higher = larger blast radius
    76.5%
    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: 76.1% · Lower = rushed or shallow review
    76.1%
    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: 18.3% · Safe to merge
    18.3%