Skip to content

Platform · Configuration

Templates inherit. Customers don’t fork.

Four layers — Platform, Application, Customer, Instance. Each layer extends the one below it, overriding only what’s specific. New customer? Fork the application template, add three lines, deploy. No engine changes. No code review of scheduling logic.

The four-tier model

Inheritance, all the way down.

Each tier inherits everything from the tier below and overrides only what it needs to. Most customer-level templates are 50–200 lines; most instance-level templates are under 30.

Tier 01

Platform

Owned by

Anthropic / FlexiScheduler team

Scope

Universal scheduling primitives

The base. Person, resource, location entities. No-double-booking, time-window, capacity constraints. The 85% — what every domain needs.

extends
Tier 02

Application

Owned by

FlexiScheduler domain templates

Scope

Domain-specific entities and constraints

Domain templates ship with FlexiScheduler — Home Care, Medical Practice, Coworking, Logistics. Or custom-built for your domain on the demo call.

extends
Tier 03

Customer

Owned by

Customer admin

Scope

Organizational policies and overrides

A customer's specific operating hours, notification preferences, custom entity attributes, integration credentials. Edited via the Config Studio.

extends
Tier 04

Instance

Owned by

Local operations

Scope

Per-location or per-team variations

A specific center, branch, region. Local holidays, local operating hours, feature flag toggles. The most ephemeral layer.

Why four tiers

Three tiers (platform / customer / instance) handle most single-domain SaaS. Four tiers add the application layer — which matters when one company runs FlexiScheduler for multiple domains (a healthcare CRM that also serves coworking, for example) or when you’re building a vertical SaaS on top of FlexiScheduler.

The same flow, four templates

One scheduling deployment, four template files.

Walk through the inheritance chain that produces a working schedule for SeniorLife PACE’s Brooklyn center. Each template adds only what it needs to add.

01

Platform

Defines the universal person entity and the no-double-booking constraint. Lives in the FlexiScheduler codebase.

universal_person_scheduling.jsonjson
{
  "template_id": "universal_person_scheduling",
  "layer": "platform",
  "entities": {
    "person": {
      "attributes": {
        "name": { "type": "string", "required": true },
        "timezone": { "type": "string", "default": "UTC" }
      }
    }
  },
  "constraints": [
    {
      "id": "no_double_booking",
      "rule": "NOT EXISTS(overlapping_events)",
      "severity": "error"
    }
  ]
}
02

Application

Specializes person → participant. Adds care_plan_id, daily_hour_limit, mobility_requirements. Adds the daily-hour-limit constraint.

flexi_home_care_v1.jsonjson
{
  "template_id": "flexi_home_care_v1",
  "layer": "application",
  "extends": "universal_person_scheduling",

  "entities": {
    "participant": {
      "inherits_from": "person",
      "attributes": {
        "care_plan_id": { "type": "string", "required": true },
        "daily_hour_limit": { "type": "number", "default": 8 },
        "mobility_requirements": { "type": "enum", "values": ["ambulatory", "wheelchair"] }
      }
    }
  },
  "constraints": [
    {
      "id": "daily_hour_limit",
      "rule": "SUM(event.duration + travel) <= participant.daily_hour_limit",
      "severity": "error"
    }
  ]
}
03

Customer

SeniorLife PACE customizes operating hours, adds insurance_provider as a custom field, sets notification preferences.

seniorlife_pace.jsonjson
{
  "template_id": "seniorlife_pace",
  "layer": "customer",
  "extends": "flexi_home_care_v1",

  "overrides": {
    "operating_hours": {
      "monday": { "start": "07:00", "end": "19:00" }
    },
    "entities": {
      "participant": {
        "attributes": {
          "insurance_provider": { "type": "string", "required": true }
        }
      }
    },
    "notification_preferences": {
      "default_channels": ["sms", "email"],
      "reminder_hours": [24, 2]
    }
  }
}
04

Instance

The Brooklyn center adds Saturday hours, declares Thanksgiving as a holiday, enables merged-visit optimization.

seniorlife_pace_brooklyn.jsonjson
{
  "template_id": "seniorlife_pace_brooklyn",
  "layer": "instance",
  "extends": "seniorlife_pace",

  "overrides": {
    "operating_hours": {
      "saturday": { "start": "09:00", "end": "13:00" }
    },
    "holidays": [
      { "date": "2025-11-28", "name": "Thanksgiving" }
    ],
    "feature_flags": {
      "merged_visit_optimization": true
    }
  }
}

How inheritance actually merges

Additions and overrides — clearly separated.

Two semantic operations — additions and overrides. Both are scoped, both are explicit, and the engine resolves the merged template at template-deploy time, not at runtime.

add

Additions extend the schema

New attributes on existing entities, new constraints, new event types. Additions are non-destructive — the inherited shape stays intact and yours layers on top.

Customer adds insurance_provider to participant — the inherited care_plan_id still applies.

override

Overrides replace specific values

Replace an inherited default. Typical for operating hours, notification preferences, feature flags. The override key targets the exact path; everything else inherits unchanged.

Instance overrides operating_hours.saturday — Monday–Friday hours from the customer template still apply.

Templates are versioned. Deploys are blue-green.

Treat templates like infrastructure code.

Templates carry semantic versions. Customers can pin to a version, deploy a new version against a subset of traffic, and roll back without touching the engine.

1

Edit

Edit JSON in your repo, or use the Config Studio. Same template format either way.

2

Validate

Schema validation, constraint linting, sample-data simulation. Catches breaking changes before deploy.

3

Deploy

Blue-green or canary. New version runs alongside the current; route traffic gradually.

4

Roll back

One command. Previous version is hot. No engine changes, no data migrations.

Ready to model your domain

We’ll write your template on the demo call.

Bring your domain — entities, constraints, the edge cases that keep breaking. We’ll model it as a FlexiScheduler template live and run a sample booking through it. No slide deck.