Data subject request

Decide a bounded data subject request, record the verdict through a governed data-store append_event, and hand off eligible erasure/export work without executing it.

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

Overview

data-subject-request evaluates a bounded privacy request such as erasure or export. It verifies that the requestor proof is present, checks the requested data classes against the declared policy scope, records the decision through a governed data-store transition, and returns a handoff packet only when the request is eligible.

The skill does not erase, export, email, notify, or fire any operational rail. Downstream processors consume the handoff under their own approval and receipt gates.

In the manual

Runner

  • decide

Declared by its execution profile. Read the profile

SKILL.md

Data Subject Request

data-subject-request evaluates a bounded privacy request such as erasure or export. It verifies that the requestor proof is present, checks the requested data classes against the declared policy scope, records the decision through a governed data-store transition, and returns a handoff packet only when the request is eligible.

The skill does not erase, export, email, notify, or fire any operational rail. Downstream processors consume the handoff under their own approval and receipt gates.

Inputs

  • request_packet: object with type, subject_id, and scope.
  • requestor_proof: object with identity_provider, verified_at, and assertion.
  • policy: object with jurisdiction, lawful_bases, and scope_bounds.
  • data_source_ref: logical source binding for registry:runx/data-store.
  • store_id: pinned deterministic fixture store id for harness evidence.
  • aggregate_id: subject request aggregate id.
  • expected_version: optimistic-concurrency version for the verdict event.
  • idempotency_key: stable retry key for the verdict event.

Outputs

  • decision: { eligible, reason }.
  • handoff: present only when decision.eligible is true. It contains a bounded path, subject id, data classes, and scopes for a downstream erasure or export worker.
  • escalation: review notes and non-execution constraints.
  • data_store: read_projection and append_event evidence shape including data source, store id, aggregate id, expected version, idempotency key, and verdict event.
  • evidence: jurisdiction, lawful-basis verdicts, proof digest, scope bounds, refused reason if any, and harness-readable receipt notes.

Decision rules

  1. Refuse when request_packet.type is not erasure or export.
  2. Refuse when subject_id or requested scope is missing.
  3. Refuse when requestor identity is not verified with a provider, timestamp, and assertion.
  4. Refuse when any requested class is outside policy.scope_bounds.
  5. Refuse when any requested class lacks a declared lawful basis.
  6. Seal an eligible decision only after producing an appendable verdict event with expected_version and idempotency_key.

Data-store shape

This skill composes with registry:runx/data-store@0.1.2 and uses the following logical sequence:

  1. read_projection for the subject request aggregate.
  2. decide the lawful-basis and scope verdict.
  3. append_event with optimistic concurrency and idempotency to record the verdict.

The emitted event never contains raw personal data. It records the request type, subject id, jurisdiction, eligible flag, reason, requested scopes, scope bounds, lawful-basis verdict, requestor proof digest, and downstream handoff path when eligible.

Example

A verified GDPR erasure request for profile and marketing_events is eligible when both classes are inside scope_bounds and both have declared lawful bases. The output includes a bounded handoff path such as handoff/dsr/sub_123/erasure.json and a verdict event ready for append_event.

An unverified requestor or a request for a class outside policy bounds is refused deterministically. The refusal names the jurisdiction and the lawful-basis or scope reason and produces no handoff.

Published execution profile

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

Runner
  • decide
Profile digestsha256:42c2026a3d8d1e5edaa2e9dc1347b5fe226dd5e462a03ac5845f47abde4c9ea2
skill: data-subject-request
version: 0.1.0
catalog:
  kind: skill
  audience: operator
  visibility: public
  role: canonical
  category: security
runners:
  decide:
    default: true
    inputs:
      request_packet:
        type: json
        required: true
        description: Typed request packet containing type, subject_id, and requested scope array.
      requestor_proof:
        type: json
        required: true
        description: Verified requestor proof containing identity_provider, verified_at, and assertion.
      policy:
        type: json
        required: true
        description: Jurisdiction, lawful_bases by data class, and scope_bounds for the request.
      data_source_ref:
        type: string
        required: true
        description: Logical data-store binding used for read_projection and append_event evidence.
      store_id:
        type: string
        required: true
        description: Pinned fixture store id for deterministic hosted harness evidence.
      aggregate_id:
        type: string
        required: true
        description: Subject request aggregate id.
      expected_version:
        type: number
        required: true
        description: Current aggregate version required before append_event.
      idempotency_key:
        type: string
        required: true
        description: Stable idempotency key for verdict append_event.
    steps:
      - id: decide
        tool:
          command: node
          args:
            - run.mjs
        inputs:
          request_packet: $input.request_packet
          requestor_proof: $input.requestor_proof
          policy: $input.policy
          data_source_ref: $input.data_source_ref
          store_id: $input.store_id
          aggregate_id: $input.aggregate_id
          expected_version: $input.expected_version
          idempotency_key: $input.idempotency_key
        artifacts:
          wrap_as: data_subject_request
harness:
  cases:
    - name: sealed-verified-erasure
      inputs:
        request_packet:
          type: erasure
          subject_id: sub_123
          scope:
            - profile
            - marketing_events
        requestor_proof:
          identity_provider: acme-idp
          verified_at: 2026-06-29T06:41:00Z
          assertion: did:example:subject:sub_123#verified-session
        policy:
          jurisdiction: GDPR-EU
          lawful_bases:
            profile: consent
            marketing_events: consent
            invoices: legal_obligation
          scope_bounds:
            - profile
            - marketing_events
        data_source_ref: local://runx/data-subject-request
        store_id: dsr-fixture-001
        aggregate_id: dsr:sub_123:erasure:2026-06-29
        expected_version: 0
        idempotency_key: dsr:sub_123:erasure:2026-06-29:v1
      expect:
        status: sealed
        receipt:
          schema: runx.receipt.v1
      operator_journeys:
        - mode: standalone
          confusors:
            - redact-pii
            - data-store
          request: Judge this data subject request.
          expected_outcome: Return a sealed verdict and only a bounded handoff for downstream erasure or export.
        - mode: composed
          request: Continue this data-subject-request work from evidence already gathered upstream.
          expected_outcome: Return a sealed verdict and only a bounded handoff for downstream erasure or export.
          prior_evidence:
            - The request packet and requestor proof already supplied.
          must_not_repeat:
            - Do not erase or export data directly.
    - name: refuse-unverified-requestor
      inputs:
        request_packet:
          type: export
          subject_id: sub_456
          scope:
            - profile
        requestor_proof:
          identity_provider: email-link
          verified_at: null
          assertion: ""
        policy:
          jurisdiction: CCPA-CA
          lawful_bases:
            profile: contract
          scope_bounds:
            - profile
        data_source_ref: local://runx/data-subject-request
        store_id: dsr-fixture-001
        aggregate_id: dsr:sub_456:export:2026-06-29
        expected_version: 0
        idempotency_key: dsr:sub_456:export:2026-06-29:v1
      expect:
        status: failure

Published package and test evidence.

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

Test result

Harness resultPassed
Tested versionsha-090a18cb5ecd
Recorded result2 checks passed · 0 failed
Result sourceReported by the publisher (runx_registry_publish)
Suiterunx-harness
Test recorded
Declared cases2
Test recordOpen the recorded run
Inspect receipt referencessha256:4b71117256cb0a3893aabf4612c94e9c33bf644b6c57310b81fb73471977e58asha256:5c7b77faf852f23a6ca9485091c48e3dfbb0a1790b8a47a987c50e1dfebc7878

Package identity

Published revisionsha-090a18cb5ecd
Content digestsha256:090a18cb5ecd2815d46ae4f0b37b695a114a29553b1989783033f8930e5aadb9
SKILL.md digestsha256:8f2bcbd43c2513734b0ea6c7ddcda8d49268f69b362c0bcc91fbb9141adf024f
Execution profile digestsha256:42c2026a3d8d1e5edaa2e9dc1347b5fe226dd5e462a03ac5845f47abde4c9ea2
Publisher identityUnverified publisher · luismireles12
Trust tierCommunityPublished through the registry without publisher verification. This tier is not a code assessment.
Attestations
  • Publisher · Declaredluismireles12 · 17 Oct 2026
Source provenanceNot published with this version

Version history

  1. sha-a702d75bbee0Content digest sha256:a702d75bbee06962ab112404a18e8a374772381934f9e0f8056b91a6c8b696f5
  2. sha-090a18cb5ecdViewingContent digest sha256:090a18cb5ecd2815d46ae4f0b37b695a114a29553b1989783033f8930e5aadb9
  3. sha-b8c7758f3e44Content digest sha256:b8c7758f3e446c8b2943df3c2ca6cbc22b49686b389a36ccbf7f8c9406bc2f1a
  4. sha-40a794b60c41Content digest sha256:40a794b60c410667db8075592bfa2867e660c8a063ba4968337692c7b32681e3