Currently AMP relies on "viewer supplied" JavaScript to communicate with the viewer. The intent was to be flexible in how that communication works.
In turns out, that this makes it way too hard to build viewers, especially with the existing caches, so we want to move that (pretty simple) code into the core.
And then document the protocol :)