The United States Internal Revenue Service (IRS) has released the source code for its Direct File service. This service allows taxpayers to file federal tax returns electronically and for free, directly with the IRS. The open-sourcing includes the interview-based logic that translates the Internal Revenue Code into plain language questions, along with associated test cases and scenarios.
A significant component of the release is the Fact Graph, a declarative, XML-based knowledge graph. This system, written in Scala, is designed to reason about incomplete information, such as partially completed tax returns. The Fact Graph is not domain-specific and could be useful for other revenue agencies or as a reference for business rules engine implementations. The code also includes the mechanism for transmitting taxpayer answers into standard tax forms via the IRS's Modernized e-File (MeF) API.
While Direct File focuses on federal tax returns, it facilitates state and local filing obligations. It allows taxpayers to import their federal return data into third-party tools for state and/or local tax filing without re-entering information. This is enabled through a State API, which transfers both standard MeF XML and an enriched JSON format containing additional data elements useful for state revenue agencies.
Direct File was developed by an in-house team at the IRS, with support from USDS, GSA, and vendors like TrussWorks, Coforma, and ATI. The open-sourcing of this software provides a public resource for understanding and implementing US tax law interpretation, potentially benefiting other developers and organizations working on tax-related products.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
The US Internal Revenue Service (IRS) has open-sourced the code for its Direct File tax filing service, making it available for public use. This release includes the interview logic, test cases, and the Fact Graph knowledge base, which interprets tax law and handles incomplete information.