Skip to content

[ask-a-sailor] ABA-informed dialogue layer: Coach + Reflect modes, Social Stories schema#26

Draft
fullharbor with Copilot wants to merge 3 commits into
mainfrom
copilot/add-coach-reflect-modes
Draft

[ask-a-sailor] ABA-informed dialogue layer: Coach + Reflect modes, Social Stories schema#26
fullharbor with Copilot wants to merge 3 commits into
mainfrom
copilot/add-coach-reflect-modes

Conversation

Copilot AI commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Adds ABA-informed prompt architecture for youth sailing coaching, informed by ASD-iLLM (Lai et al., EMNLP 2025) and the ABA-with-GPT HuggingFace blueprint.

Prompt modes (src/prompts/system.py)

  • Coach — in-the-moment, actionable guidance (sensory-aware tips, positive reinforcement, short structured responses)
  • Reflect — post-session metacognitive processing (open-ended questions, effort-over-outcome framing, longer reflective responses)
  • Shared _BOUNDARY_BLOCK injected into both: declines diagnosis, redirects to BCBA/pediatrician/counselor
  • Original SYSTEM_PROMPT unchanged

Social Stories schema (src/prompts/social_stories.py)

Pydantic model with the six specified fields:

from prompts.social_stories import SocialStory, TonePreset, DisclosureIntent

story = SocialStory(
    setting="Lakewood Yacht Club dock, Saturday morning",
    roles=["sailor (child)", "instructor"],
    objective="Preview the steps for rigging an Opti",
    sensory_profile="Loud halyards, wind, cold spray",
    tone_preset=TonePreset.calm,
    disclosure_intent=DisclosureIntent.normalising,
)

Tests (tests/test_prompts.py)

35 tests across four classes: prompt distinctness, boundary-hygiene phrase checks on both ABA prompts, persona keyword differentiation (Coach vs Reflect), and schema validation including enum serialisation roundtrip.

Original prompt

This section details on the original issue you should resolve

<issue_title>[ask-a-sailor] ABA-informed dialogue layer: Coach + Reflect modes, Social Stories schema</issue_title>
<issue_description>ASD-iLLM (Lai et al., EMNLP 2025) fine-tuned a 7B model on 8,035 ABA-based clinical dialogues and outperformed all existing models. The 'ABA with GPT' HuggingFace blueprint (Weinberger + Molnar, huggingface.co/blog/Clock070303/aba-for-gpt) provides full prompt architecture. Work: (1) Two system prompt modes in src/prompts/system.py -- Coach (in-the-moment) and Reflect (post-session metacognitive), (2) Social Stories corpus schema: fields = setting, roles, objective, sensory_profile, tone_preset, disclosure_intent, (3) boundary hygiene: agent explicitly declines diagnosis, redirects to professionals, (4) tests verifying persona differences. This is the foundation for the ASD/youth coaching product. Refs: github.com/Shuzhong-Lai/ASD-iLLM, Noora RCT doi:10.1007/s10803-025-06734-x</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 11, 2026 07:52
… Stories schema, boundary hygiene

- Add COACH_SYSTEM_PROMPT (in-the-moment ABA-informed coaching)
- Add REFLECT_SYSTEM_PROMPT (post-session metacognitive reflection)
- Add shared _BOUNDARY_BLOCK declining diagnosis, redirecting to professionals
- Add SocialStory Pydantic schema with required fields: setting, roles,
  objective, sensory_profile, tone_preset, disclosure_intent
- Add TonePreset and DisclosureIntent enums
- Update prompts __init__.py exports
- Add 35 tests: prompt mode distinctness, boundary hygiene, persona
  differentiation, schema validation

Co-authored-by: fullharbor <237832340+fullharbor@users.noreply.github.com>
Co-authored-by: fullharbor <237832340+fullharbor@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ABA-informed dialogue layer with Coach and Reflect modes [ask-a-sailor] ABA-informed dialogue layer: Coach + Reflect modes, Social Stories schema Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ask-a-sailor] ABA-informed dialogue layer: Coach + Reflect modes, Social Stories schema

2 participants