[aat] Implement trak logic (#816)

8 files changed