Skip to content

/diagnose-issue: comment style guidance (question-shaped, link-heavy)#898

Merged
PavelMakarchuk merged 3 commits into
mainfrom
audit/diagnose-issue-skill-comment-style
May 12, 2026
Merged

/diagnose-issue: comment style guidance (question-shaped, link-heavy)#898
PavelMakarchuk merged 3 commits into
mainfrom
audit/diagnose-issue-skill-comment-style

Conversation

@PavelMakarchuk
Copy link
Copy Markdown
Collaborator

Adds a "Comment style (taxsim issues)" subsection to Step 9 of the /diagnose-issue skill, baking in three rules drawn from recent issue replies (#874, #878):

  • Phrase findings as questions, not pronouncements. "Possible that the hand calc didn't apply X?" beats "Your calculation is wrong because you forgot X." If a number doesn't reproduce, ask whether the case was intended differently rather than asserting the reporter is wrong.
  • Always link the primary sources you used. Statute citations → the actual revisor/legis URL. IRS limits → the relevant Rev. Proc. PDF with page anchor. PE-US logic → a GitHub permalink to the specific variable file. Existing PE-US tracking → the issue/PR number.
  • Anchor PE behavior to code, not assertion. Don't write "PE applies X correctly" — write "PE checks X in [<file>] via <variable>."

🤖 Generated with Claude Code

PavelMakarchuk and others added 3 commits May 11, 2026 18:48
…Simulation

Lesson from re-examining taxsim #882: forgetting to pass
tax_unit_childcare_expenses in a direct Simulation situation
zeroed the federal CDCC, which shifted tax_liability_if_not_itemizing
by ~$300 and made it look like Microsim and Simulation produced
different answers. They actually agreed — I was comparing apples to
oranges because the inputs weren't identical.

Step 6 now mandates a TAXSIM-to-PE variable cross-walk before running
a direct Simulation, with a table of the easy-to-miss mappings
(childcare → tax_unit_childcare_expenses, proptax → real_estate_taxes,
mortgage → deductible_mortgage_interest, rentpaid → rent).
Debugging checklist updated to match.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… against output.txt

If the reporter cites a specific PE value, confirm it appears in the
bundle's output.txt before building a diagnosis around it. Reporters
sometimes paste values from a different case; without this check
you can construct a wrong narrative around a wrong number.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replies to taxsim issues should phrase findings as questions ("Possible
that...?") rather than pronouncements, always link the primary sources
used (statute URL, Rev. Proc. PDF, GitHub permalink to the relevant
PE-US variable), and anchor PE behavior to code rather than assertion.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-taxsim Ready Ready Preview, Comment May 12, 2026 7:48am

Request Review

@PavelMakarchuk PavelMakarchuk merged commit 817f777 into main May 12, 2026
12 checks passed
@PavelMakarchuk PavelMakarchuk deleted the audit/diagnose-issue-skill-comment-style branch May 12, 2026 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant