gem rewrite

This commit is contained in:
2026-10-21 15:26:12 -04:00
parent e299486354
commit 8c50e8ed16

View File

@@ -1,54 +1,28 @@
Denial of Review Feedback - potion-voice-user-ownership task
Rejecting Feedback on the potion-voice-user-ownership Task
1. Crux Rule Scope
1. Narrowing the Crux Rule
Feedback: "Narrow the Crux rule to rendering or mutating before/despite a failed ownership preflight. State that userId-scoped status: 'error' writes in
catch path are not Crux failures."
The feedback asked to: Limit the Crux rule so it only triggers if code renders or changes data after a failed ownership check, and clarify that writing status: 'error' in a catch block doesn't count as a failure.
Denial: The current Crux rule already says this. The explanation reads: "If a preflight check or update fails to match a record, and rendering or side
effects still proceed, that is a Crux failure. If no side effects occur, charge unchecked null returns under scoped-update-null-handling instead." The
runs penalized (0.58, 0.63) did not just write status: 'error' in a catch block - they proceeded to render audio (clone_voice.py) after a scoped
processing update returned null. That is rendering despite a failed preflight, which is exactly what the Crux rule targets. Run 0.90 avoided this by
halting before rendering.
Why we're sticking with what we have: The rule already says this. It explicitly states that if an update misses a record and the app still carries on with side effects, that’s a Crux failure—but if no side effects happen, it falls under null-handling instead. The runs that lost points (0.58 and 0.63) didn't just log an error in a catch block; they literally kept going and rendered audio after a failed check. That’s rendering after a bad preflight, which is the exact thing Crux is supposed to catch. Run 0.90 stopped before rendering and passed fine. The grader did their job, and the rule doesn't need changing.
The rubric does not need narrowing; the grader applied it correctly.
2. Moving Run 0.50's Issue to Broader Correctness
The feedback asked to: Treat rendering after a bad update as a minor "Broader Correctness" issue instead of a major Crux failure, or update instruction.md to spell out that zero-match updates count as ownership failures.
2. Re-tier Run 0.50's Issue
Why we're sticking with what we have: Run 0.50 lost points under Narrow Correctness because the handler rendered audio even though the VoiceCloning update came back empty. This wasn't some harmless error-handling mistake; the code literally went ahead and called clone_voice.py. That’s a real security risk. If a user deletes something right before the update runs, the app would still generate the audio anyway. That definitely belongs in Crux. Besides, the instructions already tell you to halt if ownership can't be proved, so adding more text would just be repeating ourselves.
Feedback: "Re-tier rendering after a null post-preflight update as moderate Broader Correctness. If keeping it load-bearing, say in instruction.md that a
zero-match scoped update counts as an ownership failure."
3. Cleaning Up instruction.md §2
Denial: Run 0.50 was penalized under Narrow Correctness (score 0.43) for a 'cloning-side-effect' Crux failure - the handler rendered audio after a null 'VoiceCloning' update. That is not a "null post-preflight update" in the catch path; it is the main processing update returning null, then the code continuing to clone_voice.py. This is a security hole: an attacker who races a deletion between preflight and the processing update gets their audio rendered anyway. That belongs in Crux, not Broader Correctness.
The feedback asked to: Take out the specific mentions of what to halt and drop the phrase "with try-catch blocks" so it’s less of a hint.
The instruction already implies this by requiring side effects to halt "if tenant validation fails or if record ownership cannot be established." No change needed.
Why we're sticking with what we have: Section 2 tells people to make sure job execution stops if validation fails, and to use try-catch blocks so the worker loop doesn't crash. That’s just stating the actual project requirements, not giving away the answer. Mentioning try-catch blocks is just standard practice for keeping a loop running smoothly. If we take that out, the instructions just get confusing and vague. Real work tickets give this exact level of detail, and the detector already checked this task for over-hinting and gave it the green light.
4. Adding an Answer Key
3. De-hint Instruction.md §2
The feedback asked to: Put together a concrete answer key that lists every database read, update, and halt point for each handler.
Feedback: "De-hint instruction.md §2. Describe the outcome you want instead of listing what to halt, and drop 'with try-catch blocks'."
Why we're sticking with what we have: We already have answer keys built right into the rubric. Every single criterion—like checking userId on cloning reads or making sure audio stops on bad checks—already spells out the exact criteria. Plus, the main intent and ground truth sections list all the models, query styles, and halt points you need. Adding another separate answer key document would just be duplicating what’s already right there.
Denial: Section 2 says: "Ensure that job execution-including audio rendering and database mutations-is halted if tenant validation fails... Maintain
worker loop stability by handling errors in job processing with try-catch blocks." This is a requirement, not a hint. It tells the agent what must happen (halt on failed validation; keep the loop alive), not how to code it. The phrase "with try-catch blocks" names the standard pattern for "don't crash the
worker loop" - removing it would make the requirement vaguer, not clearer.
Real-world security tickets include exactly this level of constraint. Detector over-hinting already cleared this task.
4. Add Concrete Answer Key
Feedback: "Add a concrete answer key listing the reads/updates to scope and the halt points in each handler."
Denial: The atomic rubric already has answer keys on every criterion:
a. cloning-tenant-isolation: "All database reads and updates in voice-cloning-job-handler on VoiceCloning and UserAudioProfile must filter by userId"
b. synthesis-tenant-isolation-queries-updates: "Downstream reads and updates to RecordingSalutation and Recording in voice-synthsizer-job-handler must be scoped by the profile-derived userId"
c. cloning-prevent-unauthorized-side-effects: "Audio generation rendering and database mutations in voice-cloning-job-handler must be halted if tenant ownership checks fail"
d. synthesis-prevent-unauthorized-side-effects: "Audio generation rendering and database mutations in voice-synthsizer-job-handler must be halted if tenant ownership checks fail"
The holistic rubric's 'Primary Intent' and 'Ground Truth' sections list the exact models, query patterns, and halt points. Adding another "answer key"
document would be redundant.
Conclusion
The feedback misreads the existing rubric. The Crux rule is already narrow, run 0.50's penalty is correctly tiered, the instruction is a requirement not
a hint, and answer keys already exist. No changes are warranted.
Bottom Line
The feedback mostly just misreads what’s already in the rubric. The Crux rule is fine, run 0.50 was graded correctly, the instructions aren't hand-holding, and we already have answer keys in place. We don't need to change anything.