[Bug] calendar_scheduling grader treats ROLE=OPT-PARTICIPANT attendees as required hard constraints
Summary
The grader for:
tasks/01_Productivity_Flow/01_Productivity_Flow_task_6_calendar_scheduling.md
discards iCalendar ATTENDEE parameters, including ROLE, and applies conflict/unavailability hard constraints to every attendee address. As a result, correctly inviting someone with ROLE=OPT-PARTICIPANT can zero the entire task.
RFC 5545 §3.2.16 defines OPT-PARTICIPANT as a participant whose participation is optional:
https://www.rfc-editor.org/rfc/rfc5545.html#section-3.2.16
Root cause
The ICS parser extracts only attendee values. Later checks iterate over all returned attendees without distinguishing required from optional participants:
for attendee in event_attendees(e):
# conflict, daily-limit and unavailability checks
Any failure in those checks causes hard_constraint_pass = 0 and immediately returns overall_score = 0.
Reproduction
I regraded a real schedule containing ten new meetings. The schedule used valid ROLE=OPT-PARTICIPANT attendee lines.
Original result:
no_attendee_conflicts = 0.0
attendee_unavailability_respected = 0.0
hard_constraint_pass = 0.0
overall_score = 0.0
Minimal control: remove only the ten ATTENDEE;ROLE=OPT-PARTICIPANT:... lines. Meeting times, request coverage, meeting count, required attendees, unscheduled output, and decision log are unchanged.
no_attendee_conflicts = 1.0
attendee_unavailability_respected = 1.0
hard_constraint_pass = 1.0
optimality_ratio = 1.0
overall_score = 1.0
Expected behavior
Required attendees should participate in hard availability/conflict constraints. Optional attendees should not cause an otherwise valid schedule to fail hard constraints merely because they are unavailable or have another event.
Suggested fix
- Preserve ICS parameters while parsing each
ATTENDEEproperty. - Return a structured attendee record such as
{address, role}. - Apply required-attendee hard constraints only to
REQ-PARTICIPANT(and the default role whenROLEis absent). - Add a regression test with an unavailable
OPT-PARTICIPANTand an available required attendee.
@stalong1 Thanks for raising this and for the detailed reproduction.
The current grader behavior is intentional.
In this task, required_attendees and optional_attendees distinguish whether an attendee is required for the meeting to be scheduled, rather than whether scheduling constraints apply to them once they are included in the final invitation.
More specifically:
- All
required_attendeesmust be included and available for the meeting to be scheduled. - An
optional_attendeedoes not need to be invited. - However, if the agent chooses to include an optional attendee in
scheduled.ics, that attendee becomes part of the scheduled meeting and is expected to satisfy the same availability, conflict, and per-day meeting-limit constraints as the other invited attendees.
Therefore, an optional attendee who is unavailable should simply be omitted from that meeting invitation. ROLE=OPT-PARTICIPANT indicates that their participation is not required for the meeting itself; it does not exempt an invited participant from the scheduling constraints defined by this task.
This is also why removing conflicting optional attendees can turn the reproduced schedule from invalid to valid: omitting optional attendees that cannot be accommodated is an intended behavior of the task.
We agree that the distinction between “required” and “optional” attendees may not have been sufficiently explicit in the task description, but the grader behavior itself is consistent with the intended task semantics.
Thanks again for pointing this out.