Six rules for AI-written code that survives handover

A tool of mine ran green for an hour before somebody read it.
The change was one property, read from the wrong level of the assembly. It compiled. Its tests passed, because the fixture I had written for the test carried the same mistake. It was already merged when I opened the diff to write the release note, and the line was wrong on sight. Revert, fix, merge again. Two hours, and the only thing that caught it was a person reading.
That is the argument for the six rules below. Code gets written faster than it used to, most of it by a model, and speed is not what a client is buying. What they buy is a tool they can still read a year after I am gone, and a drawing that agrees with the model it came from.
1. Every project lives in git
A zip file at the end of a job is not a handover. It is a snapshot with no past: nothing in it says why the title block changed in March, or which revision undid it.
Every project lives in one repository, with a commit after every issue rather than one commit at the end. The history is the documentation of change. When a revision is wrong, the diff names the line and the revert is one command. When somebody new takes over, git log answers the question they actually have, which is what changed and when, not what this button does.
repo per project · commits after every issue
2. Every AI-written line is reviewed before it is committed
A model writes plausible code. That is the strength and the danger together, because plausible is not correct. A study presented at the IEEE Symposium on Security and Privacy in 2022 asked an assistant for code in 89 security-relevant scenarios and found about 40 percent of the 1,689 programs it produced were vulnerable (Pearce et al., 2022). A build proves the code compiles. The tests prove what somebody thought to assert on the day, and on the day they were written the same wrong idea was in the writer's head.
So every line written with AI assistance is read before it is committed, line by line, by the person whose name is on the tool. Small commits are what make that possible: a 40-line diff gets read, a 4,000-line one gets skimmed. That is not a preference. Google's reviewer guide puts "reviewed more thoroughly" first among the reasons to keep a change small, and names the failure: with a large one, reviewer and author get frustrated until important points are missed or dropped.
The uncomfortable finding is next to it. A user study presented at CCS in 2023 had people solve tasks with and without an assistant: the assisted group wrote less secure code than the control group, and was more likely to believe its code was secure. That is why the rule is a line read and not a test result. The person who watched the model write it is the worst judge of whether it is right, and is still the one who signs.
One decision makes the reading cheap. The core of a tool never references Inventor. Filenames, properties, export plans and settings sit in plain code with tests around them, and the thin layer that touches the Inventor API does nothing but call into that core. It is also why rule 2 can be honest: the part that needs a human eye is the small one.
no commit without a human read
3. Every drawing is checked against its model before issue
The model is the only honest check on a drawing, and it is the one nobody runs when the week gets short. Read the sheet back against the model it came from: marks, sizes, grades, masses. The usual culprit is a dimension typed over the model value: Autodesk's own Edit Dimension reference describes that box as one that overwrites the calculated value. From that moment the drawing and the model disagree while both look finished. A drawing that disagrees with its model is a rework ticket the shop opens for you, with your name on the title block.
It is the same reason the four lines at the bottom of the sheet exist: they say what the model cannot, and they only work if somebody checked the model first.
checked set by set · no text-overridden dimensions
4. The standard is written down, not held in a head
A standard that lives in one person's head is not a standard, it is a habit. It survives until that person takes a holiday.
Title block fields, note lines, material names, numbering, the file set itself: written down, so your own team can keep issuing to the same standard after I have gone. That is more work than most offices expect, and it is what setting up a company standard actually takes.
handed over with the model and the templates
5. Nothing is deployed into a client environment unreviewed
The dangerous moment in a tool is not the commit. It is the install.
A batch export that runs over forty live drawings is one bad filename pattern away from a renamed release package. So the tool is tested on a copy, against a copy of the drawing set, before it touches the live Vault or the template folder. Staged, then switched. If a job cannot be staged, that is itself the finding, and it gets fixed before anything ships.
staged, then switched
6. Every handover ends with a walkthrough
The last rule is the cheapest and the one most often skipped. A recording of the model, the standard and the tool being used, plus written notes, takes an hour. It answers the question a document cannot answer: where the person who built it clicked.
The point is not politeness. A handover that ends with "email me if anything is unclear" makes me a dependency, and a dependency is not what a client bought either.
recording + written notes
What the rules cost
None of this is free. Six rules add a read, a check, a written standard and a recording to every job, and the raw output of a model is faster without any of them.
That is the trade, and it is worth naming. The work goes faster because I am not typing every line. It stays trustworthy because I still read every line. If you want to see what the checking looks like before a job rather than during it, what an Inventor automation audit actually looks like is the closest thing on this site. The line the rules belong to is automation.