From 66a042006169353b8c7b4c7825ccbfbff9c27ac8 Mon Sep 17 00:00:00 2001 From: Nishiki Liu Date: Thu, 26 Nov 2026 01:32:03 -0800 Subject: [PATCH 1/7] feat(learning): let a score weigh reviewer verification Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 25291e01-0146-42cb-ac6d-f5e1dd5c35f5 --- packages/learning/README.md | 2 +- .../learning/contracts/v1/score.schema.json | 4 +-- packages/learning/index.d.mts | 6 ++-- packages/learning/src/cli.mjs | 13 +++++-- .../learning/src/contracts-validators.cjs | 2 +- packages/learning/src/evaluation.mjs | 23 ++++++++++-- packages/learning/src/store.mjs | 4 +-- packages/learning/test/evaluation.test.mjs | 36 +++++++++++++++++++ 8 files changed, 76 insertions(+), 14 deletions(-) diff --git a/packages/learning/README.md b/packages/learning/README.md index 8f33f0c6..476059dd 100644 --- a/packages/learning/README.md +++ b/packages/learning/README.md @@ -283,7 +283,7 @@ To use another labeler, set `labeling.labeler` to `{ "module": "./path.mjs" }` e 3. Mostly efficient. 4. Highly efficient. -A score of 1 or 2 also names the main issue. A learning is scored only while the review evidence behind the version the agent received is allowed for evaluation; otherwise the command fails with `unavailable` and spends nothing. Copilot sees the learning text the agent received, the usage report, and the screenshots whose consent still allows evaluation. `--diff-file ` adds the Build's diff, cut at 200,000 characters. A hosted store keeps no screenshot bytes, so the host writes them to a directory as `.png` and names it with `--screenshots `. +A score of 1 or 2 also names the main issue. A learning is scored only while the review evidence behind the version the agent received is allowed for evaluation; otherwise the command fails with `unavailable` and spends nothing. Copilot sees the learning text the agent received, the usage report, and the screenshots whose consent still allows evaluation. `--diff-file ` adds the Build's diff, cut at 200,000 characters. `--reviewer-verified-at