Answers · bookkeeping
Our French company's accounting software now has an AI agent that drafts and posts journal entries. What does the tax administration expect from the FEC file we'd hand over in an audit, can an entry be changed once it's validated, and how should the agent fit into validation and period closing?
Last updated
TL;DR: Two sets of rules apply. Under article L. 47 A of the Livre des procédures fiscales, a business keeping computerized books meets its duty to present its accounts in a tax audit by handing over a copy of its fichier des écritures comptables (FEC) in the format set by article A. 47 A-1; in a desk examination of the accounts (article L. 47 AA) the file must be sent within fifteen days. The tax guidance (BOFiP BOI-CF-IOR-60-40-20) says the FEC is one file per financial year covering every journal, with entries numbered chronologically in increasing order with no gaps or reversals, and it carries each entry's validation date. Not presenting a compliant FEC costs a fine of €5,000 or, if tax is reassessed and the amount is higher, 10% of the tax due (article 1729 D of the Code général des impôts). Separately, BOI-BIC-DECLA-30-10-20-40 applies the Plan comptable général: once an entry is validated it can't be modified or deleted (article 921-3), software functions that do so are prohibited, and periods must be closed no later than the end of the following period (article 921-4). An agent can draft; validation and closing should stay with a person.
What should I check, step by step?
1. Let the agent post only in draft (brouillard) mode. The guidance says draft entries can still be changed, but validation freezes them, so a person should review and validate.
- Correct validated entries with new entries, never by editing or deleting. The guidance calls software functions that change or delete validated entries prohibited and says software that doesn't guarantee irreversibility can put the regularity of the books in question.
- Close each period no later than the end of the following one (PCG article 921-4). An entry dated in a closed period goes on the first day of the open period, with its real date stated.
- Generate a test FEC now and check it: one file per year, every journal, entry numbers increasing without gaps or reversals, a validation date on every line, field names on the first line and the file description the format requires.
- Keep the documentation PCG article 911-2 asks for, describing your accounting procedures and organisation; add what the agent does, its permissions, and who validates its entries.
- Keep each entry's link to its supporting document (piece reference and date). The guidance says the audit trail from documents to accounts and back must be permanent.
- Archive, don't just back up: at each year-end closing, export the entries to a readable format such as TXT or CSV. The guidance says a backup in a proprietary format may not meet the retention rules.
What is France's FEC file and when do you have to hand it over?
Article L. 47 A, I of the Livre des procédures fiscales (LPF) says a taxpayer whose books are kept on computer meets its obligation to present them in a tax audit by handing over a copy of the accounting entries files in the electronic format set by article A. 47 A-1. BOFiP BOI-CF-IOR-60-40-10 says this is mandatory for audits whose notice was sent from January 1, 2014, for businesses taxed under a real regime for corporate tax or income tax (BIC, BNC, BA), with exemptions for some property-only SCIs and for micro-entrepreneurs. For a desk examination of the accounts, BOI-CF-DG-40-20 says article L. 47 AA requires the FEC within fifteen days of receiving the notice.
- BOI-CF-IOR-60-40-20 sets out the format. The file can be a flat file whose first line holds the field names or an XML file, it is named by a set pattern and comes with a description of its contents. It covers all entries in all journals for each audited financial year, as a single computerized general journal, and entries must be numbered chronologically in increasing order without gaps or reversals. Each entry carries a posting date and a validation date, which the guidance defines as the date a draft entry became final by being given a unique identifier.
- Article 1729 D of the Code général des impôts sets the sanctions: not presenting the accounts as article L. 47 A requires costs a fine of €5,000 or, where tax is reassessed and the amount is higher, a 10% surcharge on the tax charged; not sending the FEC on time in a desk examination costs €5,000. BOFiP says the €5,000 fine applies once per audit, whatever the number of years covered.
What does the French Plan comptable général say about validating and closing computerized entries?
BOI-BIC-DECLA-30-10-20-40 (version of July 20, 2018) applies the Plan comptable général (PCG) to computerized books. Article 921-3 forbids blanks or alterations in manual books, and for computerized books that becomes a validation procedure that forbids any modification or deletion. The guidance describes three phases: entries in draft mode can be changed; validation is a deliberate software step that freezes every element of the entry; after validation, functions that delete or modify a validated entry go against the principle of irreversibility and their use is prohibited. Software that doesn't guarantee irreversibility and intangibility of validated entries can raise questions about whether the books are regular and have evidential value.
- Validation must attach to each entry its date and the reference of its supporting document (PCG article 922-1), keep a permanent audit trail between documents and accounts (article 911-3), and make the entry irreversible. Article 921-4 requires a closing procedure that freezes the chronology and guarantees the entries can't be changed, applied no later than the end of the following period. An operation dated in a period already closed is recorded on the first day of the next open period, with its actual date stated, and reopening a closed year to change or delete entries is forbidden.
- Article 911-2 requires documentation describing accounting procedures and organisation, kept for as long as the accounting documents it relates to. The guidance also separates archiving from backups: a backup often captures the whole system in a proprietary format and may not meet the retention duties of LPF articles L. 13 and L. 102 B, while an archive exported at closing in a format such as TXT or CSV does.
How should an AI agent fit into French entry-validation and FEC rules?
None of these texts mentions AI. An agent that drafts or posts entries is part of your computerized accounting system, so its entries are subject to the same validation, closing and FEC rules as anything a person types.
- The safest split follows the three phases in the guidance: the agent works in draft mode, a named person validates, and only a person runs period and year-end closing. If the agent finds a mistake in a validated entry, it proposes a correcting entry for the person to validate, rather than changing the original.
- Because the FEC shows entry numbers and validation dates, not who prepared an entry, keep your own record of which entries the agent drafted and who validated them, for example in the entry label, the journal used or a separate log. Hashing each period's FEC export at closing gives you a fixed reference to compare with the file you hand over later.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “We just closed October. Record that the period was closed, who closed it, how many entries the agent drafted and a hash of the FEC export for the period, so there's a dated receipt outside our accounting software.”
{
"tool": "record_action",
"arguments": {
"action_type": "books.period_closed",
"outcome": "success",
"occurred_at": "2026-11-24T17:00:00Z",
"client_event_id": "close:2026-10",
"summary": "October 2026 closed in accounting software by role CPT-1; 1,284 validated entries in the FEC export for the period, 612 drafted by bookkeeping agent v1.8 and validated by role CPT-2; entry numbers continuous",
"action_sha256": "<sha256 of the period's FEC export>"
}
}- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside both the agent and your accounting software.
- It isn't your FEC and doesn't replace what the tax administration can ask for; it shows the hash existed at that time, not that the file is compliant. Keep names, SIREN numbers and bank details out of summary; the hash ties the receipt to the exact file.
Rightshold isn't an accounting system or a records archive, doesn't produce or check FEC files, doesn't connect to your accounting software or the French tax administration, and doesn't check whether your books meet French law. Content is from BOFiP BOI-CF-IOR-60-40-10, BOI-CF-IOR-60-40-20, BOI-CF-DG-40-20 and BOI-BIC-DECLA-30-10-20-40 and from article 1729 D of the Code général des impôts as published on bofip.impots.gouv.fr and legifrance.gouv.fr and read on November 24, 2026 (our English summary of French texts). The application to AI agents is ours, since the texts don't mention AI. Not tax or legal advice; ask your expert-comptable about your setup.
What are the sources?
- BOFiP: BOI-CF-IOR-60-40-20, format of the fichier des écritures comptables
- BOFiP: BOI-CF-IOR-60-40-10, presenting the accounts by handing over the FEC
- BOFiP: BOI-BIC-DECLA-30-10-20-40, computerized accounting (validation and closing)
- BOFiP: BOI-CF-DG-40-20, desk examinations and the fifteen-day FEC deadline
- Légifrance: Code général des impôts, article 1729 D
Related
- What Germany's GoBD require when software or an AI agent posts entries
- Catch backdated entries posted into a closed month
- Prove small business books weren't edited after the fact
- Make an AI agent's audit log append-only
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
