Skip to content

Implement private data access request/approval workflow #40

@Soushi888

Description

@Soushi888

Overview

Implement a request/approval workflow for private data access, complementing the existing direct grant system from #27.

Background

The current system (#27) only supports direct grants where the data owner proactively shares data. A request workflow would allow agents to request specific private data fields, which the owner can then approve or deny.

Implementation

New functions needed:

  • request_private_data_access(target_agent, requested_fields, reason) — Create access request
  • respond_to_data_request(request_hash, approved, rationale) — Approve/deny with rationale
  • get_pending_data_requests() — List pending requests for current agent
  • get_my_data_requests() — List requests made by current agent

New entry type:

  • DataAccessRequest with status tracking (pending/approved/denied/expired)

Use Cases

  • Agent promotion: Promoter requests identity verification data
  • Governance validation: Governance process requests compliance data
  • Custodianship transfer: New custodian requests resource documentation

Files

  • dnas/nondominium/zomes/coordinator/zome_person/src/capability_based_sharing.rs
  • dnas/nondominium/zomes/integrity/zome_person/src/lib.rs
  • tests/src/nondominium/person/person-capability-based-sharing.test.ts

Acceptance Criteria

  • DataAccessRequest entry type with status tracking
  • Request creation with field specification and reason
  • Approval flow that automatically creates capability grant
  • Denial flow with rationale
  • Request listing for both requester and target
  • Test coverage for full request lifecycle

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-mediumMedium priority - should be completed when possibleagent-progressionAgent capability advancement - Simple → Accountable → Primary AccountableenhancementNew feature or requestphase-2-governancePhase 2 - Enhanced governance & process integration (current)zome-personPerson zome - agent identity, profiles, roles

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions