协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
palantir-local-dev-loop【开发与工程】Run a safe Foundry development loop using the Palantir VS Code extension, unit tests, preview/debug, repository synchronization, and remote builds. Use when iterating on transforms or OSDK code. Trigger with "Foundry local development".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Keep pure logic fast and local while treating Foundry preview, checks, and builds as separate evidence. A local mock can verify application logic, but it cannot prove Foundry permissions, lineage, transactions, or full-data behavior.
references/official-docs.md and the repository's generated in-platform documentation.Use the approved Palantir VS Code or Developer Console sign-in for the intended environment. Keep generated OAuth settings and any test credentials in approved local secret storage, and never place tokens or production object data in fixtures, logs, or repository files.
Separate pure transformation or application logic from Foundry adapters and generated SDK code.
Write deterministic unit tests using synthetic fixtures and run them before any platform request.
Synchronize the sandbox branch, run Foundry checks, and preview representative inputs with protected-data rules intact.
Use the Foundry debugger for Python transform behavior when needed; treat observed values as diagnostic only.
Push the exact branch, run the full Foundry build or bounded OSDK smoke test, inspect results, and open a reviewed pull request.
Local iteration does not authorize production data access, writeback, full builds, or merges. Obtain data-owner approval for representative protected inputs and repository-owner approval for merge or production build.
A reproducible development command map, synthetic fixtures, unit-test evidence, branch/commit, preview/debug findings, Foundry check/build results, and known differences between local, preview, and full execution.
| Condition | Response |
|---|---|
| Local tests pass but Foundry checks fail | Use the repository check details and compare dependency/build environments. |
| Preview passes but full build fails | Inspect full-data edge cases, resources, and input transactions; preview is not production proof. |
| Generated OSDK mocks drift | Regenerate from Developer Console and update contract tests against the pinned package. |
| Debugger output differs from committed data | Treat debugger state as non-authoritative and verify the actual output transaction. |
Refactor a transform so its row-level normalization is a pure function covered by synthetic unit tests, then run Foundry preview and a branch build to verify dataset integration.
Mock a generated OSDK client for application unit tests, then run a bounded non-production smoke test to prove OAuth restrictions, object selection, and pagination.