Repository navigation
Commit 83fe609
authored
[grading] Retry API errors, record grading errors, and read Word comments (#173)
* [judge] retry transient API errors and stop sending temperature to gpt-5.5
Claude judge requests now stream with a 64,000-token output cap and retry
429, 500, 503, and 529 responses, overload errors, and structured-output
grammar compilation timeouts with linear backoff, up to six attempts. After
repeated 500s the existing fallback still retries without output_config.
OpenAI judges use the same output cap. gpt-5.5, gpt-5.5-pro, gpt-5.4-pro,
and their dated snapshots reject the temperature parameter on the Responses
API, so the judge omits it for those models; gpt-5.5 is the second judge in
the default pair.
* [grading] record judge failures per criterion and read Word comments
- A criterion whose judge call fails gets an `error` verdict instead of
aborting the task's grading; `RubricResult.n_grading_errors` and the
scores file count them, and an error never counts as a pass. The dual
evaluation keeps each judge's scores but writes no aggregate while any
criterion is ungraded.
- .docx text now ends with the document's Word margin comments, which
pandoc drops in every track-changes mode.
- A .pptx that is not a zip package is reported unreadable instead of being
converted as plain text.
- `read_file_as_text` is public.
* [grading] add the score-impact changelog entry for #173
* [grading] list only the Word comments that pandoc's output leaves out
pandoc prints comments in `--track-changes=all` mode but skips a comment whose
range starts inside a tracked insertion, and prints none in `accept` mode.
Appending every comment duplicated the printed ones for `include_docx_redlines`
criteria. The margin-comments block now lists the referenced comments whose ids
pandoc did not print, each with the text of the passage it is attached to.
Comments the document body never references are left out, since the file
format lets readers ignore them.1 parent e08b58d commit 83fe609
10 files changed
Lines changed: 608 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
57 | 75 | | |
58 | 76 | | |
59 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
22 | 39 | | |
23 | 40 | | |
24 | 41 | | |
| |||
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
47 | 70 | | |
48 | 71 | | |
49 | 72 | | |
| |||
87 | 110 | | |
88 | 111 | | |
89 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
90 | 136 | | |
91 | 137 | | |
92 | 138 | | |
93 | 139 | | |
94 | 140 | | |
95 | | - | |
| 141 | + | |
96 | 142 | | |
97 | 143 | | |
98 | 144 | | |
| |||
105 | 151 | | |
106 | 152 | | |
107 | 153 | | |
108 | | - | |
| 154 | + | |
109 | 155 | | |
110 | 156 | | |
111 | 157 | | |
| |||
116 | 162 | | |
117 | 163 | | |
118 | 164 | | |
119 | | - | |
| 165 | + | |
120 | 166 | | |
121 | 167 | | |
122 | 168 | | |
123 | 169 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 170 | + | |
129 | 171 | | |
130 | 172 | | |
131 | 173 | | |
| |||
169 | 211 | | |
170 | 212 | | |
171 | 213 | | |
172 | | - | |
173 | | - | |
| 214 | + | |
174 | 215 | | |
| 216 | + | |
| 217 | + | |
175 | 218 | | |
176 | 219 | | |
177 | 220 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
167 | | - | |
| 169 | + | |
| 170 | + | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
| |||
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
| |||
0 commit comments