---
name: palantir-data-handling-0b32c1a6a4bd
description: >-
  Design and verify Foundry data handling across projects, roles, mandatory controls, Ontology security, logs, exports, and retention. Use when processing sensitive or regulated data. Trigger with "Foundry data handling" or "Palantir markings".
allowed-tools: Read,Glob,Grep,Write,Edit
version: 2.0.0
argument-hint: "[dataset-object-type-or-workflow]"
model: inherit
effort: high
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
compatibility: Requires current Palantir Foundry documentation and approved access for any live resource, permission, data, build, application, or deployment change
tags: [saas, palantir, foundry, data-governance, security]
---
# Palantir Data Governance and Handling

## Overview

Map the full data path before editing a permission or transform. Foundry discretionary roles, mandatory controls, Ontology row/property policies, and downstream exports protect different boundaries and must be reviewed separately.

## Prerequisites

- Identify data owner, purpose, classifications, source datasets, derived resources, Ontology objects and properties, logs, exports, and retention obligations.
- Record the projects, organizations, markings, CBAC policies, groups, and roles governing each stage.
- Read `references/official-docs.md` and involve the information-security or privacy owner for regulated data.
- Use synthetic data for policy tests unless a protected test environment is approved.

## Current Contract

- Projects and roles provide discretionary access, while organizations, markings, and CBAC remain mandatory and propagate according to their own rules.
- Ontology object and property policies can implement row- and column-level read controls; granular controls do not automatically protect downstream exports.
- Mandatory controls within security policies continue to protect derived data where the documented propagation rules apply.
- Logs and audit exports may contain sensitive or personal data and require explicit access, marking, retention, and audience decisions.

## Instructions

1. Draw the data-flow and authority map from ingestion through transforms, Ontology, applications, logs, and exports.

2. Classify each resource and define the minimum project roles, groups, mandatory controls, and application restrictions.

3. Configure Ontology object/property policies for read-time needs and pair them with mandatory controls when downstream propagation is required.

4. Define retention, deletion, export, and audit evidence procedures with accountable owners.

5. Test authorized, unauthorized, downstream-derived, log-viewing, and export cases before production.

## Tool Discipline

- Use **Glob** to locate candidate repositories, manifests, configurations, and evidence without widening scope.
- Use **Grep** to find relevant identifiers, declarations, permissions, errors, and stale claims.
- Use **Read** to inspect the smallest required files and authoritative evidence.
- Use **Write** only for a new approved local draft, test, manifest, or evidence artifact.
- Use **Edit** only for a bounded approved change whose rollback is known.
- Do not use file tools as a substitute for authenticated Foundry operations or owner approval.

## Approval Boundaries

The data owner approves purpose and access; the security owner approves markings or CBAC; the privacy owner approves retention and deletion; the platform owner approves exports. Do not unmark, broaden roles, or export protected data without those approvals.

## Output

A data-flow map, classification inventory, control matrix, lineage/propagation analysis, retention and deletion procedure, test evidence, exceptions, and owner attestations.

## Error Handling

| Condition | Response |
|---|---|
| A user has a role but still lacks access | Check organizations, markings, CBAC, resource dependencies, and application restrictions rather than broadening the role. |
| A property policy protects reads but not an export | Add an appropriate mandatory control or redesign the export boundary. |
| Logs expose sensitive values | Stop export or viewing, apply the required markings and audience controls, then review retention. |
| Deletion cannot be proven downstream | Block closure and trace every derived dataset, Ontology resource, export, cache, and audit exception. |

## Examples

### Example 1

Protect customer contact fields with Ontology property policies while using mandatory markings for derived datasets and exports that must retain the same access requirement.

### Example 2

Design a deletion request workflow that resolves the subject, identifies every governed resource and lawful exception, executes approved deletion or retention actions, and records non-sensitive evidence.

## Validation

- Authorized and unauthorized personas behave as the policy specifies.
- Lineage demonstrates where mandatory controls propagate and where granular controls stop.
- Logs and exports have explicit markings, audiences, and retention.
- Deletion and retention evidence names every in-scope resource and exception.
- No credential, PII sample, or protected payload appears in the deliverable.

## Resources

- [Official documentation and contract notes](references/official-docs.md)
- Re-check the dated contract before any live operation.
- Treat unresolved or changed vendor behavior as a stop condition.


---
Source attribution: jeremylongshore
Original project: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/ab85a061f7bcc039dac13ee193de7a4cd4388571/plugins/saas-packs/palantir-pack/skills/palantir-data-handling/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

MIT License

Copyright (c) 2025 Jeremy Longshore

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: jeremylongshore
Original project: https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/ab85a061f7bcc039dac13ee193de7a4cd4388571/plugins/saas-packs/palantir-pack/skills/palantir-data-handling/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering, Legal, Product Management
Roles: Backend Developer, Compliance Officer, Data Analyst, ML / AI Engineer, Product Manager
Specialties: API, Backend, Database, Design, Frontend
Tools: Palantir
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: 3b2ce487c68b31f031ab5b683c8c404ff756945bf60fdb34a15323b1bd1c0136
