name: session-synth-flags
description: The profile-capture and synth-generation CLI flags an agent must know — the additive profile create sections, emitting the generating spec, supplying and suggesting structural rules — and why a model coefficient is a latent-scale quantity.
type: guide
kind: design
applies_to: process, compose, sample, facet, inspect, predict, manifest
covers: [CLI flags, profile create, synth from-profile, --fit-models, --emit-spec, --rules, --suggest-rules, --synthetic-only, --constraints, --disclosure-sample, --no-disclosure]
requires: [capability:synth]
Synth CLI flags
Part of session-bootstrap. The synth surface: synthetic-data.
Profile-capture CLI flags
Independent, additive pulse profile create knobs; each adds an omitempty section and none implies another. The leaf profiles a single file or a whole shard archive. Detail: synthetic-data, docs/src/cli/profile-create.md.
| Flag | Adds |
|---|---|
--conditional | pick-one conditional pair sections (numeric-numeric, categorical-categorical, categorical-numeric, three set_* arms) |
--fit-shape | 2-component Gaussian mixture per numeric on a BIC win; generates as mixture, not normal |
--fit-models | one linear model per numeric, regressed on admitted categorical levels + set options. How several drivers condition ONE numeric at once. RETIRES the numeric-target conditional pairs for the targets it lands on — per target, never per document; the three non-numeric arms are untouched, so --conditional + --fit-models keeps both halves |
--residual-correlations (needs --fit-models) | full correlation submatrix among fitted residuals, so a numeric can be both conditioned and correlated with a sibling |
--run-continuation | run_continuation: per-field fraction of adjacent row pairs whose bytes + null bit repeat — exactly the run-skip decode’s hit rate — plus overall, high_fields (≥0.75) and advice. Low overall (<0.5) ⇒ sort the source by its parent key upstream. Pairs never span a shard. Not read by synth |
--time-zone <IANA> / --time-zone-field <field> (exclusive) set the clock datetime fields are captured on; with neither, a cohort’s declared default zone field is used, else UTC (synth-datetime).
Synth-generation CLI flags
pulse synth from-profile knobs, plus --suggest-rules on pulse profile create. Detail: synth-structural-rules, docs/src/cli/synth-from-profile.md, docs/src/cli/profile-create.md.
| Flag | Must know |
|---|---|
--emit-spec <path> | the spec that actually generated (AFTER any --rules merge), indented JSON, not a rendering — fed to synth from-schema at the same seed it reproduces the same rows. The only way to see which captured models survived translation, which distribution each field reconstructed to, and which conditional pairs were retired, and how you learn the field names, types and floors a rule must be written against. Written before generation, so a failing run still leaves it |
--rules <path> | the only way to reach the rules[] layer from the profile path. A bare JSON array of rule objects — the rules key’s own value, so a rule moves between spec and file by cut and paste; {"rules": […]} is refused, not read as zero rules. REPLACES Spec.Rules (a derived spec carries none). Eager validation naming the FILE — e.g. PULSE_SYNTH_RULE_FIELD_UNKNOWN with details.path, never a bare parse error |
--synthetic-only | writes the GENERATED rows alone: no source row, no _synthetic field, so the twin has the source’s schema — the file to share. --source is still required (alignment check + the report’s comparison side) and --fidelity-report is unchanged, byte for byte |
--constraints <path> (+ --max-rejection-rate) | the constraints[] layer on the profile path: a bare array of {"expr": …} (the spec key’s own value), REPLACES, compiled eagerly naming the FILE. A failing row is re-drawn; past the ceiling (default 0.5, in [0, 1)) the run is PULSE_SYNTH_CONSTRAINT_INFEASIBLE. A draw in one is PULSE_SYNTH_RULE_DRAW_INVALID |
--disclosure-sample N / --no-disclosure | size or drop the report’s disclosure section (default ON with --fidelity-report): exact-match rate + Gower distance to closest record on a seeded sample (default 10000) that never moves the rows. Its working set and comparisons are charged to max_estimated_memory and max_disclosure_comparisons before generation (PULSE_LIMIT_EXCEEDED, nothing written). Detail: synth-disclosure-report |
--suggest-rules <path> (on pulse profile create) | DETECTS rules on the same scan (no extra cohort read) and writes the bare array --rules consumes unmodified: GATING (set_null), CO-MISSING blocks (null_together, admitted on identical null PATTERN — an identical null RATE is never enough) and EXACT DEPENDENCIES (set_expr; packed_bool/u4 targets, categorical_*/packed_bool/u4 source of ≤16 levels, band edges DISCOVERED from the data). Near misses, almost-determined pairs, always-null and constant fields land in warnings, never proposed. Gating first, dependency LAST — declaration order is applied order. PROPOSED, never applied: detection finds the STATISTICAL gate, a human knows the SEMANTIC one. Measurements ride _evidence, a rule’s one INERT slot (an evidence-only rule is still PULSE_SYNTH_RULE_EMPTY). The profile document gains no section. Numeric gates emit through round() — a bare == reads the pre-rounding float and under-fires |
A model coefficient is a LATENT-scale quantity, not data units: it shifts the standard-normal μ in value = Q(Φ(μ + σ·z)), so it is non-linear in value space for every non-normal Q. Never report one as “this many points on the scale”. Detail: synth-models.