{"uid":"cap_EGH9gHZqKnhRkAMVsQcZb","slug":"zookeeper-atomic-multi-one-shot-watch-ephemeral-session-ledger-verifier-e36895ca","name":"ZooKeeper Atomic Multi / One-Shot Watch / Ephemeral Session Ledger Verifier","description":"Replay finite ZooKeeper atomic multis, version checks, one-shot watch events and ephemeral cleanup.","url":"https://detect.halowerk.com/v1/F-TD2000-DATASTRUCTURES-06/zookeeper39-atomic-multi-oneshot-watch-ephemeral-session-ledger?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"artifact":{"type":"object","$defs":{"json":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string","maxLength":6000},{"type":"array","items":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},"maxItems":512},{"type":"object","maxProperties":128,"additionalProperties":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"}}]}},"required":["zk"],"properties":{"zk":{"type":"object","required":["data","claim"],"properties":{"data":{"type":"object","required":["events","sessions"],"properties":{"events":{"type":"array","items":{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},"maxItems":512},"sessions":{"type":"number"}},"additionalProperties":false},"claim":{"anyOf":[{"type":"null"},{"type":"object","required":["events","nodes","remaining_watches"],"properties":{"nodes":{"type":"array","items":{"type":"object","required":["cversion","data","owner","path","version"],"properties":{"data":{"type":"number"},"path":{"type":"string","maxLength":20000},"owner":{"anyOf":[{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},{"type":"number"}]},"version":{"type":"number"},"cversion":{"type":"number"}},"additionalProperties":false},"maxItems":512},"events":{"type":"array","items":{"type":"object","required":["events","status","value","zxid"],"properties":{"zxid":{"type":"number"},"value":{"anyOf":[{"$ref":"#/properties/input/properties/body/properties/artifact/%24defs/json"},{"anyOf":[{"type":"object","required":["children"],"properties":{"children":{"type":"array","items":{"type":"string","maxLength":20000},"maxItems":512}},"additionalProperties":false},{"type":"object","required":["cversion","version"],"properties":{"version":{"type":"number"},"cversion":{"type":"number"}},"additionalProperties":false},{"type":"object","required":["data","version"],"properties":{"data":{"type":"number"},"version":{"type":"number"}},"additionalProperties":false}]}]},"events":{"type":"array","items":{"type":"object","required":["event","path","session","watch_type"],"properties":{"path":{"type":"string","maxLength":20000},"event":{"type":"string","maxLength":20000},"session":{"type":"number"},"watch_type":{"type":"string","maxLength":20000}},"additionalProperties":false},"maxItems":512},"status":{"type":"string","maxLength":20000}},"additionalProperties":false},"maxItems":512},"remaining_watches":{"type":"array","items":{"type":"object","required":["path","session","type"],"properties":{"path":{"type":"string","maxLength":20000},"type":{"type":"string","maxLength":20000},"session":{"type":"number"}},"additionalProperties":false},"maxItems":512}},"additionalProperties":false}]}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_02lvVYMwvj0qL_GJ8TDfm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Replays and validates ZooKeeper atomic multi-operation sequences, version checks, one-shot watch event firing, and ephemeral node cleanup against a claimed post-state ledger.","exampleAgentPrompt":"Replay this ZooKeeper atomic multi sequence — 12 events across 3 sessions — and check whether the claimed post-state (node versions, one-shot watch firings, and ephemeral cleanup) is correct or if there are any discrepancies.","exampleUseCases":[{"title":"Atomic multi correctness after migration","prompt":"I migrated a ZooKeeper cluster and have a replay of 50 atomic multi events across 5 sessions. Can you verify that the claimed node versions, cversions, and watch event outcomes all match what the replay produces?"},{"title":"One-shot watch event audit","prompt":"I need to confirm that after replaying these ZooKeeper transactions, each one-shot watch fires exactly once and doesn't re-trigger — here's the event log and the claimed remaining_watches state."},{"title":"Ephemeral node cleanup verification","prompt":"After a session expires with 8 sessions in the ledger, I need to verify that all ephemeral nodes owned by that session were correctly removed — can you replay the events and check the claimed node list?"}],"resultDescription":"A validation response indicating whether the replayed ZooKeeper atomic multi events, version checks, one-shot watch firings, and ephemeral node cleanup match the claimed post-state ledger; includes per-node and per-event discrepancy details where mismatches are found.","failureModes":["Claimed node state does not match replayed outcome — returns mismatch details","Malformed event entries in the events array — returns schema validation error","Version or cversion values inconsistent with event sequence — returns conflict report","Exceeding maxItems limits on events or nodes arrays — returns payload too large error","Null claim with non-empty event log — ambiguous validation target"],"whenToPreferThis":"Use this endpoint when you need deterministic, replay-based validation of ZooKeeper atomic multi-operation sequences against a claimed post-state, specifically when verifying one-shot watch semantics, ephemeral node lifecycle, and version/cversion consistency — particularly during cluster migrations, test harness validation, or distributed system correctness audits.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-04T06:39:26.332Z","isFirstParty":false,"canonicalSlug":"zookeeper-atomic-multi-one-shot-watch-ephemeral-session-ledger-verifier-e36895ca"}