MarketLab is a package-first research toolkit for reproducible market experiments, reviewable model diagnostics, and isolated Alpaca paper-trading loops. The current repository keeps the active surface narrow: weekly rank examples, QQQ/VOO ETF paper configs, the isolated BTC paper config, and the retained BTC Phase 8 handoff config that informs Phase 9 work.
See docs/architecture.md for the system map, data contracts, execution flow, and extension rules. See docs/solid-architecture-audit.md for the SOLID-first technical-debt audit and the pre-cloud persistence-hardening roadmap. See docs/service-extraction-readiness.md for the checklist used before extracting services, ports, or adapters. See docs/paper-trading.md for the daily ETF/BTC paper-trading loops and local Docker Compose shape. See docs/btc-phase8-methodology.md for the retained BTC Phase 8 methodology summary and Phase 9 handoff boundary. See docs/mcp-server.md for the MCP tool surface and the Docker sidecar pattern. See docs/codex-mcp.md for attaching the Docker-packaged MCP server to a new Codex session. See docs/mcp-vscode-copilot.md for the VS Code stable + GitHub Copilot connection path. See docs/PLAN.md for the complete Phase 9 BTC evidence, Azure foundation, and QQQ operations roadmap.
python scripts/run_marketlab.py prepare-data --config configs/experiment.weekly_rank.yaml
python scripts/run_marketlab.py backtest --config configs/experiment.weekly_rank.yaml
python scripts/run_marketlab.py train-models --config configs/experiment.weekly_rank.yaml
python scripts/run_marketlab.py run-experiment --config configs/experiment.weekly_rank.yaml
python scripts/run_marketlab.py paper-status --config configs/experiment.qqq_paper_daily.yaml
python scripts/run_marketlab.py paper-decision --config configs/experiment.qqq_paper_daily.yaml
python scripts/run_marketlab.py paper-agent-approve --config configs/experiment.qqq_paper_daily.yaml --once
python scripts/run_marketlab.py paper-scheduler --config configs/experiment.qqq_paper_daily.yaml --once
python scripts/run_marketlab.py paper-report --config configs/experiment.qqq_paper_daily.yaml --start 2026-04-13 --end 2026-05-15
PHASE8_RUN_DIR=artifacts/runs/<experiment>/<run-id>
python scripts/run_marketlab.py phase8-summary --run-dir "$PHASE8_RUN_DIR"
python scripts/run_marketlab.py phase8-methodology-review --run-dir "$PHASE8_RUN_DIR"python scripts/run_marketlab.py ... is the canonical local invocation path because it always resolves to the source tree under src/.
The retained Phase 8 review commands require a restored local run directory; generated run artifacts are not tracked in fresh checkouts.
For LLM-driven use, the packaged MCP entrypoint is:
marketlab-mcp --workspace-root ./workspace --artifact-root ./artifacts --repo-root .prepare-data: build or reuse the cached prepared panel.backtest: run the enabled baselines (buy_hold,sma, optional config-defined allocation baselines, and the optional executable optimized baseline) and write performance, analytics summaries, report, and plots.train-models: fit the configured models across walk-forward folds and write raw training artifacts plus fold/model summaries, ranking diagnostics, calibration diagnostics, threshold diagnostics, and review plots.run-experiment: run baselines and ML strategies together on the shared out-of-sample window and write the experiment outputs, analytics summaries, ranking-aware ML summary CSVs, calibration/threshold diagnostics, and review plots.paper-decision: refresh Alpaca daily data, retrain the six-model daily paper set for the configured single ETF, and persist one consensus proposal plus evidence.paper-status: read the latest persisted paper-trading status plus the latest proposal summary.paper-approve: approve or reject one persisted proposal by actoragentormanual.paper-agent-approve: run the autonomous agent worker once or in a loop, usingopenai,claude, or deterministic fallback to approve or reject pending proposals.paper-submit: reconcile the approved proposal against the Alpaca paper account, refresh any previously submitted broker status, and persist either a submitted buy-side notionalDAYmarket order, a submitted sell-side fractionalDAYmarket order, a no-op, or a skipped submission.paper-scheduler: run the long-lived local paper loop for the configured decision and submission windows.paper-report: build a month-run paper report comparing the realized paper path, the consensus path, each model path,buy_hold, andsma.phase8-summary: rebuild the deterministic Phase 8 strict-gate run summary from retained persisted artifacts.phase8-methodology-review: consolidate the retained BTC Phase 8 strict-gate evidence for historical review.
Writes a timestamped folder under artifacts/runs/<experiment_name>/ containing:
folds.csvfold_diagnostics.csvmodel_manifest.csvmodel_metrics.csvpredictions.csvranking_diagnostics.csvcalibration_diagnostics.csvscore_histograms.csvthreshold_diagnostics.csvmodel_summary.csvfold_summary.csvcalibration_curves.pngscore_histograms.pngthreshold_sweeps.png- per-fold model pickles under
models/
Writes a timestamped folder under artifacts/runs/<experiment_name>/ containing:
metrics.csvperformance.csvstrategy_summary.csvmonthly_returns.csvturnover_costs.csvcost_sensitivity.csvdaily_exposure.csv- optional
group_exposure.csv - optional
benchmark_relative.csv report.mdcumulative_returns.pngdrawdown.pngturnover.png
Writes a timestamped folder under artifacts/runs/<experiment_name>/ containing:
metrics.csvperformance.csvstrategy_summary.csvmonthly_returns.csvturnover_costs.csvcost_sensitivity.csvdaily_exposure.csv- optional
group_exposure.csv - optional
benchmark_relative.csv report.mdcumulative_returns.pngdrawdown.pngturnover.pngfold_diagnostics.csvranking_diagnostics.csvcalibration_diagnostics.csvscore_histograms.csvthreshold_diagnostics.csvmodel_summary.csvfold_summary.csvcalibration_curves.pngscore_histograms.pngthreshold_sweeps.png- optional per-fold model pickles under
models/
evaluation.walk_forward now supports these additive guardrail keys:
min_train_rowsmin_test_rowsmin_train_positive_ratemin_test_positive_rateembargo_periods
The shipped weekly_rank templates opt into a conservative preset, while code defaults remain backward-compatible for older configs.
When train-models or run-experiment end up with zero usable folds, they still create the run directory, write fold_diagnostics.csv, and fail with an error that includes the diagnostics path. On successful ML experiment runs, run-experiment also includes a Walk-Forward Diagnostics section in report.md.
Model evaluation now stays additive to the existing ROC AUC surface while reflecting the configured ranking mode. ranking_diagnostics.csv stores one row per model, fold, and signal date, now including evaluation_mode so the persisted diagnostics distinguish the default long_short path from long_only timing runs. model_metrics.csv keeps the existing classification fields and now also includes balanced classification metrics, Brier score, per-fold mean rank correlation, top/bottom bucket returns, top-bottom spread, spread hit rate, top-bucket hit rate, worst observed top-bucket return, worst observed spread, and the counts of usable ranking dates.
model_summary.csv and fold_summary.csv still preserve the ROC AUC winner fields for continuity, and they now add both spread-based and long-only-friendly winner fields. The report headline mirrors that split by showing the best model by mean ROC AUC, mean top-bucket return, and mean top-bottom spread. This remains evaluation-focused: it does not change how weights are generated or how ML strategies trade.
Calibration review is also additive to the existing evaluation surface. calibration_diagnostics.csv stores fixed 10-bin score calibration rows per model and fold, including observed positive rate, calibration gap, and return context inside each score band. score_histograms.csv stores target-class score distributions over the same fixed bins, and threshold_diagnostics.csv stores threshold sweeps from 0.05 to 0.95 with deterministic classification metrics plus downside-oriented forward-return columns for predicted positives.
model_metrics.csv now adds fold-level ece and max_calibration_gap, while model_summary.csv and fold_summary.csv add mean_ece and mean_max_calibration_gap. When plots are enabled, train-models and run-experiment also write calibration_curves.png, score_histograms.png, and threshold_sweeps.png, and the experiment report includes a Calibration And Threshold Diagnostics section with compact calibration and threshold highlight tables. This PR remains evaluation-only: it does not recalibrate probabilities or change any strategy controls.
run-experiment now supports additive execution controls under portfolio.ranking:
mode:long_shortorlong_onlymin_score_threshold: minimum score required for long selection; inlong_short, shorts requirescore <= 1 - min_score_thresholdcash_when_underfilled: whentrue, keep fixed per-slot weights for the names that pass and leave the missing exposure in cash instead of zeroing the whole basket
Defaults remain backward-compatible:
mode: long_shortmin_score_threshold: 0.0cash_when_underfilled: false
Execution semantics:
long_shortkeeps the existing equal-weight market-neutral construction with+0.5total long exposure and-0.5total short exposure when the basket is fully populated.long_onlyallocates+1.0 / long_nper selected long and leaves all other names at0.0.- With
cash_when_underfilled: false, any underfilled basket still falls back to an all-zero allocation for that rebalance. - With
cash_when_underfilled: true, missing slots stay in cash and the selected names keep their fixed per-slot weights instead of being renormalized.
Non-default ML strategy variants are named explicitly in experiment outputs, for example ml_logistic_regression__long_only or ml_random_forest__long_short__thr0p60__cash.
train-models now keeps the existing issue #19 and #20 score-review artifacts while making the ranking diagnostics mode-aware for long_short and long_only. Threshold gating and cash-underfilled behavior still remain execution-only controls; the offline evaluation layer does not replay those execution variants.
run-experiment now also supports structural risk caps for ML ranking strategies under portfolio.risk:
max_position_weightmax_group_weightmax_long_exposuremax_short_exposure
These caps apply only after the current ranking strategy has already selected longs and shorts. MarketLab clips single-name exposure first, then clips group exposure separately for the long and short sleeves, then caps total long exposure, and finally caps total short exposure. Any removed exposure stays in cash; it is never renormalized back into the book.
This remains a narrow structural-control step. The new caps do not change buy_hold, sma, or allocation baselines, and they do not add optimizer methods, factor-model attribution, or broader scenario-pack work yet. Lower realized volatility or drawdown under a capped ranking strategy may simply reflect lower invested exposure or more cash, not better signal quality.
backtest and run-experiment now also persist additive exposure analytics alongside the existing return and turnover artifacts.
daily_exposure.csvstores end-of-day drifted long, short, gross, and net exposure for every strategy date.cash_weightis exposure-style slack:max(0, 1 - gross_exposure).engine_cash_weightis the engine's carried cash or collateral weight, which matters for long-short books where gross exposure can be fully deployed while the engine still carries collateral cash.group_exposure.csvis written whendata.symbol_groupscovers the run universe, and it keeps long and short sleeves separate instead of netting them together.strategy_summary.csvnow appends average exposure, cash, active-position, and concentration fields, andreport.mdincludes anExposure Summarysection.
These analytics are interpretive, not predictive. Lower drawdown or volatility can simply reflect lower gross exposure or more cash, not better signal quality.
backtest and run-experiment now also support optional benchmark-relative analytics under evaluation.benchmark_strategy.
- The benchmark is an existing strategy name already present in the run, not a raw symbol.
- When configured, MarketLab writes
benchmark_relative.csvwith daily strategy return, benchmark return, active return, and relative-equity paths on shared dates. strategy_summary.csvnow also appends benchmark-relative fields such as excess cumulative return, annualized excess return, tracking error, information ratio, correlation to benchmark, and up/down capture.report.mdincludes aBenchmark-Relative Summarysection when a benchmark is configured.
These metrics are comparative, not causal. Higher absolute return and better benchmark-relative performance are separate questions, and lower active risk does not imply outperformance.
backtest and run-experiment now also support additive turnover-cost sensitivity diagnostics under evaluation.cost_sensitivity_bps.
cost_sensitivity.csvreprices each strategy path at0.0bps, the configuredportfolio.costs.bps_per_trade, and any extra configured bps assumptions without rerunning the strategies.- The
0.0bps rows are theoretical gross-return baselines, not executable outcomes. - The row at the configured trading-cost assumption matches the current net-return and cost-drag path already shown in
strategy_summary.csv. report.mdincludes aCost Sensitivitysection so implementation-cost assumptions can be reviewed alongside turnover.
This remains a reporting-only diagnostic. It does not change weights, execution timing, or the backtest engine.
backtest and run-experiment now also support optional config-defined allocation baselines under baselines.allocation.
Add to data:
symbol_groups: optional mapping from symbol to group name
Add to baselines:
allocation.enabledallocation.mode:equal,symbol_weights, orgroup_weightsallocation.symbol_weightsallocation.group_weights
Allocation semantics:
buy_holdemits one initial equal-weight allocation and then lets positions drift naturally.allocation_equalrebalances back to equal target weights on the existing rebalance cadence.allocation_symbol_weightsrebalances back to exact configured symbol weights.allocation_group_weightsrebalances back to configured group sleeves and splits each sleeve equally across the symbols in that group.
This first Phase 5 step stays narrow: allocation baselines are long-only, fully invested target-weight portfolios. Broader scenario comparisons remain later work.
backtest and run-experiment now also support executable long-only optimized baselines under baselines.optimized.
Add to baselines:
optimized.enabledoptimized.method:mean_variance,risk_parity, orblack_littermanoptimized.lookback_daysoptimized.rebalance_frequencyoptimized.covariance_estimator:sample,ewma,diagonal_shrinkage, orexternal_csvoptimized.external_covariance_pathoptimized.expected_return_source:historical_meanorexternal_csvoptimized.external_expected_returns_pathoptimized.long_onlyoptimized.target_gross_exposureoptimized.risk_aversionoptimized.equilibrium_weightsoptimized.tauoptimized.views
Current Phase 5 behavior is intentionally narrow:
mean_variance,risk_parity, andblack_littermanare executable optimized methodsblack_littermanuses signed basket views as written, does not renormalize them, and defaults to the diagonalOmega = diag(P * tau * Sigma * P^T)uncertainty rule- successful Black-Litterman runs write
black_litterman_assumptions.csvalongside the other run artifacts and reference it fromreport.md - optimized runs with real solver windows write
covariance_diagnostics.csvand add aCovariance Diagnosticssection toreport.md - the optimizer uses trailing daily adjusted-close returns ending on the
signal_dateand applies the weights on the next market open - no allocation is emitted before the first rebalance window with a full optimizer lookback
target_gross_exposure < 1.0leaves the undeployed exposure in cashportfolio.risk.max_position_weightandportfolio.risk.max_group_weightare enforced as hard long-only optimizer constraintslong_onlyandtarget_gross_exposure <= 1.0remain mandatory for all executable optimized methodsrisk_aversionapplies tomean_varianceand is also reused as the market-implied prior scalar forblack_littermanrisk_parityuses only the configured covariance estimator and does not consume expected-return inputs- capped
risk_parityportfolios are the best feasible approximation to equal risk contributions, not exact parity under binding caps
External input rules:
- covariance CSVs must be square daily-return covariance matrices keyed by the configured symbols
- expected-return CSVs must contain exactly
symbol,expected_return, whereexpected_returnis a daily decimal return - factor CSVs must be local wide daily return files with a required
datecolumn plus one or more numeric factor columns - Black-Litterman views are signed basket weights over configured symbols; the loader rejects unknown symbols, empty views, and all-zero coefficients
- both loaders reorder to
data.symbolsand reject missing, extra, or non-numeric values
backtest and run-experiment now also support optional factor attribution and additive covariance diagnostics under evaluation.
Add to evaluation:
factor_model_path
Diagnostics behavior:
- when
evaluation.factor_model_pathis configured, MarketLab loads a local wide daily factor-return CSV, aligns it to the final persistedPerformanceFrame, and writesfactor_diagnostics.csv - factor attribution runs on realized
net_returnfor every strategy in the persisted run, including ML strategies inrun-experiment report.mdadds aFactor Attribution Diagnosticssection with a strategy-level summary, a full factor exposure table, and a link tofactor_diagnostics.csv- covariance diagnostics reflect the regularized matrix actually used by the optimizer, not the pre-regularization estimate
- covariance diagnostics remain optimized-baseline-only;
buy_hold,sma, allocation baselines, and ML strategies do not emit covariance artifacts
Interpretation rules:
- factor attribution is descriptive only; it does not feed optimizer weights, model ranking, or scenario selection
- covariance and factor diagnostics are review layers for the current run, not new strategy inputs
The checked-in repo config surface is intentionally small:
configs/experiment.weekly_rank.yamlconfigs/experiment.weekly_rank.smoke.yamlconfigs/experiment.qqq_paper_daily.yamlconfigs/experiment.voo_paper_daily.yamlconfigs/experiment.btc_paper_daily.yamlconfigs/experiment.btc_phase8_guarded_gate_bull_risk_off_override_partial_support.yaml
The first two configs are the reusable research examples. The QQQ, VOO, and BTC paper configs are operational paper-loop entry points. The retained BTC Phase 8 config is historical evidence for the Phase 9 BTC handoff, not a broad active research grid.
BTC paper uses its own tracked config and Docker shape:
configs/experiment.btc_paper_daily.yaml.env.btc-paper.exampledocker/compose.btc-paper.ymlmarketlab-btc-paper-mcp,marketlab-btc-paper-scheduler, andmarketlab-btc-paper-agent../artifacts-btc-papermounted to/app/repo/artifacts
The retained Phase 8 diagnostic commands read persisted run artifacts and write review CSVs. They do not retrain models, change strategy weights, or approve Phase 9 paper deployment.
The default weekly configs now compare six sklearn-only direction classifiers:
logistic_regressionlogistic_l1random_forestextra_treesgradient_boostinghist_gradient_boosting
This wave deliberately stays lightweight. It broadens the comparison baseline without adding external booster dependencies, model-specific pipeline branching, or tuning knobs.
- Python 3.12+
- Installed packages:
pandasPyYAMLmatplotlibyfinancescikit-learnscipy
python -m pip install -e .[dev]
python scripts/run_marketlab.py run-experiment --config configs/experiment.weekly_rank.yamlIf artifacts/data/panel.csv already exists, the pipeline uses it and does not attempt a network download.
If you install MarketLab from PyPI or a built wheel, use the packaged CLI bootstrap flow instead of the repo launcher:
marketlab --version
marketlab list-configs
marketlab write-config --name weekly_rank --output weekly_rank.yaml
marketlab run-experiment --config weekly_rank.yamllist-configs shows the bundled example templates, and write-config exports one of those templates into your working directory. That keeps the installed package self-contained without requiring a checkout of this repository.
Install the optional MCP surface:
python -m pip install "marketlab[mcp]"
marketlab-mcp --helpThe MCP server is stdio-only in Phase 6. It exposes sandboxed config authoring, queued workflow execution, and artifact inspection tools for generic MCP clients.
python -m pytest -q --basetemp .pytest_tmp
powershell -ExecutionPolicy Bypass -File scripts/run-e2e.ps1python -m uv sync --group dev
py -3.12 -m tox -e lint
py -3.12 -m tox -e docs
py -3.12 -m tox -e typecheck
py -3.12 -m tox -e py312
py -3.12 -m tox -e package
py -3.12 -m tox -e integration
py -3.12 -m tox -e mcp-docker
py -3.12 -m tox -e preflight-fast
py -3.12 -m tox -e preflight-slow
py -3.12 -m tox -e preflight
py -3.12 scripts/profile_validation.py --env package --env integrationUse py -3.12 -m tox -e preflight as the canonical local pre-push gate so local validation matches the Python version used in GitHub Actions. For normal iteration, prefer the specific lane you touched or preflight-fast; leave preflight-slow and the full preflight run for packaging, artifact, or final push checks. Run py -3.12 -m tox -e mcp-docker separately when Docker is available and the change touches the MCP container path.
Current measured local Windows budgets are roughly:
lint: under30sdocs: under30stypecheck: about30spy312: under60spackage: about4-6mintegration: about8-10mpreflight: about14-16m
That makes preflight intentionally long because it is the sum of the expensive packaging and integration lanes, not because the fast lanes are slow. Use scripts/profile_validation.py when you need per-lane timings or need to confirm which component is driving a slow local run.
Use this sequence when preflight feels slow or unstable:
py -3.12 -m tox -e lintpy -3.12 -m tox -e docspy -3.12 -m tox -e typecheckpy -3.12 -m tox -e py312py -3.12 -m tox -e packagepy -3.12 -m tox -e integrationpy -3.12 scripts/profile_validation.py --env package --env integrationpy -3.12 -m tox -e preflight
Interpret the result this way:
- if only
packageis unstable or much slower than expected, inspectscripts/check_package.pyand its scratch or virtualenv path handling next - if only
integrationdominates, profile that suite next, starting with pytest duration reporting inside the integration lane - if both are stable individually but
preflightstill feels killed, treat that as a tooling-timeout or UX problem rather than a MarketLab runtime failure
The MkDocs site now builds directly from the docs/ directory, which is the canonical home for the public documentation set.
- Branch from a refreshed
masterinstead of working directly on the default branch. - Keep changes in small intentional commits so review scope stays clear.
- Run
py -3.12 -m tox -e preflight-fastduring normal iteration. - Run
py -3.12 -m tox -e packagefor packaging or installed-CLI work. - Run
py -3.12 -m tox -e integrationfor pipeline, config, artifact, or report changes. - Run
py -3.12 -m tox -e preflightbefore pushing. - Open a pull request for review instead of pushing directly to
master. - Treat the
Docker Runnerworkflow as an optional manual smoke path, not as a required pre-push step. - Keep Codex skills and other personal automation assets in the user-local Codex home rather than in the public repository or package surface.
- Expect
masterto move ahead of the last public release between monthly release batches.
docker build -t marketlab-cli .
docker run --rm marketlab-cli --help
docker run --rm marketlab-cli backtest --config configs/experiment.weekly_rank.smoke.yamlThe container uses the installed marketlab console script as its entrypoint. Keep using python scripts/run_marketlab.py ... for local source-tree development; the Docker image exists to validate the installed package path and to support manual GitHub Actions runs.
The same image now also installs the MCP extra, so marketlab-mcp is available inside the container.
Start a long-lived container:
docker compose -f docker/compose.mcp.yml up -d --buildThen launch one stdio session through docker exec -i:
docker exec -i marketlab-mcp \
marketlab-mcp \
--workspace-root /app/workspace \
--artifact-root /app/artifacts \
--repo-root /app/repoThis keeps the repo mount read-only and makes the workspace and artifact mounts the only writable roots.
The supported editor path is VS Code stable with GitHub Copilot Chat using workspace-level mcp.json.
The repo includes a checked-in sample:
.vscode/mcp.json.example
Copy it to .vscode/mcp.json, then use the research or paper sidecar as needed:
marketlab-docker-offlinemarketlab-docker-onlinemarketlab-paper-docker-offlinemarketlab-paper-docker-online
Start docker compose -f docker/compose.mcp.yml up -d --build for the research sidecar or docker compose --env-file .env -f docker/compose.paper.yml up -d --build for the paper-review sidecar. The research offline entry is the default review path. The paper offline entry points at marketlab-paper-mcp and the tracked paper artifact state under /app/repo/artifacts. For the full setup flow and manual verification checklist, see docs/mcp-vscode-copilot.md.
If you enable paper.notifications.telegram.enabled, keep TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID in .env before starting the paper stack. The paper scheduler, paper agent, and paper MCP sidecar all need those vars because MCP approvals use the same shared approval service.
Codex reads MCP server definitions from user-local ~/.codex/config.toml.
The repo includes a checked-in example snippet:
docs/codex.config.toml.example
Copy the mcp_servers entries into your user-local Codex config, then start docker compose -f docker/compose.mcp.yml up -d --build for the research sidecar or docker compose --env-file .env -f docker/compose.paper.yml up -d --build for the paper-review sidecar. After that, start a new Codex session and verify the attachment with /mcp, /debug-config, and marketlab_server_info.
Use marketlab as the default offline research entry. Use marketlab_paper when you want Codex to read the tracked paper proposal and submission state through marketlab-paper-mcp. The _online variants add --allow-network for live data downloads. For the full setup flow and troubleshooting notes, see docs/codex-mcp.md.
The paper flow now also supports a Telegram ops feed. The tracked QQQ paper config enables it by default, while the alternate VOO config keeps it explicit but disabled. Keep TELEGRAM_BOT_TOKEN plus TELEGRAM_CHAT_ID in .env. Notification audit records are written under artifacts/paper/state/notifications/.
GitHub Actions now includes a manual workflow named Docker Runner with these inputs:
command:backtest,train-models, orrun-experimentconfig_path: repo-relative config path inside the image, defaulting toconfigs/experiment.weekly_rank.smoke.yaml
The workflow defaults to backtest, builds the Docker image, runs the selected command inside the container, writes the resolved run directory into the job summary, and uploads the copied artifacts/ tree as an Actions artifact.
This workflow is not part of the required PR CI checks. It is a manual historical real-data smoke runner around the checked-in smoke config, not a rolling weekly market automation job.
GitHub Actions now includes a release workflow at .github/workflows/release.yml.
- Normal feature PRs still merge to
masterin sequence. - Each merge to
masterupdates the open Release PR managed by release-please. - The Release PR accumulates the unreleased monthly or feature batch over time.
- Nothing is tagged or published when a normal feature PR lands on
master. - The actual Git tag, GitHub Release, and PyPI publish path run only when you merge the Release PR.
This means master can intentionally contain unreleased work while you continue merging feature PRs. The Release PR is the public-release gate.
Before the first automated public release:
- verify that the
marketlabpackage name is available on PyPI - configure PyPI Trusted Publishing for this repository and the
pypienvironment - create the GitHub Actions environment named
pypi
The first automated public release target remains v0.1.0.