{"uid":"cap_EumV3any5JbgpBlqxgYjz","slug":"writerslogic-artifact-invalidator-4877b6b9","name":"WritersLogic Artifact Invalidator","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/artifact-invalidator?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"changed":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":500,"minItems":1},"artifacts":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","maxLength":200,"minLength":1},"inputs":{"type":"array","items":{"type":"string","maxLength":200,"minLength":1},"maxItems":50,"description":"Ids of artifacts this one is derived from."}},"additionalProperties":false},"maxItems":500,"minItems":1}}},"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_fEAvDzhUJ657eLQydhyhw","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":"Given a dependency graph of artifacts and a set of changed artifact IDs, returns the transitive set of affected artifacts in safe recomputation order, plus the unaffected set, with cycle and unknown-ID detection.","exampleAgentPrompt":"I have a dependency graph of 12 artifacts where artifact 'report-final' depends on 'summary', which depends on 'raw-data'. 'raw-data' and 'config' just changed — can you tell me which artifacts are now invalid and in what order I should recompute them?","exampleUseCases":[{"title":"Incremental data pipeline rebuild","prompt":"My data pipeline has 20 derived artifacts. The source tables 'sales_2024' and 'returns_2024' were updated — given this dependency graph, tell me which downstream artifacts are stale and the safest order to recompute them."},{"title":"Build system change impact analysis","prompt":"After editing 'schema.proto' and 'config.yaml', I need to know which generated code artifacts transitively depend on them and in what order they should be rebuilt. Here's the full artifact dependency graph."},{"title":"Cycle detection in artifact graph","prompt":"Can you check this artifact dependency graph for cycles or any references to unknown artifact IDs? I think there might be a circular dependency between 'transform-A' and 'transform-B'."}],"resultDescription":"Returns a structured result containing: (1) an ordered list of artifact IDs that transitively depend on the changed IDs, sorted so inputs come before their dependents (safe recomputation order); (2) a list of artifact IDs unaffected by the changes; (3) on failure, a 'fail' status with the cycle path or the unknown ID that caused the error.","failureModes":["Cycle detected in dependency graph — returns fail with the cycle path","Changed ID not found in artifact list — returns fail identifying the unknown ID","Input ID referenced by an artifact not found in artifact list — returns fail identifying the unknown reference","Empty or malformed artifacts array — validation error","Too many artifacts (>500) or too many inputs per artifact (>50) — rejected by schema limits"],"whenToPreferThis":"Use this endpoint when you need to determine which artifacts in a DAG are transitively invalidated by a set of upstream changes and require a topologically safe recomputation order. It is purpose-built for dependency propagation problems — build systems, data pipelines, document derivation chains — and handles cycle detection and unknown-ID validation out of the box. It does not hash content, execute computations, or fetch artifacts; choose it when you need pure graph traversal and ordering logic without side effects.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:37:27.805Z","isFirstParty":false,"canonicalSlug":"writerslogic-artifact-invalidator-4877b6b9"}