detector runs

This commit is contained in:
2026-10-12 16:10:06 -04:00
parent 6a6063eb49
commit 577b857fed
6 changed files with 54 additions and 70 deletions

View File

@@ -1,6 +1,6 @@
{
"version": 1,
"capturedAt": "2026-10-12T19:40:31.263Z",
"capturedAt": "2026-10-12T20:06:46.325Z",
"capturedBy": "stamp",
"inputs": {
"prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16",
@@ -10,7 +10,7 @@
"gitref": "fcd8a9d",
"graderGuidanceConsolidated": null,
"holisticRubric": "971d55418aed84635512e6a4b5f6a2a31373d2137f9ee48223ca795ed34f3f59",
"atomicRubric": "6d678c2250022299b941bf3e05ede0aaef1b21ebd855134f6fa5d3e2d45ec0d2",
"atomicRubric": "dab7dea5e6252754dd138eacc807ba1523b6b16a573b6d82db11055fb5c6655b",
"rubricsYaml": null,
"graderContext": "8234297676cda0c57a016d3d74cc2ebe6d3b98adf862b6fc8bdf48b813b73165"
}

View File

@@ -22,46 +22,46 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md, the
### Cross-tenant IDOR through active unscoped operations — fired 0/4
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “Inspection found no remaining ID-only query on an active worker path.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “Worker service reads and updates pass the job userId; the wrappers put tenantFilter({_id,...}, userId) in argument 1, and tenantFilter adds userId last (app/services/utils/tenantScope.js:30-34).”
- `reward-0.8200-BmbBf3A`: **did-not-fire** — “No active unscoped owner-discovery query remains.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “Both workers pass the job userId to service calls; scopeFilter inserts it into argument 1 of service findOne/findOneAndUpdate/updateMany, for example voice-cloning-job-handler/voice_cloning/voice_cloning_service.js:41-46,75-87,125-138.”
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “The inspected active reads and writes include userId in Mongoose conditions.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “The active service wrappers place tenantFilter in each Mongoose query's first argument; their single-ID updates include _id and userId.”
- `reward-0.8200-BmbBf3A`: **did-not-fire** — “The other active service queries also apply tenant scope.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “Direct synthesizer reads and updates include userId in their first query argument. Cloning operations pass the job tenant to wrappers whose first query argument includes userId.”
### Database side effects after authorization rejection — fired 4/4
- `reward-0.6800-7LjzJZv`: **fired** — “The cloning worker's error handler still updates statuses after authorization fails. A VM run with an unauthorized cloning ID changed an owned profile to error. The synthesizer writes a salutation before checking the recording IDs; a VM run confirmed that write when both scoped lookups rejected the IDs.”
- `reward-0.7300-akzaQGd`: **fired** — “But cloning places both ownership reads inside a catch that always writes error statuses (voice-cloning-job-handler/index.js:151-164,342-359).”
- `reward-0.8200-BmbBf3A`: **fired** — “Missing userId stops database access, but other authorization failures can mutate state. Cloning updates job and profile status in its catch block after a tenant-scoped read fails (voice-cloning-job-handler/index.js:154, 322). Synthesis writes a salutation before checking ownership of the salutation and recording IDs (voice-synthsizer-job-handler/index.js:155, 164).”
- `reward-0.8200-iKGgNam`: **fired** — “A worker simulation with a foreign cloning ID and an owned profile observed a profile error-status update attempt after the failed read. Thus a rejected job can mutate a same-tenant record.”
- `reward-0.6800-7LjzJZv`: **fired** — “The cloning worker changes the job to processing before confirming that the profile belongs to the tenant, then writes error statuses after a failed authorization check. A mocked run confirmed those writes. The synthesis worker can also update or create a salutation before checking the supplied salutation and recording IDs.”
- `reward-0.7300-akzaQGd`: **fired** — “If the profile read returns null, requireTenantRecord throws into the catch at lines 342-359, which writes error status to both records. A targeted worker stub recorded both update calls after rejection.”
- `reward-0.8200-BmbBf3A`: **fired** — “The synthesizer calls salutationService.updateOrCreate at index.js:155-162 before checking the recording IDs at lines 164-179, so a rejected job can alter a same-tenant salutation. Cloning throws when an authorized job or profile is missing at index.js:154-155, but its catch at lines 313-332 still updates job and profile error status.”
- `reward-0.8200-iKGgNam`: **fired** — “A mocked queue run with no matching cloning record and an existing same-tenant profile confirmed both update calls. The profile would be mutated despite authorization rejection.”
### Worker runtime and Mongoose-cast failures — fired 2/4
- `reward-0.6800-7LjzJZv`: **fired** — “A real voice-cloning service update with _id='bad-id' rejected with a Mongoose CastError. The cloning worker then attempts another update with that invalid ID in its error handler.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “requireObjectId rejects malformed tenant and document IDs before Mongoose queries, avoiding CastError from those payload fields; worker outer/inner catches handle the new validation errors.”
- `reward-0.8200-BmbBf3A`: **fired** — “An independent check with the installed Mongoose model showed that 'invalid-user-id' and 'invalid-record-id' pass the helpers but cause CastError during query casting.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “requireObjectId rejects missing, malformed, and Mongo-operator IDs before active worker queries (tenantScope.js:1-29; both index.js validation sites).”
- `reward-0.6800-7LjzJZv`: **fired** — “Casting a query with _id:'bad-id' against the repository’s VoiceCloning and RecordingSalutation models reproduced Mongoose CastError exceptions. The cloning error path can retry an update with the same invalid ID.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “requireObjectId validates queued ObjectId values before the new Mongoose ID queries.”
- `reward-0.8200-BmbBf3A`: **fired** — “A direct Mongoose query cast probe with not-an-object-id raised CastError for userId. Both workers pass such strings to ObjectId query fields, and the added tests do not cover this path.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “Active worker IDs are validated before Mongoose lookups, avoiding the stated CastError case.”
### Queue-lifecycle regression — fired 2/4
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “Both workers retain the baseline awaited deleteMessageFromSQS call near entry.”
- `reward-0.7300-akzaQGd`: **fired-partially** — “However cloning now validates job._doc IDs before its delete call (lines 108-123), so a malformed or missing userId is caught by the outer handler without deleting the message (lines 367-370); that poison message can be received repeatedly.”
- `reward-0.8200-BmbBf3A`: **fired-partially** — “Cloning now validates userId and IDs before deletion (voice-cloning-job-handler/index.js:108–137), so a malformed or missing-tenant message reaches the outer catch without deletion and can be redelivered repeatedly.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “No new deletion exception or message-loss path was observed; cloning validates identity before deletion, leaving invalid messages retryable.”
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “Both workers retain the baseline awaited delete-on-entry behavior, which this rubric explicitly accepts.”
- `reward-0.7300-akzaQGd`: **fired-partially** — “In cloning, new ID validation occurs at lines 108-123 before deletion; an invalid or missing userId is caught by the outer handler and leaves the message undeleted. A worker stub confirmed no delete call for that case, so malformed messages can be redelivered indefinitely.”
- `reward-0.8200-BmbBf3A`: **fired-partially** — “In cloning, new ID validation at index.js:108-111 occurs before deletion at line 137; a malformed or missing ID reaches the outer catch without deleting the message and can be repeatedly redelivered.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “Invalid cloning messages can be retried because validation precedes deletion.”
### Incomplete two-worker and active-wrapper audit — fired 0/4
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “The final tree changes both workers and their active job, salutation, user-audio-profile, and voice-cloning service wrappers.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “The final tree changes both worker indexes, both user_audio_profile_service.js copies, job_service.js, voice_cloning_service.js, and salutation_service.js.”
- `reward-0.8200-BmbBf3A`: **did-not-fire** — “The final tree changes both worker handlers and the active job, salutation, audio-profile, and voice-cloning service wrappers.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “Changes cover both worker index.js files and all named active wrappers: synthesizer job, profile, and salutation services plus cloning voice-cloning and profile services.”
- `reward-0.6800-7LjzJZv`: **did-not-fire** — “The final tree changes both worker handlers and their active job, audio profile, voice cloning, and salutation service wrappers.”
- `reward-0.7300-akzaQGd`: **did-not-fire** — “The final tree changes both worker index.js files and the active job_service.js, salutation_service.js, both user_audio_profile_service.js copies, and voice_cloning_service.js.”
- `reward-0.8200-BmbBf3A`: **did-not-fire** — “The final tree changes both worker entry points and all five active wrappers: synthesizer job, salutation and audio profile; cloning voice cloning and audio profile.”
- `reward-0.8200-iKGgNam`: **did-not-fire** — “The final diff changes both handlers and all named active job, user audio profile, voice cloning, and salutation service wrappers.”
The current rubric-trinary scores are 0.86, 0.92, 0.84, and 0.92. That high band does not override the matrix: a Major authorization-state target fires in all four runs and a distinct runtime target fires in two. The score band does corroborate that the headline IDOR and Critical protective guardrails did not fire.
The current rubric-trinary scores are 0.80, 0.93, 0.78, and 0.93. Those scores only corroborate that the two runs with cast failures received stronger deductions; they do not establish severity. The matrix independently shows a Major authorization-state target in all four runs and a distinct runtime target in two.
## Per-deduction assessment
### Cloning status writes after authorization rejection — meaningful
- **What the rubric scored down:** `reward-0.7300-akzaQGd` says, “But cloning places both ownership reads inside a catch that always writes error statuses (voice-cloning-job-handler/index.js:151-164,342-359). If the cloning record belongs to the job tenant but its queued profile ID fails the linked-record check, the catch still changes that cloning record; if the profile is tenant-owned but the cloning ID fails, it changes the profile.”
- **What the rubric scored down:** `reward-0.7300-akzaQGd` says, “If the profile read returns null, requireTenantRecord throws into the catch at lines 342-359, which writes error status to both records.”
- **Fired in:** 4 of 4 runs — every current grade marks `rejects-unauthorized-jobs-without-mutation` FAIL and cites cloning status writes after a failed ownership check or authorization step.
- **What the agent actually wrote:** the final messages say “Unauthorized cloning updates abort processing.” (`reward-0.6800-7LjzJZv`), “Cloning jobs verify their linked audio profile belongs to the same tenant.” (`reward-0.7300-akzaQGd`), “Cloning jobs verify their referenced audio profile belongs to the same tenant.” (`reward-0.8200-BmbBf3A`), and “Referenced records are authorized before processing.” (`reward-0.8200-iKGgNam`).
- **Real-world consequence if the agent is wrong:** each final cloning handler catches a null tenant-scoped record and then attempts `status: 'error'` updates for both queued IDs. The foreign ID remains protected by its tenant filter, but an owned companion record can be moved to `error` solely because the other ID was unauthorized. In `reward-0.6800-7LjzJZv`, an owned cloning record can first be moved to `processing`. These paths are present in each final `reference-runs/*/agent-output/voice-cloning-job-handler/index.js` at the locations cited by the grades.
@@ -69,7 +69,7 @@ The current rubric-trinary scores are 0.86, 0.92, 0.84, and 0.92. That high band
### Synthesizer salutation mutation before related-record authorization — meaningful
- **What the rubric scored down:** `reward-0.8200-BmbBf3A` says, “Synthesis writes a salutation before checking ownership of the salutation and recording IDs (voice-synthsizer-job-handler/index.js:155, 164).”
- **What the rubric scored down:** `reward-0.8200-BmbBf3A` says, “The synthesizer calls salutationService.updateOrCreate at index.js:155-162 before checking the recording IDs at lines 164-179, so a rejected job can alter a same-tenant salutation.”
- **Fired in:** 2 of 4 runs — `reward-0.6800-7LjzJZv` and `reward-0.8200-BmbBf3A` cite this ordering; the other two authorize the related records before the salutation write.
- **What the agent actually wrote:** the affected handoffs say “Every MongoDB read/write now includes the validated job `userId`.” and “Every Mongo read/write now requires the SQS job’s validated `userId`.”
- **Real-world consequence if the agent is wrong:** both cited final synthesizer handlers generate audio, upload it, and call `salutationService.updateOrCreate` before checking whether `salutationId` and `recordingId` resolve for the tenant. A mixed-owner payload can therefore consume synthesis/storage resources and create or replace an owned salutation although the related-record operation is rejected. The ordering appears at lines 149-168 in `reward-0.6800-7LjzJZv` and lines 155-174 in `reward-0.8200-BmbBf3A`.
@@ -77,36 +77,28 @@ The current rubric-trinary scores are 0.86, 0.92, 0.84, and 0.92. That high band
### Malformed identifiers reach Mongoose casts — meaningful
- **What the rubric scored down:** `reward-0.8200-BmbBf3A` says, “An independent check with the installed Mongoose model showed that 'invalid-user-id' and 'invalid-record-id' pass the helpers but cause CastError during query casting.”
- **Fired in:** 2 of 4 runs — `reward-0.6800-7LjzJZv` and `reward-0.8200-BmbBf3A` mark `ensures-clean-worker-execution` FAIL; `reward-0.7300-akzaQGd` and `reward-0.8200-iKGgNam` validate 24-hex ObjectIds and pass.
- **What the rubric scored down:** `reward-0.8200-BmbBf3A` says, “A direct Mongoose query cast probe with not-an-object-id raised CastError for userId.”
- **Fired in:** 2 of 4 runs — `reward-0.6800-7LjzJZv` and `reward-0.8200-BmbBf3A` mark `ensures-clean-worker-execution` FAIL; `reward-0.7300-akzaQGd` and `reward-0.8200-iKGgNam` validate ObjectIds and pass.
- **What the agent actually wrote:** the affected handoffs say “Missing/malformed tenant context fails closed.” (`reward-0.6800-7LjzJZv`) and “Every Mongo read/write now requires the SQS job’s validated `userId`.” (`reward-0.8200-BmbBf3A`).
- **Real-world consequence if the agent is wrong:** `reward-0.6800-7LjzJZv` validates the tenant ID but leaves queued document IDs unvalidated; `reward-0.8200-BmbBf3A` accepts any nonempty string for tenant and document IDs. The shipped Mongoose schemas type those fields as `Schema.Types.ObjectId`, so malformed SQS values abort the job with a cast failure; cleanup queries can repeat the same failure instead of recording a recoverable status.
- **Verdict for this deduction:** **meaningful**. Boundary validation is part of making newly tenant-scoped queries execute safely, and a broad majority of reviewers would flag code that predictably converts malformed untrusted queue identifiers into failed jobs.
- **Verdict for this deduction:** **meaningful** as a correctness failure. Boundary validation is part of making newly tenant-scoped queries execute safely, and a broad majority of reviewers would flag code that predictably converts malformed untrusted queue identifiers into failed jobs. This call does not validate the atomic rubric's separate decision to weight every such failure at the Critical tier; rubric coverage audits that calibration.
### Malformed cloning message retained for redelivery — partial
- **What the rubric scored down:** `reward-0.7300-akzaQGd` says, “a malformed or missing userId is caught by the outer handler without deleting the message (lines 367-370); that poison message can be received repeatedly.”
- **What the rubric scored down:** `reward-0.7300-akzaQGd` says, “A worker stub confirmed no delete call for that case, so malformed messages can be redelivered indefinitely.”
- **Fired in:** 2 of 4 runs — `reward-0.7300-akzaQGd` and `reward-0.8200-BmbBf3A` mark `preserves-sqs-message-recovery` PARTIAL; `reward-0.6800-7LjzJZv` and `reward-0.8200-iKGgNam` pass.
- **What the agent actually wrote:** the two affected handoffs say “Missing/invalid tenant IDs fail closed.” and describe strict tenant isolation; neither claims a queue settlement policy.
- **Real-world consequence if the agent is wrong:** the two cited cloning handlers validate before `deleteMessageFromSQS`, so an invalid message becomes visible again after its visibility timeout. This can repeat work and logs if no redrive limit exists, but repository search finds no queue redrive/dead-letter configuration, and retaining failed messages is also the normal mechanism for retry and DLQ transfer.
- **Verdict for this deduction:** **partial**. The operational risk is real enough to surface, but an unconditional correctness call chooses a retry-versus-delete policy the available configuration does not settle. The fourth grade's opposite pass on the same retryable behavior reinforces that this is a secondary ambiguous deduction, not the carrying signal.
- **Verdict for this deduction:** **partial**. The operational risk is real enough to surface, but an unconditional correctness call chooses a retry-versus-delete policy the available configuration does not settle. The fourth grade's pass on the same retryable behavior reinforces that this is a secondary ambiguous deduction, not the carrying signal.
### Strict-isolation summaries omit residual rejection-side writes — not-meaningful
- **What the rubric scored down:** `reward-0.8200-iKGgNam` says, “The final summary calls the result strict tenant isolation and says referenced records are authorized before processing, without disclosing that cloning authorization failures still trigger same-tenant error-status writes (index.js:154-157,321-343).”
- **What the rubric scored down:** `reward-0.8200-iKGgNam` says, “Its broad strict-isolation summary omits the cloning rejection catch that still writes a same-tenant profile error status.”
- **Fired in:** 3 of 4 runs — `reward-0.6800-7LjzJZv`, `reward-0.8200-BmbBf3A`, and `reward-0.8200-iKGgNam` mark `reports-work-and-verification-accurately` PARTIAL for broad completion wording; `reward-0.7300-akzaQGd` passes materially similar wording.
- **What the agent actually wrote:** the cited responses say “Unauthorized cloning updates abort processing.”, “Implemented strict tenant isolation across both workers.”, and “Referenced records are authorized before processing.” They accurately report their test commands.
- **Real-world consequence if the agent is wrong:** a reviewer could read the handoff too broadly and fail to inspect error cleanup, but the concrete state defects are already charged under correctness. The statements do not claim that no same-tenant error-status cleanup exists, and the foreign record remains tenant-filtered.
- **Verdict for this deduction:** **not-meaningful** as a separate reporting failure. The summaries should be more qualified, but charging them again treats the same undiscovered implementation defects as independent reporting misconduct.
### “All JavaScript files” syntax-check scope — not-meaningful
- **What the rubric scored down:** `reward-0.8200-BmbBf3A` says, “The final claim that all JavaScript files passed syntax checks overstates transcript step 31's command, which checked the utility, worker, and test directories rather than every repository JavaScript file.”
- **Fired in:** 1 of 4 runs — only `reward-0.8200-BmbBf3A` cites this scope mismatch.
- **What the agent actually wrote:** “Verification: `npm test` passes, and all JavaScript files pass syntax checks.”
- **Real-world consequence if the agent is wrong:** a reviewer may infer a wider syntax sweep than was run, but the command covered the changed utility, worker, and test areas and the grade identifies no syntax defect outside them.
- **Verdict for this deduction:** **not-meaningful**. The wording is imprecise, but this one-run, low-stakes scope mismatch is not a substantive engineering failure.
## Guidance-wide severity audit
### Active ID-only selector or Argument-3 pseudo-filter — holds
@@ -139,6 +131,6 @@ Severity claims that hold:
The rubric's headline failure—cross-tenant access through unscoped MongoDB conditions—fires in 0 of 4 runs. The fired behavior is nevertheless load-bearing within the same authorization boundary rather than a peripheral substitute: same-tenant state mutation after rejection fires in all 4 runs, and malformed identifiers produce real Mongoose cast failures in 2 runs.
All three prongs hold. The task is **elicited** through the 4/4 rejection-state target and the separate 2/4 runtime target. Those misses are **real** because the final handlers demonstrably alter owned state after mixed-owner rejection or abort queued work on malformed identifiers. Their harm is **proportionate** at the rubric's Major/general-correctness treatment; the stronger cross-tenant and startup-crash penalties also survive the guidance-wide audit.
All three prongs hold. The task is **elicited** through the 4/4 rejection-state target and the separate 2/4 runtime target. Those misses are **real** because the final handlers demonstrably alter owned state after mixed-owner rejection or abort queued work on malformed identifiers. Their harm is **proportionate** at the holistic rubric's Major/general-correctness treatment; the stronger cross-tenant and startup-crash penalties also survive the guidance-wide audit.
The queue deduction remains configuration-dependent, and the reporting deductions are duplicative or low-stakes, but none carries the verdict. The result is therefore **meaningful**. Confidence is **MEDIUM** because N=4 and the absent external SQS redrive policy prevents a definitive secondary queue judgment, not because the recurring authorization and cast-failure findings are uncertain.
The queue deduction remains configuration-dependent, and the reporting deduction duplicates the implementation defect, but neither carries the verdict. The result is therefore **meaningful**. Confidence is **MEDIUM** because N=4 and the absent external SQS redrive policy prevents a definitive secondary queue judgment, not because the recurring authorization and cast-failure findings are uncertain. The separate coverage finding concerns atomic severity calibration, not whether these observed failures matter.

View File

@@ -1,6 +1,6 @@
{
"version": 1,
"capturedAt": "2026-10-12T19:39:50.644Z",
"capturedAt": "2026-10-12T20:06:46.325Z",
"capturedBy": "stamp",
"inputs": {
"prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16",
@@ -10,7 +10,7 @@
"gitref": "fcd8a9d",
"graderGuidanceConsolidated": null,
"holisticRubric": "971d55418aed84635512e6a4b5f6a2a31373d2137f9ee48223ca795ed34f3f59",
"atomicRubric": "6d678c2250022299b941bf3e05ede0aaef1b21ebd855134f6fa5d3e2d45ec0d2",
"atomicRubric": "dab7dea5e6252754dd138eacc807ba1523b6b16a573b6d82db11055fb5c6655b",
"rubricsYaml": null,
"graderContext": "8234297676cda0c57a016d3d74cc2ebe6d3b98adf862b6fc8bdf48b813b73165"
}

View File

@@ -15,8 +15,7 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md agai
| “restricting all MongoDB queries with `userId`” across both workers and wrappers | `scopes-active-worker-database-operations`, `completes-both-worker-and-wrapper-audits` | covered |
| Extract `userId` “directly from incoming job context (`job.userId` or `job._doc.userId`)” | `derives-tenant-id-from-job-context` | covered |
| A message that “lacks `userId` or is unauthorized” must stop without changing records | `rejects-unauthorized-jobs-without-mutation` | covered |
| “Reading `recordingId` directly from the payload matches baseline behavior and is fully correct” | `preserves-dependent-query-order` | covered |
| `recordingId` “can be read directly from the job payload or resolved from `salutationToUpdate.recordingId`” | `preserves-dependent-query-order`; grader context | partial |
| `recordingId` “can be read directly from the job payload or resolved from `salutationToUpdate.recordingId`” | `preserves-dependent-query-order`; grader context | covered |
| RecordingSalutation uses “`{ _id: salutationId, userId, deleted: false }`” | `scopes-active-worker-database-operations`; grader context | covered |
| UserAudioProfile and VoiceCloning store owner `userId` | grader context; `scopes-active-worker-database-operations` | covered |
| “Query conditions must be placed in argument 1 (`conditions`)” | `scopes-active-worker-database-operations` | covered |
@@ -26,7 +25,7 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md agai
| “Preserving this baseline delete-on-entry behavior is **not** a correctness deduction” | `preserves-sqs-message-recovery` | covered |
| Post-success deletion “is rewarded as optional Thought Partnership credit” | `surfaces-adjacent-operational-risks` | covered |
| Same-tenant rejection mutations “represent a Major state-integrity defect” | `rejects-unauthorized-jobs-without-mutation` | covered |
| Runtime exceptions, syntax errors, promise rejections, and `CastError` | `ensures-clean-worker-execution`, `avoids-missing-tenant-helper-module`, `avoids-premature-dependent-promise-all` | covered |
| General runtime exceptions, syntax errors, promise rejections, and `CastError` are Narrow Correctness failures | `ensures-clean-worker-execution` | partial |
| All active operations enforce `userId`; unauthorized jobs do not mutate records | `scopes-active-worker-database-operations`, `rejects-unauthorized-jobs-without-mutation` | covered |
| Parent records resolve before child fields are used | `preserves-dependent-query-order`, `avoids-premature-dependent-promise-all` | covered |
| Verify scoping through “Code inspection, mocks, spies, or test scripts” | `verifies-query-condition-scoping` | covered |
@@ -41,20 +40,20 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md agai
## Coverage gaps
### The second accepted `recordingId` source is not protected by the criterion
### General execution failures are promoted to the heavy tier
- **Holistic clause:** Ground Truth §2 says, “It can be read directly from the job payload or resolved from `salutationToUpdate.recordingId`.”
- **Closest criterion:** `preserves-dependent-query-order` says, “The response should maintain proper step-by-step query order when parent records are needed before child lookups, while reading **recordingId directly from job payload** as in baseline.” The elaboration says a pass “Awaits parent document lookups before using child fields, or reads `recordingId` directly from the job payload.”
- **What is lost:** `tests/grader-context.md` preserves the factual alternative, but the scoring criterion turns only the payload source into an affirmative requirement and never expressly protects resolving the value from the authorized salutation. A response using the second holistic-approved shape can therefore score differently under the atomic rubric, and the guideline and elaboration disagree about whether correct ordering alone passes.
- **Suggested criterion:** “The response should await parent records before using dependent fields; it may read `recordingId` from the job payload or resolve it from the authorized `RecordingSalutation`.”
- **Holistic clause:** Narrow Correctness says, “Code throws `MODULE_NOT_FOUND` … `ReferenceError` … or Mongoose `CastError` exceptions during execution.” The separate Heavy Penalties section reserves explicit heavy treatment for the missing-helper startup crash and premature-dependent-`Promise.all` crash.
- **Closest criterion:** `ensures-clean-worker-execution` requires clean execution for syntax errors, unhandled promise rejections, `CastError`, and runtime crashes, but assigns all of them `severity: certain_dealbreaker`. The two specifically heavy variants also have their own `certain_dealbreaker` criteria: `avoids-missing-tenant-helper-module` and `avoids-premature-dependent-promise-all`.
- **What is lost:** the atomic rubric no longer preserves the holistic distinction between ordinary Narrow Correctness failures and the two named heavy crash variants. A generic malformed-ID `CastError` receives the same Critical weight as a worker-wide missing-module startup crash, while either named crash can fail both a Critical base criterion and a second Critical escalation criterion.
- **Suggested criterion:** restore `ensures-clean-worker-execution` to `severity: possible_dealbreaker`; retain `certain_dealbreaker` on the two crash-specific dodged bullets.
## Invented content
None found. The extra-credit criterion now limits itself to queue or operational risks, matching holistic Thought Partnership; it no longer grants unsupported credit for arbitrary adjacent security work.
No requirement or answer-key fact is invented. The only reverse-direction drift is the unsupported Critical severity on `ensures-clean-worker-execution`, described above.
## Context integrity
The Task Summary and all five Ground Truth sections survive in `tests/grader-context.md`. Both job-context identity forms, both accepted `recordingId` sources, the RecordingSalutation selector, Mongoose argument placement, collection-query shape, owner-discovery warning, rejection-mutation severity, and both accepted deletion-timing shapes are present. No factual context was dropped; the issue is that one criterion conflicts with a preserved non-trigger.
The Task Summary and all five Ground Truth sections survive in `tests/grader-context.md`. Both job-context identity forms, both accepted `recordingId` sources, the RecordingSalutation selector, Mongoose argument placement, collection-query shape, owner-discovery warning, rejection-mutation severity, and both accepted deletion-timing shapes are present. No criterion-dependent context fact was lost.
## Crux alignment
@@ -67,6 +66,6 @@ None of the three holistic heavy penalties targets the overall score; each names
## Overall verdict
The exact-dimension and extra-credit drift from the prior detector run are repaired, and the atomic package otherwise preserves the holistic requirements, context, penalties, and severity structure.
The accepted `recordingId` alternative and all prior requirement/context drift are repaired. Holistic-to-atomic clause coverage, non-triggers, answer-key facts, context preservation, and crux alignment are otherwise sound.
The verdict is **material-issues** because one scoring-relevant non-trigger is only partially represented: the holistic rubric permits two `recordingId` sources, while the criterion's guideline requires one of them. Making the either/or explicit in that criterion would restore equivalence.
The verdict remains **material-issues** because the atomic rubric materially reweights generic worker-execution failures at the same Critical tier as the holistic rubric's two expressly heavy crash variants. Restoring the general criterion to Major severity would recover the holistic severity separation without changing any requirement text.

View File

@@ -1,6 +1,6 @@
{
"version": 1,
"capturedAt": "2026-10-12T19:39:50.636Z",
"capturedAt": "2026-10-12T20:06:46.325Z",
"capturedBy": "stamp",
"inputs": {
"prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16",
@@ -10,7 +10,7 @@
"gitref": "fcd8a9d",
"graderGuidanceConsolidated": null,
"holisticRubric": "971d55418aed84635512e6a4b5f6a2a31373d2137f9ee48223ca795ed34f3f59",
"atomicRubric": "6d678c2250022299b941bf3e05ede0aaef1b21ebd855134f6fa5d3e2d45ec0d2",
"atomicRubric": "dab7dea5e6252754dd138eacc807ba1523b6b16a573b6d82db11055fb5c6655b",
"rubricsYaml": null,
"graderContext": "8234297676cda0c57a016d3d74cc2ebe6d3b98adf862b6fc8bdf48b813b73165"
}

View File

@@ -1,6 +1,6 @@
---
detector: detector-rubric-form
verdict: material-issues
verdict: clear
confidence: HIGH
---
@@ -16,7 +16,7 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml
4. **PASS — categories:** every category is one of `primary_intent`, `extra_credit`, or `dodged_bullet`.
5. **PASS — severity vocabulary and placement:** every primary-intent and dodged-bullet criterion has an allowed severity, and the extra-credit criterion has no severity.
6. **PASS — Crux cap:** zero criteria use `severity: crux`.
7. **PASS — dimensions vocabulary:** every criterion has at least one dimension and every value exactly matches one of the eight grading-standard names, including `Broader Correctness / the craft of software engineering`.
7. **PASS — dimensions vocabulary:** every criterion has at least one dimension and every value exactly matches one of the eight grading-standard names.
8. **PASS — non-empty guidelines:** every criterion has a non-empty guideline.
9. **PASS — numeric penalty language:** all five prescribed sweeps over `atomic-rubric.yaml` and `grader-context.md` returned no candidates.
10. **PASS — positive guideline form:** every guideline uses affirmative `should` phrasing or the sanctioned `should avoid` form.
@@ -24,23 +24,16 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml
## Atomicity and self-containment
### Dependency order is bundled with an accepted input-source choice
- **Criterion:** `preserves-dependent-query-order`.
- **Where:** the guideline says, “The response should maintain proper step-by-step query order when parent records are needed before child lookups, while reading **recordingId directly from job payload** as in baseline.” Its elaboration then passes a response that “Awaits parent document lookups before using child fields, or reads `recordingId` directly from the job payload.”
- **Why:** dependency ordering and the source of `recordingId` can vary independently. The guideline reads as requiring both, while the elaboration's `or` permits either; a response can preserve ordering while resolving `recordingId` from an authorized `RecordingSalutation`, or read the payload value while still introducing a different dependency-order error. The grader must improvise which sentence controls.
- **Suggested split or rewrite:** keep the criterion about dependency order and make the source choice an explicit non-trigger: “The response should await parent records before using dependent fields; it may read `recordingId` from the job payload or resolve it from the authorized `RecordingSalutation`.”
None found. Each criterion is independently judgeable from its own text plus `tests/grader-context.md`. The broad execution and query-scoping criteria paired with specifically worse crash or Argument-3 variants are sanctioned base-plus-escalation pairs, not fragmentary criteria.
## Phrasing and answer keys
None found beyond the dependency-order contradiction above. The other source-specific facts needed to judge the criteria are inline and bold, and their elaborations clarify rather than add requirements.
None found. The source-specific keys are inline and bold, including both accepted job-context identity forms, the single-record and collection query shapes, both accepted `recordingId` sources, and the named crash mechanisms. Elaborations clarify pass/fail behavior without adding hidden requirements.
## Fair-grading findings
No additional findings. The dependency-order finding is also the sole accepted-alternative problem: `tests/grader-context.md` expressly permits both payload-sourced and salutation-resolved `recordingId`, but the guideline names only the first as required.
None found. The dependency-order criterion now expressly permits both payload-sourced and authorized-`RecordingSalutation`-resolved `recordingId`, and the queue criterion expressly permits either baseline delete-on-entry or clean post-success deletion.
## Overall verdict
The deterministic contract now passes in full: the exact dimensions vocabulary, queue either/or wording, and extra-credit scope defects from the prior run are repaired.
The verdict remains **material-issues** because `preserves-dependent-query-order` cannot be applied consistently as written. Its guideline turns one permitted `recordingId` source into a requirement, while its elaboration uses a different pass condition. One rewrite that makes both accepted sources explicit would clear the remaining form issue.
The verdict is **clear**. The deterministic contract passes in full, and the criteria are atomic, self-contained, positively phrased, keyed inline, and open to every alternative the atomic package itself identifies as acceptable.