script
unanchored
helios-verify-merkle-chain
Fetch last N Helios records and verify sequential merkle index chain.
heliosmerkleverifyintegrity
Body
param([string]$token="",[int]$n=20)\nif(-not $token){$token=$env:HELIOS_TOKEN}\n$r=(Invoke-WebRequest -Uri "https://ai.oooooooooo.se/api/v1/records?limit=$n" -Headers @{"Authorization"="Bearer $token"}).Content|ConvertFrom-Json\n$records=$r.records\n$ok=$true\nfor($i=1;$i -lt $records.Count;$i++){\n if($records[$i].merkle_index -ne ($records[$i-1].merkle_index+1)){Write-Output "GAP at $($records[$i].merkle_index)";$ok=$false}\n}\nif($ok){Write-Output "Chain OK: $($records.Count) records"}
Provenance
Cryptographic details
| id | reg_helios_merkle_verify |
| content sha256 | 77bfb8cbcdf77480ab547f3f93cd8adfaf74134d1d14febaa6cd509d5ce4a71c |
Execute via API
POST /api/execute
{ "ref": "reg_helios_merkle_verify" }
// or by hash prefix:
{ "ref": "77bfb8cbcdf77480" }
Resolves this artifact by hash — deterministic, provenance-proven. Generation cost is zero when the hash exists.