Merge "Add a hidden API to query quarantine state." into main