← Back to Pull requests

docs: the install line drops a required peer #34

Merged
CasperGN merged 2 files (13 lines) on Sep 10, 2026 21:25 UTC
View on GitHub
CasperGN CasperGN commented on Sep 10, 2026 15:57 UTC
Author

Both READMEs tell you to run:

pnpm add @diagrid/agent-mastra @mastra/core

packages/mastra/package.json declares zod ^4.0.0 a peer dependency alongside @mastra/core. Peers are not installed for you, so following either README leaves an unmet peer and a zod that resolves to whatever the tree happens to contain, or to nothing.

Why it survived

The adapter README already lists zod in its prose, two lines below the command it was missing from:

@mastra/core and zod are peer dependencies…

- zod ^4

So the page reads correct and only the copy-pasteable line is wrong. The root README omitted it from both the command and the prose.

CI never caught it because examples/mastra/package.json declares zod directly. The examples build and the e2e suite passes — only a human following the README by hand hits it.

Changed

  • both install commands now include zod

  • both prose blocks now say a peer has to be named on the install line, rather than only explaining what a peer dependency is
  • pnpm format:check passes.

    Found while correcting Diagrid's catalyst-ai agent-scaffold skill, which documents this install and disagreed with the README. Worth fixing here too, otherwise the next person to compare them 'corrects' the skill to match.

    Diff: 13 lines (+8 / -5) across 2 files Reviewer: sicoyle Review duration: 327m
    All Vouch review confidence checks passed
    Residual risk 0.10 = Change Risk (0.20) × (1 − Review Confidence (0.50)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.20 · 13 lines diff across 2 files
    0.20
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    50%
    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.350
    Diff Size diff_size
    0.158
    Real PR Conversation Timeline
    3 items
    sicoyle sicoyle approved these changes on Sep 10, 2026 16:04 UTC
    Approved Reviewer

    Approved these changes.

    yaron2 yaron2 approved these changes on Sep 10, 2026 16:25 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    CasperGN CasperGN
    Labels
    risk: low confidence: 50% 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: 20.2% (LOW) · Higher = larger blast radius
    20.2%
    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: 50% · Lower = rushed or shallow review
    50%
    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: 10.1% · Safe to merge
    10.1%