pulse synth from-profile
Audience: CLI users topping up a real cohort with synthetic rows whose per-field distributions match it — a tagged, source-preserving augmentation, not a full anonymised replica.
pulse synth from-profile reads a profile JSON captured by
pulse profile create, reads the --source
cohort the profile was captured from, and writes a new .pulse
file combining every real row from --source with --rows newly
generated rows — or, with --synthetic-only, the generated rows
alone. The profile itself retains no individual rows from the
source; only summary statistics drive generation.
Privacy: a profile-derived twin is not differentially private and carries no formal privacy guarantee — the summary statistics leak rare categorical values, percentile ranges and model structure, and a generated row can repeat a real one. The report’s
disclosuresection (exact-match rate, distance to closest record) is an audit aid, not a guarantee.
LLM agents using MCP: see the
synthetic-dataskill.
Synopsis
pulse synth from-profile --profile FILE --source FILE --output FILE --rows N
[--seed N] [--fidelity-report FILE] [--fidelity-model FILE]
[--synthetic-only] [--constraints FILE] [--max-rejection-rate F]
[--disclosure-sample N] [--no-disclosure]
[--rules FILE] [--emit-spec FILE] [--json]
Flags
Each flag’s help text is in the Command & flag reference; the sections below explain them.
--rows is required (unlike from-schema, which can pull it from
the spec) because the profile does not carry a generation count of
its own. --rows is always an explicit count of new rows to
generate, never a “top up to N total” target — --rows 500 against
a 200-row --source cohort produces a 700-row output (200 real +
500 synthetic), not a 500-row output.
Provenance tagging and the new-file-only contract
Every output cohort gains one appended field, _synthetic
(packed_bool): false on every row copied from --source, true
on every newly generated row. This is the only schema difference
between --source and the output — every other field is carried
through unchanged, in order.
--synthetic-only: a twin with no source rows
--synthetic-only writes the generated rows alone — the file to share.
The output has no _synthetic column (every row would be true) and
carries the source’s own schema: the same fields, in order, with the
same descriptions. Its dictionaries hold only the values the generated
rows use, so a category only the source holds is not written. --rows
is then the output’s whole row count.
--source is still required and still read. The profile must line up
with it field for field, and --fidelity-report still compares the
generated rows with the source rows. The report is built from a tagged
cohort held in memory and never written, so it is byte-identical to the
report the tagged run writes at the same seed. --fidelity-model refits
on the source and on the whole output.
pulse synth from-profile -p cohort.json --source cohort.pulse \
-o twin.pulse --rows 20000 --seed 7 --synthetic-only \
--constraints constraints.json --fidelity-report fidelity.json
--output must always be a path distinct from --source.
synth from-profile never opens --source for write and never
mutates it in place — an --output that resolves to the same file
as --source is refused outright, and the source cohort’s bytes and
modification time are unchanged by a run.
Inspecting and modifying the derived spec
synth from-profile derives a synth.Spec from the profile and
generates from it in one breath. Two additive flags open that step up.
Both absent, behaviour and output bytes are unchanged.
--emit-spec <path>
Writes the spec that actually generated as indented JSON. It is the
real spec, not a summary of it: fed to
synth from-schema at the same --seed it
reproduces the same rows.
pulse synth from-profile -p cohort.json --source cohort.pulse \
-o out.pulse --rows 20000 --seed 7 --emit-spec derived.json
It is the authoring aid — writing {"when": "familiarity == 1", …}
requires knowing the field is called familiarity, that it is a u4
and that its floor is 1, and nothing else prints any of that — and
equally the diagnostic. The emitted document is the only place a
reader can see:
- which captured
modelssurvived translation onto the spec, - which distribution each field reconstructed to (
normal,bernoulli,mixture,weighted_categorical,constantfor a column the profiler could not summarise), - which conditional pairs were retired, and which survived.
A loss there leaves a plausible-looking cohort behind and nothing else shows it. The spec is written before generation runs, so a run that then fails still leaves the document.
--rules <path>
Loads a standalone rules document and applies it to the derived spec. Without it the whole structural-rules layer is unreachable from the profile path.
The file is the rules array itself — a bare JSON array of rule
objects, identical to the rules key of a from-schema spec, so a rule
moves between the two by cut and paste:
[
{"when": "aware == 0", "set_null": ["perception_1", "perception_2"],
"owns_nulls": true},
{"null_together": ["nps", "nps_reason"]}
]
A gate applied to a PROFILE-DERIVED spec almost always wants
owns_nulls.
SpecFromProfile carries each field’s CAPTURED null_rate, which is a
marginal already inclusive of every row the gate removed, so without the
flag the gate’s absences and the field’s own draw compose and the
generated rate lands well above the captured one — measured on the
motivating profile at 0.4369 against a captured 0.2526. The flag
discards the field’s own draw; profile create --suggest-rules writes
it on every gating candidate for the same reason.
pulse synth from-profile -p cohort.json --source cohort.pulse \
-o out.pulse --rows 20000 --seed 7 --rules rules.json
Merge semantics are REPLACE, not append. SpecFromProfile derives no
rules, so there is nothing to append to; an append mode would only create
an ordering question no caller has asked. An empty array ([]) is a legal
document meaning “no rules”; a {"rules": [...]} wrapper is refused
rather than read as zero rules, because a run with every gate silently
missing is the exact failure eager validation exists to remove.
Validation is eager and runs before generation. Every refusal names the
file in details.path alongside the rule index, because an analyst
editing a rules file beside a spec beside a profile needs to know which
document is wrong:
| Fault | Code |
|---|---|
| A rule names a field the derived spec does not carry | PULSE_SYNTH_RULE_FIELD_UNKNOWN |
A when or set_expr does not compile | PULSE_SYNTH_RULE_EXPR_INVALID |
A set literal the target cannot hold | PULSE_SYNTH_RULE_VALUE_INVALID |
| The file is not readable | DATA_FILE |
| The file is not a JSON array of rule objects | SERVICE_VALIDATION |
The rule-specific codes are the spec parser’s own, not a leaf
placeholder, so pulse errors lookup PULSE_SYNTH_RULE_FIELD_UNKNOWN
carries the recovery prose. A refused file generates nothing.
--constraints <path> and --max-rejection-rate
--constraints loads row constraints from a standalone JSON file: a
bare array of {"expr": "..."} objects, the same shape as a spec’s
constraints key. The constraints replace any the derived spec
carries (a derived spec carries none). A generated row that fails any
constraint is drawn again. The expressions are the rule-expression
language (round, isnull, row(), lag()), except that a
constraint cannot draw. Every expression is compiled against the derived
spec’s fields before anything is written. A refusal names the file in
details.path: an unknown field is SERVICE_VALIDATION, a uniform()
or bernoulli() call is PULSE_SYNTH_RULE_DRAW_INVALID, and a
misspelt key is PULSE_REQUEST_UNKNOWN_FIELD (the file rides
details.file).
[{"expr": "region != \"apac\""}, {"expr": "isnull(spend) || spend > 0"}]
--max-rejection-rate sets the ceiling on the fraction of drawn rows
the constraints may reject, in [0, 1). The default, 0, means 0.5. After
the first 64 draws, a run that rejects more than the ceiling is refused
PULSE_SYNTH_CONSTRAINT_INFEASIBLE, and nothing is written. Both flags
merge before --emit-spec writes, so the emitted spec carries them and
synth from-schema reproduces the run. Constraints reach generated rows
only: copied source rows are never tested.
What a rule retires from the derived spec
A rule that determines a field takes it away from everything
upstream that was going to produce a value the rule overwrites. The
field’s captured linear model stops being applied, any conditional
pair naming it is dropped, and it stops being a
residual_correlations participant. Each loss is warned:
conditional relationship conflict: field "promoter" is already claimed by
structural rule 0 (set_expr); dropping linear model
residual correlation(s) naming [promoter] dropped: the field carries no
surviving linear model, so it has no residual to correlate; the
remaining participants still correlate
That is not primarily about saving work. The fidelity report’s
models
section asks generation’s own compiler which models ran, so without the
retirement a rule-overwritten field would ship a captured-versus-recovered
coefficient delta for a value nothing kept — every number rendering,
and nothing on the report saying it describes something that did not
happen.
Which rule shapes retire a field, and which deliberately do not:
| Rule | Retires? | Why |
|---|---|---|
set / set_expr with no when | yes | writes every row |
any rule carrying a when | no | writes only some rows; the model still produces the value the rest keep |
set_null, at any conditionality (with or without owns_nulls) | no | it removes a value rather than supplying one — if gate then null else inferred needs the model to produce what the non-gated rows carry. owns_nulls suppresses the field’s own NULL DRAW and claims nothing: the value is still the model’s |
null_together | no | copies one null decision; supplies no value |
set_expr reading its own target | no | it transforms what generation produced rather than determining it |
The last row is why the documented pre-rounding remedy
{"set_expr": {"nps": "round(nps)"}} is safe — retiring nps there would
leave the rounding applied to a bare marginal draw. The reference is
detected on the parsed expression, so a field named nps_reason
elsewhere in the expression is not mistaken for one.
Measured on the 381,324-row survey cohort: an unconditional
{"set_expr": {"promoter": "nps >= 9"}} takes the applied models from 55
to 54, drops promoter’s 54 residual-correlation pairs, and removes its
models fidelity entry. A set_null over the same field changes none of
the three.
One consequence worth knowing: a rule that retires a model also removes that model’s per-row random draw, so a spec with such a rule generates a different row sequence from the same spec without it. The determinism contract is unaffected — same spec and seed still reproduce the same bytes — and the change is always announced by the warning above.
The two compose
pulse synth from-profile -p cohort.json --source cohort.pulse \
-o out.pulse --rows 20000 --seed 7 \
--rules rules.json --emit-spec derived.json
The emitted spec carries the merged rules, so the loop is emit → read →
write rules → apply → emit again to check what they became. --emit-spec
never changes the generated cohort; it is a pure diagnostic.
A rule that never fires says so
A rule naming a mistyped field or carrying an uncompilable expression is
refused at spec parse. A rule whose when is simply never true is
refused by nothing: it validates, it compiles, it applies to no row, and
the cohort generates cleanly with the structural fact still absent.
Every rule’s firings are counted during generation, and a rule that applied to zero generated rows is reported — as a kind needing attention, so it leads the stderr summary however many expected-outcome lines sit below it:
! rule never fired (1)
rule 2 never fired: when "respondent == 0.5" was true on 0 of 20000
generated row(s), so the rule applied to nothing; it compares
"respondent" (u64, normal), whose row value is PRE-ROUNDING — the
file holds round(v) — so normalise first (an earlier rule setting
round(field)) or compare a range
The count is over rows that reached the file: a row a constraint rejected was re-drawn and left no trace, so it is not a firing. A rule that fires on every row, and one that fires on some, are silent.
The message names the cause that applies to THAT rule
There are three arms, and the line picks between them from what the compiled spec says about the fields the predicate reads — on a survey cohort most fields round on write and draw exact values, so pre-rounding is rarely the cause (figures).
| Arm | Reached when | What it says |
|---|---|---|
| constraint | the rule DID select rows and a constraint rejected every one (recorded, not inferred) | the cause is the constraint; relax it or widen the rule |
| pre-rounding | the predicate reads a field that rounds on write and draws continuous values | normalise with round(field) in an earlier rule, or compare a range |
| neutral | neither | names each field it reads with its type and distribution, and explicitly rules pre-rounding OUT for a field whose row value already is the stored value |
A field rounds on write when it is u4/u8/u16/u32/u64, date,
datetime or packed_bool. It still draws exact values — so pre-rounding
cannot be the cause — when its distribution is discrete, bernoulli,
uniform_date, uniform_datetime, poisson or monotonic_from. A small-integer column
reconstructs as discrete and a packed_bool as bernoulli
automatically, so on a survey cohort the neutral arm is the common one:
rule 0 never fired: when "familiarity == 99" was true on 0 of 2000 generated
row(s), so the rule applied to nothing; it reads "familiarity" (u4, discrete),
and only the values those fields actually generate can match it — check the
predicate against each field's own reconstruction; pre-rounding is NOT the
cause for "familiarity", whose row value already is the stored value
When pre-rounding IS the cause, the remedy is round, not int
The row holds the sampler’s float and the wire holds round(f), so a
<= k gate selects only the draws whose float is already at or below k.
An integer field is stored as floor(v+0.5), so round(v) is the one
expression that reproduces the value the file holds, and int(v) widens
the gate by moving VALUES down instead.
Measured at 20,000 rows and --seed 7, against the
smallest spec that still carries the hazard — a hand-authored continuous
distribution on an integer field, which is one of the three live cases
listed below:
{"row_count": 20000,
"fields": [
{"name": "score", "type": "u8", "nullable": true, "distribution": "normal",
"params": {"mean": 5, "std": 2.5, "min": 0, "max": 10}, "null_rate": 0.1}],
"rules": [{"when": "!isnull(score) && score <= 1", "set": {"marker": "fired"}}]}
| gate | rows it fires on | wire score <= 1 | stored level 0 / 1 |
|---|---|---|---|
score <= 1, un-normalised | 1,000 | 1,480 | 659 / 821 |
behind {"set_expr": {"score": "round(score)"}} | 1,480 | 1,480 | 659 / 821 — unchanged |
behind {"set_expr": {"score": "int(score)"}} | 2,140 | 2,140 | 1,000 / 1,140 — rewritten |
round reaches exactly the population a reader sees in the file and
stores the same column it would have stored anyway; int gets its extra
660 rows by rewriting the score of every respondent whose draw had a
fractional part. All three run silently; only the fully-empty case is a
warning.
How big the gap is depends on the field’s SPREAD, not just its type.
The divergence band is the half unit either side of the threshold, so a
WIDE integer column is live in principle and immaterial in practice: on
the same tree, catSpend (u32, 0–150,000, std 11,672 — over the
discrete cap, so it reconstructs as a clamped normal) fired on 7,872
rows un-normalised, 7,872 behind round() and 7,872 behind int(), all
three matching the wire count exactly. The three cases where it bites are
an f32/f64 column, a NARROW integer column drawn from a continuous
distribution, and any gate whose threshold sits where the density is high.
A small-integer column reconstructs as discrete, whose row value
already IS the stored level, so round() over it changes nothing (see
the discrete marginal).
If many rules never fire the listing is capped at 20 with a counted
+N further rule(s) never fired line, the same bound the thin-level and
thin-residual-pair listings use.
Determinism
Same (profile, source, seed, rows) tuple → byte-identical output.
Seeds are int64; default 0.
Fidelity report
--fidelity-report <path.json> writes a JSON document after
generation completes, comparing the newly generated rows against the
source cohort’s rows inside the one tagged output. It reuses the
existing statistical-test operators rather than new comparison math.
Every scalar field type is scored in fields[], with the statistic
that fits it:
| Field type | Test | Effect size | Why |
|---|---|---|---|
u4 … u64, f32, f64, decimal128 | TEST_KS (split_by: _synthetic) | Cohen’s d (none for decimal128) | a u4 reconstructs from the same per-level histogram a u8 does, so it reads on the same scale |
date | TEST_KS over epoch days, plus shape (no hour_tvd) | Cohen’s d | a trend or season lives in the month volume a line cannot see |
datetime | TEST_KS over epoch seconds, plus shape | Cohen’s d | KS and d read instants as one line; a planted schedule lives in the daily and weekly cycle |
categorical_*, packed_bool | TEST_CHISQ (contingency against _synthetic) | Cramér’s V | for a packed_bool the 2x2 χ² is the two-sample proportion test, and V = |phi| |
A datetime entry’s shape is {"clock", "hour_tvd", "weekday_tvd", "month_tvd"}:
the total variation distance (0 = the same cycle, 1 = no shared bin)
between the partitions’ hour-of-day, ISO-weekday and calendar-month
histograms (month_tvd reads the volume trend and season the profile’s
months series rebuilds as month_weights), read on the clock the
datetime was generated on — the clock its profile was captured on.
"clock": "utc" when the spec field names no zone (or a UTC-equivalent
one); "clock": "local" with "time_zone" (one fixed zone, from
profile create --time-zone) or "time_zone_field" (each row read in
its own zone, from --time-zone-field or the cohort’s default zone
field) beside it. Both partitions are read on that one clock. A reading
whose zone cell is null has no local clock: it is left out of every bin,
never read on UTC, and the report’s warnings gives the source and
synthetic counts (capture leaves the same readings out). A zone field the
compared cohort does not carry (an "output": false helper) falls back
to utc with a warning. Measured: the same days drawn at
evening instead of morning hours read d = −0.06 (very small) and KS
p = 0.07, with hour_tvd 1.0.
A date entry’s shape is {"clock", "weekday_tvd", "month_tvd"}: a
date names a day, not an instant, so it has no hour bin (hour_tvd is
absent) and no zone ("clock" is always "utc"); its weekday and month
are read off the epoch day, on the same month bins a datetime uses.
Measured on a two-year trend with a summer peak (5,000 rows): the twin
rebuilt from the profile reads month_tvd 0.028, the same twin with its
month_weights stripped 0.19.
set_* fields have their own set_fields section (skill synth-set-fields): per option
the selection rate on each side, plus an effect_size — V of the
option’s 2x2 table (selected or not, by partition).
A vector field (vec_f32 / vec_f64) gets its own vector_fields
section instead: per element the source and synthetic mean, std and NaN
rate with their deltas, and over the element correlation matrix the
number of pairs measurable on both partitions, the mean and the maximum
absolute correlation delta and the worst pair (max_correlation_pair,
1-based). A vector wider than 64 elements reports correlation_skipped.
"vector_fields": [{"field": "rating", "source_n": 3600, "synthetic_n": 3612,
"elements": [{"element": 1, "label": "price", "source_mean": 3.1, "source_std": 1.2,
"synthetic_mean": 3.09, "synthetic_std": 1.21, "mean_delta": 0.01,
"std_delta": 0.01, "source_nan_rate": 0, "synthetic_nan_rate": 0}],
"correlation_pairs": 3, "mean_correlation_delta": 0.02,
"max_correlation_delta": 0.04, "max_correlation_pair": [1, 3]}]
Shape:
{
"source_rows": 200,
"synthetic_rows": 500,
"fields": [
{"field": "score", "test": "TEST_KS", "result": {"type": "TEST_KS", "statistic": 0.04, "p_value": 0.87, "alpha": 0.05, "reject_null": false},
"effect_size": {"measure": "cohens_d", "value": 0.03, "magnitude": "very small", "convention": "cohen1988_d"}},
{"field": "country", "test": "TEST_CHISQ", "result": {"type": "TEST_CHISQ", "statistic": 1.2, "df": 2, "p_value": 0.55, "alpha": 0.05, "reject_null": false},
"effect_size": {"measure": "cramers_v", "value": 0.02, "magnitude": "very small", "convention": "cohen1988_w"}}
],
"pairwise": [
{"a": "income", "b": "spend", "source_rho": 0.80, "synthetic_rho": 0.79, "delta": 0.01, "n": 20000}
],
"warnings": [
"thin numeric pair income x spend: only 12 supporting observation(s) (below 30) — reconstructed correlation may be unstable"
]
}
A field whose test could not run (e.g. a categorical column with only
one distinct value in one partition) gets "error" instead of
"result" — that single field’s failure never blocks the report for
every other field, nor the generated cohort itself.
Every field with a result also carries effect_size beside its
p-value: Cohen’s d (synthetic − source, in pooled standard deviations)
for a numeric field, Cramér’s V (the χ² test’s own
details.effect_size.cramers_v) for a categorical one, with a
magnitude on Cohen’s (1988) bands — very small, small, medium,
large (cohen1988_d: .2 / .5 / .8; cohen1988_w: .1 / .3 / .5, which
V takes because the test runs against the two-level _synthetic
column). A report compares thousands of rows per partition, where a
difference no analysis would ever notice still rejects at p < 0.001;
the magnitude is what says it is trivial. Measured: at 20,000 rows per
side a 0.05 SD shift rejects TEST_KS at p ≈ 0.0002 and reads
very small. d describes location only — the KS statistic is the
largest gap between the two CDFs.
A rule-induced difference says so. The rule pass runs last and
reaches generated rows only — source rows are copied through — so a
rule that sets, rewrites or nulls a field moves the synthetic marginal
and never the source one. A marginal flagged at an effect of at least
small on a field a rule writes (set, set_expr, set_null, or a
null_together member after the first) carries rule_note naming the
rules, in declaration order:
{"field": "flag", "test": "TEST_CHISQ", "effect_size": {"measure": "cramers_v", "value": 0.31, "magnitude": "medium", "convention": "cohen1988_w"},
"rule_note": "written by structural rule 0 (set); the rule pass runs last on generated rows only (source rows are copied through), so this difference may be the rule's effect rather than a generation fault"}
A set_fields entry carries the same note when any option is flagged.
The note names the rules that CAN move the field; whether one fired is
the never-fired warning’s job. A spec without rules never carries it.
pairwise reports, for every numeric-numeric correlation the profile
captured (--conditional’s Conditional.NumericPairs, or the plain
--include-correlations stats as a fallback — whichever
SpecFromProfile populated into spec.Correlations), the delta
between that pair’s captured/target correlation (source_rho — the
same figure the copula reconstruction targeted) and its REALIZED
Pearson correlation over just the newly generated rows
(synthetic_rho); delta is abs(source_rho - synthetic_rho). A pair
whose synthetic partition cannot produce a defined correlation (fewer
than two co-occurring non-null observations) gets "error" instead of
synthetic_rho/delta, following the same non-fatal-per-entry
contract as fields. pairwise is entirely absent — never an empty
array — when the spec carried no correlations at all (e.g. neither
--conditional nor --include-correlations was passed at profile
time).
models — did generation reproduce the captured structure?
Every other section asks whether the generated rows look like the
source. models asks whether the captured structure survived
generation: for each linear model generation actually applied
(profile create --fit-models), it refits that same model on the
_synthetic partition and reports the captured coefficient beside the
recovered one, per predictor.
{
"models": [
{
"field": "spend",
"latent_scale": 25.0,
"captured_intercept": 0.0,
"recovered_intercept": 0.004,
"intercept_delta": 0.004,
"n_obs": 10000,
"r2": 0.61,
"max_delta": 0.031,
"predictors": [
{"kind": "categorical_level", "field": "region", "level": "east",
"captured_coefficient": 1.2, "recovered_coefficient": 1.187,
"std_error": 0.012, "delta": 0.013, "n_fired": 3341},
{"kind": "categorical_level", "field": "region", "level": "yukon",
"captured_coefficient": 1.76, "n_fired": 0,
"error": "predictor level is absent from the output cohort's dictionary, so no row can carry it"}
]
}
]
}
Both coefficients are on the latent scale — units of one standard
deviation of the target’s own reconstructed marginal, which is
latent_scale. That is not a presentation choice: a modelled numeric
is drawn as value = Q(Φ(μ + σz)), so its coefficients live on the
latent scale, and for a --fit-shape target the map from latent to
value is non-linear. Regressing the raw generated values would compare
a value-space effect against a latent coefficient and report a large
gap on a generation path that is exactly correct. Multiply by
latent_scale to return to the units profile create --fit-models
writes into the profile document.
flagged marks a gap large enough to indicate a real generation
fault: it fires only when delta exceeds both 0.10 latent standard
deviations and twice the refit’s own std_error. A gap smaller
than the estimator’s own noise cannot be evidence of anything.
n_fired — how many admitted synthetic rows the term’s indicator was
1 on — is what separates the two ways a recovered coefficient reaches
zero: a term that fired thousands of times and recovered nothing is a
fault; a term that never fired had nothing to recover.
A field a --rules rule determines has no entry here at all. The
section reports only the models generation applied, and an unconditional
set / set_expr retires its target’s model before generation runs —
see What a rule retires from the derived
spec. An absent field is
therefore an answer, not a gap; the conflict warning on stderr names it.
Reading a flag without concluding the feature is broken
Expect flags. On the 381,324-row survey cohort behind this feature, 53 models were applied, all 53 are comparable and 40 of them flag. That is not a generation failure.
A target whose Q is a step or a staircase — every packed_bool and
every small integer, which on a survey cohort is nearly all of them —
has no point latent inverse, so its entry carries
"scale": "probit_score" and was recovered through a calibrated score
rather than a direct inversion. That calibration is exact in
expectation, so a flag on such an entry is a statement about the rows,
not about the instrument.
The rows do carry slightly less conditioning than the captured model
asked for, for two reasons that compose. Quantization attenuation: a
u4 field is stored rounded to a whole number and a packed_bool as 0
or 1, so a latent effect survives the write only as a change in how many
rows crossed a boundary. And the composed draw holds a target’s marginal
exactly only while the generated latent is standard normal — that holds
by construction at fit time, but at generation time the predictors
come from their own reconstructed marginals, so the linear predictor’s
variance is whatever that distribution gives (measured on aware, 0.045
against a captured R² of 0.078, with 9 of its 64 terms never firing on a
generated row). Both are real properties of the generated rows, not
artefacts of the instrument.
What a flag on a continuous, unrounded target means is different, and that is the case worth acting on. Separate the two:
| Look at | Quantization attenuation | A real generation fault |
|---|---|---|
| Target’s field type | packed_bool, u4, or another narrow integer ("scale": "probit_score") | f32/f64, or a wide integer (no scale key) |
n_fired | Healthy — thousands of rows | Healthy — thousands of rows (a zero here is neither case: nothing fired, so there was nothing to recover) |
recovered_coefficient | Same sign, systematically smaller | Near zero, or the wrong sign |
| Peers | Most models of the same target type flag alike | An outlier among similar targets |
n_fired is what stops the third row of that table being ambiguous. A
term that fired thousands of times and recovered nothing is a fault
worth reporting. A term that never fired had nothing to recover — the
level exists in the model but the field’s reconstructed marginal does
not generate it, which is the absence case described above, and those
terms carry an error rather than a delta.
A quick triage over a report:
# how many models flagged, and of what target type
jq '[.models[] | select(.flagged)] | length' out.fidelity.json
jq -r '[.models[] | select(.flagged) | .field] | .[]' out.fidelity.json
# the terms actually driving the flags: fired a lot, recovered little
jq '[.models[].predictors[]?
| select(.flagged and .n_fired > 500)
| {field, level, captured_coefficient, recovered_coefficient, n_fired}]
| sort_by(.n_fired) | reverse | .[:10]' out.fidelity.json
For calibration on that same cohort: 2,499 predictor entries, 2,343
compared and 97 flagged; 156 unestimable, of which 143 are the
different-ranking-basis case described below, 7 constant columns and 6
terms whose captured effect falls below the staircase score’s own
resolution (those carry an error, never a divided-by-nothing number).
A ratio near zero on a wide numeric target with a healthy n_fired is
the signature that something in the generation path is not applying the
model, and is worth reporting.
On a "scale": "probit_score" entry each predictor also carries
score_retention — the fraction of the captured effect that survives
onto the score, which both the recovered coefficient and its
std_error have already been divided by. Read a small retention as a
wide confidence band, not as a suspect number. Measured across 2,193
calibrated terms on that cohort: minimum 0.075, median 0.456, upper
quartile 0.814. A staircase entry reports no
recovered_intercept: its cut points come from the captured marginal,
which generation holds exactly, so that intercept carries no evidence
about the coefficients.
Three absence rules, all deliberate:
- A field carrying no model has no entry here, rather than an entry with empty values.
- A captured model generation did not apply — one whose target lost a conflict, or which generation refused — likewise has no entry. The section asks generation’s own compiler which models ran; reporting a computed-looking delta for a relationship that was never applied is worse than reporting nothing, because the number looks like evidence.
- A predictor whose level the generated cohort never carries is listed
with an
errorand no delta, for the same reason.
That last case has one cause worth naming, because it looks like a bug
and is not. A model’s retained level set and the field’s own captured
marginal are both cut at --top-k, but they are ranked on different
bases: the model ranks levels by frequency within the rows its fit
admitted for that one target, while the marginal ranks them across the
whole cohort. Both keep 32 and they need not agree, so a level the model
retained can be absent from the marginal that generates the field — on
the survey cohort behind this feature, 9 of brand’s 32 design levels,
4 of ageExact’s and 2 of category’s, 138 such terms out of 2,235.
The "other" catch-all is not one of them: it is a design column
like any other, it is generated through the categorical-pair stage, and
on that cohort all 54 catch-all terms fired, between 3,992 and 9,046
rows each.
A model whose predictor selection admitted nothing carries
"marginal": true and no predictors array. That is a complete
model — the field’s own mean and spread — not a failure; its intercept
comparison is still a real check, since a drifted intercept there means
the marginal itself did not survive.
models is entirely absent when the profile carried no models
section (captured without --fit-models).
models and the two numeric-target pair sections
(categorical_numeric_pairwise, set_numeric_pairwise) cover disjoint
sets of fields, and always will. A numeric reached by a linear model
draws from that model, so the pick-one conditional sampler those
sections score never runs for it and it gets no entry there — reporting
a delta for a mechanism that did not execute is the same mistake as
reporting one for a conflict-dropped pair. The retirement is per
target, not per profile: a numeric whose model was captured but not
applied keeps its conditional pair and is still scored in those
sections, because the alternative is a field reconstructed from nothing
at all. categorical_pairwise, set_categorical_pairwise and
set_set_pairwise are unaffected — a linear model targets a numeric and
subsumes nothing they describe.
model_residual_correlations — did the structure BETWEEN models survive?
models asks whether each field’s own captured structure survived.
This section asks whether the structure between modelled fields did:
for every residual correlation generation applied (profile create --residual-correlations), it reports the captured rho beside the rho
recovered from the generated partition.
{
"model_residual_correlations": {
"fields": ["spend", "tenure"],
"compared": 1,
"mean_delta": 0.012,
"max_delta": 0.012,
"pairs": [
{"a": "spend", "b": "tenure", "captured_rho": 0.70, "recovered_rho": 0.688, "delta": 0.012, "n": 10000}
]
}
}
This is not pairwise under another name. pairwise scores a
correlation between two fields’ values, realized by the copula;
this scores a correlation between two models’ residuals, realized by
the residual correlator. They are different numbers over the same two
fields — two fields both driven by region correlate strongly on raw
values while their residuals may be independent — and a modelled field
is excluded from the value-scale arm precisely so the two never both
fire on one field. The section names are how a reader tells which
mechanism a given number describes.
The residuals compared are the refit’s own, on the latent scale.
Capture measured the residuals of a model fitted on its own rows, so
recovery measures the residuals of a model fitted on the synthetic rows
— the symmetric definition. Taking them against the captured
coefficients instead would fold the coefficient gaps models already
reports into a correlation and state one finding twice.
The listing is bounded, because the section is quadratic in
participants: 55 applied models is 1,485 pairs. compared, flagged,
mean_delta and max_delta describe every compared pair; pairs
carries the worst 20 by absolute delta, largest first, and omitted
counts the rest. A pair that did not make the listing recovered at
least as well as the last one that did. flagged fires at a delta
above 0.10 — a correlation is already unit-free, so unlike the
coefficient band it needs no standard-error term.
A pair generation applied but the synthetic partition cannot produce a
correlation for is listed under unmeasured with a reason
(insufficient_overlap, no_variance, or no_model_fit when one
endpoint’s model could not be refitted). Those entries carry
captured_rho — so a reader can see how much structure went unverified
— and no recovered-rho key at all, so an unmeasured pair can never
be mistaken for one recovered at zero.
A pair with a packed_bool or small-integer endpoint is always
no_model_fit, and that is deliberate. The models section can
calibrate a staircase target’s coefficient because least squares is
linear in its response, so the same score projected twice divides the
attenuation out exactly. A correlation has no such projection: the
factor relating two score residuals’ correlation to the correlation of
the residuals that drove the draws depends on the pair’s joint
distribution, not on either marginal. Shipping the attenuated figure
would put a number that looks measured beside one that is, so it is
counted as a gap instead — on the survey cohort 1 compared pair and
1,377 unmeasured. Closing it needs a polychoric-style bivariate
calibration or an ordered-probit refit.
For calibration again: on a cohort whose modelled targets are all
continuous, 55 applied models produce 1,485 compared pairs, of which
147 flag, at a mean delta of 0.055 and a worst of 0.490. On the
survey cohort, whose targets are 51 of 53 staircase, the same section
compares 1 pair and reports 1,377 as no_model_fit — see the paragraph
above.
Because a modelled field is deliberately excluded from the value-scale
pairwise arm, this section is the only place the report scores
structure between two modelled fields. If you want the raw-value
correlation between them as well, compute it over the output cohort’s
_synthetic partition yourself — on the survey cohort a source pair at
0.835 realizes at 0.791 that way, which is the residual mechanism
working as intended.
model_residual_correlations is entirely absent when the profile
carried no residual_correlations section.
warnings mirrors any thin-pair warnings the source profile carried
(Profile.Warnings — see pulse profile create’s --conditional section) verbatim,
letting a reader see “how well did it match” (pairwise) and “which
parts were built on thin data” (warnings) in the one document.
Absent, not an empty array, when the profile carried no warnings.
utility — does the twin answer questions the way the source does?
models compares the twin with the CAPTURED model. utility compares
it with the SOURCE rows the output cohort already carries. The two
disagree whenever the source carries confounding the capture did not:
a coefficient is a partial effect, while a churn-by-contract table is
a marginal contrast that also carries every field contract travels
with — so models can report the captured contract effect recovered
while the twin’s churn-by-contract contrast is compressed.
target_rates is automatic for every applied model: for each
categorical field among its predictors, the target’s mean per level
on each partition (the rate of a packed_bool target), the spread
max − min over levels that carry at least 30 rows on BOTH partitions,
spread_ratio (synthetic ÷ source), ε² on each side (the share of the
target’s variance the levels explain — an effect size) and a
verdict: compressed or inflated when the spread moves by more
than 20% AND by more than two standard errors of the two spreads,
preserved otherwise.
model_fits is opt-in. --fidelity-model <request.json> names a
pulse process request (decoded strictly; its cohort is ignored)
whose regressions are fitted twice through the ordinary engine — on
--source, before generation, and on the output’s _synthetic = true
rows after it:
"utility": {
"target_rates": [{"target": "churned", "by": "contract",
"levels": [{"level": "Two-Year", "source_n": 4006, "source_mean": 0.046,
"synthetic_n": 4032, "synthetic_mean": 0.027},
{"level": "Monthly", "source_n": 10993, "source_mean": 0.539,
"synthetic_n": 10867, "synthetic_mean": 0.542}],
"source_spread": 0.493, "synthetic_spread": 0.515, "spread_ratio": 1.045,
"source_epsilon_squared": 0.192, "synthetic_epsilon_squared": 0.196,
"verdict": "preserved"}],
"model_fits": [{"name": "churn_logit", "type": "REG_GLM", "target": "churned",
"statistic": "pseudo_r2", "source_fit": 0.2086, "synthetic_fit": 0.2206,
"fit_ratio": 1.057, "source_n_obs": 20000, "synthetic_n_obs": 20000,
"coefficients": [{"term": "autopay", "source": -0.527, "synthetic": -0.500,
"source_std_error": 0.034, "synthetic_std_error": 0.035, "ratio": 0.950,
"difference": 0.027, "z": 0.545, "ratio_reliable": true},
{"term": "age", "source": 0.00017, "synthetic": 0.00285,
"source_std_error": 0.00088, "synthetic_std_error": 0.00092, "ratio": 16.6,
"difference": 0.00268, "z": 2.100, "ratio_reliable": false}]}]
}
(Figures from the 20,000-row churn fixture of
TestFidelityUtility_ChurnTwinPseudoR2RatioIsInTheReport, one level
and two coefficients shown.)
statistic is pseudo_r2 (McFadden) for a REG_GLM and r2
otherwise; fit_ratio is the twin’s share of the source’s explanatory
power — the figure a “≥ 0.85× the source” bar reads. Coefficients are
sorted by term; missing names a side that did not estimate one.
Beside ratio (synthetic ÷ source, still emitted) every term both
sides estimated carries difference (synthetic − source, on the
coefficient’s scale), z (that difference ÷ √(source SE² + synthetic
SE²) — the gap in standard errors, comparable across terms; absent,
never 0, when both standard errors are 0) and ratio_reliable
(false when |source| ≤ the source SE: the source estimate is
indistinguishable from zero, so the ratio divides by noise). The
fixture’s age carries no true effect: its ratio reads 16.6, flagged
ratio_reliable: false, while z reads the gap as 2.1 standard
errors — the size an occasional term among seven reaches by chance;
the fixture’s one gap past three is contract_Two-Year (z −3.4). Read
z as a gap, not a test. A
regression that fails on one side carries source_error /
synthetic_error and the other side still reports. A request the
engine refuses on the source fails the call under the engine’s own
code before anything is generated; a model with no regressions, or
given without --fidelity-report, is PULSE_SYNTH_FIDELITY_MODEL_INVALID.
jq '.utility.model_fits[] | {name, statistic, source_fit, synthetic_fit, fit_ratio}' out.fidelity.json
jq '.utility.target_rates[] | select(.verdict != "preserved")' out.fidelity.json
jq '.utility.model_fits[].coefficients[] | {term, ratio, ratio_reliable, difference, z}' out.fidelity.json
utility is absent for a spec with no applied model and no
--fidelity-model.
disclosure — how close does the twin sit to real records?
A profile-derived twin is not differentially private and carries no
formal privacy guarantee: no noise is added, so a generated row can
repeat a source row. The disclosure section is an audit aid, not a
guarantee — the measurement a data owner reads before sharing one. It is written on
every report (tagged or --synthetic-only, byte-identical between the
two) unless --no-disclosure is given:
"disclosure": {
"distance": "gower", "columns": 4,
"source_rows": 40000, "synthetic_rows": 20000,
"exact_matches": 0, "exact_match_rate": 0,
"sample_rows": 10000,
"dcr_median": 0.00313, "dcr_p5": 0.00121
}
(Figures from a 40,000-row source and a 20,000-row twin of three normal columns and a two-level categorical; the section took well under a second.)
exact_matches/exact_match_ratecount the generated rows equal to some source row on every output column (null equal to null), over every generated row.dcr_median/dcr_p5are the median and 5th percentile (type-7 interpolation) of each sampled generated row’s Gower distance to its closest source record, in [0, 1]. An exact copy is 0, so adcr_p5of 0 means at least 5% of the sampled rows copy a source row.
The Gower distance is the mean over the output columns of a per-column
term in [0, 1]: |a − b| / range for numbers, decimal128, u4,
date and datetime (the range over the source rows, clamped at 1; a
zero range scores 0 for equal values and 1 otherwise); a 0/1 mismatch
for categorical_* and packed_bool; the Jaccard distance
|A xor B| / |A or B| for set_* (two empty selections score 0); the
mean of the per-element terms for vec_*. Both null scores 0, one null
scores 1.
The distance reads at most --disclosure-sample generated rows (default
10,000; a negative value is SERVICE_VALIDATION). Past the cap the rows
are drawn from the section’s own stream, seeded by --seed and
independent of generation, so the output cohort is byte-identical with
the section on or off and the section is byte-identical for a fixed
seed on every architecture. The cost is min(sample, generated rows) ×
source row comparisons, charged against the instance’s
max_disclosure_comparisons limit (default 50,000,000,000, a few
minutes of work); the working set — every source row decoded plus its
exact-match key — is charged against max_estimated_memory
(Tuning Limits). Both are checked
before generation. Past either the call is refused
PULSE_LIMIT_EXCEEDED (its limit detail names which) and writes
nothing; lower --disclosure-sample, pass --no-disclosure, or raise
the limit (--limit max_disclosure_comparisons=…,
--limit max_estimated_memory=…). Cancelling the call stops the
distance pass between worker chunks.
jq '.disclosure | {exact_match_rate, dcr_median, dcr_p5}' out.fidelity.json
What the report costs
The report is a footnote to generation, but on a wide cohort it is not a
small file and it is not instant. Every model is refitted, so the work
scales with the number of applied models and the width of their designs,
and model_residual_correlations is quadratic in applied models. On the
survey cohort — 105 captured models, 55 applied, designs up to 126
columns — the report is about 1.65 MB and adds a few seconds to a
run that takes roughly two minutes in total. The refits are capped
at the first 10,000 synthetic rows regardless of --rows, because the
captured coefficients they are compared against were themselves
estimated from a 10,000-row sample and sharpening one side of a
comparison does not sharpen the comparison.
Budget for it in a loop, and skip the flag when you are only iterating
on --seed.
Omitting --fidelity-report writes no report at all and changes no
other behavior. The flag only has an effect on the tagged top-up path
(--source set); it is a no-op on plain synth from-schema (see
pulse synth from-schema), which has no
_synthetic partition to compare against.
Profile shape
The profile is a synth.Profile JSON object produced by
pulse profile create. It carries per-field type, descriptive
statistics, top-K categorical entries (default K = 32), optional
pairwise correlations (when --include-correlations was passed at
profile-creation time), an optional row-aligned conditional section
(when --conditional was passed — preferred over the plain pairwise
stats when both are present, since its n is the true co-occurrence
count rather than an approximation), an optional per-numeric-field
shape (when --fit-shape was passed AND that field’s fit was a
genuine improvement over normal — see
pulse profile create’s --fit-shape section),
an optional per-numeric-field linear model (models, when
--fit-models was passed) with an optional correlation submatrix over
those models’ residuals (residual_correlations, when
--residual-correlations was), and a row count. A field carrying
shape regenerates via the mixture distribution instead of normal,
and a field carrying a model is drawn through that model with its own
marginal as the shape — no separate flag here selects either; it is
decided entirely by the profile document’s own contents.
See pulse profile create for how to capture
one, and the synth package for the underlying Go types.
Output
Text mode
Generated 1000 rows -> sales.synth.pulse (rejected 0)
Fidelity report -> sales.fidelity.json
Those lines are the whole of stdout; warnings go to stderr.
Warning summary and recovery headline (stderr)
Diagnostics go to stderr, in the same grouped, counted, capped shape
profile create uses — kinds
needing attention first and marked !, expected outcomes counted
separately and marked -, three examples per kind. With
--fidelity-report, two headline lines precede it:
Model recovery: 55 model(s) checked, 33 flagged — see sales.fidelity.json (.models)
Residual recovery: 1485 pair(s) compared, 154 flagged — see sales.fidelity.json (.model_residual_correlations)
Warnings: 3846 in 6 kind(s) — 1 needing attention, 3845 expected
! residual correlation pairs unmeasured (1)
residual correlations: 104 of 5460 pair(s) among 105 modelled field(s) could not be measured …
- thin categorical pair (2931)
…
+2928 more of this kind
- conditional relationship conflict (791)
conditional relationship conflict: field "dma" is already claimed by categorical pair (wave -> dma); …
…
+788 more of this kind
…
Full list: sales.fidelity.json (.warnings)
The recovery lines exist because the sections they summarise live inside
a document that is 1.65 MB on the motivating cohort — a reader has to
learn that flags are there before deciding to open it. Both lines are
omitted when the report carries no such section (a profile captured
without --fit-models).
The summary spans all three warning channels this command touches, because each carries findings the others do not:
| Channel | Produced by | Also written to |
|---|---|---|
| Capture-time | profile create, read back off the document | the profile document’s warnings |
| Translation | SpecFromProfile — model drops and conditional conflicts | --fidelity-report’s warnings |
| Generation | generate() — the post---rules arbitration, rule compilation, rules that never fired, correlation completion, model compilation | --json’s data.warnings and --fidelity-report’s warnings |
The middle channel is the one that carries model for numeric field "x" not applied: … — the line that says a spec applied only a fraction of
its captured models.
Translation and generation both derive their conflict lines from the same arbitration, so byte-identical duplicates are dropped before counting — 791 conflicts are reported as 791, not 1,582.
The generation channel reaches the report as well as the terminal,
which is what makes the summary’s Full list: footer true: a --rules
run’s post-merge arbitration — the record of which captured
relationships the rules retired, and which rules never fired — is in
the report. The overlap with the translation channel is deduped at the
fold, so shared lines are written once.
Without --fidelity-report no document holds the merged list, so the
footer names the flag that would produce one rather than a path that
does not exist.
--json
Same envelope shape as
synth from-schema. The stderr summary is
not printed on this path — data.warnings already carries the
generation channel (a []string), and the report carries every
channel.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success (warnings allowed) |
| 1 | Profile parse error, infeasible constraints, missing/colliding --source/--output, or output write failure — in the envelope’s errors under --json |
| 2 | Usage error (unknown flag, malformed value, missing required flag); no envelope |
See pulse errors lookup PULSE_SYNTH_SOURCE_REQUIRED /
PULSE_SYNTH_OUTPUT_REQUIRED / PULSE_SYNTH_OUTPUT_COLLISION /
PULSE_SYNTH_ALREADY_TAGGED / PULSE_SYNTH_PROFILE_SCHEMA_MISMATCH
for the specific top-up refusal codes.
Examples
# Capture once
pulse profile create --input sales.pulse --output sales.profile.json
# Top up with different seeds — sales.pulse is read but never written
pulse synth from-profile --profile sales.profile.json --source sales.pulse --output sales.s42.pulse --rows 10000 --seed 42
pulse synth from-profile --profile sales.profile.json --source sales.pulse --output sales.s43.pulse --rows 10000 --seed 43
# Also write a per-field marginal fidelity report
pulse synth from-profile --profile sales.profile.json --source sales.pulse --output sales.s42.pulse --rows 10000 --seed 42 --fidelity-report sales.s42.fidelity.json
Generating a numeric conditioned by several categoricals
The companion to pulse profile create’s
worked example. Nothing here opts in — whether spend draws from a
model is decided entirely by whether the profile carries one for it.
pulse profile create --input survey.pulse --output survey.profile.json \
--include-stats --conditional --fit-models --residual-correlations
pulse synth from-profile --profile survey.profile.json --source survey.pulse \
--output survey.synth.pulse --rows 50000 --seed 7 \
--fidelity-report survey.fidelity.json
Check that the model was applied at all — a captured model that
generation did not run has no entry in models, so presence is the
check:
jq '.models[] | select(.field == "spend")
| {latent_scale, n_obs, r2, flagged,
fields: [.predictors[].field] | unique}' survey.fidelity.json
{
"latent_scale": 412.6,
"n_obs": 10000,
"r2": 0.29,
"flagged": null,
"fields": ["region", "segment", "tier"]
}
flagged is omitted when nothing exceeded the band, which is the null
the projection shows. All three conditioning fields are present and the
model did not flag, so
the generated rows carry region, segment and tier effects
simultaneously — which the pick-one conditional sampler could not do.
Because spend is modelled it has no categorical_numeric_pairwise
entry, by design:
jq '[.categorical_numeric_pairwise[]? | select(.b == "spend")] | length' \
survey.fidelity.json # 0
And because the model expresses all three relationships at once, none of
them had to lose a conflict on the way in. Generation-time warnings —
the conflicts, and any model the spec could not apply — land in this
report’s warnings array, after the capture-time ones the profile
carried:
jq -r '.warnings[] | select(startswith("conditional relationship conflict"))' \
survey.fidelity.json # empty for the numeric arms
jq -r '.warnings[] | select(contains("not applied"))' survey.fidelity.json
A not applied line is the one to read closely: that field fell back to
its --conditional pair, so it is still conditioned, but by one
categorical rather than by all of them. It is also one of the kinds the
stderr summary marks ! and lists first, so it does not need finding.
Limitations
-
Categorical tails: anything past the captured top-K is dropped, not preserved as an
"other"bucket — the retained levels’ weights are renormalised, so the tail’s share is redistributed across them. A 1,900-level field therefore generates as--top-klevels. (The"other"catch-all that appears in a--fit-modelsdesign and inconditional.*tables is a different, per-section collapse and is generated normally.) -
Correlations: pairwise only, and only between SCALAR fields — every declarable type that is not
categorical_*orset_*, sou4…u64,f32/f64,date,datetime,decimal128andpacked_boolall qualify (auniform_date/uniform_datetimefield is then refused by name: neither has moments). The profile capture flag--include-correlations(or the more accurate--conditional) opts in; without either, fields are generated independently. Reconstruction uses a conditional-Gaussian construction (internal/synth/copula.go) that exactly targets the captured Pearsonrhofor jointly-normal fields — seeskills/synth-correlations.mdfor the technique and its trade-offs. A small-integer or boolean participant reconstructs as a staircase (discrete/bernoulli), which holds its own per-level shares exactly and attenuates the realised correlation: measured on two real 7-levelu4columns at a capturedrhoof +0.8400, Pearson came back +0.8072 and Spearman +0.8051 with both marginals within 0.003 per level. A participant already claimed by an earlier stage — a linear model, or a categorical-numeric conditional pair — is not correlated at all, and says so in the generation warnings. -
Boolean (
packed_bool) fields: reconstructed asbernoulliwithp= the captured mean, which holds the prevalence exactly. Two consequences. A modelled boolean is drawn as a probit, so its coefficients order rows but are not probability changes; and a 0/1 value pins the latent to an interval rather than to a point, so themodelssection of a fidelity report recovers it through a calibrated probit score (markedscale: "probit_score") instead of a direct inverse. A boolean observed at prevalence exactly 0 or 1 has no variance, so a model on it is dropped with a warning. A hand-authored schema-mode spec that puts a continuous distribution on apacked_boolis still biased (the writer rounds at 0.5); declarebernoullithere instead.One caveat worth knowing when you compare a generated prevalence to the captured one: a MODELLED boolean holds its marginal exactly only while the generated latent is standard normal. The residual scale on the wire is a FIT-time quantity, and at generation the predictors come from their own reconstructed marginals, so the latent’s variance is whatever that distribution gives. On the survey cohort
awarewas captured atp= 0.7473906704010238 and generated withP(aware == 0)= 0.247193 over 20 seeds against the exact 0.252609 — a −0.0054 drift. It is the composed draw, not the sampler: a lonebernoullifield over 200 seeds is exact to +0.000046, and the same spec with every model removed is exact to +0.000324. A rule-gated field inherits the drift from the field it gates on. -
Small-integer (
u4/u8/u16/u32/u64) fields: reconstructed from the captured per-level histogram asdiscretewhen the column carried at most 64 distinct values, which holds every level’s share exactly; wider columns keep the clamped normal (seeprofile createfor the cap and why it abandons rather than truncates). The consequences mirror the boolean arm above. A modelled integer target is drawn as an ordered probit, so its coefficients order rows but are not scale points; and like a boolean it is recovered through the calibrated probit score rather than a direct latent inverse, because a level pins the latent to an interval. On the survey cohort themodelssection reports 53 comparable targets of 53 entries and 2,343 of 2,499 predictor terms compared.model_residual_correlationsstill reports 1 compared pair with 1,377 unmeasured: a coefficient can be calibrated because least squares is linear in its response, a correlation cannot, so a staircase endpoint stays in the unmeasured list underno_model_fitrather than shipping an attenuated rho that looks measured. -
Decimal fields: regenerated within the same type family but with synthetic value distributions; downstream uses that depend on exact field values (e.g. joinable identifiers) need the schema-driven path instead.
-
Shape fitting (
--fit-shapeat profile-creation time): fixed at exactly 2 mixture components, and no min/max clamp on the field’s own independent draw. A field carrying a capturedshapedoes not participate in--conditional’s categorical-numeric conditioning even when both were captured for it; it does compose with--fit-models, drawing through its captured linear model with the fitted mixture as the marginal — with the caveat that such a model’s coefficients are on the latent scale and are not readable in data units. Seepulse profile create’s--fit-shapesection.
Related
pulse profile createpulse synth from-schemaskills/synthetic-data.md— the spec grammar and the index of focusedsynth-*skillsskills/synth-fidelity-report.md— the tagged top-up contract and the fidelity sectionsskills/synth-models.md—--fit-modelsentry skill;skills/synth-residual-correlations.md,skills/synth-model-recovery.mdandskills/synth-residual-recovery.mdcarry residual correlations and the two structure-recovery fidelity sections- Synth calibration figures and design rationale