← Back to Pull requests

fix: account for Slack media in preview resource count #354

Open
unknown opened this pull request with 294 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 26, 2026 03:22 UTC
Author

Summary


Update the offline Alchemy preview assertion to expect 18 declarations. #319 added the intentional SlackMediaWorkflow for delivering generated media to Slack; the failed preview run checked out current main and passed the resource guard before failing the stale count assertion. No infrastructure or guard behavior changes.

Verification


git diff --check and node --check scripts/deploy.test.mjs passed. The offline suite was not rerun because no Devin Free mode is available to this session. Do not use preview:deploy just to verify this change; it also authorizes a deployment.

<!-- devin-bot-banner-begin -->
---

<p><picture><source srcset="https://app.devin.ai/api/presigned_proxy?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjpudWxsLCJidWNrZXRfbmFtZSI6ImRldmluYXR0YWNobWVudHMiLCJidWNrZXRfa2V5IjoiYXR0YWNobWVudHNfcHJpdmF0ZS9vcmctZDA0NzE3OWMxYjBhNDE2ZDlhYTBiMzE3MjUxMjljOTUvYzZkNjk5NjItZmM5OS00NGIyLThlYTgtZjYzNjczYzU2MTNmIiwiaWF0IjoxNzk1NjYzMzM1LCJvcmdfaWQiOiJvcmctZDA0NzE3OWMxYjBhNDE2ZDlhYTBiMzE3MjUxMjljOTUiLCJmaWxlbmFtZSI6ImJvdC1iYW5uZXIucG5nIn0.gosIOE5AjR802Fp49cFdk934sySTA11TtoLbIL77Lic"><img height="63" alt="" align="left"></picture><strong><a href="https://app.devin.ai/bots/6a223d3e3bc9444197de5d7364ad565a">Chief of Staff</a> opened this PR for Prince</strong><br>
Implemented in session <a href="https://app.devin.ai/sessions/b7850bd25938485da301261ff64834f5">Fix Shiba preview check resource count on main</a><br>
<a href="https://app.devin.ai/review/opentoolsorg/shiba/pull/354">Review&nbsp;with&nbsp;Devin</a> · <a href="https://app.devin.ai/desktop/session/b7850bd25938485da301261ff64834f5?variant=devin">Open&nbsp;in&nbsp;Devin&nbsp;Desktop</a></p>
<br clear="left">
<!-- devin-bot-banner-end -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

Tests
Updated the deployment validation test to expect 18 resource declarations instead of 17, keeping the test aligned with the current expected count. This change affects test expectations only; no end-user functionality or behavior is changed.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 294 lines (+220 / -74) across 3 files Reviewer: devin-ai-integration[bot] Review duration: 5m
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.45) × (1 − Review Confidence (0.36)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 294 lines diff across 3 files
0.45
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 70% · Reviewer familiarity: 35%
35%
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.340
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #354"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 35.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: 44.9% (MEDIUM) · Higher = larger blast radius
44.9%
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: 35.7% · Lower = rushed or shallow review
35.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: 28.9% · Safe to merge
28.9%