What was the US military's secret space plane doing on its record-breaking mission?

The uncrewed X-37B space plane touched down at NASA’s Kennedy Space Station on Nov. 12 having spent a record 908 days in orbit

What was the US military's secret space plane doing on its record-breaking mission? : Read more
Saw it one time, about 4-5 years ago, at sunset, low in the West, heading down. Not very bright, only about 10-20 seconds of visibility.

Original thread: https://forums.space.com/threads/what-was-the-us-militarys-secret-space-plane-doing-on-its-record-breaking-mission.58750/