Hand-check a hundred files a model wrote against a third-party library and 84% of them carry at least one library fault — a path that moved, an import that was never written, a package that does not exist, a call removed two releases ago. The fix tested here adds no cleverness: name the libraries the task needs, fetch the official documentation, pass the verified import lines into generation, compile, check the imports back against the docs, and loop. Across five models and 300 tasks drawn from fast-moving agent frameworks it removed 38.1% to 54.6% of the library faults, and the documentation fetch was the stage that mattered most.