Validate At The Boundary

Validate untrusted inputs at the edge of the system — with a clear error raised at the boundary — instead of letting bad shape, bad dtype, non-finite values, or hostile paths explode deep inside a library or propagate as silent corruption. Use this whenever code ingests data from outside its own control — deserialized tensors/arrays, file paths from a caller, parsed JSON, anything fed to numpy/pandas/a parser, anything that becomes a filesystem operation. Triggers — an opaque numpy broadcast error, a NaN that appeared from nowhere, a path traversal or symlink concern, "validate input", "sanitize", "this crashed deep in a library". Push to use this whenever an external value reaches a sensitive operation without having been checked first.

annatchijova 23d917a 3 files · 12.3 KB Updated

File contents

annatchijova/SKILLS/tree/main/validate-at-the-boundary commit 23d917addd

Frequently asked questions

npx skillmds@latest add annatchijova/validate-at-the-boundary