whitepaper
From one intake event to governed learning: an appointment walkthrough
I design and build the path from one appointment intake event to governed learning: a versioned contract, Snowflake boundaries, minimized features, a baseline comparison, registry approval and recoverable operation.
An intake decision with separated service and synthetic-training paths
Consider one example intake flow used throughout this paper, a reference architecture I build and adapt for your team. A person requests a follow-up consultation through a case-intake form, selects video or in-person attendance, states a contact preference, and confirms what may be remembered for scheduling. The person will notice whether confirmation is correct, whether preparation instructions match the selected appointment type, and whether a later change is honored. Staff will notice whether triage is consistent and whether rescheduling preserves the original request history. Service-only permission P-77 for event E-1041 permits scheduling and service for inquiry A-481 only; it is not consent for model use and E-1041 must never enter learning cohort C-21. Learning in this design uses only a separately permissioned synthetic training cohort C-21 that does not contain service-only events.
This is the working method I apply, shown on a reference walkthrough. C-21 is a synthetic training cohort with separate permission, not a slice of retained service requests. The walkthrough connects one observable intake choice to a versioned event, Snowflake raw, staging, and curated boundaries for the permitted service path, and separately to synthetic features, a governed cohort, registry approval, inference, human-approved action, and permitted feedback. Each later section preserves the distinction between what the person said, what the system inferred, and what an accountable person approved.
Versioned event contract ordered by revision, not clock time
The intake event should be smaller than the person. Version AppointmentRequested as v3 with an explicit field list, required and optional marks, purpose reference, and consent-decision reference. It carries identifiers and decision context needed for scheduling, not a full profile. Meaning changes require a new contract version. Copying an old consent flag into the event does not establish current permission; the event references the authoritative permission decision and its time. Service permission P-77-granted-for-service-only is not consent for model use; E-1041 carrying that permission must never enter learning C-21.
Schema v3 as I would define it, with all fields and values as sample data: event_id E-1041, inquiry_id A-481, schema_version 3, revision 4, occurred_at 2026-10-02T09:14:00Z, appointment_type video, contact_preference text_message, language_preference en, purpose_ref scheduling_and_service, permission_ref P-77-granted-for-service-only, changed_fields appointment_type, actor applicant. Optional context accepted as missing includes access_needs and interpreter_request. Fields explicitly out of scope for this event include diagnosis, financial detail, and unrelated marketing interests.
Validation keeps malformed and out-of-order arrivals explicit. A sample bad event E-1042 arrives later but carries revision 3 and schema_version 2 with appointment_type walk_in_free_text and no permission_ref. Contract validation quarantines it with reasons: unsupported schema version, missing permission reference, and stale revision relative to revision 4. It does not overwrite curated state and it does not coerce missing access_needs into no_access_needs. Authoritative ordering uses domain revision and domain sequence; occurred_at is supporting evidence only and is not trusted for ordering on skewed clocks; arrival order alone is not used. The last valid revision remains available with its age exposed so scheduling can decide whether to wait for correction.
Snowflake boundaries with enforced permission checks
Treat Snowflake as three meaning boundaries rather than one accumulation table. Raw preserves source observations exactly as received, including quarantined E-1042, with arrival metadata and source identity. Staging applies contract validation, deduplication by event_id, revision ordering by inquiry_id, permission-reference checks, and correction linkage. Curated models one row per inquiry revision and one row per accepted outcome for the permitted service path, with named grain, owners, transformation versions, and purpose annotations. The synthetic training cohort C-21 is stored and governed separately from service-only events. A late correction becomes a new revision linked to its predecessor, not an invisible overwrite.
Access design follows the same boundaries, and I build it with real enforcement. Role-based access separates intake operations, analytics, and model development. Row-level controls limit which inquiries each role can resolve, while masking reduces contact details and free-text notes for roles that need patterns rather than identities. These Snowflake design options do not by themselves prove separation or permit downstream learning; they require actual enforcement with eligibility checks re-evaluated at query, feature, cohort, and serving time, plus a retention and deletion workflow with named owners. Permission checks must be re-evaluated at query, feature, cohort, and serving time. Batch preparation is my default and is usually sufficient; a lower-latency feature path needs a separate freshness and cost justification.
Synthetic training cohort separate from service-only events
Feature generation is identity-minimized by design and forked by permission. The permitted service path may use E-1041 for scheduling and service only. Learning may use only separately permissioned synthetic cohort C-21, which does not contain E-1041 or any other service-only event. Useful scheduling features describe the inquiry state, such as appointment_type revision count, days between request and offered slot, prior reschedule count, missing-preparation rate, channel consistency, and office-hours overlap. They avoid inferring sensitive traits about the person. Each feature records definition, source tables, transformation version, permitted purpose, owner, and freshness expectation. Direct identifiers remain in curated access-controlled tables and do not enter the training matrix.
Temporal discipline prevents leakage. Every training row uses an as-of join: only information available at decision time may explain the outcome observed later. Information learned after the decision, including the eventual outcome label, reschedule note, or correction, cannot appear as an input for that same decision. The governed synthetic cohort therefore stores decision_time, feature snapshot reference, outcome window, outcome label, permission state at decision time, and cohort version C-21. A fixed version supports comparable baseline and candidate scoring, while a separately refreshed synthetic recent set asks whether behavior still applies. Incomplete requests, corrected identity, sparse histories, and unfamiliar language are retained as explicit synthetic slices rather than filtered away. Examples with revoked learning permission are excluded from data cohorts; rejection behavior may only be tested with synthetic fixtures, never retained as a training slice.
One human-review-priority decision with a common outcome metric
I compare a transparent SQL and rules baseline against any ML candidate on the same synthetic cohort version C-21 for one decision: human-review priority. The baseline rule in this example: if appointment_type is video and contact_preference is present, routine handling with the standard video preparation message; if two reschedules occurred or required context is missing or conflicting, priority human review; otherwise routine handling. This baseline is auditable, cheap to operate, and often sufficient for routine scheduling. Its failures are also legible: ambiguous free text, sparse history, conflicting preferences, and unusual timing combinations. No arm permits automatic denial; priority means earlier human review, not refusal or cancellation.
An ML candidate is added only to address those measured baseline failures for the same human-review-priority decision and the same outcome metric across arms, for example timely correct triage resulting in a correct booking or correctly prioritized review. Its primary supervised label is whether an independently reviewed inquiry needed priority human handling at the decision time, with recorded reasons and reviewer disagreement. Attendance, rescheduling and no-show are separately monitored downstream outcomes; they are not interchangeable target labels for review priority. Each label needs an owner, a definition, and a recording delay. Attribution remains uncertain: attendance may reflect transport, illness, reminder timing, or staff error rather than message quality. A correction to triage improves that inquiry but does not automatically authorize training reuse. The comparison must therefore report ordinary, sparse, and consequential slices separately on the synthetic cohort, because a better average can hide a worse outcome for people needing accessibility accommodation or language assistance.
Registry, inference, human approval, and permitted feedback
A model registry and approval record binds the releasable set: data snapshot, transformation versions, synthetic cohort C-21, candidate M-14 or provider configuration, prompt and retrieval settings where applicable, policy reference, evaluation scores by slice including matched holdout and temporal checks, and named approver. If hosted model internals cannot be pinned, the record states what is reproducible and what is not. Serving then preserves three distinct objects. Source service-only event E-1041 says what the person requested. Inference I-88 says the system suggested human-review priority with confidence and input references. The approved action says an accountable staff member or an explicitly authorized rule sent a specific message, booking change, or review prioritization. Logs retain all three with lineage.
Feedback respects the same separation. Task outcomes measure whether scheduling worked. Complaints and corrections fix the current inquiry. Only signals covered by an improvement or learning permission become candidates for a future synthetic cohort version. A withdrawn permission stops further learning use and starts deletion and cohort-revision work with eligibility checks. Instrumentation therefore tracks generation latency, unavailable dependencies, refusals, stale inputs, human override rate, and scheduling outcomes separately. A faster draft is not evidence of a better attended appointment.
Source event, inference, and approved action stay separate
- Source event E-1041 — Capture revision 4 of A-481 with purpose and service-only permission reference P-77; E-1041 is for service only and never enters C-21.
Downstream reuse must start from what the person actually chose, within the permitted purpose.
Alternative: Keep the first release manual and collect fewer fields if prediction is not needed.
- Curated inquiry state — Validate contract, order by authoritative revision, enforce masking and row limits for the service path.
A false join or stale revision would contaminate scheduling and learning.
Alternative: Use inquiry-level context without joining a broader profile.
- Governed comparison — Score baseline and candidate M-14 on the same synthetic cohort C-21 using a matched holdout.
Matched holdout scoring plus temporal and slice checks informs release; same-version scoring alone is not the only fair evidence.
Alternative: Retain the SQL baseline when sparse slices are too small for stable scoring.
- Registry approval and inference — Bind snapshot, features, M-14, policy, and approver; inference I-88 suggests human-review priority, human approves action.
Inference is a suggestion; only an accountable approval can act, with no automatic denial.
Alternative: Keep candidate in shadow until effects and stop conditions are authorized.
- Feedback with permission — Separate task outcome, complaint, and permitted learning signal; revoked permission starts deletion and cohort revision.
A useful correction does not automatically authorize training.
Alternative: Use the correction for this inquiry only when broader use is not permitted.
Approved outcomes and permitted synthetic corrections return as versioned cohort candidates. Purpose changes return to the permission decision. Rollback restores the prior approved baseline or model version but cannot unsend messages or restore revoked permission.
Correction, revocation enforcement, retention, drift, and rollback
Late-arriving corrections, deletion requests, bounded retention, drift, and rollback are worked as normal operations in this design. Suppose a corrected contact preference arrives after features were generated. Staging links it as revision 5, curated service state advances, affected feature rows are marked stale, and any pending inference is regenerated or held for review. Suppose improvement or learning permission is then withdrawn. The build includes actual enforcement: block new learning use, trace dependent events, features, snapshots, cohorts, and candidates through eligibility checks, publish synthetic cohort C-22 without the ineligible examples, re-score baseline and candidate on C-22, execute the retention and deletion workflow, and record whether retraining or discard is required. Removing a row alone does not demonstrate that a trained model has forgotten its influence.
Retention is bounded by policy rather than indefinite accumulation. Raw arrivals needed for audit are retained under their own schedule, staging intermediates expire sooner, curated facts carry purpose-specific retention, and evaluation history preserves scores as historical evidence without preserving ineligible personal data for reuse. Drift monitoring compares recent intake wording, channel mix, reschedule rates, and slice-level performance against the release baseline. A sustained regression, a permission-scope change, or an unacceptable consequential-slice failure triggers a predefined rollback to the last approved baseline or model version with current permission checks. Rollback of software does not undo an external message, restore revoked permission, or guarantee removal of learned influence; those require separate customer remediation, cohort revision, and model disposition decisions with named owners.
The first working session and its limits
The tradeoff sequence stays deliberately small. A versioned event plus validation reduces silent misinterpretation at modest engineering cost. Raw, staging, and curated separation plus role, row, and masking controls, with actual enforcement and deletion workflow, add consistent definitions and review paths at the cost of ownership and access maintenance. A SQL baseline for human-review priority provides immediate auditable behavior. A synthetic feature and cohort layer with registry approval adds measurable but heavier governance that is justified only when baseline failures concentrate in valuable or consequential cases and when eligible synthetic labels exist.