carefold 0.5.0b1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (876) hide show
  1. carefold-0.5.0b1/.gitignore +266 -0
  2. carefold-0.5.0b1/PKG-INFO +282 -0
  3. carefold-0.5.0b1/README.md +233 -0
  4. carefold-0.5.0b1/hatch_build.py +40 -0
  5. carefold-0.5.0b1/pyproject.toml +100 -0
  6. carefold-0.5.0b1/src/carefold/__init__.py +304 -0
  7. carefold-0.5.0b1/src/carefold/_content/agents/_system/document-extractor/README.md +14 -0
  8. carefold-0.5.0b1/src/carefold/_content/agents/_system/document-extractor/agent.yaml +27 -0
  9. carefold-0.5.0b1/src/carefold/_content/agents/_system/document-extractor/persona.md +12 -0
  10. carefold-0.5.0b1/src/carefold/_content/agents/_system/document-extractor/starters.json +6 -0
  11. carefold-0.5.0b1/src/carefold/_content/agents/_system/orchestrator/README.md +13 -0
  12. carefold-0.5.0b1/src/carefold/_content/agents/_system/orchestrator/agent.yaml +24 -0
  13. carefold-0.5.0b1/src/carefold/_content/agents/_system/orchestrator/persona.md +17 -0
  14. carefold-0.5.0b1/src/carefold/_content/agents/_system/orchestrator/starters.json +6 -0
  15. carefold-0.5.0b1/src/carefold/_content/agents/_system/quality-reviewer/README.md +39 -0
  16. carefold-0.5.0b1/src/carefold/_content/agents/_system/quality-reviewer/agent.yaml +35 -0
  17. carefold-0.5.0b1/src/carefold/_content/agents/_system/quality-reviewer/evals/golden.jsonl +6 -0
  18. carefold-0.5.0b1/src/carefold/_content/agents/_system/quality-reviewer/persona.md +18 -0
  19. carefold-0.5.0b1/src/carefold/_content/agents/_system/quality-reviewer/starters.json +7 -0
  20. carefold-0.5.0b1/src/carefold/_content/agents/_system/skill-generator/README.md +10 -0
  21. carefold-0.5.0b1/src/carefold/_content/agents/_system/skill-generator/agent.yaml +23 -0
  22. carefold-0.5.0b1/src/carefold/_content/agents/_system/skill-generator/persona.md +16 -0
  23. carefold-0.5.0b1/src/carefold/_content/agents/_system/skill-generator/starters.json +5 -0
  24. carefold-0.5.0b1/src/carefold/_content/agents/_system/suggestion-generator/agent.yaml +22 -0
  25. carefold-0.5.0b1/src/carefold/_content/agents/_system/suggestion-generator/persona.md +10 -0
  26. carefold-0.5.0b1/src/carefold/_content/agents/_system/suggestion-generator/starters.json +5 -0
  27. carefold-0.5.0b1/src/carefold/_content/agents/_system/triage-auditor/README.md +46 -0
  28. carefold-0.5.0b1/src/carefold/_content/agents/_system/triage-auditor/agent.yaml +35 -0
  29. carefold-0.5.0b1/src/carefold/_content/agents/_system/triage-auditor/evals/golden.jsonl +6 -0
  30. carefold-0.5.0b1/src/carefold/_content/agents/_system/triage-auditor/persona.md +18 -0
  31. carefold-0.5.0b1/src/carefold/_content/agents/_system/triage-auditor/starters.json +7 -0
  32. carefold-0.5.0b1/src/carefold/_content/agents/_template/README.md +29 -0
  33. carefold-0.5.0b1/src/carefold/_content/agents/_template/agent.yaml +25 -0
  34. carefold-0.5.0b1/src/carefold/_content/agents/_template/evals/golden.jsonl +5 -0
  35. carefold-0.5.0b1/src/carefold/_content/agents/_template/metadata.yaml +38 -0
  36. carefold-0.5.0b1/src/carefold/_content/agents/_template/persona.md +5 -0
  37. carefold-0.5.0b1/src/carefold/_content/agents/_template/starters.json +5 -0
  38. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/README.md +30 -0
  39. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/agent.yaml +26 -0
  40. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/evals/golden.jsonl +6 -0
  41. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/metadata.yaml +37 -0
  42. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/persona.md +5 -0
  43. carefold-0.5.0b1/src/carefold/_content/agents/benefits-guide/starters.json +7 -0
  44. carefold-0.5.0b1/src/carefold/_content/agents/cardiology-guide/agent.yaml +28 -0
  45. carefold-0.5.0b1/src/carefold/_content/agents/cardiology-guide/evals/golden.jsonl +6 -0
  46. carefold-0.5.0b1/src/carefold/_content/agents/cardiology-guide/metadata.yaml +42 -0
  47. carefold-0.5.0b1/src/carefold/_content/agents/cardiology-guide/persona.md +5 -0
  48. carefold-0.5.0b1/src/carefold/_content/agents/cardiology-guide/starters.json +7 -0
  49. carefold-0.5.0b1/src/carefold/_content/agents/claims-appeals-guide/agent.yaml +28 -0
  50. carefold-0.5.0b1/src/carefold/_content/agents/claims-appeals-guide/evals/golden.jsonl +6 -0
  51. carefold-0.5.0b1/src/carefold/_content/agents/claims-appeals-guide/metadata.yaml +39 -0
  52. carefold-0.5.0b1/src/carefold/_content/agents/claims-appeals-guide/persona.md +5 -0
  53. carefold-0.5.0b1/src/carefold/_content/agents/claims-appeals-guide/starters.json +7 -0
  54. carefold-0.5.0b1/src/carefold/_content/agents/derma-guide/agent.yaml +29 -0
  55. carefold-0.5.0b1/src/carefold/_content/agents/derma-guide/evals/golden.jsonl +6 -0
  56. carefold-0.5.0b1/src/carefold/_content/agents/derma-guide/metadata.yaml +43 -0
  57. carefold-0.5.0b1/src/carefold/_content/agents/derma-guide/persona.md +5 -0
  58. carefold-0.5.0b1/src/carefold/_content/agents/derma-guide/starters.json +7 -0
  59. carefold-0.5.0b1/src/carefold/_content/agents/endocrinology-guide/agent.yaml +29 -0
  60. carefold-0.5.0b1/src/carefold/_content/agents/endocrinology-guide/evals/golden.jsonl +6 -0
  61. carefold-0.5.0b1/src/carefold/_content/agents/endocrinology-guide/metadata.yaml +44 -0
  62. carefold-0.5.0b1/src/carefold/_content/agents/endocrinology-guide/persona.md +5 -0
  63. carefold-0.5.0b1/src/carefold/_content/agents/endocrinology-guide/starters.json +7 -0
  64. carefold-0.5.0b1/src/carefold/_content/agents/ent-guide/agent.yaml +29 -0
  65. carefold-0.5.0b1/src/carefold/_content/agents/ent-guide/evals/golden.jsonl +6 -0
  66. carefold-0.5.0b1/src/carefold/_content/agents/ent-guide/metadata.yaml +41 -0
  67. carefold-0.5.0b1/src/carefold/_content/agents/ent-guide/persona.md +5 -0
  68. carefold-0.5.0b1/src/carefold/_content/agents/ent-guide/starters.json +7 -0
  69. carefold-0.5.0b1/src/carefold/_content/agents/eye-guide/agent.yaml +29 -0
  70. carefold-0.5.0b1/src/carefold/_content/agents/eye-guide/evals/golden.jsonl +6 -0
  71. carefold-0.5.0b1/src/carefold/_content/agents/eye-guide/metadata.yaml +42 -0
  72. carefold-0.5.0b1/src/carefold/_content/agents/eye-guide/persona.md +5 -0
  73. carefold-0.5.0b1/src/carefold/_content/agents/eye-guide/starters.json +7 -0
  74. carefold-0.5.0b1/src/carefold/_content/agents/formulary-guide/agent.yaml +29 -0
  75. carefold-0.5.0b1/src/carefold/_content/agents/formulary-guide/evals/golden.jsonl +6 -0
  76. carefold-0.5.0b1/src/carefold/_content/agents/formulary-guide/metadata.yaml +41 -0
  77. carefold-0.5.0b1/src/carefold/_content/agents/formulary-guide/persona.md +5 -0
  78. carefold-0.5.0b1/src/carefold/_content/agents/formulary-guide/starters.json +7 -0
  79. carefold-0.5.0b1/src/carefold/_content/agents/gastro-guide/agent.yaml +29 -0
  80. carefold-0.5.0b1/src/carefold/_content/agents/gastro-guide/evals/golden.jsonl +6 -0
  81. carefold-0.5.0b1/src/carefold/_content/agents/gastro-guide/metadata.yaml +41 -0
  82. carefold-0.5.0b1/src/carefold/_content/agents/gastro-guide/persona.md +5 -0
  83. carefold-0.5.0b1/src/carefold/_content/agents/gastro-guide/starters.json +7 -0
  84. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/README.md +30 -0
  85. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/agent.yaml +25 -0
  86. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/evals/golden.jsonl +6 -0
  87. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/metadata.yaml +35 -0
  88. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/persona.md +5 -0
  89. carefold-0.5.0b1/src/carefold/_content/agents/habit-companion/starters.json +7 -0
  90. carefold-0.5.0b1/src/carefold/_content/agents/hematology-guide/agent.yaml +31 -0
  91. carefold-0.5.0b1/src/carefold/_content/agents/hematology-guide/evals/golden.jsonl +6 -0
  92. carefold-0.5.0b1/src/carefold/_content/agents/hematology-guide/metadata.yaml +41 -0
  93. carefold-0.5.0b1/src/carefold/_content/agents/hematology-guide/persona.md +5 -0
  94. carefold-0.5.0b1/src/carefold/_content/agents/hematology-guide/starters.json +7 -0
  95. carefold-0.5.0b1/src/carefold/_content/agents/nephrology-guide/agent.yaml +29 -0
  96. carefold-0.5.0b1/src/carefold/_content/agents/nephrology-guide/evals/golden.jsonl +6 -0
  97. carefold-0.5.0b1/src/carefold/_content/agents/nephrology-guide/metadata.yaml +45 -0
  98. carefold-0.5.0b1/src/carefold/_content/agents/nephrology-guide/persona.md +5 -0
  99. carefold-0.5.0b1/src/carefold/_content/agents/nephrology-guide/starters.json +7 -0
  100. carefold-0.5.0b1/src/carefold/_content/agents/neurology-guide/agent.yaml +28 -0
  101. carefold-0.5.0b1/src/carefold/_content/agents/neurology-guide/evals/golden.jsonl +6 -0
  102. carefold-0.5.0b1/src/carefold/_content/agents/neurology-guide/metadata.yaml +41 -0
  103. carefold-0.5.0b1/src/carefold/_content/agents/neurology-guide/persona.md +5 -0
  104. carefold-0.5.0b1/src/carefold/_content/agents/neurology-guide/starters.json +7 -0
  105. carefold-0.5.0b1/src/carefold/_content/agents/oncology-navigator/agent.yaml +29 -0
  106. carefold-0.5.0b1/src/carefold/_content/agents/oncology-navigator/evals/golden.jsonl +6 -0
  107. carefold-0.5.0b1/src/carefold/_content/agents/oncology-navigator/metadata.yaml +42 -0
  108. carefold-0.5.0b1/src/carefold/_content/agents/oncology-navigator/persona.md +5 -0
  109. carefold-0.5.0b1/src/carefold/_content/agents/oncology-navigator/starters.json +7 -0
  110. carefold-0.5.0b1/src/carefold/_content/agents/oral-health-guide/agent.yaml +31 -0
  111. carefold-0.5.0b1/src/carefold/_content/agents/oral-health-guide/evals/golden.jsonl +6 -0
  112. carefold-0.5.0b1/src/carefold/_content/agents/oral-health-guide/metadata.yaml +41 -0
  113. carefold-0.5.0b1/src/carefold/_content/agents/oral-health-guide/persona.md +5 -0
  114. carefold-0.5.0b1/src/carefold/_content/agents/oral-health-guide/starters.json +7 -0
  115. carefold-0.5.0b1/src/carefold/_content/agents/ortho-guide/agent.yaml +28 -0
  116. carefold-0.5.0b1/src/carefold/_content/agents/ortho-guide/evals/golden.jsonl +6 -0
  117. carefold-0.5.0b1/src/carefold/_content/agents/ortho-guide/metadata.yaml +43 -0
  118. carefold-0.5.0b1/src/carefold/_content/agents/ortho-guide/persona.md +5 -0
  119. carefold-0.5.0b1/src/carefold/_content/agents/ortho-guide/starters.json +7 -0
  120. carefold-0.5.0b1/src/carefold/_content/agents/podiatry-guide/agent.yaml +31 -0
  121. carefold-0.5.0b1/src/carefold/_content/agents/podiatry-guide/evals/golden.jsonl +6 -0
  122. carefold-0.5.0b1/src/carefold/_content/agents/podiatry-guide/metadata.yaml +41 -0
  123. carefold-0.5.0b1/src/carefold/_content/agents/podiatry-guide/persona.md +5 -0
  124. carefold-0.5.0b1/src/carefold/_content/agents/podiatry-guide/starters.json +7 -0
  125. carefold-0.5.0b1/src/carefold/_content/agents/prior-auth-navigator/agent.yaml +28 -0
  126. carefold-0.5.0b1/src/carefold/_content/agents/prior-auth-navigator/evals/golden.jsonl +6 -0
  127. carefold-0.5.0b1/src/carefold/_content/agents/prior-auth-navigator/metadata.yaml +40 -0
  128. carefold-0.5.0b1/src/carefold/_content/agents/prior-auth-navigator/persona.md +5 -0
  129. carefold-0.5.0b1/src/carefold/_content/agents/prior-auth-navigator/starters.json +7 -0
  130. carefold-0.5.0b1/src/carefold/_content/agents/pulmonology-guide/agent.yaml +28 -0
  131. carefold-0.5.0b1/src/carefold/_content/agents/pulmonology-guide/evals/golden.jsonl +6 -0
  132. carefold-0.5.0b1/src/carefold/_content/agents/pulmonology-guide/metadata.yaml +41 -0
  133. carefold-0.5.0b1/src/carefold/_content/agents/pulmonology-guide/persona.md +5 -0
  134. carefold-0.5.0b1/src/carefold/_content/agents/pulmonology-guide/starters.json +7 -0
  135. carefold-0.5.0b1/src/carefold/_content/agents/records-coordinator/agent.yaml +29 -0
  136. carefold-0.5.0b1/src/carefold/_content/agents/records-coordinator/evals/golden.jsonl +6 -0
  137. carefold-0.5.0b1/src/carefold/_content/agents/records-coordinator/metadata.yaml +42 -0
  138. carefold-0.5.0b1/src/carefold/_content/agents/records-coordinator/persona.md +5 -0
  139. carefold-0.5.0b1/src/carefold/_content/agents/records-coordinator/starters.json +7 -0
  140. carefold-0.5.0b1/src/carefold/_content/agents/rheuma-guide/agent.yaml +29 -0
  141. carefold-0.5.0b1/src/carefold/_content/agents/rheuma-guide/evals/golden.jsonl +6 -0
  142. carefold-0.5.0b1/src/carefold/_content/agents/rheuma-guide/metadata.yaml +41 -0
  143. carefold-0.5.0b1/src/carefold/_content/agents/rheuma-guide/persona.md +5 -0
  144. carefold-0.5.0b1/src/carefold/_content/agents/rheuma-guide/starters.json +7 -0
  145. carefold-0.5.0b1/src/carefold/_content/agents/urology-guide/agent.yaml +28 -0
  146. carefold-0.5.0b1/src/carefold/_content/agents/urology-guide/evals/golden.jsonl +6 -0
  147. carefold-0.5.0b1/src/carefold/_content/agents/urology-guide/metadata.yaml +41 -0
  148. carefold-0.5.0b1/src/carefold/_content/agents/urology-guide/persona.md +5 -0
  149. carefold-0.5.0b1/src/carefold/_content/agents/urology-guide/starters.json +7 -0
  150. carefold-0.5.0b1/src/carefold/_content/agents/vascular-guide/agent.yaml +31 -0
  151. carefold-0.5.0b1/src/carefold/_content/agents/vascular-guide/evals/golden.jsonl +6 -0
  152. carefold-0.5.0b1/src/carefold/_content/agents/vascular-guide/metadata.yaml +41 -0
  153. carefold-0.5.0b1/src/carefold/_content/agents/vascular-guide/persona.md +5 -0
  154. carefold-0.5.0b1/src/carefold/_content/agents/vascular-guide/starters.json +7 -0
  155. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/README.md +31 -0
  156. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/agent.yaml +27 -0
  157. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/evals/golden.jsonl +6 -0
  158. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/metadata.yaml +36 -0
  159. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/persona.md +5 -0
  160. carefold-0.5.0b1/src/carefold/_content/agents/visit-steward/starters.json +7 -0
  161. carefold-0.5.0b1/src/carefold/_content/skills/_template/SKILL.md +70 -0
  162. carefold-0.5.0b1/src/carefold/_content/skills/_template/evals/golden.jsonl +5 -0
  163. carefold-0.5.0b1/src/carefold/_content/skills/_template/references/README.md +13 -0
  164. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/SKILL.md +74 -0
  165. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/evals/golden.jsonl +6 -0
  166. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/references/EOB_explanation.md +84 -0
  167. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/references/checklist.md +82 -0
  168. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/references/coinsurance.md +26 -0
  169. carefold-0.5.0b1/src/carefold/_content/skills/benefits-explainer/references/glossary.md +42 -0
  170. carefold-0.5.0b1/src/carefold/_content/skills/cardiology-prep/SKILL.md +76 -0
  171. carefold-0.5.0b1/src/carefold/_content/skills/cardiology-prep/evals/golden.jsonl +6 -0
  172. carefold-0.5.0b1/src/carefold/_content/skills/cardiology-prep/references/cardiology_visit_agenda.md +31 -0
  173. carefold-0.5.0b1/src/carefold/_content/skills/cardiology-prep/references/hypertension_log_template.md +34 -0
  174. carefold-0.5.0b1/src/carefold/_content/skills/cardiology-prep/references/red_flag_warning_protocol.md +20 -0
  175. carefold-0.5.0b1/src/carefold/_content/skills/claims-appeals-prep/SKILL.md +76 -0
  176. carefold-0.5.0b1/src/carefold/_content/skills/claims-appeals-prep/evals/golden.jsonl +6 -0
  177. carefold-0.5.0b1/src/carefold/_content/skills/claims-appeals-prep/references/appeal_letter_structure_and_evidence_checklist.md +49 -0
  178. carefold-0.5.0b1/src/carefold/_content/skills/claims-appeals-prep/references/claim_denial_code_interpreter.md +40 -0
  179. carefold-0.5.0b1/src/carefold/_content/skills/claims-appeals-prep/references/erisa_and_external_appeal_timeline_guide.md +48 -0
  180. carefold-0.5.0b1/src/carefold/_content/skills/clinical-safety-boundaries/SKILL.md +66 -0
  181. carefold-0.5.0b1/src/carefold/_content/skills/clinical-safety-boundaries/evals/golden.jsonl +5 -0
  182. carefold-0.5.0b1/src/carefold/_content/skills/clinical-safety-boundaries/references/non_clinical_boundaries.md +20 -0
  183. carefold-0.5.0b1/src/carefold/_content/skills/clinical-safety-boundaries/references/prescribing_and_dosage_safeguards.md +18 -0
  184. carefold-0.5.0b1/src/carefold/_content/skills/derma-prep/SKILL.md +77 -0
  185. carefold-0.5.0b1/src/carefold/_content/skills/derma-prep/evals/golden.jsonl +6 -0
  186. carefold-0.5.0b1/src/carefold/_content/skills/derma-prep/references/dermatology_body_map_worksheet.md +26 -0
  187. carefold-0.5.0b1/src/carefold/_content/skills/derma-prep/references/lesion_abcde_tracking_guide.md +23 -0
  188. carefold-0.5.0b1/src/carefold/_content/skills/derma-prep/references/rash_and_flareup_documentation_protocol.md +34 -0
  189. carefold-0.5.0b1/src/carefold/_content/skills/emergency-red-flags/SKILL.md +66 -0
  190. carefold-0.5.0b1/src/carefold/_content/skills/emergency-red-flags/evals/golden.jsonl +5 -0
  191. carefold-0.5.0b1/src/carefold/_content/skills/emergency-red-flags/references/acute_red_flags_directory.md +27 -0
  192. carefold-0.5.0b1/src/carefold/_content/skills/emergency-red-flags/references/emergency_escalation_protocol.md +13 -0
  193. carefold-0.5.0b1/src/carefold/_content/skills/endocrinology-prep/SKILL.md +77 -0
  194. carefold-0.5.0b1/src/carefold/_content/skills/endocrinology-prep/evals/golden.jsonl +6 -0
  195. carefold-0.5.0b1/src/carefold/_content/skills/endocrinology-prep/references/cgm_and_glucose_log_summary.md +28 -0
  196. carefold-0.5.0b1/src/carefold/_content/skills/endocrinology-prep/references/endocrinology_visit_checklist.md +24 -0
  197. carefold-0.5.0b1/src/carefold/_content/skills/endocrinology-prep/references/thyroid_and_metabolic_question_bank.md +38 -0
  198. carefold-0.5.0b1/src/carefold/_content/skills/ent-prep/SKILL.md +76 -0
  199. carefold-0.5.0b1/src/carefold/_content/skills/ent-prep/evals/golden.jsonl +6 -0
  200. carefold-0.5.0b1/src/carefold/_content/skills/ent-prep/references/sinusitis_and_nasal_symptom_tracker.md +40 -0
  201. carefold-0.5.0b1/src/carefold/_content/skills/ent-prep/references/tinnitus_and_hearing_test_prep_guide.md +32 -0
  202. carefold-0.5.0b1/src/carefold/_content/skills/ent-prep/references/vertigo_and_dizziness_episode_log.md +35 -0
  203. carefold-0.5.0b1/src/carefold/_content/skills/formulary-navigation/SKILL.md +76 -0
  204. carefold-0.5.0b1/src/carefold/_content/skills/formulary-navigation/evals/golden.jsonl +6 -0
  205. carefold-0.5.0b1/src/carefold/_content/skills/formulary-navigation/references/copay_assistance_and_foundation_directory.md +41 -0
  206. carefold-0.5.0b1/src/carefold/_content/skills/formulary-navigation/references/formulary_tier_and_cost_breakdown_guide.md +27 -0
  207. carefold-0.5.0b1/src/carefold/_content/skills/formulary-navigation/references/generic_and_therapeutic_alternative_discussion_agenda.md +37 -0
  208. carefold-0.5.0b1/src/carefold/_content/skills/gastro-prep/SKILL.md +76 -0
  209. carefold-0.5.0b1/src/carefold/_content/skills/gastro-prep/evals/golden.jsonl +6 -0
  210. carefold-0.5.0b1/src/carefold/_content/skills/gastro-prep/references/colonoscopy_endoscopy_prep_checklist.md +24 -0
  211. carefold-0.5.0b1/src/carefold/_content/skills/gastro-prep/references/gi_consultation_questions.md +18 -0
  212. carefold-0.5.0b1/src/carefold/_content/skills/gastro-prep/references/ibs_ibd_food_symptom_journal.md +26 -0
  213. carefold-0.5.0b1/src/carefold/_content/skills/habit-checkin/SKILL.md +76 -0
  214. carefold-0.5.0b1/src/carefold/_content/skills/habit-checkin/evals/golden.jsonl +6 -0
  215. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/SKILL.md +79 -0
  216. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/evals/golden.jsonl +8 -0
  217. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/references/anemia_symptom_log.md +33 -0
  218. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/references/hematology_visit_agenda.md +55 -0
  219. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/references/infusion_followup_log.md +31 -0
  220. carefold-0.5.0b1/src/carefold/_content/skills/hematology-prep/references/red_flag_warning_protocol.md +24 -0
  221. carefold-0.5.0b1/src/carefold/_content/skills/nephrology-prep/SKILL.md +76 -0
  222. carefold-0.5.0b1/src/carefold/_content/skills/nephrology-prep/evals/golden.jsonl +6 -0
  223. carefold-0.5.0b1/src/carefold/_content/skills/nephrology-prep/references/fluid_and_sodium_tracking_worksheet.md +35 -0
  224. carefold-0.5.0b1/src/carefold/_content/skills/nephrology-prep/references/nephrology_appointment_agenda.md +27 -0
  225. carefold-0.5.0b1/src/carefold/_content/skills/nephrology-prep/references/renal_lab_interpretation_guide.md +26 -0
  226. carefold-0.5.0b1/src/carefold/_content/skills/neurology-prep/SKILL.md +77 -0
  227. carefold-0.5.0b1/src/carefold/_content/skills/neurology-prep/evals/golden.jsonl +6 -0
  228. carefold-0.5.0b1/src/carefold/_content/skills/neurology-prep/references/cognitive_symptom_timeline.md +25 -0
  229. carefold-0.5.0b1/src/carefold/_content/skills/neurology-prep/references/migraine_headache_diary_template.md +28 -0
  230. carefold-0.5.0b1/src/carefold/_content/skills/neurology-prep/references/neurological_exam_prep_checklist.md +23 -0
  231. carefold-0.5.0b1/src/carefold/_content/skills/oncology-prep/SKILL.md +76 -0
  232. carefold-0.5.0b1/src/carefold/_content/skills/oncology-prep/evals/golden.jsonl +6 -0
  233. carefold-0.5.0b1/src/carefold/_content/skills/oncology-prep/references/chemotherapy_side_effect_tracker.md +51 -0
  234. carefold-0.5.0b1/src/carefold/_content/skills/oncology-prep/references/clinical_trial_discussion_checklist.md +31 -0
  235. carefold-0.5.0b1/src/carefold/_content/skills/oncology-prep/references/multidisciplinary_tumor_board_agenda.md +37 -0
  236. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/SKILL.md +78 -0
  237. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/evals/golden.jsonl +8 -0
  238. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/references/daily_oral_care_log.md +31 -0
  239. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/references/oral_health_visit_agenda.md +49 -0
  240. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/references/red_flag_warning_protocol.md +22 -0
  241. carefold-0.5.0b1/src/carefold/_content/skills/oral-health-prep/references/symptom_tracking_log.md +31 -0
  242. carefold-0.5.0b1/src/carefold/_content/skills/ortho-prep/SKILL.md +77 -0
  243. carefold-0.5.0b1/src/carefold/_content/skills/ortho-prep/evals/golden.jsonl +6 -0
  244. carefold-0.5.0b1/src/carefold/_content/skills/ortho-prep/references/joint_mobility_and_pain_tracker.md +42 -0
  245. carefold-0.5.0b1/src/carefold/_content/skills/ortho-prep/references/orthopedic_surgery_consultation_guide.md +28 -0
  246. carefold-0.5.0b1/src/carefold/_content/skills/ortho-prep/references/physical_therapy_progress_log.md +26 -0
  247. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/SKILL.md +78 -0
  248. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/evals/golden.jsonl +8 -0
  249. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/references/diabetic_foot_check_log.md +31 -0
  250. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/references/gait_mobility_log.md +31 -0
  251. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/references/podiatry_visit_agenda.md +57 -0
  252. carefold-0.5.0b1/src/carefold/_content/skills/podiatry-prep/references/red_flag_warning_protocol.md +21 -0
  253. carefold-0.5.0b1/src/carefold/_content/skills/preventive-care/SKILL.md +84 -0
  254. carefold-0.5.0b1/src/carefold/_content/skills/preventive-care/evals/golden.jsonl +6 -0
  255. carefold-0.5.0b1/src/carefold/_content/skills/preventive-care/references/adult_uspstf.yaml +177 -0
  256. carefold-0.5.0b1/src/carefold/_content/skills/preventive-care/references/pediatric_immunisations.yaml +303 -0
  257. carefold-0.5.0b1/src/carefold/_content/skills/prior-auth-prep/SKILL.md +76 -0
  258. carefold-0.5.0b1/src/carefold/_content/skills/prior-auth-prep/evals/golden.jsonl +6 -0
  259. carefold-0.5.0b1/src/carefold/_content/skills/prior-auth-prep/references/peer_to_peer_preparation_sheet.md +35 -0
  260. carefold-0.5.0b1/src/carefold/_content/skills/prior-auth-prep/references/prior_authorization_checklist.md +30 -0
  261. carefold-0.5.0b1/src/carefold/_content/skills/prior-auth-prep/references/step_therapy_appeal_workflow.md +30 -0
  262. carefold-0.5.0b1/src/carefold/_content/skills/pulmonology-prep/SKILL.md +76 -0
  263. carefold-0.5.0b1/src/carefold/_content/skills/pulmonology-prep/evals/golden.jsonl +6 -0
  264. carefold-0.5.0b1/src/carefold/_content/skills/pulmonology-prep/references/asthma_copd_action_plan_guide.md +31 -0
  265. carefold-0.5.0b1/src/carefold/_content/skills/pulmonology-prep/references/dyspnea_symptom_tracker.md +34 -0
  266. carefold-0.5.0b1/src/carefold/_content/skills/pulmonology-prep/references/inhaler_technique_and_adherence_checklist.md +23 -0
  267. carefold-0.5.0b1/src/carefold/_content/skills/records-management/SKILL.md +76 -0
  268. carefold-0.5.0b1/src/carefold/_content/skills/records-management/evals/golden.jsonl +6 -0
  269. carefold-0.5.0b1/src/carefold/_content/skills/records-management/references/hipaa_records_request_template.md +60 -0
  270. carefold-0.5.0b1/src/carefold/_content/skills/records-management/references/longitudinal_lab_trend_worksheet.md +38 -0
  271. carefold-0.5.0b1/src/carefold/_content/skills/records-management/references/multiprovider_clinical_dossier_structure.md +37 -0
  272. carefold-0.5.0b1/src/carefold/_content/skills/rheuma-prep/SKILL.md +76 -0
  273. carefold-0.5.0b1/src/carefold/_content/skills/rheuma-prep/evals/golden.jsonl +6 -0
  274. carefold-0.5.0b1/src/carefold/_content/skills/rheuma-prep/references/autoimmune_flare_log_template.md +51 -0
  275. carefold-0.5.0b1/src/carefold/_content/skills/rheuma-prep/references/biologic_therapy_monitoring_guide.md +36 -0
  276. carefold-0.5.0b1/src/carefold/_content/skills/rheuma-prep/references/morning_stiffness_and_fatigue_timer.md +38 -0
  277. carefold-0.5.0b1/src/carefold/_content/skills/urology-prep/SKILL.md +76 -0
  278. carefold-0.5.0b1/src/carefold/_content/skills/urology-prep/evals/golden.jsonl +6 -0
  279. carefold-0.5.0b1/src/carefold/_content/skills/urology-prep/references/prostate_health_and_psa_discussion_guide.md +32 -0
  280. carefold-0.5.0b1/src/carefold/_content/skills/urology-prep/references/urology_appointment_checklist.md +36 -0
  281. carefold-0.5.0b1/src/carefold/_content/skills/urology-prep/references/voiding_diary_and_volume_chart.md +41 -0
  282. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/SKILL.md +78 -0
  283. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/evals/golden.jsonl +8 -0
  284. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/references/claudication_log_template.md +31 -0
  285. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/references/leg_swelling_log.md +31 -0
  286. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/references/red_flag_warning_protocol.md +21 -0
  287. carefold-0.5.0b1/src/carefold/_content/skills/vascular-prep/references/vascular_visit_agenda.md +49 -0
  288. carefold-0.5.0b1/src/carefold/_content/skills/vision-prep/SKILL.md +76 -0
  289. carefold-0.5.0b1/src/carefold/_content/skills/vision-prep/evals/golden.jsonl +6 -0
  290. carefold-0.5.0b1/src/carefold/_content/skills/vision-prep/references/amsler_grid_and_vision_change_log.md +38 -0
  291. carefold-0.5.0b1/src/carefold/_content/skills/vision-prep/references/cataract_and_eye_surgery_prep_guide.md +39 -0
  292. carefold-0.5.0b1/src/carefold/_content/skills/vision-prep/references/glaucoma_pressure_and_drop_tracker.md +45 -0
  293. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/SKILL.md +89 -0
  294. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/evals/golden.jsonl +6 -0
  295. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/appointment_questions.md +26 -0
  296. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/asthma_checklist.md +27 -0
  297. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/checklist.md +25 -0
  298. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/coinsurance_vs_copay.md +26 -0
  299. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/hydration_checklist.md +27 -0
  300. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/hypertension_appointment_questions.md +26 -0
  301. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/questions_guide.md +34 -0
  302. carefold-0.5.0b1/src/carefold/_content/skills/visit-prep/references/symptom_log_template.md +80 -0
  303. carefold-0.5.0b1/src/carefold/agents/__init__.py +16 -0
  304. carefold-0.5.0b1/src/carefold/agents/registry.py +284 -0
  305. carefold-0.5.0b1/src/carefold/api/__init__.py +16 -0
  306. carefold-0.5.0b1/src/carefold/api/activity.py +189 -0
  307. carefold-0.5.0b1/src/carefold/api/admin.py +392 -0
  308. carefold-0.5.0b1/src/carefold/api/agents.py +948 -0
  309. carefold-0.5.0b1/src/carefold/api/appointments.py +30 -0
  310. carefold-0.5.0b1/src/carefold/api/approvals.py +417 -0
  311. carefold-0.5.0b1/src/carefold/api/attachments.py +675 -0
  312. carefold-0.5.0b1/src/carefold/api/audit.py +212 -0
  313. carefold-0.5.0b1/src/carefold/api/auth.py +332 -0
  314. carefold-0.5.0b1/src/carefold/api/chat.py +369 -0
  315. carefold-0.5.0b1/src/carefold/api/companion.py +30 -0
  316. carefold-0.5.0b1/src/carefold/api/connections.py +703 -0
  317. carefold-0.5.0b1/src/carefold/api/coordinated.py +30 -0
  318. carefold-0.5.0b1/src/carefold/api/deps.py +32 -0
  319. carefold-0.5.0b1/src/carefold/api/email_drafts.py +480 -0
  320. carefold-0.5.0b1/src/carefold/api/handover.py +30 -0
  321. carefold-0.5.0b1/src/carefold/api/health.py +133 -0
  322. carefold-0.5.0b1/src/carefold/api/i18n.py +134 -0
  323. carefold-0.5.0b1/src/carefold/api/imports.py +30 -0
  324. carefold-0.5.0b1/src/carefold/api/memory.py +458 -0
  325. carefold-0.5.0b1/src/carefold/api/models.py +154 -0
  326. carefold-0.5.0b1/src/carefold/api/notes.py +1318 -0
  327. carefold-0.5.0b1/src/carefold/api/prep_pack.py +30 -0
  328. carefold-0.5.0b1/src/carefold/api/preventive.py +30 -0
  329. carefold-0.5.0b1/src/carefold/api/profiles.py +1388 -0
  330. carefold-0.5.0b1/src/carefold/api/reminders.py +829 -0
  331. carefold-0.5.0b1/src/carefold/api/router.py +134 -0
  332. carefold-0.5.0b1/src/carefold/api/routines.py +376 -0
  333. carefold-0.5.0b1/src/carefold/api/school_forms.py +30 -0
  334. carefold-0.5.0b1/src/carefold/api/search.py +131 -0
  335. carefold-0.5.0b1/src/carefold/api/skills.py +762 -0
  336. carefold-0.5.0b1/src/carefold/api/vitals.py +30 -0
  337. carefold-0.5.0b1/src/carefold/audit/__init__.py +30 -0
  338. carefold-0.5.0b1/src/carefold/audit/hash_chain.py +258 -0
  339. carefold-0.5.0b1/src/carefold/audit/logger.py +418 -0
  340. carefold-0.5.0b1/src/carefold/audit/redaction.py +38 -0
  341. carefold-0.5.0b1/src/carefold/clinical/__init__.py +122 -0
  342. carefold-0.5.0b1/src/carefold/clinical/activity.py +449 -0
  343. carefold-0.5.0b1/src/carefold/clinical/appointments.py +374 -0
  344. carefold-0.5.0b1/src/carefold/clinical/bmi.py +204 -0
  345. carefold-0.5.0b1/src/carefold/clinical/email_drafts.py +25 -0
  346. carefold-0.5.0b1/src/carefold/clinical/handover.py +475 -0
  347. carefold-0.5.0b1/src/carefold/clinical/notes.py +234 -0
  348. carefold-0.5.0b1/src/carefold/clinical/prep_pack.py +620 -0
  349. carefold-0.5.0b1/src/carefold/clinical/preventive.py +1016 -0
  350. carefold-0.5.0b1/src/carefold/clinical/reminders.py +23 -0
  351. carefold-0.5.0b1/src/carefold/clinical/routines.py +20 -0
  352. carefold-0.5.0b1/src/carefold/clinical/school_forms.py +687 -0
  353. carefold-0.5.0b1/src/carefold/clinical/school_ics.py +507 -0
  354. carefold-0.5.0b1/src/carefold/clinical/smart_scheduling.py +332 -0
  355. carefold-0.5.0b1/src/carefold/clinical/undo.py +562 -0
  356. carefold-0.5.0b1/src/carefold/clinical/vitals.py +434 -0
  357. carefold-0.5.0b1/src/carefold/companion/__init__.py +50 -0
  358. carefold-0.5.0b1/src/carefold/companion/pairing.py +483 -0
  359. carefold-0.5.0b1/src/carefold/companion/sync.py +888 -0
  360. carefold-0.5.0b1/src/carefold/config.py +332 -0
  361. carefold-0.5.0b1/src/carefold/conformance/__init__.py +27 -0
  362. carefold-0.5.0b1/src/carefold/conformance/fixtures/__init__.py +28 -0
  363. carefold-0.5.0b1/src/carefold/conformance/fixtures/health_fixture.py +125 -0
  364. carefold-0.5.0b1/src/carefold/conformance/fixtures/synthetic_finance.py +140 -0
  365. carefold-0.5.0b1/src/carefold/conformance/layers/__init__.py +55 -0
  366. carefold-0.5.0b1/src/carefold/conformance/layers/base.py +40 -0
  367. carefold-0.5.0b1/src/carefold/conformance/layers/layer_01_orm.py +144 -0
  368. carefold-0.5.0b1/src/carefold/conformance/layers/layer_02_cas.py +121 -0
  369. carefold-0.5.0b1/src/carefold/conformance/layers/layer_03_fts5.py +104 -0
  370. carefold-0.5.0b1/src/carefold/conformance/layers/layer_04_memory.py +103 -0
  371. carefold-0.5.0b1/src/carefold/conformance/layers/layer_05_vault.py +133 -0
  372. carefold-0.5.0b1/src/carefold/conformance/layers/layer_06_tool_gate.py +95 -0
  373. carefold-0.5.0b1/src/carefold/conformance/layers/layer_07_prompt.py +66 -0
  374. carefold-0.5.0b1/src/carefold/conformance/layers/layer_08_api.py +95 -0
  375. carefold-0.5.0b1/src/carefold/conformance/layers/layer_09_export.py +73 -0
  376. carefold-0.5.0b1/src/carefold/conformance/layers/layer_10_audit.py +109 -0
  377. carefold-0.5.0b1/src/carefold/conformance/layers/layer_11_redaction.py +76 -0
  378. carefold-0.5.0b1/src/carefold/conformance/models.py +58 -0
  379. carefold-0.5.0b1/src/carefold/conformance/protocol.py +37 -0
  380. carefold-0.5.0b1/src/carefold/conformance/runner.py +193 -0
  381. carefold-0.5.0b1/src/carefold/connectors/__init__.py +58 -0
  382. carefold-0.5.0b1/src/carefold/connectors/calendar.py +428 -0
  383. carefold-0.5.0b1/src/carefold/connectors/ehr_smart_v2.py +604 -0
  384. carefold-0.5.0b1/src/carefold/connectors/epic_smart.py +352 -0
  385. carefold-0.5.0b1/src/carefold/connectors/gmail_mcp.py +762 -0
  386. carefold-0.5.0b1/src/carefold/connectors/lifecycle.py +859 -0
  387. carefold-0.5.0b1/src/carefold/connectors/manifests/athenahealth.yaml +76 -0
  388. carefold-0.5.0b1/src/carefold/connectors/manifests/caldav.yaml +66 -0
  389. carefold-0.5.0b1/src/carefold/connectors/manifests/cms_blue_button.yaml +65 -0
  390. carefold-0.5.0b1/src/carefold/connectors/manifests/epic_smart.yaml +101 -0
  391. carefold-0.5.0b1/src/carefold/connectors/manifests/google_calendar.yaml +70 -0
  392. carefold-0.5.0b1/src/carefold/connectors/manifests/google_health.yaml +62 -0
  393. carefold-0.5.0b1/src/carefold/connectors/manifests/google_workspace_gmail.yaml +91 -0
  394. carefold-0.5.0b1/src/carefold/connectors/manifests/microsoft_graph.yaml +64 -0
  395. carefold-0.5.0b1/src/carefold/connectors/manifests/oracle_health.yaml +76 -0
  396. carefold-0.5.0b1/src/carefold/connectors/manifests/oura.yaml +60 -0
  397. carefold-0.5.0b1/src/carefold/connectors/manifests/withings.yaml +62 -0
  398. carefold-0.5.0b1/src/carefold/connectors/manifests/zocdoc.yaml +71 -0
  399. carefold-0.5.0b1/src/carefold/connectors/mcp_remote.py +441 -0
  400. carefold-0.5.0b1/src/carefold/connectors/oauth.py +643 -0
  401. carefold-0.5.0b1/src/carefold/connectors/relay.py +249 -0
  402. carefold-0.5.0b1/src/carefold/connectors/starters/__init__.py +30 -0
  403. carefold-0.5.0b1/src/carefold/connectors/starters/calendar.py +428 -0
  404. carefold-0.5.0b1/src/carefold/connectors/starters/ehr_smart_v2.py +604 -0
  405. carefold-0.5.0b1/src/carefold/connectors/starters/epic_smart.py +352 -0
  406. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/athenahealth.yaml +76 -0
  407. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/caldav.yaml +66 -0
  408. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/cms_blue_button.yaml +65 -0
  409. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/epic_smart.yaml +101 -0
  410. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/google_calendar.yaml +70 -0
  411. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/google_health.yaml +62 -0
  412. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/google_workspace_gmail.yaml +91 -0
  413. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/microsoft_graph.yaml +64 -0
  414. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/oracle_health.yaml +76 -0
  415. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/oura.yaml +60 -0
  416. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/withings.yaml +62 -0
  417. carefold-0.5.0b1/src/carefold/connectors/starters/manifests/zocdoc.yaml +71 -0
  418. carefold-0.5.0b1/src/carefold/connectors/starters/wearables_v2.py +830 -0
  419. carefold-0.5.0b1/src/carefold/connectors/starters/withings.py +412 -0
  420. carefold-0.5.0b1/src/carefold/connectors/starters/zocdoc.py +350 -0
  421. carefold-0.5.0b1/src/carefold/connectors/sync.py +590 -0
  422. carefold-0.5.0b1/src/carefold/connectors/wearables_v2.py +830 -0
  423. carefold-0.5.0b1/src/carefold/connectors/withings.py +412 -0
  424. carefold-0.5.0b1/src/carefold/connectors/zocdoc.py +350 -0
  425. carefold-0.5.0b1/src/carefold/constants/__init__.py +197 -0
  426. carefold-0.5.0b1/src/carefold/constants/agents.py +145 -0
  427. carefold-0.5.0b1/src/carefold/constants/api.py +205 -0
  428. carefold-0.5.0b1/src/carefold/constants/defaults.py +152 -0
  429. carefold-0.5.0b1/src/carefold/constants/extraction.py +128 -0
  430. carefold-0.5.0b1/src/carefold/constants/models.py +117 -0
  431. carefold-0.5.0b1/src/carefold/constants/paths.py +117 -0
  432. carefold-0.5.0b1/src/carefold/db/__init__.py +110 -0
  433. carefold-0.5.0b1/src/carefold/db/base.py +26 -0
  434. carefold-0.5.0b1/src/carefold/db/health_migrations/__init__.py +12 -0
  435. carefold-0.5.0b1/src/carefold/db/health_migrations/env.py +111 -0
  436. carefold-0.5.0b1/src/carefold/db/health_migrations/versions/health_0001_baseline.py +280 -0
  437. carefold-0.5.0b1/src/carefold/db/migrations/env.py +132 -0
  438. carefold-0.5.0b1/src/carefold/db/migrations/script.py.mako +41 -0
  439. carefold-0.5.0b1/src/carefold/db/migrations/versions/0001_baseline_schema.py +352 -0
  440. carefold-0.5.0b1/src/carefold/db/migrations/versions/0002_autonomy_foundations.py +186 -0
  441. carefold-0.5.0b1/src/carefold/db/migrations/versions/0003_household_profiles_and_audit.py +147 -0
  442. carefold-0.5.0b1/src/carefold/db/migrations/versions/0004_policy_gate_and_vault.py +234 -0
  443. carefold-0.5.0b1/src/carefold/db/migrations/versions/0005_clinical_domain_records.py +196 -0
  444. carefold-0.5.0b1/src/carefold/db/migrations/versions/0006_preventive_and_school_forms.py +137 -0
  445. carefold-0.5.0b1/src/carefold/db/migrations/versions/0007_connectors_and_consent.py +161 -0
  446. carefold-0.5.0b1/src/carefold/db/migrations/versions/0008_routines_mcp_and_drafts.py +229 -0
  447. carefold-0.5.0b1/src/carefold/db/migrations/versions/0009_companion_and_handover.py +103 -0
  448. carefold-0.5.0b1/src/carefold/db/migrations/versions/0010_i18n_and_locale_storage.py +165 -0
  449. carefold-0.5.0b1/src/carefold/db/migrations/versions/0011_scopes.py +282 -0
  450. carefold-0.5.0b1/src/carefold/db/models.py +106 -0
  451. carefold-0.5.0b1/src/carefold/db/scoped_session.py +185 -0
  452. carefold-0.5.0b1/src/carefold/db/seeding.py +308 -0
  453. carefold-0.5.0b1/src/carefold/db/session.py +730 -0
  454. carefold-0.5.0b1/src/carefold/dossiers/__init__.py +20 -0
  455. carefold-0.5.0b1/src/carefold/dossiers/clinical_visit.py +46 -0
  456. carefold-0.5.0b1/src/carefold/dossiers/insurance_benefits.py +54 -0
  457. carefold-0.5.0b1/src/carefold/engine/__init__.py +40 -0
  458. carefold-0.5.0b1/src/carefold/engine/agent_factory.py +125 -0
  459. carefold-0.5.0b1/src/carefold/engine/builder.py +899 -0
  460. carefold-0.5.0b1/src/carefold/engine/graph.py +575 -0
  461. carefold-0.5.0b1/src/carefold/engine/job_runner.py +1370 -0
  462. carefold-0.5.0b1/src/carefold/engine/prompt_builder.py +118 -0
  463. carefold-0.5.0b1/src/carefold/engine/runner.py +91 -0
  464. carefold-0.5.0b1/src/carefold/engine/safety_policy.py +153 -0
  465. carefold-0.5.0b1/src/carefold/engine/service.py +1342 -0
  466. carefold-0.5.0b1/src/carefold/engine/tool_exec.py +30 -0
  467. carefold-0.5.0b1/src/carefold/engine/tool_registry.py +1572 -0
  468. carefold-0.5.0b1/src/carefold/evals/golden.jsonl +43 -0
  469. carefold-0.5.0b1/src/carefold/i18n/__init__.py +54 -0
  470. carefold-0.5.0b1/src/carefold/i18n/catalog.py +366 -0
  471. carefold-0.5.0b1/src/carefold/i18n/locale.py +222 -0
  472. carefold-0.5.0b1/src/carefold/importers/__init__.py +72 -0
  473. carefold-0.5.0b1/src/carefold/importers/apple_health.py +683 -0
  474. carefold-0.5.0b1/src/carefold/importers/ccda.py +438 -0
  475. carefold-0.5.0b1/src/carefold/importers/fhir_bundle.py +326 -0
  476. carefold-0.5.0b1/src/carefold/importers/fhir_converter.py +507 -0
  477. carefold-0.5.0b1/src/carefold/importers/iis_pdf.py +308 -0
  478. carefold-0.5.0b1/src/carefold/importers/service.py +538 -0
  479. carefold-0.5.0b1/src/carefold/importers/smart_health_card.py +683 -0
  480. carefold-0.5.0b1/src/carefold/loaders/__init__.py +56 -0
  481. carefold-0.5.0b1/src/carefold/loaders/agent_loader.py +499 -0
  482. carefold-0.5.0b1/src/carefold/loaders/context_loader.py +146 -0
  483. carefold-0.5.0b1/src/carefold/loaders/frontmatter.py +85 -0
  484. carefold-0.5.0b1/src/carefold/loaders/skill_loader.py +326 -0
  485. carefold-0.5.0b1/src/carefold/loaders/union.py +64 -0
  486. carefold-0.5.0b1/src/carefold/logging.py +127 -0
  487. carefold-0.5.0b1/src/carefold/main.py +169 -0
  488. carefold-0.5.0b1/src/carefold/middleware/__init__.py +30 -0
  489. carefold-0.5.0b1/src/carefold/middleware/clinical_safety.py +231 -0
  490. carefold-0.5.0b1/src/carefold/middleware/skills.py +152 -0
  491. carefold-0.5.0b1/src/carefold/migration/__init__.py +16 -0
  492. carefold-0.5.0b1/src/carefold/migration/runtime_migrator.py +579 -0
  493. carefold-0.5.0b1/src/carefold/model/__init__.py +98 -0
  494. carefold-0.5.0b1/src/carefold/model/client.py +168 -0
  495. carefold-0.5.0b1/src/carefold/model/egress.py +295 -0
  496. carefold-0.5.0b1/src/carefold/model/factory.py +511 -0
  497. carefold-0.5.0b1/src/carefold/model/providers/__init__.py +117 -0
  498. carefold-0.5.0b1/src/carefold/model/providers/anthropic_provider.py +191 -0
  499. carefold-0.5.0b1/src/carefold/model/providers/base.py +119 -0
  500. carefold-0.5.0b1/src/carefold/model/providers/custom_provider.py +207 -0
  501. carefold-0.5.0b1/src/carefold/model/providers/google_provider.py +179 -0
  502. carefold-0.5.0b1/src/carefold/model/providers/ollama_provider.py +231 -0
  503. carefold-0.5.0b1/src/carefold/model/providers/openai_provider.py +190 -0
  504. carefold-0.5.0b1/src/carefold/model/types.py +68 -0
  505. carefold-0.5.0b1/src/carefold/models/__init__.py +32 -0
  506. carefold-0.5.0b1/src/carefold/models/health.py +856 -0
  507. carefold-0.5.0b1/src/carefold/pack.yaml +161 -0
  508. carefold-0.5.0b1/src/carefold/packaging/__init__.py +28 -0
  509. carefold-0.5.0b1/src/carefold/packaging/service.py +178 -0
  510. carefold-0.5.0b1/src/carefold/platform/__init__.py +62 -0
  511. carefold-0.5.0b1/src/carefold/platform/email_drafts.py +295 -0
  512. carefold-0.5.0b1/src/carefold/platform/reminders.py +567 -0
  513. carefold-0.5.0b1/src/carefold/platform/routines.py +743 -0
  514. carefold-0.5.0b1/src/carefold/resources/__init__.py +31 -0
  515. carefold-0.5.0b1/src/carefold/resources/db_tools.yaml +506 -0
  516. carefold-0.5.0b1/src/carefold/resources/disclaimers.yaml +54 -0
  517. carefold-0.5.0b1/src/carefold/resources/errors.yaml +189 -0
  518. carefold-0.5.0b1/src/carefold/resources/loader.py +557 -0
  519. carefold-0.5.0b1/src/carefold/resources/locales/ar-SA.json +371 -0
  520. carefold-0.5.0b1/src/carefold/resources/locales/en-US.json +371 -0
  521. carefold-0.5.0b1/src/carefold/resources/locales/es-ES.json +371 -0
  522. carefold-0.5.0b1/src/carefold/resources/locales/fr-FR.json +371 -0
  523. carefold-0.5.0b1/src/carefold/resources/locales/hi-IN.json +371 -0
  524. carefold-0.5.0b1/src/carefold/resources/prompts/extraction/clinical_visit.md +7 -0
  525. carefold-0.5.0b1/src/carefold/resources/prompts/extraction/generic_document.md +4 -0
  526. carefold-0.5.0b1/src/carefold/resources/prompts/extraction/grounding_validation.md +1 -0
  527. carefold-0.5.0b1/src/carefold/resources/prompts/extraction/insurance_benefits.md +8 -0
  528. carefold-0.5.0b1/src/carefold/resources/prompts/orchestrator/system_prompt.md +29 -0
  529. carefold-0.5.0b1/src/carefold/resources/prompts/reflection/system_prompt.md +9 -0
  530. carefold-0.5.0b1/src/carefold/resources/prompts/safety/safety_preamble.md +19 -0
  531. carefold-0.5.0b1/src/carefold/resources/prompts/suggestions/generation.md +18 -0
  532. carefold-0.5.0b1/src/carefold/resources/prompts/suggestions/suggestions.yaml +328 -0
  533. carefold-0.5.0b1/src/carefold/resources/prompts/system/capabilities_section_header.md +1 -0
  534. carefold-0.5.0b1/src/carefold/resources/prompts/system/persona_section_header.md +1 -0
  535. carefold-0.5.0b1/src/carefold/resources/prompts/system/scaffold.yaml +6 -0
  536. carefold-0.5.0b1/src/carefold/resources/prompts/system/skill_section_format.md +2 -0
  537. carefold-0.5.0b1/src/carefold/resources/prompts/system/skills_section_header.md +1 -0
  538. carefold-0.5.0b1/src/carefold/resources/prompts/system/tools_summary_none.md +1 -0
  539. carefold-0.5.0b1/src/carefold/resources/prompts/system/tools_summary_sandboxed.md +1 -0
  540. carefold-0.5.0b1/src/carefold/resources/prompts/templates/agent_execution_prompt.hbs +70 -0
  541. carefold-0.5.0b1/src/carefold/resources/prompts/templates/orchestrator_routing_prompt.hbs +12 -0
  542. carefold-0.5.0b1/src/carefold/resources/prompts/templates/system_prompt.hbs +30 -0
  543. carefold-0.5.0b1/src/carefold/resources/prompts.yaml +47 -0
  544. carefold-0.5.0b1/src/carefold/resources/refusal_patterns.yaml +350 -0
  545. carefold-0.5.0b1/src/carefold/resources/routing_patterns.yaml +140 -0
  546. carefold-0.5.0b1/src/carefold/resources/vitals_thresholds.yaml +112 -0
  547. carefold-0.5.0b1/src/carefold/routers/__init__.py +57 -0
  548. carefold-0.5.0b1/src/carefold/routers/appointments.py +733 -0
  549. carefold-0.5.0b1/src/carefold/routers/companion.py +483 -0
  550. carefold-0.5.0b1/src/carefold/routers/coordinated.py +411 -0
  551. carefold-0.5.0b1/src/carefold/routers/handover.py +217 -0
  552. carefold-0.5.0b1/src/carefold/routers/imports.py +296 -0
  553. carefold-0.5.0b1/src/carefold/routers/prep_pack.py +218 -0
  554. carefold-0.5.0b1/src/carefold/routers/preventive.py +327 -0
  555. carefold-0.5.0b1/src/carefold/routers/school_forms.py +453 -0
  556. carefold-0.5.0b1/src/carefold/routers/vitals.py +676 -0
  557. carefold-0.5.0b1/src/carefold/safety/__init__.py +47 -0
  558. carefold-0.5.0b1/src/carefold/safety/classifier.py +241 -0
  559. carefold-0.5.0b1/src/carefold/safety/emergency.py +184 -0
  560. carefold-0.5.0b1/src/carefold/safety/policy.py +86 -0
  561. carefold-0.5.0b1/src/carefold/safety/prompt.py +53 -0
  562. carefold-0.5.0b1/src/carefold/safety/template.py +52 -0
  563. carefold-0.5.0b1/src/carefold/safety/vitals.py +561 -0
  564. carefold-0.5.0b1/src/carefold/schemas/__init__.py +34 -0
  565. carefold-0.5.0b1/src/carefold/schemas/activity.py +30 -0
  566. carefold-0.5.0b1/src/carefold/schemas/audit.py +30 -0
  567. carefold-0.5.0b1/src/carefold/schemas/chat.py +30 -0
  568. carefold-0.5.0b1/src/carefold/schemas/health.py +30 -0
  569. carefold-0.5.0b1/src/carefold/schemas/manifest.py +46 -0
  570. carefold-0.5.0b1/src/carefold/schemas/memory.py +30 -0
  571. carefold-0.5.0b1/src/carefold/schemas/notes.py +30 -0
  572. carefold-0.5.0b1/src/carefold/schemas/plan.py +30 -0
  573. carefold-0.5.0b1/src/carefold/schemas/profiles.py +30 -0
  574. carefold-0.5.0b1/src/carefold/schemas/routing.py +30 -0
  575. carefold-0.5.0b1/src/carefold/schemas/tool.py +30 -0
  576. carefold-0.5.0b1/src/carefold/search/__init__.py +57 -0
  577. carefold-0.5.0b1/src/carefold/search/adapters/__init__.py +35 -0
  578. carefold-0.5.0b1/src/carefold/search/adapters/spector.py +31 -0
  579. carefold-0.5.0b1/src/carefold/search/adapters/sqlite.py +31 -0
  580. carefold-0.5.0b1/src/carefold/search/base.py +30 -0
  581. carefold-0.5.0b1/src/carefold/search/chunker.py +471 -0
  582. carefold-0.5.0b1/src/carefold/search/factory.py +30 -0
  583. carefold-0.5.0b1/src/carefold/search/reranker.py +185 -0
  584. carefold-0.5.0b1/src/carefold/storage/__init__.py +46 -0
  585. carefold-0.5.0b1/src/carefold/storage/adapters/__init__.py +16 -0
  586. carefold-0.5.0b1/src/carefold/storage/adapters/local_adapter.py +540 -0
  587. carefold-0.5.0b1/src/carefold/storage/cas.py +197 -0
  588. carefold-0.5.0b1/src/carefold/storage/extract.py +548 -0
  589. carefold-0.5.0b1/src/carefold/storage/factory.py +124 -0
  590. carefold-0.5.0b1/src/carefold/storage/ports/__init__.py +30 -0
  591. carefold-0.5.0b1/src/carefold/storage/ports/storage_port.py +262 -0
  592. carefold-0.5.0b1/src/carefold/templates/__init__.py +26 -0
  593. carefold-0.5.0b1/src/carefold/templates/engine.py +183 -0
  594. carefold-0.5.0b1/src/carefold/templates/helpers.py +90 -0
  595. carefold-0.5.0b1/src/carefold/tools/__init__.py +98 -0
  596. carefold-0.5.0b1/src/carefold/tools/appointments.py +531 -0
  597. carefold-0.5.0b1/src/carefold/tools/attach_read.py +30 -0
  598. carefold-0.5.0b1/src/carefold/tools/attachments.py +30 -0
  599. carefold-0.5.0b1/src/carefold/tools/connectors.py +287 -0
  600. carefold-0.5.0b1/src/carefold/tools/delegation_tools.py +30 -0
  601. carefold-0.5.0b1/src/carefold/tools/extraction_tools.py +30 -0
  602. carefold-0.5.0b1/src/carefold/tools/imports.py +240 -0
  603. carefold-0.5.0b1/src/carefold/tools/mcp_db_toolbox.py +30 -0
  604. carefold-0.5.0b1/src/carefold/tools/notes.py +270 -0
  605. carefold-0.5.0b1/src/carefold/tools/prep_pack.py +132 -0
  606. carefold-0.5.0b1/src/carefold/tools/preventive.py +283 -0
  607. carefold-0.5.0b1/src/carefold/tools/record_vitals.py +265 -0
  608. carefold-0.5.0b1/src/carefold/tools/registry.py +30 -0
  609. carefold-0.5.0b1/src/carefold/tools/reminders.py +33 -0
  610. carefold-0.5.0b1/src/carefold/tools/sandbox.py +30 -0
  611. carefold-0.5.0b1/src/carefold/tools/school_forms.py +256 -0
  612. carefold-0.5.0b1/src/carefold/tools/search_records.py +30 -0
  613. carefold-0.5.0b1/src/carefold/tools/skill_docs.py +30 -0
  614. carefold-0.5.0b1/src/carefold/tools/web_search.py +30 -0
  615. carefold-0.5.0b1/src/carefold/tools/workspace_note.py +30 -0
  616. carefold-0.5.0b1/src/carefold/vault/__init__.py +66 -0
  617. carefold-0.5.0b1/src/carefold/vault/crypto.py +108 -0
  618. carefold-0.5.0b1/src/carefold/vault/dek.py +422 -0
  619. carefold-0.5.0b1/src/carefold/vault/errors.py +42 -0
  620. carefold-0.5.0b1/src/carefold/vault/kek.py +220 -0
  621. carefold-0.5.0b1/src/carefold/workflows/__init__.py +40 -0
  622. carefold-0.5.0b1/src/carefold/workflows/dispatcher.py +335 -0
  623. carefold-0.5.0b1/src/carefold/workflows/nodes/__init__.py +56 -0
  624. carefold-0.5.0b1/src/carefold/workflows/nodes/agent.py +16 -0
  625. carefold-0.5.0b1/src/carefold/workflows/nodes/agent_execution_node.py +577 -0
  626. carefold-0.5.0b1/src/carefold/workflows/nodes/agent_node.py +190 -0
  627. carefold-0.5.0b1/src/carefold/workflows/nodes/audit.py +16 -0
  628. carefold-0.5.0b1/src/carefold/workflows/nodes/audit_node.py +104 -0
  629. carefold-0.5.0b1/src/carefold/workflows/nodes/base.py +209 -0
  630. carefold-0.5.0b1/src/carefold/workflows/nodes/error.py +16 -0
  631. carefold-0.5.0b1/src/carefold/workflows/nodes/error_node.py +78 -0
  632. carefold-0.5.0b1/src/carefold/workflows/nodes/input_guardrail.py +16 -0
  633. carefold-0.5.0b1/src/carefold/workflows/nodes/input_guardrail_node.py +222 -0
  634. carefold-0.5.0b1/src/carefold/workflows/nodes/orchestrator_node.py +1155 -0
  635. carefold-0.5.0b1/src/carefold/workflows/nodes/output_guardrail.py +16 -0
  636. carefold-0.5.0b1/src/carefold/workflows/nodes/output_guardrail_node.py +114 -0
  637. carefold-0.5.0b1/src/carefold/workflows/nodes/reflection.py +16 -0
  638. carefold-0.5.0b1/src/carefold/workflows/nodes/reflection_node.py +73 -0
  639. carefold-0.5.0b1/src/carefold/workflows/nodes/refusal.py +16 -0
  640. carefold-0.5.0b1/src/carefold/workflows/nodes/refusal_node.py +59 -0
  641. carefold-0.5.0b1/src/carefold/workflows/nodes/response_synthesizer_node.py +302 -0
  642. carefold-0.5.0b1/src/carefold/workflows/nodes/skill_generator_node.py +591 -0
  643. carefold-0.5.0b1/src/carefold/workflows/nodes/suggestion.py +16 -0
  644. carefold-0.5.0b1/src/carefold/workflows/nodes/suggestion_node.py +165 -0
  645. carefold-0.5.0b1/src/carefold/workflows/nodes/supervisor.py +16 -0
  646. carefold-0.5.0b1/src/carefold/workflows/nodes/supervisor_node.py +45 -0
  647. carefold-0.5.0b1/src/carefold/workflows/nodes/tool.py +16 -0
  648. carefold-0.5.0b1/src/carefold/workflows/nodes/tool_execution.py +16 -0
  649. carefold-0.5.0b1/src/carefold/workflows/nodes/tool_node.py +471 -0
  650. carefold-0.5.0b1/src/carefold/workflows/nodes/tool_validator.py +16 -0
  651. carefold-0.5.0b1/src/carefold/workflows/nodes/tool_validator_node.py +92 -0
  652. carefold-0.5.0b1/src/carefold/workflows/state.py +352 -0
  653. carefold-0.5.0b1/src/carefold/workflows/subgraphs/__init__.py +47 -0
  654. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/__init__.py +51 -0
  655. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/dossiers.py +48 -0
  656. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/graph.py +30 -0
  657. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/grounding.py +30 -0
  658. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/sanitizer.py +30 -0
  659. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/subgraph.py +30 -0
  660. carefold-0.5.0b1/src/carefold/workflows/subgraphs/extraction/tool.py +30 -0
  661. carefold-0.5.0b1/src/carefold/workflows/subgraphs/supervisor.py +460 -0
  662. carefold-0.5.0b1/tests/__init__.py +12 -0
  663. carefold-0.5.0b1/tests/conftest.py +268 -0
  664. carefold-0.5.0b1/tests/connectors/fixtures/__init__.py +16 -0
  665. carefold-0.5.0b1/tests/connectors/fixtures/dummy_connector.py +179 -0
  666. carefold-0.5.0b1/tests/connectors/test_manifest.py +145 -0
  667. carefold-0.5.0b1/tests/connectors/test_protocol.py +128 -0
  668. carefold-0.5.0b1/tests/connectors/test_scoped_http.py +122 -0
  669. carefold-0.5.0b1/tests/e2e/__init__.py +19 -0
  670. carefold-0.5.0b1/tests/e2e/conftest.py +233 -0
  671. carefold-0.5.0b1/tests/e2e/contracts_clinical_domain.py +1139 -0
  672. carefold-0.5.0b1/tests/e2e/test_boundaries.py +510 -0
  673. carefold-0.5.0b1/tests/e2e/test_clinical_domain_e2e.py +1609 -0
  674. carefold-0.5.0b1/tests/e2e/test_context_and_safety_gating.py +433 -0
  675. carefold-0.5.0b1/tests/e2e/test_expansion_specialties.py +1193 -0
  676. carefold-0.5.0b1/tests/e2e/test_features.py +1962 -0
  677. carefold-0.5.0b1/tests/e2e/test_generic_provisioning.py +471 -0
  678. carefold-0.5.0b1/tests/e2e/test_interactions.py +176 -0
  679. carefold-0.5.0b1/tests/e2e/test_multi_agent_execution.py +461 -0
  680. carefold-0.5.0b1/tests/e2e/test_persona_purity.py +385 -0
  681. carefold-0.5.0b1/tests/e2e/test_response_synthesis.py +354 -0
  682. carefold-0.5.0b1/tests/e2e/test_scenarios.py +213 -0
  683. carefold-0.5.0b1/tests/e2e_autonomy/__init__.py +12 -0
  684. carefold-0.5.0b1/tests/e2e_autonomy/conftest.py +96 -0
  685. carefold-0.5.0b1/tests/e2e_autonomy/contracts.py +663 -0
  686. carefold-0.5.0b1/tests/e2e_autonomy/test_tier1_policy_approvals_runner.py +470 -0
  687. carefold-0.5.0b1/tests/e2e_autonomy/test_tier1_vault_tool_registry.py +267 -0
  688. carefold-0.5.0b1/tests/e2e_autonomy/test_tier2_boundaries_security.py +430 -0
  689. carefold-0.5.0b1/tests/e2e_autonomy/test_tier3_pairwise_interactions.py +374 -0
  690. carefold-0.5.0b1/tests/e2e_autonomy/test_tier4_real_world_scenarios.py +339 -0
  691. carefold-0.5.0b1/tests/fixtures/__init__.py +35 -0
  692. carefold-0.5.0b1/tests/fixtures/fake_model.py +1249 -0
  693. carefold-0.5.0b1/tests/health/test_isolated_pack_import.py +108 -0
  694. carefold-0.5.0b1/tests/health/test_tool_entry_resolution.py +181 -0
  695. carefold-0.5.0b1/tests/integration/__init__.py +12 -0
  696. carefold-0.5.0b1/tests/integration/test_ollama_multiturn.py +371 -0
  697. carefold-0.5.0b1/tests/packaging/test_health_wheel_contents.py +135 -0
  698. carefold-0.5.0b1/tests/penetration_suite.py +596 -0
  699. carefold-0.5.0b1/tests/test_activity_api.py +528 -0
  700. carefold-0.5.0b1/tests/test_activity_timeline.py +707 -0
  701. carefold-0.5.0b1/tests/test_admin_api.py +328 -0
  702. carefold-0.5.0b1/tests/test_admin_auth_chat_security.py +666 -0
  703. carefold-0.5.0b1/tests/test_admin_rbac_security.py +520 -0
  704. carefold-0.5.0b1/tests/test_admin_specialties.py +525 -0
  705. carefold-0.5.0b1/tests/test_admin_specialties_stress.py +425 -0
  706. carefold-0.5.0b1/tests/test_agent_registry.py +192 -0
  707. carefold-0.5.0b1/tests/test_agent_registry_stress.py +393 -0
  708. carefold-0.5.0b1/tests/test_agents_crud_api.py +196 -0
  709. carefold-0.5.0b1/tests/test_alembic_migrations.py +954 -0
  710. carefold-0.5.0b1/tests/test_api.py +751 -0
  711. carefold-0.5.0b1/tests/test_api_approvals.py +944 -0
  712. carefold-0.5.0b1/tests/test_api_attachments_storage.py +152 -0
  713. carefold-0.5.0b1/tests/test_api_notes_db.py +166 -0
  714. carefold-0.5.0b1/tests/test_api_profiles_invites.py +347 -0
  715. carefold-0.5.0b1/tests/test_api_routes_advanced.py +565 -0
  716. carefold-0.5.0b1/tests/test_api_search.py +352 -0
  717. carefold-0.5.0b1/tests/test_api_system_agents.py +196 -0
  718. carefold-0.5.0b1/tests/test_api_versioning_dual_mount.py +347 -0
  719. carefold-0.5.0b1/tests/test_appointments.py +607 -0
  720. carefold-0.5.0b1/tests/test_attachment_migrations.py +132 -0
  721. carefold-0.5.0b1/tests/test_attachment_models.py +140 -0
  722. carefold-0.5.0b1/tests/test_attachments_api.py +119 -0
  723. carefold-0.5.0b1/tests/test_audit.py +143 -0
  724. carefold-0.5.0b1/tests/test_audit_chain_reranker_and_packaging.py +386 -0
  725. carefold-0.5.0b1/tests/test_audit_logging.py +554 -0
  726. carefold-0.5.0b1/tests/test_auth_api.py +345 -0
  727. carefold-0.5.0b1/tests/test_auth_endpoints_security.py +466 -0
  728. carefold-0.5.0b1/tests/test_auth_ports.py +618 -0
  729. carefold-0.5.0b1/tests/test_backend_security_stress.py +217 -0
  730. carefold-0.5.0b1/tests/test_candidate_boundaries_stress.py +274 -0
  731. carefold-0.5.0b1/tests/test_catalog_api_fuzzing.py +681 -0
  732. carefold-0.5.0b1/tests/test_catalog_evals.py +430 -0
  733. carefold-0.5.0b1/tests/test_catalog_port.py +464 -0
  734. carefold-0.5.0b1/tests/test_catalog_routing.py +1042 -0
  735. carefold-0.5.0b1/tests/test_category_tree.py +590 -0
  736. carefold-0.5.0b1/tests/test_client_keys_validation.py +424 -0
  737. carefold-0.5.0b1/tests/test_clinical_chunker.py +189 -0
  738. carefold-0.5.0b1/tests/test_clinical_imports.py +550 -0
  739. carefold-0.5.0b1/tests/test_clinical_models.py +629 -0
  740. carefold-0.5.0b1/tests/test_clinical_safety_boundaries.py +497 -0
  741. carefold-0.5.0b1/tests/test_clinical_safety_middleware_stress.py +457 -0
  742. carefold-0.5.0b1/tests/test_clinical_safety_stress.py +2659 -0
  743. carefold-0.5.0b1/tests/test_companion_and_handover.py +811 -0
  744. carefold-0.5.0b1/tests/test_connection_lifecycle_and_consent.py +644 -0
  745. carefold-0.5.0b1/tests/test_connectors_framework.py +552 -0
  746. carefold-0.5.0b1/tests/test_contextual_suggestions.py +246 -0
  747. carefold-0.5.0b1/tests/test_core_organs.py +501 -0
  748. carefold-0.5.0b1/tests/test_core_organs_stress.py +570 -0
  749. carefold-0.5.0b1/tests/test_data_scoping.py +510 -0
  750. carefold-0.5.0b1/tests/test_data_scoping_security.py +643 -0
  751. carefold-0.5.0b1/tests/test_database_concurrency.py +897 -0
  752. carefold-0.5.0b1/tests/test_db_models.py +430 -0
  753. carefold-0.5.0b1/tests/test_db_session.py +232 -0
  754. carefold-0.5.0b1/tests/test_deepagents_progressive_disclosure_e2e.py +1014 -0
  755. carefold-0.5.0b1/tests/test_docker_compose_config.py +167 -0
  756. carefold-0.5.0b1/tests/test_document_extraction.py +957 -0
  757. carefold-0.5.0b1/tests/test_engine.py +607 -0
  758. carefold-0.5.0b1/tests/test_engine_builder_service.py +409 -0
  759. carefold-0.5.0b1/tests/test_engine_registry_stress.py +400 -0
  760. carefold-0.5.0b1/tests/test_engine_security_hardening.py +819 -0
  761. carefold-0.5.0b1/tests/test_engine_store_lifecycle.py +580 -0
  762. carefold-0.5.0b1/tests/test_eval_refusal_fixes.py +145 -0
  763. carefold-0.5.0b1/tests/test_evals_safety_golden.py +183 -0
  764. carefold-0.5.0b1/tests/test_expansion_verification.py +360 -0
  765. carefold-0.5.0b1/tests/test_extended_specialties.py +489 -0
  766. carefold-0.5.0b1/tests/test_extended_specialties_stress.py +450 -0
  767. carefold-0.5.0b1/tests/test_extraction_provider_hardening.py +831 -0
  768. carefold-0.5.0b1/tests/test_extraction_subgraph.py +456 -0
  769. carefold-0.5.0b1/tests/test_extraction_tools.py +775 -0
  770. carefold-0.5.0b1/tests/test_fake_model_integration.py +177 -0
  771. carefold-0.5.0b1/tests/test_fts_catalog.py +979 -0
  772. carefold-0.5.0b1/tests/test_generic_loader_and_templates.py +309 -0
  773. carefold-0.5.0b1/tests/test_gmail_drafts_and_school_imports.py +592 -0
  774. carefold-0.5.0b1/tests/test_grounding_validator.py +586 -0
  775. carefold-0.5.0b1/tests/test_guardrail_nodes_stress.py +471 -0
  776. carefold-0.5.0b1/tests/test_guardrail_refusal_stress.py +506 -0
  777. carefold-0.5.0b1/tests/test_guardrails_boundary_stress.py +394 -0
  778. carefold-0.5.0b1/tests/test_health_pack_migrations.py +210 -0
  779. carefold-0.5.0b1/tests/test_home_isolation_security.py +269 -0
  780. carefold-0.5.0b1/tests/test_home_paths.py +199 -0
  781. carefold-0.5.0b1/tests/test_i18n_storage_data_and_api.py +436 -0
  782. carefold-0.5.0b1/tests/test_index_freshness.py +494 -0
  783. carefold-0.5.0b1/tests/test_job_runner.py +1570 -0
  784. carefold-0.5.0b1/tests/test_langgraph_interrupt_resume.py +208 -0
  785. carefold-0.5.0b1/tests/test_loaders.py +851 -0
  786. carefold-0.5.0b1/tests/test_logout_lifecycle_security.py +208 -0
  787. carefold-0.5.0b1/tests/test_manifest_loader_stress.py +360 -0
  788. carefold-0.5.0b1/tests/test_mcp_db_toolbox.py +338 -0
  789. carefold-0.5.0b1/tests/test_mcp_remote_and_routines.py +692 -0
  790. carefold-0.5.0b1/tests/test_memory_adapter_stress.py +539 -0
  791. carefold-0.5.0b1/tests/test_memory_api.py +1011 -0
  792. carefold-0.5.0b1/tests/test_memory_factory.py +143 -0
  793. carefold-0.5.0b1/tests/test_memory_fallback.py +719 -0
  794. carefold-0.5.0b1/tests/test_memory_fidelity.py +661 -0
  795. carefold-0.5.0b1/tests/test_memory_namespace.py +605 -0
  796. carefold-0.5.0b1/tests/test_memory_ports.py +347 -0
  797. carefold-0.5.0b1/tests/test_migrations_and_invites.py +959 -0
  798. carefold-0.5.0b1/tests/test_model.py +527 -0
  799. carefold-0.5.0b1/tests/test_model_factory_validation.py +596 -0
  800. carefold-0.5.0b1/tests/test_model_providers_stress.py +408 -0
  801. carefold-0.5.0b1/tests/test_model_vault_egress.py +345 -0
  802. carefold-0.5.0b1/tests/test_multi_turn_chat_regression.py +161 -0
  803. carefold-0.5.0b1/tests/test_neutral_words_scan.py +150 -0
  804. carefold-0.5.0b1/tests/test_notes_api.py +326 -0
  805. carefold-0.5.0b1/tests/test_notes_crud_api.py +129 -0
  806. carefold-0.5.0b1/tests/test_notes_db_isolation.py +723 -0
  807. carefold-0.5.0b1/tests/test_oauth_broker_and_refresh.py +335 -0
  808. carefold-0.5.0b1/tests/test_orchestrator_node.py +296 -0
  809. carefold-0.5.0b1/tests/test_persona_decomposition_stress.py +313 -0
  810. carefold-0.5.0b1/tests/test_persona_purity_stress.py +236 -0
  811. carefold-0.5.0b1/tests/test_pii_sanitization.py +434 -0
  812. carefold-0.5.0b1/tests/test_policy_gate.py +695 -0
  813. carefold-0.5.0b1/tests/test_policy_gate_and_vault_e2e.py +1604 -0
  814. carefold-0.5.0b1/tests/test_prep_pack.py +670 -0
  815. carefold-0.5.0b1/tests/test_preventive_care.py +580 -0
  816. carefold-0.5.0b1/tests/test_profile_cascade_and_scoping.py +1189 -0
  817. carefold-0.5.0b1/tests/test_profile_scoping.py +517 -0
  818. carefold-0.5.0b1/tests/test_prompt_extraction.py +80 -0
  819. carefold-0.5.0b1/tests/test_prompt_token_reduction_stress.py +417 -0
  820. carefold-0.5.0b1/tests/test_reference_synthesis_stress.py +357 -0
  821. carefold-0.5.0b1/tests/test_refusal_patterns_stress.py +294 -0
  822. carefold-0.5.0b1/tests/test_reminders.py +700 -0
  823. carefold-0.5.0b1/tests/test_resource_loader.py +501 -0
  824. carefold-0.5.0b1/tests/test_response_synthesis_nodes.py +337 -0
  825. carefold-0.5.0b1/tests/test_response_synthesis_stress.py +420 -0
  826. carefold-0.5.0b1/tests/test_routing_integration.py +706 -0
  827. carefold-0.5.0b1/tests/test_routing_registry.py +518 -0
  828. carefold-0.5.0b1/tests/test_runtime_migrator_stress.py +687 -0
  829. carefold-0.5.0b1/tests/test_runtime_security_hardening.py +579 -0
  830. carefold-0.5.0b1/tests/test_safety.py +208 -0
  831. carefold-0.5.0b1/tests/test_sandbox_security_deep.py +665 -0
  832. carefold-0.5.0b1/tests/test_schema_migrations.py +233 -0
  833. carefold-0.5.0b1/tests/test_school_forms.py +553 -0
  834. carefold-0.5.0b1/tests/test_scope_conformance.py +141 -0
  835. carefold-0.5.0b1/tests/test_scoped_attachments.py +475 -0
  836. carefold-0.5.0b1/tests/test_search_factory.py +114 -0
  837. carefold-0.5.0b1/tests/test_search_index.py +314 -0
  838. carefold-0.5.0b1/tests/test_search_spector_adapter.py +335 -0
  839. carefold-0.5.0b1/tests/test_settings_port_security.py +396 -0
  840. carefold-0.5.0b1/tests/test_settings_ports.py +221 -0
  841. carefold-0.5.0b1/tests/test_shc_and_android_companion.py +688 -0
  842. carefold-0.5.0b1/tests/test_skill_generator.py +303 -0
  843. carefold-0.5.0b1/tests/test_skills_crud_api.py +199 -0
  844. carefold-0.5.0b1/tests/test_spector_store_adapter.py +504 -0
  845. carefold-0.5.0b1/tests/test_sql_auth_adapter_security.py +496 -0
  846. carefold-0.5.0b1/tests/test_sql_declarative_schema.py +624 -0
  847. carefold-0.5.0b1/tests/test_sqlite_concurrency_stress.py +373 -0
  848. carefold-0.5.0b1/tests/test_sse_events_isolation.py +946 -0
  849. carefold-0.5.0b1/tests/test_start_script.py +276 -0
  850. carefold-0.5.0b1/tests/test_starter_connectors.py +368 -0
  851. carefold-0.5.0b1/tests/test_stealth_evasion_stress.py +364 -0
  852. carefold-0.5.0b1/tests/test_storage_concurrency_stress.py +506 -0
  853. carefold-0.5.0b1/tests/test_storage_port.py +326 -0
  854. carefold-0.5.0b1/tests/test_storage_subsystem_stress.py +523 -0
  855. carefold-0.5.0b1/tests/test_supervisor_dispatch.py +550 -0
  856. carefold-0.5.0b1/tests/test_symlink_security.py +351 -0
  857. carefold-0.5.0b1/tests/test_system_agents.py +475 -0
  858. carefold-0.5.0b1/tests/test_system_agents_discovery.py +423 -0
  859. carefold-0.5.0b1/tests/test_taxonomy.py +952 -0
  860. carefold-0.5.0b1/tests/test_tool_exec.py +268 -0
  861. carefold-0.5.0b1/tests/test_tool_loop.py +610 -0
  862. carefold-0.5.0b1/tests/test_tool_search_records.py +451 -0
  863. carefold-0.5.0b1/tests/test_tools.py +483 -0
  864. carefold-0.5.0b1/tests/test_two_hop_orchestration_stress.py +953 -0
  865. carefold-0.5.0b1/tests/test_two_hop_orchestrator.py +623 -0
  866. carefold-0.5.0b1/tests/test_two_hop_scalability.py +651 -0
  867. carefold-0.5.0b1/tests/test_typed_notes.py +540 -0
  868. carefold-0.5.0b1/tests/test_undo.py +578 -0
  869. carefold-0.5.0b1/tests/test_v2_connectors_and_scheduling.py +843 -0
  870. carefold-0.5.0b1/tests/test_vault_salt_pin.py +79 -0
  871. carefold-0.5.0b1/tests/test_vitals_api.py +692 -0
  872. carefold-0.5.0b1/tests/test_vitals_pipeline.py +199 -0
  873. carefold-0.5.0b1/tests/test_vitals_red_flags.py +505 -0
  874. carefold-0.5.0b1/tests/test_web_search.py +224 -0
  875. carefold-0.5.0b1/tests/test_workflow_resilience_recovery.py +608 -0
  876. carefold-0.5.0b1/tests/test_workflows_nodes.py +365 -0
@@ -0,0 +1,266 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ /MANIFEST
27
+ backend/MANIFEST
28
+ !packages/runner/src/manifest/
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py.cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Database & SQLite files:
60
+ *.log
61
+ *.db
62
+ *.db-*
63
+ *.db-shm
64
+ *.db-wal
65
+ *.sqlite
66
+ *.sqlite3
67
+ *.sqlite3-journal
68
+ catalog.db*
69
+ checkpoints.db*
70
+ local_settings.py
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ # Pipfile.lock
104
+
105
+ # UV
106
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
107
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
108
+ # commonly ignored for libraries.
109
+ # uv.lock
110
+
111
+ # poetry
112
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
113
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
114
+ # commonly ignored for libraries.
115
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
116
+ # poetry.lock
117
+ # poetry.toml
118
+
119
+ # pdm
120
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
121
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
122
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
123
+ # pdm.lock
124
+ # pdm.toml
125
+ .pdm-python
126
+ .pdm-build/
127
+
128
+ # pixi
129
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
130
+ # pixi.lock
131
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
132
+ # in the .venv directory. It is recommended not to include this directory in version control.
133
+ .pixi
134
+
135
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
136
+ __pypackages__/
137
+
138
+ # Celery stuff
139
+ celerybeat-schedule
140
+ celerybeat.pid
141
+
142
+ # Redis
143
+ *.rdb
144
+ *.aof
145
+ *.pid
146
+ .carefold.pids
147
+
148
+ # RabbitMQ
149
+ mnesia/
150
+ rabbitmq/
151
+ rabbitmq-data/
152
+
153
+ # ActiveMQ
154
+ activemq-data/
155
+
156
+ # SageMath parsed files
157
+ *.sage.py
158
+
159
+ # Environments
160
+ .env
161
+ .envrc
162
+ .venv
163
+ env/
164
+ venv/
165
+ ENV/
166
+ env.bak/
167
+ venv.bak/
168
+
169
+ # Spyder project settings
170
+ .spyderproject
171
+ .spyproject
172
+
173
+ # Rope project settings
174
+ .ropeproject
175
+
176
+ # mkdocs documentation
177
+ /site
178
+
179
+ # mypy
180
+ .mypy_cache/
181
+ .dmypy.json
182
+ dmypy.json
183
+
184
+ # Pyre type checker
185
+ .pyre/
186
+
187
+ # pytype static type analyzer
188
+ .pytype/
189
+
190
+ # Cython debug symbols
191
+ cython_debug/
192
+
193
+ # IDEs and Editors
194
+ .idea/
195
+ .vscode/
196
+ *.swp
197
+ *.swo
198
+ *~
199
+ tempCodeRunnerFile.py
200
+
201
+ # Multi-Agent & Teamwork Runtime Artifacts
202
+ .agents/
203
+ .teamwork/
204
+ teamwork/
205
+
206
+ # Test Outputs & Coverage
207
+ tests/e2e/results.json
208
+ results.json
209
+ .pytest_cache/
210
+ backend/.pytest_cache/
211
+
212
+ # Ruff stuff:
213
+ .ruff_cache/
214
+
215
+ # PyPI configuration file
216
+ .pypirc
217
+
218
+ # Marimo
219
+ marimo/_static/
220
+ marimo/_lsp/
221
+ __marimo__/
222
+
223
+ # Streamlit
224
+ .streamlit/secrets.toml
225
+
226
+ # Node.js & Package Managers
227
+ node_modules/
228
+ .pnpm-store/
229
+ npm-debug.log*
230
+ yarn-debug.log*
231
+ yarn-error.log*
232
+ pnpm-debug.log*
233
+ .pnpm-debug.log*
234
+
235
+ # TypeScript & Build Outputs
236
+ dist/
237
+ build/
238
+ *.tsbuildinfo
239
+ .tsbuildinfo/
240
+ out/
241
+ .turbo/
242
+
243
+ # Next.js
244
+ .next/
245
+ apps/web/.next/
246
+ apps/web/out/
247
+
248
+ # Carefold Local Runtime Workspace (User Data & Logs)
249
+ /logs/
250
+ /attachments/
251
+ /chats/
252
+ /chat/
253
+ /notes/
254
+ /workspace/
255
+ carefold.config.json
256
+
257
+ # Environment variables
258
+ .env*.local
259
+
260
+ # OS Artifacts
261
+ .DS_Store
262
+ Thumbs.db
263
+
264
+ # UI Redesign assets & mockups
265
+ /assets/carefold-ui-redesign/
266
+ /assets/carefold-autonomy
@@ -0,0 +1,282 @@
1
+ Metadata-Version: 2.5
2
+ Name: carefold
3
+ Version: 0.5.0b1
4
+ Summary: Carefold local-first AI and agentic runtime backend
5
+ Requires-Python: >=3.12
6
+ Requires-Dist: aiosqlite>=0.20.0
7
+ Requires-Dist: alembic>=1.13.0
8
+ Requires-Dist: argon2-cffi>=23.1.0
9
+ Requires-Dist: asyncpg>=0.29.0
10
+ Requires-Dist: cryptography>=43.0.0
11
+ Requires-Dist: deepagents>=0.7
12
+ Requires-Dist: defusedxml>=0.7.1
13
+ Requires-Dist: fastapi>=0.115.0
14
+ Requires-Dist: fhir-resources>=8.0.0
15
+ Requires-Dist: httpx>=0.27.0
16
+ Requires-Dist: jinja2>=3.1.0
17
+ Requires-Dist: keyring>=24.0.0
18
+ Requires-Dist: langchain-anthropic>=0.3.0
19
+ Requires-Dist: langchain-core>=0.3.0
20
+ Requires-Dist: langchain-google-genai>=2.0.0
21
+ Requires-Dist: langchain-ollama>=1.1.0
22
+ Requires-Dist: langchain-openai>=0.3.0
23
+ Requires-Dist: langgraph-checkpoint-sqlite>=2.0.0
24
+ Requires-Dist: langgraph>=0.2.0
25
+ Requires-Dist: pwdlib[argon2]>=0.2.0
26
+ Requires-Dist: pydantic-handlebars>=0.2.1
27
+ Requires-Dist: pydantic-settings>=2.4.0
28
+ Requires-Dist: pydantic>=2.8.0
29
+ Requires-Dist: pypdf>=4.0.0
30
+ Requires-Dist: python-multipart>=0.0.18
31
+ Requires-Dist: pyyaml>=6.0.2
32
+ Requires-Dist: spector-client>=0.1.0a4
33
+ Requires-Dist: sqlalchemy[asyncio]>=2.0.35
34
+ Requires-Dist: sse-starlette>=2.1.0
35
+ Requires-Dist: structlog>=24.1.0
36
+ Requires-Dist: uvicorn[standard]>=0.30.0
37
+ Requires-Dist: yarvelle-core>=0.1.0
38
+ Provides-Extra: dev
39
+ Requires-Dist: build>=1.2.0; extra == 'dev'
40
+ Requires-Dist: hatchling>=1.25.0; extra == 'dev'
41
+ Requires-Dist: import-linter>=2.0; extra == 'dev'
42
+ Requires-Dist: licenseheaders>=0.8.8; extra == 'dev'
43
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
44
+ Requires-Dist: pytest>=8.3.0; extra == 'dev'
45
+ Provides-Extra: ocr
46
+ Requires-Dist: pillow>=10.0.0; extra == 'ocr'
47
+ Requires-Dist: pytesseract>=0.3.10; extra == 'ocr'
48
+ Description-Content-Type: text/markdown
49
+
50
+ <!--
51
+ Carefold — Healthcare AI Agent Marketplace & Runtime
52
+ Copyright 2026 Spectrayan (https://spectrayan.com)
53
+
54
+ Licensed under the PolyForm Noncommercial License 1.0.0 and the
55
+ Carefold Additional Terms (see LICENSE and ADDITIONAL-TERMS.md).
56
+ Personal and household local use only. Commercial use, hosted service
57
+ offering, rebranding, white-labeling, and redistribution of modified
58
+ forks are prohibited without a written commercial license from Spectrayan.
59
+
60
+ Required Notice: Copyright 2026 Spectrayan (https://spectrayan.com)
61
+ -->
62
+
63
+ <h1 align="center">Carefold</h1>
64
+
65
+ <p align="center">
66
+ <strong>Local-First Personal & Family Health AI Companion & Specialist Runtime.</strong>
67
+ </p>
68
+
69
+ <p align="center">
70
+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-PolyForm_Noncommercial_+_Additional_Terms-047857.svg?style=for-the-badge" alt="License" /></a>
71
+ <a href="https://www.python.org/"><img src="https://img.shields.io/badge/Python-3.12-3776AB.svg?style=for-the-badge&logo=python&logoColor=white" alt="Python" /></a>
72
+ <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/Node.js-22_LTS-339933.svg?style=for-the-badge&logo=nodedotjs&logoColor=white" alt="Node" /></a>
73
+ <a href="https://nextjs.org/"><img src="https://img.shields.io/badge/Next.js-16_Turbopack-000000.svg?style=for-the-badge&logo=nextdotjs&logoColor=white" alt="Next.js" /></a>
74
+ <a href="https://fastapi.tiangolo.com/"><img src="https://img.shields.io/badge/FastAPI-0.115-009688.svg?style=for-the-badge&logo=fastapi&logoColor=white" alt="FastAPI" /></a>
75
+ <a href="docker/docker-compose.yml"><img src="https://img.shields.io/badge/Docker-Compose-2496ED?style=for-the-badge&logo=docker&logoColor=white" alt="Docker Compose" /></a>
76
+ <a href="https://github.com/spectrayan/carefold/actions"><img src="https://img.shields.io/github/actions/workflow/status/spectrayan/carefold/ci.yml?branch=main&style=for-the-badge" alt="Build" /></a>
77
+ <a href="https://spectrayan.github.io/carefold/"><img src="https://img.shields.io/badge/Docs-MkDocs-blue?logo=materialformkdocs&style=for-the-badge" alt="Docs" /></a>
78
+ </p>
79
+
80
+ <p align="center">
81
+ <em>"Great care starts with prepared patients and supported families. Carefold brings local-first AI to your household—helping you organize records, prepare thoughtful questions for your care team, and navigate coverage with clarity and privacy."</em>
82
+ </p>
83
+
84
+ ---
85
+
86
+ **Carefold** is a source-available, local-first personal and family health AI companion and specialist agent runtime. Designed to work alongside your doctors, care teams, and health plans, Carefold runs on your own hardware (or private household instance) to help you prepare for clinical visits, organize health records and vitals across family members, track preventive screenings and pediatric school forms, and understand health insurance benefits.
87
+
88
+ It pairs a **5-phase LangGraph orchestration engine** with **23 specialist clinical and administrative navigators**, **24 modular skill packs**, multi-profile household care with per-profile AES-256-GCM envelope encryption, scoped health and calendar connectors (`Epic SMART on FHIR`, `Withings`, `Google Calendar`, `CalDAV`, `Apple Health`, `FHIR R4`, `C-CDA`), multilingual support (`en-US`, `es-ES`, `fr-FR`, `hi-IN`, `ar-SA` with `RTL`), and a two-tier clinical safety guardrail system.
89
+
90
+ <details>
91
+ <summary>📸 <strong>Preview Carefold Web Marketplace UI</strong> (Click to expand)</summary>
92
+ <br />
93
+ <p align="center">
94
+ <img src="assets/carefold-marketplace-preview.png" alt="Carefold Web Marketplace UI" width="100%" />
95
+ </p>
96
+ </details>
97
+
98
+ ---
99
+
100
+ ## ⚡ 30-Second Quickstart
101
+
102
+ Get a local Carefold runtime and household companion running in seconds:
103
+
104
+ ### 1. Instant Launch via Prebuilt Docker Container
105
+ Run Carefold with a single command using the published multi-architecture image (supports Apple Silicon `arm64` and Intel/AMD `amd64` automatically):
106
+
107
+ ```bash
108
+ # Pull and start the all-in-one container (Next.js UI on :3000, FastAPI backend on :8000)
109
+ docker pull ghcr.io/spectrayan/carefold:latest
110
+
111
+ # Run container (connecting to local Ollama on your host machine)
112
+ docker run -d \
113
+ --name carefold \
114
+ -p 3000:3000 \
115
+ -p 8000:8000 \
116
+ -e OLLAMA_URL=http://host.docker.internal:11434/v1 \
117
+ -v carefold-data:/data \
118
+ ghcr.io/spectrayan/carefold:latest
119
+ ```
120
+ Visit `http://localhost:3000` to browse specialist helpers and launch private household consultations.
121
+
122
+ > [!TIP]
123
+ > - **Connecting to Ollama on host**: On Docker Desktop (macOS / Windows), use `-e OLLAMA_URL=http://host.docker.internal:11434/v1` so the container can reach your host machine's Ollama instance.
124
+ > - **Legacy tags on Apple Silicon**: If pulling older single-architecture tags (e.g. `0.3.0-beta.1`), append `--platform linux/amd64` to `docker pull` and `docker run`.
125
+
126
+ ### 2. Launch via Docker Compose (Build from Source)
127
+ Images can also be built locally from [`docker/Dockerfile`](docker/Dockerfile):
128
+
129
+ ```bash
130
+ # From the repository root: build and start the FastAPI backend (:8000) and Next.js UI (:3000)
131
+ docker compose -f docker/docker-compose.yml up -d --build
132
+
133
+ # Or also start a local Ollama container for on-device LLM inference:
134
+ docker compose -f docker/docker-compose.yml --profile ollama up -d --build
135
+
136
+ # Pull the default model into the Ollama container (first run only)
137
+ docker compose -f docker/docker-compose.yml exec ollama ollama pull llama3.2
138
+ ```
139
+ Visit `http://localhost:3000` to browse specialist helpers and launch private consultations.
140
+
141
+ ### 3. Local Monorepo Development
142
+
143
+ **Prerequisites**: Python 3.12+ (tested on 3.12 and 3.14), Node.js 22 LTS, and `pnpm` (>=9.0.0).
144
+
145
+ ```bash
146
+ # Clone repository
147
+ git clone https://github.com/spectrayan/carefold.git
148
+ cd carefold
149
+
150
+ # Install frontend dependencies
151
+ pnpm install
152
+
153
+ # Set up backend environment
154
+ python3 -m venv backend/.venv
155
+ source backend/.venv/bin/activate
156
+ pip install -e backend
157
+ pip install -r backend/requirements-dev.txt
158
+
159
+ # Start backend server (Terminal 1)
160
+ uvicorn carefold.main:app --host 127.0.0.1 --port 8000 --reload
161
+
162
+ # Start Next.js UI (Terminal 2)
163
+ pnpm --filter web dev
164
+ ```
165
+
166
+ ---
167
+
168
+ ## 🏥 Specialist Agent Topology
169
+
170
+ Carefold features a modular catalog of 23 specialist clinical and administrative navigators, organized into three core domains:
171
+
172
+ - **Clinical Organ & Specialty Navigators (`clinical_assist`)**: Dedicated navigators for Cardiology, Pulmonology, Gastroenterology, Oncology, Neurology, Nephrology, Dermatology, Endocrinology, Orthopedics, Rheumatology, Urology, ENT, Vision, Hematology, Podiatry, Vascular Medicine, Oral Health, and General Visit Preparation. Each specialist helps you organize symptoms, review lab trends and vital signs, and prepare clear, prioritized questions to discuss with your clinician.
173
+ - **Administrative & Insurance Stewards (`admin`)**: Stewards for Health Insurance Benefits & Coverage explanation, Prior Authorization preparation, Claims & Denials Appeals, Prescription Drug Formularies, and Multi-Provider Medical Records coordination.
174
+ - **Wellness & Habit Companions (`wellness`)**: Daily companions for chronic care routines, hydration tracking, sleep hygiene, and lifestyle check-ins.
175
+
176
+ ### Exploring Available Agents
177
+
178
+ You can explore, search, and interact with all specialist agents through:
179
+ - **Web Consultation Studio**: Launch the web app (`pnpm dev:web` at `http://localhost:3000`) to browse and chat with any specialist helper.
180
+ - **Living Documentation Catalog**: Read [`docs/agents/catalog.md`](docs/agents/catalog.md) for detailed descriptions, taxonomy classifications, and key capabilities.
181
+ - **Carefold CLI & API**: Run `carefold list` or query `GET /api/agents` to inspect the runtime catalog programmatically.
182
+
183
+ ### System Infrastructure Agents (`agents/_system`)
184
+ * **`orchestrator`**: Two-hop intent classification, dynamic skill provisioning, and multi-topology dispatch.
185
+ * **`document-extractor`**: Ingestion sandbox, PII sanitization, structured Pydantic extraction, and numerical grounding validation.
186
+ * **`quality-reviewer`**: Clinical safety boundary audit, tone inspection, and persona alignment verification.
187
+ * **`triage-auditor`**: Compliance logging, risk tagging, and clinical safety telemetry.
188
+ * **`skill-generator`**: Synthesis of dynamic skill manifests and validation templates from clinical guidelines.
189
+ * **`suggestion-generator`**: Context-aware follow-up suggestion chips presented in the client UI.
190
+
191
+ ---
192
+
193
+ ## 🧠 Cognitive Memory, Hybrid Retrieval & Household Isolation
194
+
195
+ Carefold implements a hexagonal architecture for memory, search, and household data isolation:
196
+
197
+ * **Per-Profile Household Scoping & Envelope Encryption**: Every family member profile (`Self`, `Child`, `Parent`, `Spouse`) is isolated at the database, Content-Addressed Storage (`CAS`), and cryptographic levels using per-profile `HKDF-SHA256` / `AES-256-GCM` Data Encryption Keys (`ADR-0005`, `ADR-0007`).
198
+ * **`MemoryPort` & 3-Tier Consolidation**: Cognitive memory interface supporting working, episodic, and semantic memory tiers with salience ranking and decay (`ADR-0002`).
199
+ * **Hybrid `SearchIndex`**: Combines SQLite `FTS5` lexical BM25 search with `sqlite-vec` dense embeddings, Reciprocal Rank Fusion (`RRF`), and Maximal Marginal Relevance (`MMR`).
200
+ * **End-to-End Internationalization (`ADR-0009`)**: Supports `en-US`, `es-ES`, `fr-FR`, `hi-IN`, and `ar-SA` (`RTL`) with IETF BCP 47 locale negotiation, Unicode UAX #15 `NFC` canonical storage normalization, HL7 FHIR R4 language-neutral clinical coding, and localized safety disclaimers.
201
+
202
+ ---
203
+
204
+ ## 🛡️ Two-Tier Clinical Safety, Policy Gates & Sandboxed Security
205
+
206
+ Carefold enforces strict safety invariants to protect families and ensure non-clinical boundaries:
207
+
208
+ ### 1. Two-Tier Clinical Boundary System
209
+ * **Tier 1 (Multilingual Emergency Red Flags)**: Instant termination with `911`/`988`/`112` emergency escalation when acute symptoms are detected across supported languages (e.g., crushing chest pain, acute stroke FAST symptoms, anaphylaxis, severe respiratory distress, or active self-harm crisis).
210
+ * **Tier 2 (Collaborative Clinical Preparation)**: Helps patients organize questions and records for their licensed healthcare providers while never diagnosing conditions, prescribing medications, or adjusting dosages.
211
+
212
+ ### 2. Four-Tier Policy Gate & Zero-Trust Sandbox (`ADR-0004`)
213
+ * **4-Tier Tool Execution Gate**: Classifies every tool into `read`, `write_local`, `write_external`, or `irreversible` across user-selectable autonomy levels (`A0` Manual, `A1` Assisted, `A2` Routine) with monotone taint tracking (`UntrustedResult`) and SHA-256 hash-chained `audit_events`.
214
+ * **Path Traversal & Symlink Shield**: Strict lexical normalization and containment checks preventing `../` traversal, null bytes, and symlink escapes across `attachments/` and `workspace/notes/`.
215
+ * **47-Attack Penetration Test Suite**: Automated security verification covering path traversal, command injection, symlink overwrites, and unauthorized skill access.
216
+
217
+ ---
218
+
219
+ ## 🚀 Quality Gates & Verification Matrix
220
+
221
+ Carefold maintains rigorous verification standards across all code changes:
222
+
223
+ ```bash
224
+ # 1. Spectrayan License Header Check
225
+ pnpm run check:licenses
226
+
227
+ # 2. Backend Pytest Suite
228
+ PYTHONPATH=backend/src:libs/connectors backend/.venv/bin/pytest backend/tests/ libs/connectors/tests/
229
+
230
+ # 3. Security Penetration Suite (47 Attack Vectors)
231
+ PYTHONPATH=backend/src backend/.venv/bin/python backend/tests/penetration_suite.py
232
+
233
+ # 4. Frontend Typecheck
234
+ pnpm --filter web typecheck
235
+
236
+ # 5. Frontend Unit & Component Tests
237
+ pnpm --filter web test --exclude "**/api/**"
238
+
239
+ # 6. Frontend Production Build
240
+ pnpm --filter web build
241
+ ```
242
+
243
+ ---
244
+
245
+ ## 📜 Architecture Decision Records (ADRs)
246
+
247
+ Carefold documents all major architectural decisions in [`docs/adr/`](docs/adr/):
248
+ * [ADR 0001: Orchestrator-Driven Agent Architecture](docs/adr/0001-orchestrator-driven-agent-architecture.md)
249
+ * [ADR 0002: Hexagonal Memory and Catalog Ports](docs/adr/0002-hexagonal-memory-and-catalog-ports.md)
250
+ * [ADR 0003: Progressive Disclosure & Skill Context Management](docs/adr/0003-progressive-disclosure-skill-context-management.md)
251
+ * [ADR 0004: Tool Execution Gate, 4-Tier Risk Approvals & Taint Propagation](docs/adr/0004-tool-execution-gate-and-taint-propagation.md)
252
+ * [ADR 0005: Keyring Vault & Per-Profile Envelope Encryption](docs/adr/0005-keyring-vault-and-envelope-encryption.md)
253
+ * [ADR 0006: Deployment Modes (Mode L Local vs Mode S Shared Household)](docs/adr/0006-deployment-modes-and-security-posture.md)
254
+ * [ADR 0007: Partitioned Content-Addressed Storage & Hybrid Search Index](docs/adr/0007-partitioned-cas-and-hybrid-search.md)
255
+ * [ADR 0008: Scoped Connectors, OAuth Bounce Relay & Taint Tracking](docs/adr/0008-scoped-connectors-and-taint-tracking.md)
256
+ * [ADR 0009: End-to-End Internationalization & Multilingual Architecture](docs/adr/0009-internationalization-and-multilingual-architecture.md)
257
+
258
+ ---
259
+
260
+ ## 👥 Contributors
261
+
262
+ Thank you to all the contributors who help build and improve Carefold!
263
+
264
+ <p align="left">
265
+ <a href="https://github.com/spectrayan/carefold/graphs/contributors">
266
+ <img src="https://contrib.rocks/image?repo=spectrayan/carefold" alt="Carefold Contributors" />
267
+ </a>
268
+ </p>
269
+
270
+ ---
271
+
272
+ ## 📄 License, Personal/Household Terms & Trademarks
273
+
274
+ Carefold is **source-available** software licensed under the **[PolyForm Noncommercial License 1.0.0](LICENSE)** together with the **[Carefold Additional Terms](ADDITIONAL-TERMS.md)** and the **[Carefold Trademark Policy](TRADEMARKS.md)**:
275
+
276
+ - **Permitted (Free Personal & Household Local Use)**: You may install, run, study, and modify Carefold for **personal and family use** on your own local hardware or private household instance, and contribute improvements back to the official repository under the **[Carefold Individual CLA](CLA.md)**.
277
+ - **Prohibited Without a Commercial License**: Selling, reselling, offering Carefold as a hosted service (SaaS/API/portal), deploying inside any business or healthcare organization, **rebranding or white-labeling**, removing Carefold/Spectrayan attribution, or redistributing modified forks outside your household is strictly prohibited.
278
+ - **Commercial Licensing**: For commercial, clinical, enterprise, or OEM licensing inquiries, contact `licensing@spectrayan.com`.
279
+
280
+ See [`LICENSE`](LICENSE), [`ADDITIONAL-TERMS.md`](ADDITIONAL-TERMS.md), [`TRADEMARKS.md`](TRADEMARKS.md), [`CLA.md`](CLA.md), and [`NOTICE`](NOTICE) for full terms.
281
+
282
+ Required Notice: Copyright © 2026 Spectrayan (https://spectrayan.com). All rights reserved.