Optional Linux Docker research containment is available through quant-isolate,
the run_isolated API and explicitly configured pipeline steps. See
research isolation for supported hosts, exact image
identity, limits, cancellation and real containment CI evidence.
独立持久研究队列、Worker及跨仓合成验收见独立研究Worker。 这是显式启用的源码集成候选,包含租约、重试、取消与共享产物引用;现有部署不自动切换。
只读查看已登记的前向账户:
python -m quant_pipeline.research_paper inspect /path/to/accountinspect核验保存的登记定义、登记时间及全部完成观测的产物哈希,输出结构化JSON。
它不初始化数据库、不重建报告、不刷新行情,也不执行策略或登记新账户。
没有观测时绩效为不可用;失败尝试保留。核验范围是已保存证据的一致性,不是当前输入
新鲜度或实盘有效性认证。查看历史冻结账户可使用单独的维护环境,账户原执行环境保持不变。
已登记账户的手动日常前向编排使用quant-forward status|plan|run。它核验明确的交易日历、
采集时间、当天数据和冻结身份,复用原生账户锁及追加账本;没有调度器且不会自动重试。
配置、状态和合成验收边界见前向研究日常流程。
研究可信度升级:接口、使用示例、验收及限制见 11–20 使用说明。
Deterministic local orchestration for research, backtest, and paper-trading workflows across the
PureSaber quant stack. Version 0.4.0 retains the typed schema_version: "2.0.0" DAG and adds a
quiet-by-default close-of-day notification contract. Generated full/core coverage evidence is
explicitly ignored locally. The existing v1 linear YAML behavior remains available.
For close-of-day runs, configure alerts_file to the report hub's generated alert sidecar. The
pipeline verifies that sidecar and atomically writes notification-latest.json. Its notify flag
is false for a healthy run with information-only alerts, and true for failed/blocked runs or
critical/warning alerts.
For the current cross-repository research workbench, use the verified
quant-workspace research profile.
Its bootstrap and verifier install exact source commits and the closed external dependency lock.
The package's existing Git requirements describe the earlier release closure; installing the
research extra alone is not a substitute for this source profile. Coordinated release versions
and tags remain a separate release step.
pip install --no-deps -r requirements.lock
pip check
pip install -e . --no-deps --no-build-isolation
pip checkContinuous walk-forward selected-path results are now published only after complete execution,
return-date coverage checks and durable evidence writes. Resume validates the summary checksum,
the complete artifact inventory, frozen selections, and metrics recomputed from verified returns.
Failed attempts remain in sibling selected-continuous-attempt-* directories with diagnostics;
an interrupted legacy directory without its final summary is preserved before retry. Completed
legacy caches without the new integrity record fail closed: rerun in a new study output directory,
leaving the old evidence intact. Upstream training and execution limitations are retained.
The cache check, recovery, execution and publication share a cross-process lock in a stable
sibling directory. A competing invocation exits with a lock error and can be retried after the
active run finishes; it never archives or replaces the active/completed output.
Rebuild the complete runtime, development, and editable-build lock with Python 3.10 so the oldest supported interpreter's conditional dependency closure remains explicit:
python -m piptools compile --extra dev --build-deps-for editable \
--allow-unsafe --strip-extras --resolver backtracking \
--index-url https://pypi.org/simple --output-file requirements.lock pyproject.tomlquant-pipe run --config configs/daily_paper.yaml --dry-run
quant-pipe run --config configs/daily_paper.yamlFor the research-integrity post-run gate, set the completed run ID and the point-in-time asset return file before executing the standard-contract validation, attribution, and experiment indexing steps:
$env:QUANT_RUN_ID = "run_001"
$env:QUANT_ASSET_RETURNS = "D:/quant_data/asset_returns.csv"
quant-pipe run --config configs/research_integrity_postrun.yamlPipeline configs reference quant-workspace env vars such as {QW_QUANT_LAB_REPO}.
V1 string commands and opt-in shell: true remain available only through the legacy configuration
shape. Historical configs are not rewritten.
V2 requires stable step and artifact IDs, explicit dependencies, argv commands, retry and timeout
policies, and paths contained by workspace_root. Shell execution is rejected. The full structural
schema is at configs/schema/pipeline-v2.schema.json; semantic validation additionally rejects
duplicate or unknown IDs, self-dependencies, cycles, producer conflicts, undeclared artifact
dependencies, output path conflicts, and runtime path escape.
schema_version: "2.0.0"
name: example
workspace_root: "."
checkpoint_path: ".state/checkpoint.json"
log_dir: ".state/logs"
fail_fast: false
artifacts:
- artifact_id: result
path: artifacts/result.txt
producer: build
required: true
immutable: true
steps:
- id: build
kind: research
needs: []
command: [python, -m, research_job, --out, artifacts/result.txt]
inputs: []
outputs: [result]
retry:
max_attempts: 2
retry_exit_codes: [75]
retry_exceptions: [TimeoutExpired]
backoff_seconds: 1
timeout: 300Run and strictly resume with an immutable StackManifest 1.0.0:
quant-pipe run --config pipeline-v2.yaml --stack-manifest stack-manifest.json --run-id run-001 --seed 7
quant-pipe run --config pipeline-v2.yaml --stack-manifest stack-manifest.json --run-id run-001 --seed 7 --resumeThe runner uses lexicographically deterministic topology ordering. Failed descendants become
blocked; independent branches continue unless fail_fast is enabled. Retries match only the
configured process exit codes or executor exception names. Steps whose kind is data_quality,
schema_validation, sequence_validation, hash_validation, or pit_validation are fail-closed
gates: their failures never retry even if a retry matcher is configured. Contract, path, and
artifact hash failures also never retry.
Each attempt has separate immutable stdout/stderr logs and SHA-256 values. Checkpoints are canonical JSON, self-hashed, fsynced, and atomically replaced after state transitions. Resume verifies the run ID, config hash, stack manifest hash, seed, event sequence, attempt logs, idempotency keys, and every immutable output hash. This validation also applies to a pending retry checkpoint before any resume event or replacement checkpoint is written. Missing or modified inputs, outputs, or logs fail closed.
The v2 implementation accepts only a canonical, self-hashed, release-ready StackManifest 1.0.0
produced by the backward-compatible Workspace manifest contract. The operations layer
requires the Windows scheduler and common maintenance admission lock from pinned commit
2cb59b1c433a154335f13d5fd9f65d3aee974596. File inputs must use canonical JSON;
both files and mappings are validated by quant-workspace. The integration is a required runtime
dependency and is pinned in requirements.lock.
The 0.4.0 change does not alter DAG, checkpoint, retry, integrity, or v1 compatibility semantics.
To roll back the candidate, revert the 0.4.0 commit and rebuild from the reverted
pyproject.toml. Never move or recreate any historical tag.
This package does not provide distributed scheduling, network execution, credentials, or live order submission.
本机操作台、自动滚动样本外验证、限定因子表达式、当前NAV组合配置、动态交易状态、前向模拟账户和历史研究助手已接入。使用quant-workspace提供的固定源码集成环境,完整命令与验收边界见工作台指南。
CI的requirements-research.lock固定完整研究依赖,应用依赖固定到Git提交;安装后运行pip check。requirements.lock保留基础编排环境。基础或研究依赖变化时,必须更新对应声明与锁;测试会核验requirements-research.in中的版本约束和直接下载地址是否进入研究锁。用Python3.10重建研究锁:
python -m piptools compile --extra dev --extra research --build-deps-for editable \
--allow-unsafe --strip-extras --index-url https://pypi.org/simple \
--constraint requirements-research.in --output-file requirements-research.lock pyproject.tomlquant-workspace的stack.json与公共依赖锁共同定义独立的集成快照。更新该快照时,应在集成PR中一起修改并通过跨仓验收;单仓依赖升级不会自动修改冻结研究环境。
新增跨研究家族 DSR/CSCV/SPA/MCS 入口、依赖 bootstrap/HAC,以及训练期决定参数的连续样本外账户。
account_policy 默认仍为 independent;连续账户需显式选择,且不能拼接独立资金账户来冒充连续选择路径。
本批联合锁文件保留报告端的固定公共包约束,并增加经验证的 arch/statsmodels 组合与新应用提交。
使用方法、锁文件重建、嵌套验证入口及限制见 研究可信度指南。