Systems and records
Policy shift dataset sampling: three windows for every rule change
By SourceX Editorial · Updated
9 sections
Short answer
Policy shift dataset sampling should stratify on the rule in force, not the calendar. Screen each policy change for materiality, date it three ways (announced, effective and observed in the records), and draw a fixed minimum from the settled period before, the adoption window and the settled period after. Keep records whose governing rule cannot be dated in their own stratum, and check each sampled record against evidence made at the time.
System export
Policy shift dataset
Key takeaways
- Month strata spread the review budget evenly across time, so short rules and adoption periods get only a handful of records.
- Only changes that alter inputs, allowed actions, thresholds, authority, eligibility or outcome definitions earn their own stratum.
- Each material change has three dates; the observed one comes from the records, and a CUSUM chart helps find it.
- The adoption window is its own stratum because people apply old and new rules side by side there.
- Every sampled record needs dated evidence of the rule in force, and some configuration history expires, so capture it first.
What should policy shift dataset sampling stratify on?
Stratify on the rule regime each record was decided under, and give the transition around each material change its own stratum. Calendar months remain a useful balance check, but they are the wrong primary unit when the decisions a model must learn were shaped by rules that changed on dates of their own.
Most business dataset sampling plans start from the calendar because exports are organized that way. A refund ceiling, an evidence requirement or an approval threshold, though, changes on a Tuesday in the middle of a quarter, and the records on either side of that date teach different correct answers. A sample spread evenly by month treats a quiet stretch under a stable rule and the six weeks after a change as equally informative. They are not: the weeks after a change hold the confusion, the exceptions and the half-applied rules that an agent will meet again the next time the business changes its mind.
This guide gives a change-window design: a screen for which changes matter, three dates for each one, a worksheet that allocates records by window, a check of the rule in force for every sampled record and a limitations table to hand a buyer. It complements sampling across seasons, which the seasonal sampling guide covers; seasons and rule changes can be crossed when both matter.
Why calendar months under-sample the records that teach the most
An even spread by month gives each short regime only as many records as its length earns, so the windows that carry new rules end up with the least evidence. Take an illustrative 24-month archive of support refund decisions and a review budget of 240 records, which month strata spread at 10 per month.
Now add three illustrative changes: a higher refund approval limit at the start of month 9, a six-week holiday return exception running from the middle of month 15 to the end of month 16, and a photo evidence requirement at the start of month 17. Month strata put about 10 records in the month after the limit changed, about 15 in the whole exception period and about 15 in the six weeks after the photo rule. For an error rate near 20 percent, 10 records pin the estimate only to within about 25 percentage points either way at 95 percent confidence; 40 records narrow that to about 12. The arithmetic is the normal approximation for a proportion, and the archive and its counts are invented for the example.
Public evidence explains why those thin windows matter. Benchmarks graded against written policy make the rule part of the answer: the tau-bench paper (2024) tests agents that must follow domain policies while talking to simulated users and calling tools, and reports that gpt-4o succeeded on fewer than half of its tasks, with a pass^8 reliability score below 25 percent in the retail domain. Time also moves the target: Wild-Time (2022), a benchmark of five real-world datasets with temporal distribution shift, compared 13 existing methods and concluded that none closed the gap between in-distribution and later-period performance.
Anthropic's guide to agent evaluations treats each task as one test whose inputs and pass conditions are fixed in advance. When a rule changes, the success criteria change with it, so a sample that cannot say which rule governed a record cannot say what a correct answer was.
Which rule changes deserve their own stratum?
A change earns a stratum when it alters what a correct decision is; changes to wording, layout or contact details do not. The screen matters because every stratum costs review budget, and a policy log with forty edits a year would otherwise split the sample into slivers too thin to read.
At a glance
Which rule changes deserve their own stratum
Log the changes that fail the screen too, with the reason, so a reviewer can see they were considered. A rewording that staff read as a new instruction can still shift behavior, which is why the next step checks the records rather than trusting the document. Run every dated change through five questions and give a stratum to any change that answers yes to at least one:
- Inputs: does the decision now require evidence or fields it did not require before, such as a photo, a second quote or a signed form?
- Actions and thresholds: did the allowed actions, limits or amounts change, such as a refund ceiling or a discount band?
- Authority: did the role allowed to decide change, such as approval moving from a frontline agent to a team lead?
- Eligibility and routing: does a different set of cases now enter this workflow or reach this queue?
- Outcome definition: did the meaning of resolved, approved, won or closed change?
Three dates per change: announced, effective and observed
Every material change has an announced date, an effective date and an observed date, and the sample windows should follow the observed one. The first two come from documents. The third comes from the records: the week the share of affected decisions actually moved.
The three often disagree. A team that pilots a rule early moves the observed date ahead of the effective date; a rule that needed training, a system update or a new form moves it later. Interrupted time series designs, set out in a 2017 tutorial in the International Journal of Epidemiology, evaluate interventions introduced at a clearly defined point in time, and the tutorial notes that a phase-in period can be modeled as a gradual change in slope rather than a single step. Business rule changes rarely meet the clearly defined standard, so measure the transition instead of assuming it.
A simple method works for most archives. Plot the weekly share of the decision the change targets, such as refunds above the old ceiling or tickets with a photo attached, for 12 weeks either side of the effective date, then run a cumulative sum (CUSUM) chart over that series. NIST's Engineering Statistics Handbook notes that a Shewhart chart is the better tool for large shifts while a CUSUM scheme detects small shifts faster, and small, uneven shifts are the usual pattern when staff adopt a rule at different speeds.
Set the adoption window from the first sustained signal to the point where the weekly share stops moving. If no shift appears at all, record that: either the change did not matter in practice or nobody enforced it. Sample its window at the minimum anyway, because a rule that exists on paper but not in behavior is a finding a buyer needs to see.
The change-window sampling worksheet
Fill one set of worksheet rows per material change, then allocate the review budget by window rather than by month. Each change contributes up to three windows, settled before, adoption and settled after, and neighboring changes share a settled window. The illustrative refund archive therefore has six windows: before the limit change, its adoption month, the settled stretch, the holiday exception, the photo rule's adoption weeks and the settled period after it.
Give each window the same minimum, 40 records in the illustration, which uses the whole 240-record budget; with a larger budget, spend the remainder in proportion to each window's share of decisions. Keep every record's selection probability so estimates can be weighted back to the archive's real mix of time, because an unweighted average of an equal-allocation sample overstates the short windows. Draw distinct cases, not rows: a long incident or a heavy customer can fill a window with near-copies, so cap records per case or per customer inside each window. The worksheet below lists the fields every window needs:
| Field | What to record | Illustrative entry | Evidence that qualifies |
|---|---|---|---|
| Change and decision | The rule that changed and the decision type it governs | Refund approval ceiling raised for frontline agents | Dated policy version or configuration change |
| Materiality result | Which of the five screen questions the change meets | Actions and thresholds; authority | Screen answers signed by the reviewer |
| Three dates | Announced, effective and observed adoption dates | Announced in month 8, effective at the start of month 9, shift observed in week 2 of month 9 | Announcement record, policy version, weekly share chart |
| Window bounds | Start and end of the settled-before, adoption and settled-after windows | Adoption window ends when the weekly share stops moving | CUSUM output and the stopping rule used |
| Allocation and weight | Records drawn per window and each record's selection probability | 40 per window; weight equals window decisions divided by 40 | Sampling frame counts by window |
| Case cap | Maximum records per case or customer within a window | At most 2 per customer per window | Case and customer identifiers in the frame |
| Rule-in-force check | Evidence used to confirm the governing rule for each sampled record | Policy version cited in the approval note | A rung on the evidence ladder in the next section |
| Regime unknown share | Sampled records whose governing rule could not be dated | 6 of 40 in the adoption window | Reviewer log with a reason for each |
How do you confirm the rule in force for each sampled record?
Confirm it with evidence created at the time of the decision, ranked by how hard it would be to reconstruct afterward. Today's policy, a current help article or a manager's memory of when something changed are not evidence of the rule in force eighteen months ago; at best they point to where that evidence sits.
At a glance
How do you confirm the rule in force for each sampled record
Collect the fragile evidence first. Salesforce's help documentation says the Setup Audit Trail download covers an org's setup changes for the past 180 days and that older setup records are deleted, so the configuration behind an approval rule can disappear while the records it governed remain. Document histories can last longer: SharePoint in Microsoft 365 sets an organization default of up to 500 major versions per file with no time-based expiration, but changing that default does not alter limits already set on existing libraries, so check each library.
Datasheets for Datasets, the documentation framework from Gebru and colleagues, asks over what timeframe data was collected and whether that matches when the underlying data was created. The same question applies to policy: a record exported in 2026 about a 2024 decision must be read against the 2024 rule. Rank the evidence for each sampled record on the ladder below, and log which rung was used:
- Rung 1, system record: a configuration audit entry or a versioned rule table showing the setting on the decision date.
- Rung 2, dated document version: the policy or macro text as saved before the decision, from the document's version history.
- Rung 3, the record itself: a note, approval comment or form version inside the record that names the rule applied.
- Rung 4, dated announcement: an email, chat post or training notice that set the rule, which shows intent but not adoption.
- Rung 5, recollection: an interview that places the change in time, used only to locate rungs 1 to 4 and never as evidence on its own.
- No rung 1 to 4 evidence: assign the record to the regime unknown stratum, keep it in the sample and report its share by window.
Strongest alternative: is a large random sample enough?
A large random sample is enough only when no material rule changed during the period, or when the only question is behavior under the current rule. Otherwise it answers a different question: average behavior across regimes, weighted by how many decisions each regime happened to produce.
Size does not fix three problems. Repeated cases inflate apparent coverage, because a customer with dozens of tickets under one rule looks like dozens of independent examples. Selection enters through the rule itself: a stricter evidence requirement changes which cases reach the queue at all, so the post-change population is not the pre-change population with new labels. And failures that were never recorded do not appear in any volume of records, which a coverage claim has to say out loud.
Run the comparison rather than argue it. Draw the change-window sample and a simple random sample of the same size, then estimate the decision error rate per window from each. If the random sample's estimate for an adoption window rests on fewer than 15 distinct cases, it cannot support a claim about behavior under change. If every window shows the same error rate and the same decision mix, record that the changes did not alter behavior and that the simpler design was adequate; if they differ, the change-window sample is the one to report.
Coverage limitations to disclose with the sample
Disclose what the sample cannot see before a buyer relies on it; undisclosed gaps are how dataset coverage bias reaches a model. Name the population first: which systems, teams, years and decision types the frame drew from. A sample that represents one support queue under three rules says nothing about a queue the buyer plans to automate next year.
Each limitation below comes with the claim the sample can still support and the evidence that would remove the limitation:
| Limitation | How it shows up | What the sample can still claim | Next evidence needed |
|---|---|---|---|
| Undated policy versions | Regime unknown share above a few records per window | Behavior by period, not by rule | Recovered document versions or configuration exports |
| Behavior moved before the written rule | Observed date falls ahead of the effective date | Effect of the practice, dated from the records | Pilot notes or team-level announcements |
| Partial rollout | Only some teams or regions show the shift | Rule effect for the teams that adopted it | Team assignment history for the window |
| Short temporary rule | Window holds few distinct cases even at the minimum | That the exception was applied, not its error rate | A second archive or a longer exception period |
| Expired configuration history | Settings older than the retention window cannot be shown | Rules evidenced by documents or by the records themselves | Archived audit exports, if the company kept them |
| Repeated cases | A few customers or incidents fill a window | Estimates per distinct case after the cap | Case-level identifiers and a lower cap |
Asking for rule-change windows in a data request
Put the change log and the window design into the request itself, so a supplier can say early whether the history exists. Ask for the dated policy or configuration versions behind the decision you care about, the three dates for each material change, the regime unknown share per window and an acceptance test scored per window rather than on the pooled set.
SourceX does not keep datasets on a shelf. It sources them from U.S. businesses once a buyer has described what the data must contain, how much is needed, in which language and format, by when, and under what license. A description of the rule changes and the windows you need is among the most useful scope details a buyer can add, because it tells a candidate supplier which records, versions and dates must survive export. Whether a given company kept that history can only be shown from its own records, which is why the request should ask for the evidence rather than a promise.
Frequently asked questions
How many records should each change window get?
Enough to estimate the error rate you care about with useful precision. For a rate near 20 percent, 40 distinct cases give roughly plus or minus 12 percentage points at 95 percent confidence, while 10 cases give about plus or minus 25. Set one minimum for every window, spend any extra budget in proportion to volume, and weight the results back.
What if a policy change was never written down?
Date it from the records. Plot the weekly share of the affected decision, look for a sustained shift, then ask the people involved where an announcement or document version might sit. If no dated evidence turns up, label the change observed but undocumented and say so in the limitations table.
Should adoption-window records be used for training?
Use them with their window label rather than pooling them silently. Records from an adoption window mix old and new rules, which makes them poor examples of either rule but useful test cases for behavior during change. Many teams keep them for evaluation and train on settled windows.
Does change-window sampling replace sampling by season?
No. Seasons change who shows up and how much work arrives, while rule changes alter what the correct decision is. When both matter, cross the two, as the seasonal sampling guide describes, and keep the change-window minimums inside each season.
How long do business systems keep evidence of configuration changes?
It depends on the system and its settings. Salesforce documents a 180-day Setup Audit Trail download, after which older setup records are deleted, while SharePoint's default organization setting keeps up to 500 versions of a file with no time limit. Export the short-lived evidence before anything else.
Sources
- The tau-bench paper (2024) tests agents that follow domain policies with simulated users and tools; gpt-4o succeeded on fewer than half of tasks, with pass^8 below 25 percent in retail. Source
- Wild-Time (2022) benchmarks five real-world datasets with temporal shift and finds that 13 existing methods do not close the gap to later-period performance. Source
- Anthropic's agent evaluation guide treats each task as one test with fixed inputs and pass conditions. Source
- A 2017 International Journal of Epidemiology tutorial describes interrupted time series for interventions at a clearly defined point in time and modeling a phase-in as a gradual slope change. Source
- NIST's Engineering Statistics Handbook: the Shewhart chart is superior for large shifts and the CUSUM scheme is faster for small shifts. Source
- Salesforce Help: the Setup Audit Trail download covers the past 180 days of setup changes, after which setup records are deleted. Source
- Microsoft Learn: SharePoint's organization default keeps up to 500 major versions with no expiration, and changing it does not update existing libraries. Source
- Datasheets for Datasets asks over what timeframe data was collected and whether it matches the creation timeframe of the underlying data. Source
Tell us what data you need
Share scope, volume, format, timing and licensing needs. Datasets are sourced on request.