Data subject requests

Judge a data subject erasure or export request against explicit policy evidence, record the verdict durably through the store, and emit only a bounded handoff for a separate governed downstream run.

You’re reading version sha-a560e258cc1c. Go to the current version

Overview

Judge whether a data subject request is in policy without erasing, exporting, or sending anything. The skill reads a request packet, requestor proof, and policy bounds, decides eligibility deterministically, appends the verdict to the subject request event stream through the store's events.append, and returns a bounded handoff that a separate governed operator run may consume.

This is not a legal authority and does not replace counsel. It is an execution boundary for policy evidence: the receipt proves which inputs were inspected, which lawful basis was named, which scope was allowed or refused, and which durable verdict was appended.

In the manual

Runner

  • decide

Declared by its execution profile. Read the profile

SKILL.md

Privacy Request Review

Judge whether a data subject request is in policy without erasing, exporting, or sending anything. The skill reads a request packet, requestor proof, and policy bounds, decides eligibility deterministically, appends the verdict to the subject request event stream through the store's events.append, and returns a bounded handoff that a separate governed operator run may consume.

This is not a legal authority and does not replace counsel. It is an execution boundary for policy evidence: the receipt proves which inputs were inspected, which lawful basis was named, which scope was allowed or refused, and which durable verdict was appended.

Procedure

  1. Native data.digest binds the exact request packet and policy.
  2. Deterministic judgment: the request type must be erasure or export, the identity provider must be in trusted_identity_providers, the proof must carry a valid verified_at and a sha256 assertion digest bound to the same subject, a lawful basis must be named for the request type, and every requested data class must sit inside both scope_bounds.data_classes and the type-specific allowed list. Any failure refuses with every reason named; nothing is inferred.
  3. The verdict, eligible or refused, is appended to the pinned store stream with optimistic concurrency and an idempotency key, so repeated runs cannot double-record.
  4. The final packet binds the append evidence and both digests. An eligible verdict carries a bounded handoff (erasure operator, or read-projection through redact-pii into message-send for export); a refusal carries escalation to human_privacy_review and no handoff.

downstream_effect_performed is always false; the downstream operator owns the actual erasure or export under its own authority and receipt.

Output

subject_request_verdict (runx.data_subject_request.v1) carries request, decision, escalation, legal, requestor, scope_bounds, handoff or null, persistence with the committed stream version, and both input digests.

Inputs are request_packet, requestor_proof, policy, and the store binding (data_source_ref, resource, aggregate_id, expected_version, idempotency_key).

Published execution profile

The execution profile published with sha-a560e258cc1c, shown as its exact bytes.

Runner
  • decide
Profile digestsha256:ec4ec6c1bdd00e2f9e42fdd8efb0b46fb18822c3d29abd6ee739648c594ea537
skill: privacy-request-review
version: "0.1.9"

catalog:
  kind: graph
  audience: operator
  visibility: public
  category: security
  role: canonical
  execution: plan
  completion: runtime_receipt
  approval: none

harness:
  files: [fixtures/support/composed.graph]
  cases:
    - name: privacy-request-review-eligible-erasure-records-verdict
      operator_journeys:
        - mode: standalone
          confusors: [redact-pii, support-triage]
          request: Judge this erasure request against policy and record the verdict durably before any downstream action.
          expected_outcome: Return a sealed eligibility verdict appended to the subject request stream, with no erasure performed.
        - mode: composed
          request: Continue from this recorded verdict into the downstream erasure operator.
          expected_outcome: Reuse the sealed verdict and bounded handoff without re-judging the request.
          prior_evidence:
            - The request packet, proof, policy, and sealed verdict supplied by the prior step.
          must_not_repeat:
            - Do not re-derive the eligibility decision already recorded.
      inputs:
        request_packet:
          type: erasure
          subject_id: subject:alice
          scope:
            request_id: dsr-001
            data_classes: [profile, activity]
            requested_scopes: [profile, activity]
        requestor_proof:
          identity_provider: idp:acme
          verified_at: "2026-08-01T10:00:00Z"
          assertion:
            subject_id: subject:alice
            assertion_ref: idp:acme:session:9911
            assertion_digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        policy:
          jurisdiction: GDPR
          trusted_identity_providers: [idp:acme]
          lawful_bases:
            erasure: art17_right_to_erasure
          scope_bounds:
            data_classes: [profile, activity, billing]
            erasure_allowed: [profile, activity]
            export_allowed: [profile]
        data_source_ref: tenant://privacy/sqlite-requests
        resource: subject_requests
        aggregate_id: subject:alice:dsr-001
        expected_version: 0
        idempotency_key: dsr-001:verdict:v1
      expect:
        status: sealed
        steps: [digest-request, digest-policy, judge, persist-verdict, finalize]
        step_outputs:
          finalize:
            subset:
              subject_request_verdict:
                data:
                  schema: runx.data_subject_request.v1
                  decision: { eligible: true }
                  escalation: { required: false }
                  persistence:
                    append_status: committed
                    aggregate_id: subject:alice:dsr-001
                    after_version: 1
                  downstream_effect_performed: false
        receipt: { schema: runx.receipt.v1 }

    - name: privacy-request-review-unverified-requestor-refused
      inputs:
        request_packet:
          type: erasure
          subject_id: subject:alice
          scope:
            request_id: dsr-002
            data_classes: [profile]
        requestor_proof:
          identity_provider: idp:unknown
          verified_at: "2026-08-01T10:00:00Z"
          assertion:
            subject_id: subject:bob
            assertion_digest: sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
        policy:
          jurisdiction: GDPR
          trusted_identity_providers: [idp:acme]
          lawful_bases:
            erasure: art17_right_to_erasure
          scope_bounds:
            data_classes: [profile, activity]
            erasure_allowed: [profile]
            export_allowed: [profile]
        data_source_ref: tenant://privacy/sqlite-requests
        resource: subject_requests
        aggregate_id: subject:alice:dsr-002
        expected_version: 0
        idempotency_key: dsr-002:verdict:v1
      expect:
        status: sealed
        steps: [digest-request, digest-policy, judge, persist-verdict, finalize]
        step_outputs:
          finalize:
            subset:
              subject_request_verdict:
                data:
                  decision: { eligible: false }
                  escalation:
                    required: true
                    lane: human_privacy_review
                  handoff: null
                  persistence:
                    append_status: committed
                    after_version: 1
        receipt: { schema: runx.receipt.v1 }

    - name: privacy-request-review-needs-policy
      inputs:
        request_packet:
          type: erasure
          subject_id: subject:alice
          scope:
            request_id: dsr-003
            data_classes: [profile]
        requestor_proof:
          identity_provider: idp:acme
          verified_at: "2026-08-01T10:00:00Z"
        data_source_ref: tenant://privacy/sqlite-requests
        resource: subject_requests
        aggregate_id: subject:alice:dsr-003
        expected_version: 0
        idempotency_key: dsr-003:verdict:v1
      expect:
        status: failure

connectors:
  store:
    operations: [events.append]
runners:
  decide:
    default: true
    inputs:
      request_packet:
        type: object
        required: true
        description: Data subject request with type, subject_id, and bounded scope.
        schema:
          additionalProperties: false
          properties:
            type: { type: string, enum: [erasure, export] }
            subject_id: { type: string, minLength: 1, maxLength: 500 }
            scope:
              type: object
              additionalProperties: false
              properties:
                request_id: { type: string, minLength: 1, maxLength: 500 }
                data_classes:
                  type: array
                  maxItems: 100
                  items: { type: string, minLength: 1, maxLength: 200 }
                requested_scopes:
                  type: array
                  maxItems: 100
                  items: { type: string, minLength: 1, maxLength: 200 }
      requestor_proof:
        type: object
        required: true
        description: Identity proof binding the requestor to the subject, including a sha256 assertion digest.
      policy:
        type: object
        required: true
        description: Jurisdiction policy with trusted providers, lawful bases, and scope bounds.
      data_source_ref:
        type: string
        required: true
        description: Pinned data source holding the subject request event stream.
      resource:
        type: string
        required: true
        description: Declared event resource for subject request verdicts.
      aggregate_id:
        type: string
        required: true
        description: Subject request stream key.
      expected_version:
        type: number
        required: true
        description: Current stream version required before the verdict append.
      idempotency_key:
        type: string
        required: true
        description: Stable retry key for this verdict write.
    examples:
      - request_packet:
          type: erasure
          subject_id: subject:alice
          scope:
            request_id: dsr-001
            data_classes: [profile]
        requestor_proof:
          identity_provider: idp:acme
          verified_at: "2026-08-01T10:00:00Z"
          assertion:
            subject_id: subject:alice
            assertion_digest: sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        policy:
          jurisdiction: GDPR
          trusted_identity_providers: [idp:acme]
          lawful_bases: { erasure: art17_right_to_erasure }
          scope_bounds:
            data_classes: [profile]
            erasure_allowed: [profile]
            export_allowed: [profile]
        data_source_ref: tenant://privacy/sqlite-requests
        resource: subject_requests
        aggregate_id: subject:alice:dsr-001
        expected_version: 0
        idempotency_key: dsr-001:verdict:v1
    result_from: [finalize]
    steps:
      - id: digest-request
        tool: data.digest
        inputs:
          value: $input.request_packet

      - id: digest-policy
        tool: data.digest
        inputs:
          value: $input.policy

      - id: judge
        label: judge eligibility against policy deterministically
        inputs:
          request_packet: $input.request_packet
          requestor_proof: $input.requestor_proof
          policy: $input.policy
        tool: { module: privacy-request-review.mjs, export: judgeRequest }
        outputs:
          verdict_draft: object
        artifacts:
          named_emits:
            verdict_draft: verdict_draft

      - id: persist-verdict
        operation: store/events.append
        idempotency_key: $input.idempotency_key
        input:
          data_source_ref: $input.data_source_ref
          resource: $input.resource
          aggregate_id: $input.aggregate_id
          expected_version: $input.expected_version
          event: $steps.judge.verdict_draft.event

      - id: finalize
        label: bind the durable verdict and digests into one packet
        inputs:
          verdict_draft: $steps.judge.verdict_draft
          append_result: $steps.persist-verdict.provider_operation.result
          request_digest: $steps.digest-request.digest_result.digest
          policy_digest: $steps.digest-policy.digest_result.digest
        tool: { module: privacy-request-review.mjs, export: finalizeVerdict }
        outputs:
          subject_request_verdict:
            type: object
            schema:
              required: [schema, request, decision, escalation, legal, requestor, scope_bounds, handoff, persistence, request_digest, policy_digest, downstream_effect_performed]
              additionalProperties: false
              properties:
                schema: { const: runx.data_subject_request.v1 }
                request:
                  type: object
                  required: [request_id, type, subject_id, requested_scopes, data_classes]
                  additionalProperties: false
                  properties:
                    request_id: { type: string, minLength: 1, maxLength: 500 }
                    type: { type: string, minLength: 1, maxLength: 50 }
                    subject_id: { type: string, maxLength: 500 }
                    requested_scopes:
                      type: array
                      maxItems: 100
                      items: { type: string, minLength: 1, maxLength: 200 }
                    data_classes:
                      type: array
                      maxItems: 100
                      items: { type: string, minLength: 1, maxLength: 200 }
                decision:
                  type: object
                  required: [eligible, reason]
                  additionalProperties: false
                  properties:
                    eligible: { type: boolean }
                    reason: { type: string, minLength: 1, maxLength: 4000 }
                escalation:
                  type: object
                  required: [required, lane, reason]
                  additionalProperties: false
                  properties:
                    required: { type: boolean }
                    lane: { type: string, minLength: 1, maxLength: 200 }
                    reason: { type: string, minLength: 1, maxLength: 4000 }
                legal:
                  type: object
                  required: [jurisdiction, lawful_basis]
                  additionalProperties: false
                  properties:
                    jurisdiction: { type: string, minLength: 1, maxLength: 200 }
                    lawful_basis: { type: [string, "null"], maxLength: 500 }
                requestor:
                  type: object
                  required: [identity_provider, verified_at, assertion_ref, identity_assertion_digest]
                  additionalProperties: false
                  properties:
                    identity_provider: { type: string, maxLength: 500 }
                    verified_at: { type: string, maxLength: 100 }
                    assertion_ref: { type: string, maxLength: 1000 }
                    identity_assertion_digest: { type: string, maxLength: 200 }
                scope_bounds:
                  type: object
                  required: [data_classes, requested_scopes]
                  additionalProperties: false
                  properties:
                    data_classes:
                      type: array
                      maxItems: 100
                      items: { type: string, minLength: 1, maxLength: 200 }
                    requested_scopes:
                      type: array
                      maxItems: 100
                      items: { type: string, minLength: 1, maxLength: 200 }
                handoff: { type: [object, "null"], additionalProperties: true }
                persistence:
                  type: object
                  required: [append_status, aggregate_id, after_version]
                  additionalProperties: false
                  properties:
                    append_status: { const: committed }
                    aggregate_id: { type: string, minLength: 1, maxLength: 500 }
                    after_version: { type: integer, minimum: 1 }
                request_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
                policy_digest: { type: string, pattern: "^sha256:[0-9a-f]{64}$" }
                downstream_effect_performed: { const: false }
        artifacts:
          named_emits:
            subject_request_verdict: subject_request_verdict

Published package and test evidence.

This exact version passed its recorded harness run: 4 checks passed · 0 failed.

Test result

Harness resultPassed
Tested versionsha-a560e258cc1c
Recorded result4 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases3
Test recordOpen the recorded run
Inspect receipt referencessha256:f38e928e241edc84c0a934fa9082e6614e4a6cc03bae5782ca9c06dd870434e4sha256:c5f62cd8e3e3c889cee5bd203e358edd4d7fa9274a93ef0235f4ff59eef5ba32sha256:8e7deced6734fcae8827a8516f1abc984f77990eb494f04d54a6b899ea3ebcc8sha256:84651c24478eddb0877c9ce8cad39c11b01332cfec1074959f2a03a407908fea

Package identity

Published revisionsha-a560e258cc1c
Content digestsha256:a560e258cc1c50d942f0cccd38de7c86ad92a84fa625d41b34f108113ad99be2
SKILL.md digestsha256:f5946cc54339ebf1e369a23670e1cf5e453339faf1ee2ff4f8cbd7bce506863c
Execution profile digestsha256:ec4ec6c1bdd00e2f9e42fdd8efb0b46fb18822c3d29abd6ee739648c594ea537
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 18 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.10Content digest sha256:a29e18df2e6d25cf14d67934a6b82610d00a8fe983f27e0e99d56a28950d5277
  2. sha-19d01137a632Content digest sha256:19d01137a63209140f16332c24ce16687f457e98caf8bb073a842a6d49a891c7
  3. sha-a560e258cc1cViewingContent digest sha256:a560e258cc1c50d942f0cccd38de7c86ad92a84fa625d41b34f108113ad99be2