feat(notifications): add calibration section for maintainer recap - #4214
Conversation
…ONbored#2243) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4214 +/- ##
=======================================
Coverage 93.76% 93.76%
=======================================
Files 390 391 +1
Lines 36547 36560 +13
Branches 13389 13392 +3
=======================================
+ Hits 34267 34280 +13
Misses 1623 1623
Partials 657 657
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 18:46:20 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
buildCalibrationRecapSection(report)— a pure maintainer-recap digest section that surfaces reversals +reversalRate+ a plain-English note (calibration drift / healthy / nothing auto-acted).reversalRatefollows theAgentHealthcontract (reversals / (merged + closed), 0 when nothing auto-acted); the drift note mirrorsdetectAnomaliescalibration-drift phrasing without leaking score/reward internals.Closes #2243
Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:ci(workers / MCP / UI / actionlint / env-reference) was not re-run end-to-end on this machine — change is a pure additivesrc/servicessection builder + unit tests, imports nothing new beyond the existing redaction scrub, touches no worker/MCP/UI/OpenAPI/migrations/wrangler. Locally:git diff --checkclean,npm run typecheckclean, focused coverage on the changed file is 100% statements/branches/functions/lines (13/13, 6/6),npm audit --audit-level=moderatereports 0 vulnerabilities. CI will cover the remaining path-filtered jobs.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — pure backend section builder; no visible UI, frontend, docs, or extension surface.
Notes
src/services/maintainer-recap-calibration.tsso it does not conflict with the open foundation builder in feat(notifications): add the pure maintainer-recap builder (#2239) #4210 (maintainer-recap.ts/RecapReport). Accepts a structuralCalibrationRecapSourceprojection (windowDays+totals.{merged,closed,reversals}) that is compatible withRecapReportonce feat(notifications): pure maintainer-recap builder — aggregate review activity into a RecapReport #2239 lands; the formatter/delivery slices can import this section without waiting for a file merge.