| name | palantir-upgrade-migration |
| description | Upgrade Palantir Foundry SDK versions and handle breaking changes.
Use when upgrading foundry-platform-sdk, migrating between API versions,
or detecting deprecations in Foundry integrations.
Trigger with phrases like "upgrade palantir", "palantir migration",
"foundry breaking changes", "update foundry SDK".
|
| allowed-tools | Read, Write, Edit, Bash(pip:*), Bash(npm:*), Bash(git:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","palantir","foundry","upgrade","migration"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Palantir Upgrade & Migration
Overview
Safely upgrade foundry-platform-sdk versions, handle breaking changes, and migrate between Foundry API versions. Includes a step-by-step upgrade checklist and rollback procedure.
Prerequisites
- Current
foundry-platform-sdk installed
- Git for version control
- Test suite covering Foundry API calls
- Staging environment
Instructions
Step 1: Check Current Version and Available Updates
set -euo pipefail
pip show foundry-platform-sdk | grep -E "^(Name|Version)"
pip index versions foundry-platform-sdk 2>/dev/null | head -3
npm list @osdk/client 2>/dev/null || echo "OSDK not installed"
Step 2: Review Changelog
python -c "
import urllib.request, json
url = 'https://api.github.com/repos/palantir/foundry-platform-python/releases?per_page=5'
releases = json.loads(urllib.request.urlopen(url).read())
for r in releases:
print(f'{r[\"tag_name\"]:12s} {r[\"published_at\"][:10]}')
body = r.get('body', '')[:200]
if 'BREAKING' in body.upper():
print(f' *** BREAKING CHANGES DETECTED ***')
print()
"
Step 3: Create Upgrade Branch and Update
set -euo pipefail
git checkout -b upgrade/foundry-sdk-$(date +%Y%m%d)
pip install --upgrade foundry-platform-sdk
pip show foundry-platform-sdk | grep Version
Step 4: Run Tests and Fix Breaking Changes
set -euo pipefail
pytest tests/ -v --tb=short 2>&1 | tee upgrade-test-results.txt
grep -E "FAILED|ERROR" upgrade-test-results.txt
Common breaking changes between versions:
client = foundry.FoundryClient(auth=foundry.UserTokenAuth(token="..."))
client = foundry.FoundryClient(
auth=foundry.UserTokenAuth(hostname=, token=),
hostname=,
)
client.ontology.list_objects(...)
client.ontologies.OntologyObject.(...)