Scientific File Preflight and Resource Planning
Preview + reviewed; the helper self-test passed. Large-file calibration,
scientific benchmarking, and expert review were not performed.
Execution behavior
Use supplied and safely inspected facts first. Explain an unfamiliar term only when it changes the decision. If a critical fact is missing or inconsistent, follow the dialogue guide: ask one focused question, explain why, recommend a defensible route, and wait on dependent work. Continue independent authorized work; never guess scientific facts or repeat a resolved question. With complete inputs, proceed. Show relevant figures/tables and their meaning; preserve the host's permissions and the boundaries below. Finish with outputs, key findings and concrete remaining limits.
Detailed scope: Use for a bounded, read-only preflight of explicitly named local scientific files before a workflow starts. Estimate container clues, index presence, and conservative resource floors. Exclude full validation, recursion, decompression, repair, conversion, execution, and biological interpretation.
Scope and inputs
Inspect metadata and a capped header from explicit local regular files. Identify
obvious blockers and provide heuristic planning floors for metadata-only,
sequential-read, indexed-analysis, or sort-or-rewrite; do not claim
operational readiness, format validity, or scientific validity.
Require:
- one or more explicit file paths;
- the intended operation class;
- optional disk and memory budgets in bytes;
- a new JSON output path in an existing directory.
An explicit request authorizes these bounded reads and the new report. If the operation class is missing, ask one question with a recommendation, then wait; do not ask for a second execution confirmation.
Decision order:
- operation-class. Which downstream operation should this preflight plan for? Recommended: Name the actual next operation so the report can apply the correct resource-planning floor.
Run
textpython3 scripts/preflight_files.py \ --input FILE [--input FILE ...] \ --operation metadata-only|sequential-read|indexed-analysis|sort-or-rewrite \ --output NEW_REPORT.json \ [--probe-bytes 65536] [--disk-budget-bytes N] [--memory-budget-bytes N]
The Python 3.10+ helper accepts at most 256 files, 1 MiB per probe, and 64 MiB total. It refuses leaf symlinks, directories, special files, parent traversal, changed inputs, and existing outputs. It creates no directories.
Result
completed requires every input to pass and one create-new report to publish.
The report records file metadata, inspected bytes, whether the probe covered the
whole file, suffix and magic clues, probe digests, companion-index presence,
warnings, planning floors, budgets, versions, and assumptions.
Missing choices are needs-decision; unsupported work is needs-tool; unsafe
inputs are invalid-input. No report is published after an input failure.
Boundaries
- Never recurse, decompress, run a subprocess, use the network, mutate input, create an index, or overwrite output.
- A full-file probe of a small file is labeled explicitly; it is not presented as a separately requested whole-file hash.
- Container clues and companion presence do not establish structural or scientific validity.
- Resource values are conservative triage floors, not measured runtime predictions.
- Route format validation to
bioinformatics-format-and-identifier-validation, file operations to their owning Skills, and completed-run provenance toenvironment-and-provenance-capture.
See runtime boundaries for tested and skipped behavior.


