Skip to content

forensics analyze

Run analysis pipeline (change-point, drift, convergence, comparison).

Terminal window
forensics analyze [OPTIONS] COMMAND [ARGS]...
OptionDescription
--changepointRun change-point detection (PELT/BOCPD)
--timeseriesRun rolling statistics + STL decomposition
--driftRun embedding drift analysis (Phase 6)
--convergenceCross-validate pipelines and run hypothesis tests (Phase 7)
--compareControl author comparison only (Phase 7)
--ai-baselineGenerate or refresh synthetic AI baseline articles
--skip-generationWith —ai-baseline: re-embed existing JSON articles only
--verify-corpus / --no-verify-corpusVerify corpus fingerprint against data/analysis/corpus_custody.json. When omitted, use [chain_of_custody] verify_corpus_hash from config.toml.
--baseline-model MODELWith —ai-baseline: restrict to one configured Ollama model
--articles-per-cell NWith —ai-baseline: override articles_per_cell (default from config)
--author SLUGLimit to one author slug
--exploratoryAllow analysis without a matching pre-registration lock and record exploratory mode.
--include-advertorialRe-include advertorial / syndicated sections (sponsored, partner-content, crosspost) in feature extraction and survey qualification for this run; default OFF (Phase 15 J2).
--residualize-sectionsToggle J5 section-residualized changepoints for this run (flips analysis.section_residualize_features). Default OFF matches the persisted config (Phase 15 J7).
--include-shared-bylinesRe-enable analysis of shared-byline accounts (e.g. mediaite-staff, mediaite). Default OFF — matches the Phase 15 D survey gate, which disqualifies group bylines because single-author stylometry on aggregate accounts is meaningless. Mirrors forensics survey --include-shared-bylines.
--max-workers NOverride analysis.max_workers for this run only. N=1 forces the legacy serial dispatch; N>1 fans the per-author loop out across a ProcessPoolExecutor (Phase 15 G1).
--parallel-authorsRefresh configured author analysis artifacts via isolated per-author directories, then promote validated outputs and rebuild shared artifacts once.
--compare-pair TARGET,CONTROLRun a one-off target↔control comparison for the named slugs, bypassing the configured author roles. Example: ‘—compare-pair isaac-schorr,john-doe’.
--allow-pre-phase16-embeddingsWith —exploratory: load embedding batches whose manifest model_revision does not match analysis.embedding_model_revision, logging a WARNING instead of failing. Default OFF — confirmatory runs always require a matching revision.
--helpShow this message and exit.
CommandDescription
section-contrastPhase 15 J6: per-author section-contrast tests (Welch + MW + per-family BH).
section-profilePhase 15 J3: newsroom-wide section descriptive report and J5 gate verdict.