计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
palantir-common-errors【效率与协作】Diagnose Foundry API, Ontology, permission, and transform-build failures from bounded evidence. Use when an operator sees authentication, authorization, throttling, missing-resource, dependency, or build errors. Trigger with "Foundry error" or "Palantir 403".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Triage the failing surface before changing credentials, permissions, code, or compute. Preserve the server request identifier and Foundry build evidence so similar-looking failures are not collapsed into the same cause.
references/official-docs.md; use the API reference and in-platform build report as the current contract.401 points to missing, malformed, expired, or otherwise unusable authentication; it does not justify broader scope.403 can result from the intersection of token scope, application restrictions, user/service-user permissions, project roles, and mandatory controls.429 or 503.All Foundry REST API calls use OAuth 2.0 bearer tokens. Never print or persist a token in the triage report. Record the grant type, requested scopes, Developer Console restrictions, and effective user or service-user permissions without recording credential values.
Classify the failure as authentication, authorization, limit/concurrency, resource identity, dependency, transform logic, or platform availability.
Preserve the smallest complete evidence set: request ID, build ID, branch, commit, principal type, scope names, and affected RIDs or API names.
For auth failures, evaluate token validity, scope, application restrictions, project role, and mandatory markings in that order.
For 429 or 503, honor server guidance and apply bounded exponential backoff with jitter; reduce concurrency before retrying.
For build failures, inspect the detailed report, compare preview and full inputs, and test the minimal failing transform on a sandbox branch.
Permission grants, application-restriction changes, marking access, token replacement, and production rebuilds require their respective owners. A diagnosis does not authorize any of those mutations.
A triage record with classification, evidence, ruled-out causes, confirmed cause, minimum remediation, approval owner, validation request, and rollback. Redact tokens, personal data, and sensitive resource names when the audience does not need them.
| Condition | Response |
|---|---|
| Request ID is missing | Reproduce once with a safe read-only operation and capture response headers; otherwise report the evidence gap. |
| A new token still gets 403 | Stop rotating credentials and evaluate scopes, app restrictions, project roles, and mandatory controls. |
| Retries increase throttling | Cancel the retry loop, reduce concurrency, honor server timing, and contact Palantir Support if disruption persists. |
| Preview passes but build fails | Use the full build report and production input characteristics; do not treat preview as proof of production success. |
Triage an Ontology read that changed from 200 to 403 by checking the client-credentials service user, requested scope, Developer Console resource restrictions, project role, and required markings.
Resolve a repeated transform check failure by preserving the build ID, identifying a missing dependency in the repository environment, fixing it on a branch, and rerunning the Foundry check.
429 or 503 responses.