frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

IRS open sources its fact graph

https://github.com/IRS-Public/fact-graph
153•ronbenton•2h ago

Comments

ok123456•2h ago
Why would I want to use this over Prolog/Datalog?
NoahZuniga•1h ago
Because prolog/datalog don't offer a list of questions that you can ask based on context to calculate someone's US taxes.
ok123456•1h ago
That's the database you consult(). Doing income taxes is well-suited to traditional logic programming.
akerl_•1h ago
This is a bit like asking "why would I use my car's schematics instead of a wrench".

This is the rules engine's details. You could use it to build the logic and traversal in whatever language you like.

tallowen•2h ago
It's nice to see an open sourced implementation of the US tax code! This was part of the IRS Direct File codebase that allowed people to file their taxes for free, directly with the IRS. It was canceled earlier this year by the Trump administration. It looks like the Fact Graph was already opensourced a couple months ago and that version of the factgraph lives here: https://github.com/IRS-Public/direct-file/tree/main/direct-f...

I'm curious why a second repository was created for this.

ronbenton•2h ago
I wonder too. Perhaps the intent is for it to be standalone for general usage and not just as a part of the direct file project?
Twisol•1h ago
Seems so, according to this file: https://github.com/IRS-Public/fact-graph/blob/main/docs/from...

> The main changes are: [...] converting the fact-graph to a standalone library [...]

infotainment•1h ago
I'm still disappointed that they got rid of Direct File, such a promising start...
ronbenton•1h ago
Big W for the tax lobby, big L for the rest of us
beej71•1h ago
I'm far beyond disappointed for that. I'm fucking pissed. Such stupid politicking that makes all of our lives shittier.
thegreatpeter•47m ago
https://directfile.irs.gov ??
CamperBob2•33m ago
Did you try actually using it?
mensetmanusman•1h ago
Build it and release for free.
astrange•1h ago
It's still there. They like saying things and not doing them.

https://directfile.irs.gov

So it's always possible they'll just forget to shut it off.

aliljet•1h ago
I wonder how this can be used with an LLM to provide interesting tax advice? I'd love to regularly ask questions of the tax code...
ronbenton•1h ago
Makes me wonder if someone has already trained a model on the tax code. Would be interesting for sure.
astrange•1h ago
Model training data already contains all the text there is[0], so they can already answer questions like this (especially with web search), but they aren't good at tax calculations.

https://arxiv.org/abs/2507.16126v1

[0] but it's quite possible the conversion from HTML to text is bad

kevin_thibedeau•48m ago
The problem is that the text of US tax code isn't enough to know the correct action to take. The IRS has semi-formal policies based on how it has chosen to interpret the statutes. There are areas of gray that they don't clearly specify. Some of this is in supplementary publications but it still has subjective elements. One example is that settlements for "serious injuries" are regarded as non-taxable income. What constitutes serious is a squishy concept.
cco•28m ago
Yeah you'd have to pull in a lot of case law and perform a lot of fine tuning on expert tax advice (you'd probably have to create this training data).

Would be neat (and still legally fraught!).

TZubiri•25m ago
You can technically use the language model as a data model. That was the quick hack that started it all, autocomplete on a question produces the answer, yes.

However it's clear that we are moving towards separating the data and the language model. Even base chatgpt is given Search Tools and python Tools instead of producing them by text, the tool call itself may be generated by the model though.

You can for sure use a pure LLM to ask it questions about tax code, but we'll probably see specific tools that only contain canon law and kosher case law, and sources it properly. Y'know instead of halucinating

ryandrake•1h ago
I guess as long as it's for entertainment purposes only. I'm going to file "actually following tax/legal advice from a potentially hallucinating LLM" under NOPE.
hahahacorn•1h ago
The super obvious workflow is to query for an idea in natural English and then verify or ask the LLM to provide the paths it was following.

It begs the question why you assume the parent comment was going to blindly follow the LLMs output.

Jach•27m ago
patio11's already saved over $2k apparently, maybe he'll do a more formal write-up at some point. (A couple threads here https://x.com/patio11/status/1977425626584711668 and here https://x.com/patio11/status/1978168404793037087 )
koolba•12m ago
Any idea what the actual deduction it supposedly found for private school?

You can pay for K-12 with 529 or Coverdell ESA funds. But neither allows deductions for contributions. Only growth in either is tax free (assuming it’s spent on education expenses).

jauntywundrkind•1h ago
This was such a fun neat part of the Direct File code drop 5 months ago. https://news.ycombinator.com/item?id=44131901

In particular there's a pretty nice inline tutorial that's still there in that release: https://github.com/IRS-Public/direct-file/blob/main/direct-f...

bickfordb•1h ago
Surprised to learn we still have an IRS
alberth•1h ago
> As a work of the United States Government, this project is in the public domain within the United States.

What does it mean for the license to say "within the US"?

Does this mean this software cannot be used outside the US?

ronbenton•1h ago
Good question. Copyright laws are country-specific, right? So perhaps it is just trying to be clear that there is no license being asserted outside of the US.
dragonwriter•1h ago
Licenses are offered or granted (they are permissions from the copyright holder), not asserted.
dragonwriter•1h ago
> What does it mean for the license to say "within the US"?

It means exactly what it says; you have to read the whole thing (or at least the two sentences before the CC 1.0 Universal text, which is the operative mechanism by which the second sentence is effected), not a fraction of the first sentence.

> Does this mean this software cannot be used outside the US?

No. The license explains two things:

(1) Without any license, this is automatically public domain in the US because it is a federal government work.

(2) The federal government (as the owner of the copyright at creation outside the United States, at least anywhere that applies the common rules underlying the Berne Convention) waives copyright worldwide, and does so via the CC 1.0 Universal declaration (the text of which is then included.)

So, it is, to the extent that this is legally possible, copyright-free globally.

jandrewrogers•51m ago
Some countries don't recognize the concept of Public Domain works. In the US, many government works are Public Domain as a matter of law. This creates complications internationally in those countries that don't recognize the legitimacy of Public Domain as a legal concept. Nonetheless, the US still wants to make it available internationally.

To satisfy these conflicting requirements, the US government places it in the Public Domain in the US to satisfy US law. Additionally, they make it available internationally under a license that approximates the intent of Public Domain while still being recognized as a legally valid thing.

vineyardmike•1h ago
Am I being dumb or does this not actually contain the facts about the tax code? Is the /demo/all-facts file supposed to be the “real” facts? Are the XML fact files provided in another location?

It’s pretty cool to see the way that the IRS handles defining and maintaining its tax calculations, but also a machine-readable tax code seems cool too.

ronbenton•1h ago
I believe the actual IRS tax code implementation is in a separate repo here: https://github.com/IRS-Public/direct-file while the originally linked repo is the fact graph tooling decoupled from the tax implementation.
tyingq•53m ago
Look like many of them are specifically the xml files here:

https://github.com/IRS-Public/direct-file/tree/e0d5c84451cc5...

ronbenton•51m ago
I was just reading through those! A bit dizzying
kumavis•46m ago
specifically here https://github.com/IRS-Public/direct-file/tree/main/direct-f...
MangoToupe•22m ago
As far as I am aware, fact just means shared assumption. This seems entirely reasonable for a tax code.
rvitorper•1h ago
Scala mentioned
hedayet•47m ago
I’ve had frustrating experiences with TurboTax due to its overly complex interface, aggressive data collection under the guise of saving money (which it doesn’t deliver), and a convoluted pricing structure that rivals the IRS’s own complexity.

I hope this initiative is good enough to enable domain experts and good people to build transparent, user-friendly alternatives to challenge TurboTax’s market grip.

Has anyone encountered promising tools or approaches that tackle these pain points?

willis936•40m ago
DirectFile was quite good for the one year I was able to use it and addressed your concerns. Don't worry, that's since been taken care of.

https://apnews.com/article/irs-direct-file-tax-returns-free-...

j_bum•29m ago
Just a heads up, your URL 404’s
willis936•28m ago
Thanks. Fixed. I stripped what I thought was a tracker without testing.
hk1337•43m ago
My eyes read Scala but my brain was thinking Clojure, so I was a bit confused on why there weren’t any parentheses for the first couple of seconds looking at the source.

We're losing the war against drug-resistant infections faster than we thought

https://www.npr.org/sections/goats-and-soda/2025/10/15/g-s1-93449/antibiotic-resistance-bacteria
1•pseudolus•34s ago•0 comments

Prosper Data Breach

https://haveibeenpwned.com/Breach/Prosper
1•toomuchtodo•48s ago•0 comments

Show HN: Achilleus – Security monitoring for agencies managing client websites

https://www.achilleus.so/
2•rangapin•2m ago•0 comments

Patent Array Analysis Using a Combination of ClickHouse and HDFS

https://link.springer.com/chapter/10.1007/978-3-031-67685-7_3
1•teleforce•2m ago•1 comments

Show HN: Shorter – search for shorter versions of your domain

https://shorter.dev
1•aanesn•6m ago•0 comments

Secure Boot bypass risk threatens nearly 200K Linux Framework laptops

https://www.bleepingcomputer.com/news/security/secure-boot-bypass-risk-on-nearly-200-000-linux-fr...
2•gnabgib•12m ago•0 comments

Show HN: AI body double for ADHD (voice agent that checks in while you work)

https://mindkite.app
2•mmuk2002•13m ago•1 comments

Practicing Difficulty

https://kirkhamilton.substack.com/p/practicing-difficulty
1•chr15m•16m ago•0 comments

How Charlie Chaplin used his uncanny resemblance to Hitler to fight fascism

https://www.npr.org/2025/10/15/nx-s1-5554555/the-great-dictator-charlie-chaplin-anniversary-hitler
2•1659447091•17m ago•0 comments

New Alzheimer's Treatment Clears Plaques from Brains of Mice Within Hours

https://www.sciencealert.com/new-alzheimers-treatment-clears-plaques-from-brains-of-mice-within-h...
6•amichail•24m ago•0 comments

China 'stole vast amounts' of classified UK documents

https://www.cityam.com/china-stole-vast-amounts-of-classified-uk-documents/
4•jnord•24m ago•0 comments

UTF-8, Explained Simply [video]

https://www.youtube.com/watch?v=vpSkBV5vydg
2•ibobev•27m ago•2 comments

China Issues Export Restriction Documents in Domestic File Format

https://www.scmp.com/economy/china-economy/article/3328782/sending-message-beijing-issues-documen...
2•Snoozus•32m ago•0 comments

How A Liver Goes from a Brain Dead Donor to a Living Recipient

https://www.asimov.press/p/liver
2•maxall4•34m ago•0 comments

Show HN: Smusic.ai – Free AI-Powered Music Generator in the Browser

https://www.smusic.ai
1•jerseywu•34m ago•0 comments

Hull Failure and Implosion of Submersible Titan

https://www.ntsb.gov:443/investigations/Pages/DCA23FM036.aspx
3•jonchang•36m ago•0 comments

Ask HN: What are your go-to websites for honest consumer electronics reviews?

4•ronbenton•39m ago•1 comments

Coral NPU: A full-stack platform for Edge AI

https://research.google/blog/coral-npu-a-full-stack-platform-for-edge-ai/
1•LER0ever•41m ago•0 comments

Show HN: Simulation of the Tech Industry in 2027

https://www.marbleos.com/?os=m
2•breadsniffer•43m ago•2 comments

All the Money, None of the Satisfaction

https://ofdollarsanddata.com/all-the-money-none-of-the-satisfaction/
2•throw0101d•57m ago•0 comments

Author Interview: Antenna Engineering and Radiowave Propagation with Matlab

https://blog.artechhouse.com/2025/10/09/exclusive-interview-from-our-author-osama-w-ata/
3•teleforce•58m ago•0 comments

Catching the Winds of Luck (2025) [video]

https://www.youtube.com/watch?v=P9rqjxLaQOY
2•suriya-ganesh•1h ago•1 comments

Towards Logic: The Language of AI

https://arxiv.org/abs/2510.12269
3•cmogni1•1h ago•0 comments

Tether CEO Paolo Ardoino: 'Bitcoin and Gold Will Outlast Any Other Currency'

https://www.coindesk.com/markets/2025/10/12/tether-ceo-paolo-ardoino-bitcoin-and-gold-will-outlas...
1•PaulHoule•1h ago•0 comments

I'm recomming my customers switch to Linux rather that Upgrade to Windows 11

https://www.scottrlarson.com/publications/publication-windows-move-towards-surveillance/
80•trinsic2•1h ago•51 comments

EU gets what it asked for, there is no charger in the MacBook Pro box

https://appleinsider.com/articles/25/10/15/eu-gets-what-it-asked-for-there-is-no-charger-in-the-m...
4•josephcsible•1h ago•0 comments

How to "Teach" AI to Teenagers

https://christinaasquith.substack.com/p/how-to-teach-ai-to-teenagers
1•claynicholson•1h ago•0 comments

Craft, not fame, makes your story worth telling

https://herbertlui.net/craft-not-fame-makes-your-story-worth-telling/
3•herbertl•1h ago•0 comments

The Pentagon Press Corps Is Gone

https://www.cjr.org/news/the-pentagon-press-corps-is-gone.php
9•throw0101d•1h ago•0 comments

PostgREST: REST API for any Postgres database

https://docs.postgrest.org/en/v13/index.html
1•pykello•1h ago•0 comments