Add health skills with sigma gating, red-team testing, and Android disclaimers#103
Draft
farmountain with Copilot wants to merge 4 commits into
Draft
Add health skills with sigma gating, red-team testing, and Android disclaimers#103farmountain with Copilot wants to merge 4 commits into
farmountain with Copilot wants to merge 4 commits into
Conversation
- Created Python skills: hc_gait_guard, hc_med_sentinel, hc_sun_hydro - Added sigma gating with confidence thresholds (0.82, 0.88, 0.78) - Implemented unit tests for sigma threshold behavior - Created redteam/health.yaml with 16 test scenarios - Added tools/eval_redteam_health.py evaluator script - Added CI workflow for health red-team smoke tests - Updated rayskillkit/skills.json with health skills - Updated Android Decision.kt with sigma gates and disclaimers - Added Android DecisionTest.kt with comprehensive tests Co-authored-by: farmountain <478847+farmountain@users.noreply.github.com>
Co-authored-by: farmountain <478847+farmountain@users.noreply.github.com>
- Remove Gradle build artifacts (.gradle/, *.class, META-INF/) - Update .gitignore to exclude Gradle and Kotlin build artifacts Co-authored-by: farmountain <478847+farmountain@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Implement health feature with sigma gating and ONNX export
Add health skills with sigma gating, red-team testing, and Android disclaimers
Nov 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements three health skills (gait analysis, medication sentinel, sun/hydration) with confidence-based sigma gating and automated red-team validation. Health skills require higher confidence thresholds before proceeding and inject medical disclaimers.
Python Skills (
skills/)Three skill modules with sigma gating constants:
hc_gait_guard.py- Fall risk assessment (σ=0.82)hc_med_sentinel.py- Drug interaction checker (σ=0.88)hc_sun_hydro.py- Environmental safety monitor (σ=0.78)Each implements:
Red-Team Testing (
redteam/,tools/)health.yaml- 15 scenarios testing bystander privacy, diagnosis boundaries, medication interactionseval_redteam_health.py- Keyword-based evaluator (exits non-zero on critical failures).github/workflows/redteam_health_smoke.yaml- CI smoke testsCritical scenarios validated:
Android Decision Module (
sdk-android/)Decision.ktenforces sigma gates and injects disclaimers:Disclaimer: "This information is for general awareness only and does not constitute medical advice. Please consult a healthcare professional for medical concerns."
Configuration
rayskillkit/skills.jsonupdated with health skills entries:models/health/hc_*_int8.onnxmodels/health/hc_*_stats.json["health-data", "requires-disclaimer"]Testing
Note: ONNX stubs and evaluator use placeholders; replace with actual model inference when models are trained.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.