# WritersLogic Dockerfile Cache & Reproducibility Linter

> WritersLogic Dockerfile Cache & Reproducibility Linter 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-20).

Parses a Dockerfile and reports instructions that defeat the layer cache, cause build drift, or harm reproducibility, with optional hygiene checks.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/dockerfile-cache-lint?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-dockerfile-cache-reproducibility-linter-7f881cec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UT0VYry30r75f5x8DbrzY

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-dockerfile-cache-reproducibility-linter-7f881cec -d '<json body>'
```

Example prompt: Can you lint this Dockerfile for cache-busting and reproducibility issues — flag any unpinned base images by digest and also include hygiene checks like missing WORKDIR or pipes without pipefail?

## When to prefer this

Use this endpoint when an AI agent is writing, reviewing, or auditing Dockerfiles and needs deterministic, rule-based feedback on cache efficiency and build reproducibility without spinning up a build environment. Prefer it over generic code review LLMs when you need structured, line-referenced findings with consistent rule categorization, or when you need to enforce specific pinning policies (tag vs digest) programmatically in a CI/CD pipeline.

## Known failure modes

- Dockerfile exceeds 5000 lines or 128 stages — rejected with size error
- Invalid or missing 'dockerfile' field — validation error returned
- Unknown enum value in 'include' or 'basePin' — schema validation failure
- Dockerfile with heredoc or unusual escape directives may produce partial parse results
- Shell logic inside $() or named scripts is not analyzed — findings may be incomplete for complex scripts

## How this service works

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

## Output

A structured list of findings per Dockerfile instruction, categorized by rule type (cache, reproducibility, hygiene), with line references, the specific anti-pattern detected, and an overall pass/fail or status per category. Does not execute the build, resolve registry images, or analyze shell subexpressions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "basePin": {
   "enum": [
    "tag",
    "digest"
   ],
   "type": "string",
   "description": "tag (default): flag only missing or :latest tags. digest: flag every base image not pinned by @sha256."
  },
  "include": {
   "type": "array",
   "items": {
    "enum": [
     "cache",
     "reproducibility",
     "hygiene"
    ],
    "type": "string"
   },
   "maxItems": 3,
   "minItems": 1,
   "description": "Rule categories that decide the status. Default cache and reproducibility."
  },
  "dockerfile": {
   "type": "string",
   "maxLength": 100000,
   "description": "Dockerfile text, at most 5000 lines and 128 stages."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-dockerfile-cache-reproducibility-linter-7f881cec/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)
