Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Reviewer-verification handling can discard verification or associate it with the wrong prototype or Build, producing missing or incorrect reviewer-confirmed scores.
9 open issues
Add an exact-base migration upgrade test · New Track each use’s last outcome in one pass · New Scope verification to the matching prototype and commit · New Persist verification independently of pending requests · New Order candidate Builds by workflow creation time · New Parse verification times with the CLI time helper · New Reconcile the guide’s scoring rules · New Move verification policy into a domain function · New Specify the required UTC timestamp format in the error · New
What changed in this PR
Adds reviewer-confirmed scoring to Hub’s learning evaluation flow. Automated scores remain stored, while the Library shows the latest assessment for each learning use.
Changes:
- Request a separate score when a reviewer resolves their own thread and a later successful Build exists.
- Extend the learning CLI and score contracts with reviewer-verification context.
- Display reviewer-confirmed outcomes and update supporting tests, stories, and documentation.
| File | Description |
|---|---|
packages/learning/test/evaluation.test.mjs |
Covers verification context sent to the evaluator. |
packages/learning/src/store.mjs |
Accepts reviewer verification as a score input. |
packages/learning/src/evaluation.mjs |
Includes verification in scoring prompts and records. |
packages/learning/src/cli.mjs |
Adds the verification timestamp option. |
packages/learning/README.md |
Documents verification-based rescoring. |
packages/learning/index.d.mts |
Extends score input types. |
packages/learning/contracts/v1/score.schema.json |
Allows verification in score records. |
hub/server/routes/api/learnings/create-learnings-route-dependencies/learning-outcomes.db.test.ts |
Updates automated outcome expectations. |
hub/server/repositories/learning-score-requests/record-reviewer-verification/index.ts |
Records scoring requests from reviewer confirmation. |
hub/server/repositories/learning-score-requests/record-reviewer-verification/index.db.test.ts |
Covers reviewer eligibility and Build selection. |
hub/server/repositories/learning-score-requests/find-learning-score-request/index.ts |
Reads pending scoring requests. |
hub/server/repositories/learning-score-requests/delete-learning-score-request/index.ts |
Preserves requests containing unseen verification. |
hub/server/repositories/learning-evaluation-runs/start-learning-evaluation-run/index.ts |
Separates usage and verification attempts. |
hub/server/domains/review-comments/create-review-comment-service/index.ts |
Records verification during thread resolution. |
hub/server/domains/learning/types.ts |
Adds the outcome assessment source. |
hub/server/domains/learning/score-applied-learnings/index.ts |
Runs verification-triggered scoring attempts. |
hub/server/domains/learning/score-applied-learnings/index.test.ts |
Covers rescoring arguments and request cleanup. |
hub/server/domains/learning/get-learning-history/index.ts |
Selects the latest score per use and identifies its source. |
hub/server/domains/learning/get-learning-history/index.test.ts |
Covers replacement by a reviewer-confirmed score. |
hub/server/domains/learning/create-learning-job-processors/index.ts |
Connects verification lookup and scoring triggers. |
hub/schema/migrations/20261226090000_reviewer_verified_scores/migration.sql |
Adds verification timestamps and per-trigger uniqueness. |
hub/schema/learning-score-trigger.enum.prisma |
Defines scoring triggers. |
hub/schema/learning-score-request.prisma |
Stores pending verification timestamps. |
hub/schema/learning-evaluation-run.prisma |
Distinguishes evaluation runs by trigger. |
hub/docs/learning-foundation.md |
Explains verification scoring and displayed outcomes. |
hub/client/pages/learnings-page/stories.tsx |
Shows a reviewer-confirmed outcome fixture. |
hub/client/features/learnings-library/types.ts |
Adds the reviewer-confirmation presentation flag. |
hub/client/features/learnings-library/index.tsx |
Labels reviewer-confirmed outcomes. |
hub/client/application/hub/view-models/learnings-library/index.ts |
Maps assessment source to the presentation flag. |
hub/client/application/hub/view-models/learnings-library/index.test.ts |
Covers confirmed outcome mapping. |
hub/client/application/hub/learnings-contracts/types.ts |
Adds assessment source to client response types. |
hub/client/application/hub/learnings-contracts/index.ts |
Validates the outcome assessment source. |
Review effort: Max (adaptive)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
nshki
force-pushed
the
nshki/feat/hub/reviewer-verified-outcomes
branch
from
November 26, 2026 10:03
65a6afa to
42ece62
Compare
…tion Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5
nshki
force-pushed
the
nshki/feat/hub/reviewer-verified-outcomes
branch
from
November 26, 2026 10:10
42ece62 to
39f20b1
Compare
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.


Why
An automated score only guesses whether a learning helped. The strongest sign is the person who gave the review feedback saying the fix worked. Until now, Hub ignored that signal, so a learning's outcomes could never show that a reviewer confirmed the result.
What changes
When the person who wrote a review thread's first comment resolves that thread, Hub treats it as verification. It finds the prototype's newest successful Build after the one they commented on, and asks for that commit to be scored again. Each learning an agent applied in that commit gets one more score. That score tells the scorer a reviewer confirmed the work, and records
reviewer_verificationas one of its inputs. The first, automated score is kept in the store.On a learning's detail view, the newer score replaces the earlier one for the same use and reads "Reviewer-confirmed" instead of "Automated assessment".
The learning package's
scorecommand gains--reviewer-verified-at. Hub sends only that time, never the thread's text.sequenceDiagram participant Reviewer participant Hub participant Worker participant CLI as replica-learning Reviewer->>Hub: resolve own thread on Build 3 Hub->>Hub: newest later Build is 5 Hub->>Hub: save verification for the prototype and Build 5's commit Hub->>Hub: save score request for Build 5's commit Worker->>Hub: recovery pass finds the ready request Worker->>CLI: score (usage), already done, skipped Worker->>CLI: score --reviewer-verified-at CLI-->>Worker: second score with reviewer_verificationNeeds design review
Storybook screenshots
All screenshots use the light theme at 1280×800, scrolled to the "Observed outcomes" section. The first outcome in the shared active fixture is now reviewer-confirmed.
Hub/Pages/Learnings: Active Detail (changed)
Hub/Pages/Learnings: stories that share the active fixture
Editing Learning
Member Detail
Shared By This Repository
Shared From Another Repository
Unavailable Wording