Skip to main content

Econometric analysis engine for agents. OLS, FE, IV/2SLS, DiD, RDD, Event Study, Causal Forest.

Project description

maestro-economics

maestro-economics is the canonical repository for the Maestro economics skill, the mecon CLI, the run(ctx) runtime contract, and the Modal worker used by RA Compute.

This repo exists to keep four things aligned:

  • agent guidance
  • packaging and PyPI release
  • workspace/runtime execution
  • cloud worker implementation

Scope

This repository currently contains:

  • mecon CLI for setup, workspace tracking, sync, submit, watch, logs, download
  • run(ctx) runtime with progress, logs, checkpoints, data loading, and transform helpers
  • Modal worker entrypoints for GPU execution
  • economics method registry and analysis scaffolding
  • agent skill documentation used to guide professor-facing and agent-facing workflows

Canonical flow

pip install maestro-economics

mecon setup
mecon whoami

mecon workspace init
mecon add run.py data.parquet
mecon sync

mecon submit run.py --gpu l4
mecon watch <job_id>
mecon logs -f <job_id>
mecon sync

download still exists, but workspace mode should normally use sync to pull output/ artifacts back.

Worker contract

Jobs must expose run(ctx).

def run(ctx):
    ctx.log("Loading data")
    ctx.progress(0.1, "Loading data")

    # read from ctx.data_dir
    # write artifacts to ctx.output_dir

    ctx.save_checkpoint(step=1)
    ctx.progress(1.0, "Done")
    return {"diagnostics": {"converged": True}}

Available helpers:

  • ctx.progress(pct, message)
  • ctx.log(message)
  • ctx.save_checkpoint(**arrays)
  • ctx.load_checkpoint()
  • ctx.has_checkpoint
  • ctx.data_dir
  • ctx.output_dir
  • ctx.config
  • ctx.gpu

Install and verify

python3 -m pip install -e .
pytest -q
python3 -m compileall src/maestro_economics

Plugin packaging

This repository now includes root-level plugin manifests for both ecosystems:

The repository itself is the plugin root. A separate Codex marketplace catalog is intentionally not added here because this repo is a single plugin source, not a multi-plugin catalog.

Repository rule

Do not introduce a second runtime repo. If the skill, CLI, PyPI package, and worker drift apart again, the product becomes unreliable immediately.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maestro_economics-0.2.0.tar.gz (309.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maestro_economics-0.2.0-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

Details for the file maestro_economics-0.2.0.tar.gz.

File metadata

  • Download URL: maestro_economics-0.2.0.tar.gz
  • Upload date:
  • Size: 309.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for maestro_economics-0.2.0.tar.gz
Algorithm Hash digest
SHA256 db56214fc481b110daaba8bcbcc67afb03c662495246124f5dd5fbb382af6c96
MD5 10e951db00648c515aa23694202830a9
BLAKE2b-256 35c43b810102811f489cb0cb2f5e4ad13bf1418b40cc92eccb4f8a389664b484

See more details on using hashes here.

File details

Details for the file maestro_economics-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for maestro_economics-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb2580b06d663f3116d4abe600f3312c767d7233eefc88fab71c9b5cee14faff
MD5 942321f22f90bded122d31643961c7cf
BLAKE2b-256 358668b101b782e02ba9050c028c66202d6f4da3832a6c21d8fc0e73161889c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page