Verify Hash Chain Integrity
# Verify complete thread hash chain
query {
verifyThreadIntegrity(threadId: "thread-123") {
verified
totalEvents
brokenAt
error
}
}
# Verify specific step
query {
verifyStepIntegrity(
threadId: "thread-123"
stepName: "order_placed"
idempotencyKey: "order_456"
) {
verified
hash
prevHash
}
}
# Get hash chain data
query {
thread(id: "thread-123") {
lastHash
steps {
stepName
hash
prevHash
verified
}
}
}
Hash Chain Status Fields
| Field | Type | Description |
|---|---|---|
verified | Boolean! | Chain integrity verified |
lastVerifiedAt | String! | Last verification timestamp |
totalEvents | Int! | Total events in chain |
brokenAt | String | Timestamp where chain broke |
error | String | Error message (if broken) |
Step Integrity Fields
| Field | Type | Description |
|---|---|---|
verified | Boolean! | Step integrity verified |
hash | String | Step hash |
prevHash | String | Previous step hash |
error | String | Error message (if invalid) |