SparkDevNetwork.Rock.SampleData.Loader 0.1.0-alpha.18

Prefix Reserved
This is a prerelease version of SparkDevNetwork.Rock.SampleData.Loader.
dotnet add package SparkDevNetwork.Rock.SampleData.Loader --version 0.1.0-alpha.18
                    
NuGet\Install-Package SparkDevNetwork.Rock.SampleData.Loader -Version 0.1.0-alpha.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SparkDevNetwork.Rock.SampleData.Loader" Version="0.1.0-alpha.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SparkDevNetwork.Rock.SampleData.Loader" Version="0.1.0-alpha.18" />
                    
Directory.Packages.props
<PackageReference Include="SparkDevNetwork.Rock.SampleData.Loader" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SparkDevNetwork.Rock.SampleData.Loader --version 0.1.0-alpha.18
                    
#r "nuget: SparkDevNetwork.Rock.SampleData.Loader, 0.1.0-alpha.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SparkDevNetwork.Rock.SampleData.Loader@0.1.0-alpha.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SparkDevNetwork.Rock.SampleData.Loader&version=0.1.0-alpha.18&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SparkDevNetwork.Rock.SampleData.Loader&version=0.1.0-alpha.18&prerelease
                    
Install as a Cake Tool

Loader

The loader installs a dataset package (made by the builder) into a fresh Rock database. It generates every date for the install day, so "last 12 months" reports are always full, and bulk-loads everything in one transaction. Rock never references this repository; it will use the same loader library.

There are two parts:

  • The loader library (loader/, RockSampleData.Loader). SampleDataPackage.Open reads a package and checks every file against its checksum. DatasetLoader.Load installs it, with a DatasetLoadOptions for the anchor, seed, parts, progress, keys, and the rest. It builds for .NET 10 and for .NET Framework 4.7.2, and Rock's block uses it through the SparkDevNetwork.Rock.SampleData.Loader NuGet package (see Using the library).
  • The loader CLI (../loader-cli/, rock-sample-data-load), for developers and test harnesses.

Loading a package

Build a package first (see the builder), then load it from the loader-cli folder:

dotnet run -- --package ../packages/core-1.zip --connection "Server=localhost;Database=RockSample;Integrated Security=true;TrustServerCertificate=true"
Option Meaning
--package <file> The dataset package to load. Required for a load.
--connection Connection string to a fresh Rock database. Required.
--parts The parts to load, by name and comma separated, for example --parts Giving,Notes,Prayer. The names are Photos, Attendance, SmallGroups, Serving, Giving, CheckImages, Prayer, Notes, Reminders, BackgroundChecks, Benevolence, Steps, Assessments, Communications, Calendar, Registrations, and Content. The parts they need load too (see Parts). Without it, every part loads except check images.
--any-rock Loads even when the database is on another Rock major release than the package, or its Rock version is unknown, with a warning. For development databases (see Which Rock a package is for).
--rock-version The database's Rock version, for example 21.0.2. Without it, the loader reads RockWeb/bin/Rock.Version.dll in the --rock checkout.
--anchor The date every relative date counts back from (yyyy-MM-dd). Defaults to today on the database server (SQL Server's GETDATE), the date Rock Cleanup uses for ages (decision 152). Pin it in tests for identical data.
--years Years of attendance and giving history. Defaults to 3.
--seed The text every random choice is seeded from. The same seed and anchor give the same data.
--crowd Adds this many spike crowd households across the dataset's campuses, in place of the dataset manifest's generated households. Used for speed tests. Full 7's manifest already lists its Crowd.
--calibrate <file> Loads nothing and needs no package. Runs calibration parts 1 to 3, part 5 for prayer, part 6 for notes, and part 7 for communications against the database and writes their raw output to the file. The scripts are built into the CLI from ../calibration/sql.
--check-images Draws scanned check images for check gifts (the CheckImages part). Off by default, because it is one of the slowest steps (about 12 of Full 7's 173 seconds). Release builds turn it on.
--check-image-months Months of check gifts that get scanned check images, overriding the dataset manifest (../datasets/{dataset}.json). 0 means every check. Without either, 12. Implies --check-images.
--rock <folder> A built Rock checkout (for example C:\Development\Rock). Its RockWeb/web.config PasswordKey and DataEncryptionKey key the check scanner fields, and its RockWeb/bin/Rock.Version.dll gives the Rock version. The ROCK_PATH environment variable does the same. Without either, those fields stay empty and everything else loads, but the Rock version is unknown, so a load needs --rock-version or --any-rock.
--web-config <file> A specific Rock web.config to read the keys from, instead of --rock.
--check-image-copies <folder> Also saves each check image to this folder, for looking at them. Implies --check-images.
--check-cast Loads nothing. Checks the package's Cast expectations (giving, campaign, achievements, businesses, prayer, reminders, steps, step workflows, assessments, and calendar) against an already loaded database (see validation/) and exits with 1 if any fail. Every load also checks them. With --parts, it checks only those parts.
--giving-parity Loads nothing. The release-time parity test: after Rock's own Giving Automation job has run on a loaded database, compares what Rock wrote with the loader's port (see validation/). Use with --dataset or --package.
--login-password <password> Loads logins, every one with this password, hashed the way Rock's Database login does (see How logins load). Without it, no logins load.
--dry-run Do everything, then roll it all back.

The whole load runs in one transaction, so a failure leaves nothing behind. Every inserted row carries ForeignKey = SampleData:<dataset>, except Metaphone, PersonAliasPersonalization, and PeerNetwork rows, which have no such column (see How people load, Adaptive messages, and Peer network). Rock's own procedures write some rows during a load, such as Family Analytics' counts, and the load gives this dataset's people's rows its ForeignKey after. Rock's duplicate finder procedure writes the PersonDuplicate rows, and the loader then gives them the ForeignKey too (see Duplicates).

After a load, Rock's own jobs take over. After you install says which jobs the load already covers, such as Family Analytics for eRA, which to run, and which can send or reach an outside service.

Which Rock a package is for

Each package is for one Rock major release, such as Rock 21, and serves every dot release of it (decision 52). Spark's rule is no model changes in a dot release. Its package.json records the major (rock.major, for example 21), plus the exact Rock it was built and verified on (rock.version, for example 21.0.2) and that Rock's newest Entity Framework migration (rock.migration). Loaders before 0.1.0-alpha.13 matched the migration, so it stays for them.

A Rock database stores no version number. So the loader reads Rock's version the way Rock's own VersionInfo does, from the file version of Rock.Version.dll, with RockVersionInfo:

  1. Inside Rock, Rock's installer block passes VersionInfo.GetRockSemanticVersionNumber() as RockVersion. Without it, the loader finds the Rock.Version assembly in its own process.
  2. Outside Rock, the CLI reads RockWeb/bin/Rock.Version.dll from --rock, or takes --rock-version. The verify tool reads the built checkout's.

Before loading anything, the loader refuses a database whose Rock is another major release, or whose version it cannot read. It checks nothing else about the schema at install: the verify tool checks the whole contract on each Rock release before a package is published. --any-rock turns the refusal into a warning, for development databases. Rock's own installer never uses it.

The oldest loader a package needs

Each package also records the oldest loader that can load it, minimumLoaderVersion (decision 158). A Rock keeps the loader version it shipped with, but the index can serve it packages from newer releases, and most of the data is made by loader code at install. So SampleDataPackage.Open refuses a package that needs a newer loader than itself, and Rock's installer block offers only index entries it can install (see The package index).

The builder writes SampleDataPackage.MinimumLoaderVersion into every package. Raise it to the release that ships a change whenever packages start to need loader code that older loaders lack, such as a new part, a new configuration file, or a new field a part reads. Raise the loader project's Version with it, so a development build still loads its own packages.

What the loader checks before loading

  1. The package's format is one this loader reads (format 1), and this loader is at least the package's minimum loader version.
  2. Every file matches its SHA-256 in package.json, no listed file is missing, and nothing unlisted was added.
  3. No other sample data load is running on the database. The load takes an exclusive SQL Server application lock (sp_getapplock, owned by its transaction) before it checks anything else, so two loads started at once, even from two web servers, cannot both go on.
  4. The database has no people beyond the five a new Rock install creates (decision 122). They are Admin (Person Id 1, because its Guid differs between installs), Anonymous Giver, Presence, Anonymous Visitor, and System Sender. RestUser records, which are API keys, never count. A database that already has sample data fails this check too. After a load, Person Id 1 is Alisha Marble (decision 177), and the people the load added still fail it.
  5. The database's Rock is the package's major release (see above).

Checks 3 to 5 run inside the load's transaction, after the lock. Any failure stops the load before it writes anything. DatasetLoader.CheckDatabase runs checks 4 and 5 on their own, so a caller can say what is wrong before anyone presses Load.

The load runs these steps in order: configuration (with the small group, serving, connection, and building campaign setup), people (with business contacts and security roles), photos, Sunday attendance, achievements, small groups, serving, connection requests, background checks, giving (with the pledges, campaign gifts, and refunds), giving analytics, giving alerts, family analytics (eRA), prayer, notes, reminders, benevolence, steps, assessments, peer network, data views, calendar, registrations, person attributes, communications (with the Communication Flows), reports, adaptive messages, content, the staff homepage, signals, personal links, tags, logins, duplicates, Cast and business expectations, and check images. Configuration, people, family analytics, peer network, data views, reports, adaptive messages, the staff homepage, signals, personal links, tags, logins, and duplicates always run. Family analytics and peer network read the rows the chosen parts wrote, as Rock's jobs would, so with parts left out they find less. The Cast and business expectations run only when the caller sets IsCastExpectationsChecked: the CLI and the verify tool do, and Rock's block does not, so a person installing sees no internal checks (decision 217). The others belong to parts.

Parts

A load can choose its parts (decision 121). Church setup and people always load, and so do tags, which belong to no part (decision 302). The building campaign is church setup: its fund, campus accounts, campaign dates, Create Pledge page, and statement settings load in every load (decision 126). The pledges and campaign gifts, the Cast's and the generated ones, belong to Giving: the giving step writes them, so they load only with giving. The fund's goal is part of the fund, so it is written in every load. SampleDataParts.All is the one table of parts, in load order:

Part Name What it adds Needs
Photos Photos Profile photos for the Cast and some generated families, and photos for the serving opportunities and the campuses
Attendance Attendance and check-in Sunday attendance and kids check-in over the whole history, with check-in streaks and achievements
SmallGroups Small groups Small groups with leaders, members, meeting places, photos, history, and weekly attendance
Serving Serving teams Volunteers on every serving team, with schedules, check-ins, and requests to serve
BackgroundChecks Background checks Background checks for kids and student volunteers and small group leaders, with each report as a PDF, the person's check details, and the requirement results Rock shows on each team and group Small groups, serving teams
Giving Giving Gifts, scheduled gifts, batches, refunds, and in-kind gifts, with giving analytics, a year of giving alerts, and the building campaign's pledges
Prayer Prayer requests Prayer requests with the prayer team's prayers, comments, and answers Small groups
Notes Notes Notes on people in six note types, secured to staff
Reminders Reminders Reminders staff set about people they have notes on and leaders set about their groups: some due, some upcoming, some complete, and a few that repeat Notes, small groups
Benevolence Benevolence Requests for help with rent, bills, food, cars, and medical costs, with the case worker, what the church gave, and signed assistance agreements, seen only by the benevolence team
Steps Steps Steps on Rock's Discipleship Path and the Student Path, from baptism and classes to small groups, serving, giving, leading, camps, and mission trips, with the Baptism Date on each baptized person, program completions, and the staff follow-up tasks a baptism or a decision to follow Jesus starts Small groups, serving teams, giving
Assessments Assessments DISC, Spiritual Gifts, Conflict Profile, Emotional Intelligence, and Motivators results for staff, leaders, and class members, with the answers behind them and the requests still waiting Steps
Communications Communications Two years of email, texts, and pushes: weekly newsletters, mass and class messages, SMS conversations, serving reminders, the church's app, and a finished communication flow, with the lists, numbers, and template they use Small groups, serving teams, prayer requests, steps
Calendar Calendar events Events on the Public and Internal calendars: holidays, classes, student and kids events, men's and women's events, outreach, and staff meetings, with their occurrences at each campus and their photos
Registrations Event registrations Registrations for camp, the mission trip, the fall retreat, VBS, Parents' Night Out, Serve Day, Money Matters, Date Night, and the Women's Retreat, linked to their calendar events and groups, with fees, discounts, and placement groups, and the students, kids, and adults who registered, with their payments, payment plans, placements, signed releases, notes, and history, and the data views about registrations Calendar events
Content Content Weekly staff updates on Rock's staff homepage for the past year, each with its feature, articles, and images
CheckImages Check images Scanned front and back images of recent check gifts Giving

SampleDataParts.WithDependencies adds the parts the chosen ones need, and a load always calls it. A part needs another only when its rows point at or must agree with that part's rows:

  1. Check images need giving. Each image row points at its gift.

  2. Prayer needs small groups. Some Cast prayer requests are shared with their small group, and who asks for prayer depends on who is in a group, which the prayer step reads from the loaded groups.

  3. Steps need small groups, serving teams, and giving (decision 125). Each Small Group, Serve, and Lead step copies one membership, read back from the GroupMember rows the small groups and serving parts wrote, and points at its group. People with an open request to serve, who go first in the current Starting Point Class, come from the serving part's connection requests. Each Give step must agree with the journey stage the giving part writes. Student Path steps follow student check-ins, but they read them from the attendance plan, not the rows, so steps do not need attendance.

  4. Communications need small groups, serving teams, prayer requests, and steps. The Volunteers and Small Group Leaders lists copy the team and group memberships read back from the rows those parts wrote, and the Prayer Team list holds the prayer part's team. Class messages, baptism follow-ups, and the After Starting Point flow read the steps part's rows. Who is involved enough for a newsletter comes from the attendance and giving plans, so communications do not need those parts.

  5. Assessments need steps (decision 266). Starting Point and Foundations ask their classes on the class's own nights, read from the steps part's class steps, and every current leader takes DISC and Conflict Profile before leading, from the memberships the steps step read back.

  6. Registrations need the calendar (decision 189). Every linkage points at a calendar occurrence, which the registrations step finds through the calendar's plan, so the calendar must have written it. See Event registrations.

  7. Reminders need notes and small groups (decision 295). Staff set reminders about the generated people they wrote notes on, read back from the Note rows the notes part wrote. A group reminder points at its generated small group, and its owner is the group's leader, read back from the rows the small groups part wrote.

  8. Background checks need small groups and serving teams (decision 333). Each requirement result points at a team or leader membership read back from the rows those parts wrote, and a check still in progress points at its request to serve.

Other parts read another part's plan, not its rows, so they need nothing. Benevolence needs nothing: its requesters and case worker are people, who always load. Serving and giving read the attendance plan (volunteers serve and families give on Sundays they came), steps read its student check-ins, and prayer reads the giving plan. Pledges are planned before giving in every load, because their campaign lines are part of the giving plan, so prayer reads the same gifts whether or not giving loads. The generated pledgers are drawn from the giving patterns that people carry, and people always load, so the draw needs no part. No part reads pledge rows. The loader plans every part in memory, chosen or not, and skips only the writes of the parts not chosen. Each piece of data draws from its own seeded stream, so a chosen part's rows are the same as in a full load. Group photos belong to small groups and opportunity photos to photos, so no part's choice changes the photos part's rows. Steps and assessments come last of the data parts and plan from rows (besides the student check-ins), so they plan only when they load. Only assessments, which need steps, read what steps plan, and nothing reads what assessments write, so leaving either out changes no other part's rows. Reminders also plan from rows, the notes and small groups, so they plan only when they load, and no other part reads them.

Cast expectations check only the parts that loaded: giving stories and campaign stories need Giving, achievement stories need Attendance, prayer requests need Prayer, reminder stories need Reminders, step stories and step workflow stories need Steps, assessment stories need Assessments, background check stories need BackgroundChecks, benevolence requests need Benevolence, staff texting numbers need Communications, calendar stories need Calendar, and the messages left by Cast mentions need Notes. Tags are always checked. A business's contacts are always checked, and its recent gifts only with Giving. Each Cast person attribute value is always checked: the person shows their allergy in Rock's Allergy attribute (Alex Decker's peanut allergy), and each value the person attributes step loads from their file, such as Employer, Legal Notes, or Do Not Send Giving Statement.

On 2026-10-21, Core 1 with --parts Giving,Notes,Prayer (which adds small groups) was compared table by table with a full load. Every table the loaded parts write had the same rows. The only tables that changed belong to the parts left out: photos, attendance and achievements, and serving with its connection requests. Shared tables such as Attendance and GroupMember lost exactly the rows of those parts, and their small group rows were the same. After steps joined, a full Core 1 load matched main's load table by table, and so did Core 3 and Full 7. Core 1 without Steps differed from the full load only in the step tables (Step, StepProgramCompletion, StepType, and StepProgram) and in the 192 Baptism Date and Baptized Here values. Core 1 with --parts Steps, which adds small groups, serving teams, and giving, had the same steps, step values, memberships, gifts, and small group and serving attendance as the full load. On 2026-10-22, after the Cast's pledges joined giving, a load of every part matched main's load in every table for all three datasets. Core 1 without Giving (and so without steps and check images) had no pledges, and differed from the full load only in the giving tables, the giving attributes and giving automation setting, the campus tithe metric, and the step tables and Baptism values. Core 1 with --parts Giving had the same pledges, gifts, giving attributes, and tithe metric as the full load. After the Crowd and business pledges joined, a load of every part again matched main's load in every table for all three datasets. Core 3 has Crowd households and 27 pledges. Without Giving it had no pledges and the same fund and goal, and it differed from the full load in the same tables as Core 1 did. Core 3 with --parts Giving had the same 27 pledges and the same rows in every financial table as the full load.

Using the library

Rock's Sample Data Installer block calls the library through the SparkDevNetwork.Rock.SampleData.Loader NuGet package. The package holds a .NET 10 build and a .NET Framework 4.7.2 build (decision 120). dotnet pack loader/RockSampleData.Loader.csproj -c Release -o artifacts writes it to ../artifacts/. The package ID names Spark as its owner, while the assembly and namespace stay RockSampleData.Loader.

var rockVersion = VersionInfo.GetRockSemanticVersionNumber();
var package = SampleDataPackage.Open( downloadedZipStream );
var readiness = DatasetLoader.CheckDatabase( connectionString, package, rockVersion );
if ( !readiness.IsReady )
{
    // Show readiness.Problems, one plain sentence each.
}

DatasetLoader.Load( connectionString, package, new DatasetLoadOptions
{
    RockVersion = rockVersion,
    Parts = new[] { SampleDataPart.Giving, SampleDataPart.Prayer },
    Progress = progress,
    PasswordKey = passwordKey,
    DataEncryptionKey = dataEncryptionKey,
    LoginPasswordHash = databaseLogin.EncodePassword( null, passwordFromTheForm )
} );
Option Meaning
Parts The parts to load. Null loads every part. The load adds the parts they need.
Progress An IProgress<LoadProgressReport> that gets every line the CLI prints. Each report has the Message, the StepName when the line starts a step (null for a detail line), and CompletedSteps of TotalSteps. TotalSteps counts only the steps this load runs. Reports come on the loading thread, in order. The library never writes to the console.
PasswordKey, DataEncryptionKey Rock's keys, as its web.config holds them (the PasswordKey in hex). Each one is used instead of the one in RockWebConfigPath. Inside Rock, pass the server's own, so check scanning, note mentions, and their notification messages work on that server.
LoginPasswordHash The password hash every sample login uses. Inside Rock, pass Rock's Database authentication component's EncodePassword of the password the person installing typed, so the loader never sees the password. It must be a BCrypt hash. Null loads no logins (see How logins load).
RockVersion The database's Rock version, for example 21.0.2. Rock passes VersionInfo.GetRockSemanticVersionNumber(). Null reads it from the Rock.Version assembly in this process, which works only inside Rock.
IsAnyRockVersionAllowed Loads on another Rock major release, or an unknown Rock, with a warning. CheckDatabase never honors it. Rock's block leaves it false.
IsCastExpectationsChecked Checks the Cast and business expectations at the end of the load and reports each result. The CLI and the verify tool set it. Rock's block leaves it false, so the step is skipped without a word and left out of the step count.

Load throws DatabaseNotReadyException (with every problem in Problems and the message) when the database has people or another load is running, and RockVersionMismatchException when the only problem is the Rock major release. Nothing is written in either case. The loader bulk-copies past Rock's services, so Rock's caches are stale after a load, and the block clears them.

When a step fails, Load rolls back and throws that step's error unchanged. The rollback runs only while the transaction is still open, with the same 600-second timeout as every other command. SqlClient's own SqlTransaction.Rollback waits only the connect timeout, 15 seconds by default. If the rollback fails too, the step's error is still the one thrown, with the rollback's error in its Data under DatasetLoader.RollbackErrorKey. The CLI and the verify tool print both (decision 278).

The .NET Framework build

The .NET Framework build depends on the exact versions Rock ships: Microsoft.Data.SqlClient 6.1.4, System.Text.Json 10.0.0, SixLabors.ImageSharp 2.1.12, SixLabors.ImageSharp.Drawing 1.0.0, Hashids.net 1.7.0, and System.IO.Compression 4.3.0. A newer version would add a second version of an assembly to RockWeb/bin. A .NET Framework program that uses the package needs Rock's binding redirects for System.Memory and System.Numerics.Vectors, which Rock's web.config already has.

compat/ holds the few .NET 10 features .NET Framework lacks, as internal types under #if NETFRAMEWORK: the init-only marker, GetValueOrDefault and key-value pair deconstruction, and the two key derivations behind Rock's encryption (KeyDerivation: PBKDF2, and HKDF written out from RFC 5869). Everything else is written a way both understand, such as list[list.Count - 1] instead of list[^1].

The check scanner fields and note mentions are keyed by those derivations, so ../loader-compat-check/ proves both builds give the same values. It checks PBKDF2 and HKDF against the RFC 6070 and RFC 5869 test vectors, and Rock's key bytes, keyed hash, IdKey, package checksums, and seeded random draws against values from .NET 10's own methods. It also reads a package index written before the card fields and one with fields the loader does not know, puts loader versions in order, checks which index entries the loader may install on Rock 21 and Rock 20, and checks the index signature (see The signature). It checks that a failed load whose rollback fails too still throws its own error, because .NET Framework's Exception.Data holds only serializable values. Run it for each build, and both must pass:

dotnet run --project loader-compat-check -f net10.0
dotnet run --project loader-compat-check -f net472

The two builds are meant to load the same rows. One difference is expected: .NET Framework rounds DateTime.AddMinutes and the other Add methods that take a fraction to the nearest millisecond, and .NET 10 does not. So a few generated times, such as when a prayer request was approved, can differ by under a millisecond. On 2026-10-21, a .NET Framework load and a .NET 10 load of attendance, small groups, and prayer matched in every table when times were compared to the second, and a later Core 1 load of every part but check images had the same steps on both builds. That later load found two gaps that are not fixed yet:

  1. Serving schedules differ. A few volunteers are asked to serve in a different room on some Sundays (Core 1: 3,113 team occurrences on .NET Framework, 3,119 on .NET 10). ServingLoader picks a room with OrderBy( load ).ThenBy( random draw ).First(). .NET 10's First() draws the tie-break only for rooms that tie, and .NET Framework draws it for every room, so the two builds use the seeded stream differently. A fix draws every tie-break before sorting, which changes the serving rows on both builds.
  2. Three giving attributes differ slightly: gift frequency mean, its standard deviation, and next expected gift date, with the giving alerts that follow from them. The cause is not traced yet.

The package index

The hosted list of packages is index.json (decision 123). The release workflow merges each release into it, signs it, and uploads it last, at https://storage.rockrms.com/sampledata/packages/index.json, beside the versioned packages (decision 128). A prerelease changes only index-prerelease.json beside it (decision 129). SampleDataPackageIndex.Parse reads it. It refuses an index Spark did not sign (see The signature), text that is not JSON, another format version, or an entry without a required field.

This is the index that is signed. The file itself wraps it, as the next section shows.

{
  "formatVersion": 1,
  "signedAt": "2026-10-28T15:04:05.000Z",
  "packages": [
    {
      "dataset": "core-1",
      "name": "Core 1",
      "description": "The Cast at the main campus: hand-designed households, each with its own story. These families are in every dataset.",
      "bestFor": "Automated tests, training, and everyday development.",
      "highlights": [
        "Families you can name in tests and help articles",
        "Profile photos for nearly everyone",
        "Three years of attendance, giving, groups, and serving",
        "Scanned images of every check gift"
      ],
      "people": 185,
      "households": 87,
      "campuses": 1,
      "typicalInstallSeconds": 10,
      "databaseSpaceMegabytes": 1400,
      "version": "1.2.0",
      "url": "v1.2.0/rock-21/core-1.zip",
      "sha256": "b94754207879953509261c3a244e7432eab882526024aa2fd84c9647502a0650",
      "size": 15086598,
      "rockMajor": 21,
      "minimumLoaderVersion": "0.1.0-alpha.14",
      "rockVersion": "21.0.2",
      "rockMigration": "202610141827486_CodeGenerated_20261014"
    }
  ]
}
Field Meaning
formatVersion The index format. This loader reads format 1. Required.
signedAt When the release workflow signed the index. Not read yet.
packages Every package, in the order to show them. A dataset can appear once per Rock major release.
dataset, name The dataset key and its name. Required.
description A sentence or two about who is in the dataset: the card's summary. Optional.
bestFor, highlights What the dataset is best for, and two to four short phrases about it. Optional.
people, households, campuses About how many people and family households the dataset loads, and its campuses. Optional.
typicalInstallSeconds About how long a load of every part takes, in seconds. Optional.
databaseSpaceMegabytes About how much disk space the database needs after a load of every part, in megabytes. Optional: an index written before 0.1.0-alpha.16 has none.
version The package release, from the release tag. Required.
url Where to download the package: absolute, or relative to the index's own URL. Required.
sha256, size The .zip's SHA-256 in hex (64 digits) and its size in bytes. Check a download against them before opening it. The SHA-256 is required.
rockMajor The Rock major release the package is for (decision 52), the same as its package.json. Optional: an entry written before it counts as the major of its rockVersion.
minimumLoaderVersion The oldest loader that can load the package (decision 158), the same as its package.json. Optional: an entry written before it has no minimum.
rockVersion, rockMigration The exact Rock the package was built and verified on, the same values as its package.json. Loaders before 0.1.0-alpha.13 match packages by rockMigration, so both stay. Required.

SampleDataPackageIndexEntry.IsInstallableOn( rockVersion ) says whether this loader can install an entry on a Rock: the Rock is the entry's major release, and this loader is at least its minimum loader version. Rock's installer block shows, for each dataset, the newest entry that is installable, and the newest entry of all when none is.

Each entry carries the whole dataset card from the dataset's manifest, the same fields SampleDataDatasets serves (decision 144). release/merge-index.js writes them when a release joins the index. So Rock's installer can show its cards from the index, and every release updates the cards without a new loader in Rock.

The card fields, rockMajor, and minimumLoaderVersion are optional, and format 1 stays format 1. SampleDataPackageIndexEntry reads a missing string as empty, missing highlights as an empty list, and a missing number as 0, so it reads an index written before the card fields joined it, such as the entries of v0.1.0-alpha.10. An older loader skips fields it does not know, so it reads a newer index too. ../loader-compat-check/ checks both on both builds.

The signature

The index's SHA-256 for each package proves a download is intact. The signature proves Spark made the index, so no one who could change the hosted file can swap in a package (decision 172). From 0.1.0-alpha.14 on, the loader reads only a signed index.

The release workflow signs the index's exact bytes, and the file carries those bytes in its signed object:

{
  "formatVersion": 1,
  "packages": [ "... the same entries ..." ],
  "signed": {
    "keyId": "sampledata-index-1",
    "algorithm": "ES256",
    "payload": "ewogICJmb3JtYXRWZXJzaW9uIjogMSwK...",
    "signature": "q8ZtW1v0J3..."
  }
}
Field Meaning
signed.keyId Which of Spark's keys signed it, from ../release/index-signing-keys.json.
signed.algorithm Always ES256: ECDSA on the P-256 curve with SHA-256.
signed.payload The signed index, base64: the exact UTF-8 bytes of the JSON shown above.
signed.signature The signature on SHA-256 of those bytes, base64: 64 bytes, r then s, as Azure Key Vault returns it.
formatVersion, packages The same index, for loaders before 0.1.0-alpha.14, which skip signed. A newer loader ignores them.

SampleDataPackageIndex.Parse checks the signature with the public keys the loader embeds from ../release/index-signing-keys.json, then reads the index only from the payload. So no canonical form of the JSON is needed, and nothing outside the signature is trusted. It refuses an index that is not signed, one signed by a key it does not know, and one whose signature does not match, each with an InvalidDataException. Rock's installer block already logs that and shows that packages are not available, so a forged index fails closed. A package download is then checked against its entry's SHA-256, which the signature covers.

The loader trusts two keys: the active key and a spare. Both private keys are in Spark's Azure Key Vault and never leave it. Only the release workflow's Publish job, behind its approvals, may sign with the active key. Adding a key the loader does not know needs a loader release. How the keys are set up and changed is in Maintaining. No setting, option, or environment variable adds a trusted key; only ../loader-compat-check/ passes test keys, through an internal overload.

../release/sign-index.js signs and checks a signature, and ../release/merge-index.js merges only a hosted index that checks out. To try signing without the vault, sign with a local test key, which the loader never trusts:

node release/sign-index.js --self-test
node release/sign-index.js --new-test-key test-key.pem
node release/sign-index.js --in index.json --out signed.json --test-key test-key.pem

../loader-compat-check/ reads an index that sign-index.js signed with a test key, so both builds are proven to read what the Node signer writes. It also checks that a changed payload, a changed signature, an unknown key, an unsigned index, and Spark's keys on a test signature are refused, and that packages outside the signature are ignored.

The dataset catalog

SampleDataDatasets.All lists the datasets this loader can install, in key order: Core 1, Core 3, and Full 7 (decision 124). Rock's installer shows one card for each before it downloads anything. SampleDataDatasets.Get( "core-3" ) returns one card, or null for an unknown key.

The package index carries the same card in each entry (decision 144). The catalog is fixed when the loader is built, and the index changes with every release, so Rock's installer should show the index's card and keep the catalog for when the index cannot be read. The CLI and the verify tool's card checks use the catalog.

Each SampleDataDatasetInfo has the Key and Name, a Summary of who is in it, what it is BestFor, two to four Highlights, and the People, Households, Campuses, TypicalInstallSeconds, and DatabaseSpaceMegabytes to show. The values come from the card fields in datasets/*.json, which the loader project embeds. So the catalog ships in the same NuGet package as the loader that installs those datasets.

Two checks keep the cards true:

  1. The builder refuses to write a package whose manifest is missing a card field, or whose campuses differs from configuration/campuses.json.
  2. The verify tool's invariants fail a load whose people or households differ from the card by more than 2%. Only a load at the default seed is held to the card, because the card was measured at that seed.

The numbers were measured with the CLI: the default seed, 3 years of history, and every part with check images, each run on a fresh copy of the verify tool's trusted base (RockSampleVerify-base), which is the Rock the packages are for. All three were measured again on 2026-10-26, after communications joined the load, against Rock 21.0.2, and Full 7 again on 2026-10-28, after the speed pass (loader 0.1.0-alpha.15; see Performance). On 2026-10-28 the people and households also grew with the named staff (decision 200); the install times are from before. Households are family groups, businesses included. The install time is the median of three runs of the CLI, start to finish, on a 16-core development machine.

Dataset People Households Campuses Install time (three runs)
Core 1 204 95 1 13 seconds (14.0, 12.8, 13.3)
Core 3 435 252 3 17 seconds (17.5, 15.5, 16.6)
Full 7 25,293 16,984 7 173 seconds (175.4, 173.2, 172.4)

Communications are most of Full 7's load, about 106 seconds: two years of email to 1.3 million recipients with their opens and clicks, texts, one-to-one email, and pushes. Full 7 draws check images only for the last 12 months of check gifts: 3,620 checks and 7,240 images (277 MB), about 12 seconds of its load. Every load of the same package, seed, and anchor has the same people and households, so the three runs agree exactly. Before communications joined, the three loaded in 10, 12, and 55 seconds. Before the Crowd joined, Full 7 had only the Cast (185 people in 87 households) and loaded in about 11 seconds.

Each card's databaseSpaceMegabytes is the space a church's install needs: the data and log files at their largest after a load of every part, check images included, added together, and rounded up to the next 100 MB (decision 356). It comes from a load with IsCastExpectationsChecked off, as Rock's block loads, on a fresh copy of the trusted base. The trusted base starts at 392 MB of data and a 72 MB log, so the numbers include the new Rock install. A load runs in one transaction, so the log holds the whole load until it commits. Measured on 2026-11-20, on the data in the alpha.18 landing, with check images. Rock 21.0.2 and Rock 20.0.10 agreed to the megabyte:

Dataset Data file after the load Log file after the load Both On the card
Core 1 1,032 MB 264 MB 1,296 MB 1,300 MB, about 1.3 GB
Core 3 1,160 MB 456 MB 1,616 MB 1,700 MB, about 1.7 GB
Full 7 6,664 MB 8,392 MB 15,056 MB 15,100 MB, about 15 GB

Each verify receipt records its load's space too (load.space), but it reads higher than the card, because it includes check overhead. Verify and the loader CLI turn the Cast expectations on, and two of their checks run Rock's own procedures inside the load's transaction: Rock's eRA procedure and Rock's two peer network procedures. They roll back, but their rows hold log space until the load commits. On 2026-11-20, Full 7 needed 15,056 MB with the checks off, and its verify receipts on Rock 21.0.2 and Rock 20.0.10 showed 15,440 MB, 384 MB more, all of it log.

The earlier measurements used a copy of RockSample-base, and each install time was about a second longer there. No load finishes on that database now. It is an older Rock whose Create Pledge page has Rock's Obsidian Pledge Entry block in place of block 4898B608-4A08-4C1B-97A7-0500D708B5D2, the one the campaign setup points at. The shorter times come from the base, not the loader, because the campaign only adds a few statements to the configuration step.

When a change to the data moves a number past 2%, measure again and update the card. Load the package through the library into a fresh copy of the trusted base, with IsCastExpectationsChecked off, then read each file's size from sys.database_files. The loader CLI always turns the Cast expectations on, so a CLI load reads like a receipt:

rock-sample-data-load --package core-1.zip --connection "<a fresh copy of RockSampleVerify-base>" --check-images --rock C:\Development\Rock-21

Copy the base by backup and restore while holding a shared sp_getapplock on its name, the lock the verify tool takes, so the copy never catches the base while verify rebuilds it.

What makes a load repeatable

A package holds the inputs, not the records: the Cast, the church setup, the dataset manifest, the resolved profile, the address pool, photos, and fonts. The loader generates every record at install. Each package also carries a README.md (from ../builder/package-readme.md) that explains this, for whoever receives the package.

The seed

The seed is a piece of text that every random choice starts from. It defaults to rock-sample-data (DatasetLoadOptions.Seed), and --seed changes it. It is not stored in the package or the database, and it never comes from the clock or the server.

The loader never draws from one long random stream. Each piece of data gets its own stream, named by the seed and that piece:

Stream name What it decides
{seed}:crowd:{n} The nth generated household: size, ages, names, and statuses
{seed}:business:{campus}:{n} The nth generated business at a campus: its name, cadence, payment method, amount, and whether a married couple are both contacts
{seed}:phone-numbers The order generated people and businesses take phone numbers in: the Phoenix codes first, then the other codes in configuration/phones.json
{seed}:business-contacts:{campus} The order of a campus's families among equals when picking business contacts
{seed}:attendance:{household guid} Which Sundays that family came
{seed}:giving:{household guid}:{person}:{persona}:{start} That giving pattern's gifts
{seed}:wallet:{person guid} That giver's card, bank account, and checkbook
{seed}:refunds:{kind}:{household guid}:{person}:{gift time} A refund of one kind of that gift: its delay and time, a duplicate's time and code, and the summary
{seed}:refund-order:{kind}:{household guid}:{person}:{gift time} Where that gift falls in the order its kind's refunds are chosen in
{seed}:in-kind:{household guid}:{kind} The vehicles or equipment that household gives: the years, each item, its day, and its value
{seed}:in-kind-summary:{household guid}:{person}:{gift time} A stock gift's summary
{seed}:small-groups:... Group planning, joins, leaders, and group attendance
{seed}:serving:... Who serves on which team, each volunteer's rotation and preferences, and their requests to serve
{seed}:connections:{campus} Who asks to serve at that campus, and each request's dates, status, connector, and activities
{seed}:addresses:{campus} The order of addresses per campus
{seed}:photos:{campus} Which pool faces go to which households
{seed}:steps:... Who is baptized and when, and who takes Starting Point Class and Foundations in which class
{seed}:check:{transaction id} One check image's handwriting and stamp angle

generation/SeededRandom.cs turns each name into a number with a fixed text hash (FNV-1a) and seeds .NET's Random with it. So the same name gives the same draws on every machine, a change to one family changes no other family, and the order of the steps does not matter.

The anchor

The anchor is the date everything counts back from (--anchor, default today on the database server). The seed decides how a family behaves; the anchor decides which Sundays and holidays fall in the history window. The same seed with a different anchor gives a different history, not just shifted dates.

What is the same, and what is not

With the same package, seed, and anchor, the data is the same on every server, row for row: people, families, addresses, attendance, gifts, groups, attribute values, alerts, and the contents of every check. The speed work on 2026-10-16 checked this with a fingerprint of 28 tables over more than ten Full 7 loads.

These differ between installs, by design:

  1. Install day. The anchor defaults to today on the database server, so give the same --anchor to compare installs.
  2. Ids. Each table's Ids start after its highest existing Id, so they match only on databases that started the same.
  3. Guids. The Cast, generated people and families, accounts, and alert types keep stable Guids. Most other rows (attendance, gifts, attribute values, check image files) get a new Guid on every install.
  4. Created and modified times, a family member's date added, and check image file times come from the install clock.
  5. Check scanner fields are hashed with each server's own PasswordKey, and the encrypted bank line fields use its DataEncryptionKey with a random IV, so they differ on every install.
  6. Check image handwriting comes from the transaction Id, so it can differ when Ids differ. The checks' contents do not.

How people load

People are bulk-copied with Ids assigned up front (the table's current maximum plus one, and up), so every foreign key is known before anything is written. Bulk copy skips Rock's save hooks, so the loader fills in what they would set: birth date and key, age and age bracket, graduation year (using Rock's June 1 grade transition), giving Id and giving leader, primary family and campus, and formatted phone numbers. These are the "post-load fix-ups" from the plan; they happen during the load, so no separate step is needed.

It also fills in what the verify tool's Rock Cleanup referee showed was missing. Each follows Rock's own code, named in a note above the loader code that ports it:

What How Rock sets it How the loader sets it
Person.PrimaryAliasId and PrimaryAliasGuid The person save hook, after it adds the alias. From the alias it writes for the person.
Age classification PersonService.UpdatePersonAgeClassifications. Adult for anyone 18 or older or an adult in any family, otherwise Child. Jasmine Washington, 18, stays a child in her family on purpose, so she is a Child by role and an Adult by classification, the way Rock leaves a child who turns 18.
Family salutations (GroupSalutation, GroupSalutationFull) GroupService.CalculateFamilySalutation, from the person and group member save hooks. A port of it (loading/FamilySalutation.cs), for example "Ted & Cindy Decker".
Inactive families Rock Cleanup marks a family inactive when every member's record is inactive, then dates it. The same, dated at install (in the Cast, the Murphys and Jenny Greggs's family).
An alternate Id (PersonSearchKey) The person save hook, for every new person: 7 random hex digits, a dash, and 7 more. The same, unique among the alternate Ids already in Rock.
Name metaphones (Metaphone) The person save hook queues them for each new first, nick, and last name. Rock's Double Metaphone code, copied unchanged (generation/DoubleMetaphone.cs), for each name Rock does not have yet. SQL Server decides which names are new, as it does for Rock, so its collation matches "Strauß" to "Strauss". The table is keyed by name and shared, so these rows have no ForeignKey.
A Known Relationship group Rock Cleanup adds one for every person who owns none, with the person as Owner. The same, for every person. Business contacts go into these groups.

Households with the same street, city, state, and postal code share one Location, the way Rock's address editor saves an address through LocationService.Get. Jon Smith's duplicate records share his home, and a home business shares its owner's Location (decision 314).

A February 29 birthday uses the nearest leap year, so that person's age can be off by one.

Every address, and every campus's map point, carries the marks Rock's LocationService.Verify leaves after its address service standardized and geocoded an address: both attempted dates, both success dates, the service (Smarty Streets), and its result (loading/CheckedAddress.cs). Rock's Location Services Verify job sends only addresses without them, so no sample address ever goes to an address service (decision 315). Rooms and buildings have no address, so Rock never checks them, and they stay unmarked.

A Cast person's attributes.Allergy becomes Rock's Allergy person attribute, which check-in labels print, as Rock saves a text attribute value, with its persisted values left for Rock to fill (decision 204). The people step writes it, before registrations, which skip anyone who already has an allergy, so no person gets two values. Both steps give the value the same Guid, from the person's Guid and the attribute's. The Cast's other values, and every generated person's, load later, in the person attributes step (see How person attributes load).

How person attributes load

configuration/person-attributes.json lists every Rock person attribute the sample data reads or writes, or that a Cast file holds, by key and Guid (decision 250). The church setup checks that Rock has each one under its key, adds the Date Engaged attribute to Rock's Membership category, and adds the invented schools near each of the dataset's campuses to Rock's School defined type.

The person attributes step runs after registrations and writes every value in one bulk copy, with the value Guid every writer of a person attribute uses (the person's Guid and the attribute's). Rock's attribute value save hook then fills each value's derived columns at the end of the load (decision 249).

Attribute Who has it Decision
Employer, Position The Cast people whose files say so. About 10% of generated adults aged 18 to 64, from invented employers. Every business contact, Cast or generated, works at their own business: the first contact as Owner, a spouse as Co-owner. 253
School Kids and students in kindergarten to grade 12 in half the generated households, from two elementary, one middle, and one high school near their campus. Kids in one grade band go to the same school. 252
Legal Notes Madison Lowe, from her file. The kids 11 and under of two single-parent generated households per campus, with a note that names the parent's role, never a person. 254
Ability Level Half the kids, Cast or generated, whose latest check-in was in Rock's Nursery, Crawlers/Walkers, or Preschool group, when their age still puts them there on the last Sunday. The level is the one Rock's group filters by. 255
Source of Visit, Previous Church The adults of generated households that first came inside the history window: 65% have a source and 35% a previous church, the same for everyone in the household. 256
Allergy A generated kid who never answered it on a registration form, from the same draw the form uses (decision 211). 251
Date Engaged Every Engaged or Leading adult, Cast or generated: the day of their first small group or serving team membership that was not pending, or their giving unit's first contribution, read back from the rows the load wrote. 257
Envelope Number 40% of the people who wrote a check gift, Cast or generated, when giving loads. Numbers are unique and count up from 1001 with small gaps. 258
Do Not Send Giving Statement Two Cast givers, Steve Morgan and Richard Ross, from their files. 258

Each drawn value comes from its own stream, seeded by the person or household, so a change to one rule changes no other row. The Cast gets no drawn employer, school, note, visit, or allergy, because its stories are written by hand. Ability Level, Date Engaged, and envelopes follow the Cast's records too. Nothing writes Membership Date, social media, a driver's license number, First Visit, Second Visit, or Special Needs, and an invariant checks it. Assessment results come only from the assessments step (see Assessments).

How logins load

Logins load last, in the always-on Logins step, and only when the load has a password hash (decisions 179 to 182). Every login is a Rock Database login with that one hash.

  1. The password. Rock's Database login stores a BCrypt hash. PasswordKey only checks very old SHA-1 hashes, so it plays no part. Inside Rock, the installer block hashes the typed password with Rock's own Database authentication component and passes LoginPasswordHash; the loader never sees the password. The CLI's --login-password hashes at Rock's default cost of 11 in the $2a$ form. A site with another cost setting rehashes the password the first time someone signs in. No password or hash is ever in a package.
  2. The Cast. Their usernames are in their files (logins in ../cast/households), so docs can name them, such as tdecker. They are reserved before any generated one. A Cast adult with the church app, or on the prayer team, and no login in their file gets one by the username rule below. Anyone who already has a login in Rock, such as Alisha Marble with Rock's own admin, keeps only that one.
  3. Everyone else. A generated adult 18 or older gets one with the chance of their strongest reason in ../configuration/logins.json: the church app, leading a group or team, a scheduled or one-time online gift, the prayer team, a serving team, a small group, or their connection status. The reasons come from the group, serving, and giving plans every load makes. The app and the prayer team exist only when communications and prayer load, so they count only then. Generated adults need an email address unless they have the app. A reason at 100%, such as the prayer team's, is certain, so age and an inactive record do not cut it, and a Cast adult on the prayer team with no login in their file gets one by Rock's rule, as one with the app does (decision 188). Each person draws from their own seeded stream, after every other planner, so logins never change another row.
  4. Usernames follow Rock's own Database.GenerateUsername: the first name's first letter and the last name, lowercase, then 1, 2, and so on when taken. Accents are folded and anything but a to z and 0 to 9 is dropped. Every username already in the database, such as admin, is left alone.
  5. What each login looks like. It was made on the day of its first reason, such as a first online gift, or on a day in the history window. Staff signed in within days, app users and leaders within weeks, and many occasional users never after the day they made it. About 3% of occasional ones were never confirmed. None is locked out or marked as needing a new password.
  6. Person history. Each login gets the History rows Rock's login save hook writes: the authentication provider, the username, Is Confirmed, and Is Password Change Required.
  7. Account protection. Every load, with or without logins, sets each loaded person's account protection profile the way Rock's Process Elevated Security job does: Extreme or High from a security role's level, High for an active scheduled gift or saved account, Medium for a login, and Low otherwise.

How photos load

loading/PhotoLoader.cs attaches profile photos as Rock person images in database storage, one file per person, and sets each person's photo. The rules are in Photos.

  • The Cast. Every Cast person listed in ../photos/manifest.json gets their delivered photo. People left out on purpose and businesses are not listed, so they get none.
  • Generated households. When the dataset manifest sets photos.generatedHouseholdPercent (Core 3 sets 50), about that share of each campus's generated households get faces from the 120-photo pool. A household gets faces only when one photo ethnicity has an unused face for every member's gender and age band, so a family looks like one family and no face repeats on a campus. In Core 3, these are the companion households at Peoria and Gilbert.
  • Cast small groups. After the small groups load, each group in ../photos/groups/manifest.json gets its photo as the group's photo, stored the way Rock stores a photo uploaded on the group's page (the Default file type). A photo loads only when everyone in it is a member of the group, so a women's or men's group never shows the leader's spouse (decision 319). Each shows the group's leader and spouse. The original full-group photos in ../photos/groups-full-members/ are never packed or loaded. The configuration step turns on Show Image on Rock's Group Finder page, so the cards show them (decision 62). A package without group photos still loads.
  • Serving opportunities. In the photos step, each opportunity in ../photos/opportunities/manifest.json gets its photo, stored the same way, as the opportunity's photo. Every dataset has all eight, which replace the three Rock ships, and the public Serve page shows them. A package without opportunity photos still loads.
  • Campuses. In the photos step, each loaded campus in ../photos/campuses/manifest.json gets its exterior photo as the image of its Location, stored in Rock's Location Image file type, as Rock's Location Detail block stores one (decision 317). The builder packs only the dataset's own campuses' photos.

Core 1 loads 175 photos in about a third of a second.

How the timeline is generated

Each Sunday in the history window (3 years by default) comes from generation/SundayCalendar.cs. It knows the holidays (Easter, Mother's Day, Memorial Day, July 4, Labor Day, fall kickoff, Thanksgiving, the Sunday before Christmas, Christmas week, and New Year), and it takes each one's attendance multiplier from the profile.

  • Attendance. Each household gets a rate (from the Cast file, or from its connection status) and a usual service. Adults are recorded on the Weekend Service group without check-in. Kids check in through Rock's check-in template, with a security code per family per Sunday, in the room their grade or age puts them in on that date. A child on their own (usually a student) can check in without an adult. Every attendance row gets the check-in status Rock's save hook gives it: Present for a check-in, and Not Present for a row with no present time (decision 260).
  • Giving. Each giving pattern has a cadence (weekly, bi-weekly, monthly, quarterly, irregular, occasional, or one-time) and a channel: scheduled (ACH or card, with a Rock scheduled transaction), online one-time, onsite (check or cash, on Sundays the family attended), or mailed checks. Gifts follow the profile's seasonality and weekday mix, round the way people give, and land in batches by day, campus, and kind: Sunday checks, Sunday cash, mailed checks, non-cash, or online. Checks are always in batches of their own, because churches run them through a check scanner (decision 54). Year-end gifts are sized from the giver's normal month. Refunds come last, after every gift, from streams of their own, so no gift changes: generated households' gifts get them at the calibrated rate, checks the bank returned among them, and the Cast gets only the ones its files design (see Refunds).
    • Uncommon gifts. Every non-cash gift has Rock's non-cash asset type and a summary for the statement. Generated households also give a few vehicles and pieces of equipment, each from a stream of its own, after the pattern's schedule is written (see Uncommon gifts).
    • Who pays how. Checks lean to older givers and larger gifts (PickChannel); a check writer who rarely comes mails their checks. Apple Pay leans young, and large online gifts lean to bank transfers. Scheduled shares are scaled so the measured share per cadence matches the profile.
    • Rhythm and amounts. Onsite givers often catch up after a missed Sunday with one larger check. People who give by hand online keep a usual weekday or day of the month. Hand-given gifts stray from the usual amount some of the time, schedules change amount now and then, irregular and occasional gifts spread widely, and a few givers give exact amounts. Some irregular givers have a small monthly schedule under their extra gifts. The largest givers sometimes give stock (a non-cash gift of Stocks And Bonds).
    • Crowd givers. Older givers sit higher on the annual giving curve, and the top 1% follow a long tail. A giver whose year is too small for weekly gifts gives less often instead. Givers start and stop inside the history window, which sets year-over-year retention.
  • Generated households. generation/CrowdGenerator.cs samples family size, ages, gender, marital status, activity, attendance frequency, giving cadence, and annual giving from the profile. Each household takes the next address for its campus from the address pool (generation/AddressPool.cs), and each generated mobile and business work phone takes the next number from generation/PhoneNumberPool.cs, so no two families share one (decision 259). The household still takes its old phone draw from its own stream, so the rest of it is unchanged. Its names are spike-only placeholders. The dataset manifest's generatedHouseholds.perCampus sets an exact count per campus (Core 3: 75 at Peoria and 75 at Gilbert). --crowd replaces that with households spread across every campus, with the main campus weighted 1.5.
  • Generated businesses. generation/BusinessGenerator.cs adds businesses to each campus with generated households, after their small groups are planned, so no group changes. A campus gets enough to reach its minimum (6 on the main campus, counting the Cast's, and 2 elsewhere) or the profile's share of giving units, whichever is more. Each takes the next pool address as its work address, an adult from its campus as a contact (sometimes a married couple), and a monthly, bi-weekly, or irregular giving pattern. loading/RelationshipsLoader.cs writes every business contact, Cast and generated, the way Rock's AddContactToBusiness does: the contact in the business's Known Relationships group, and the business in the contact's.

Every random choice comes from a stream named by the seed and the household, so a rerun with the same seed and anchor gives the same data (see What makes a load repeatable).

How small groups load

Every small group is a plan (model/SmallGroupPlan.cs): its leader and members, schedule, meeting place, topic, child care, test case, and life from start to end. One planner (generation/SmallGroupPlanner.cs) makes plans from households and the rules in ../configuration/small-groups.json. The design is in Small groups.

  • The Cast. The builder's --plan-cast-groups plans the Cast's groups and writes them to ../cast/groups, using this library's planner. It plans only main-campus households. Legacy groups keep their keys and Guids, pins hold what Cast stories say about each group (decision 321), and each new leader is marked Leading in the household files. A second run changes nothing. Its dates count back from a fixed planning year and every change it chooses is at least a year back, so the files never depend on the day you run it. A household's leaving a few weeks after it stopped coming is written as days ago, like the household's own last Sunday (decision 320).
  • Generated households. During a load, each campus's generated households get plans from the same planner (generation/GeneratedSmallGroups.cs). Households that still attend or give join at the profile's rate, never before four weeks after they started coming. A leader who launches a group from Ready to Lead comes from a family that attends. Every campus except the main one gets its own test groups; the Cast covers the main campus. A campus too small to fill its groups takes leaders from the fallback statuses and adds the households that came closest to joining (decision 55).

The configuration step sets up small groups in Rock (loading/SmallGroupConfigurationLoader.cs): the soft capacity rule, the Small Group purpose, the Host role, three group attributes, the eleven topics, the inactive reasons, and a parent group per campus. The small groups step (loading/SmallGroupLoader.cs) bulk-copies schedules, groups, meeting locations at the host's home, members, and attribute values.

Bulk copy skips Rock's save hooks, so the loader writes group history itself, the way Rock does: one row per state for each group, member, and meeting location, with the last row current. It also records weekly attendance on the church year. Groups meet in the fall and spring, stop after December 14, and meet in summer only when they say so. Holiday weeks are marked "did not meet". Spotty leaders record only some weeks. Nobody has attendance before they joined, after they left, or while their request is pending.

How serving loads

Serving teams are set up in the configuration step from ../configuration/serving.json (loading/ServingConfigurationLoader.cs): a "{campus} Serving Teams" parent per campus, every team at every campus, each team's rooms with its campus's service times and staffing, and the background check requirement. The same step sets up Rock's Involvement connection type and the eight serving opportunities from ../configuration/connections.json (loading/ConnectionConfigurationLoader.cs).

generation/ServingPlanner.cs plans the volunteers before people load, so a generated team's new leader loads as Leading. It reads the leaders the small group plans mark as launched from Ready to Lead (GroupLaunchCalendar.ReadyToLeadLeaders): each serves on a team by half a year before the day they were Ready to Lead, and never leads one (decision 322).

  • The Cast. The Phoenix rosters are hand-picked in ../cast/groups/serving-*.json, one file per team. Each file's Guid is the Phoenix team's Guid.
  • Generated households. Engaged and Leading adults in households that still attend serve at the profile's pctServe share of active adults. Each team gets a leader and at least two people, drawing on Connected, then Known, adults when a campus is small (decision 76). Couples often serve together.

Every volunteer gets a rotation (one of Rock's four schedule templates), a join date, and usually a preferred service and room, seeded by the person. The serving step (loading/ServingLoader.cs) bulk-copies the members with their rotations and member history, the preferences as GroupMemberAssignment rows, a few blackout dates, and every request to serve as an Attendance row on the team's occurrence for that room, service, and Sunday. Serving history covers the whole history window, like Sunday attendance. Past requests follow the family: a volunteer served on a Sunday their family came. Otherwise they were often not scheduled at all, or they declined with a reason, never answered, or confirmed and did not come. Every time they served, they checked in at the kiosk a few minutes before the service, through Rock's Volunteer Check-in template. The next six weeks mix confirmed, pending, and declined. Every confirmation and reminder is marked sent. Their background checks and requirement results come from the Background checks part (see How background checks load). A team too small for its configured staffing asks for about the people it usually has.

How connection requests load

The connection requests step (loading/ConnectionRequestLoader.cs) follows serving, because requests end in the memberships serving just loaded. The rules are in ../configuration/connections.json under requests, and the measured targets come from the profile's connections values. The design is decision 75.

  • Connected. Every volunteer who joined in the last two years gets the request that put them on their team, ending the day they joined. Time to connect is log-normal around the profile's median and 90th percentile.
  • Pending. A few people per campus connected in the last few weeks. Each gets a Pending membership on their team, which waits for the team leader to make it Active.
  • Active and inactive. People who are not serving ask to serve in the profile's state mix around the connected requests, more often in the busy months of its month pattern. Each campus also has one future follow-up and one request transferred from another team.
  • The Cast. Requests in the household files (connectionRequests) tell the Cast's stories and count toward their campus's mix.

Each request gets the activity history a connector would leave: assigned, calls and messages, meeting the team leader, shadowing, and connected. A Cast request can record a background check result on the person. Bulk copy skips Rock's save hook, so the loader sets the due date, due soon date, connected date, and on-time flag the way the hook does. Involvement uses Rock's Duration Per Status mode, so an open request's due dates run from its last status change, by that status's days in connections.json. Each active request draws whether it is due later, this week, or past due from dueMix, and its last status change is dated to match. A No Contact request never changed status, so its request date moves instead. Calibration leaves out the current month, so each No Contact request moved into it gets a stand-in: one more active request with another status, made on the day the moved request was first drawn, so the measured state mix and month pattern hold. Connected requests keep 7 and 5 days from the request. It also writes the person history the hook writes (added, status changed, connected, and state changed), so each request shows on the person's History tab. Each team leader becomes the default connector for their team's opportunity at their campus and a member of Rock's Global Connector Group.

How background checks load

The Background checks part (loading/BackgroundChecksLoader.cs, decisions 333 to 336) runs after connection requests, from ../configuration/background-checks.json. The configuration step adds Rock's Background Check Required requirement to the Small Group type's Leader role, beside the one on the Kids Ministry and Student Ministry teams.

The step reads back every member a Background Check Required requirement applies to, the way Rock's Calculate Group Requirements job finds them: active and pending members, not archived, in the requirement's role, of an active group that is not archived. It also reads every active request to serve in the Background Check status. Then generation/BackgroundCheckPlanner.cs gives each person one latest check:

  1. A Cast person in castWithoutCheck has none (Jerry Wright).
  2. A Cast person whose file has a Background Check Date has that check, and its result (Ted Decker, Bill Marble, Frank Dexter, and Daniel Peak).
  3. Under 18s have none. Rock's rule counts them as meeting the requirement.
  4. An adult on a team with the requirement passed a check 30 to 900 days ago.
  5. A small group leader's check is current, expiring, expired, or missing by the mix. Cast leaders are current.
  6. Anyone else whose request waits in the Background Check status has a check in progress, linked to the request. A story's finished check is linked to the request it was run for.

Each check is written the way Rock's Checkr provider writes it (ForeignId 2, the candidate and document keys, the package, and the webhook status), and a finished one sets Background Checked (True only on a Pass), Background Check Date, and Background Check Result, as Checkr's workflow does. Its report is a PDF drawn by generation/BackgroundCheckReportPdf.cs and stored in Rock's Background Check file type, as the check's response document. Every member then gets the result Rock's job would leave: Meets when Rock's "still valid" view holds them, Meets With Warning in a Pass's last 60 days, and Not Met otherwise, with the night each began. Verify runs Rock's real job and fails if it changes any result.

How benevolence loads

The Benevolence part (loading/BenevolenceLoader.cs, decisions 350 to 355) runs after reminders, from ../configuration/benevolence.json. It adds three types beside Rock's default one and locks every type to RSR - Benevolence and RSR - Rock Administration with SecurityRuleWriter. Then it writes the Cast's four requests and the generated ones: about 2 a year for every 1,000 generated adults, one per family, drawn by connection status. Each request copies the requester's name, email, phones, home location, connection status, and campus, as Rock's request block does. Dee Navarro is the case worker. Approved requests get their results, and approved rent, utility, car, and medical requests get an assistance agreement PDF drawn by generation/BenevolenceAgreementPdf.cs, stored in Rock's Benevolence Request Documents file type. Each church type also gets a Request Started trigger for the Benevolence Request Started workflow, written with WorkflowTypeWriter as a type that is not persisted: it gives a request with no case worker to Dee, through Rock's Entity Property Set action, and sends no email. The signed releases, the background check reports, and the agreements all draw with generation/PdfPages.cs and store with loading/BinaryFileRows.cs.

Streaks and achievements

loading/AchievementsLoader.cs creates the Kids Check-in streak type and the seven achievement types in ../configuration/achievements.json (decisions 57 to 60). Then it writes each child's streak and achievement attempts the way Rock would have computed them.

  • The streak type is weekly and counts every check-in under the Weekly Service Check-in template. It starts on the first Sunday of the history. Its occurrence map has a bit for each Sunday with any kids check-in. Attendance is on, as Rock sets it for a new streak type, so check-ins after install keep counting.
  • Streaks. Each child who checked in gets one streak on their primary alias. It starts on their first check-in week, and its map has a bit for each Sunday they checked in. Maps are as long as the occurrence map, as Rock's rebuild makes them. The current streak, longest streak, and engagement count are as of the anchor, because Rock's cleanup job refreshes them every day.
  • Attempts. Rock processes achievements each time a check-in saves a child's streak. It keeps successful attempts and rebuilds the rest, so a child's attempts end up as one run on their last check-in Sunday would leave them. Types run in prerequisite order, and a type whose prerequisite has no success gets no attempts. Nothing processes a child again after they stop coming, so an attempt still open then stays open. Failed attempts stay too, as they do in Rock.
  • Settings. Each achievement type's streak type and goal are attribute values on the type, as Rock's Achievement Type Detail block saves them. Its component settings JSON also names the streak type, and TargetCount holds the goal, which check-in uses to draw progress.
  • Check-in. The template's Achievement Types setting lists all seven types, so next-gen check-in shows each child's progress and badges.

The math lives in Rock's C#, so loading/RockStreaks.cs is a line-for-line port: the bit maps, week alignment, the streak counts, and the consecutive and accumulative components. Its header lists the Rock files it mirrors. The step runs right after attendance. It reads the check-ins the attendance step planned, held in memory, because Attendance's indexes are not rebuilt until after small groups. No later step reads what it writes.

Speed: Full 7 with a 17,000-household crowd has 2,893 kids and about 183,000 attempts, and the step takes about 1.3 seconds. Core 1 has 49 kids and 5,009 attempts. Most attempts are failed tries at Back-to-Back, Four-Peat, and Unstoppable, because each broken streak closes one.

Pledges

The building campaign (see Pledges) runs in three places:

  1. Configuration. loading/CampaignLoader.cs gives the campaign's fund and campus accounts the campaign dates, and points Rock's two pledge pages and default contribution statement at the fund.
  2. The plan, before giving. loading/PledgeLoader.cs turns each household's campaign entries into a pledge and a CampaignGiving for the giving pattern that pays it: a line factor, a stop date for a stopped pledge, and extra gifts. Then it draws generated pledgers from the Crowd and businesses until pledges reach the profile's share of giving units (decision 114), and plans theirs the same way. It writes the fund's goal into the fund's description now, in every load, because the fund is church setup (decision 126).
  3. Giving, then pledges. GivingLoader plans each pattern's gifts as before, then adds the campaign. The line is the pledge's share for the time since it started, spread over the usual gifts the pattern really gave, times the line factor. Extra gifts ride on the next usual hand-given gift within a month, or are gifts of their own. The campaign uses no random numbers, so every other gift is the same as without it. After giving writes its gifts, PledgeLoader writes the pledges. Both writes happen only when the Giving part loads (decision 126).

Giving analytics

The loader fills Rock's giving analytics as if Rock's Giving Automation job had run every night at 10pm, its default schedule. The job's last run is the night before the anchor. Rock's giving automation settings record that run, so Rock's next real run picks up only newer gifts.

The giving step also sets each campus's tithe metric, as Rock Cleanup does every night: the census median family income for each giving family's postal code (from the post-install job's AnalyticsSourcePostalCode), averaged per campus, times 10%. Only tax-deductible gifts in the last 365 days count. The query is Rock's, run as one update (GivingLoader.UpdateCampusTitheMetric).

  • Giving attributes (loading/GivingAnalyticsLoader.cs), for every person in a giving unit: first and last gift, percent scheduled, preferred source and currency, gift frequency (mean, standard deviation, and label), next expected gift, median gift, its spread (IQR), and the last classification date. Rock reclassifies a unit only on a night after a new gift. So each unit's values are as of the night after its last gift, and a lapsed giver keeps the values from back then.
  • Giving bin and percentile come from Rock's own stored procedure (spGivingAutomation_UpdateGivingBinsAndPercentiles), run as of the job's last run.
  • Journey stages (Non-Giver, New, Consistent, Occasional, Lapsed, Former), with the previous stage and the change date. The loader replays Rock's weekly Tuesday runs for a year. Then it runs Rock's own procedure (spGivingAutomation_UpdateGivingJourneyStages) for the last Tuesday and checks that Rock made exactly the predicted changes. The load prints the result.
  • Giving alerts (loading/GivingAlertsLoader.cs). The three alert types in ../configuration/giving-alert-types.json are Large Gift ($5,000 or more), Smaller Than Usual, and Late Gift. They are created as of 12 months ago, and the loader replays Rock's nightly run since then. Each night, each new gift is checked against every alert type, using the giver's last 12 months as of that night. Then every giver who gave in the last year is checked for a gift that has not come. A warm-up month before the 12 months absorbs the burst of late-gift alerts a church sees the day it sets alerts up.

The math for attributes and alerts lives in Rock's C#, so loading/RockGivingAutomation.cs is a line-for-line port. It keeps Rock's types, rounding, and value formats. Its header lists the Rock files it mirrors. Values are written the way Rock writes them: attribute values as Value text only (Rock fills the persisted values later), and alert numbers cut to the columns' decimal places.

Speed: with Full 7 and the crowd, the attributes take about 6 seconds and the alerts about 2. Core 1 takes under 1 second for each. Full 7 raises about 1,500 alerts a year: about 300 large gifts, 300 smaller than usual, and 900 late gifts (about one per giver who stops). Core 1 raises about 20.

Family analytics (eRA)

loading/FamilyAnalyticsLoader.cs fills eRA as if Rock's Family Analytics job had run every Tuesday at 8 PM, its default schedule, from the start of the history window (decision 323). The design is in Steps.

  1. Read. It reads every family and its members, each person's record status and primary family, the Sunday of each contribution with a tax-deductible line, by giving id, and the Sundays each family attended a group whose type counts as a weekend service: worship, the kids' rooms, and serving teams. It reads rows, not plans, so it always runs, after giving and before the data views, which read Last Gave.
  2. Replay. For each Tuesday, loading/RockFamilyAnalytics.cs, a line-for-line port of Rock's eRA procedure and job, works out the procedure's counts per family as of the previous Sunday, moves families in and out, and keeps each person's flag, start and end dates, eRA steps, and history lines. The last run is at the start of install day, so Rock's first run changes nothing (decision 324).
  3. Write. It bulk-copies the attribute values, the eRA steps with the history lines Rock's step save hook writes, each person's Core Steps completion, and the "Entered" and "Exited" history lines, as the job writes them with Write eRA History on. Then it turns the job on with Set Visit Dates off (decision 325).
  4. Rock's counts. It runs Rock's own spCrm_FamilyAnalyticsGiving and spCrm_FamilyAnalyticsAttendance from the text this Rock installed, with each clock call swapped for the install-day run (database/RockProcedureClock.cs), and refreshes the statistics of the tables they read first. They fill the giving and check-in counts and dates (decision 326). The load's run of Rock's attribute value save hook leaves their values as they wrote them.
  5. Check. With the Cast expectations on (the CLI and verify), it runs Rock's own eRA procedure, run as of install day, inside a savepoint, and warns if it would move a family or change a value. Then it rolls the procedure back.

Speed: Full 7 replays 158 weeks for about 2,900 eRA families in about 2 seconds, and writes about 11,800 eRA steps and 18,800 history lines in about 3. Rock's count procedures take about 27 seconds on Full 7 and 1 on Core 1. The check takes about 3 seconds on Full 7.

Peer network

loading/PeerNetworkLoader.cs fills Rock's Peer Network (decisions 328 to 332). The design is in Small groups.

  1. Setup. The configuration step turns Peer Network on for each group type in configuration/peer-network.json, with its strength and growth.
  2. Follows. Each campus pastor follows their campus's active small group leaders, and each staff member follows up to 25 people from their recent care notes, as Rock's Following rows (decision 330).
  3. Replay. loading/RockPeerNetwork.cs is a line-for-line port of Rock's Calculate Peer Network job and its two procedures. It runs the job's last two monthly runs: the 1st of the month before install day, with the groups and follows as they stood then, and the 1st of the install month, with them as they stand on install day (decision 329). The PeerNetwork table has no ForeignKey column, so its rows belong to the dataset through their people (decision 331).
  4. Check. With the Cast expectations on, it runs Rock's own two procedures as of the last run inside a savepoint, and warns if they would add, remove, or rescore any row. Then it rolls them back.

Speed: Full 7 writes about 166,000 rows, about 99,000 rising and 66,000 falling, and 558 follows. Core 1 writes about 2,600 rows and 15 follows.

Prayer requests

generation/PrayerPlanner.cs plans every request and what the prayer team did with it, and loading/PrayerLoader.cs writes it (decision 67). Every number comes from the profile's prayer section.

  1. Who asks. Adults who attended, gave, or were in a small group in the last year are active. Volume is 500 requests a year per 1,000 of them, about 10 a week. Anyone on an active record can ask, but adults who are not active are about a third as likely to. Each age band and gender gets its quota from the profile's mix of people who ask, and most people ask once. About 6% of requests come from guests with no person record, who leave only a name and email.
  2. When and what. Days follow the profile's month and weekday patterns, and times its hour bands. Each request gets a category by its weight in configuration/prayer.json and text from that category's pool in content/prayer: one request, some details, and sometimes a closing.
  3. Approval. The Cast's Prayer Administrator approves most requests within hours. Rock's approval stamps who and when, and sets the request to expire 14 days later, stored as a date. Requests whose approval would fall after install day still wait in the queue.
  4. Prayer. The prayer team is the Cast's Prayer Team plus about 3% of active adults, a few of them far busier than the rest. They pray through a request while it is approved and not expired, through the end of its expiration day, as Rock's prayer session shows it. Each prayer is a "Prayed" interaction in Rock's Prayer Events channel, with one interaction component per request, and PrayerCount is the number of them. Nobody prays for their own request.
  5. Flags, comments, and answers. About 2% are flagged partway through, which unapproves them, as Rock's flag limit does. Some requests that allow comments get Prayer Comment notes from people who prayed, and a few requesters reply. Some requests whose prayer window has ended get an answer, and a few are closed.
  6. Daily counts. Rock Cleanup keeps a daily count of interactions for channels with daily counts on, and Prayer Events is one. The loader runs Rock's own backfill and saves its last processed date, so Rock's first run finds nothing to do (validation/rock-lock.json tracks the Rock code).
  7. The Cast's own requests. cast/prayer-requests.json holds hand-written requests tied to Cast stories, loaded after the generated ones. Their timing comes from their state instead of a random draw: approved two hours after entry, expiring 14 days later, and prayed for at even steps while in the prayer session. The Cast's Prayer Team prays first, taking turns, and prays again on later days when the team is small. Ten are always entered 1 to 5 days before install, so even Core 1 and Core 3 show a full prayer list and prayer session.

Speed: Full 7 with the crowd has about 11,100 requests, 67,000 prayers, and 2,500 comments, and the step takes about 3 seconds. Core 1 has about 170 requests.

Speed

Load People Attendance rows (Sunday plus group) Gifts Time
Core 1 (83 Cast households) 181 12,331 plus 6,308 2,836 about 7 seconds (3.5 of them check images)
Core 1 plus a 2,000-household crowd 3,155 61,424 plus 39,961 12,230 about 11 seconds
Full 7 plus a 17,000-household crowd 25,316 377,612 plus 324,153 91,634 about 29 seconds (about 44 with check images)
Full 7 with its Crowd (16,800 households), every part 25,248 385,076 plus 322,543 91,250 about 173 seconds with check images

The last row was measured on 2026-10-28, after the speed pass, the median of three runs. Its time goes to communications about 106 seconds (37 of them one rebuild of its tables' indexes), check images 12.6, serving 7.6, the History index rebuild 6.6, people 5.8, giving 5.2, giving analytics 4.9, attendance 4.7, and every other step under 3. On 2026-10-26, before the speed pass, the same load took about 228 seconds. Before communications, the same load took about 55 seconds. The spike crowd rows were measured on 2026-10-16, before serving, prayer, notes, and steps were built, best of three, on a 16-core development machine with other work running. Then, a Full 7 load with check images spent its time like this: check images about 11 seconds (drawing on every core, then storing), small groups 5, giving 4, giving analytics 4, people 3.5, attendance 3.5, and giving alerts 2. Drawing checks is the floor: it is image rendering in the ImageSharp version Rock ships, already spread across every core.

What keeps large loads fast:

  1. Bulk copies take a table lock, which is safe on a fresh database inside one transaction.
  2. A copy of 10,000 rows or more turns the table's nonclustered indexes off and rebuilds just those afterward. That cut FinancialTransaction (21 nonclustered indexes) from 21 seconds to under 3.
  3. Sunday attendance and small group attendance both copy into Attendance, and its indexes are rebuilt once, after both.
  4. Giving analytics reads the gifts the giving step planned, instead of reading them back from the database.

Trying to draw checks in the background, alongside giving analytics and alerts, made the load slower: drawing takes every core, and SQL Server runs on the same machine.

Validation

See validation/. The first Full 7 run passed 55% of profile values. After one tuning pass it passed 74%, and 76% after the Cast grew to 83 households. The giving tuning on 2026-10-16 took it to 90%. Small groups added four graded values. With both, 260 of 291 pass (89%); giving passes 191 of 196, and small groups 3 of 3. Businesses added two graded values on 2026-10-19 (their share of giving units and of dollars): 261 of 293 pass (89%). Prayer added 87 graded values on 2026-10-20, and all pass: 347 of 380 pass (91%). Serving and connections added graded values on 2026-10-21: 373 of 412 pass (91%). The serving values pass; two holiday multipliers for adults (fall kickoff and Labor Day) and four months of the connection month pattern are a few points out. See Serving for the measures skipped on purpose.

Steps

Step Status
Configuration: connection statuses, service time slots, campuses, campus schedules, funds with campus child accounts, check-in rooms and Sunday service times Done
People: Cast families, people, aliases, family memberships (including shared children), home addresses with map points, and phones. Ages, grades, giving units, and statuses come from the anchor date. Done
Profile photos: every Cast person's delivered photo, and pool faces for generated households in Core 3, stored as Rock person images Done
Sunday attendance and kids check-in, generated on the real calendar Done
Small groups: the Cast's planned groups and generated groups per campus, with members, meeting places, attributes, history, and weekly attendance Done
Giving history, generated from personas and the calibration profile Done
Post-load fix-ups (primary family, giving leader, age brackets) Done, during the load
Spike crowd for speed tests and validation Done
Scanned check images, matching each gift, stored as Rock transaction images Done
Validation with the calibration scripts Done (91% of values pass)
Giving analytics: giving attributes, bins and percentiles, journey stages with history, and a year of giving alerts, the way Rock computes them Done
Kids check-in streaks and achievements, the way Rock computes them, shown at check-in Done
Serving: teams at every campus with volunteers, rotations, preferences, staffing, volunteer check-in, and scheduling history over the whole history window plus 6 weeks ahead; the Involvement connection type and eight serving opportunities Done
Connection requests to serve: connected, Pending, active, inactive, future follow-up, and transferred, with activities and default connectors, in the measured mix Done
Background checks: Checkr-style checks with PDF reports for kids and student volunteers, small group leaders, and requests waiting on a check, the person attributes they set, and the requirement results Rock's job would save Done
Benevolence: types locked to the benevolence team, the Cast's requests, generated requests with results, and signed assistance agreements Done
Prayer requests with an active prayer team: approvals, prayers, flags, comments, answers, and Rock Cleanup's daily counts Done
Notes on people: six note types with View security, hand-written Cast notes, and generated notes with replies, alerts, private and pinned notes, and mentions, each recent mention with the notification message Rock makes Done
Tags: organizational tags in their tag categories, staff members' personal tags, and Rock's Staff tag on every staff member, on Cast and generated people. See Tags. Done
Adult steps: Rock's Discipleship Path built out to seven step types, with steps from memberships, the giving journey, the Baptism Date, and class schedules, and program completions the way Rock's job records them. See How steps load. Done
Student steps: the Student Path, a new program with four step types from student check-ins (camps, trips, the Follow Jesus decision, and student leaders), student baptisms, and its program completions Done
Step workflows: Baptism Follow-Up and Follow Jesus Follow-Up tasks for every Baptism and Follow Jesus step completed in the last 12 months, open or completed by their assignee, and Volunteer Care Check-In for staff to start by hand. See How step workflows load. Done
Security roles: Cast people join the roles Rock ships, mapped in configuration/security-roles.json, and campus pastors are in the staff and pastoral roles Done
Logins: the Cast's, campus pastors' included, and a designed share of generated adults, all with the password chosen at install, with their person history and every person's account protection profile Done
Assessments: Rock's five, for staff, classes, leaders, and some active adults, with answers scored by a port of Rock's scoring, the person attributes they save, pending requests, and reminders where Rock's job would leave them. See How assessments load. Done
Reminders: the Cast's three and the ones staff and small group leaders set in the generated datasets, due, upcoming, complete, and repeating, with each owner's reminder count as Rock's Process Reminders job sets it. See How reminders load. Done
People, the rest: person attributes, relationships, follows, and the Cast's general groups Later (Phase 1)

Notes

loading/NotesLoader.cs sets up the six note types in ../configuration/notes.json. Rock's own Personal, Pastoral, and Phone types are updated in place, and Follow-up, Counseling, and Safety Alert are added. Each type gets View rules (allow its roles, then deny all users), and the new types get matching Edit rules.

Then it writes every note in one bulk copy with explicit Ids, so replies point at their parents:

  • Cast notes come from ../cast/notes, exactly as written, with their own Guids.
  • Generated notes go only on generated households, so Cast notes stay the same for tests. Each person's chance of having notes, and how many, come from personNotes.design in the profile. The type comes from the type's weight for the person's audience (guest, attender, or child). The day of the week and the hour come from the profile's measured mixes. The text is an opener and up to four details from ../content/notes, aiming for a length drawn from the profile's percentiles.
  • Authors. The main campus's notes come from the Cast staff, by each type's author weights. Other campuses' notes come from their campus pastor, named in configuration/staff.json, except phone notes and safety alerts, which the church office writes. No one writes a note about themselves or their own family.
  • Replies, alerts, private, pinned, and mentions follow the design rates. Counseling is confidential: its notes mention no one, and only its own authors reply.

Notes are stored the way Rock's note editor saves them: approved, with EditedDateTime set, a private note's caption set to Rock's "You - Personal Note", and text as HTML. A mention is Rock's <span class="mention" data-identifier="..."> with the staff member's alias IdKey, which is keyed by the server's DataEncryptionKey. Without a web.config, mentions are plain names. NotificationsSent and ApprovalsSent are set, so Rock's Send Note Notifications job never emails staff about old sample notes.

Mention notifications (decision 307). loading/MentionNotificationsWriter.cs writes the notification message Rock's Note Mention component saves for each staff member a note mentions, never for the note's author. Only mentions in notes from the last 89 days get one. Rock's message expires 90 days after its note, and Rock Cleanup deletes an expired message, so a message from 90 days ago would vanish on install day. A message from the last three days is unread, so the staff member's bell counts it, and every older one is read. A message keeps no audit columns, so Rock records no time it was read.

  • The rows. Each message has Rock's Note Mention type (web and mobile, key "mention") and the author's name as its title. Its text is Rock's sentence "You were mentioned in a {note type} about {person}." Its Key is "note-" and the note's Id. It has the note's time, an expiry 90 days later, and data that opens the person profile page at the note's anchor. The loader registers the component and adds the message type when this Rock has not, as Rock does the first time a note mentions someone.
  • Why the loader writes them. Rock makes these messages only from its Obsidian Notes block. A new Rock 20 or 21 still has the WebForms Notes block on the person profile, which makes none. So the rows are the ones the Obsidian block saves for a note on that page.
  • No key, no messages. A load without Rock's DataEncryptionKey writes mentions as plain names, which Rock never reads as mentions, so it writes no messages.

Speed: Full 7 writes about 61,000 notes and replies in about one second.

How reminders load

loading/RemindersLoader.cs writes the reminders in ../configuration/reminders.json and sets each owner's reminder count. Its step runs right after notes, because staff set reminders about the people they wrote notes on. The design is in decisions 295 to 298.

  1. The types. Every reminder uses one of Rock's two shipped reminder types, and none is added. A Personal Reminder points at the person's primary alias, which is how Rock's own job and blocks read it since Rock 16. A Group Reminder points at the group. Rock 20.0.10 and Rock 21.0.2 store reminders the same way.
  2. The Cast. Each Cast reminder loads as its file says, with its own Guid: its owner, the person or group it is about, its note, the day it was set, and its due date. A due date counts from the install day. It is some days ago, some days ahead, or some days before the next baptism Sunday (Easter or the July one), and never before tomorrow. A repeating one says its period and how many times it has been completed.
  3. Staff reminders. The notes part's rows are read back: notes from the last year on generated people, without replies. A staff member sets a reminder for a share of the notes they wrote, by type: 30% of follow-up notes, 18% of pastoral, 15% of counseling, 10% of phone, and 6% of personal. Safety alerts get none. Each is set a few minutes after its note and is due 3 to 45 days later.
  4. Group reminders. The leader of 30% of the active generated small groups sets one about their group. It is set on a day in the last 200 days, after they began leading, and is due 3 to 40 days later.
  5. Playing each one forward. Each generated reminder is followed from the day it was set to the install day. When its date passes, its owner completes it 0 to 3 days late, except that 35% of the ones due in the last 21 days are still due. 6% of Personal Reminders and 20% of Group Reminders repeat, every 14 to 90 or 7 to 30 days. Completing a repeating reminder moves it to the completion time plus its period and counts one more repeat, as Rock does, until it has repeated as many times as it may. A next date that would fall on the install day moves one day later, so no reminder that is not complete comes due during the install day.
  6. The rows. Each reminder is saved as Rock's reminder blocks save one: on the owner's primary alias, made and changed by the owner, with a due date that has no time of day, and a repeat count that starts at 0. A repeating reminder that has been completed keeps the time of its last completion, as Rock moves it.
  7. The count. Each owner's ReminderCount is what Rock's Process Reminders job sets: their reminders of an active type that are not complete and are due by the end of the install day. Rock's bell in the top bar shows a dot from this count and from unread notification messages. Issue 47 writes those messages, so reminders check only their own count. An owner whose reminders came due before, but none now, has 0, as Rock's save hook leaves them. An owner whose reminders have never come due has no count.

Ted Decker's check-in with Ashley Kelly is due the day before the install day, and it repeats every 30 days after 9 completions. Rock repeats a reminder a set number of days after it is completed, so it cannot keep one on the first of each month. The note names the first instead (decision 297).

Cast people get only their hand-written reminders. No generated reminder is about a Cast person or a group a Cast person leads, so Core 1 has exactly the Cast's three. Rock's Process Reminders job stays on, and verify runs it to prove its first run changes nothing (see Process Reminders).

The load prints how many reminders it wrote: the Cast's, personal and group, and due, upcoming, complete, and repeating. Then it prints how many people have reminders due.

How steps load

loading/StepsLoader.cs sets up the step programs in ../configuration/steps.json, Rock's Discipleship Path and the Student Path, and generation/StepPlanner.cs plans every step. The design is in Steps.

  1. The programs. Rock's program and its Baptism, Starting Point Class, Serve, and Small Group types are updated in place, by Guid: order, engagement type, impact weight, organizational objective, icon, and color. Foundations, Give, and Lead are added with a description and a call to action. The completion flow becomes Linear (Preferred), and Rock's prerequisite (Serve after Starting Point Class) stays. The Student Path is added in Rock's Discipleship category with its own In Progress and Complete statuses, named and colored like Rock's, and its four types.
  2. The facts. Small group and serving team memberships are read back from the database, so each step has its membership's dates exactly. A membership ends the day the person left, or the day the group ended while they were in it. Gifts come from the list the giving analytics replayed, so Give steps agree with the journey stage Rock shows. Active adults use the prayer step's rule. Student check-ins come from the attendance plan, the check-ins in the student service's check-in groups that the attendance step writes, so the Student Path follows whatever attendance is planned and is the same whether or not the Attendance part loads (decision 125).
  3. The plan. Each step type's source picks one planner method: membership (one step per membership, In Progress while a volunteer is Pending), giving-journey (Rock's stage rule run every Tuesday night over the history window), event (Student Camp and Mission Trip on their church-wide dates), decision (Follow Jesus, often at camp), school-years (Student Leader, from August to graduation), the three planned once per load by generation/StudentPathPlanner.cs and copied here (decision 206), baptism (the Cast's dates, generated adults at the designed rates, and students after a decision), and class (Starting Point Class and Foundations on their class schedules). A decision is dated from the camps, a student baptism from the decision, and classes from the other steps, so each is planned after them. A student step goes to a share of the students who could take it, counted for the Cast and the generated households on their own. Program completions follow Rock's Update Step Program Completions job, for each program.
  4. The rows. Program completions, then steps with explicit Ids that point at their program's completion, then attribute values: the Baptism Date and Baptized Here on the person, and Baptized Here on each Baptism step. Steps carry the date keys Rock's model fills, the person's primary alias and campus, and the group as the related entity.

A Cast story can set steps in its household file (steps): a class by how many classes ago it was, a camp or trip by its season and how many years back it was, or taken to let the usual rules date the step. The planner fails the load when a story cannot hold against the person's other records, such as a Starting Point Class after their first Serve step, or a camp in a summer the student was not in the student ministry.

The load prints each program's steps by type and completions, the share of students who took each student step of those who could, and how many baptisms are students'.

Speed: Core 1 plans and writes about 380 steps in about a quarter of a second.

How step workflows load

loading/StepWorkflowsLoader.cs writes the staff follow-up workflows in ../configuration/step-workflows.json. A step workflow is a Rock workflow that a step starts, or that staff start from a step. They belong to the Steps part, with no part or load step of their own. They load inside the steps step, right after the steps are written, because each workflow points at the step that started it. The design is in decisions 290 to 294, and the stories are in Steps.

  1. Campus leaders. Every load makes each campus's pastor its leader in Rock, with the people (CampusPastors.WriteLeaders). Rock's campus page shows them as Leader. Baptism Follow-Up finds the leader of the step's campus with Lava, so a baptism's task goes to that campus's pastor (decision 291).
  2. The types. loading/WorkflowTypeWriter.cs writes each workflow type the way Rock's workflow editor saves one. The After Starting Point flow's writer shares it. Alisha Marble built the three types 12 months before the install day. Baptism Follow-Up and Follow Jesus Follow-Up are filed under the church's Equip workflow category, and Volunteer Care Check-In under a new Contribute one. Each type is active and persisted, with no age limit, no completed workflow retention, and no log retention, so Rock Cleanup keeps every workflow (decision 294).
  3. The actions. Each type has one activity. It sets its person from the step, sets who gets the task, names the workflow, such as "Baptism Follow-Up: Josh Sanders", assigns the activity, and waits at a form. Baptism Follow-Up's task goes to the campus leader, Follow Jesus Follow-Up's to Isaac Silva, the Student Pastor, and Volunteer Care Check-In's to whoever starts it. The form shows the person and the fields, and its one button completes the workflow. No action sends email, and the form sends none.
  4. The triggers. Each trigger is saved as Rock's step type editor saves one: its step type and program, Step Completed or Manual, a blank qualifier, and the workflow type's name. Baptism Follow-Up and Follow Jesus Follow-Up start when their step is completed. Volunteer Care Check-In is a Manual trigger on the Serve step. Rock 20.0.10 and Rock 21.0.2 store and launch step workflows the same way (decision 290).
  5. The workflows. The Baptism and Follow Jesus steps the steps step wrote are read back. Each one completed since its trigger was built gets the workflow Rock would have launched a few seconds later: the step is its entity, nobody is its initiator, and a StepWorkflow row links them. Its first actions are complete, and it waits at the form. A task whose step was completed in the last 14 days is still open in its assignee's My Workflows list. Its assignee completed each older one, 1 to 9 days later for a baptism, or 1 to 7 for a decision, with the form's answers and sometimes a note from the file's pool (decision 292). A Follow Jesus task says the student is interested in baptism when they were baptized later. Volunteer Care Check-In has no history, because Rock links no step to a workflow staff start by hand.

Josh Sanders was baptized 60 days ago at the Phoenix campus. Aaron Mitchell, the Phoenix campus pastor, completed his Baptism Follow-Up three days later, with a note that his certificate went out. Dennis Perry was baptized ten days before the install day, so Aaron Mitchell has his open task. Isaac Silva has an open task for each Follow Jesus decision in the last 14 days, and some install days have none (decision 293).

Rock's Process Workflows and Rock Cleanup jobs stay on. Verify runs Process Workflows to prove it leaves every workflow as it was, and launches step workflows with Rock's own code to prove the types work (see Step workflow launch and Process Workflows).

The load prints each triggered type's workflows and how many are open, and lists Volunteer Care Check-In as "by hand".

How assessments load

loading/AssessmentsLoader.cs reads Rock's defined values for the assessments, generation/AssessmentPlanner.cs plans every request and result from ../configuration/assessments.json, and generation/AssessmentScoring.cs makes and scores the answers. The design is in Assessments.

  1. The facts. Classes come from the Starting Point Class and Foundations steps the steps step planned, and current leaders from the memberships it read back, so assessments need steps. Who is an active adult is the steps step's rule. Staff come from configuration/staff.json, with their start dates and supervisors.
  2. The offers. Each rule offers requests and self-started takes: staff, classes, leaders, and active adults, plus each Cast story's own takes. Every offer for one person and type runs through one state machine in date order, which skips a request while another waits inside the 60-day reminder window or within 365 days of a finished one (decision 266).
  3. The answers. For each finished row, the instrument for its type answers every question, leaning toward the person's target, and scores the answers with the port of Rock's service (decision 265). A Cast story's lean is drawn again until its gifts or letters come out on top. generation/RockAssessmentTables.cs holds Rock's question tables and constants, copied from Rock's source.
  4. The reminders. The planner replays Rock's Send Assessment Reminders job at 8 AM every day before install day and sets each row's LastReminderDate (decision 267).
  5. The rows. Assessment rows with explicit Ids in the order Rock created them, each with its answers in Rock's text, then the person attribute values each person's latest results saved. Rock's attribute value hook fills their derived columns after the last part (decision 249). No workflow rows are written.

The load prints how many assessments of each type are complete and pending, how many came from each rule, how many were reminded, and the most common DISC profiles.

Speed: Core 1 plans and writes about 170 assessments in about a quarter of a second. Full 7's 5,600 took about 6 seconds on 2026-11-16, while other loads shared the machine.

How staff attributes load

When configuration/staff.json has attributes (decision 201), the church setup adds them after the categories: each Person attribute in the Staff category, with its qualifiers, its security (each role allowed in order, then all users denied, as Rock's security editor writes them), and an Attribute Values block named Staff on the Extended Attributes page, set to the category. The people step then writes each loaded staff member's title, department, campus, bio, quote, supervisor, and start date, with the ValueAs columns Rock's save hook would set. A campus pastor whose campus is not in the dataset is not loaded and gets no values. Staff Photo is set by the photos step.

The org chart (decision 202) loads the same way. The church setup adds the units Rock does not ship (Campuses and Worship) under Organization, in Rock's Organization Unit group type. The people step adds each unit's leader in the Leader role and its staff in the Staff role, as active members added on their start date. A staff member whose campus is not in the dataset is left out.

Communications

loading/CommunicationsLoader.cs sets up how the church communicates from ../configuration/communications.json, and generation/CommunicationListPlanner.cs plans who is on each list. The design is in Communications.

  1. Phone numbers. Each system phone number, active and able to text, with forwarding off. A personal number is assigned to its staff member's primary alias. On the datasets the file lists, each campus pastor (loading/CampusPastors.cs, from configuration/staff.json) gets one too. The Crowd generator never gives a generated person one of these numbers.
  2. The template. The logo PNG becomes a Rock file, and the template's logo image points at it through GetImage.ashx, the way Rock's template editor saves an uploaded logo. The template carries the church's from name and address and its Lava fields. A second row holds the same design in the format of Rock's newer email editor, which the Communication Entry Wizard lists: Version 1 (NextGen), no Lava fields, and an image component for the logo file (decision 269). loading/EmailSectionsLoader.cs then writes that editor's four church sections from ../content/communications/email-sections.json, each with the markup and thumbnail in email-sections/, the way Rock's Save as Section dialog saves one, with the dataset's campuses and service times filled into Service Times. Their thumbnails and photos are Rock Communication Image files stored in the database (decision 301).
  3. The lists. One Communication List group per list, and one per campus for the newsletters, with Rock's Category and Public Name attributes. A public list is in Rock's Public category, and a private list may name one of the church's categories. Members are active recipients, with their preference on the list and the day they joined. Volunteers and Small Group Leaders come from the GroupMember rows serving and small groups wrote. A list whose rule is group-sync gets no members here; its sync fills it (step 9). Each person draws from their own seeded stream for each list.
  4. Bulk email. generation/CommunicationCalendar.cs dates every occasion, generation/MessageRenderer.cs fills each message's tokens and puts it in the template, and generation/EmailPlanner.cs schedules every send and walks them in date order, because a bounce or an unsubscribe changes who the later sends reach. loading/EmailWriter.cs writes each send as it is planned, in chunks of about 300,000 rows, with the recipient, session, interaction, and History indexes rebuilt once at the end. loading/BulkEmailLoader.cs then updates the people whose email bounced or who chose "No mass emails", with their History. Row Guids come from a 128-bit hash of each recipient's seed (SeededRandom.StableGuid), because 32-bit seeds repeat at a million rows.
  5. Texts. loading/SnippetsLoader.cs first writes the SMS snippets in ../content/communications/snippets.json, the way Rock's Snippet Detail block saves them: shared ones by the communications sender, personal ones by their owner, each campus's Service Times and each campus pastor's own only for the dataset's campuses (decision 299). generation/TextPlanner.cs plans the Cast's threads first, because a scripted STOP changes the mass texts after it, then the mass texts in date order with their replies and STOPs, then the generated conversations, where about a quarter of the staff's first replies about a snippet's topic are a snippet the staff member could insert, drawn from its own stream (decision 300). loading/TextLoader.cs writes each mass text and each staff text in a conversation as its own communication, with Twilio's recipient fields and SentMessage, the texts people sent as CommunicationResponse rows, and each STOP's opt-out on the person's mobile.
  6. One-to-one email. loading/OneToOneLoader.cs reads the loaded serving requests, connection activities, answered prayer requests, and first visits, adds the Cast staff's emails, and plans each one through EmailPlanner.PlanOneToOne, so bounces and preferences match bulk email. EmailWriter writes them, with the system communication on serving emails.
  7. Push. loading/PushLoader.cs writes the app site from configuration/church-app.json, its devices, and each push in the library once per campus and occasion, with Rock Mobile Push's recipient fields, History lines, and opens.
  8. Steps and the flow. CommunicationsLoader reads each class's people from the Step rows, so the email and text planners send class messages to them. loading/FlowLoader.cs writes the After Starting Point flow, its templates and messages, and an instance with its emails and conversions for each finished class.
  9. Group syncs. loading/GroupSyncLoader.cs writes each data view in configuration/group-syncs.json with its filter tree, as Rock's data view editor saves it, and registers any data filter component this Rock has not registered yet, as Rock's start-up would. loading/DataViewEvaluator.cs finds each view's people in SQL, following Rock's own filters and the install day's sliding date ranges. A group another step filled must already match its view, or the load stops. An empty group gets the view's people as active members, each added when Rock's Group Sync job would have added them. Each sync row is stamped as refreshed now, so the job's first run changes nobody and sends nothing (decision 187). This runs last, after every send has changed what it changes, such as email preferences.

Data views

loading/ReportingLoader.cs writes the church's layered data views from ../configuration/reporting.json in two steps. The Data views step runs after steps and before communications, because two group sync views are built on the foundations. A view that points at a registration view waits for the Reports step after registrations, which writes it and then the reports, run history, and metrics. The design is in Data views and reports.

  1. Categories. loading/CategoriesLoader.cs writes each category's security as Rock's security editor saves it: each allowed role, then "deny All Users" when the action is locked. It renames Rock's shipped Foundational Views category, found by Guid, to Foundational Views (Shipped).
  2. The named schedules. "Nightly at 2 AM", in Rock's Persisted DataView Schedules category, and "Weekly on Monday at 3 AM", in Rock's Metrics schedule category.
  3. The views. Each view is written after the views it points at. Every filter that points at a view saves it as its related data view, as Rock's editor does. An Existing Data View filter gets Rock's JSON with the other view's Id and Use Persisted on, a related data view filter gets the other view's Guid, and a steps filter gets Rock's Steps Taken settings for every step type in its stage, from steps.json. A view can return another entity (groups, pledges), be persisted on the named schedule or an interval, and use Rock's Family Members transformation. A persisted view's last refresh stays empty, so Rock's job persists it in its first minute. A view can name the Cast person who made it (createdBy), and the loader stamps them on the view and each of its filters, as Rock's save does (decision 306). Otherwise Rock records no one.
  4. Item rules. A view or report with its own security, such as Top Givers, gets its rules after it is written.
  5. Reports. Each report returns its data view's entity. A column is a property (its name), an attribute (found by key on the entity, stored as its Guid), a data select component with its selection, where a {dataView} placeholder takes a view's Guid, or Lava (Rock's LiquidSelect).
  6. Run history. loading/UsageHistoryWriter.cs gives each view and report the day staff made it, its run count since, and its last run, with each view made after the views it points at (decision 233). A usage entry gives one its own history, as for the retired Men's Retreat Invites.
  7. Metrics. loading/MetricsWriter.cs writes each metric with Rock's one default partition, filed in its metric category, and a value for each scheduled run from the week its stage view was made to install: the active people with a completed step of the stage by then (decision 234).
  8. Parts left out. A view that points at a view this load did not write, or matches a step type it did not write, is skipped, and so is every view and report built on it.

Adaptive messages

loading/AdaptiveMessagesLoader.cs writes the church's personalization segments and adaptive messages from ../configuration/adaptive-messages.json, with each adaptation's text from ../content/adaptive-messages/messages.json. Its step runs after the Reports step, when every data view is written. The design is in Adaptive messages.

  1. Segments. Each segment whose data view this load wrote, as Rock's segment editor saves one: active, refreshed daily, last refreshed now, not dirty, and with the editor's empty additional filters, which Rock's segment update needs. A segment built on a Finance view gets Finance's View rule, and Rock's segment Results page gets it too. loading/DataViewEvaluator.cs finds the people in each view, and each person goes in by their primary alias, as Rock's Update Personalization Data job puts them. PersonAliasPersonalization has no ForeignKey column; each row points at a segment that has one.
  2. Messages. Each message, in the church's adaptive message category, then its adaptations in order with their segments, dates, saturation, and Rock's adaptation attributes: Call To Action Text and Link, Summary, Details as Rock's structured content, and a copy of an approved event image as Summary Image. An adaptation with no event image gets a copy of its own image from ../photos/messages/manifest.json instead, when the image agent has listed one, and none until then (decision 341). A link to page:key becomes Rock's /page/Id link to that page.
  3. The homepage. An HTML Content block on the External Website homepage, in Section A, with the AdaptiveMessage Lava command enabled and its Lava from ../content/adaptive-messages/homepage.lava, with the category's Id filled in (AdaptiveMessagesLoader.Display.cs).
  4. Parts left out. A segment whose view was not written is skipped, and so is every adaptation that names it, because an adaptation with no segments shows to everyone. A message with no adaptation left is skipped. The Student Camp invitation needs the camp registrations, and the Built on the Rock message needs the campaign.

AdaptiveMessagesLoader.ShownAdaptation follows the rule in Rock's Lava command, so the Cast expectations can check which adaptation each Cast person sees. AdaptiveMessagesLoader.NotJudged says why a Cast row is not checked on a day: its adaptation is out of season, or the messages ahead of it fill the homepage's cards. Verify asks the same rule (decisions 343 and 344).

How signals load

loading/SignalsLoader.cs writes the person signals in ../configuration/signals.json (issue 45, decisions 279 to 283). Rock 20.0.10 and 21.0.2 store them the same way.

  1. The types. The church setup writes the four signal types, each at the next order after the last, as Rock's signal type editor gives them, so Safety Team Review is first and wins when a person has several. Each type's View and Edit allow its roles, then deny All Users, as Rock's security editor saves them. View shows a signal's note and end date, and Edit decides who can add one.
  2. The Cast's signals. Each signal in the file, with its owner, the person who added it, its note, the day it was added, and its end: never, a number of days after install day, or a number of days before it. An end is midnight, as Rock's date picker saves it. A signal whose person or staff member is not in the dataset is skipped.
  3. The Crowd's signals. Each campus with generated households gets six Care Team Follow-ups from its campus pastor, on Connected, Engaged, or Leading adults, one per household at most: one with no end, one that ends in the next few weeks, and four that ended in the last year. Each campus draws from its own stream.
  4. The top signal. Rock keeps each person's top signal on the person (TopSignalId, TopSignalColor, and TopSignalIconCssClass), and the Top Person Signal badge draws from them. The loader sets them as Person.CalculateSignals does: the first open signal by type order, then type Id. A person whose signals have all ended has none, as Rock's nightly Calculate Person Signals job leaves them.

The Safety Team Review data view in ../configuration/reporting.json names its type with a signalType leaf, and the loader writes Rock's Has Signal selection, the type's Id. Signals load in an always-on step after Adaptive messages, because they read only people and staff.

loading/PersonalLinksLoader.cs writes the bookmarks behind the icon beside Rock's search bar from ../configuration/personal-links.json (issue 46, decisions 284 to 287). Rock 20.0.10 and 21.0.2 store them the same way.

  1. Links. Every link is a Rock page, named by Guid and written as Rock's /page/Id, with the page parameter a detail page needs, such as a report's Id or a campus's Id. A link names the load part whose rows its page shows. The step checks each link's part against the parts this load wrote, and checks that its target row exists, and skips the link when either is missing. A section with no link left is skipped. A link's order counts up from 1 in its section, as Rock's link list adds them.
  2. Shared sections. Written as Rock's shared link editor saves them: shared, with no owner, made by Alisha Marble, and with View, Edit, and Administrate allowed to RSR - Rock Administration, WEB - Administration, and RSR - Communication Administration. Each section's View rule then allows only its roles and denies All Users, as Rock's security editor saves it.
  3. Personal sections. Each named staff member's section, and a My Campus section for each loaded campus pastor, are private to their owner for View, Edit, and Administrate, as Rock's bookmark menu makes them. Their links belong to the owner.
  4. Section orders. Each owner has an order for every shared section and every section of their own: their own first, then the shared ones in the file's order, dated once every section they order exists. Rock adds an order for each of these sections the first time a person opens their links page, so it finds none missing. Anyone else sees the shared sections they may view by name, as Rock shows a person who has not arranged them.
  5. The version Rock caches by. Rock's bookmark block keeps each person's menu in the browser and fetches it again only when a hash changes: of the newest ModifiedDateTime of the shared sections and links, of the person's own sections, links, and orders, and of the person's Guid. Every row has its ModifiedDateTime, from the day its owner made it. With none, Rock uses midnight today, which is also the version of a database with no links, so a browser that cached an empty menu that day would keep showing it.

Inside a running Rock, the shared version and each signed-in person's own version are kept in memory, and clearing Rock's cache does not reset them. So the person who installs through Rock's block, whose browser cached the empty menu on Rock's pages before the install, sees it until they sign in again. A database with people refuses a load, so they are the only one signed in, and every new sign-in gets the filled menu.

Tags

loading/TagsLoader.cs writes the church's tags on people from ../configuration/tags.json (decision 302). Its step runs in every load, after the Personal links step and before Logins. It follows the data views, because Jamal Pierce's tag draws from Ready to Lead. No step after it reads a tag. Rock 20 and Rock 21 store tags the same way.

  1. The tags. Each organizational or personal tag, as Rock's tag bar saves one: on Rock's Person entity type, with no qualifier, active, and made by its owner or maker createdDaysAgo days before install. An organizational tag sits in its tag category from ../configuration/categories.json, whose security the categories step writes (decision 303). A personal tag has its owner and no category. Rock's own Staff tag is found by its Guid and never changed. A tag whose owner or maker this load does not have is skipped, so a campus pastor's Coffee This Month loads only with their campus.
  2. Who carries each one. The Staff tag holds every staff member the load has. Each Cast person a story names carries their tag. A draw adds generated people, never Cast people, who match every rule it gives: campus, age, living alone, connection status, how recently their family first came, or a data view on install day. Then a percent tags each match by that chance, or a count tags that many (decisions 304 and 305). Each person's draw comes from their own seeded stream, so the same people are tagged however many others match.
  3. When. The tag's keeper tags each person after the tag was made, after the person's family first came, and before install day. Alisha Marble tags each staff member with Rock's Staff tag on their start date, or on her own first day for staff who started before her. When a tag sets taggedWithinDays, each person is tagged within that many days of install day. Rock records no tag history on a person. The loader stamps every person record with the install time, so the day a family first came is the earliest day the church knew them.
  4. The rows. One TaggedItem per person and tag, pointing at the person by Guid, with the tagger as its maker.

The load prints each tag, with its owner for a personal tag, and how many people it holds.

Staff homepage

loading/StaffHomepageLoader.cs fills Rock's staff homepage from ../configuration/staff-homepage.json, with the text in ../content/internal-news/updates.json. See Staff homepage.

  1. The weekly updates (the Content part). generation/StaffUpdatePlanner.cs picks each of the last 52 Mondays' feature and articles from the church calendar: the message library's occasions, and every calendar event, planned here on its own so the part needs no other. Each image is stored once and shared. Each update is a content channel item saved as Rock's editor saves one, with a global key and a slug by Rock's own rules, its feature attributes, and an Internal Article List matrix with an item per article. Rock's 2018 item becomes the oldest update in place.
  2. The metric tiles (always). A year of values for Active Records, Active Families by campus, and Active Connection Requests, on Rock's own schedules, each counting today's active people whose family had come by that day, or the requests open that day. Each metric's last run is its newest value.
  3. The block and Quick Links (always). The four Ministry Path metrics join the block's metrics, and the church's links follow Rock's own in the Quick Links block.

Duplicates

The Duplicates step comes after logins, the last step that writes people, and always runs (loading/DuplicatesLoader.cs, decisions 310 to 312 and 314; see Duplicates):

  1. Merges already made. For each merge in cast/duplicates.json, what Rock's merge leaves: the old record's alias on the person, a Merged line in their History by the staff member who merged, and the old last name as a previous name when it differs. The people step gave the old record the Person Id just below the person's, and no Person row has it.
  2. Rock's duplicate finder. It runs EXEC [dbo].[spCrm_PersonDuplicateFinder], the SQL of Rock's Calculate Person Duplicates job, with the job's 1,800-second timeout, and gives the pairs it writes the dataset's ForeignKey. About 10 seconds on Full 7.
  3. The Cast's decisions. Each decided pair gets its Not Duplicate or Ignore flag, the staff member as its last modifier, and a created date of 3 AM on the day they decided. A pair the finder did not score is skipped, and the Cast expectations report it.
  4. Merge requests. Each is Rock's Person Merge Request entity set: made by the requester, no expiration, the note, the Notify Me When Merged box in its settings, and one item for each person.

The verify tool then runs Rock's own job and fails if it changes any pair (see Verification).

Calendar

generation/CalendarPlanner.cs plans every event's occurrences from ../configuration/calendar.json, and loading/CalendarLoader.cs writes them. The design is in Calendar.

  1. Dates. Each event's rule gives its dates from the install day. Rules other features own come from their files: Easter, the baptism Sundays, the class schedules (ClassSchedule), and the camp and trip seasons from steps.json, VBS, the group launches, and Serve Sunday from communications.json, and Commitment Sunday from campaign.json.
  2. Occurrences. One per campus and start time, each with its own unnamed schedule: a weekly or monthly rule with no end, one date, a list of dates, a weekly rule with a count, or one multi-day block.
  3. What Rock's hooks set. Each schedule's effective dates, its ScheduleDate rows for now plus or minus two years, and each occurrence's next start, so Rock Cleanup finds nothing to fix.
  4. Rock's sample events. Rock's four sample events are updated in place under their Guids, and their old occurrences and schedules removed.
  5. Contacts. Named Cast staff, or each campus's campus pastor (CampusPastors). Aaron Mitchell, the Phoenix campus pastor, is the contact for church-wide campus events. Ted approves every event.
  6. Photos. PhotoLoader.LoadEventPhotos sets each photo listed in photos/events/manifest.json.

Speed: with a six-month window, Core 1 had 323 occurrences, Core 3 675, and Full 7 1,349. The 13-month window (decision 190) adds about 28, 55, and 99. The step takes well under a second.

Registrations

generation/RegistrationPlanner.cs plans every registration instance from ../configuration/registrations.json and the calendar's plan, and loading/RegistrationsLoader.cs writes them. The design is in Event registrations.

  1. Dates. An event's dates at one campus form a list: one per occurrence, or one per start of a monthly occurrence. An instance takes the next date (the first whose registration closes on or after the install day) or the last one before it, and opens rolling (the day after the previous date closed) or a number of days before the event.
  2. Linkages. Each instance links to its occurrence by the occurrence's Guid, which comes from PlannedOccurrence.Key, the same key the calendar step writes it with.
  3. Groups. Linked and placement groups are planned by key, so instances that name the same key share one group. Placement groups link to their instance through RelatedEntity with the purpose key PLACEMENT and the template placement's Id.
  4. What Rock sets. Templates copy their emails from Rock's Baptism template, eligibility goes in AdditionalSettingsJson the way Rock writes it, form fields carry Rock's empty visibility rules, and the four new categories get Rock's registration admin role.
  5. People. generation/RegistrantChooser.cs chooses who registers for each instance with a registrants rule, by its audience: students from the Student Path plan that DatasetLoader makes on every load (decision 206), and kids, couples, adults, and volunteers from the people and the small group and serving plans (decision 209). generation/RegistrantPlanner.cs does the rest the same way for everyone: when, who registered them, fees, answers, person attribute answers, discount, payments, payment plan, last payment reminder, and placements. loading/RegistrantsLoader.cs writes them: group members first, then batches, payment details, payment plans, transactions, registrations, registrants, fees, and attribute values, each with explicit Ids, then each person attribute a form answered, once per person. Payment details and transaction codes come from loading/PaymentMethods.cs, which gifts use too. A Cast household's registrations list pins a story, and the load fails when a pinned registrant does not meet the template's rules.
  6. Releases. loading/SignatureDocumentsWriter.cs writes the release each registrant on camp and the mission trip signed while registering: Rock's SignatureDocument with the text generation/SignatureLava.cs renders, the hash generation/SignatureVerification.cs ports from Rock, and a PDF from generation/SignedReleasePdf.cs, a small writer in the PDF standard fonts with no package (decision 212).
  7. Notes and history. loading/RegistrationHistoryWriter.cs writes the history and person notes Rock's registration entry writes as it saves, in Rock's words (decision 213).
  8. Data views. loading/DataViewWriter.cs, which group syncs use too, writes the registration data views under the church's Registrations category. A registration filter's selection holds the template's Id and the instance's Guid, so the loader fills it at load. loading/DataViewEvaluator.cs counts each view, and checks that every mission trip registrant was in its eligibility view on their registration day, which the planner ensures by replaying the view from the Student Path (decision 215).

Size on October 28, 2026: Core 1 has 13 instances and 53 groups, Core 3 21 and 112, and Full 7 33 and 205. Core 1's step took 0.6 seconds. With kids and adults on the same day: Core 1 has 58 registrations with 42 payments, and Core 3 115 with 91. Students alone are 7 and 18, with 23 and 48 payments, the same rows as before kids and adults were added. On October 29, the release forms, notes, and history add 7 signed releases, 114 person notes, and 590 history rows in Core 1, and 16, 198, and 1,181 in Core 3, with no change to the registrations.

Check images

Each giver has a wallet (generation/Wallet.cs): one card, one bank account, and a checkbook at a fictional bank whose routing number starts with 39 and fails the routing checksum. Check numbers count up per writer in date order, so the transaction code, the payment details' last four digits, and the check image all agree.

loading/CheckImageLoader.cs draws the front and back of each recent check gift with generation/CheckImageRenderer.cs (ImageSharp, the version Rock ships) and stores them as Rock transaction images. The front shows the writer's name (both spouses for a married couple), the family's address, the check number, the date, the church as payee, the amount in numbers and words, a memo from the funds, a signature, and the bank line. The back shows the church's endorsement stamp and the bank's processing line.

Each of the five fictional banks has its own logo and paper tint. Personal checks are handwritten (three handwriting fonts and two signature fonts, in blue or black ink, one style per writer). Business checks are typed by accounting software and signed by hand; businesses that pay by check mail theirs, so they land in "Mailed Checks" batches. A giving pattern can name its payment method (currency) and who signs (signer). Every font, including Open Sans, comes from ../content/fonts.

Check scanner fields: every check writer gets a FinancialPersonBankAccount row, and every check gift gets CheckMicrHash and a successful MICR status. Both use Rock's keyed hash with the PasswordKey from a Rock checkout's web.config (see --rock), which development sites run with, so scanning a sample check in that Rock site finds the person who wrote it. Each check gift also gets CheckMicrEncrypted (the bank line) and CheckMicrParts (routing, account, and check number), encrypted the way Rock's Encryption.EncryptString does it, with the web.config's DataEncryptionKey. loader/database/RockKeys.cs holds the copy; Rock's own Rock.dll decrypts its output. Real installs generate their own keys, so the loader inside Rock must use the server's keys.

Open batch for transaction matching: one recent "Sunday Offering Checks" batch at the main campus stays Open, as if it was scanned and nobody has matched it yet (decision 53). It is the Sunday with the most checks in the last six weeks. Its checks keep their amounts, check numbers, images, and bank line fields, but have no giver. The checks of Cast households with giving expectations stay matched, because one missing gift can change what Rock shows for them. Rock's Transaction Matching block decrypts CheckMicrParts, hashes the routing and account numbers, and finds the writer's saved bank account, so it suggests the right person for each check. Rock's giving analytics leave these gifts out until someone matches them, as Rock's job would. Without --rock or --web-config, the checks are still unmatched, but matching has nothing to suggest.

Speed: Core 1 draws its 390 or so checks in about 3.5 seconds. Full 7 draws about 3,500 checks (12 months) in about 11 seconds and stores them in about 2 seconds (269 MB). Images are color JPEGs (each bank has its own paper tint) and average 77 KB per check.

Spike shortcuts

These are deliberate, and they go away in the real loader:

  1. Configuration is written with SQL. The real loader saves configuration through Rock's services, so Rock's save hooks and caches run.
  2. The spike crowd uses placeholder names. The real Crowd uses the Content name lists. Addresses already come from the address pool (../addresses/pool.json); a placeholder street is used only if a campus runs out.
  3. The loader keeps its own copy of Rock's encryption in RockKeys.cs. Rock passes its own PasswordKey and DataEncryptionKey through DatasetLoadOptions, so the fields match the server, but inside Rock the loader could call Encryption.EncryptString itself.
  4. The real loader runs inside Rock, so it can call Rock's own math (GivingAutomationHelper) instead of the port in RockGivingAutomation.cs. It still needs the replay, because Rock's job only computes values as of today. The stored procedures are already Rock's own. The same goes for RockStreaks.cs: Rock's own streak and achievement code can run as of each child's last check-in, as the achievements parity test does.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.18 61 11/23/2026
0.1.0-alpha.17 62 11/17/2026
0.1.0-alpha.16 98 10/30/2026
0.1.0-alpha.15 59 10/30/2026
0.1.0-alpha.14 70 10/28/2026
0.1.0-alpha.13 71 10/26/2026
0.1.0-alpha.10 77 10/23/2026