feat(slop): per-PR slop score row in the maintainer panel#726
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 36067ec | Commit Preview URL Branch Preview URL |
Jun 14 2026, 03:40 PM |
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
Contributor
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
JSONbored
force-pushed
the
feat/slop-panel-row
branch
from
June 14, 2026 15:37
49461a0 to
87205b4
Compare
Completes the slop feature's visibility half: the maintainer dashboard now
shows each open PR's latest deterministic slop band + score.
- Persist slop_risk / slop_band on the cached pull_requests row (migration
0035). Written by the public-surface processor ONLY when the repo opted
into slop; gittensory-computed, so deliberately omitted from the GitHub
sync upsert's SET clause (a later sync never clobbers it).
- updatePullRequestSlopAssessment writes the assessment; the cached record
and the maintainer-dashboard reviewability rows expose slop {risk, band}
(null when unassessed).
- maintainer-panel: a new "Slop" column renders a band+score pill
(clean/low/elevated/high -> ok/info/warn/blocked tone), or an em-dash
when the repo has slop off / the PR is not yet assessed.
Tests: DB round-trip (+ latest-wins + no-op on missing row), dashboard
exposure (assessed vs null), the panel column render, and slop + AI review
coexisting in one surface pass. 97% coverage held; UI typecheck clean.
JSONbored
force-pushed
the
feat/slop-panel-row
branch
from
June 14, 2026 15:39
87205b4 to
36067ec
Compare
JSONbored
added a commit
that referenced
this pull request
Jun 14, 2026
…740) Closes the outcome-learning loop by measuring whether gittensory's deterministic signals actually predict reality — without ever auto- adjusting a live score (like time-decay, recalibration stays an owner-reviewed decision). Two questions a maintainer can act on, over data that already exists: • Is the slop score predictive? For resolved PRs carrying a persisted slop band (#726), do higher-slop bands merge less often? (`discriminates`: merge rate non-increasing as band severity rises, given >=5 samples/band; null when too little resolved data.) • Are recommendations panning out? Positive (accepted/merged/improved) vs negative (rejected/closed) split from the agent recommendation-outcome ledger, scoped to the repo. - src/services/outcome-calibration.ts: pure builders (buildSlopOutcomeCalibration / buildRecommendationOutcomeCalibration / buildOutcomeCalibrationSignals) + buildRepoOutcomeCalibration env loader. - GET /v1/repos/:owner/:repo/outcome-calibration (maintainer-gated, read-only; optional ?windowDays bounds the recommendation window). No public surface, no score mutation, no reward/payout fields.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What
Completes the slop feature's visibility half (the companion to #724's AI-advisory layer): the maintainer dashboard now shows each open PR's latest deterministic slop band + score.
How
slop_risk/slop_bandon the cachedpull_requestsrow (migration 0035). Written by the public-surface processor only when the repo opted into slop (slopGateMode != off). These are gittensory-computed signals, so they're deliberately omitted from the GitHub-sync upsert'sSETclause — a later sync never clobbers them.updatePullRequestSlopAssessmentwrites the assessment; the cached record and the/v1/app/maintainer-dashboardreviewabilityrows now exposeslop: { risk, band }(nullwhen unassessed — e.g. slop off, or PR not yet processed).maintainer-panel— a new Slop column renders a band+score pill (clean/low/elevated/high→ok/info/warn/blockedtone), or a muted em-dash when there's no assessment.Notes
z.recordOpenAPI schema, so no spec change was needed.—everywhere else.Tests
DB round-trip (latest-wins + no-op on a missing row), dashboard exposure (assessed and
nullrows), the panel column render (pill + em-dash), and slop + AI-review coexisting in one surface pass. Backend 97% coverage held (Branches 97.03%); UI typecheck + tests clean.