This solution article sets out steps on how to record ad hoc student activity / attendance. In recording this activity it will ensure that the student is compliant.
On an Enrollment scroll down to Enrollment Adhoc Activities:
Click on the New Enrollment Adhoc Activity Button to create a new entry
Click the activity type and date as well as a short description and then on the Save button.
This will be stored under the enrollment and will be included in the student compliance run as an attendance.