Skill Tracer
Skills › Scientific Agent Skills › dnanexus-integration › data-operations.md

data-operations.md

486 lines · skills/dnanexus-integration/references/data-operations.md at 5f2bc03

Open on GitHub

Most marks come from matching words in the file, so treat them as pointers.

1# Data Operations
2

Data Operations

Raw lines 1 to 2
3## Quick Navigation
4
5- [Safety and lifecycle](#safety-model)
6- [Transfer tool selection](#transfer-tool-selection)
7- [Small transfers](#small-transfers-with-dx)
8- [Upload Agent](#upload-agent)
9- [Download Agent](#download-agent)
10- [Python transfers](#python-upload-and-download)
11- [Search and metadata](#search)
12- [Records and folders](#records)
13- [Cloning and archival](#cloning)
14- [Deletion](#deletion)
15- [Batch checklist](#batch-operation-checklist)

Quick Navigation

  • Safety and lifecycle
  • Transfer tool selection
  • Small transfers
  • Upload Agent
  • Download Agent
  • Python transfers
  • Search and metadata
  • Records and folders
  • Cloning and archival
  • Deletion
  • Batch checklist
Raw lines 3 to 16
17## Safety Model
19DNAnexus data objects live in projects or other data containers. Before a
20mutation:
221. Resolve the project to a `project-...` ID.
232. Resolve every path to an object ID.
243. Detect duplicate names.
254. Inspect state, archival state, size, and relevant metadata.
265. Confirm source/destination permissions and restrictions.
276. Show exact IDs and impact for deletion, cloning, archival, or egress.
29Names and paths are convenient for humans but are not immutable identifiers.
30Use IDs in automation.

Safety Model

DNAnexus data objects live in projects or other data containers. Before a mutation:

  1. Resolve the project to a project-... ID.
  2. Resolve every path to an object ID.
  3. Detect duplicate names.
  4. Inspect state, archival state, size, and relevant metadata.
  5. Confirm source/destination permissions and restrictions.
  6. Show exact IDs and impact for deletion, cloning, archival, or egress.

Names and paths are convenient for humans but are not immutable identifiers. Use IDs in automation.

Raw lines 17 to 31
32## Object Lifecycle
34Files use:
36```text
37open → closing → closed
38```
40- `open`: parts/content can still be uploaded.
41- `closing`: finalization is in progress; content cannot be read or written.
42- `closed`: content is immutable and available to download/share.
44Files must be closed before they can be read or cloned. They may be submitted
45as job inputs while open or closing, but the job remains `waiting_on_input`
46until closure. Open/closing files inactive for about 24 hours are considered
47abandoned and are later deleted by the platform.
49When a data object closes, content plus types, details/links, and visibility
50become fixed. User-editable metadata such as name, properties, and tags can
51still be managed according to permissions.
53Records may intentionally remain open when mutable structured details are
54required. Document this exception because open records weaken reproducibility.

Object Lifecycle

Files use:

open → closing → closed
  • open: parts/content can still be uploaded.
  • closing: finalization is in progress; content cannot be read or written.
  • closed: content is immutable and available to download/share.

Files must be closed before they can be read or cloned. They may be submitted as job inputs while open or closing, but the job remains waiting_on_input until closure. Open/closing files inactive for about 24 hours are considered abandoned and are later deleted by the platform.

When a data object closes, content plus types, details/links, and visibility become fixed. User-editable metadata such as name, properties, and tags can still be managed according to permissions.

Records may intentionally remain open when mutable structured details are required. Document this exception because open records weaken reproducibility.

Raw lines 32 to 55
56## Transfer Tool Selection
58| Workload | Tool |
59|---|---|
60| One or a few small files | `dx upload`, `dx download` |
61| Multiple files or a file larger than 50 MB | Upload Agent (`ua`) |
62| Many/large/long-running downloads | Download Agent (`dx-download-agent`) |
63| Custom Python automation | `dxpy` |
65Use platform transfer agents when resumability and per-part integrity matter.

Transfer Tool Selection

WorkloadTool
One or a few small filesdx upload, dx download
Multiple files or a file larger than 50 MBUpload Agent (ua)
Many/large/long-running downloadsDownload Agent (dx-download-agent)
Custom Python automationdxpy

Use platform transfer agents when resumability and per-part integrity matter.

Raw lines 56 to 66
67## Small Transfers with `dx`
69Upload:
71```bash
72dx upload "sample.fastq.gz" \
73 --path "project-xxxx:/raw/sample.fastq.gz" \
74 --property "sample_id=S001" \
75 --tag "raw"
76```
78Download:
80```bash
81dx download "project-xxxx:/results/sample.bam" \
82 --output "sample.bam"
83```
85Use quoted full paths. If a name is non-unique, use the object ID.
87For scripts, use `--brief` or machine-readable output where supported instead
88of parsing human-formatted tables.
90Current `dx` warns when a download or generated download URL targets a file
91flagged as malicious. Stop on that warning unless the user approves a
92containment procedure that prevents execution and protects the local system.

Small Transfers with dx

Upload:

dx upload "sample.fastq.gz" \
  --path "project-xxxx:/raw/sample.fastq.gz" \
  --property "sample_id=S001" \
  --tag "raw"

Download:

dx download "project-xxxx:/results/sample.bam" \
  --output "sample.bam"

Use quoted full paths. If a name is non-unique, use the object ID.

For scripts, use --brief or machine-readable output where supported instead of parsing human-formatted tables.

Current dx warns when a download or generated download URL targets a file flagged as malicious. Stop on that warning unless the user approves a containment procedure that prevents execution and protects the local system.

Raw lines 67 to 93
Involves a person unless the user approves :91
94## Upload Agent
96Upload Agent is resumable and uses parallel connections. Important behavior:
98- Uncompressed files are compressed by default.
99- `.gz` is appended to the remote name.
100- Already compressed inputs are not recompressed.
101- `--do-not-compress` preserves the original bytes/name behavior.
102- Repeating the same command resumes a matching incomplete transfer.
103- `--wait-on-close` blocks until uploaded file objects are closed.
104- Per-part `Content-MD5` is verified by the platform.
106Example:
108```bash
109ua \
110 --project "project-xxxx" \
111 --folder "/raw" \
112 --wait-on-close \
113 --progress \
114 "sample.fastq.gz"
115```
117For an uncompressed file that must not be transformed:
119```bash
120ua \
121 --project "project-xxxx" \
122 --folder "/raw" \
123 --do-not-compress \
124 --wait-on-close \
125 "reference.fa"
126```
128Do not run `ua --env` in captured output because it displays the active token.
129Treat any Upload Agent `--auth-token` value and the toolkit
130`DX_SECURITY_CONTEXT` as secrets.
132Use `--do-not-resume` only when creating a deliberate second copy. Otherwise
133let the agent resume interrupted uploads.

Upload Agent

Upload Agent is resumable and uses parallel connections. Important behavior:

  • Uncompressed files are compressed by default.
  • .gz is appended to the remote name.
  • Already compressed inputs are not recompressed.
  • --do-not-compress preserves the original bytes/name behavior.
  • Repeating the same command resumes a matching incomplete transfer.
  • --wait-on-close blocks until uploaded file objects are closed.
  • Per-part Content-MD5 is verified by the platform.

Example:

ua \
  --project "project-xxxx" \
  --folder "/raw" \
  --wait-on-close \
  --progress \
  "sample.fastq.gz"

For an uncompressed file that must not be transformed:

ua \
  --project "project-xxxx" \
  --folder "/raw" \
  --do-not-compress \
  --wait-on-close \
  "reference.fa"

Do not run ua --env in captured output because it displays the active token. Treat any Upload Agent --auth-token value and the toolkit DX_SECURITY_CONTEXT as secrets.

Use --do-not-resume only when creating a deliberate second copy. Otherwise let the agent resume interrupted uploads.

Raw lines 94 to 134
135## Download Agent
137Download Agent consumes a BZIP2-compressed JSON manifest. Use the manifest
138creation utility from the official `dnanexus/dxda` release and review its
139resolved file set before starting egress.
141Download Agent checks the secret `DX_API_TOKEN` and otherwise falls back to
142`~/.dnanexus_config/environment.json`. This is a Download Agent-specific
143variable; do not assume it configures Upload Agent, `dx`, or `dxpy`.
145```bash
146dx-download-agent download "manifest.json.bz2"
147dx-download-agent progress "manifest.json.bz2"
148dx-download-agent inspect "manifest.json.bz2"
149```
151`inspect` revalidates downloaded parts against manifest checksums. If a part is
152missing or corrupt, rerun `download`.
153Run `inspect` before retrying files that were moved, removed, or changed after
154a completed download; a bare `download` trusts its completion database and
155does not discover these changes by itself.
157Before a large download:
159- Confirm local free space.
160- Confirm data egress approval and cost.
161- Confirm download restrictions/TRE policy.
162- Check that all files are live and closed.
163- Review the manifest for unexpected projects or PHI.
164- Use a token that remains valid for the expected transfer duration.
166Do not place an API token in a Docker command line or committed compose file.

Download Agent

Download Agent consumes a BZIP2-compressed JSON manifest. Use the manifest creation utility from the official dnanexus/dxda release and review its resolved file set before starting egress.

Download Agent checks the secret DX_API_TOKEN and otherwise falls back to ~/.dnanexus_config/environment.json. This is a Download Agent-specific variable; do not assume it configures Upload Agent, dx, or dxpy.

dx-download-agent download "manifest.json.bz2"
dx-download-agent progress "manifest.json.bz2"
dx-download-agent inspect "manifest.json.bz2"

inspect revalidates downloaded parts against manifest checksums. If a part is missing or corrupt, rerun download. Run inspect before retrying files that were moved, removed, or changed after a completed download; a bare download trusts its completion database and does not discover these changes by itself.

Before a large download:

  • Confirm local free space.
  • Confirm data egress approval and cost.
  • Confirm download restrictions/TRE policy.
  • Check that all files are live and closed.
  • Review the manifest for unexpected projects or PHI.
  • Use a token that remains valid for the expected transfer duration.

Do not place an API token in a Docker command line or committed compose file.

Raw lines 135 to 167
168## Python Upload and Download
170```python
171from pathlib import Path
173import dxpy
175project_id = "project-xxxx"
176Path("downloads").mkdir(parents=True, exist_ok=True)
178remote = dxpy.upload_local_file(
179 "sample.fastq.gz",
180 project=project_id,
181 folder="/raw",
182 properties={"sample_id": "S001"},
183 tags=["raw"],
184 wait_on_close=True,
185 show_progress=True,
188dxpy.download_dxfile(
189 remote,
190 str(Path("downloads") / "sample.fastq.gz"),
191 project=project_id,
192 show_progress=True,
194```
196`project` on download is also a billing/context hint. Pass it when the same file
197has copies in multiple projects or the billing context matters.
199Read a remote file as a stream:
201```python
202import dxpy
204with dxpy.open_dxfile("file-xxxx", project="project-xxxx") as stream:
205 first_chunk = stream.read(1024)
206```
208`DXFile.open_file()` is not a current dxpy method; use
209`dxpy.open_dxfile()`.

Python Upload and Download

from pathlib import Path

import dxpy

project_id = "project-xxxx"
Path("downloads").mkdir(parents=True, exist_ok=True)

remote = dxpy.upload_local_file(
    "sample.fastq.gz",
    project=project_id,
    folder="/raw",
    properties={"sample_id": "S001"},
    tags=["raw"],
    wait_on_close=True,
    show_progress=True,
)

dxpy.download_dxfile(
    remote,
    str(Path("downloads") / "sample.fastq.gz"),
    project=project_id,
    show_progress=True,
)

project on download is also a billing/context hint. Pass it when the same file has copies in multiple projects or the billing context matters.

Read a remote file as a stream:

import dxpy

with dxpy.open_dxfile("file-xxxx", project="project-xxxx") as stream:
    first_chunk = stream.read(1024)

DXFile.open_file() is not a current dxpy method; use dxpy.open_dxfile().

Raw lines 168 to 210
213### CLI
215```bash
216dx find data \
217 --class file \
218 --path "project-xxxx:/results" \
219 --name "*.bam" \
220 --name-mode glob
221```
223Use `dx find data --help` from the installed toolkit for current filter flags.

CLI

dx find data \
  --class file \
  --path "project-xxxx:/results" \
  --name "*.bam" \
  --name-mode glob

Use dx find data --help from the installed toolkit for current filter flags.

Raw lines 213 to 224
225### dxpy
227```python
228import dxpy
230results = dxpy.find_data_objects(
231 classname="file",
232 project="project-xxxx",
233 folder="/results",
234 recurse=True,
235 name="*.bam",
236 name_mode="glob",
237 state="closed",
238 archival_state="live",
239 describe={
240 "fields": {
241 "name": True,
242 "size": True,
243 "created": True,
244 "archivalState": True,
245 "properties": True,
246 }
247 },
248 limit=500,
251for result in results:
252 print(result["id"], result["describe"]["name"])
253```
255Critical semantics:
257- Default `name_mode` is `"exact"`.
258- Use `"glob"` for `*` and `?`.
259- Use `"regexp"` only with a reviewed, bounded pattern.
260- Results are generators and dxpy handles API pagination.
261- Without `limit`, dxpy can traverse the full result set.
262- Keep explicit SDK `limit` at most 1000 in dxpy 0.415.0: it is forwarded as
263 the initial API page size. For larger bounded sets, apply `itertools.islice`
264 to the generator with `limit` omitted.
265- `describe` adds API work and may expose metadata; request only needed fields.
266- `archival_state` requires a file class plus project/folder scope.
268The API defaults to pages of at most 1000. DNAnexus documents a 200 API
269calls/second account limit; implement bounded concurrency and exponential
270backoff rather than flooding the service.

dxpy

import dxpy

results = dxpy.find_data_objects(
    classname="file",
    project="project-xxxx",
    folder="/results",
    recurse=True,
    name="*.bam",
    name_mode="glob",
    state="closed",
    archival_state="live",
    describe={
        "fields": {
            "name": True,
            "size": True,
            "created": True,
            "archivalState": True,
            "properties": True,
        }
    },
    limit=500,
)

for result in results:
    print(result["id"], result["describe"]["name"])

Critical semantics:

  • Default name_mode is "exact".
  • Use "glob" for * and ?.
  • Use "regexp" only with a reviewed, bounded pattern.
  • Results are generators and dxpy handles API pagination.
  • Without limit, dxpy can traverse the full result set.
  • Keep explicit SDK limit at most 1000 in dxpy 0.415.0: it is forwarded as the initial API page size. For larger bounded sets, apply itertools.islice to the generator with limit omitted.
  • describe adds API work and may expose metadata; request only needed fields.
  • archival_state requires a file class plus project/folder scope.

The API defaults to pages of at most 1000. DNAnexus documents a 200 API calls/second account limit; implement bounded concurrency and exponential backoff rather than flooding the service.

Raw lines 225 to 271
272## Metadata
274Properties are string key/value pairs; tags are strings.
276```python
277import dxpy
279file_obj = dxpy.DXFile("file-xxxx", project="project-xxxx")
280file_obj.set_properties(
281 {
282 "sample_id": "S001",
283 "pipeline_version": "2.4.1",
284 }
286file_obj.add_tags(["validated", "release-2026-07"])
287file_obj.rename("S001.aligned.bam")
288```
290Avoid direct identifiers in tags/properties when projects contain PHI. Follow
291the organization's approved metadata model.
293Metadata updates affect discovery and provenance. Review overwrite semantics
294before replacing a full property/detail mapping.
295`set_properties()` changes the supplied keys; passing `None` for a key removes
296that property. `set_details()` replaces the entire details value on an open
297object. Use a closed record for immutable scientific provenance.

Metadata

Properties are string key/value pairs; tags are strings.

import dxpy

file_obj = dxpy.DXFile("file-xxxx", project="project-xxxx")
file_obj.set_properties(
    {
        "sample_id": "S001",
        "pipeline_version": "2.4.1",
    }
)
file_obj.add_tags(["validated", "release-2026-07"])
file_obj.rename("S001.aligned.bam")

Avoid direct identifiers in tags/properties when projects contain PHI. Follow the organization's approved metadata model.

Metadata updates affect discovery and provenance. Review overwrite semantics before replacing a full property/detail mapping. set_properties() changes the supplied keys; passing None for a key removes that property. set_details() replaces the entire details value on an open object. Use a closed record for immutable scientific provenance.

Raw lines 272 to 298
299## Records
301Create a closed immutable record:
303```python
304import dxpy
306record = dxpy.new_dxrecord(
307 project="project-xxxx",
308 folder="/metadata",
309 name="run-001",
310 types=["RunMetadata"],
311 details={
312 "pipeline": "rna-seq",
313 "pipeline_version": "2.4.1",
314 },
315 close=True,
317```
319Create an open record only when continued mutation is required:
321```python
322record = dxpy.new_dxrecord(
323 project="project-xxxx",
324 name="mutable-status",
325 details={"state": "queued"},
326 close=False,
328record.set_details({"state": "running"})
329record.close()
330```
332Closing fixes details and links. For append-only provenance, prefer creating a
333new versioned record instead of mutating a shared open record.

Records

Create a closed immutable record:

import dxpy

record = dxpy.new_dxrecord(
    project="project-xxxx",
    folder="/metadata",
    name="run-001",
    types=["RunMetadata"],
    details={
        "pipeline": "rna-seq",
        "pipeline_version": "2.4.1",
    },
    close=True,
)

Create an open record only when continued mutation is required:

record = dxpy.new_dxrecord(
    project="project-xxxx",
    name="mutable-status",
    details={"state": "queued"},
    close=False,
)
record.set_details({"state": "running"})
record.close()

Closing fixes details and links. For append-only provenance, prefer creating a new versioned record instead of mutating a shared open record.

Raw lines 299 to 334
335## Folders
337```python
338import dxpy
340project = dxpy.DXProject("project-xxxx")
341project.new_folder("/analysis/run-001/results", parents=True)
342listing = project.list_folder(
343 "/analysis/run-001",
344 describe={"fields": {"name": True, "state": True}},
346```
348Move exact IDs:
350```python
351project.move(
352 "/analysis/run-001/final",
353 objects=["file-xxxx", "record-yyyy"],
355```
357Never use a broad recursive operation until the folder listing and count have
358been shown to the user.

Folders

import dxpy

project = dxpy.DXProject("project-xxxx")
project.new_folder("/analysis/run-001/results", parents=True)
listing = project.list_folder(
    "/analysis/run-001",
    describe={"fields": {"name": True, "state": True}},
)

Move exact IDs:

project.move(
    "/analysis/run-001/final",
    objects=["file-xxxx", "record-yyyy"],
)

Never use a broad recursive operation until the folder listing and count have been shown to the user.

Raw lines 335 to 359
360## Cloning
362```python
363import dxpy
365source = dxpy.DXFile("file-xxxx", project="project-source")
366clone = source.clone(
367 project="project-destination",
368 folder="/imports",
370print(clone.get_id())
371```
373Requirements and caveats:
375- Source object must be closed.
376- `VIEW` or higher is needed on the source.
377- `UPLOAD` or higher is needed on the destination.
378- Source and destination must be in the same region. Cloning preserves the
379 data object ID; do not treat it as a new globally unique object.
380- Restricted projects/TREs can forbid cloning.
381- Databases cannot be cloned.
382- Hidden linked objects may be cloned with their visible parent.
383- Archive transitions can block cloning.
384- Cross-`billTo` cloning of archived data requires live objects.
385- The clone is independent; removing the source does not remove the clone.
387Use `dx cp` for project-to-project copies when folder structure is the primary
388interface:
390```bash
391dx cp \
392 "project-source:/results" \
393 "project-destination:/imports"
394```
396Confirm source, destination, file count, and billing entity first.

Cloning

import dxpy

source = dxpy.DXFile("file-xxxx", project="project-source")
clone = source.clone(
    project="project-destination",
    folder="/imports",
)
print(clone.get_id())

Requirements and caveats:

  • Source object must be closed.
  • VIEW or higher is needed on the source.
  • UPLOAD or higher is needed on the destination.
  • Source and destination must be in the same region. Cloning preserves the data object ID; do not treat it as a new globally unique object.
  • Restricted projects/TREs can forbid cloning.
  • Databases cannot be cloned.
  • Hidden linked objects may be cloned with their visible parent.
  • Archive transitions can block cloning.
  • Cross-billTo cloning of archived data requires live objects.
  • The clone is independent; removing the source does not remove the clone.

Use dx cp for project-to-project copies when folder structure is the primary interface:

dx cp \
  "project-source:/results" \
  "project-destination:/imports"

Confirm source, destination, file count, and billing entity first.

Raw lines 360 to 397
398## Archival
400Archive and unarchive are billable/storage-affecting operations and may take
401time:
403```bash
404dx archive "project-xxxx:/old-results/sample.bam"
405dx unarchive "project-xxxx:/old-results/sample.bam"
406```
408Before archiving:
410- Check whether active workflows, collaborators, or published outputs need it.
411- Check all copies and billing behavior.
412- Confirm the target is a file or intended folder.
414Before unarchiving:
416- Confirm retrieval cost and required completion time.
417- Avoid launching dependent jobs until files return to `live`.
419Programmatic wrappers exist as `dxpy.api.project_archive()` and
420`dxpy.api.project_unarchive()`, but prefer the CLI for one-off human-reviewed
421operations.

Archival

Archive and unarchive are billable/storage-affecting operations and may take time:

dx archive "project-xxxx:/old-results/sample.bam"
dx unarchive "project-xxxx:/old-results/sample.bam"

Before archiving:

  • Check whether active workflows, collaborators, or published outputs need it.
  • Check all copies and billing behavior.
  • Confirm the target is a file or intended folder.

Before unarchiving:

  • Confirm retrieval cost and required completion time.
  • Avoid launching dependent jobs until files return to live.

Programmatic wrappers exist as dxpy.api.project_archive() and dxpy.api.project_unarchive(), but prefer the CLI for one-off human-reviewed operations.

Raw lines 398 to 422
423## Deletion
425Data removal is irreversible on the platform. Removing a visible object can
426also remove orphaned hidden linked objects.
428Safe sequence:
4301. List the exact IDs.
4312. Describe each object.
4323. Confirm project, folder, size, state, and linked-object impact.
4334. Ask for confirmation.
4345. Remove by ID.
4356. Verify absence and record an audit note outside the deleted data.
437Project controls are distinct:
439- `protected=true` restricts project-data deletion to project administrators;
440 when false, contributors can also delete.
441- `destroyProtected=true` blocks destruction of the entire project regardless
442 of requester permissions until an authorized administrator clears it.
443- Project destruction removes every object. It fails while jobs are active
444 unless `terminateJobs=true`, which force-terminates them.
446Never clear `destroyProtected`, set `terminateJobs=true`, or destroy a project
447as an implicit extension of an object-deletion request. Each requires separate
448explicit authorization after listing active jobs, project protections, billing
449context, and total data impact.
451Python:
453```python
454import dxpy
456project = dxpy.DXProject("project-xxxx")
457project.remove_objects(["file-xxxx"], force=False)
458```
460Recursive folder removal:
462```python
463project.remove_folder("/obsolete/run-001", recurse=True, force=False)
464```
466This is dangerous. Removing `/` recursively deletes all container contents.
467Never generate or execute that operation.
469The API removes at most 10,000 objects per folder-removal request. Do not
470automatically loop partial deletion without rechecking the remaining scope.
472Project deletion, permission changes, and delegated
473`overrideProjectAccess` deletion require separate explicit authorization.

Deletion

Data removal is irreversible on the platform. Removing a visible object can also remove orphaned hidden linked objects.

Safe sequence:

  1. List the exact IDs.
  2. Describe each object.
  3. Confirm project, folder, size, state, and linked-object impact.
  4. Ask for confirmation.
  5. Remove by ID.
  6. Verify absence and record an audit note outside the deleted data.

Project controls are distinct:

  • protected=true restricts project-data deletion to project administrators; when false, contributors can also delete.
  • destroyProtected=true blocks destruction of the entire project regardless of requester permissions until an authorized administrator clears it.
  • Project destruction removes every object. It fails while jobs are active unless terminateJobs=true, which force-terminates them.

Never clear destroyProtected, set terminateJobs=true, or destroy a project as an implicit extension of an object-deletion request. Each requires separate explicit authorization after listing active jobs, project protections, billing context, and total data impact.

Python:

import dxpy

project = dxpy.DXProject("project-xxxx")
project.remove_objects(["file-xxxx"], force=False)

Recursive folder removal:

project.remove_folder("/obsolete/run-001", recurse=True, force=False)

This is dangerous. Removing / recursively deletes all container contents. Never generate or execute that operation.

The API removes at most 10,000 objects per folder-removal request. Do not automatically loop partial deletion without rechecking the remaining scope.

Project deletion, permission changes, and delegated overrideProjectAccess deletion require separate explicit authorization.

Raw lines 423 to 474
475## Batch Operation Checklist
477- Bound result count and concurrency.
478- Materialize and review the target ID list before mutation.
479- Preserve a machine-readable manifest of source IDs and destinations.
480- Make operations restartable/idempotent.
481- Do not treat duplicate names as one object.
482- Check file state after upload.
483- Validate transfer integrity.
484- Capture failures without logging credentials or sensitive metadata.
485- Reconcile completed, skipped, and failed IDs.
486- Respect service limits and use exponential backoff.

Batch Operation Checklist

  • Bound result count and concurrency.
  • Materialize and review the target ID list before mutation.
  • Preserve a machine-readable manifest of source IDs and destinations.
  • Make operations restartable/idempotent.
  • Do not treat duplicate names as one object.
  • Check file state after upload.
  • Validate transfer integrity.
  • Capture failures without logging credentials or sensitive metadata.
  • Reconcile completed, skipped, and failed IDs.
  • Respect service limits and use exponential backoff.
Raw lines 475 to 486