Direct Answer: Treat AI Code as an Untrusted Engineering Artifact

Structural AI code governance is the system of controls used to decide what AI-generated software may propose, execute, modify, or influence within structural engineering. The correct default is not to ban AI code, but to treat every generated output as untrusted until it has passed checks appropriate to its consequences. A prompt, code-review comment, or engineer’s visual inspection is not governance by itself; governance requires explicit decision rights, traceable evidence, enforced technical boundaries, and accountable human ownership. This distinction is especially important where software can affect calculations, geometry, loads, material properties, reinforcement details, connections, construction sequences, or compliance claims. A useful governance model can be built around five controls: constrained generation, deterministic verification, restricted execution, independent review, and retained audit records. The model should fail closed when evidence is missing or a validation service is unavailable. Human approval remains necessary, but IBM’s central argument—that “human in the loop” alone is not a governance strategy—applies directly to engineering software: an inattentive reviewer can approve defective output, and a human cannot practically supervise thousands of machine-generated changes. The purpose is therefore not to portray AI as either infallible or useless, but to prevent unsupported output from acquiring the authority of production-ready engineering information.

Also worth reading: How Should Engineers Design AI-Assisted Structural Monitoring Systems in 2026? · How Do Structural Engineers Calculate Grout Yield for Post-Tensioning and Sleeve Filling? · What Are Agentic AI Structural Safety Protocols and How Should Engineers Use Them in 2026?

Why Traditional Code Review Is Not Enough for Structural AI

Structural engineering software combines ordinary programming risks with physical-consequence risks. A syntax error may stop a program, but a plausible unit error, stale geometry, incorrect boundary condition, or bad material value can produce output that looks professional and is numerically wrong. Generative systems can also create code that passes superficial checks while violating project conventions, design assumptions, jurisdictional requirements, or an engineer’s explicit instructions. The problem grows with volume: if AI agents generate 100 changes per hour, reviewing every line manually becomes slow, selective, and inconsistent. Conventional quality assurance was designed around known releases and identifiable changes; autonomous and agentic systems can produce many more candidates than a review team can inspect before action. Fail-closed verification substrates such as TLHO, runtime authorization systems such as Guard, and governed-state configurations such as Cruxible represent different attempts to move assurance earlier and closer to execution. These categories are not interchangeable, however. A runtime authorization layer can stop an unauthorized action but cannot prove that an authorized structural calculation is correct, while a verification substrate can reject invalid states but still depends on correct requirements, models, and policy inputs. Governance must cover the full path from model output to physical consequence.

A Practical Control Model for Engineering Code

The first control is constrained generation. AI systems should receive structured inputs describing the analysis model, design standard, software version, coordinate system, units, material grades, load combinations, and permitted file or API scope. Generated code should target an approved repository and use a restricted library surface rather than allowing arbitrary network access, credential use, filesystem access, or execution on production systems. The second control is deterministic verification. This includes compilation, static analysis, unit and integration tests, schema validation, numerical convergence checks, independent result comparison, and domain-specific rules. For critical paths, compare AI output against a trusted baseline implementation or independently calculated reference result; agreement within a stated numerical tolerance is evidence, not automatic proof. The third control is execution control: sandbox the code, apply least privilege, deny production data access by default, and require a separate deployment gate. The fourth is human accountability, with a named engineer responsible for assumptions, review, and release. The fifth is traceability, preserving prompts, model and tool versions, source commits, generated diffs, test results, approvals, and timestamps. A practical threshold is to require enhanced review for any AI-generated change that alters load paths, section properties, material properties, safety factors, seismic parameters, foundation assumptions, or code intended for regulated submissions.

Verification, Authorization, and Governed State Compared

Organizations often confuse three governance layers. Verification asks whether an artifact is internally valid and satisfies declared rules. Authorization asks whether a principal may perform a particular action in context. Governed state describes the approved facts and configurations that agents and tools may use. A robust structural AI program needs all three, but the available tools address different parts of the problem. Choosing one category and calling it a complete solution would leave a material control gap.

FeatureVerification substrateRuntime authorization layerGoverned-state configurationHuman engineering review
Primary questionIs this artifact valid?May this agent act now?Which state is approved?Is the engineering decision acceptable?
Main strengthDeterministic, repeatable checksBlocks unauthorized or out-of-scope actionsMakes assumptions explicit and versionedInterprets intent, uncertainty, and responsibility
Typical failureBad or incomplete requirements encode a wrong systemCorrect permission still permits an unsafe computationApproved state becomes stale or was wrongly configuredReviewer misses an error or defers mechanically
Structural exampleChecks equilibrium residuals and toleranceAllows calculation but blocks database writesDefines approved loads, materials, and geometryConfirms design intent and physical adequacy
Best deployment stagePull request and build pipelineAgent tool call and production runtimeProject, model, and release setupHigh-risk changes and final acceptance
Cost should be included in the comparison. Verification may require engineering time to encode rules and maintain reference models, while authorization software adds identity, policy, logging, and infrastructure work. Governed-state systems reduce ambiguity but introduce configuration and synchronization overhead. Human review is the most broadly available control, yet it scales poorly and does not remove the need for technical automation. A balanced program normally uses automated checks for volume and humans for exceptions, assumptions, and consequential decisions. None of the four should be presented as a substitute for professional engineering judgment or applicable legal responsibility.

Implementation Steps That Scale with Project Risk

Begin with an inventory of AI-assisted workflows rather than purchasing a platform. Record each tool, model, user role, data source, action, and downstream effect, then classify systems by consequence. A low-risk use might produce draft comments that never enter calculations; a high-risk use might alter reinforcement geometry, issue commands to analysis software, or update a model used for construction. Set a measurable policy before deployment: for example, prohibit direct production writes, require at least two independent test paths for critical calculations, and retain 100% traceability for approved AI-assisted changes. Establish a golden set of historical models and known-answer tests that include ordinary beams, torsion, seismic cases, instability, nonlinear response, and deliberately corrupted inputs. Measure false acceptance, false rejection, review time, escaped defects, and override frequency rather than merely counting code generated. A 30-day pilot can test 10 to 20 representative workflows, but it should not authorize self-modifying production behavior. A 90-day period is more realistic for integrating identity, CI checks, audit storage, model access, and project governance. The acceptance threshold must be based on risk and empirical performance, not an arbitrary claim that the model is “90% accurate”; percentages are meaningless unless the task, denominator, and failure cost are defined.

Common Mistakes and Weak Governance Assumptions

The most common mistake is equating a green build with engineering validity. Compilation and unit tests can pass while the code encodes the wrong load, geometry, code clause, or interpretation of a design. Another mistake is allowing an agent broad shell or cloud privileges because development is convenient; the same permission can become dangerous when tools chain together. Teams also treat model benchmarks as site certification, although general coding benchmarks do not measure adequacy under a project’s structural model. Other errors include relying on one reviewer as a “human in the loop,” failing to version prompts and requirements, and recording only the final output rather than the assumptions that produced it. Review fatigue is a measurable design defect: if automation creates more work than it removes, the process will be bypassed. Organizations should also avoid fail-open behavior, where a missing policy service automatically permits an action. That may improve uptime, but in safety-relevant workflows uncertainty should produce denial or quarantine, followed by a deliberate resolution process. Finally, open-source use should not be confused with open governance. A repository can publish source code while still depending on opaque hosted models, undefined training data, unreviewed dependencies, or a maintainer without authority to approve engineering use.

When to Act and What It May Cost

Act before AI-generated code is connected to production structural models, proprietary project data, fabrication workflows, or autonomous tool execution. The trigger is not the sophistication of the model; it is the transition from drafting to consequential action. Immediate controls are warranted when an agent can write files, query a BIM model, call analysis software, change parameters, or influence downstream design. Less urgent environments can begin with offline generation, synthetic data, and read-only review, provided outputs remain clearly marked as drafts. For a small team, initial governance may cost 80 to 200 engineering hours to classify workflows, create sandbox policies, build test cases, and document escalation paths, plus recurring review and infrastructure costs. Enterprise deployment can cost substantially more because of identity integration, audit retention, model evaluation, security controls, and vendor procurement. Commercial runtime and governance products are not priced uniformly; prices may be per user, agent action, workload, or enterprise contract, and the research context does not establish a defensible universal price. Open-core and open-source options may reduce license cost but do not eliminate implementation, support, or liability costs. Procurement should therefore evaluate total cost over a 12- to 24-month period, including failed reviews, incident response, lock-in, and the cost of verifying vendor claims.

The Recommended Governance Standard

By September 2026, structural AI code governance should be treated as an engineering assurance discipline rather than an AI policy statement. The minimum defensible standard is: every AI-generated artifact has an owner; every permitted action has an authorization decision; every critical artifact has deterministic and domain-specific checks; every exception is visible; and every production change has a reproducible audit trail. The standard should distinguish informational drafts from engineering records and distinguish code that generates results from code that decides what results mean. It should also account for the wider legitimacy problem: the UNU discussion of open-source AI and IBM’s warning about nominal human oversight show that technical control and institutional accountability must develop together. Context as Code and governed configuration approaches help encode assumptions, but context cannot substitute for competent interpretation. In practice, the strongest structure is a controlled pipeline in which an AI proposes, automated systems test, policy gates authorize, and qualified engineers accept responsibility. This model neither assumes that generative AI will transform structural engineering nor dismisses its potential; it sets a condition under which experimentation can continue without confusing fluent output with trustworthy engineering.