head is built around one simple rule:
every successful swap creates a deterministic state transition
contract does not store “market opinions”, scores, epochs or external signals, it takes the current HEAD, combines it with the new swap fingerprint and produces the next cryptographic state
nextHEAD = keccak256(
previousHEAD,
swapFingerprint
)
that transition is emitted on-chain together with the data required to reconstruct it
GitHub then reads those events from Robinhood Chain, rebuilds the same sequence independently and calculates the same HEAD locally