# WritersLogic Archive Preflight Validator

> WritersLogic Archive Preflight Validator is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-19).

Validates an archive manifest (zip/tar/OOXML) for path traversal attacks, symlink escapes, name collisions, reserved names, and size-limit violations before extraction.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/archive-preflight?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-archive-preflight-validator-bba16297
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CAey-L5Oj2C8Ua7LrLwJf

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-archive-preflight-validator-bba16297 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-archive-preflight-validator-bba16297/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
