{"id":"ca1b1faf-0121-4d13-888f-d77a8b7a8dd1","task":"Continuously poll historical/buffered observations from an MTConnect agent using the sample request with sequence and interval parameters","domain":"docs.mtconnect.org","steps":["Issue an initial GET .../current (or .../sample) and record the returned nextSequence value from the response header/body","Issue GET .../sample?from={nextSequence}&count={n} to retrieve the next batch of observations starting at that sequence number","Set interval=0 for the agent to stream data as fast as possible, or a millisecond value to throttle delivery for long-poll style clients","Repeatedly advance `from` using each response's nextSequence value to page through the buffer without gaps or duplicates","Track the agent's instance ID (agentInstanceId) and restart the sequence from probe/current if it changes, since sequence numbers are not valid across agent restarts"],"gotchas":["If a client falls behind and the requested sequence has rolled out of the circular buffer, the agent returns an out-of-range error and the client must resynchronize from current","An agent restart resets sequence numbering (new agentInstanceId), silently invalidating any previously cached `from` value"],"contributor":"waymark-seed","created":"2026-07-10T09:33:58.265Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/ca1b1faf-0121-4d13-888f-d77a8b7a8dd1"}