Repository navigation
feat(repos): built-in review graders dokimi:review_seeds and dokimi:review_replay #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
c192131
feat(repos): built-in review graders dokimi:review_seeds and dokimi:r…
napetrov 694a87c
refactor(repos): split outcome() into run and grade reasons
napetrov 3759a86
test(repos): no /tmp literal in the norm_path test (bandit B108)
napetrov eb8ab75
fix: handle workspace paths in norm_path for correct finding matching
napetrov 55ce2a7
fix(repos): replay parse_error reports recall_addressed 0; document p…
napetrov 20ee90f
fix(repos): cut /repo/ after the workspace cut, so nested repo dirs m…
napetrov acb0b70
fix: catch OverflowError for Infinity line numbers in graders
napetrov 8cec3fd
fix: validate stderr signature when detecting python3-not-found on 12…
napetrov c5bf781
test(graders): pin unreadable infinite finding lines; doc the 127 pyt…
napetrov 243c6a4
fix(graders): load review by name in script mode
napetrov 5c1d6ff
fix(graders): address review of #120 at 243c6a4
napetrov 6d45a73
fix(graders): a fence nested too deep is unreadable, not a grader fai…
xaleryb 733e5ed
fix(graders): the replay oracle escapes ``` so a suggestion comment k…
xaleryb ff2ddd8
docs(contract): say how the review graders read a finding's line
xaleryb fa73237
test(graders): pin the matching rules §4.5 states
xaleryb 22b42e7
build(ruff): check the built-in graders as Python 3.8 code
xaleryb d2d54cb
fix(repo): order int ids numerically, pin the built-in 127 rule, chec…
napetrov 5d170b9
test(repo): pin same_file's empty-path rule and the replay window def…
napetrov 2ed14c8
Merge intel/dokimi main into d2-builtin-graders
napetrov 7bdb748
fix(graders): cap fence nesting depth explicitly instead of relying o…
napetrov b67a3ae
fix(repo): pin built-in grader sources in the batch; restore oneDAL d…
napetrov d8a2ce6
fix(graders): the seeds oracle escapes ``` so a quoted fence keeps it…
xaleryb 911187d
fix(repo): pin a batch to the built-in graders only when a task names…
xaleryb 79484d2
docs(repo): the batch grader pin also covers an unreadable task
antonwolfy 966fa92
test(graders): pin the fence nesting cap and the graders digest
napetrov 5e1fba8
Merge remote-tracking branch 'intel/main' into d2-builtin-graders
napetrov 307403e
test(graders): pin that the nesting cap counts open brackets only
xaleryb c70d512
docs(contract): a fence nested past the cap counts as unparseable
xaleryb 9155b75
Merge remote-tracking branch 'origin/main' into HEAD
xaleryb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
dokimi/changelog.d/20261018_221020_napetrov_builtin-review-graders.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ### Added | ||
|
|
||
| - **Built-in review graders, `task.json` `grader: "dokimi:review_seeds"` and `"dokimi:review_replay"`** — a review task is now data only: `manifest.json` (seeds and decoys) or `gold.json` (human review threads) next to `task.json`, graded by framework code instead of the repository's `grade` and `oracle` entry points. `repo tasks check` and `repo run` use them with no other change. They run in the grading container on the image's `python3` (standard library only, 3.8 or newer), from a read-only mount at `/eval/graders` the agent's container never gets; an image without `python3` is a grader failure that says so. The matching rules are oneDAL's `review` and `review_replay` graders', with the same metrics for the same answers; `grade.json` records `details.grader_version`. An answer with no findings JSON is a failed run with `recall` 0 and `parse_error`, not a grader failure. Any other grader name goes to the repository's entry points as before, and the `dokimi:` prefix is reserved (contract §4.5). |
3 changes: 3 additions & 0 deletions
3
dokimi/changelog.d/20261021_120000_napetrov_batch-pins-graders.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ### Changed | ||
|
|
||
| - **A batch is pinned to the built-in grader sources too.** When a task names a `dokimi:` grader, `repo run` hashes the built-in graders into `_eval/batch.json` (`graders`) next to `eval_dir` and `image`, and refuses to resume a batch after they change, as it does for an edit to `.agent-eval/grade.py`; `repo compare` warns when two batches ran from different graders. Before, a grader change moved scores (for example `replay_mul`) between cells of one batch with no warning. A batch stored before this change with such a task has no `graders` pin and is refused on resume: start a fresh `--batch` dir. A batch with no such task is not pinned to them and resumes as before. |
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.