← Back to Pull requests

Briefs show the work we did, even on a quiet week #7505

Open
unknown opened this pull request with 293 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 14, 2026 10:15 UTC
Author

Stacked on #7500: base is its branch, retarget to main once #7500 merges.

Before: A quiet brief said only that nothing happened, so the customer could not tell a quiet week from a broken product.

After: Every brief carries one line of the work behind it, for example "Quiet week: we read 31 pages across 5 rivals...". It is built only from reads we already stored. No migration, no dependency.

How: app/lib/data/work_ledger.server.ts reads the counts, app/lib/work-ledger.ts writes the sentence, and the brief composer, web view and email use it.

Tested: unit, integration on real D1, lint, typecheck, prettier.

Touches app/lib/data/, so it needs needs-coordinator.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PstScJmqP8anSecMktB9JK

---
_Generated by Claude Code_

<!-- codesmith:footer -->
---
<a href="https://app.blacksmith.sh/Nishfleet/codesmith/0509/pr/7505?autoLogin=true&ref=codesmith_pr_footer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v3.svg"><img alt="View with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v3.svg"></picture></a> <a href="https://backend.blacksmith.sh/track/enable-autofix?expires=1794564941&installation_model_id=439642&pr_number=7505&ref=codesmith_pr_footer&repository=Nishfleet%2F0509&return_to=https%3A%2F%2Fgithub.com%2FNishfleet%2F0509%2Fpull%2F7505&signature=8942c82cdb38fe8848295dbb68e356348334d621d75dfb96ac5a3396249cbf00"><picture><source media="(prefers-color-scheme: dark)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img alt="Autofix with [code]smith" src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you need.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

Diff: 293 lines (+219 / -74) across 3 files Reviewer: github-actions[bot] Review duration: 2m
All Vouch review confidence checks passed
Residual risk 0.36 = Change Risk (0.45) × (1 − Review Confidence (0.20)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 293 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: 27% · Reviewer familiarity: 35%
19%
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 #7505"
general weight: 0.35
Assignees
Unassigned
Labels
risk: medium confidence: 19.8% 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: 19.8% · Lower = rushed or shallow review
19.8%
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: 36% · Moderate risk
36%
Repository