{"uid":"cap_UT0VYry30r75f5x8DbrzY","slug":"writerslogic-dockerfile-cache-reproducibility-linter-7f881cec","name":"WritersLogic Dockerfile Cache & Reproducibility Linter","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/dockerfile-cache-lint?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"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_PUTqWXWXbhuhTSV61l6cN","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":"Parses a Dockerfile and reports instructions that defeat the layer cache, cause build drift, or harm reproducibility, with optional hygiene checks.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"CI pipeline Dockerfile review","prompt":"Before we merge this PR, lint the Dockerfile for anything that defeats the layer cache or makes builds non-reproducible — focus on cache and reproducibility rules, using tag-level pinning checks."},{"title":"Security-hardened digest pinning audit","prompt":"Audit our production Dockerfile and flag every base image that isn't pinned by @sha256 digest, plus any ADD of a URL that's missing a --checksum flag — use digest mode for basePin."},{"title":"Dockerfile hygiene sweep for onboarding","prompt":"Run a full lint on this Dockerfile covering cache, reproducibility, and hygiene issues — I want to catch things like cd instead of WORKDIR and pipes without pipefail too, not just the cache problems."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T00:03:10.222Z","isFirstParty":false,"canonicalSlug":"writerslogic-dockerfile-cache-reproducibility-linter-7f881cec"}