{"uid":"cap_CAey-L5Oj2C8Ua7LrLwJf","slug":"writerslogic-archive-preflight-validator-bba16297","name":"WritersLogic Archive Preflight Validator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/archive-preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"limits":{"type":"object","properties":{"maxEntries":{"type":"integer","minimum":0},"maxTotalBytes":{"type":"integer","maximum":9007199254740991,"minimum":0},"maxExpansionRatio":{"type":"number","minimum":0}}},"entries":{"type":"array","items":{"type":"object","required":["path"],"properties":{"path":{"type":"string","maxLength":1024,"minLength":1,"description":"Entry name exactly as stored in the archive."},"size":{"type":"integer","maximum":9007199254740991,"minimum":0,"description":"Uncompressed size in bytes."},"type":{"enum":["file","dir","symlink","hardlink"],"type":"string","description":"Default: dir when the name ends with /, else file."},"linkTarget":{"type":"string","maxLength":1024,"description":"Required for symlink and hardlink entries."},"compressedSize":{"type":"integer","maximum":9007199254740991,"minimum":0}}},"maxItems":2000,"minItems":1,"description":"At most 200000 characters of paths and link targets in total."},"targets":{"type":"array","items":{"enum":["windows","macos","linux"],"type":"string"},"maxItems":3,"description":"Filesystems to check collisions and name rules for. Default: windows, macos and linux."},"destinationRoot":{"type":"string","maxLength":1024,"description":"Extraction directory; counted towards total path length."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PcSW67NKqtKsRdK3fIcgm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an archive manifest (zip/tar/OOXML) for path traversal attacks, symlink escapes, name collisions, reserved names, and size-limit violations before extraction.","exampleAgentPrompt":"Before I unpack this tar archive, check its manifest for me — here are the 150 entries with their paths, types, and sizes. Flag any path traversal attempts, symlink escapes, duplicate destinations, or Windows reserved names, and enforce a max total uncompressed size of 500MB across windows, macos, and linux filesystems.","exampleUseCases":[{"title":"Safe zip extraction in automated pipeline","prompt":"I'm about to extract a user-uploaded zip file in my pipeline. Here are the 320 manifest entries with their paths and uncompressed sizes. Run a preflight check for path traversal, symlink escapes, NFC/NFD collisions, and Windows reserved names, with a max expansion ratio of 100 and a max total of 1GB uncompressed."},{"title":"OOXML document processing security gate","prompt":"Before my agent processes this .docx file, I need to validate its internal manifest — 48 entries, mix of files and symlinks with link targets included. Check for ../ traversal through backslashes, absolute paths, and symlink targets leaving the root on windows and linux filesystems."},{"title":"CI/CD artifact archive safety check","prompt":"My CI system is about to unpack a build artifact tar.gz. Can you check its 800-entry manifest for duplicate destinations, drive-letter and UNC path injections, hardlink escapes, and case-only collisions? Max entries allowed is 1000 and max total bytes is 200000000."}],"resultDescription":"Returns a structured validation result indicating whether the manifest passes or fails, with a list of specific hazards found — including the offending entry path, the type of violation (e.g. traversal, symlink escape, reserved name, size limit exceeded, NFC/NFD collision, duplicate destination), and severity details. A pass indicates no listed hazards in the supplied manifest, not a guarantee of extractor-level safety.","failureModes":["Manifest exceeds 2000 entries — request rejected","Total path/link-target character count exceeds 200,000 — request rejected","Missing required 'path' field on one or more entries — validation error","linkTarget missing on symlink or hardlink entry — schema error","maxExpansionRatio or maxTotalBytes set to invalid values — parameter error","False pass: extractor applies additional sanitising not reflected in manifest — out of scope by design"],"whenToPreferThis":"Use this endpoint when an AI agent or automated pipeline needs to safely pre-screen an archive manifest before invoking an extractor, particularly for user-supplied or untrusted archives (zip, tar, OOXML). It is the right choice when you want a lightweight, manifest-only security gate that catches the most common archive attack vectors (zip slip, symlink escape, name collision, size bombs) without needing to open or decompress the archive. Prefer it over runtime extraction checks when you want to fail fast before any disk writes occur.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T00:31:03.511Z","isFirstParty":false,"canonicalSlug":"writerslogic-archive-preflight-validator-bba16297"}