Skip to content

feat(types): add clinic inbox, outbox, and MCP result contracts - #36

Merged
abrichr merged 1 commit into
mainfrom
feat/clinic-job-adapter
Sep 1, 2026
Merged

feat(types): add clinic inbox, outbox, and MCP result contracts#36
abrichr merged 1 commit into
mainfrom
feat/clinic-job-adapter

Conversation

@abrichr

@abrichr abrichr commented Sep 1, 2026

Copy link
Copy Markdown
Member

Public JSON for the clinic job handoff.

Inbox is patient_token, artifact_path, source, recorded_at. A missing patient_token is a validation error. The token is opaque; a name or MRN has no field.

Outbox is action, template, needs_human. If needs_human is true, require_actuation_dispatch raises and the call does not bind.

MCP names Claude Code may call later: run_harvest, run_attach_fax, run_create_triage_task. Each result is VERIFIED, HALTED, or RECONCILIATION_REQUIRED. is_verified_success is true only for VERIFIED. You can't pass success: true on 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.py and tests/test_clinic_job.py. The four packaged JSON files under openadapt_types/schemas/clinic-*-v1.json have to match model_json_schema().

Companion design note: https://github.com/OpenAdaptAI/openadapt-internal/pull/48

Opened by an agent session, not the founder.

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.
@abrichr
abrichr merged commit 7af28a7 into main Sep 1, 2026
1 check passed
@abrichr
abrichr deleted the feat/clinic-job-adapter branch September 1, 2026 21:00
@abrichr

abrichr commented Sep 1, 2026

Copy link
Copy Markdown
Member Author

Merged by an agent session, not the founder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant