Documenting the R&D Tax Credit for Agent Development Under Section 174
A step-by-step methodology for documenting Section 174 R&D tax credit claims for AI agent development after TCJA's capitalization shift.

The intersection of federal tax law and production-grade AI development has created a documentation challenge that most finance teams are still working through. After the Tax Cuts and Jobs Act reshaped how research and experimental expenditures are treated under Section 174, organizations building autonomous agent systems face specific questions about what qualifies, what must be recorded, and how to structure evidence that survives an IRS examination. This guide addresses the full documentation methodology, from initial expenditure classification through audit-ready recordkeeping.
Why Section 174 Changed the Stakes for Agent Development
Before the TCJA amendments took effect for tax years beginning after December 31, 2021, Section 174 allowed businesses to deduct research and experimental expenditures immediately in the year incurred. That immediate expensing treatment made documentation primarily a categorization exercise. The TCJA eliminated that option, replacing it with mandatory capitalization and amortization over five years for domestic research and fifteen years for foreign research.
The shift from expensing to amortization dramatically raised the financial stakes of how software development costs are classified. An expenditure that would have reduced taxable income in year one now creates a multi-year amortization schedule, and the decision to categorize a cost as Section 174 rather than ordinary business expense has compounding tax consequences. For organizations building AI agents, where development costs can be substantial and the boundaries of "research or experimental" are not always obvious, precise documentation is not optional — it is the foundation of a defensible position.
The IRS has issued limited specific guidance on AI development under the post-TCJA framework, which means practitioners must work from existing regulations, Treasury guidance on software, and the general Section 174 regulations. Revenue Procedure 2000-50, which historically governed software development costs, was superseded in part by the TCJA changes, and the IRS has acknowledged that further guidance is forthcoming. In the meantime, practitioners must construct documentation frameworks that are consistent with the plain language of the statute and the experimental nature standard that has been interpreted through decades of case law.
Defining Qualified Research Activities in Agent Development
The threshold question for any Section 174 claim is whether the activity constitutes research or experimental expenditure within the meaning of the statute. The statute defines this as expenditure paid or incurred in connection with the taxpayer's trade or business which represents research or development costs in the experimental or laboratory sense. Activities that meet this definition must be distinguished from routine production, quality control, and adaptation of existing systems.
For AI agent development, the experimental nature test requires demonstrating that the work was undertaken to discover information that would eliminate or reduce technical uncertainty. Technical uncertainty exists when the information needed to develop the capability is not available in the public domain or through ordinary engineering practice. Developing a novel agent reasoning architecture, designing an exception handling protocol for edge cases that have no established solution, and building multi-agent orchestration systems that have no direct analog in prior art are the kinds of activities most likely to satisfy this test.
Activities that are less likely to qualify include standard prompt engineering against a commercial API, configuring no-code automation tools, and integrating pre-built agent frameworks without substantive modification. The distinction matters at the line level of the development ledger, not just at the project level. A single project may contain a mixture of qualified and non-qualified activities, and documentation must be granular enough to separate them.
The software development regulations under Treasury Regulation 1.174-4 and the subsequent TCJA interpretations establish that software created for internal use is subject to a higher qualification standard than software developed for third-party sale or license. Agent systems built for an organization's internal operations — automating financial reconciliation, managing customer service workflows, or coordinating supply chain decisions — fall under the internal use software rules, which require that the software meet the high threshold of innovation test, be subject to significant economic risk, and not be commercially available in a form that would meet the taxpayer's needs without substantial modification.
Structuring the Documentation Framework Before Development Begins
The most defensible R&D tax credit documentation begins before a single line of agent code is written. A prospective documentation framework captures the state of knowledge at project inception, the technical uncertainties identified, and the experimental plan designed to resolve them. This contemporaneous record is far stronger than retrospective reconstruction, which examiners often treat with skepticism.
The first component of the prospective framework is a technical uncertainty statement. This is a narrative document, typically written by the technical lead, that describes what is not yet known, why existing solutions are inadequate, and what the project intends to discover. For an agent development project, this might describe the uncertainty around whether a specific multi-step reasoning architecture can achieve acceptable accuracy on a domain-specific dataset, or whether an exception handling protocol can route edge cases reliably without human intervention.
The second component is a research plan. The plan does not need to be a formal research proposal in the academic sense. What matters is that it documents the hypotheses being tested, the experiments or development cycles that will generate evidence about those hypotheses, and the criteria that will determine whether a particular technical approach succeeded or failed. Development teams using agile or sprint-based methodologies can adapt their sprint planning artifacts to serve this function, provided they are retained in their original form and tied to the broader qualification analysis.
The third component is a cost capture mechanism. The organization must have a system — whether a project management tool, a time-tracking platform, or a custom allocation ledger — that captures labor hours by individual, by project, and by activity type. Allocation methodologies based on estimates alone are vulnerable. Systems that capture actual hours at the time of performance are more defensible and produce a more accurate credit.
Categorizing Expenditure Types for Section 174
Section 174 covers a broader range of costs than many practitioners realize. The statute and regulations include wages paid to employees engaged in research activities, costs of supplies consumed in research, contract research expenditures paid to third parties, and certain facility costs allocated to research activities. For agent development, each of these categories has specific documentation requirements.
Wages represent the largest Section 174 category for most software-intensive organizations. The qualified service percentage for each employee — the fraction of their total compensation that may be included in the research credit calculation — must be supported by contemporaneous time records. Engineers, data scientists, and QA professionals whose work involves resolving technical uncertainties in the agent system are qualified. Employees performing project management, training on standard tools, or routine deployment tasks are not qualified for the direct activities credit, though they may be captured under the supervision component for employees who spend substantial time managing qualified research.
Contract research presents particular complexity for agent development teams that use third-party developers, fine-tuning services, or specialized AI model providers. The 65 percent rule under Section 41 — which governs the research credit related to Section 174 — means that only 65 percent of amounts paid to contract researchers count toward the credit base, even when 100 percent of those amounts qualify as Section 174 expenditures. Documentation for contract research must include the original agreement specifying the nature of the work, invoices tied to specific deliverables, and written confirmation that the taxpayer retained substantial rights to the research results.
Supply costs in agent development may include cloud compute resources consumed in training runs, API call costs during experimental fine-tuning phases, and specialized hardware depreciation allocated to research projects. Cloud compute documentation requires isolating costs attributable to research from costs attributable to production inference. A cost allocation methodology that uses resource tags, project codes, or account-level separation to distinguish experimental from production workloads is the standard approach, and the methodology should be documented in writing so that an examiner can replicate the allocation.
Building the Activity-Level Evidence Record
The core of a defensible Section 174 claim is an activity-level evidence record that ties each expenditure to a specific qualified activity. This is where most organizations underinvest, and it is the primary area where IRS examiners find vulnerabilities. A claim that identifies qualified research at the project level but cannot connect individual time entries or invoices to specific experimental activities is exposed to partial or complete disallowance.
For agent development projects, the activity-level record should include sprint or iteration documentation capturing the technical problem being addressed, the approach taken, and the result observed. Where an experiment failed and led to a design change, that failure record is itself valuable evidence: it demonstrates that the work was genuinely experimental rather than a predetermined engineering implementation. Technical postmortems, architecture decision records, and version control commit histories with meaningful descriptions all contribute to this layer of the evidence chain.
Developer interviews conducted by qualified practitioners, though not required, strengthen the contemporaneous record substantially. The IRS Audit Techniques Guide for the research credit notes that oral testimony from developers about the nature of their work is admissible, but it is far more persuasive when supported by contemporaneous documentation. If an organization is considering a significant R&D tax credit position, conducting structured technical interviews during the development process — not just at tax filing time — captures knowledge while it is fresh and creates a record that is harder to challenge.
Version control systems, when used consistently, provide a longitudinal record of technical experimentation that has no equivalent in manually maintained documentation. A repository commit history that shows branches created to test alternative reasoning approaches, merges following successful experiments, and reverts following failed ones tells a technical story that experienced examiners can read. Organizations should establish version control hygiene standards — meaningful commit messages, branch naming conventions tied to project codes — as part of their R&D documentation protocols.
Addressing the TCJA Capitalization Mechanics
One of the operational consequences of the post-TCJA framework that requires documentation attention is the mechanics of capitalization itself. Under the new regime, Section 174 expenditures must be capitalized as intangible assets and amortized over the statutory period beginning at the midpoint of the tax year in which the expenditure is paid or incurred. The midpoint convention creates a timing asymmetry in the first year that must be computed and documented separately.
Organizations must determine whether their agent development activities constitute a single project with a unified amortization base or multiple distinct projects each with its own capitalization schedule. The distinction matters when projects have different start dates, when some projects are completed and placed in service while others continue, and when some activities are abandoned before producing a deployable system. The IRS has not issued definitive guidance on project-level versus expenditure-level capitalization for software, and practitioners are taking different positions, but whichever position is adopted must be documented with a written rationale.
The treatment of abandoned research is particularly relevant for agent development, where exploratory work on reasoning architectures or training approaches sometimes produces no usable output. Under the pre-TCJA regime, abandoned research was simply expensed as incurred. Under the post-TCJA regime, capitalized Section 174 costs related to abandoned projects continue to amortize over the statutory period even after the project is terminated, unless the taxpayer can qualify for a loss deduction under a different provision. Documentation of the abandonment decision — who made it, when, and on what technical basis — is necessary to support any alternative treatment.
Taxpayers who discovered they were not complying with the new capitalization rules in their first year of applicability had a specific procedural path available through automatic accounting method changes, originally under Revenue Procedure 2023-8. Organizations that took this path must maintain documentation of the method change itself, including the adjustment amounts and the period to which they were allocated. This procedural history is part of the complete Section 174 documentation file.
The Intersection of Section 174 and Section 41
Section 41 is the statutory source of the research credit itself, while Section 174 defines the expenditures that form the credit base under one of the two available calculation methods. Understanding how these provisions interact is essential for anyone asking: How do you document a Section 174 R&D tax credit claim specifically for AI agent development post-TCJA? The answer requires attention to both statutes simultaneously, because a cost may be a Section 174 expenditure without being a qualified research expense under Section 41, and vice versa in some edge cases.
Section 41 imposes four requirements on qualified research expenses: the expenditure must be a Section 174 cost, it must be paid or incurred in carrying on the taxpayer's trade or business, it must be paid or incurred for research conducted in the United States, and it must not be funded research. The funded research exclusion is particularly relevant for agent development organizations that receive government contracts, research grants, or development agreements where the funder retains rights to the results. If a third party bears the financial risk of the research, the taxpayer's expenditures are excluded from the Section 41 credit base.
The research credit under Section 41 is available as either a regular credit or an alternative simplified credit. The regular credit requires documentation of a base amount derived from historical qualified research expense data going back to 1984 for some taxpayers, which creates significant recordkeeping challenges. The alternative simplified credit uses a base derived from the average qualified research expenses of the three preceding tax years, which is computationally simpler but still requires three years of documented qualified research expense data. Organizations should evaluate which method produces a larger benefit and ensure their documentation supports the chosen approach.
The interaction between the research credit and the capitalization requirement creates a timing mismatch that affects cash flow modeling. The capitalized Section 174 amounts reduce taxable income gradually through amortization, while the Section 41 research credit reduces tax liability in the year the expenditures are incurred. This creates a situation where organizations may claim the full research credit in year one while deducting only a fraction of the underlying expenditure. Documentation must be consistent across both positions, and the relationship between the credit and the amortization should be disclosed clearly in the tax workpapers.
Preparing for Examination
The IRS has historically examined R&D tax credits more frequently than most other specialized credits, and the post-TCJA changes have increased both the dollar amounts at stake and the complexity of the issues. Organizations taking a Section 174 position for agent development should prepare their documentation as if an examination is likely rather than possible. This means organizing the evidence record in a manner that an examiner can navigate, writing a contemporaneous technical report that explains the qualification rationale, and retaining all supporting materials for the applicable statute of limitations period.
The technical report, sometimes called a research credit study, is the primary document an examiner will request first. A well-constructed report includes an executive summary of the qualified activities, a project-by-project description of the technical uncertainties and experimental approaches, the methodology used to calculate qualified research expenses, and a description of the documentation available to support the calculation. For AI agent development, the technical components should be written in language accessible to a non-technical examiner while remaining precise enough to demonstrate genuine understanding of the underlying development work.
Privilege considerations apply to some parts of the documentation process. Communications between an attorney and client regarding the legal analysis of a Section 174 position may be protected by attorney-client privilege. Work product created by a tax advisor in anticipation of litigation may be protected by the work product doctrine. However, the technical facts themselves — what was developed, who worked on it, and how much it cost — are not privileged, and attempts to shield factual documentation behind privilege claims are typically unsuccessful and damage credibility with examiners.
Organizations building agent systems across multiple business units, verticals, or legal entities face additional complexity around intercompany allocations of research expenditures. When a shared development team builds infrastructure used by multiple business lines, the allocation of both expenditures and credit benefits among entities must be documented with a consistent methodology and supported by a written intercompany agreement. Controlled group rules under Section 41 aggregate the credit base across related entities, which means the documentation scope must match the legal scope of the controlled group.
How Production Infrastructure Affects the Documentation Boundary
The distinction between research and production matters not only for qualification purposes but also for documentation architecture. Expenditures incurred once a technology has been placed in service — maintaining, updating, or operating an agent system that has reached a stable production state — do not qualify under Section 174. The documentation boundary between research and production must be established for each project, and the date on which a project transitioned from experimental development to production deployment is a factual question that must be answered with contemporaneous evidence.
For organizations deploying agent systems on a continuous development basis — where research, testing, and production coexist within the same codebase — the boundary question becomes a design challenge for the documentation system. The solution is activity-level tagging rather than date-level cutoffs. When individual activities within an ongoing project are tagged as experimental versus production at the time of performance, the research boundary can be drawn at the activity level regardless of whether the project as a whole is still in development.
TFSF Ventures FZ LLC approaches this distinction through its production infrastructure methodology, which explicitly separates experimental development phases from deployment-ready architecture. The 30-day deployment framework is structured so that the boundary between what is built during research and what constitutes the delivered production system is documented at each phase gate. This makes the research-to-production transition a defined and timestamped event rather than an ambiguous process, which is precisely the kind of clarity that supports a defensible Section 174 position. For organizations wondering about TFSF Ventures FZ-LLC pricing, the deployment cost structure — starting in the low tens of thousands for focused builds, scaling by agent count and integration complexity — can itself be used as a foundation for the Section 174 capitalization schedule, since the cost components are already allocated by function at the contract level.
Documenting Third-Party and Open-Source Components
Agent development rarely occurs on a greenfield basis. Most production agent systems incorporate large language model APIs, open-source orchestration frameworks, vector database infrastructure, and pre-built tooling. The documentation challenge is determining which costs associated with these components qualify under Section 174 and which represent payments for commercially available services that do not involve any experimental uncertainty.
Payments for API access to foundation models are generally not themselves Section 174 expenditures when used in a straightforward inference capacity. However, compute costs incurred during fine-tuning runs, retrieval-augmented generation experiments, or novel architecture testing using those models may qualify if the work genuinely involves resolving technical uncertainty about whether the approach will work. The key is that the experimental uncertainty must attach to the taxpayer's development work, not to the model provider's technology.
Open-source components present a related question. Incorporating an open-source agent framework without modification is not research. Modifying that framework to address a technical limitation that cannot be resolved within its existing design — adapting it for a specialized exception handling protocol, for example, or extending it to support novel multi-agent communication patterns — may qualify, provided the modification work meets the experimental nature test. Documentation should capture the specific modification objectives, the technical uncertainty those modifications were intended to resolve, and the evidence that the resolution was not obvious from the existing codebase or documentation.
Integration with Financial Reporting and Tax Workpapers
The Section 174 documentation file does not exist in isolation. It must be consistent with how research expenditures are treated on financial statements, with how intangible assets are reported on the balance sheet, and with the disclosures made in the tax return and any required forms. Inconsistencies between these records — for example, capitalizing costs as Section 174 on the tax return while expensing the same costs as period costs on the financial statements under ASC 350 or ASC 730 — create audit flags that examiners are trained to identify.
ASC 730, which governs research and development accounting under GAAP, generally requires immediate expensing of research and development costs, while Section 174 now requires capitalization for tax purposes. This creates a book-tax difference that must be identified, quantified, and reconciled in the tax workpapers. A deferred tax liability arises because the tax deduction from amortization will occur in future periods while the book expense has already been recognized. The calculation of this deferred tax liability must be supported by the same underlying data as the Section 174 claim.
Disclosures on the tax return itself — including Form 6765 for the research credit and the tax return's balance sheet if applicable — must be consistent with the documentation file. Material inconsistencies between return positions and workpaper documentation are among the first things an examiner looks for. Organizations should treat the return preparation process as the final quality check on the documentation file rather than a separate exercise.
Connecting Agent Development Documentation to Long-Term Tax Strategy
The post-TCJA capitalization requirement means that the tax consequences of agent development extend across a five-year or fifteen-year window, not just the current tax year. A documentation framework that captures only current-year expenditures is insufficient. Organizations need a multi-year tracking system that maintains the amortization schedule for each capitalized batch of Section 174 expenditures, connects that schedule to the original documentation for each project, and can be accessed and updated as projects are completed, abandoned, or placed in service.
TFSF Ventures FZ LLC's approach to production infrastructure — deploying owned code rather than subscription-based platforms — has a direct tax dimension that many technology buyers overlook. When the client owns every line of code at deployment completion, as is the standard in TFSF's model, the capital asset is clearly defined, the acquisition cost is documented in the contract, and the Section 174 amortization base can be established from a clean set of invoices. This is meaningfully different from SaaS arrangements where the software asset may not be recognized at all, and where the qualification of subscription fees under Section 174 is itself a contested question. For further analysis of infrastructure ownership from a cost perspective, the Labarna AI article on cost analysis for custom agent infrastructure provides a useful framework.
Organizations asking about TFSF Ventures reviews and legitimacy will find that the firm operates under documented registration and a structured deployment methodology that creates the kind of paper trail useful for both operational and tax purposes. The production infrastructure model, rather than a consulting engagement or platform subscription, produces documentation that maps naturally to Section 174 requirements because it generates discrete, project-level cost records rather than ongoing service fee invoices.
The long-term perspective on Section 174 documentation also encompasses the question of continuity. Development teams change, projects evolve, and the original technical leads may no longer be with the organization when an examination occurs years later. A documentation system that captures technical knowledge in writing — rather than relying on the institutional memory of specific individuals — is the only approach that remains defensible across the multi-year amortization window. For additional context on how deployment architecture intersects with regulatory and compliance documentation, the Labarna AI article on system architecture for compliance-heavy industries addresses related structural considerations.
Documentation Governance and Retention Policy
The statute of limitations for federal income tax assessments is generally three years from the filing date, extended to six years when income is substantially understated. Research credit claims are sometimes characterized as involving substantial omissions or understatements, which means the six-year period may apply. The practical implication is that Section 174 documentation should be retained for at least seven years from the filing date of the return on which the expenditure is first reported, and for the full amortization period plus the applicable limitations period for any year in which amortization deductions are claimed.
Documentation governance should include a defined retention policy, a designated custodian responsible for maintaining the research credit files, and a process for transferring documentation ownership when personnel change. Organizations that treat Section 174 documentation as a one-time tax filing exercise rather than a multi-year governance responsibility often find themselves unable to reconstruct the necessary records when an examination opens years after the development work was completed.
TFSF Ventures FZ LLC addresses the documentation continuity question through its delivery model, which transfers complete system documentation — architecture records, deployment logs, and technical specifications — to the client at project completion. This means that when an examination occurs, the client holds a complete technical record that was created contemporaneously during development. That record forms the evidentiary backbone of the Section 174 claim without requiring reconstruction. The 19-question operational intelligence assessment that TFSF uses at project inception also generates a baseline document that can serve as the "state of knowledge at project inception" component of the Section 174 technical uncertainty record.
Developing and maintaining a Section 174 documentation practice for agent development is not a single-year tax project. It is an operational capability that must be built into how development teams work, how costs are captured, and how technical knowledge is preserved. Organizations that treat it as such — and that structure their development infrastructure to generate the necessary evidence naturally rather than retroactively — are positioned to defend their tax positions confidently and to realize the full benefit of expenditures made in genuine pursuit of technical advancement.
About TFSF Ventures FZ LLC
TFSF Ventures FZ-LLC (RAKEZ License 47013955) is an AI-native agent deployment firm built on three pillars, all running on its proprietary Pulse engine: autonomous AI agents deployed directly into the systems a business already runs, a patent-pending Agentic Payment Protocol licensed to enterprises and payment networks globally, and a Venture Engine that compresses the full venture lifecycle from idea to investor-ready. Founded by Steven J. Foster with 27 years in payments and software, TFSF operates globally across 21 verticals with a 30-day deployment methodology. Learn more at https://tfsfventures.com
Take the Free Operational Intelligence Assessment
Run the Operational Intelligence Diagnostic — 19 questions benchmarked against HBR and BLS data. Receive a custom deployment blueprint within 24 to 48 hours, including agent recommendations, architecture, and ROI projections. Start at https://tfsfventures.com/assessment
Originally published at https://www.tfsfventures.com/blog/documenting-the-rd-tax-credit-for-agent-development-under-section-174
Written by TFSF Ventures Research