Skip to content

Instantly share code, notes, and snippets.

View MaxGhenis's full-sized avatar

Max Ghenis MaxGhenis

View GitHub Profile
with lessons learned.
⏺ Bash(gh issue create --title "Fix URL path decoding to handle multiple square …
brackets" --body "## Issue Description\nThe `findInTree` function in
`src/api/variables.js` has a bug where it only replaces the first occurrence
of URL-encoded square brackets (%5B, %5D) with their decoded equivalents ([,
]).\n\n## Problem\nWhen a path contains multiple square brackets (e.g.,
something like 'input.households[0].members[1]'), only the first set gets
properly decoded, potentially causing issues when navigating the variable
tree structure.\n\nCurrent code:\n```javascript\npath = path.replace(\"%5B\",
╭───────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help │
│ │
│ cwd: /Users/maxghenis/PolicyEngine/policyengine-us │
╰───────────────────────────────────────────────────────╯
> im putting together a proposal to expand policyengine us
capabilities. weve priced out most of the programs but not
╭───────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help │
│ │
│ cwd: /Users/maxghenis/PolicyEngine/policyengine-us │
╰───────────────────────────────────────────────────────╯
> use this package to calculate the snap benefit for a single person with 10k employment income in dc in 2025
╭───────────────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
│ │
│ /help for help │
│ │
│ cwd: /Users/maxghenis/PolicyEngine/policyengine-us │
╰───────────────────────────────────────────────────────╯
What's new:

PolicyEngine Development Guidelines

Repository Overview

PolicyEngine is a multi-repository organization that builds microsimulation models for tax and benefit systems across multiple countries. The codebase is organized into several main components:

Core Infrastructure

  • policyengine-core: Fork of OpenFisca-Core that powers country models and apps
  • policyengine-api: Flask-based API serving policy simulations and calculations
  • policyengine-app: React-based web application (the main user interface)
@MaxGhenis
MaxGhenis / itemization_bug_minimal.ipynb
Created July 25, 2025 23:39
PolicyEngine itemization bug demonstration
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / itemization_issue_resolved.ipynb
Created July 25, 2025 23:44
Resolution: Multiple tax units explain the itemization behavior
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / final_analysis.ipynb
Created July 25, 2025 23:50
Complete analysis of household 4428 itemization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / ma_ctc_effect_executed_final.ipynb
Created July 26, 2025 04:06
Federal CTC expansion reduces MA state tax by triggering itemization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxGhenis
MaxGhenis / ma_ctc_edge_case_executed.ipynb
Created July 26, 2025 04:30
Edge case: Federal CTC could reduce MA tax if itemization logic used <=
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.