Skip to content
Draft
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
efb5ce3
Add AggIndMrkvConsumerType: hierarchical macro+micro Markov states
llorracc Mar 20, 2026
3f070a5
Add model YAML to NewKeynesianConsumerType for AgentSimulator
llorracc Mar 20, 2026
7c71975
TM/MC sim infra: Markov transitions, simulator grids, TME notebook
llorracc Mar 20, 2026
da7399e
Remove sims-about prototype notebooks (moved to local /tmp)
llorracc Mar 20, 2026
21794fe
Merge branch 'ConsAggIndMarkovModel' into main_improve-tm-vs-mc-sim-i…
llorracc Mar 21, 2026
f1089ad
Add MC-vs-TM example notebooks and make_history_tm method
llorracc Mar 21, 2026
2537d2a
Fix nbformat validation errors in KrusellSmithType.ipynb
llorracc Mar 21, 2026
eade995
Fix MarkovConsumerType newborn PermShk suppressing PermGroFac
llorracc Mar 21, 2026
40fbddd
Remove TM methods from MarkovConsumerType
llorracc Mar 31, 2026
bf96412
Add ergodic age initialization for infinite-horizon models
llorracc Mar 31, 2026
b4d2548
Suppress spurious newborn warnings for aggregate state variables
llorracc Mar 31, 2026
4a48ff2
Normalize KrusellSmithType.ipynb cell key ordering (cosmetic)
llorracc Mar 31, 2026
9448acc
Slim down HANK_Dict in KS-HARK-presentation to inherit from init_newk…
llorracc Apr 1, 2026
0523427
Normalize notebook format: canonical cell key order and stream output…
llorracc Apr 1, 2026
4cee2c3
chore: untrack debug notebooks, sims-about/, .ragignore, example test…
llorracc Apr 15, 2026
ed59e2c
Merge remote-tracking branch 'origin/main' into main_improve-tm-vs-mc…
llorracc Apr 15, 2026
58a0032
Revert "Normalize notebook format: canonical cell key order and strea…
llorracc Apr 15, 2026
786b25b
docs: explain NewKeynesianConsumerType YAML prerequisite in TM guide
llorracc Apr 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ uv.lock
.cursorignore
.cursorindexingignore

# Local simulation notes and scratch work
sims-about/**

# Generated test artifacts
test.jpg
test.pdf
Expand Down
212 changes: 212 additions & 0 deletions .ragignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
# Canonical .ragignore file for Econ-ARK repositories
# This file is automatically distributed to repositories that don't have a .ragignore file
# Defines indexing rules for RAG systems

# Priority order for file extensions (highest priority first)
source_priority:
- .md # Markdown files (highest priority)
- .ipynb # Jupyter notebooks
- .py # Python source code
- .tex # LaTeX documents
- .html # HTML files
- .txt # Plain text files
- .yml # YAML configuration files
- .yaml # YAML configuration files
- .rst # Sphinx documentation
- .json # JSON files

# Files and directories to ignore during indexing
ignore_patterns:
# Generated/compiled files
# - "*.pdf"
- "*.pyc"
- "__pycache__/"
- "*.aux"
- "*.log"
- "*.out"
- "*.toc"
- "*.bbl"
- "*.blg"
- "*.fdb_latexmk"
- "*.fls"
- "*.synctex.gz"

# Build artifacts
- "build/"
- "dist/"
- "*.egg-info/"
- "*.egg"
- "*.whl"
- "*.tar.gz"
- "*.zip"

# Temporary/system files
- ".DS_Store"
- "Thumbs.db"
- "*.swp"
- "*.swo"
- "*~"
- "*.bak"
- ".vscode/"
- ".idea/"
- ".pytest_cache/"
- ".coverage"

# Large binary files
- "*.png"
- "*.jpg"
- "*.jpeg"
- "*.gif"
- "*.svg"
- "*.mp3"
- "*.mp4"
- "*.avi"
- "*.mov"
- "*.wav"

# Sensitive files
- ".env"
- "*.key"
- "*.pem"
- "secrets.*"
- "TODO.md"
- "notes.md"
- "personal_*.md"
- "private/"

# Test and sample data
- "test_data/"
- "sample_data/"
- "mock_data/"
- "tests/"
- "test_*"
- "*_test.py"

# Documentation builds
- "_build/"
- "_site/"
- ".jekyll-cache/"
- "docs/_build/"

# Node.js dependencies
- "node_modules/"
- "package-lock.json"
- "yarn.lock"

# Standard ignore patterns
- ".git/"
- "*.log"
- ".gitignore"
- ".gitmodules"

# Master/source files that should be indexed more thoroughly
# These files are the canonical source of truth and should receive
# much higher priority in search results and more detailed indexing
master_files:
# Main documentation files
- "README.md"
- "*.md"
# Jupyter notebooks with important content
- "*.ipynb"
# Python source code
- "*.py"
# Configuration files
- "*.yml"
- "*.yaml"
- "pyproject.toml"
- "setup.py"
- "requirements.txt"

# Source file relationships (files that generate other files)
# This helps prioritize source files over their generated outputs
source_relationships:
# Markdown files generate various output formats
- source: "*.md"
generates:
- "*.pdf"
- "*.html"
- "*.docx"
- "*.tex"
# Python files generate compiled bytecode
- source: "*.py"
generates:
- "*.pyc"
- "__pycache__/*"
# LaTeX files generate various outputs
- source: "*.tex"
generates:
# - "*.pdf"
- "*.aux"
- "*.log"
- "*.out"
- "*.toc"
- "*.bbl"
- "*.blg"
# Jupyter notebooks can generate various outputs
- source: "*.ipynb"
generates:
- "*.html"
- "*.pdf"
- "*.py"

# Content requiring careful processing
careful_processing:
# Configuration files (process but with low priority)
config_files:
patterns:
- "*.yml"
- "*.yaml"
- "*.toml"
- "*.ini"
- "*.cfg"
- "Dockerfile"
- "docker-compose.yml"
- "requirements.txt"
- "setup.py"
- "pyproject.toml"
max_size_kb: 100

# Data files (process only if small)
data_files:
patterns:
- "*.csv"
- "*.json"
- "*.xlsx"
- "*.xls"
max_size_kb: 50

# Import-heavy files (skip if mostly imports)
code_files:
import_threshold: 0.8
skip_generated: true
skip_templates: false

# Additional patterns based on HARK repository analysis
ignore_patterns:
# Test files (major noise reduction)
- "*/tests/"
- "test_*.py"
- "*_test.py"

# GitHub/CI files
- ".github/"
- ".pre-commit-config.yaml"

# Large calibration data
- "*/Calibration/*/life_tables/"
- "*/Calibration/*/SCF/"
- "*/Calibration/*/cpi/"
- "large_data/"
- "calibration_data/"

# Documentation build
- "Makefile"
- "make.bat"
- "conf.py"

# Enhanced notebook processing
careful_processing:
large_notebooks:
patterns: ["*.ipynb"]
max_size_mb: 2
strip_outputs: true
Loading
Loading