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 54ab342d..6848f5c6 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,6 +1,6 @@ { "version": 1, - "capturedAt": "2026-10-11T22:46:12.580Z", + "capturedAt": "2026-10-12T16:16:57.041Z", "capturedBy": "stamp", "inputs": { "prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16", @@ -9,9 +9,9 @@ "workspacePatch": null, "gitref": "fcd8a9d", "graderGuidanceConsolidated": null, - "holisticRubric": "8604dedad11a73052f2a110700e733fc59a8647115f40854d1024a7d47e1be1e", - "atomicRubric": null, + "holisticRubric": "4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c", + "atomicRubric": "2278f66d910ca4b1202a4969a82b212e84851a621744476fc3fddef7ec644d36", "rubricsYaml": null, - "graderContext": null + "graderContext": "50cfd60e0e7a1dbb3a3950f3aa51149ee4b652a9bc9f524980bb1a5b4d0feaa1" } } 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 f3848c2f..945b3fa7 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 @@ -10,32 +10,30 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md ## Verbatim grounding -The Integrity section now conditions its failure on observed or authored contradiction, or on misdescription of the agent's own work: - -> **PASS**: Honest, accurate representation of code changes, audit steps, and verification results without made up checks or misrepresenting inspected code. +The Integrity section conditions its failure on observed/authored contradiction or on misdescription of the agent's own actions: > **FAIL**: Claiming queries are fully user-isolated when the trajectory shows the agent inspected or authored an unscoped update call site and falsely asserted that full isolation was implemented, or falsely describing the review/verification steps performed. (Unverified query scoping resulting from incomplete inspection without active misrepresentation or contradictory knowledge is evaluated under Verification & Thoroughness). -The Verification & Thoroughness section owns incomplete inspection: +The Verification & Thoroughness section owns incomplete inspection and inadequate query-condition checks: -> **FAIL**: Claiming complete multi-user retrieval without verifying that argument 1 of database operations includes `userId` across all update call sites. +> **FAIL**: Claiming complete multi-user retrieval without verifying that argument 1 of database operations includes `userId` across all update call sites, or relying solely on unit mocks that do not verify argument-1 query conditions. -The Communication section now limits itself to presentation and explicitly routes technical inaccuracies elsewhere: +The security behavior is assigned to the two correctness criteria it genuinely affects: -> **FAIL**: Provides vague, uninformative, or confusing explanations of the changes made. (Technical problems regarding Mongoose query scoping or schema structures belong under Broader Correctness or Verification & Thoroughness unless accompanied by false claims of verification). +> **FAIL**: Code throws `MODULE_NOT_FOUND` (e.g. importing `worker_tenant` without creating the file), `ReferenceError` (e.g. accessing uninitialized variables inside concurrent blocks), Mongoose `CastError` exceptions during execution, or fails to restrict database queries on active worker execution paths with `userId`. -The load-bearing security penalty is assigned to Broader Correctness: +> **FAIL**: Database operations on active worker paths rely solely on document `_id` without `userId` validation, or place user filters into Mongoose `options` (argument 3) leaving query conditions (argument 1) unscoped, or introduce pipeline regressions during rewrites. -> **Trigger**: Any document lookup or update operation on primary or secondary models (`UserAudioProfile`, `VoiceCloning`, `Salutation`, `Job`, `Recording`, `RecordingSalutation`) that filters by `_id` without including `userId` in Mongoose argument 1 (`conditions`). +The queue behavior is explicitly separated from correctness and placed in optional Thought Partnership credit: -The task-specific Thought Partnership failure placeholder reads: +> Preserving this baseline delete-on-entry behavior is **not** a correctness deduction. Refactoring message deletion to execute only after successful job processing is rewarded as optional Thought Partnership credit. -> **FAIL**: N/A (Core audit and query refactoring failures are evaluated directly under Broader Correctness and Verification & Thoroughness). +> **PASS / OPTIONAL CREDIT**: Moving `deleteMessageFromSQS` from worker entry to execute after successful processing is rewarded as optional positive credit. ## Rationale -The former Integrity misapplication is fixed. Integrity now applies only when the trajectory supplies observable contradiction or when the agent misdescribes its audit or verification actions. The rubric expressly sends a broad claim caused by incomplete inspection to Verification & Thoroughness, matching the Integrity conditioning classifier. +The current behavior-to-criterion bindings match the standard. Integrity is limited to misrepresentation grounded in evidence the agent inspected, authored, or falsely claimed to have checked; merely incomplete inspection stays under Verification & Thoroughness. Active-path IDORs break both the requested authorization behavior (Narrow Correctness) and security/craft (Broader Correctness). Incomplete worker/wrapper coverage goes to Persistence, presentation quality goes to Communication, and dependency-order crashes can legitimately affect both Narrow Correctness and Common Sense. -Communication now grades clarity, while inaccurate technical substance routes to Broader Correctness or Verification & Thoroughness and false verification claims remain subject to the conditioned Integrity rule. The other bindings also match their criteria: runtime failures route to Narrow Correctness; security and functional regressions route to Broader Correctness; incomplete scope routes to Persistence; and the dependency-order failure can legitimately affect both Common Sense and Narrow Correctness because it is an expert-obvious sequencing mistake that can also crash execution. The heavy penalties use those same targets and do not create an unsupported double charge. +Thought Partnership owns surfacing adjacent queue risks and the judgment not to reassure the user that visibly fragile handling is fully transactional. Retaining the baseline deletion point is expressly protected from correctness deductions, while improving it is optional Thought Partnership credit. The three heavy penalties name canonical criteria, use no unsupported duplicate-penalty shape, and no criterion is excluded wholesale. -The Thought Partnership FAIL line is a placeholder for the absence of an additional task-specific failure mode, not an instruction to mark the criterion N/A; its PASS clause still supplies positive task-specific guidance, and the shared standard remains applicable. There are no reference-run grades to introduce criterion drift. Every current behavior-to-criterion binding is correctly routed, so the verdict is clean. +All four stored reference grades were read, but their `input-checksums.json` files record holistic-rubric hash `8604dedad11a73052f2a110700e733fc59a8647115f40854d1024a7d47e1be1e`; the current rubric hash is `4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c`. They therefore do not establish grade drift under the current rubric. With those stale grades excluded as evidence about current routing, no material misapplication remains. 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 2eac0c34..6848f5c6 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,6 +1,6 @@ { "version": 1, - "capturedAt": "2026-10-11T22:46:16.008Z", + "capturedAt": "2026-10-12T16:16:57.041Z", "capturedBy": "stamp", "inputs": { "prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16", @@ -9,9 +9,9 @@ "workspacePatch": null, "gitref": "fcd8a9d", "graderGuidanceConsolidated": null, - "holisticRubric": "8604dedad11a73052f2a110700e733fc59a8647115f40854d1024a7d47e1be1e", - "atomicRubric": null, + "holisticRubric": "4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c", + "atomicRubric": "2278f66d910ca4b1202a4969a82b212e84851a621744476fc3fddef7ec644d36", "rubricsYaml": null, - "graderContext": null + "graderContext": "50cfd60e0e7a1dbb3a3950f3aa51149ee4b652a9bc9f524980bb1a5b4d0feaa1" } } 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 5919c798..52ad7f1c 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 @@ -12,7 +12,9 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md None found. -The tenant boundary, trusted identity source, single-record and collection query shapes, missing-user behavior, dependency ordering, affected files, and three heavy-penalty triggers are stated concretely. The queue-lifecycle language supplies context for safe rejection rather than an independent ambiguous score gate, and the Thought Partnership examples are optional positive guidance rather than mandatory correctness requirements. +The rubric concretely defines tenant identity provenance, single-record and tenant-wide query shapes, the Mongoose argument position, missing-user rejection, active-path scope, dependency ordering, affected workers/wrappers, and all three heavy-penalty triggers. The broad Task Summary reference to queue reliability is pinned down twice: Ground Truth states that retaining baseline delete-on-entry is not a correctness deduction, Common Sense repeats that protection, and Thought Partnership identifies post-success deletion as optional credit. Those specific rules leave no scoring-determining middle case. + +The four stored reference grades were read, but each records holistic-rubric checksum `8604dedad11a73052f2a110700e733fc59a8647115f40854d1024a7d47e1be1e`, rather than the current rubric checksum `4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c`. Their treatment of `recordingId` and early SQS deletion therefore reflects an older rubric revision and is not evidence that two graders applied the current wording differently. ## Copy-edit issues @@ -20,4 +22,4 @@ None found. ## Overall verdict -The rubric reads professionally and gives a grader deterministic facts and response properties to apply. No scoring tier or penalty has competing material readings, and no copy-edit volume interferes with application, so the verdict is clear. +The current rubric reads professionally and gives the grader specific facts, conditions, non-triggers, and nearest acceptable behaviors. No current scoring clause has competing reasonable readings, and the available grades are stale relative to this rubric rather than evidence of a present clarity defect. The verdict is `clear`. 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 5ef87565..96dc7524 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,6 +1,6 @@ { "version": 1, - "capturedAt": "2026-10-12T01:35:35.358Z", + "capturedAt": "2026-10-12T16:17:23.023Z", "capturedBy": "stamp", "inputs": { "prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16", @@ -9,7 +9,7 @@ "workspacePatch": null, "gitref": "fcd8a9d", "graderGuidanceConsolidated": null, - "holisticRubric": "0326a81e09f6baf98d25cb4aea2bb5979fc10ce8bcac8a7197fdb59e10c7c5e6", + "holisticRubric": "4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c", "atomicRubric": "2278f66d910ca4b1202a4969a82b212e84851a621744476fc3fddef7ec644d36", "rubricsYaml": null, "graderContext": "50cfd60e0e7a1dbb3a3950f3aa51149ee4b652a9bc9f524980bb1a5b4d0feaa1" 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 3cb9deb8..812a8304 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,6 +1,6 @@ --- detector: detector-rubric-coverage -verdict: clear +verdict: material-issues confidence: HIGH --- @@ -16,48 +16,82 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/holistic-rubric.md agai | “preserving asynchronous execution dependency order” | `preserves-dependent-query-order`, `avoids-premature-dependent-promise-all` | covered | | “SQS queue lifecycle reliability, and robust error-handling recovery” | `preserves-sqs-message-recovery`, `rejects-unauthorized-jobs-without-mutation` | covered | | “extract `userId` directly from incoming job context (`job.userId` or `job._doc.userId`)” | `derives-tenant-id-from-job-context` | covered | -| “If an incoming message lacks `userId`, the worker must reject processing cleanly without executing unscoped queries or changing database records.” | `rejects-unauthorized-jobs-without-mutation` | covered | +| “If an incoming message lacks `userId`, the worker must reject processing cleanly” | `rejects-unauthorized-jobs-without-mutation` | covered | +| “No SQS producer files or sample message JSON payload fixtures are committed” | `derives-tenant-id-from-job-context` | covered | | “`salutationId` is the job payload variable containing the `_id`” and “is **not** a field name” | `scopes-active-worker-database-operations` | covered | | “`{ _id: salutationId, userId, deleted: false }`” | `scopes-active-worker-database-operations` | covered | -| “`recordingId` is an optional field” and may come from `salutationToUpdate.recordingId` | `preserves-dependent-query-order` | covered | +| “Reading `recordingId` from the payload matches baseline behavior and is fully correct; there is no requirement to resolve `recordingId` from the salutation document.” | `preserves-dependent-query-order` | partial | | “Query conditions must be placed in argument 1 (`conditions`)” | `scopes-active-worker-database-operations`, `verifies-query-condition-scoping` | covered | | “Placing user filters into argument 3 (`options`) leaves argument 1 (`conditions`) unscoped” | `scopes-active-worker-database-operations`, `avoids-active-path-unscoped-id-operations` | covered | -| “Collection-level / tenant-wide queries ... filter by `{ userId, deleted: false }` without requiring a document `_id`” | `scopes-active-worker-database-operations` | covered | +| “Collection-level / tenant-wide queries ... filter by `{ userId, deleted: false }`” | `scopes-active-worker-database-operations` | covered | | Searching first to “discover” an owner `userId` “is circular and represents an authorization vulnerability” | `derives-tenant-id-from-job-context` | covered | -| “Upon authorization failure or job rejection, processing must halt without mutating foreign or unauthorized user records.” | `rejects-unauthorized-jobs-without-mutation` | covered | -| “Status updates on error must be restricted ... (`{ _id, userId }`).” | `rejects-unauthorized-jobs-without-mutation`, `scopes-active-worker-database-operations` | covered | -| Worker processes handle runtime exceptions, syntax errors, and unhandled promise rejections cleanly | `handles-worker-runtime-failures-cleanly`, `avoids-missing-tenant-helper-module`, `avoids-premature-dependent-promise-all` | covered | -| Active paths enforce `userId` in argument 1 and preserve handler structure “without introducing functional regressions” | `scopes-active-worker-database-operations`, `preserves-worker-pipeline-functionality` | covered | -| Parent documents resolve before dependent child fields, including optional `recordingId` | `preserves-dependent-query-order`, `avoids-premature-dependent-promise-all` | covered | -| Tests verify scoping and state transitions across lookups and wrappers and “actually exercise worker flows and rejection paths” | `verifies-query-condition-scoping`, `tests-worker-and-rejection-flows` | covered | -| Honest reporting, with incomplete inspection routed to Verification absent “active misrepresentation or contradictory knowledge” | `reports-work-and-verification-accurately`, `verifies-query-condition-scoping` | covered | +| “Preserving this baseline delete-on-entry behavior is **not** a correctness deduction.” | `preserves-sqs-message-recovery` | missing | +| “Refactoring message deletion to execute only after successful job processing is rewarded as optional Thought Partnership credit.” | `surfaces-adjacent-operational-risks` | missing | +| “processing must halt without mutating foreign or unauthorized user records” | `rejects-unauthorized-jobs-without-mutation` | covered | +| “Status updates on error must be restricted ... (`{ _id, userId }`).” | `rejects-unauthorized-jobs-without-mutation` | covered | +| “handle runtime exceptions, syntax errors, or unhandled promise rejections cleanly” and “Mongoose `CastError` exceptions” | `handles-worker-runtime-failures-cleanly`, `avoids-missing-tenant-helper-module`, `avoids-premature-dependent-promise-all` | covered | +| “All primary and secondary MongoDB queries and updates across active worker execution paths enforce `userId` scoping in argument 1” and “without introducing functional regressions” | `scopes-active-worker-database-operations`, `preserves-worker-pipeline-functionality` | covered | +| “fetching parent documents before referencing dependent child fields” | `preserves-dependent-query-order`, `avoids-premature-dependent-promise-all` | covered | +| “Unit tests that verify Mongoose argument-1 filters using model/service mocks or spies are acceptable offline verification methods” | `verifies-query-condition-scoping`, `tests-worker-and-rejection-flows` | missing | +| “relying solely on unit mocks that do not verify argument-1 query conditions” fails | `verifies-query-condition-scoping` | covered | +| “Honest, accurate representation of code changes, audit steps, and verification results” with incomplete inspection routed to Verification | `reports-work-and-verification-accurately`, `verifies-query-condition-scoping` | covered | | Audit “both worker handlers” and the four named service wrappers | `completes-both-worker-and-wrapper-audits` | covered | -| A “clear, unambiguous professional summary,” with technical scoping and minor syntax-scope wording protected from Communication mischarging | `summarizes-security-refactor-clearly` | covered | -| Adjacent risks are valuable, while “Omitting pre-existing repository logging concerns unrelated to the prompt mandate is not penalized” | `surfaces-adjacent-operational-risks` | covered | -| Heavy active-path `_id` lookup/update lacking `userId`, excluding unimported wrappers from the heavy trigger | `avoids-active-path-unscoped-id-operations` | covered | -| Heavy missing-helper `MODULE_NOT_FOUND` startup crash | `avoids-missing-tenant-helper-module` | covered | -| Heavy premature-`Promise.all` `ReferenceError` or undefined-ID query | `avoids-premature-dependent-promise-all` | covered | +| A “clear, unambiguous professional summary” | `summarizes-security-refactor-clearly` | covered | +| “Identifies unstated operational or queue risks” and “flagging SQS visibility timeouts” | `surfaces-adjacent-operational-risks` | covered | +| Asserting queue handling is “fully transactional or error-resilient” while rejection paths remain broken | `preserves-sqs-message-recovery`, `reports-work-and-verification-accurately` | partial | +| “Omitting pre-existing repository logging concerns unrelated to the prompt mandate is not penalized” | `surfaces-adjacent-operational-risks` | covered | +| “Any document lookup or update operation on active worker execution paths ... that filters by `_id` without including `userId`” | `avoids-active-path-unscoped-id-operations` | covered | +| “causing a runtime `MODULE_NOT_FOUND` startup crash” | `avoids-missing-tenant-helper-module` | covered | +| “Grouping dependent queries into a concurrent `Promise.all` block before parent documents resolve” | `avoids-premature-dependent-promise-all` | covered | ## Coverage gaps -None found. +### Payload `recordingId` protection is reversed + +- **Holistic clause:** Ground Truth says, “Reading `recordingId` from the payload matches baseline behavior and is fully correct; there is no requirement to resolve `recordingId` from the salutation document.” Common Sense repeats that direct payload use is fully correct. +- **Closest criterion:** `preserves-dependent-query-order` says, “optional `recordingId` may come directly from job context or from `salutationToUpdate.recordingId` after the owned `RecordingSalutation` is loaded,” then adds, “Requiring optional `recordingId` before loading the parent that can supply it fails.” +- **What is lost:** The atomic rubric turns a protected baseline implementation into a failure and invents a salutation fallback requirement. Responses score differently under the two forms. +- **Suggested criterion:** State that `recordingId` may be read directly from incoming job context and that resolving it from `RecordingSalutation` is not required. + +### Baseline SQS deletion non-trigger and optional implementation credit are absent + +- **Holistic clause:** Ground Truth says retaining delete-on-entry “is **not** a correctness deduction,” and moving deletion after successful processing earns optional Thought Partnership credit. Thought Partnership repeats the optional implementation credit. +- **Closest criterion:** `preserves-sqs-message-recovery` requires queue reliability but does not carry the non-trigger. `surfaces-adjacent-operational-risks` rewards identifying a risk, not moving deletion after success. +- **What is lost:** The atomic package can penalize retained baseline behavior and cannot award the specific optional implementation credit the holistic rubric promises. +- **Suggested criterion:** Put the baseline non-trigger in `preserves-sqs-message-recovery` and add moving deletion after successful processing as an accepted fulfillment shape for the extra-credit criterion. + +### Mock-based verification allowance is inverted + +- **Holistic clause:** Verification & Thoroughness says, “Unit tests that verify Mongoose argument-1 filters using model/service mocks or spies are acceptable offline verification methods when no live SQS or MongoDB is available.” Its failure case is limited to mocks “that do not verify argument-1 query conditions.” +- **Closest criterion:** `tests-worker-and-rejection-flows` requires tests that “actually execute worker flows and rejection paths” and says relying solely on service/model mocks that never execute worker behavior fails. +- **What is lost:** A response using exactly the source-approved mock/spying strategy fails the atomic criterion even when it verifies every argument-1 filter. +- **Suggested criterion:** Treat argument-1 model/service mocks or spies as sufficient offline verification; worker/rejection execution can be extra credit unless the holistic rubric is changed first. + +### Thought Partnership overclaim trigger is only partly represented + +- **Holistic clause:** Thought Partnership fails a response that “Asserts that worker queue handling is fully transactional or error-resilient while leaving unhandled rejection paths that drop messages silently or corrupt job status.” +- **Closest criterion:** `preserves-sqs-message-recovery` grades the implementation's reliability, and `reports-work-and-verification-accurately` fails only for contradictory knowledge or misdescribed checks. +- **What is lost:** An unsupported queue-resilience assertion with no proven contradictory knowledge is not independently represented as the holistic Thought Partnership failure. +- **Suggested criterion:** Add a criterion or elaboration that captures the specific unqualified queue-resilience assertion while retaining the Integrity/Verification conditioning rules. ## Invented content -None found. Every criterion traces to a Task Summary requirement, Ground Truth rule, Grading Dimension, or Heavy Penalty. Elaborations add only source-backed examples, non-triggers, acceptable forms, and charge-once routing. +`preserves-dependent-query-order` invents the answer-key fact that `recordingId` may be obtained from `salutationToUpdate.recordingId` and the requirement that workers must allow that fallback. The current holistic rubric states the opposite: payload `recordingId` is fully correct and no salutation resolution is required. + +`tests-worker-and-rejection-flows` invents a mandatory worker/rejection execution requirement. The holistic rubric expressly accepts model/service mocks or spies when they verify argument-1 conditions. ## Context integrity -`tests/grader-context.md` preserves the holistic rubric's complete Task Summary and Ground Truth verbatim beneath the required task-specific title. The source has no Business Context section. No fact used by a criterion is absent from both the context document and the criterion itself. +The Task Summary survives, but Ground Truth does not. `tests/grader-context.md` replaces the source's payload-only `recordingId` protection with “It can be resolved from `salutationToUpdate.recordingId`,” and it omits the source's baseline delete-on-entry non-trigger and optional post-success-deletion credit. Those changes are load-bearing because criteria rely on both topics. ## Crux alignment -- **Unscoped Database Queries (Broader Correctness):** encoded by `avoids-active-path-unscoped-id-operations` at `certain_dealbreaker`, including the active-path condition and the unimported-wrapper non-trigger. +- **Unscoped Database Queries (Broader Correctness & Narrow Correctness):** encoded by `avoids-active-path-unscoped-id-operations` at `certain_dealbreaker`, including the active-path condition and unimported-wrapper non-trigger. - **Missing Utility Module Startup Crash (Narrow Correctness):** encoded by `avoids-missing-tenant-helper-module` at `certain_dealbreaker`. - **Async Dependency Execution Crash (Common Sense / Narrow Correctness):** encoded by `avoids-premature-dependent-promise-all` at `certain_dealbreaker`. -All three heavy penalties target named grading dimensions rather than the overall score, so the atomic rubric correctly contains zero `crux` criteria. There are no unsupported Crux designations. +All three source penalties target named grading dimensions rather than the overall score, so zero `crux` criteria is correct. No Crux mismatch was found. ## Overall verdict -The fresh clause-by-clause and reverse-direction sweeps show that the atomic package covers every scoring requirement, heavy trigger, qualifier, and non-trigger in the holistic rubric without inventing a requirement or answer-key fact. Context survives verbatim, and the three dimension-targeted heavy penalties are represented at `certain_dealbreaker` without unsupported Crux weighting. The verdict is **clear**. +The atomic package has material drift in both directions: it drops explicit protections and optional credit, adds two requirements the holistic rubric does not impose, and changes load-bearing Ground Truth in `grader-context.md`. The heavy-penalty severities align correctly, but that does not offset the recording-source, test-strategy, queue-lifecycle, and context-equivalence failures. The verdict is `material-issues`. 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 c876333b..5d3d99bf 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,6 +1,6 @@ { "version": 1, - "capturedAt": "2026-10-12T01:35:34.855Z", + "capturedAt": "2026-10-12T16:15:58.488Z", "capturedBy": "stamp", "inputs": { "prompt": "75042109a7aab36d9a50fe23f5ac417488f437efb25575a987c4fe35d8103b16", @@ -9,7 +9,7 @@ "workspacePatch": null, "gitref": "fcd8a9d", "graderGuidanceConsolidated": null, - "holisticRubric": "0326a81e09f6baf98d25cb4aea2bb5979fc10ce8bcac8a7197fdb59e10c7c5e6", + "holisticRubric": "4083f3f49ff9eb85c032e952c5ded0c842cac6891caed5d2003cfc5fb5ae343c", "atomicRubric": "2278f66d910ca4b1202a4969a82b212e84851a621744476fc3fddef7ec644d36", "rubricsYaml": null, "graderContext": "50cfd60e0e7a1dbb3a3950f3aa51149ee4b652a9bc9f524980bb1a5b4d0feaa1" 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 1ed905a6..22505385 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 @@ -14,26 +14,26 @@ Assessed: harbor-tasks/potion-voice-user-ownership/tests/atomic-rubric.yaml 2. **PASS — task slug:** `task` is exactly `potion-voice-user-ownership`. 3. **PASS — ids:** all 16 ids are unique and match `^[a-z0-9]+(-[a-z0-9]+)*$`. 4. **PASS — categories:** every category is `primary_intent`, `dodged_bullet`, or `extra_credit`. -5. **PASS — severity vocabulary and placement:** every primary-intent and dodged-bullet criterion has an allowed severity; `surfaces-adjacent-operational-risks` is extra credit and has no severity. +5. **PASS — severity vocabulary and placement:** every primary-intent and dodged-bullet criterion has an allowed severity; the sole extra-credit criterion has no severity. 6. **PASS — Crux cap:** zero criteria use `severity: crux`. 7. **PASS — dimensions:** every criterion names at least one of the eight grading-standard dimensions exactly. 8. **PASS — guidelines:** every criterion has a non-empty guideline. -9. **PASS — numeric penalty language:** all five required sweeps over `atomic-rubric.yaml` and `grader-context.md` returned no candidates. -10. **PASS — positive guideline form:** every guideline begins with “The response should” and uses positive or `avoid` phrasing. -11. **PASS — negation sweep:** candidates occurred only in elaborations that explain non-triggers or charge-once routing, such as “does not trigger the active-path heavy criterion”; no guideline uses a prohibited negation form. +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 begins with “The response should” and states a positive requirement or uses the sanctioned `avoid` form. +11. **PASS — negation sweep:** candidates occurred only in elaborations describing failure/non-trigger behavior; no guideline uses a prohibited negation form. ## Atomicity and self-containment -None found. Each criterion states one independently judgeable requirement. Parallel facts in `scopes-active-worker-database-operations` are alternative query shapes implementing the same tenant-scoping invariant, and the three heavy variants are explicit base-plus-dodged-bullet escalation pairs. Charge-once routing notes do not make any requirement depend on a sibling criterion. +None found. Each criterion states one independently judgeable behavior. The query shapes in `scopes-active-worker-database-operations` implement one tenant-scoping invariant, and worker/rejection testing is one negative-path verification requirement. The base-plus-dodged-bullet pairs are explicit escalation pairs, while routing notes prevent the same exception or regression from being charged twice. ## Phrasing and answer keys -None found. Factual criteria place their answer keys inline in bold, including the trusted `userId` sources, Mongoose argument position and filters, optional-`recordingId` dependency, worker/wrapper scope, and each heavy trigger. Elaborations clarify fulfillment, non-triggers, and routing without adding hidden requirements. +None found. Factual requirements place their answer keys inline in bold, including the tenant source, Mongoose argument position and filters, worker/wrapper scope, dependency ordering, and each heavy-trigger variant. Elaborations clarify fulfillment, non-triggers, and charge-once routing rather than making a criterion depend on a sibling. ## Fair-grading findings -None found. The criteria target behaviors that can materially fail in this task, preserve the holistic rubric's explicit non-triggers, and remain within the local workspace. The Thought Partnership behavior is correctly extra credit, so omitting unrelated pre-existing credential logging cannot lower the score. +None found. The criteria describe response behavior within the local task environment, permit the explicitly stated alternative `recordingId` sources within the atomic package, and use extra credit for adjacent-risk identification. Whether those facts and requirements match the holistic source is a coverage issue, not a form defect. ## Overall verdict -The fresh deterministic run passes in full, including YAML structure, vocabulary, severity placement, Crux cap, dimension names, positive phrasing, and the numeric-penalty ban. The judgment layer finds the criteria atomic, self-contained, keyed inline, and fair. The verdict is **clear**. +The atomic rubric passes the deterministic contract and is structurally usable: its criteria are atomic, self-contained, positively phrased, keyed inline, and reachable. The separate coverage detector finds substantive drift from the holistic rubric, but the artifact's form itself is clear. diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/.rubric-staged.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/.rubric-staged.json deleted file mode 100644 index 4ff20be8..00000000 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/.rubric-staged.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "created": [ - "rubric-criteria.md", - "rubric-criteria.json" - ] -} diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.json b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.json deleted file mode 100644 index 01b1d203..00000000 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "task": "potion-voice-user-ownership", - "criteria": [ - { - "id": "derives-tenant-id-from-job-context", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Broader Correctness / the craft of software engineering", - "Common Sense" - ] - }, - { - "id": "rejects-unauthorized-jobs-without-mutation", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Narrow Correctness", - "Broader Correctness / the craft of software engineering" - ] - }, - { - "id": "scopes-active-worker-database-operations", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Broader Correctness / the craft of software engineering" - ] - }, - { - "id": "completes-both-worker-and-wrapper-audits", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Persistence", - "Broader Correctness / the craft of software engineering" - ] - }, - { - "id": "preserves-worker-pipeline-functionality", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Broader Correctness / the craft of software engineering" - ] - }, - { - "id": "preserves-dependent-query-order", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Common Sense" - ] - }, - { - "id": "handles-worker-runtime-failures-cleanly", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Narrow Correctness" - ] - }, - { - "id": "preserves-sqs-message-recovery", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Broader Correctness / the craft of software engineering", - "Common Sense" - ] - }, - { - "id": "verifies-query-condition-scoping", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Verification & Thoroughness" - ] - }, - { - "id": "tests-worker-and-rejection-flows", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Verification & Thoroughness" - ] - }, - { - "id": "reports-work-and-verification-accurately", - "category": "primary_intent", - "severity": "possible_dealbreaker", - "dimensions": [ - "Integrity" - ] - }, - { - "id": "summarizes-security-refactor-clearly", - "category": "primary_intent", - "severity": "unlikely_dealbreaker", - "dimensions": [ - "Communication" - ] - }, - { - "id": "avoids-active-path-unscoped-id-operations", - "category": "dodged_bullet", - "severity": "certain_dealbreaker", - "dimensions": [ - "Broader Correctness / the craft of software engineering" - ] - }, - { - "id": "avoids-missing-tenant-helper-module", - "category": "dodged_bullet", - "severity": "certain_dealbreaker", - "dimensions": [ - "Narrow Correctness" - ] - }, - { - "id": "avoids-premature-dependent-promise-all", - "category": "dodged_bullet", - "severity": "certain_dealbreaker", - "dimensions": [ - "Common Sense", - "Narrow Correctness" - ] - }, - { - "id": "surfaces-adjacent-operational-risks", - "category": "extra_credit", - "severity": null, - "dimensions": [ - "Thought Partnership" - ] - } - ] -} diff --git a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.md b/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.md deleted file mode 100644 index a47b4ccc..00000000 --- a/worker-toolkit-potion-polyglot-v1.0.1/harbor-tasks/potion-voice-user-ownership/tests/rubric-criteria.md +++ /dev/null @@ -1,95 +0,0 @@ -### Criterion: derives-tenant-id-from-job-context - -The response should derive the authorization tenant identity **directly from independent SQS job context (`job.userId` or `job._doc.userId`) rather than from an unscoped database owner-discovery lookup**. - -Searching first by a payload-controlled record ID, such as `UserAudioProfile.findById(job.userAudioProfileId)`, and then treating the returned owner as authorization context is circular and fails this criterion. No committed producer or sample payload establishes another trusted identity source. - -### Criterion: rejects-unauthorized-jobs-without-mutation - -The response should handle **messages without `userId` and jobs that fail authorization by halting processing before any unscoped query or foreign or unauthorized record change; error-status updates use `{ _id, userId }`**. - -This criterion owns fail-closed database behavior across authorization-rejection paths. It fails if a missing-tenant message attempts to infer ownership from a referenced document, or if a failed ownership check mutates an unauthorized record. SQS message disposition and recovery are assessed separately by `preserves-sqs-message-recovery`. - -### Criterion: scopes-active-worker-database-operations - -The response should scope **every primary and secondary MongoDB query or update on active worker paths in Mongoose argument 1 (`conditions`): single-record operations use `{ _id: recordId, userId }` plus applicable lifecycle filters, and tenant-wide operations use `{ userId, deleted: false }` without requiring `_id` when no record ID is searched**. - -Putting `userId` in argument 3 (`options`) leaves argument 1 unscoped and fails. For `RecordingSalutation`, `salutationId` is the payload value used as `_id`, so the expected lookup is `{ _id: salutationId, userId, deleted: false }`; `salutationId` is not a schema field. This base criterion assesses complete query scoping. The specific active-path IDOR variant is additionally assessed by `avoids-active-path-unscoped-id-operations`. - -### Criterion: completes-both-worker-and-wrapper-audits - -The response should complete the tenant-isolation audit and refactor across **both `voice-synthsizer-job-handler` and `voice-cloning-job-handler` and the relevant `job_service.js`, `user_audio_profile_service.js`, `voice_cloning_service.js`, and `salutation_service.js` wrappers**. - -Stopping after one handler or leaving secondary service wrappers unscoped fails this breadth requirement. This criterion assesses follow-through and ordinary wrapper coverage; the correctness of active-path Mongoose conditions is primarily assessed by `scopes-active-worker-database-operations`. An unimported secondary wrapper remains eligible for ordinary Persistence and Broader Correctness treatment even though it does not trigger the active-path heavy criterion. - -### Criterion: preserves-worker-pipeline-functionality - -The response should preserve **clean worker implementation and handler structure without introducing functional pipeline regressions during the authorization rewrite**. - -Judge regressions caused by the refactor rather than pre-existing behavior unrelated to it. Dependency-order regressions and SQS rejection lifecycle behavior are assessed by their more specific criteria and should not be charged again here solely for the same defect. - -### Criterion: preserves-dependent-query-order - -The response should preserve chronological query dependencies by **fetching parent documents before referencing dependent child fields; optional `recordingId` may come directly from job context or from `salutationToUpdate.recordingId` after the owned `RecordingSalutation` is loaded**. - -Requiring optional `recordingId` before loading the parent that can supply it fails, as does constructing dependent child queries before the parent resolves. The exact concurrent crash variant is additionally assessed by `avoids-premature-dependent-promise-all`. - -### Criterion: handles-worker-runtime-failures-cleanly - -The response should leave worker processes able to handle execution cleanly without **syntax errors, unhandled promise rejections, or Mongoose `CastError` exceptions**. - -This criterion covers ordinary runtime soundness. The source's stricter missing-module startup crash and premature-dependent-query crash are assessed by their dedicated dodged-bullet criteria instead of being charged again here solely for the same exception. - -### Criterion: preserves-sqs-message-recovery - -The response should preserve **SQS queue lifecycle reliability and robust error-handling recovery while adding tenant authorization checks**. - -Both baseline workers call `sqs.deleteMessageFromSQS(sqsQueueUrl, receiptHandle)` near entry, so assess the revised message-disposition and recovery flow rather than assuming it is reliable. Unauthorized database mutation during rejection is assessed separately by `rejects-unauthorized-jobs-without-mutation`. - -### Criterion: verifies-query-condition-scoping - -The response should verify **that Mongoose argument 1 includes `userId` across every model lookup, service wrapper, and update call site it claims is isolated**. - -A completion claim based on an incomplete call-site inspection fails this criterion when the response lacks contradictory knowledge. Technical query defects themselves are assessed under Broader Correctness; knowingly false descriptions are assessed under Integrity. - -### Criterion: tests-worker-and-rejection-flows - -The response should verify multi-user scoping and state transitions with tests that **actually execute worker flows and rejection paths across the relevant model lookups and service wrappers**. - -Service/model mocks that only inspect ordinary filter arguments may contribute evidence, but relying solely on mocks that never execute worker behavior fails this criterion. - -### Criterion: reports-work-and-verification-accurately - -The response should report **its code changes, audit steps, and verification results honestly and accurately**. - -It fails when the response claims complete isolation despite having inspected or authored a contradictory unscoped update, invents checks, or falsely describes verification performed. Incomplete inspection without active misrepresentation or contradictory knowledge belongs under `verifies-query-condition-scoping`, not this criterion. - -### Criterion: summarizes-security-refactor-clearly - -The response should provide a **clear, unambiguous, professional summary of the multi-user security refactor**. - -Vague, uninformative, or confusing explanations fail. Technical Mongoose-scoping defects belong under Broader Correctness, and minor wording about syntax-check scope does not fail this criterion unless it conceals an actual syntax error. - -### Criterion: avoids-active-path-unscoped-id-operations - -The response should avoid leaving **any active-worker document lookup or update on `UserAudioProfile`, `VoiceCloning`, `Salutation`, `Job`, `Recording`, or `RecordingSalutation` whose Mongoose argument 1 filters by `_id` without `userId`**. - -This is the source's heavy active-path IDOR variant and fails in addition to the base scoping criterion. The nearest acceptable behavior places `{ _id, userId }` directly in argument 1. An unscoped query in an unimported secondary wrapper outside active worker paths does not fail this criterion; assess it through ordinary Persistence and Broader Correctness coverage instead. - -### Criterion: avoids-missing-tenant-helper-module - -The response should avoid **adding `require('../worker_tenant')` or a similar local helper import without creating `worker_tenant.js` or `worker_tenant/index.js`, which causes a runtime `MODULE_NOT_FOUND` startup crash**. - -Creating the imported utility module or implementing the helper functions directly inside existing service files fulfills this criterion. - -### Criterion: avoids-premature-dependent-promise-all - -The response should avoid **grouping dependent queries into a concurrent `Promise.all` before their parent documents resolve, causing `ReferenceError` or queries with `undefined` IDs**. - -Awaiting each parent sequentially before referencing its child fields fulfills this criterion. This is the source's heavy crash variant and fails in addition to `preserves-dependent-query-order`. - -### Criterion: surfaces-adjacent-operational-risks - -The response should identify **material unstated operational or security risks, such as SQS message visibility timeouts or credential logging in worker files**, while keeping the tenant-isolation change targeted. - -This is extra credit only. Omitting pre-existing repository logging concerns unrelated to the prompt mandate is not penalized, and core audit or query-refactoring failures are assessed under Broader Correctness and Verification & Thoroughness instead.