forecast-anything 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- forecast_anything-0.2.0/.dockerignore +28 -0
- forecast_anything-0.2.0/.env.example +7 -0
- forecast_anything-0.2.0/.github/ISSUE_TEMPLATE/bug.yml +48 -0
- forecast_anything-0.2.0/.github/ISSUE_TEMPLATE/config.yml +8 -0
- forecast_anything-0.2.0/.github/ISSUE_TEMPLATE/connector.yml +43 -0
- forecast_anything-0.2.0/.github/ISSUE_TEMPLATE/feature.yml +34 -0
- forecast_anything-0.2.0/.github/dependabot.yml +10 -0
- forecast_anything-0.2.0/.github/pull_request_template.md +12 -0
- forecast_anything-0.2.0/.github/workflows/benchmarks.yml +36 -0
- forecast_anything-0.2.0/.github/workflows/ci.yml +127 -0
- forecast_anything-0.2.0/.github/workflows/linux-service.yml +65 -0
- forecast_anything-0.2.0/.github/workflows/publish.yml +59 -0
- forecast_anything-0.2.0/.github/workflows/release.yml +34 -0
- forecast_anything-0.2.0/.gitignore +41 -0
- forecast_anything-0.2.0/.impeccable/config.json +26 -0
- forecast_anything-0.2.0/.impeccable/design.json +401 -0
- forecast_anything-0.2.0/.impeccable/surfaces/site-src-app-tsx.md +28 -0
- forecast_anything-0.2.0/AGENTS.md +35 -0
- forecast_anything-0.2.0/CHANGELOG.md +37 -0
- forecast_anything-0.2.0/CODE_OF_CONDUCT.md +30 -0
- forecast_anything-0.2.0/CONTRIBUTING.md +108 -0
- forecast_anything-0.2.0/DESIGN.md +269 -0
- forecast_anything-0.2.0/Dockerfile +45 -0
- forecast_anything-0.2.0/LICENSE +177 -0
- forecast_anything-0.2.0/NOTICE +39 -0
- forecast_anything-0.2.0/PKG-INFO +123 -0
- forecast_anything-0.2.0/PRODUCT.md +66 -0
- forecast_anything-0.2.0/README.md +79 -0
- forecast_anything-0.2.0/SECURITY.md +21 -0
- forecast_anything-0.2.0/apps/console/context.html +1 -0
- forecast_anything-0.2.0/apps/console/index.html +15 -0
- forecast_anything-0.2.0/apps/console/package-lock.json +2951 -0
- forecast_anything-0.2.0/apps/console/package.json +41 -0
- forecast_anything-0.2.0/apps/console/public/fonts/OFL.txt +93 -0
- forecast_anything-0.2.0/apps/console/public/fonts/ibm-plex-sans-400.ttf +0 -0
- forecast_anything-0.2.0/apps/console/public/fonts/ibm-plex-sans-500.ttf +0 -0
- forecast_anything-0.2.0/apps/console/public/fonts/ibm-plex-sans-600.ttf +0 -0
- forecast_anything-0.2.0/apps/console/public/fonts/ibm-plex-sans.css +24 -0
- forecast_anything-0.2.0/apps/console/public/mark.svg +1 -0
- forecast_anything-0.2.0/apps/console/scripts/check-mcp-app-host.mjs +66 -0
- forecast_anything-0.2.0/apps/console/scripts/check-mcp-app.mjs +11 -0
- forecast_anything-0.2.0/apps/console/scripts/generate-types.mjs +86 -0
- forecast_anything-0.2.0/apps/console/scripts/prepare-mcp-app-fixture.mjs +35 -0
- forecast_anything-0.2.0/apps/console/src/App.test.tsx +211 -0
- forecast_anything-0.2.0/apps/console/src/App.tsx +201 -0
- forecast_anything-0.2.0/apps/console/src/api/client.test.ts +156 -0
- forecast_anything-0.2.0/apps/console/src/api/client.ts +279 -0
- forecast_anything-0.2.0/apps/console/src/api/openapi.json +10476 -0
- forecast_anything-0.2.0/apps/console/src/api/schema.generated.ts +3279 -0
- forecast_anything-0.2.0/apps/console/src/api/schemas.json +13076 -0
- forecast_anything-0.2.0/apps/console/src/features/context/BacktestChart.tsx +9 -0
- forecast_anything-0.2.0/apps/console/src/features/context/ContextView.test.tsx +96 -0
- forecast_anything-0.2.0/apps/console/src/features/context/ContextView.tsx +100 -0
- forecast_anything-0.2.0/apps/console/src/features/home/Home.test.tsx +77 -0
- forecast_anything-0.2.0/apps/console/src/features/home/Home.tsx +79 -0
- forecast_anything-0.2.0/apps/console/src/features/home/SourcesCatalog.test.tsx +12 -0
- forecast_anything-0.2.0/apps/console/src/features/home/SourcesCatalog.tsx +17 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/DiscoveryFeed.test.tsx +47 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/DiscoveryFeed.tsx +145 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ForecastChart.test.tsx +24 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ForecastChart.tsx +213 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/FutureGraph.test.tsx +32 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/FutureGraph.tsx +193 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ObservatoryBoard.test.tsx +111 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ObservatoryBoard.tsx +454 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/RunDetails.test.tsx +156 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/RunDetails.tsx +405 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ScenarioCompare.test.tsx +27 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/ScenarioCompare.tsx +56 -0
- forecast_anything-0.2.0/apps/console/src/features/observatory/results.css +21 -0
- forecast_anything-0.2.0/apps/console/src/features/questions/Questions.tsx +30 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/ConnectSource.test.tsx +217 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/ConnectSource.tsx +247 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/FirstForecast.test.tsx +250 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/FirstForecast.tsx +210 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/SourceMappingForm.test.tsx +41 -0
- forecast_anything-0.2.0/apps/console/src/features/sources/SourceMappingForm.tsx +65 -0
- forecast_anything-0.2.0/apps/console/src/format.ts +3 -0
- forecast_anything-0.2.0/apps/console/src/main.tsx +8 -0
- forecast_anything-0.2.0/apps/console/src/mcp-app/main.tsx +59 -0
- forecast_anything-0.2.0/apps/console/src/styles.css +357 -0
- forecast_anything-0.2.0/apps/console/src/test/fixtures.ts +75 -0
- forecast_anything-0.2.0/apps/console/src/test/setup.ts +5 -0
- forecast_anything-0.2.0/apps/console/tests/e2e/observatory.spec.ts +457 -0
- forecast_anything-0.2.0/apps/console/tests/e2e/playwright.config.ts +20 -0
- forecast_anything-0.2.0/apps/console/tests/e2e/timestral.spec.ts +79 -0
- forecast_anything-0.2.0/apps/console/tsconfig.json +15 -0
- forecast_anything-0.2.0/apps/console/vite.config.ts +9 -0
- forecast_anything-0.2.0/apps/console/vite.mcp.config.ts +4 -0
- forecast_anything-0.2.0/benchmarks/README.md +211 -0
- forecast_anything-0.2.0/benchmarks/__init__.py +1 -0
- forecast_anything-0.2.0/benchmarks/calibration.py +359 -0
- forecast_anything-0.2.0/benchmarks/calibration_plot.py +123 -0
- forecast_anything-0.2.0/benchmarks/calibration_source.py +222 -0
- forecast_anything-0.2.0/benchmarks/compare_timestral.py +177 -0
- forecast_anything-0.2.0/benchmarks/ensemble.py +534 -0
- forecast_anything-0.2.0/benchmarks/fetch_gift_eval.py +72 -0
- forecast_anything-0.2.0/benchmarks/frozen_splits.py +233 -0
- forecast_anything-0.2.0/benchmarks/leaderboard.py +610 -0
- forecast_anything-0.2.0/benchmarks/m5_covariates.py +150 -0
- forecast_anything-0.2.0/benchmarks/manifest.yaml +371 -0
- forecast_anything-0.2.0/benchmarks/phase1b-manifest.yaml +159 -0
- forecast_anything-0.2.0/benchmarks/phase1b_checkpoint.py +85 -0
- forecast_anything-0.2.0/benchmarks/phase1b_data.py +285 -0
- forecast_anything-0.2.0/benchmarks/phase1b_gift.py +99 -0
- forecast_anything-0.2.0/benchmarks/phase1b_io.py +16 -0
- forecast_anything-0.2.0/benchmarks/phase1b_m5_features.py +111 -0
- forecast_anything-0.2.0/benchmarks/phase1b_pipeline.py +279 -0
- forecast_anything-0.2.0/benchmarks/phase1b_pipeline_calibration.py +332 -0
- forecast_anything-0.2.0/benchmarks/phase1b_pipeline_fit.py +428 -0
- forecast_anything-0.2.0/benchmarks/phase1b_prepare.py +423 -0
- forecast_anything-0.2.0/benchmarks/phase1b_runner.py +384 -0
- forecast_anything-0.2.0/benchmarks/phase1b_scoring.py +233 -0
- forecast_anything-0.2.0/benchmarks/phase1b_splits.py +295 -0
- forecast_anything-0.2.0/benchmarks/phase1c-manifest.yaml +291 -0
- forecast_anything-0.2.0/benchmarks/phase2.md +75 -0
- forecast_anything-0.2.0/benchmarks/phase3.md +89 -0
- forecast_anything-0.2.0/benchmarks/phase4_checkpoint.py +212 -0
- forecast_anything-0.2.0/benchmarks/phase4_report.py +168 -0
- forecast_anything-0.2.0/benchmarks/phase5_auto.py +210 -0
- forecast_anything-0.2.0/benchmarks/phase5_checkpoint.py +222 -0
- forecast_anything-0.2.0/benchmarks/phase5_covariates.py +163 -0
- forecast_anything-0.2.0/benchmarks/phase5_equivalence.py +158 -0
- forecast_anything-0.2.0/benchmarks/phase5_report.py +231 -0
- forecast_anything-0.2.0/benchmarks/phase6_report.py +176 -0
- forecast_anything-0.2.0/benchmarks/phase7_joint.py +556 -0
- forecast_anything-0.2.0/benchmarks/phase7_metrics.py +90 -0
- forecast_anything-0.2.0/benchmarks/phase7_units.py +232 -0
- forecast_anything-0.2.0/benchmarks/phase7b_origins.py +124 -0
- forecast_anything-0.2.0/benchmarks/phase7b_panels.py +207 -0
- forecast_anything-0.2.0/benchmarks/phase7b_store.py +138 -0
- forecast_anything-0.2.0/benchmarks/pipeline.md +373 -0
- forecast_anything-0.2.0/benchmarks/pipeline_ablation.py +395 -0
- forecast_anything-0.2.0/benchmarks/prepare.py +565 -0
- forecast_anything-0.2.0/benchmarks/public-manifest.yaml +105 -0
- forecast_anything-0.2.0/benchmarks/residual_ablation.py +398 -0
- forecast_anything-0.2.0/benchmarks/run.py +964 -0
- forecast_anything-0.2.0/benchmarks/scoring.py +256 -0
- forecast_anything-0.2.0/benchmarks/splits/historical_targets.json +29767 -0
- forecast_anything-0.2.0/benchmarks/splits/phase0.json +209 -0
- forecast_anything-0.2.0/benchmarks/splits/phase1b.json +14740 -0
- forecast_anything-0.2.0/benchmarks/splits/phase1c.json +20146 -0
- forecast_anything-0.2.0/benchmarks/v1-holdout-protocol.md +81 -0
- forecast_anything-0.2.0/benchmarks/v1-holdout-results.md +72 -0
- forecast_anything-0.2.0/benchmarks/v1_holdout.py +231 -0
- forecast_anything-0.2.0/benchmarks/v1_holdout_report.py +222 -0
- forecast_anything-0.2.0/compose.timestral.yaml +28 -0
- forecast_anything-0.2.0/compose.yaml +67 -0
- forecast_anything-0.2.0/config/mypy-baseline.json +198 -0
- forecast_anything-0.2.0/contracts/v1/openapi.json +10476 -0
- forecast_anything-0.2.0/contracts/v1/schemas.json +13076 -0
- forecast_anything-0.2.0/docs/capabilities.md +72 -0
- forecast_anything-0.2.0/docs/connectors.md +72 -0
- forecast_anything-0.2.0/docs/decisions/agent-runtime.md +15 -0
- forecast_anything-0.2.0/docs/decisions/assistant-interface.md +15 -0
- forecast_anything-0.2.0/docs/development.md +34 -0
- forecast_anything-0.2.0/docs/implementation/api.md +43 -0
- forecast_anything-0.2.0/docs/implementation/core.md +61 -0
- forecast_anything-0.2.0/docs/implementation/mcp.md +369 -0
- forecast_anything-0.2.0/docs/implementation/operators.md +34 -0
- forecast_anything-0.2.0/docs/implementation/timestral.md +52 -0
- forecast_anything-0.2.0/docs/installation.md +147 -0
- forecast_anything-0.2.0/docs/media/floorplan-map.gif +0 -0
- forecast_anything-0.2.0/docs/media/retail-replay.json +163 -0
- forecast_anything-0.2.0/docs/media/retail-replay.mp4 +0 -0
- forecast_anything-0.2.0/docs/public-repository.md +38 -0
- forecast_anything-0.2.0/docs/quality-roadmap.md +61 -0
- forecast_anything-0.2.0/docs/quickstart.md +158 -0
- forecast_anything-0.2.0/docs/real-data-demo.md +25 -0
- forecast_anything-0.2.0/docs/reference.md +107 -0
- forecast_anything-0.2.0/docs/release-demo.md +65 -0
- forecast_anything-0.2.0/docs/releasing.md +37 -0
- forecast_anything-0.2.0/docs/roadmap.md +31 -0
- forecast_anything-0.2.0/examples/activity/README.md +47 -0
- forecast_anything-0.2.0/examples/activity/assumptions.json +10 -0
- forecast_anything-0.2.0/examples/activity/graph.json +13 -0
- forecast_anything-0.2.0/examples/activity/observations.csv +7 -0
- forecast_anything-0.2.0/examples/energy/README.md +48 -0
- forecast_anything-0.2.0/examples/energy/assumptions.json +10 -0
- forecast_anything-0.2.0/examples/energy/graph.json +13 -0
- forecast_anything-0.2.0/examples/energy/observations.csv +7 -0
- forecast_anything-0.2.0/examples/minimal/graph.json +13 -0
- forecast_anything-0.2.0/examples/minimal/observations.csv +5 -0
- forecast_anything-0.2.0/examples/release-demo/.gitattributes +2 -0
- forecast_anything-0.2.0/examples/release-demo/assumptions.json +24 -0
- forecast_anything-0.2.0/examples/release-demo/observations.csv +297 -0
- forecast_anything-0.2.0/examples/retail/README.md +48 -0
- forecast_anything-0.2.0/examples/retail/assumptions.json +10 -0
- forecast_anything-0.2.0/examples/retail/graph.json +13 -0
- forecast_anything-0.2.0/examples/retail/observations.csv +7 -0
- forecast_anything-0.2.0/examples/retail-demo/observations.csv +732 -0
- forecast_anything-0.2.0/experiments/joint_paths.py +674 -0
- forecast_anything-0.2.0/integrations/models.lock.json +211 -0
- forecast_anything-0.2.0/pyproject.toml +126 -0
- forecast_anything-0.2.0/scripts/bootstrap_demo.py +43 -0
- forecast_anything-0.2.0/scripts/check.sh +14 -0
- forecast_anything-0.2.0/scripts/check_python_file_lengths.py +47 -0
- forecast_anything-0.2.0/scripts/check_release.py +388 -0
- forecast_anything-0.2.0/scripts/check_timestral_mcp.py +381 -0
- forecast_anything-0.2.0/scripts/check_types.py +63 -0
- forecast_anything-0.2.0/scripts/export_contracts.py +109 -0
- forecast_anything-0.2.0/scripts/export_public_history.sh +30 -0
- forecast_anything-0.2.0/scripts/export_reference.py +187 -0
- forecast_anything-0.2.0/scripts/phase7_demo_support.py +410 -0
- forecast_anything-0.2.0/scripts/replay_retail_demo.py +199 -0
- forecast_anything-0.2.0/scripts/reproduce_phase7_demo.py +431 -0
- forecast_anything-0.2.0/scripts/run_example.py +108 -0
- forecast_anything-0.2.0/scripts/timestral_mcp_capture.py +179 -0
- forecast_anything-0.2.0/site/.gitignore +3 -0
- forecast_anything-0.2.0/site/README.md +38 -0
- forecast_anything-0.2.0/site/demo-data.json +879 -0
- forecast_anything-0.2.0/site/index.html +18 -0
- forecast_anything-0.2.0/site/package-lock.json +1342 -0
- forecast_anything-0.2.0/site/package.json +25 -0
- forecast_anything-0.2.0/site/public/favicon.svg +1 -0
- forecast_anything-0.2.0/site/scripts/check.mjs +76 -0
- forecast_anything-0.2.0/site/scripts/documents.mjs +8 -0
- forecast_anything-0.2.0/site/scripts/prerender.mjs +16 -0
- forecast_anything-0.2.0/site/src/App.tsx +358 -0
- forecast_anything-0.2.0/site/src/fonts/OFL.txt +95 -0
- forecast_anything-0.2.0/site/src/fonts/anton-400-latin-ext.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/anton-400-latin.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/jetbrains-mono-latin-ext.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/jetbrains-mono-latin.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-400-italic-latin-ext.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-400-italic-latin.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-400-latin-ext.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-400-latin.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-700-latin-ext.woff2 +0 -0
- forecast_anything-0.2.0/site/src/fonts/libre-caslon-text-700-latin.woff2 +0 -0
- forecast_anything-0.2.0/site/src/motion.ts +142 -0
- forecast_anything-0.2.0/site/src/plate.ts +81 -0
- forecast_anything-0.2.0/site/src/render.tsx +4 -0
- forecast_anything-0.2.0/site/src/results.ts +26 -0
- forecast_anything-0.2.0/site/src/styles.css +238 -0
- forecast_anything-0.2.0/site/tsconfig.json +8 -0
- forecast_anything-0.2.0/site/vite.config.mjs +32 -0
- forecast_anything-0.2.0/src/forecast_anything/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/common.py +65 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/discovery.py +311 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/forecasts.py +300 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/notifications.py +102 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/questions.py +191 -0
- forecast_anything-0.2.0/src/forecast_anything/_contracts/sources.py +154 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/discovery.py +272 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/encoding.py +16 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/inbox.py +263 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/operations.py +303 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/runs.py +246 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/watches.py +233 -0
- forecast_anything-0.2.0/src/forecast_anything/_storage/webhooks.py +318 -0
- forecast_anything-0.2.0/src/forecast_anything/_worker_discovery.py +274 -0
- forecast_anything-0.2.0/src/forecast_anything/_worker_requalification.py +303 -0
- forecast_anything-0.2.0/src/forecast_anything/_worker_sources.py +364 -0
- forecast_anything-0.2.0/src/forecast_anything/_worker_watches.py +249 -0
- forecast_anything-0.2.0/src/forecast_anything/api/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/api/app.py +228 -0
- forecast_anything-0.2.0/src/forecast_anything/api/errors.py +70 -0
- forecast_anything-0.2.0/src/forecast_anything/api/routes.py +226 -0
- forecast_anything-0.2.0/src/forecast_anything/api/routes_events.py +74 -0
- forecast_anything-0.2.0/src/forecast_anything/api/routes_jobs.py +108 -0
- forecast_anything-0.2.0/src/forecast_anything/api/routes_sources.py +73 -0
- forecast_anything-0.2.0/src/forecast_anything/api/routes_subscriptions.py +64 -0
- forecast_anything-0.2.0/src/forecast_anything/api/scenarios.py +101 -0
- forecast_anything-0.2.0/src/forecast_anything/api/service.py +219 -0
- forecast_anything-0.2.0/src/forecast_anything/api/service_discovery.py +150 -0
- forecast_anything-0.2.0/src/forecast_anything/api/service_jobs.py +356 -0
- forecast_anything-0.2.0/src/forecast_anything/api/service_questions.py +251 -0
- forecast_anything-0.2.0/src/forecast_anything/api/service_updates.py +176 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/contracts.py +299 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/planning.py +265 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/runner.py +381 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/selection.py +130 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/service.py +426 -0
- forecast_anything-0.2.0/src/forecast_anything/backtesting/store.py +420 -0
- forecast_anything-0.2.0/src/forecast_anything/cli.py +394 -0
- forecast_anything-0.2.0/src/forecast_anything/cli_arguments.py +130 -0
- forecast_anything-0.2.0/src/forecast_anything/connectors/csv.py +90 -0
- forecast_anything-0.2.0/src/forecast_anything/connectors/http_json.py +237 -0
- forecast_anything-0.2.0/src/forecast_anything/continuity.py +97 -0
- forecast_anything-0.2.0/src/forecast_anything/contracts.py +257 -0
- forecast_anything-0.2.0/src/forecast_anything/diagnostics.py +236 -0
- forecast_anything-0.2.0/src/forecast_anything/discovery/agent_gateway.py +135 -0
- forecast_anything-0.2.0/src/forecast_anything/discovery/agent_storage.py +177 -0
- forecast_anything-0.2.0/src/forecast_anything/discovery/candidates.py +383 -0
- forecast_anything-0.2.0/src/forecast_anything/discovery/policy.py +271 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/_legacy_metrics.py +95 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/calendar_covariates.py +87 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/conformal.py +201 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/holidays.py +93 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/metrics.py +117 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/paired_bootstrap.py +174 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/records.py +259 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/residual_correction.py +345 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/residual_features.py +227 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/selection_stability.py +80 -0
- forecast_anything-0.2.0/src/forecast_anything/evaluation/splits.py +144 -0
- forecast_anything-0.2.0/src/forecast_anything/forecast_policy.py +97 -0
- forecast_anything-0.2.0/src/forecast_anything/graph.py +258 -0
- forecast_anything-0.2.0/src/forecast_anything/jobs.py +287 -0
- forecast_anything-0.2.0/src/forecast_anything/local_services.py +152 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/__init__.py +1 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/agent_descriptions.py +128 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/arguments.py +318 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/catalog.py +124 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/client.py +261 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/config.py +168 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/context_views.py +212 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/csv_folders.py +78 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/dispatch.py +16 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/forecast_tools.py +261 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/instructions.md +7 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/operation_tools.py +106 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/protocol.py +144 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/question_tools.py +241 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/server.py +201 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/source_tools.py +168 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/summaries.py +15 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/ui_dist/context.html +112 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/watch_tools.py +133 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_adapter/workspace_tools.py +77 -0
- forecast_anything-0.2.0/src/forecast_anything/mcp_clients.py +231 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/001_initial.sql +25 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/002_evaluations.sql +10 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/003_discovery.sql +50 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/004_observatory.sql +26 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/005_jobs.sql +32 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/006_scenarios.sql +7 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/007_agent_operations.sql +31 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/008_backtests.sql +40 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/009_worker_liveness.sql +8 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/010_worker_runtime.sql +8 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/011_persistent_questions.sql +69 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/012_workspace_identity.sql +8 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/013_continuity_and_inbox.sql +78 -0
- forecast_anything-0.2.0/src/forecast_anything/migrations/014_workspace_forecast_checkpoint.sql +13 -0
- forecast_anything-0.2.0/src/forecast_anything/operators/__init__.py +13 -0
- forecast_anything-0.2.0/src/forecast_anything/operators/base.py +10 -0
- forecast_anything-0.2.0/src/forecast_anything/operators/events.py +58 -0
- forecast_anything-0.2.0/src/forecast_anything/operators/temporal.py +175 -0
- forecast_anything-0.2.0/src/forecast_anything/presentations/__init__.py +40 -0
- forecast_anything-0.2.0/src/forecast_anything/presentations/backtest.py +208 -0
- forecast_anything-0.2.0/src/forecast_anything/presentations/forecast.py +218 -0
- forecast_anything-0.2.0/src/forecast_anything/presentations/question.py +56 -0
- forecast_anything-0.2.0/src/forecast_anything/presentations/snapshot.py +102 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/base.py +65 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/baseline.py +69 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/calendar_member.py +47 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/classical.py +138 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/classical_statsforecast.py +100 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/configuration.py +84 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/ensemble.py +339 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/ensemble_combine.py +262 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/ensemble_pair.py +141 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/ensemble_weights.py +423 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline.py +248 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_auto.py +326 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_backtest.py +360 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_calibration.py +180 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_candidates.py +220 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_options.py +177 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/pipeline_selection.py +312 -0
- forecast_anything-0.2.0/src/forecast_anything/providers/timestral.py +340 -0
- forecast_anything-0.2.0/src/forecast_anything/question_storage.py +407 -0
- forecast_anything-0.2.0/src/forecast_anything/runtime.py +417 -0
- forecast_anything-0.2.0/src/forecast_anything/runtime_results.py +149 -0
- forecast_anything-0.2.0/src/forecast_anything/service_systemd.py +252 -0
- forecast_anything-0.2.0/src/forecast_anything/setup_local.py +413 -0
- forecast_anything-0.2.0/src/forecast_anything/sources/calendar_days.py +96 -0
- forecast_anything-0.2.0/src/forecast_anything/sources/catalog.py +142 -0
- forecast_anything-0.2.0/src/forecast_anything/sources/profiling.py +449 -0
- forecast_anything-0.2.0/src/forecast_anything/store.py +332 -0
- forecast_anything-0.2.0/src/forecast_anything/temporal.py +92 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/history_panels.py +134 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/joint_dependence.py +98 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/joint_marginals.py +44 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/joint_provider.py +266 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/joint_samples.py +89 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/residual_panels.py +189 -0
- forecast_anything-0.2.0/src/forecast_anything/uncertainty/seasonal_panels.py +48 -0
- forecast_anything-0.2.0/src/forecast_anything/watch_updates.py +154 -0
- forecast_anything-0.2.0/src/forecast_anything/watches.py +449 -0
- forecast_anything-0.2.0/src/forecast_anything/worker.py +385 -0
- forecast_anything-0.2.0/src/forecast_anything/workspace_config.py +219 -0
- forecast_anything-0.2.0/tests/e2e/observatory.spec.ts +3 -0
- forecast_anything-0.2.0/tests/e2e/serve_observatory.py +213 -0
- forecast_anything-0.2.0/tests/e2e/timestral.spec.ts +2 -0
- forecast_anything-0.2.0/tests/fixtures/benchmarks/activity.csv +33 -0
- forecast_anything-0.2.0/tests/fixtures/benchmarks/energy.csv +1921 -0
- forecast_anything-0.2.0/tests/fixtures/benchmarks/manifest.yaml +85 -0
- forecast_anything-0.2.0/tests/fixtures/benchmarks/retail.csv +35 -0
- forecast_anything-0.2.0/tests/fixtures/console-e2e-activity.csv +2 -0
- forecast_anything-0.2.0/tests/fixtures/console-e2e-actuals.csv +5 -0
- forecast_anything-0.2.0/tests/fixtures/console-e2e.csv +4 -0
- forecast_anything-0.2.0/tests/fixtures/library_cli.py +20 -0
- forecast_anything-0.2.0/tests/integration/agent_gateway_fixtures.py +100 -0
- forecast_anything-0.2.0/tests/integration/api_fixtures.py +90 -0
- forecast_anything-0.2.0/tests/integration/mcp_baseline_journey.py +167 -0
- forecast_anything-0.2.0/tests/integration/mcp_evidence_journey.py +241 -0
- forecast_anything-0.2.0/tests/integration/mcp_journey_calls.py +54 -0
- forecast_anything-0.2.0/tests/integration/mcp_process_fixture.py +69 -0
- forecast_anything-0.2.0/tests/integration/mcp_processes.py +273 -0
- forecast_anything-0.2.0/tests/integration/runtime_fixtures.py +63 -0
- forecast_anything-0.2.0/tests/integration/test_agent_gateway.py +302 -0
- forecast_anything-0.2.0/tests/integration/test_agent_gateway_discovery.py +80 -0
- forecast_anything-0.2.0/tests/integration/test_agent_gateway_http.py +141 -0
- forecast_anything-0.2.0/tests/integration/test_api.py +282 -0
- forecast_anything-0.2.0/tests/integration/test_api_evaluations.py +239 -0
- forecast_anything-0.2.0/tests/integration/test_api_processes.py +223 -0
- forecast_anything-0.2.0/tests/integration/test_api_runs.py +210 -0
- forecast_anything-0.2.0/tests/integration/test_api_sources.py +176 -0
- forecast_anything-0.2.0/tests/integration/test_api_watches.py +165 -0
- forecast_anything-0.2.0/tests/integration/test_assistant_acceptance.py +303 -0
- forecast_anything-0.2.0/tests/integration/test_backtest_api.py +391 -0
- forecast_anything-0.2.0/tests/integration/test_backtest_provider_selection_api.py +169 -0
- forecast_anything-0.2.0/tests/integration/test_backtest_store.py +340 -0
- forecast_anything-0.2.0/tests/integration/test_backtest_worker.py +302 -0
- forecast_anything-0.2.0/tests/integration/test_benchmark_contract.py +414 -0
- forecast_anything-0.2.0/tests/integration/test_benchmark_dataset_filter.py +37 -0
- forecast_anything-0.2.0/tests/integration/test_benchmark_leaderboard.py +144 -0
- forecast_anything-0.2.0/tests/integration/test_benchmark_models.py +221 -0
- forecast_anything-0.2.0/tests/integration/test_bootstrap_demo.py +26 -0
- forecast_anything-0.2.0/tests/integration/test_calibration_archive.py +94 -0
- forecast_anything-0.2.0/tests/integration/test_cli.py +273 -0
- forecast_anything-0.2.0/tests/integration/test_domain_examples.py +49 -0
- forecast_anything-0.2.0/tests/integration/test_guided_csv_stdio.py +202 -0
- forecast_anything-0.2.0/tests/integration/test_local_services_process.py +360 -0
- forecast_anything-0.2.0/tests/integration/test_m5_residual_ablation.py +90 -0
- forecast_anything-0.2.0/tests/integration/test_mcp_ensemble_selection.py +42 -0
- forecast_anything-0.2.0/tests/integration/test_mcp_pipeline_selection.py +43 -0
- forecast_anything-0.2.0/tests/integration/test_mcp_stdio.py +440 -0
- forecast_anything-0.2.0/tests/integration/test_operation_grant_stdio.py +80 -0
- forecast_anything-0.2.0/tests/integration/test_operations_api.py +395 -0
- forecast_anything-0.2.0/tests/integration/test_packaged_demo.py +91 -0
- forecast_anything-0.2.0/tests/integration/test_packaged_mcp.py +155 -0
- forecast_anything-0.2.0/tests/integration/test_pipeline_selection_api.py +48 -0
- forecast_anything-0.2.0/tests/integration/test_public_failures.py +121 -0
- forecast_anything-0.2.0/tests/integration/test_questions_api.py +205 -0
- forecast_anything-0.2.0/tests/integration/test_questions_stdio.py +276 -0
- forecast_anything-0.2.0/tests/integration/test_release.py +198 -0
- forecast_anything-0.2.0/tests/integration/test_required_provider.py +183 -0
- forecast_anything-0.2.0/tests/integration/test_runtime.py +159 -0
- forecast_anything-0.2.0/tests/integration/test_runtime_contracts.py +246 -0
- forecast_anything-0.2.0/tests/integration/test_runtime_representations.py +234 -0
- forecast_anything-0.2.0/tests/integration/test_snapshot_summary_stdio.py +115 -0
- forecast_anything-0.2.0/tests/integration/test_store.py +155 -0
- forecast_anything-0.2.0/tests/integration/test_usability_fixture.py +27 -0
- forecast_anything-0.2.0/tests/integration/test_webhooks.py +348 -0
- forecast_anything-0.2.0/tests/integration/test_worker.py +269 -0
- forecast_anything-0.2.0/tests/integration/test_worker_evidence_recovery.py +205 -0
- forecast_anything-0.2.0/tests/integration/test_worker_requalification.py +374 -0
- forecast_anything-0.2.0/tests/integration/test_worker_source_access.py +278 -0
- forecast_anything-0.2.0/tests/integration/test_worker_source_refresh.py +306 -0
- forecast_anything-0.2.0/tests/integration/test_worker_watch_lifecycle.py +202 -0
- forecast_anything-0.2.0/tests/integration/worker_fixtures.py +325 -0
- forecast_anything-0.2.0/tests/model/test_timestral_parity.py +148 -0
- forecast_anything-0.2.0/tests/unit/backtest_fixtures.py +163 -0
- forecast_anything-0.2.0/tests/unit/discovery_fixtures.py +97 -0
- forecast_anything-0.2.0/tests/unit/evaluation_fixtures.py +138 -0
- forecast_anything-0.2.0/tests/unit/mcp_client_fixtures.py +35 -0
- forecast_anything-0.2.0/tests/unit/mcp_tool_fixtures.py +213 -0
- forecast_anything-0.2.0/tests/unit/source_fixtures.py +34 -0
- forecast_anything-0.2.0/tests/unit/test_accuracy_gate.py +133 -0
- forecast_anything-0.2.0/tests/unit/test_availability_delay.py +95 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_contracts.py +164 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_extremes.py +88 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_planning.py +185 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_reader.py +94 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_recovery.py +304 -0
- forecast_anything-0.2.0/tests/unit/test_backtest_runner.py +322 -0
- forecast_anything-0.2.0/tests/unit/test_baseline.py +127 -0
- forecast_anything-0.2.0/tests/unit/test_benchmark_scoring.py +102 -0
- forecast_anything-0.2.0/tests/unit/test_calendar_covariates.py +322 -0
- forecast_anything-0.2.0/tests/unit/test_calendar_days.py +87 -0
- forecast_anything-0.2.0/tests/unit/test_conformal_calibration.py +136 -0
- forecast_anything-0.2.0/tests/unit/test_continuity.py +204 -0
- forecast_anything-0.2.0/tests/unit/test_contracts.py +205 -0
- forecast_anything-0.2.0/tests/unit/test_csv_folders.py +103 -0
- forecast_anything-0.2.0/tests/unit/test_diagnostics.py +106 -0
- forecast_anything-0.2.0/tests/unit/test_discovery.py +289 -0
- forecast_anything-0.2.0/tests/unit/test_discovery_ledger.py +430 -0
- forecast_anything-0.2.0/tests/unit/test_discovery_policy.py +169 -0
- forecast_anything-0.2.0/tests/unit/test_energy_benchmark_prepare.py +42 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_benchmark.py +188 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_pair.py +117 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_provider.py +306 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_quantiles.py +78 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_registration.py +15 -0
- forecast_anything-0.2.0/tests/unit/test_ensemble_weights.py +202 -0
- forecast_anything-0.2.0/tests/unit/test_evaluation.py +298 -0
- forecast_anything-0.2.0/tests/unit/test_evaluation_extremes.py +36 -0
- forecast_anything-0.2.0/tests/unit/test_evaluation_ledger.py +98 -0
- forecast_anything-0.2.0/tests/unit/test_evaluation_splits.py +74 -0
- forecast_anything-0.2.0/tests/unit/test_export_contracts.py +47 -0
- forecast_anything-0.2.0/tests/unit/test_forecast_policy.py +84 -0
- forecast_anything-0.2.0/tests/unit/test_forecast_presentation.py +69 -0
- forecast_anything-0.2.0/tests/unit/test_forecast_reliability_presentation.py +54 -0
- forecast_anything-0.2.0/tests/unit/test_frozen_benchmark_splits.py +263 -0
- forecast_anything-0.2.0/tests/unit/test_graph.py +288 -0
- forecast_anything-0.2.0/tests/unit/test_guided_csv.py +66 -0
- forecast_anything-0.2.0/tests/unit/test_guided_setup.py +100 -0
- forecast_anything-0.2.0/tests/unit/test_history_panels.py +177 -0
- forecast_anything-0.2.0/tests/unit/test_http_sources.py +280 -0
- forecast_anything-0.2.0/tests/unit/test_joint_generator.py +215 -0
- forecast_anything-0.2.0/tests/unit/test_joint_graph.py +291 -0
- forecast_anything-0.2.0/tests/unit/test_joint_paths.py +391 -0
- forecast_anything-0.2.0/tests/unit/test_joint_provider.py +235 -0
- forecast_anything-0.2.0/tests/unit/test_ledger_properties.py +125 -0
- forecast_anything-0.2.0/tests/unit/test_local_services.py +107 -0
- forecast_anything-0.2.0/tests/unit/test_m5_benchmark_prepare.py +160 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_backtest_tools.py +223 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_client.py +274 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_client_routes.py +172 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_clients.py +127 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_config.py +204 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_context_tools.py +160 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_continuity_tools.py +316 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_error_details.py +63 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_evidence_tools.py +222 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_forecast_tools.py +115 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_instructions.py +15 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_profiles.py +79 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_source_tools.py +209 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_stdio_startup.py +140 -0
- forecast_anything-0.2.0/tests/unit/test_mcp_tools.py +439 -0
- forecast_anything-0.2.0/tests/unit/test_operators.py +340 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_checkpoint.py +50 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_data.py +114 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_pipeline.py +222 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_pipeline_calibration.py +88 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_prepare.py +232 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_scoring.py +136 -0
- forecast_anything-0.2.0/tests/unit/test_phase1b_splits.py +157 -0
- forecast_anything-0.2.0/tests/unit/test_phase1c_manifest.py +42 -0
- forecast_anything-0.2.0/tests/unit/test_phase4_selection.py +131 -0
- forecast_anything-0.2.0/tests/unit/test_phase5_benchmark.py +256 -0
- forecast_anything-0.2.0/tests/unit/test_phase5_equivalence.py +81 -0
- forecast_anything-0.2.0/tests/unit/test_phase6_report.py +112 -0
- forecast_anything-0.2.0/tests/unit/test_phase7_demo_contract.py +71 -0
- forecast_anything-0.2.0/tests/unit/test_phase7b_panels.py +187 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_ablation.py +106 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_auto_selection.py +195 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_calibration.py +29 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_provider.py +289 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_selection.py +115 -0
- forecast_anything-0.2.0/tests/unit/test_pipeline_stability.py +184 -0
- forecast_anything-0.2.0/tests/unit/test_presentation_quantiles.py +18 -0
- forecast_anything-0.2.0/tests/unit/test_provider_frequency.py +24 -0
- forecast_anything-0.2.0/tests/unit/test_question_storage.py +118 -0
- forecast_anything-0.2.0/tests/unit/test_reference_page.py +26 -0
- forecast_anything-0.2.0/tests/unit/test_required_timestral_setup.py +275 -0
- forecast_anything-0.2.0/tests/unit/test_residual_correction.py +74 -0
- forecast_anything-0.2.0/tests/unit/test_residual_feature_availability.py +79 -0
- forecast_anything-0.2.0/tests/unit/test_residual_quantile_correction.py +77 -0
- forecast_anything-0.2.0/tests/unit/test_residual_scaling.py +171 -0
- forecast_anything-0.2.0/tests/unit/test_seasonal_classical_providers.py +195 -0
- forecast_anything-0.2.0/tests/unit/test_source_row_errors.py +61 -0
- forecast_anything-0.2.0/tests/unit/test_sources.py +237 -0
- forecast_anything-0.2.0/tests/unit/test_statistical_providers.py +88 -0
- forecast_anything-0.2.0/tests/unit/test_systemd_service.py +127 -0
- forecast_anything-0.2.0/tests/unit/test_temporal.py +148 -0
- forecast_anything-0.2.0/tests/unit/test_timestral_adapter.py +243 -0
- forecast_anything-0.2.0/tests/unit/test_v1_holdout.py +177 -0
- forecast_anything-0.2.0/tests/unit/test_watch_changes.py +131 -0
- forecast_anything-0.2.0/tests/unit/test_watch_ledger.py +386 -0
- forecast_anything-0.2.0/tests/unit/test_watches.py +318 -0
- forecast_anything-0.2.0/tests/unit/test_workspace_config.py +99 -0
- forecast_anything-0.2.0/tests/unit/watch_fixtures.py +110 -0
- forecast_anything-0.2.0/uv.lock +3068 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
**
|
|
2
|
+
!Dockerfile
|
|
3
|
+
!pyproject.toml
|
|
4
|
+
!uv.lock
|
|
5
|
+
!README.md
|
|
6
|
+
!LICENSE
|
|
7
|
+
!NOTICE
|
|
8
|
+
!contracts/
|
|
9
|
+
!contracts/v1/
|
|
10
|
+
!contracts/v1/**
|
|
11
|
+
!src/
|
|
12
|
+
!src/**
|
|
13
|
+
!examples/
|
|
14
|
+
!examples/**
|
|
15
|
+
!apps/
|
|
16
|
+
!apps/console/
|
|
17
|
+
!apps/console/**
|
|
18
|
+
**/node_modules
|
|
19
|
+
**/dist
|
|
20
|
+
**/__pycache__
|
|
21
|
+
**/*.pyc
|
|
22
|
+
**/.env
|
|
23
|
+
**/.env.*
|
|
24
|
+
**/*.db
|
|
25
|
+
**/*.db-*
|
|
26
|
+
**/*.safetensors
|
|
27
|
+
**/*.pt
|
|
28
|
+
**/*.pth
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Generate local values with python scripts/bootstrap_demo.py .local/demo
|
|
2
|
+
# and use: docker compose --env-file .local/demo/demo.env --profile demo up --build
|
|
3
|
+
FORECAST_ANYTHING_WORKSPACE_TOKEN=
|
|
4
|
+
FORECAST_ANYTHING_CONSOLE_ORIGINS=http://localhost:5173,http://127.0.0.1:5173
|
|
5
|
+
FORECAST_ANYTHING_DATA_DIR=./.local/demo
|
|
6
|
+
# Native Python commands use this host path. Containers always use /data/state.db.
|
|
7
|
+
FORECAST_ANYTHING_DATABASE=./.local/demo/state.db
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a reproducible failure using synthetic or sanitized data.
|
|
3
|
+
title: "[Bug] "
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Please check the [capability matrix](https://github.com/francescogabrieli/forecast_anything/blob/main/docs/capabilities.md) first. For suspected vulnerabilities, follow SECURITY.md and avoid public exploit details. Never include tokens, private source URLs, credentials or private observations.
|
|
9
|
+
- type: input
|
|
10
|
+
id: revision
|
|
11
|
+
attributes:
|
|
12
|
+
label: Revision and environment
|
|
13
|
+
description: Commit or installed version, OS, Python/Node versions, installation path and, for MCP, the assistant client and its version.
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: dropdown
|
|
17
|
+
id: mode
|
|
18
|
+
attributes:
|
|
19
|
+
label: Execution path
|
|
20
|
+
options:
|
|
21
|
+
- Assistant over MCP (Claude, Codex or another client)
|
|
22
|
+
- Setup or login service (forecast-anything setup / service)
|
|
23
|
+
- Local CLI or example
|
|
24
|
+
- Local API or worker
|
|
25
|
+
- Console or deterministic browser E2E
|
|
26
|
+
- Timestral model setup or inference
|
|
27
|
+
- Other documented path
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: reproduction
|
|
32
|
+
attributes:
|
|
33
|
+
label: Minimal reproduction
|
|
34
|
+
description: Include exact commands and a small synthetic fixture. Remove private locations and secrets.
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
- type: textarea
|
|
38
|
+
id: behavior
|
|
39
|
+
attributes:
|
|
40
|
+
label: Expected and actual behavior
|
|
41
|
+
description: Include sanitized error codes and whether the problem survives a restart. Distinguish skipped model checks from executed checks.
|
|
42
|
+
validations:
|
|
43
|
+
required: true
|
|
44
|
+
- type: textarea
|
|
45
|
+
id: evidence
|
|
46
|
+
attributes:
|
|
47
|
+
label: Verification and context
|
|
48
|
+
description: Relevant test results, provider/revision, mappings, units, timezone and assumptions. Sanitize screenshots and logs before attaching them.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Report a security vulnerability
|
|
4
|
+
url: https://github.com/francescogabrieli/forecast_anything/blob/main/SECURITY.md
|
|
5
|
+
about: Report vulnerabilities privately, never in a public issue.
|
|
6
|
+
- name: Contributing guide
|
|
7
|
+
url: https://github.com/francescogabrieli/forecast_anything/blob/main/CONTRIBUTING.md
|
|
8
|
+
about: Setup, checks and how to add a connector, operator or assistant client.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Connector proposal
|
|
2
|
+
description: Propose a bounded source integration using the existing temporal contracts.
|
|
3
|
+
title: "[Connector] "
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: |
|
|
8
|
+
Read docs/connectors.md before proposing a source. Do not include credentials, protected URLs or private data. A proposal does not imply support or permission to redistribute a dataset.
|
|
9
|
+
- type: input
|
|
10
|
+
id: source
|
|
11
|
+
attributes:
|
|
12
|
+
label: Source and transport
|
|
13
|
+
description: Public documentation link and whether existing CSV/HTTP JSON support can read it.
|
|
14
|
+
validations:
|
|
15
|
+
required: true
|
|
16
|
+
- type: textarea
|
|
17
|
+
id: semantics
|
|
18
|
+
attributes:
|
|
19
|
+
label: Explicit observation semantics
|
|
20
|
+
description: Identify series, event time, availability time, revisions, value, units, frequency, timezone and missing-value rules. Mark unknowns and assumptions.
|
|
21
|
+
validations:
|
|
22
|
+
required: true
|
|
23
|
+
- type: textarea
|
|
24
|
+
id: fixture
|
|
25
|
+
attributes:
|
|
26
|
+
label: Synthetic fixture and expected snapshot
|
|
27
|
+
description: Provide a small example, expected normalized observations and a late-correction case. Use public or synthetic data only.
|
|
28
|
+
validations:
|
|
29
|
+
required: true
|
|
30
|
+
- type: textarea
|
|
31
|
+
id: boundaries
|
|
32
|
+
attributes:
|
|
33
|
+
label: Access, limits and attribution
|
|
34
|
+
description: Authentication approach without secrets, response/request bounds, pagination, redirects, refresh limits, data license and redistribution restrictions.
|
|
35
|
+
validations:
|
|
36
|
+
required: true
|
|
37
|
+
- type: textarea
|
|
38
|
+
id: acceptance
|
|
39
|
+
attributes:
|
|
40
|
+
label: Proposed acceptance checks
|
|
41
|
+
description: Include unresolved mappings, failure handling, credential protection and reuse of the existing runtime. State any required contract changes.
|
|
42
|
+
validations:
|
|
43
|
+
required: true
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Feature request
|
|
2
|
+
description: Propose a capability, with the problem it solves.
|
|
3
|
+
title: "[Feature] "
|
|
4
|
+
labels: ["enhancement"]
|
|
5
|
+
body:
|
|
6
|
+
- type: markdown
|
|
7
|
+
attributes:
|
|
8
|
+
value: |
|
|
9
|
+
Check the [generated reference](https://github.com/francescogabrieli/forecast_anything/blob/main/docs/reference.md) and the [capability matrix](https://github.com/francescogabrieli/forecast_anything/blob/main/docs/capabilities.md) first. New source kinds have their own "Connector proposal" form.
|
|
10
|
+
- type: textarea
|
|
11
|
+
id: problem
|
|
12
|
+
attributes:
|
|
13
|
+
label: Problem
|
|
14
|
+
description: What are you trying to do, and what stops you today? A concrete question you would ask your assistant helps.
|
|
15
|
+
validations:
|
|
16
|
+
required: true
|
|
17
|
+
- type: textarea
|
|
18
|
+
id: proposal
|
|
19
|
+
attributes:
|
|
20
|
+
label: Proposed behavior
|
|
21
|
+
description: What should happen instead? Include the interface you expect (MCP tool, CLI command, API route or console view).
|
|
22
|
+
validations:
|
|
23
|
+
required: true
|
|
24
|
+
- type: textarea
|
|
25
|
+
id: limits
|
|
26
|
+
attributes:
|
|
27
|
+
label: Limits and evidence
|
|
28
|
+
description: What should the feature refuse to do? How would a test show it works, without model weights or private data?
|
|
29
|
+
- type: checkboxes
|
|
30
|
+
id: contribute
|
|
31
|
+
attributes:
|
|
32
|
+
label: Contribution
|
|
33
|
+
options:
|
|
34
|
+
- label: I would like to work on this myself.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## What changes
|
|
2
|
+
|
|
3
|
+
<!-- Behavior before and after. Link the issue this closes, for example "Closes #12". -->
|
|
4
|
+
|
|
5
|
+
## How it was verified
|
|
6
|
+
|
|
7
|
+
<!-- Commands you ran and their results. Name any path you could not test. -->
|
|
8
|
+
|
|
9
|
+
- [ ] `ruff check`, `ruff format --check` and `pytest -q` pass
|
|
10
|
+
- [ ] Generated files are regenerated, not hand-edited (`contracts/v1`, `apps/console/src/api`, `docs/reference.md`)
|
|
11
|
+
- [ ] Documentation is updated where observable behavior changed
|
|
12
|
+
- [ ] No credentials, private data or model weights are included
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Forecast benchmarks
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
baseline:
|
|
11
|
+
name: Frozen full-dataset seasonal benchmark
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
timeout-minutes: 45
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
16
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
17
|
+
with:
|
|
18
|
+
version: "0.12.3"
|
|
19
|
+
python-version: "3.14"
|
|
20
|
+
- name: Install locked dependencies
|
|
21
|
+
run: uv sync --locked --extra dev
|
|
22
|
+
- name: Prepare the pinned datasets
|
|
23
|
+
run: uv run --locked --extra dev python -m benchmarks.prepare --manifest benchmarks/public-manifest.yaml --output .local/data
|
|
24
|
+
- name: Run the full seasonal benchmark
|
|
25
|
+
run: uv run --locked --extra dev python -m benchmarks.run --manifest benchmarks/public-manifest.yaml --output .local/benchmark --providers baseline
|
|
26
|
+
- name: Upload forecast evidence
|
|
27
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
28
|
+
with:
|
|
29
|
+
name: frozen-seasonal-benchmark
|
|
30
|
+
path: |
|
|
31
|
+
.local/benchmark/report.json
|
|
32
|
+
.local/benchmark/origins.csv
|
|
33
|
+
.local/benchmark/frozen_calendar.json
|
|
34
|
+
.local/benchmark/environment.json
|
|
35
|
+
include-hidden-files: true
|
|
36
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main, "codex/**"]
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
checks:
|
|
15
|
+
name: Python ${{ matrix.python-version }}
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
strategy:
|
|
18
|
+
fail-fast: false
|
|
19
|
+
matrix:
|
|
20
|
+
python-version: ["3.12", "3.14"]
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
23
|
+
- name: Free disk space on the GitHub-hosted runner
|
|
24
|
+
run: |
|
|
25
|
+
df -h /
|
|
26
|
+
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
|
|
27
|
+
df -h /
|
|
28
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
29
|
+
with:
|
|
30
|
+
version: "0.12.3"
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
- name: Install locked dependencies
|
|
33
|
+
run: uv sync --locked --extra dev --extra mcp --extra statistical
|
|
34
|
+
- name: Check Python file lengths
|
|
35
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/check_python_file_lengths.py
|
|
36
|
+
- name: Lint Python
|
|
37
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical ruff check src tests scripts
|
|
38
|
+
- name: Check Python formatting
|
|
39
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical ruff format --check src tests scripts
|
|
40
|
+
- name: Check exported contract drift
|
|
41
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/export_contracts.py contracts/v1 --check
|
|
42
|
+
- name: Check exported console contract drift
|
|
43
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/export_contracts.py apps/console/src/api --check
|
|
44
|
+
- name: Check the generated reference page
|
|
45
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/export_reference.py --check
|
|
46
|
+
- name: Check Python types
|
|
47
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/check_types.py
|
|
48
|
+
- name: Check CPU forecast accuracy and frozen splits
|
|
49
|
+
env:
|
|
50
|
+
HF_HUB_OFFLINE: "1"
|
|
51
|
+
OMP_NUM_THREADS: "1"
|
|
52
|
+
MKL_NUM_THREADS: "1"
|
|
53
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical pytest -q tests/unit/test_accuracy_gate.py
|
|
54
|
+
- name: Run tests with branch coverage
|
|
55
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical coverage run -m pytest -q
|
|
56
|
+
- name: Publish Python branch coverage
|
|
57
|
+
if: always()
|
|
58
|
+
run: |
|
|
59
|
+
if compgen -G '.coverage.*' > /dev/null; then
|
|
60
|
+
uv run --locked --extra dev --extra mcp --extra statistical coverage combine
|
|
61
|
+
fi
|
|
62
|
+
if test -f .coverage; then
|
|
63
|
+
echo "## Python ${{ matrix.python-version }} branch coverage" >> "$GITHUB_STEP_SUMMARY"
|
|
64
|
+
uv run --locked --extra dev --extra mcp --extra statistical coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY"
|
|
65
|
+
fi
|
|
66
|
+
- name: Audit locked Python dependencies (informational)
|
|
67
|
+
if: always()
|
|
68
|
+
continue-on-error: true
|
|
69
|
+
run: |
|
|
70
|
+
echo "## Python dependency audit (informational)" >> "$GITHUB_STEP_SUMMARY"
|
|
71
|
+
echo "The pinned Timestral Git revision is reviewed separately. Its PyPI dependencies are included." >> "$GITHUB_STEP_SUMMARY"
|
|
72
|
+
requirements="$RUNNER_TEMP/forecast-audit-requirements.txt"
|
|
73
|
+
report="$RUNNER_TEMP/forecast-audit.md"
|
|
74
|
+
uv export --locked --group dev --extra mcp --extra statistical --no-emit-project --no-emit-package timestral --no-hashes --output-file "$requirements" --quiet
|
|
75
|
+
audit_status=0
|
|
76
|
+
uv run --locked --extra dev --extra mcp --extra statistical pip-audit --no-deps --disable-pip --progress-spinner off --format markdown --output "$report" --requirement "$requirements" || audit_status=$?
|
|
77
|
+
if test -s "$report"; then
|
|
78
|
+
cat "$report" >> "$GITHUB_STEP_SUMMARY"
|
|
79
|
+
elif test "$audit_status" -eq 0; then
|
|
80
|
+
echo "No known vulnerabilities reported for the scanned dependencies." >> "$GITHUB_STEP_SUMMARY"
|
|
81
|
+
else
|
|
82
|
+
echo "Audit produced no report. See the step log." >> "$GITHUB_STEP_SUMMARY"
|
|
83
|
+
fi
|
|
84
|
+
if test "$audit_status" -ne 0; then
|
|
85
|
+
echo "::warning::pip-audit exited with status $audit_status. Review findings, skipped packages and the step log."
|
|
86
|
+
fi
|
|
87
|
+
exit "$audit_status"
|
|
88
|
+
- name: Build wheel and source distribution
|
|
89
|
+
run: uv build
|
|
90
|
+
- name: Verify installed artifact outside checkout (model execution separate)
|
|
91
|
+
run: uv run --locked --extra dev --extra mcp --extra statistical python scripts/check_release.py --dist dist --artifact-only
|
|
92
|
+
- name: Report remaining disk space
|
|
93
|
+
if: always()
|
|
94
|
+
run: df -h / "$RUNNER_TEMP"
|
|
95
|
+
|
|
96
|
+
console:
|
|
97
|
+
name: Forecast console (Node 24)
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
defaults:
|
|
100
|
+
run:
|
|
101
|
+
working-directory: apps/console
|
|
102
|
+
steps:
|
|
103
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
104
|
+
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
|
105
|
+
with:
|
|
106
|
+
node-version: "24"
|
|
107
|
+
cache: npm
|
|
108
|
+
cache-dependency-path: apps/console/package-lock.json
|
|
109
|
+
- name: Install locked console dependencies
|
|
110
|
+
run: npm ci
|
|
111
|
+
- name: Check generated console contracts
|
|
112
|
+
run: npm run check:types
|
|
113
|
+
- name: Typecheck console
|
|
114
|
+
run: npm run typecheck
|
|
115
|
+
- name: Test console
|
|
116
|
+
run: npm test -- --run
|
|
117
|
+
- name: Build console
|
|
118
|
+
run: npm run build
|
|
119
|
+
- name: Set up locked Python runtime for the real API E2E fixture
|
|
120
|
+
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
121
|
+
with:
|
|
122
|
+
version: "0.12.3"
|
|
123
|
+
python-version: "3.14"
|
|
124
|
+
- name: Install Playwright Chromium
|
|
125
|
+
run: npx playwright install --with-deps chromium
|
|
126
|
+
- name: Run deterministic browser E2E
|
|
127
|
+
run: CI=1 npm run test:e2e
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
name: Linux login service
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [main]
|
|
6
|
+
paths:
|
|
7
|
+
- "src/forecast_anything/service_systemd.py"
|
|
8
|
+
- "src/forecast_anything/setup_local.py"
|
|
9
|
+
- "src/forecast_anything/cli*.py"
|
|
10
|
+
- ".github/workflows/linux-service.yml"
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
systemd-user:
|
|
18
|
+
name: systemd --user lifecycle from the built wheel
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
23
|
+
with:
|
|
24
|
+
version: "0.12.3"
|
|
25
|
+
python-version: "3.12"
|
|
26
|
+
- name: Start a systemd user manager for the runner user
|
|
27
|
+
run: |
|
|
28
|
+
sudo loginctl enable-linger "$USER"
|
|
29
|
+
echo "XDG_RUNTIME_DIR=/run/user/$(id -u)" >> "$GITHUB_ENV"
|
|
30
|
+
for attempt in $(seq 1 20); do
|
|
31
|
+
test -S "/run/user/$(id -u)/bus" && break
|
|
32
|
+
sleep 1
|
|
33
|
+
done
|
|
34
|
+
XDG_RUNTIME_DIR="/run/user/$(id -u)" systemctl --user is-system-running || true
|
|
35
|
+
- name: Build and install the wheel outside the checkout
|
|
36
|
+
run: |
|
|
37
|
+
uv build --out-dir "$RUNNER_TEMP/dist"
|
|
38
|
+
uv venv --python 3.12 "$RUNNER_TEMP/venv"
|
|
39
|
+
wheel=$(ls "$RUNNER_TEMP"/dist/*.whl)
|
|
40
|
+
uv pip install --python "$RUNNER_TEMP/venv/bin/python" "${wheel}[mcp]"
|
|
41
|
+
- name: Install, start, inspect, stop and remove the unit
|
|
42
|
+
run: |
|
|
43
|
+
cli="$RUNNER_TEMP/venv/bin/forecast-anything"
|
|
44
|
+
# Spaces and % exercise systemd quoting and specifier escaping.
|
|
45
|
+
workspace="$RUNNER_TEMP/my work 100%"
|
|
46
|
+
mkdir -p "$RUNNER_TEMP/sources"
|
|
47
|
+
"$cli" init --workspace "$workspace" --csv-root "$RUNNER_TEMP/sources" --port 8191
|
|
48
|
+
config="$workspace/config.json"
|
|
49
|
+
"$cli" service install --config "$config" | tee install.json
|
|
50
|
+
unit=$(ls ~/.config/systemd/user/forecast-anything-*.service)
|
|
51
|
+
cat "$unit"
|
|
52
|
+
systemd-analyze --user verify "$unit"
|
|
53
|
+
"$cli" service start --config "$config" | tee start.json
|
|
54
|
+
systemctl --user is-enabled "$(basename "$unit")"
|
|
55
|
+
python3 - <<'EOF'
|
|
56
|
+
import json
|
|
57
|
+
start = json.load(open("start.json"))
|
|
58
|
+
assert start["service"]["installed"] is True, start
|
|
59
|
+
assert start["service"]["loaded"] is True, start
|
|
60
|
+
EOF
|
|
61
|
+
"$cli" service stop --config "$config" | tee stop.json
|
|
62
|
+
python3 -c 'import json; s=json.load(open("stop.json")); assert s["service"]["loaded"] is False, s'
|
|
63
|
+
"$cli" service remove --config "$config" | tee remove.json
|
|
64
|
+
python3 -c 'import json; s=json.load(open("remove.json")); assert s["service"]["installed"] is False, s'
|
|
65
|
+
test ! -e "$unit"
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Publishes only from a version tag (v0.2.0) whose version matches
|
|
4
|
+
# pyproject.toml, after the same artifact checks as the release candidate.
|
|
5
|
+
# Uses PyPI trusted publishing: no token is stored in the repository. Before
|
|
6
|
+
# the first run, the owner must register this repository and the "pypi"
|
|
7
|
+
# environment as a trusted publisher on PyPI.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags: ["v*"]
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
name: Build and verify
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
23
|
+
with:
|
|
24
|
+
version: "0.12.3"
|
|
25
|
+
python-version: "3.14"
|
|
26
|
+
- name: Require the tag to match the package version
|
|
27
|
+
run: |
|
|
28
|
+
version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml","rb"))["project"]["version"])')
|
|
29
|
+
test "${GITHUB_REF_NAME}" = "v${version}" || {
|
|
30
|
+
echo "Tag ${GITHUB_REF_NAME} does not match version ${version}" >&2
|
|
31
|
+
exit 1
|
|
32
|
+
}
|
|
33
|
+
- name: Install locked build and verification dependencies
|
|
34
|
+
run: uv sync --locked --no-dev --extra dev
|
|
35
|
+
- name: Build wheel and source distribution
|
|
36
|
+
run: uv build
|
|
37
|
+
- name: Verify installed artifact without model weights
|
|
38
|
+
run: uv run --locked --no-dev --extra dev python scripts/check_release.py --dist dist --artifact-only
|
|
39
|
+
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/
|
|
43
|
+
if-no-files-found: error
|
|
44
|
+
|
|
45
|
+
publish:
|
|
46
|
+
name: Publish with trusted publishing
|
|
47
|
+
needs: build
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
environment:
|
|
50
|
+
name: pypi
|
|
51
|
+
url: https://pypi.org/p/forecast-anything
|
|
52
|
+
permissions:
|
|
53
|
+
id-token: write
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
|
|
56
|
+
with:
|
|
57
|
+
name: dist
|
|
58
|
+
path: dist/
|
|
59
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Release candidate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: read
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
candidate:
|
|
11
|
+
name: Build and verify candidate artifacts
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
15
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
16
|
+
with:
|
|
17
|
+
version: "0.12.3"
|
|
18
|
+
python-version: "3.14"
|
|
19
|
+
- name: Install locked build and verification dependencies
|
|
20
|
+
run: uv sync --locked --no-dev --extra dev
|
|
21
|
+
- name: Build wheel and source distribution
|
|
22
|
+
run: uv build
|
|
23
|
+
- name: Verify installed artifact without model weights
|
|
24
|
+
run: uv run --locked --no-dev --extra dev python scripts/check_release.py --dist dist --artifact-only | tee release-check.json
|
|
25
|
+
- name: Upload candidate artifacts for review
|
|
26
|
+
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
27
|
+
with:
|
|
28
|
+
name: forecast-anything-release-candidate
|
|
29
|
+
path: |
|
|
30
|
+
dist/*.whl
|
|
31
|
+
dist/*.tar.gz
|
|
32
|
+
release-check.json
|
|
33
|
+
if-no-files-found: error
|
|
34
|
+
retention-days: 14
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Local working materials and legacy document links
|
|
2
|
+
/work/
|
|
3
|
+
/outputs/
|
|
4
|
+
/roadmap.md
|
|
5
|
+
|
|
6
|
+
# Local state, model caches and credentials
|
|
7
|
+
.local/
|
|
8
|
+
.venv/
|
|
9
|
+
.env
|
|
10
|
+
.env.*
|
|
11
|
+
!.env.example
|
|
12
|
+
__pycache__/
|
|
13
|
+
*.py[cod]
|
|
14
|
+
.pytest_cache/
|
|
15
|
+
.coverage
|
|
16
|
+
.coverage.*
|
|
17
|
+
node_modules
|
|
18
|
+
/apps/console/dist/
|
|
19
|
+
/apps/console/playwright-report/
|
|
20
|
+
/apps/console/test-results/
|
|
21
|
+
.DS_Store
|
|
22
|
+
|
|
23
|
+
# Local build outputs and workspace databases
|
|
24
|
+
/dist/
|
|
25
|
+
*.db
|
|
26
|
+
*.db-shm
|
|
27
|
+
*.db-wal
|
|
28
|
+
*.sqlite
|
|
29
|
+
*.sqlite-shm
|
|
30
|
+
*.sqlite-wal
|
|
31
|
+
*.sqlite3
|
|
32
|
+
*.sqlite3-shm
|
|
33
|
+
*.sqlite3-wal
|
|
34
|
+
|
|
35
|
+
# Downloaded model artifacts
|
|
36
|
+
.cache/
|
|
37
|
+
models/
|
|
38
|
+
weights/
|
|
39
|
+
*.safetensors
|
|
40
|
+
*.pt
|
|
41
|
+
*.pth
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"detector": {
|
|
3
|
+
"ignoreRules": [],
|
|
4
|
+
"ignoreFiles": [],
|
|
5
|
+
"ignoreValues": [
|
|
6
|
+
{
|
|
7
|
+
"rule": "cream-palette",
|
|
8
|
+
"value": "*",
|
|
9
|
+
"files": [
|
|
10
|
+
"site/index.html"
|
|
11
|
+
],
|
|
12
|
+
"createdAt": "2026-11-29T16:18:07.873Z",
|
|
13
|
+
"reason": "user confirmed: chose the 'Tavola incisa' paper-ground direction from its rendered sketch, after referencing the cream CHORUS hive-mind page as the bar"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"rule": "design-system-font",
|
|
17
|
+
"value": "sfmono-regular",
|
|
18
|
+
"files": [
|
|
19
|
+
"apps/console/src/styles.css"
|
|
20
|
+
],
|
|
21
|
+
"createdAt": "2026-11-29T16:20:11.971Z",
|
|
22
|
+
"reason": "the console is a separate surface with its own stylesheet; DESIGN.md now documents the site world (user chose overwrite, with the console kept separate)"
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
}
|