diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.md index 79679f1f..2dfc20cb 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-answer-obviousness.md @@ -9,22 +9,22 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## What the prompt asks -The prompt asks for an audit of two workers, tenant-scoped reads and writes, safe rejection before effects, and resilient polling after errors. +The prompt asks for tenant co-ownership checks in two workers, stable polling after exceptions, and rejection before unauthorized mutations or rendering. ## Per-expectation assessment -### Isolation and side-effect halting — obvious +### Tenant isolation and safe effects — obvious -- **What the rubric requires:** Scope affected model operations by `userId` and stop on invalid ownership before writes or rendering. -- **Is it obvious from the prompt?** These are its explicit objectives. The agent still must find the affected helper and handler call sites. +- **What the rubric requires:** Scope the named model operations by `userId` and stop both workers before effects when ownership fails. +- **Is it obvious from the prompt?** These are explicit objectives. The individual service and handler changes still require source investigation. - **Verdict for this expectation:** obvious. -### Worker resilience and summary truth — obvious +### Resilience and response clarity — obvious -- **What the rubric requires:** Keep polling after processing errors and accurately describe any changes in an accompanying summary. -- **Is it obvious from the prompt?** Resilience is explicit; truthful reporting is a normal baseline rather than an extra deliverable. The summary condition does not require a separate document. +- **What the rubric requires:** Preserve the polling loop and explain the refactor clearly in any accompanying summary. +- **Is it obvious from the prompt?** Resilience is requested, and clear communication is a normal response quality standard rather than a separate deliverable. - **Verdict for this expectation:** obvious. ## Overall verdict -The rubric's behavioral expectations follow the request without imposing an unrequested implementation or documentation path. +The rubric does not impose an unrequested implementation path or an extra documentation artifact. The prompt leaves the code-level work to the agent. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.md index 624358bb..7fa2bdbe 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-broken-dev-env.md @@ -11,8 +11,8 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md > “This rubric evaluates the candidate agent's ability to audit and refactor backend background worker routines (`voice-cloning-job-handler` and `voice-synthsizer-job-handler`) to enforce multi-tenant data isolation and maintain worker polling loop stability.” -The declared commit resolves, the built workspace contains both handlers, and its JavaScript passes `node --check`. No local test script is declared. No reference runs exist to inspect for infrastructure failures or package drift. +The source commit resolves, the built workspace contains both handlers, and all shipped JavaScript passes `node --check`. No local test script is declared. There are no reference runs to inspect for infrastructure failure or package drift. ## Rationale -The missing ownership checks are the task subject. No unrelated environment failure or prompt/workspace premise mismatch was found. Static syntax checks do not establish full deployed integration health, so confidence is medium. +The unscoped operations are the subject of the request. No unrelated environment failure or prompt/workspace mismatch was found. Static checks leave runtime integration unproven, so confidence is medium. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.md index a0211ebb..6f3ba099 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-credential-leakage.md @@ -9,7 +9,7 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Findings -There is no `environment/workspace.patch`, so no task-authored patch additions exist for credential or authoring-machine path scanning. +There is no `environment/workspace.patch`, so there are no task-authored patch additions to scan for credentials or authoring-machine paths. ## Overall verdict diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.md index 8f235d77..5dc892b9 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-cross-task-reference.md @@ -13,4 +13,4 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Rationale -These are source directories in the current task. Neither the prompt nor the resolved rubric points to another graded task. +These are source directories in this task's workspace. The prompt and resolved rubric do not point to another graded task. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.md index e20d30f9..56dc4437 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-dimension-misapplication.md @@ -1,7 +1,7 @@ --- detector: detector-dimension-misapplication -verdict: partial-misapplication -confidence: MEDIUM +verdict: clean +confidence: HIGH --- # Dimension-misapplication check: potion-voice-user-ownership @@ -9,12 +9,14 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Verbatim grounding -> “## 3. Communication” +> “## Narrow Correctness” -> “If the candidate agent provides an accompanying written summary or response message, it must accurately describe the tenant isolation refactoring without making false or misleading claims about the codebase.” +> “## Broader Correctness / the craft of software engineering” + +> “## Communication” + +> “Evaluates how clearly, concisely, and coherently the response or pull request summary describes the refactoring changes and technical rationale.” ## Rationale -The Communication section binds the factual truth of summary claims to Communication without distinguishing how the claim became false. Under the shared standard, an assertion contradicted by source the agent inspected or authored can be an Integrity failure; an overconfident assertion the agent never verified belongs to Verification & Thoroughness. Communication owns clarity, prominence, and register, including a misleading overall impression when the underlying caveat is disclosed somewhere. - -A summary's clarity is legitimately communicative, so this is a label/substance overlap rather than a wholly unrelated axis. The blanket “false or misleading claims” clause risks charging content truth to Communication and earns partial-misapplication. The same binding appears in the atomic Communication criterion, but this detector evaluates the resolved holistic rubric. +The security implementation and side-effect crux are routed to Narrow Correctness. Polling resilience is engineering craft. The Communication clause now grades clarity, concision, and structure rather than the factual truth of an unverified claim, so it matches the shared criterion. The lifecycle status allowance describes a safe non-trigger for the Narrow Correctness crux. No noncanonical axis, unsupported exclusion, or run-grade drift was found. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.md index a9df4e63..9b6dbfc8 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-fact-check-rubric-claims.md @@ -7,34 +7,34 @@ claims: verdict: "pass" loadBearing: true summary: "Cloning handler uses the named model services" - rubricQuote: "`voice-cloning-job-handler`, all database queries and updates on `VoiceCloning` and `UserAudioProfile`" + rubricQuote: "`voice-cloning-job-handler` on `VoiceCloning` and `UserAudioProfile`" sourceEvidence: "const voiceCloningService = require('./voice_cloning')\nconst userAudioProfileService = require('./user_audio_profile')" sourceProvenance: "harbor-tasks/potion-voice-user-ownership/environment/workspace/voice-cloning-job-handler/index.js (lines 11-12)" - note: "The handler imports services backed by the two named Mongoose models. This is reachable in the workspace; the scoped-filter requirement is normative." + note: "The handler imports services backed by the two named Mongoose models. The agent can trace these modules in the workspace." - id: c02 verdict: "pass" loadBearing: true - summary: "Synthesis handler uses downstream recording models" - rubricQuote: "`voice-synthsizer-job-handler`, downstream queries and updates on `RecordingSalutation` and `Recording`" + summary: "Synthesis handler uses the named downstream models" + rubricQuote: "`RecordingSalutation` and `Recording`" sourceEvidence: "const recordingModel = require('./recording')\nconst recordingSalutationModel = require('./recording_salutation')" sourceProvenance: "harbor-tasks/potion-voice-user-ownership/environment/workspace/voice-synthsizer-job-handler/index.js (lines 10-11)" - note: "Both model modules are imported and used downstream. The agent can inspect these call sites in the workspace." + note: "The handler imports and later queries these models. Both are reachable in the workspace." - id: c03 verdict: "pass" loadBearing: true summary: "Initial profile lookup supplies userId" - rubricQuote: "The initial `UserAudioProfile` query using `_id: userAudioProfileId` is a necessary tenant-resolution step to discover `userId`" + rubricQuote: "the initial `UserAudioProfile` lookup by `_id` resolves `userAudioProfile.userId`" sourceEvidence: "const userAudioProfile = await userAudioProfileService.find({\n _id: userAudioProfileId,\n status: 'completed',\n })\n if (userAudioProfile) {\n const { training_model_path, userId } = userAudioProfile[0]" sourceProvenance: "harbor-tasks/potion-voice-user-ownership/environment/workspace/voice-synthsizer-job-handler/index.js (lines 96-101)" - note: "The shipped handler performs this lookup and extracts the profile userId. The agent can discover the flow locally." + note: "The handler looks up a profile by ID and extracts userId. The agent can inspect this source path." - id: c04 verdict: "pass" loadBearing: true - summary: "Synthesis worker has a polling loop" - rubricQuote: "background worker polling loop" + summary: "Both handlers have polling loops" + rubricQuote: "main worker polling loop" sourceEvidence: "while (true) {\n await processQueue()" sourceProvenance: "harbor-tasks/potion-voice-user-ownership/environment/workspace/voice-synthsizer-job-handler/index.js (lines 259-260)" - note: "The source contains a polling loop. The requirement to keep it alive after exceptions is a desired behavior, not a claim that the baseline already handles every failure." + note: "The synthesis polling loop exists, and the cloning handler has the same while/processQueue structure at lines 324-325. Resilience after errors is a desired behavior, not an assertion that the baseline is already fully safe." --- # Fact-check rubric claims: potion-voice-user-ownership @@ -42,4 +42,4 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md Source: `harbor-tasks/potion-voice-user-ownership/environment/workspace/` — built from `repos/potion-voice` commit `fcd8a9d0b00406bda1943c234a8f2fecaff9f774`, with no workspace patch. -Checked four load-bearing source facts. All are supported by the shipped workspace and reachable to the test agent. Tenant-scoping and error-handling statements are desired outcomes rather than assertions that the baseline already satisfies them. +Checked four load-bearing source facts. All are supported by the shipped workspace and reachable to the test agent. The isolation and resilience statements are desired outcomes rather than claims that the baseline already satisfies them. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.md index eab28cf1..884819aa 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-defined.md @@ -9,12 +9,12 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Positive target present? -The rubric describes safe rejection before unauthorized effects in both handlers, `userId` filters on the named models, an exempt initial profile lookup, polling resilience, and permitted lifecycle status writes. +The rubric describes tenant-scoped reads and updates, safe halting before unauthorized audio/file/database effects, permitted lifecycle status tracking, and polling resilience. ## What the grader has to infer -The exact helper implementation is open, but the expected functional behavior is affirmative and concrete. The conditional written-summary clause is also explicit. +The exact service-helper changes are open, but the functional success target is affirmative and concrete. Communication guidance specifies clarity of any response or PR summary. ## Overall verdict -A grader can recognize a strong implementation from the stated success conditions. +A grader can identify what a strong implementation should do. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.md index f02523f2..488e440f 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-good-response-exhaustiveness.md @@ -9,12 +9,12 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Plausible strong-response approaches -An agent can add tenant filters in the handlers, their service helpers, or both, and halt before effects when records mismatch. It can also explain that a profile-derived userId validates co-ownership of selected resources without independently authenticating the SQS sender. +An agent can enforce ownership in handler predicates, service helpers, or both, and can reject mismatched records before effects. It can disclose that profile-derived userId checks co-ownership of selected resources without independently authenticating the SQS sender. ## Coverage in the rubric -The rubric states outcomes rather than one helper design. It permits the initial profile lookup and owned-job error-status writes, and it does not penalize a trust-boundary caveat. A written summary is optional under its Communication clause. +The rubric grades behavior rather than one code structure. It accepts the initial profile lookup and owned-job error-status writes, and does not penalize a caveat about the queue trust boundary. ## Overall verdict -The major reasonable implementation shapes remain creditable. No reference runs show a strong alternative being penalized. +Major reasonable implementation shapes are creditable. No reference runs exist to reveal a penalty on an alternative. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.md index d4a9f50f..2aae2c1e 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-offline-verifiability.md @@ -9,8 +9,8 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Findings -The graded behavior concerns local query predicates, rejection before audio or database effects, and error handling. Queue messages, Mongoose operations, and rendering calls can be stubbed for targeted verification. No live external service is required for the central rubric checks. +The core work is local query scoping, ownership checks before effects, and exception handling. Queue messages, MongoDB model methods, uploads, and rendering calls can be stubbed. A live external service is not required for the rubric's central checks. ## Overall verdict -A competent agent can implement and verify the required local behavior from the shipped workspace. +The requested changes are implementable and locally verifiable from the shipped source. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.md index 8b8b91e3..c8a2b139 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-over-hinting.md @@ -9,8 +9,8 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Findings -The prompt gives the tenant-isolation goal and identifies the two handlers, but leaves individual query defects, service-filter behavior, and safe effect ordering for the agent to discover. There is no authored workspace patch with hint-bearing comments. +The prompt states the worker names, affected models, and tenant co-ownership objective as deliverable constraints. It does not identify the ID-only service filter or prescribe a code-level guard sequence. No authored workspace patch adds hint-bearing comments. ## Overall verdict -The prompt states a plausible security request without handing over its implementation. +The agent must still trace and repair the relevant operations. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.md index 743eae82..c224443e 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-clarity.md @@ -9,12 +9,12 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Material ambiguities -None found in the score-trigger wording. The crux covers unauthorized effects in both handlers, the affected model sets are named, and the charge-once rule separates effects from filter syntax. +None found. The rubric names both workers for the side-effect crux, identifies the affected model sets, and permits lifecycle status tracking on the requesting job. ## Copy-edit issues -None found that interrupts application of the rubric. +None found that interrupts application. ## Overall verdict -The holistic prose is readable. The criterion-routing concern in the Summary Accuracy clause is reviewed by dimension-misapplication. +The holistic scoring prose is readable and specific. The Communication clause now concerns clarity and structure. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.md index 55c4374d..162eec9c 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-coverage.md @@ -1,7 +1,7 @@ --- detector: detector-rubric-coverage verdict: clear -confidence: HIGH +confidence: MEDIUM --- # Rubric-coverage check: potion-voice-user-ownership @@ -11,31 +11,31 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md agai | Holistic clause | Atomic criterion | Status | | --- | --- | --- | -| Both handlers halt before unauthorized writes/audio | prevent-unauthorized-side-effects | covered | -| Charge unauthorized effects once, apart from filter omissions | prevent-unauthorized-side-effects elaboration; context routing guidance | covered | +| Both workers halt before unauthorized audio, file, or database effects | prevent-unauthorized-side-effects | covered | +| Charge effects and filter omissions once | cloning-tenant-isolation; synthesis-tenant-isolation-queries-updates elaborations; context routing | covered | | Cloning `VoiceCloning`/`UserAudioProfile` use `userId` | cloning-tenant-isolation | covered | -| Synthesis downstream records use profile-derived `userId` | synthesis-tenant-isolation-queries-updates | covered | +| Synthesis downstream models use profile-derived `userId` | synthesis-tenant-isolation-queries-updates | covered | | Initial profile ID lookup is allowed | initial-profile-tenant-resolution | covered | -| Worker loops survive errors | worker-loop-crash-prevention | covered | -| Owned-job failed/error status is permitted | error-status-lifecycle-logging | covered | -| Conditional summary accuracy | refactor-summary-accuracy | covered | +| Failed/error status on requesting job is permitted | error-status-lifecycle-logging | covered | +| Polling loop survives processing errors | worker-loop-crash-prevention | covered | +| Clear refactor summary and rationale | refactor-summary-clarity | covered | ## Coverage gaps -None found. +None found on a textual comparison. The side-effect guideline explicitly says “in either handler”; its `call_site_key` is a locator, while the guideline and holistic rubric determine the behavior graded. The atomic file currently fails YAML parsing; that artifact failure is reported by detector-rubric-form. ## Invented content -None found. The conditional Communication criterion matches the holistic condition; the two scoping criteria describe the same model sets and filter requirements. +None found. The Communication criterion concerns clarity and structure, as does the holistic clause. ## Context integrity -The context document retains the handler/model facts, initial profile-lookup allowance, error-status allowance, and charge-once routing guidance. +The context document preserves the handler/model matrix, profile-resolution allowance, and side-effect success target. The query criteria's elaborations retain a charge-once protection for actual unsafe effects. ## Crux alignment -The holistic crux covers unauthorized side effects in both handlers. `prevent-unauthorized-side-effects` is the sole atomic `crux` criterion and expressly names both handlers. No crux mismatch remains. +The holistic crux is unauthorized side effects in both workers. `prevent-unauthorized-side-effects` carries the sole atomic `crux` designation and explicitly covers either handler. No unsupported crux remains. ## Overall verdict -The holistic requirements, allowances, and routing note are represented in the atomic package. Whether the holistic Communication clause belongs under that grading dimension is assessed separately by dimension-misapplication. +The written atomic criteria cover the holistic requirements and allowances, although the YAML must be repaired before they can be loaded. The error-status allowance sits on the engineering-craft dimension in the atomic rubric, but its text still expressly protects that owned-job status write from being treated as a cross-tenant mutation; this does not create a demonstrated scoring gap. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.md index da9ebbdd..8650a225 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-form.md @@ -1,6 +1,6 @@ --- detector: detector-rubric-form -verdict: clear +verdict: material-issues confidence: HIGH --- # Rubric-form check: potion-voice-user-ownership @@ -11,20 +11,26 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml and ## Deterministic contract -The YAML parses; task slug, seven unique kebab-case IDs, category and severity vocabulary, one-crux cap, exact dimension names, nonempty guidelines, positive phrasing, and absence of numeric penalty amounts pass. No extra-credit criterion carries severity. +**FAIL — the atomic rubric does not parse as YAML.** The parser reports `Nested mappings are not allowed in compact mappings` at line 10, column 16. Three unquoted scalar values contain a colon followed by a space: + +- Line 10: `elaboration: Verifies that voice cloning queries and updates incorporate userId to prevent unauthorized cross-tenant operations. Routing note: Do not double-penalize if already charged under side-effect halting.` +- Line 19: `elaboration: Ensures that both queries and database updates in the speech synthesis handler enforce tenant isolation using userId. Routing note: Do not double-penalize if already charged under side-effect halting.` +- Line 36: `guideline: The response should allow the initial UserAudioProfile lookup by _id: userAudioProfileId as a valid tenant-resolution step without requiring userId in that initial query. **Answer key:** The initial lookup on UserAudioProfile by ID is necessary to resolve userId and establish tenant context.` + +The first syntax error stops normal loading. Text inspection suggests the slug, IDs, dimension names, categories, severity placement, and crux cap are otherwise consistent, but those checks cannot substitute for a parsed artifact. ## Atomicity and self-containment -Each criterion has one judgeable requirement. The summary-accuracy criterion is conditional on a written summary. The security criterion's elaboration gives an explicit charge-once rule across both handlers. +The text states individually judgeable requirements. The side-effect guideline explicitly says “in either handler,” and the scoping elaborations contain charge-once notes. Full schema validation is blocked until the file parses. ## Phrasing and answer keys -Answer keys appear inline and bold. The conditional summary guideline and its answer key both require accuracy without misleading claims; no `and`/`or` contradiction remains. +The visible guidelines use positive phrasing and bold inline answer keys. The parse defect, rather than a wording conflict, is the material issue. ## Fair-grading findings -No independent form defect was found. Conceptual criterion routing is assessed by dimension-misapplication. +The grader cannot reliably load the atomic criteria while the YAML is malformed. The affected values need quoting or block-scalar syntax. ## Overall verdict -The atomic artifact passes its deterministic and judgment form checks. +This is a deterministic contract failure. The atomic rubric is not a usable YAML artifact until all three unquoted colon-space values are corrected. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.md index 4cf4f47e..8543291c 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-rubric-generality.md @@ -21,4 +21,4 @@ None found. ## Overall verdict -The rubric describes response behavior without reference-run statistics or grading-framework references. +The rubric describes response behavior independently of reference-run outcomes or grading-framework names. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.inputs.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.inputs.json index 356f0b54..70152047 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.inputs.json +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.inputs.json @@ -1,17 +1,17 @@ { "version": 1, - "capturedAt": "2026-10-14T17:56:02.549Z", + "capturedAt": "2026-10-14T17:59:41.247Z", "capturedBy": "stamp", "inputs": { - "prompt": "7ae321d6e1fb41b35463110ee3e8317f8e5cc39cba2c9a56a899c30ff0136960", + "prompt": "e9181c337464e62cbd3ad43c5a480c976a40812f242b072b7622ed18d01469b7", "graderGuidance": null, "sessionJsonl": null, "workspacePatch": null, "gitref": "fcd8a9d0", "graderGuidanceConsolidated": null, - "holisticRubric": "00cecef9aac69b2ebf88893d3258fdaa4f224e16eaee43f4c59765ae87774e43", - "atomicRubric": "b630184c330dcfe589bb9506c4491c4f079d9bc9a0e96eb23070524ab91bfaaf", + "holisticRubric": "3016c94d8c4b859bb2d74b0fc8784203e8e7099ae9ac134e83b2a617259b62b5", + "atomicRubric": "cc3a73eac91977763ea8c3b9e3bec00504640d656c4666a443e524c3ac43046f", "rubricsYaml": null, - "graderContext": "53492c9b4c458f01457cd3a711ac8b782c5acaa7701dab0ba72af71d690d3ef1" + "graderContext": "68b3650d137fb7fff0171f3cafa5985f68b38f0575c6a2da0d1cef99f5a4e8f5" } } diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.md index cfc79242..ffdecf51 100644 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/detectors/detector-snapshot-leakage.md @@ -13,7 +13,7 @@ The environment directory contains `Dockerfile`, `browser-optin`, `dns-jail/`, a ## Rationale -This manual task has no injected conversation transcript to compare against the rubric answer key. The prompt and rubric are present; a future bundled session would make the check runnable. +This manual task has no injected conversation to compare with the rubric answer key. The prompt and rubric are present; a future bundled session would make this check runnable. ## Snapshot hygiene (advisory) diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/instruction.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/instruction.md index 2ee133d5..a2e116d6 100755 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/instruction.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/instruction.md @@ -1,13 +1,12 @@ -# Backend Background Workers: Multi-Tenant Data Isolation Audit +# Refactor Voice Service Handlers for Multi-Tenant Isolation -## Context -Our backend services handle asynchronous background processing for voice cloning and speech synthesis tasks. Jobs are received via SQS queues and processed by worker handlers that interact with MongoDB. +The background worker routines in `voice-cloning-job-handler` and `voice-synthsizer-job-handler` currently process incoming SQS queue messages by querying database records using document identifiers without validating tenant co-ownership. -## Problem -A security audit revealed that the worker handlers retrieve and mutate database records using document identifiers without verifying that the records belong to the requesting tenant. This creates a multi-tenant isolation vulnerability where unauthorized or cross-tenant data access and modification could occur. - -## Task Requirements -1. **Audit Worker Handlers**: Review the database access routines in the voice cloning and speech synthesis background worker handlers (`voice-cloning-job-handler` and `voice-synthsizer-job-handler`). -2. **Enforce Tenant Isolation**: Refactor database reads and updates so that operations are strictly scoped by tenant identity (`userId`). In handlers where `userId` is resolved via an initial profile lookup, ensure that resolved tenant context is passed into all downstream record queries and mutations. -3. **Prevent Unauthorized Side Effects**: Ensure that if tenant validation fails or record ownership cannot be established, background processing halts immediately without rendering audio or performing unauthorized database mutations. -4. **Maintain Worker Resilience**: Ensure that error handling in message processing catches exceptions gracefully, allowing rejected jobs to be logged without crashing the background worker polling loop. +## Objectives +1. **Audit and Refactor Database Queries & Updates**: + - Refactor `voice-cloning-job-handler` so that database operations on `VoiceCloning` and `UserAudioProfile` records enforce tenant isolation using `userId`. + - Refactor `voice-synthsizer-job-handler` so that downstream reads and updates to `RecordingSalutation` and `Recording` records validate tenant co-ownership against the `userId` resolved from `UserAudioProfile`. +2. **Worker Loop Resilience**: + - Ensure exceptions during message processing are caught gracefully so that unhandled errors do not crash the background worker polling loop. +3. **Prevent Unauthorized Side Effects**: + - Ensure that if tenant validation fails or records do not match the expected tenant context, no unauthorized database mutations or voice synthesis audio renderings occur. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml index 8a2221ee..7980f9fb 100755 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml @@ -1,64 +1,64 @@ task: potion-voice-user-ownership criteria: - - id: prevent-unauthorized-side-effects - category: primary_intent - dimensions: - - Narrow Correctness - severity: crux - call_site_key: backend-worker-handlers - guideline: "The response should halt processing and prevent unauthorized side effects, including database mutations and audio rendering in both voice cloning and speech synthesis handlers, when tenant validation fails. **Answer key:** Both voice-cloning-job-handler and voice-synthsizer-job-handler must halt processing and avoid making database mutations or generating audio artifacts if tenant ownership checks fail." - elaboration: "Routing note: Charge the execution of unauthorized side effects (database writes or audio generation in either handler) strictly under this criterion. Do not double-penalize query filter omissions charged under cloning-tenant-isolation or synthesis-tenant-isolation-queries-updates." +- id: cloning-tenant-isolation + category: primary_intent + dimensions: + - Narrow Correctness + severity: certain_dealbreaker + call_site_key: voice-cloning-job-handler + guideline: The response should enforce tenant isolation using userId on all VoiceCloning and UserAudioProfile queries and updates in the voice cloning handler. **Answer key:** All database reads and updates in voice-cloning-job-handler must filter by userId in addition to record _id. + elaboration: Verifies that voice cloning queries and updates incorporate userId to prevent unauthorized cross-tenant operations. Routing note: Do not double-penalize if already charged under side-effect halting. - - id: cloning-tenant-isolation - category: primary_intent - dimensions: - - Narrow Correctness - severity: certain_dealbreaker - call_site_key: voice-cloning-job-handler - guideline: "The response should enforce tenant isolation by incorporating userId in all VoiceCloning and UserAudioProfile database queries and updates in the voice cloning handler. **Answer key:** Database reads and updates in voice-cloning-job-handler must filter by userId in addition to record _id." - elaboration: "Verifies that voice cloning database queries and updates incorporate userId to enforce tenant isolation." +- id: synthesis-tenant-isolation-queries-updates + category: primary_intent + dimensions: + - Narrow Correctness + severity: certain_dealbreaker + call_site_key: voice-synthsizer-job-handler + guideline: The response should scope all synthesis queries and database updates by tenant identity (userId) across RecordingSalutation and Recording records. **Answer key:** Downstream reads and updates to RecordingSalutation and Recording in voice-synthsizer-job-handler must be scoped by the profile-derived userId. + elaboration: Ensures that both queries and database updates in the speech synthesis handler enforce tenant isolation using userId. Routing note: Do not double-penalize if already charged under side-effect halting. - - id: synthesis-tenant-isolation-queries-updates - category: primary_intent - dimensions: - - Narrow Correctness - severity: certain_dealbreaker - call_site_key: voice-synthsizer-job-handler - guideline: "The response should scope all speech synthesis queries and database updates by tenant identity (userId) across RecordingSalutation and Recording records. **Answer key:** Downstream reads and updates to RecordingSalutation and Recording in voice-synthsizer-job-handler must be scoped by the profile-derived userId." - elaboration: "Ensures that both queries and database updates in the speech synthesis handler enforce tenant isolation using userId." +- id: prevent-unauthorized-side-effects + category: primary_intent + dimensions: + - Narrow Correctness + severity: crux + call_site_key: voice-synthsizer-job-handler + guideline: The response should prevent unauthorized side effects, including audio generation and database mutations, when tenant validation fails or records do not match the tenant context in either handler. **Answer key:** Synthesis audio generation, file rendering, and database mutations must be halted if tenant ownership checks fail. + elaboration: Guarantees that unauthorized jobs do not trigger audio rendering, file creation, or database updates. This is the primary crux failure. - - id: initial-profile-tenant-resolution - category: dodged_bullet - dimensions: - - Narrow Correctness - severity: possible_dealbreaker - call_site_key: voice-synthsizer-job-handler - guideline: "The response should allow the initial UserAudioProfile lookup by _id: userAudioProfileId as a valid tenant-resolution step without requiring userId in that initial query. **Answer key:** The initial lookup on UserAudioProfile by ID is necessary to resolve userId and establish tenant context." - elaboration: "Prevents improperly docking points for the initial profile query needed to discover tenant identity." +- id: initial-profile-tenant-resolution + category: dodged_bullet + dimensions: + - Narrow Correctness + severity: possible_dealbreaker + call_site_key: voice-synthsizer-job-handler + guideline: The response should allow the initial UserAudioProfile lookup by _id: userAudioProfileId as a valid tenant-resolution step without requiring userId in that initial query. **Answer key:** The initial lookup on UserAudioProfile by ID is necessary to resolve userId and establish tenant context. + elaboration: Prevents improperly docking points for the initial profile query needed to discover the tenant identity. - - id: worker-loop-crash-prevention - category: primary_intent - dimensions: - - "Broader Correctness / the craft of software engineering" - severity: possible_dealbreaker - call_site_key: backend-worker-handlers - guideline: "The response should catch and handle exceptions during message processing to prevent background worker polling loops from crashing. **Answer key:** Errors during job processing in either handler must be caught gracefully so the worker polling loop remains active." - elaboration: "Ensures background worker loops remain resilient against unhandled processing errors." +- id: worker-loop-crash-prevention + category: primary_intent + dimensions: + - Broader Correctness / the craft of software engineering + severity: possible_dealbreaker + call_site_key: voice-synthsizer-job-handler + guideline: The response should catch and handle exceptions during message processing to prevent background worker polling loops from crashing. **Answer key:** Errors during job processing must be caught gracefully so the worker polling loop remains active. + elaboration: Ensures background worker loops remain resilient against unhandled errors. - - id: error-status-lifecycle-logging - category: dodged_bullet - dimensions: - - "Broader Correctness / the craft of software engineering" - severity: unlikely_dealbreaker - call_site_key: backend-worker-handlers - guideline: "The response should permit updating job status to failed or error on the requesting job record for error tracking when an unauthorized job is rejected. **Answer key:** Setting status to failed on the requesting job record for error logging is acceptable lifecycle tracking." - elaboration: "Clarifies that setting job status to failed on the requesting job record does not constitute an unauthorized cross-tenant mutation." +- id: error-status-lifecycle-logging + category: dodged_bullet + dimensions: + - Broader Correctness / the craft of software engineering + severity: unlikely_dealbreaker + call_site_key: voice-synthsizer-job-handler + guideline: The response should permit updating job status to failed or error on the requesting job record for error tracking when an unauthorized job is rejected. **Answer key:** Setting status to failed on the requesting job record for error logging is acceptable lifecycle tracking. + elaboration: Clarifies that setting job status to failed on the requesting job record does not constitute an unauthorized cross-tenant mutation. - - id: refactor-summary-accuracy - category: primary_intent - dimensions: - - Communication - severity: unlikely_dealbreaker - call_site_key: backend-worker-handlers - guideline: "The response should accurately describe the refactoring changes made across the background worker handlers if a written summary or response message is provided. **Answer key:** Any accompanying written summary must accurately reflect the tenant isolation refactoring without misleading claims." - elaboration: "Ensures that accompanying written descriptions accurately reflect the code changes." +- id: refactor-summary-clarity + category: primary_intent + dimensions: + - Communication + severity: unlikely_dealbreaker + call_site_key: voice-synthsizer-job-handler + guideline: The response should clearly and coherently describe the refactoring changes and security improvements in any accompanying explanation or pull request summary. **Answer key:** Written descriptions of the refactoring should clearly articulate how tenant isolation is achieved. + elaboration: Evaluates the clarity and structure of the written refactoring summary under Communication. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/grader-context.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/grader-context.md index 81ccaaf6..639e2675 100755 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/grader-context.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/grader-context.md @@ -1,24 +1,18 @@ -# Grader Context & Ground Truth Reference +# Grader Context & Reference Answer Key -## System Architecture & Handler Breakdown +## Background +The repository processes voice cloning and speech synthesis jobs via AWS SQS background queues. -### 1. Voice Cloning Handler (`voice-cloning-job-handler`) -* **Message Ingestion**: Consumes SQS job payload containing `_id`, `userAudioProfileId`, and `userId`. -* **Database Operations**: Performs reads and updates on `VoiceCloning` and `UserAudioProfile`. -* **Ground Truth**: All queries and updates must include `{ userId }` alongside record `_id` to enforce multi-tenant isolation. +## Handlers & Database Models +1. **`voice-cloning-job-handler`**: + - Ingests queue messages containing `job._doc` (or `job._id`). + - Mongoose Models: `VoiceCloning` and `UserAudioProfile`. + - Operations: All database reads and updates must filter by `{ _id, userId }`. -### 2. Speech Synthesis Handler (`voice-synthsizer-job-handler`) -* **Message Ingestion**: Receives payload containing `userAudioProfileId`, `recordingId`, and `salutationId`. -* **Tenant Resolution**: Performs an initial lookup on `UserAudioProfile` using `_id: userAudioProfileId` to resolve `userAudioProfile.userId`. -* **Ground Truth**: - * The initial `UserAudioProfile` lookup by `_id` is the required tenant-resolution step. It does not require `userId` in its filter. - * All downstream reads and updates on `RecordingSalutation` and `Recording` MUST be scoped by the resolved `userId`. +2. **`voice-synthsizer-job-handler`**: + - Ingests queue messages containing resource IDs (`userAudioProfileId`, `recordingId`, `salutationId`). + - Trust Anchor Resolution: The initial lookup `UserAudioProfile.findById(userAudioProfileId)` is required to resolve `userAudioProfile.userId`. This initial profile query by ID is a valid tenant resolution step. + - Downstream Operations: All subsequent reads and updates on `RecordingSalutation` and `Recording` must filter by `{ _id, userId: userAudioProfile.userId }`. -### 3. Side Effects & Error Handling -* **Side-Effect Prevention**: If record ownership checks fail, the worker must halt processing before rendering audio or mutating records. -* **Worker Resilience**: Errors must be handled within the message processing block so that the outer worker polling loop remains active. -* **Lifecycle Logging**: Setting `status: 'failed'` or `'error'` on the requesting job record for lifecycle logging is valid and permitted. - -## Charge-Once & Routing Guidance -* **Crux Failure**: Charge execution of unauthorized side effects (database writes or audio rendering in either handler) strictly under `prevent-unauthorized-side-effects`. -* **Filter Syntax**: Charge missing `userId` filters in specific handler queries under `cloning-tenant-isolation` or `synthesis-tenant-isolation-queries-updates`. Do not charge both for the same underlying code line. +3. **Side-Effect Halting**: + - If a record is missing or does not match `userId`, the handler must halt before triggering audio generation, file rendering, or database updates. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md index 5a1dc212..64e0ee2d 100755 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md +++ b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md @@ -1,36 +1,23 @@ -# Evaluation Rubric: Multi-Tenant Data Isolation +# Evaluation Rubric -## Overview -This rubric evaluates the candidate agent's ability to audit and refactor backend background worker routines (`voice-cloning-job-handler` and `voice-synthsizer-job-handler`) to enforce multi-tenant data isolation and maintain worker polling loop stability. +## Narrow Correctness ---- +### Core Security & Tenant Isolation (Crux Requirement) +- **Halting Unauthorized Side Effects**: The refactored worker handlers (`voice-cloning-job-handler` and `voice-synthsizer-job-handler`) must halt processing and prevent all unauthorized side effects—including audio rendering, file creation, and database mutations—whenever tenant ownership validation fails or requested records do not match the tenant context. +- **Voice Cloning Tenant Isolation**: All database reads and updates in `voice-cloning-job-handler` on `VoiceCloning` and `UserAudioProfile` must incorporate `userId` in addition to record `_id`. +- **Speech Synthesis Tenant Isolation**: In `voice-synthsizer-job-handler`, the initial `UserAudioProfile` lookup by `_id` resolves `userAudioProfile.userId` as the tenant context anchor. All downstream queries and updates to `RecordingSalutation` and `Recording` must be scoped by this `userId`. -## 1. Narrow Correctness +*Routing note*: Grade halting of unauthorized side effects under `prevent-unauthorized-side-effects`. Do not double-penalize for query syntax omissions that are already evaluated under specific handler scoping criteria. -### Crux Criterion: Halting Unauthorized Side Effects -* **Requirement**: Both `voice-cloning-job-handler` and `voice-synthsizer-job-handler` must immediately halt processing if tenant ownership validation fails. They must perform no database mutations or audio rendering on unowned records. -* **Routing Note**: Grade the execution of unauthorized database writes or audio generation in either handler strictly under this criterion. Do not double-penalize query filter syntax omissions that are charged under handler-specific scoping criteria below. +### Allowed Lifecycle Tracking +- Marking an unauthorized or rejected job record's `status` as `'failed'` or `'error'` for lifecycle tracking on the requesting job record itself is permitted and does not constitute an unauthorized cross-tenant mutation. -### Voice Cloning Tenant Isolation -* **Requirement**: In `voice-cloning-job-handler`, all database queries and updates on `VoiceCloning` and `UserAudioProfile` must incorporate `userId` alongside record `_id`. - -### Speech Synthesis Tenant Isolation -* **Requirement**: In `voice-synthsizer-job-handler`, downstream queries and updates on `RecordingSalutation` and `Recording` must be scoped by the tenant identity (`userId`) resolved from the initial `UserAudioProfile` lookup. -* **Allowance (Dodged Bullet)**: The initial `UserAudioProfile` query using `_id: userAudioProfileId` is a necessary tenant-resolution step to discover `userId`. Graders must NOT penalize the agent for omitting `userId` from this initial resolution lookup. - ---- - -## 2. Broader Correctness / the craft of software engineering +## Broader Correctness / the craft of software engineering ### Worker Loop Resilience -* **Requirement**: Exceptions encountered during job processing must be caught gracefully so that invalid or unauthorized jobs do not crash the background worker polling loop. +- Background worker routines must catch processing errors gracefully so that unexpected exceptions or rejected jobs do not cause the main worker polling loop to crash. -### Job Lifecycle Error Logging Allowance -* **Allowance (Dodged Bullet)**: Updating job status to `'failed'` or `'error'` on the requesting job record itself for error tracking is an acceptable lifecycle logging practice and must NOT be penalized as an unauthorized cross-tenant mutation. +## Communication ---- - -## 3. Communication - -### Summary Accuracy -* **Requirement**: If the candidate agent provides an accompanying written summary or response message, it must accurately describe the tenant isolation refactoring without making false or misleading claims about the codebase. +### Response Clarity & Structure +- Evaluates how clearly, concisely, and coherently the response or pull request summary describes the refactoring changes and technical rationale.