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-b8c7758f3e44. 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 withtype,subject_id, andscope.requestor_proof: object withidentity_provider,verified_at, andassertion.policy: object withjurisdiction,lawful_bases, andscope_bounds.data_source_ref: logical source binding forregistry: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 whendecision.eligibleis 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_projectionandappend_eventevidence 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
- Refuse when
request_packet.typeis noterasureorexport. - Refuse when
subject_idor requestedscopeis missing. - Refuse when requestor identity is not verified with a provider, timestamp, and assertion.
- Refuse when any requested class is outside
policy.scope_bounds. - Refuse when any requested class lacks a declared lawful basis.
- Seal an eligible decision only after producing an appendable verdict event
with
expected_versionandidempotency_key.
Data-store shape
This skill composes with registry:runx/data-store@0.1.2 and uses the
following logical sequence:
read_projectionfor the subject request aggregate.decidethe lawful-basis and scope verdict.append_eventwith 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-b8c7758f3e44, shown as its exact bytes.
| Runner |
|
|---|---|
| Profile digest | sha256: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 result | Passed |
|---|---|
| Tested version | sha-b8c7758f3e44 |
| Recorded result | 2 checks passed · 0 failed |
| Result source | Reported by the publisher (runx_registry_publish) |
| Suite | runx-harness |
| Test recorded | |
| Declared cases | 2 |
| Test record | Open the recorded run |
Inspect receipt references
sha256:4b71117256cb0a3893aabf4612c94e9c33bf644b6c57310b81fb73471977e58asha256:5c7b77faf852f23a6ca9485091c48e3dfbb0a1790b8a47a987c50e1dfebc7878Package identity
| Published revision | sha-b8c7758f3e44 |
|---|---|
| Content digest | sha256:b8c7758f3e446c8b2943df3c2ca6cbc22b49686b389a36ccbf7f8c9406bc2f1a |
| SKILL.md digest | sha256:8f2bcbd43c2513734b0ea6c7ddcda8d49268f69b362c0bcc91fbb9141adf024f |
| Execution profile digest | sha256:42c2026a3d8d1e5edaa2e9dc1347b5fe226dd5e462a03ac5845f47abde4c9ea2 |
| Publisher identity | Unverified publisher · luismireles12 |
| Trust tier | CommunityPublished through the registry without publisher verification. This tier is not a code assessment. |
| Attestations |
|
| Source provenance | Not published with this version |
Version history
sha-a702d75bbee0Content digest sha256:a702d75bbee06962ab112404a18e8a374772381934f9e0f8056b91a6c8b696f5sha-090a18cb5ecdContent digest sha256:090a18cb5ecd2815d46ae4f0b37b695a114a29553b1989783033f8930e5aadb9sha-b8c7758f3e44ViewingContent digest sha256:b8c7758f3e446c8b2943df3c2ca6cbc22b49686b389a36ccbf7f8c9406bc2f1asha-40a794b60c41Content digest sha256:40a794b60c410667db8075592bfa2867e660c8a063ba4968337692c7b32681e3