For the system to detect permitted trigger criterias, it needs to have a reference layer.
Allowlist logic? for MVP scope
eg.
GATE 1: PAGE CONTEXT
IF current_page IN [student_profile, ]
→ CONTINUE
GATE 2: AUTHORITY
IF teacher_id has confirmed relationship
(form teacher OR lead teacher OR SDT user)
for student_id in MIMS
→ CONTINUE
GATE 3: STUDENT NEEDS SUPPORT
IF student has active, confirmed SwAN tag
→ CONTINUE
GATE 4: CONTENT MATCH
IF SwAN_type in student record matches
at least one content_tag in candidate content item
→ CONTINUE
All pass → permitted_to_surface = true. Any gate fails → no_surface, log reason, exit early.
TODO
For the system to detect permitted trigger criterias, it needs to have a reference layer.
Allowlist logic? for MVP scope
eg.
GATE 1: PAGE CONTEXT
IF current_page IN [student_profile, ]
→ CONTINUE
GATE 2: AUTHORITY
IF teacher_id has confirmed relationship
(form teacher OR lead teacher OR SDT user)
for student_id in MIMS
→ CONTINUE
GATE 3: STUDENT NEEDS SUPPORT
IF student has active, confirmed SwAN tag
→ CONTINUE
GATE 4: CONTENT MATCH
IF SwAN_type in student record matches
at least one content_tag in candidate content item
→ CONTINUE
All pass → permitted_to_surface = true. Any gate fails → no_surface, log reason, exit early.
TODO