feat(types): add clinic inbox, outbox, and MCP result contracts - #36
Merged
Conversation
Public JSON for the workbench-to-OpenAdapt job handoff. Identity is patient_token only. HALTED and RECONCILIATION_REQUIRED do not map to success. needs_human true refuses actuation.
Member
Author
|
Merged by an agent session, not the founder. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Public JSON for the clinic job handoff.
Inbox is
patient_token,artifact_path,source,recorded_at. A missingpatient_tokenis a validation error. The token is opaque; a name or MRN has no field.Outbox is
action,template,needs_human. Ifneeds_humanis true,require_actuation_dispatchraises and the call does not bind.MCP names Claude Code may call later:
run_harvest,run_attach_fax,run_create_triage_task. Each result isVERIFIED,HALTED, orRECONCILIATION_REQUIRED.is_verified_successis true only forVERIFIED. You can't passsuccess: trueon a halt; extra fields are forbidden.I put this in types, not agent, because OpenAdaptAI/openadapt-agent#45 is already open. I did not stack on flow 449 or web 462. Those two are the authoring mailbox stack.
The workbench (schema, extract, review) stays out. No clinic recordings, no recipes, no OCR, no YOLO. I started the path regex with a look-ahead to ban
... pydantic-core's regex engine refused it, so the pattern is now extension-dots only plus a validator.Review
openadapt_types/clinic_job.pyandtests/test_clinic_job.py. The four packaged JSON files underopenadapt_types/schemas/clinic-*-v1.jsonhave to matchmodel_json_schema().Companion design note: https://github.com/OpenAdaptAI/openadapt-internal/pull/48
Opened by an agent session, not the founder.