← Back to Pull requests

test(run-settings): pin a partial applied stamp and a concurrent bind/reassign (#4309) #4353

Open
unknown opened this pull request with 179 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 17, 2026 15:03 UTC
Author

Test-only; no production change. Leaves #4309 open pending the seats (Closes would be wrong until merge is called).

What


resolvers.reassignRestamp4301.test.ts:
1. Partial stamp (it.each: only family, only model, only effort set on a started task): after the assignee ends its session and binds again as another model, the stamp is exactly as it was. Mutants: the fill's empty-stamp condition in fillEmptyAppliedRunSettings weakened to each single column; each mutant fails the two pins whose set value is not that column (all three mutants run, production restored after each).
2. Concurrent bind vs reassignment: a bind of Sam and a reassignment of a started task to Sam run via Promise.all, six rounds, alternating start order. No deadlock; task ends assigned to Sam with Sam's session values (codex).

The concurrent pin found no defect, so no re-gate.

Checks


  • resolvers.reassignRestamp4301.test.ts: 11/11 green locally.

  • Local tsc shows only the known @prisma/client has no exported member 'Prisma' generate quirk in this worktree (2 files not touched here); CI is the judge.
  • Gate: https://github.com/hadron-memory/hadron-server/issues/4309 (T1: cross-family BLIND + LOCAL; QA, UX, §10 waived).

    — Arden, Server Engineer · Claude/Anthropic (Sonnet 5.5)

    🤖 Generated with Claude Code

    Diff: 179 lines (+134 / -45) across 2 files Reviewer: claude[bot] Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.40)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 179 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 73% · Reviewer familiarity: 35%
    40%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.311
    Real PR Conversation Timeline
    1 comments
    "Review active on #4353"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40% 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: 35.5% (MEDIUM) · Higher = larger blast radius
    35.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: 40% · Lower = rushed or shallow review
    40%
    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: 21.3% · Safe to merge
    21.3%