# Operating Vorhersage For research capture, provenance audits, optional scenario mixtures, reference-case queries, related-question checks, and executable monitoring, see [Research and monitoring](RESEARCH_AND_MONITORING.md). Existing 0.1 projects remain readable; the original commands below continue to work. Vorhersage is a deterministic Python CLI for binary-event forecasting. The driving agent searches, interprets evidence and supplies probability judgments. The package stores state, validates tasks, performs declared calculations, preserves forecasts, tracks review work, and evaluates resolved predictions. ## Start and resume For one question, use the [single-question interface](SINGLE_QUESTION.md): `start`, `define`, `show`, `next --output`, `submit --from`, and `report` manage the question and run identifiers. These commands show readable progress by default; add `--json` for structured output. Agents should supply their own `--forecaster` attribution instead of retaining the default `user`. Both people and agents fill the same validated task answers. New single-question studies begin with intake and linked inquiry tasks before estimating. They require explicit evidence transfers for model inputs and a sensitivity review. New studies version the research-to-model mapping and run a model challenge before review. Challenge the relevance of the actual cited passages and test scenario boundaries; completing fields does not establish support. Resolve concerns into linked investigations, deferred evidence, or explicit assumptions. Inquiry answers can satisfy research domains without repeating their generic tasks. See [the complete flow](SINGLE_QUESTION.md#do-the-next-piece-of-work) and [model challenge examples](MODEL_CHALLENGE.md). Use `evidence add` to capture findings with tool-recorded timestamps, `submit --task TASK --answer ANSWER` to preserve task identifiers, and `revise --reason REASON --evidence PACKET:RECORD` after new evidence arrives. Run `vorhersage guide` after installing to read these requirements and the model input paths. `--project` works before or after any subcommand. For the final report, export `vorhersage report context --project PROJECT --output analysis/forecast-report-context.json`. Read its completion status, selected prediction, evidence, and writing guidance, consulting full material for omitted details. Author the explanation from these records. In `ep-agent`, load `skill:report-authoring`, write `writeup/report.md`, and follow its existing branding, review, compilation, and checks to produce `writeup/report.html`. Package-generated HTML remains an inspection view. See [the handoff contract](REPORTS.md). If several important unknowns are facts the user knows, **offer a short survey for that user** using `ep humanize` when available. Explain which model inputs the answers would inform, design neutral questions linked to those inputs, and share the respondent link. After completion, capture the answers as self-reported evidence and update the affected assumptions through the normal workflow. This works during intake or after issuance through `revise`. Chat is also an option. See [the survey workflow](SINGLE_QUESTION.md#offer-a-short-survey-for-the-user) for commands and how to preserve the responses. The explicit portfolio interface below remains available, with JSON output and full control over question versions, run selection, cutoffs, and revisions. Create a project and a real question in one command: ```bash vorhersage init product-launch \ --question "Will our app launch publicly before January 1, 2030?" \ --deadline 2030-01-01 \ --yes "The app is available to all customers before the deadline." \ --source "Our public release log" vorhersage --project product-launch run start product-launch ``` The question ID defaults to the project directory name. The built-in `general` profile covers base rates, current state, actors/process, and contrary evidence. The CLI returns the complete question and a suggested next command. A date-only deadline means midnight UTC at the start of that date; use a timestamp with an explicit timezone when the event uses local time. You can override `--id`, `--no`, `--void`, `--resolve-after`, `--profile`, `--domain`, `--event-group`, and `--kind`. The default NO rule is that the YES criteria have not been met by the deadline; void covers defective criteria or resolution evidence, while delay and cancellation remain NO. The earliest resolution check defaults to the event deadline. The question is real unless `--kind simulation` is supplied. `init --from question.json` accepts the complete existing schema. A failed question registration leaves no partial project. Add another question to an existing project with the same options: ```bash vorhersage --project product-launch question add "Will the Android release follow before February 1, 2030?" \ --id android --deadline 2030-02-01 \ --yes "The Android app is publicly available before the deadline." \ --source "Our public release log" ``` `run start QUESTION_ID` uses the current information cutoff, the standard workflow, forecaster `agent`, method `agent judgment`, 20 searches, and two extra review tasks. It selects prospective mode for real questions and simulation for fixtures; it never silently switches past-deadline questions into retrospective mode. These defaults are returned in the task context and can be overridden with flags shown by `run start --help`. Use `--workflow timeline` to begin with model structure, and declare `--research-status in_progress` or `completed` if research has already begun. Start returns the run ID and the `next` command to continue. Install using the [agent quickstart](../README.md#copy-and-paste-into-an-agent), then run `vorhersage guide` for the built-in overview. The examples below assume `vorhersage` is on your PATH; in a source checkout you can use `.venv/bin/vorhersage`. Commands use the current directory as the project. Change into your study once with `cd`; no `--project` flag is needed there. To address another project, put `--project PATH` before the command. It selects a directory containing `.vorhersage/state.sqlite`. Input file paths remain relative to your current directory. ```bash vorhersage version vorhersage guide vorhersage init /tmp/my-forecast-study --name "My forecast study" cd /tmp/my-forecast-study vorhersage schema question vorhersage question add --from question.json vorhersage schema run vorhersage run start --from run.json ``` Author the JSON files using the returned schemas. `--from -` accepts stdin. Run creation returns `data.run_id` and an exact, read-only next action. Continue: ```bash vorhersage next --run RUN_ID vorhersage submit --run RUN_ID --from result.json ``` `next` returns the current task, its payload schema, submission schema, remaining budget, frozen question/profile, previous analyses and referenced evidence. It does not change the database. A replacement agent can use `status` or `run list` to find the run and continue with `next`. An authored submission has this shape; replace identifiers and values from the actual `next` response: ```json { "task_id": "task_FROM_NEXT", "expected_revision": 0, "idempotency_key": "unique_submission_key", "payload": { "method": "judgment", "probability": 0.3, "rationale": "An explicitly subjective starting estimate.", "limitations": ["No adequate empirical reference class yet."], "evidence_refs": [] }, "usage": {"searches": 0, "cost_usd": 0, "model_calls": 1} } ``` Retrying the identical submission returns the accepted result without duplication. Reusing its key with changed content, or submitting against an old revision, fails without partial writes. Read `next` again after a state conflict. Normal responses are one JSON envelope on stdout with `schema_version`, `status`, `data`, `warnings`, `errors`, and `next_actions`. Errors use a JSON envelope on stderr and exit nonzero. Explicit `--help` is human-readable. `report --format markdown` is also an explicit non-JSON output mode. ## Define the event before estimating it Questions require YES, NO and void rules, an event deadline, a time to check resolution, a resolution source, domain, event group, and research profile. `kind` distinguishes real events from simulation fixtures. All timestamps need a timezone. `resolve_after` must be at or after the event deadline; an earlier conclusive official outcome can still be recorded. `question revise --expected-version N --from question.json` appends a version. Existing runs retain their original version and criteria. New runs use the latest version. A forecast revision must stay on the same event version; changed wording requires a new run rather than silently attaching to an old forecast. The three run modes are explicitly selected: - `prospective`: real questions, issued before the event deadline and before any resolution has been registered for that version. - `retrospective`: replay or hindsight work, evaluated separately. - `simulation`: fictional questions and outcomes, evaluated separately. These labels and local timestamps do not certify the absence of hindsight, outside information, or model training contamination. Evaluation additionally excludes forecasts issued at or after the earliest recorded resolution-knowledge time. Agents must record that time honestly and promptly. ## Research coverage and bounded review Built-in profiles are `general`, `team_championship`, and `market_baseline`. `profile list` shows their domains. Add another immutable policy with `profile add --from profile.json`; a changed policy should get a new ID. The workflow is: ```text prior → drivers → required research domains → assessment → review → issue │ optional research ←────────────┘ └→ assessment → review ``` Every required research domain needs an interpretation and either referenced evidence (`assessed`) or an explicit reason for uncertainty (`unknown`). Record source conflicts, including unresolved ones and their treatment. Unknowns can advance the workflow; missing coverage cannot. A schema validates coverage, not the substantive quality of the research. In standard mode the prior may be a judgment or a reference class. New deep runs plan close and broader classes before inquiries, then search them and assess the results. Keep imperfect input analogies even when they cannot support an empirical rate; use further research to verify outcomes and broaden discovery. A judgmental fallback preserves a structured search disposition and an explicit exception. See [the widening workflow](DEEP_RESEARCH.md). An empirical prior requires unique case IDs, outcomes, evidence, a selection rule and comparability caveats. The package computes its frequency. Drivers describe mechanisms and paths to both YES and NO. Declare `research_status` when starting a run: `not_started`, `in_progress`, `completed`, or `unspecified`. The prior task preserves this declaration and its actual submission time in `prior_record`. Research completed before registration must not be presented as an original pre-research prior. Research usage is reported by the agent. `max_searches` limits submitted search counts; it does not control external browsing. Existing evidence can still be used when this budget is exhausted. `max_extra_tasks` limits additional research requested by reviews and reference-class follow-ups. Ordinary studies default to 60 searches and eight follow-up tasks; use `budget --max-searches N --max-extra-tasks N --reason TEXT` to increase ceilings with an audit record. Frozen experiment ceilings cannot change. Every review must address objections that the probability is too high and too low. An unchanged estimate is legitimate. ## Obtain evidence through Epiq Epiq owns shared factual research. Use its existing interface to add evidence, claims and corrections. Vorhersage reads Epiq through its CLI and never writes Epiq's SQLite tables directly. ```bash vorhersage epiq search \ --db /path/to/research.sqlite --kind Company --text factory vorhersage schema epiq_selection vorhersage epiq freeze \ --db /path/to/research.sqlite --from selection.json ``` For a source checkout rather than an installed Epiq CLI, add `--epiq-source /path/to/epiq/src`. For this workspace, that directory is `../epiq/epiq/src`. A selection names exact cells: ```json { "information_as_of": "2026-09-09T10:27:04Z", "cells": [ {"kind": "ResearchFinding", "subject": "f_season", "question": "finding_record"} ] } ``` An optional `known_at` controls Epiq's historical projection. It is distinct from the original research cutoff. Freezing uses a consistent SQLite export, selects answered cells, and preserves values, claim/evidence IDs, source content and assertion recording events. Both scalar and multi-valued cells are supported. Contested, missing and withdrawn selected cells need reconciliation first. The result supplies references of the form: ```json {"packet_id": "pkt_FROM_FREEZE", "record_id": "cell_FROM_FREEZE"} ``` Put these in task `evidence_refs`. `packet show ID` returns the portable packet; `packet import --from packet.json` lets another project use it without Epiq. Manual packets use `schema packet` and must identify their source content and times. An optional supplied hash is verified; otherwise the package computes it. All selected observations and source retrieval times must precede the packet's information cutoff, which must precede or equal the run cutoff. Prospective runs default to `cutoff_policy: live`: their cutoff advances to the actual time of each accepted submission so research gathered during the run is admissible. Every task records its cutoff, and the issued forecast retains both the initial and final cutoffs. Specify `cutoff_policy: fixed` for a prospective run with an enforced fixed information boundary. Retrospective and simulation runs always use fixed cutoffs. Day-only Epiq retrieval dates are conservatively treated as available at day's end. An import today does not establish that Epiq knew the claim on an earlier research date. Hashes establish content identity, not historical availability or truth. ## Probability calculations Assessment supports six methods: | Method | Required judgment and calculation | | --- | --- | | `judgment` | A supplied probability with rationale, limitations and evidence | | `conditional_path` | A nested chain of conditional probabilities, multiplied by the package | | `ensemble` | Explicit member forecast IDs and optional weights; equal weights by default | | `scenario_mixture` | Declared scenario weights and conditional probabilities, with optional ranges | | `odds_ledger` | Declared anchor and likelihood ratios, replacing dependent groups with explicit joint ratios | | `timeline_model` | Declared milestone schedules and joint scenario weights; sum the mass meeting the deadline | See the [odds-ledger guide](ODDS_LEDGER.md) for declarations and `export-widget FORECAST_ID --output audit.html`, which exports an offline interactive audit. For deadline questions, `workflow: "timeline"` starts with a registered structure and parameter-specific research tasks, without a prior. Missing inputs remain unresolved; unweighted cases yield no probability. See the [timeline guide](TIMELINE_MODELS.md) for schemas, versioned research, and schedule comparisons. This workflow defaults to a fixed information cutoff. For a conditional path, the first component's `conditional_on` is null. Each subsequent component names the preceding component, and the final component is named `target`. Explain why the events are nested. These are conditional inputs, not independent marginal probabilities. If an optional total probability is supplied, it must match the computed result. Ensembles require one latest eligible forecast per forecaster at the run cutoff, with identical question version and mode. Weights must be nonnegative and sum to one. Repeated runs do not automatically represent independent information. A review can retain the estimate, revise it as a new judgment, or request more research and reassessment. A direct review revision is labeled `review_judgment` on the issued forecast; it is not presented as the output of unchanged earlier conditional parameters. Earlier calculations remain in the history. ## Issue, monitor and revise The issue task records a stopping reason, review time and observable triggers. It freezes the question, profile, probability, method, coverage, evidence references, costs, and exact input hashes. Issuance ends that run's task sequence and puts it in `waiting`; it does not resolve the event. ```bash vorhersage monitor vorhersage epiq check \ --db /path/to/research.sqlite --packet PACKET_ID vorhersage signal --from signal.json ``` `monitor` and `epiq check` are read-only. The latter compares selected cells with a fresh consistent snapshot, reporting changed claim IDs, values or cell states. When something changes, it returns a suggested signal payload. Submit that payload explicitly to register the review request. A question-level signal can also report newly relevant evidence outside the old selection. Start a new run with `previous_forecast_id` to revise. It repeats the research and review process under a new cutoff, reusing existing evidence where suitable. The previous forecast remains unchanged. A competing revision that already issued prevents another run from overwriting that successor. Signals target existing forecasts, so a completed successor is not perpetually marked due by the old signal. `watch run` provides a persistent polling loop; `watch tick` integrates with an external scheduler. Configured research and agent workers can collect changes, start/resume a revision and submit validated tasks through issuance. No OS service is installed and no probability propagation is inferred automatically. See the worker protocol in the extension guide. A fixed-cutoff run needs a new run when later information is required; an active prospective live run admits it at the next submission. ## Resolve and compare ```bash vorhersage schema resolution vorhersage resolve --from resolution.json vorhersage schema evaluation vorhersage evaluate --from evaluation-policy.json ``` Resolutions require evidence, exact question version, known time, outcome and reason. Valid outcomes are `yes`, `no`, `void` and `disputed`. The first resolution uses `previous_resolution_id: null`; corrections must name the latest resolution. Earlier resolution records and evaluations remain unchanged. Evaluation requires an explicit question-version cohort, forecaster list, forecast cutoff, resolution-history cutoff, and mode. It selects one latest eligible forecast per forecaster/question, excludes predictions issued after resolution knowledge, and records missing submissions and void/disputed cases. Reports show available-case Brier means and a separate common matched cohort. Paired differences use the common cohort. Calibration bins include counts; related events retain their group IDs. No significance or cluster uncertainty interval is estimated in this version. Costs cover selected runs and are agent-reported. Learn calibration or weights only in future held-out experiments. Use `forecast show`, `evaluation show`, `report --question ID`, and `doctor` to inspect records and verify integrity. `report --format markdown` provides a compact human-readable history; the JSON report retains full manifests. ## Storage and limits For historical benchmark questions, use `benchmark import-halawi`, `benchmark start`, and `benchmark evaluate`. The [executable replay guide](../examples/backtesting/README.md) documents bundle separation, cutoff conventions, policy fields, and the first 20-case software control. `schema replay_evaluation` describes its policy; `replay_evaluation show ID` retrieves a frozen replay score. Replay evaluation preserves actual issuance timestamps and scores at an explicit simulated cutoff; it does not relax the ordinary evaluator's pre-resolution eligibility rule. This first replay path supports fixed-evidence judgment runs. It does not supply an archived search service or change the ordinary ensemble member eligibility rules. Training contamination and historical question edits remain unverified; directory separation alone does not prevent an agent reading labels. Each project stores SQLite workflow state in `.vorhersage/state.sqlite`. Question versions, profiles, artifacts, receipts and events are append-only through the CLI and guarded against SQL updates/deletions. Run state advances transactionally with revision checks. This protects routine operation, not an adversary who can rewrite the database file. Schema version 1 has no migration path yet. Evidence packets embed source content for portability. This first version reads project artifacts into memory for some portfolio operations, and Epiq freezing takes a database snapshot. It is intended for small portfolios; large-scale indexing and incremental exports remain future work. New domains, numeric distributions, fitted models, learned calibration, background agents and live benchmark results are outside this release. ## One-question research against a hidden market target Use `workbench browse` and `inspect` to select a live Kalshi or Polymarket contract without displaying its price. `workbench start` saves the target in a separate evaluator project. Record an initial estimate, then plan → research → checkpoint through `workbench submit`. Finish seals the trajectory; only then can `reveal` publish prices and `report` show the effect of each research step on market agreement. Keep evaluator files outside the researcher's accessible workspace. See the [market workbench guide](MARKET_WORKBENCH.md) for schemas, source capture, fresh-context exports, exposure reporting, and an offline example. Market targets are separate from actual resolutions and do not enter ordinary outcome scoring.