Knowing how to use AI is becoming a common engineering skill. Knowing where not to trust it may become a far more valuable one.
An AI assistant can be right about a kernel crash and wrong about a device-tree node, with the same confidence in both answers. No public benchmark can tell you how reliable it is on your hardware, your kernel tree and your BSP. Three verification probes and a reliability notebook let you measure that yourself, and decide which tasks to delegate, which to verify and which to keep under your own control.
An AI assistant can correctly diagnose a complicated kernel crash and, minutes later, generate an invalid device-tree node for a relatively simple peripheral. Both answers arrive with the same clarity, structure and confidence. Neither carries a reliable indication of whether it is correct.
For an embedded Linux engineer, this presents a problem that goes beyond hallucination. It is a problem of trust calibration: knowing how much confidence to place in AI-generated output for a particular engineering task. And unlike familiarity with a programming language, a kernel subsystem or a hardware platform, that judgement cannot necessarily be transferred from one task to another.
1. The uneven boundary of AI competence
Imagine that you are bringing up a new board. You paste a kernel oops into an AI assistant. It correctly interprets the stack trace, identifies a possible invalid pointer dereference and directs you towards the relevant driver code.
An hour later, you ask the same assistant to generate a device-tree node for a temperature sensor. The response is technically convincing, neatly formatted and accompanied by a detailed explanation. Except that one of the properties does not exist in the sensor’s device-tree binding.
The first response earned your trust. The second received the same trust without earning it. This is one of the less obvious challenges of working with AI in engineering.
When a colleague demonstrates expertise in a particular subsystem, we reasonably assume some degree of competence in related areas. Human expertise, although imperfect, is often built on interconnected knowledge, experience and mental models.
AI competence does not necessarily follow that pattern. A model may perform exceptionally well at analysing a generic kernel failure while struggling with a vendor-specific clock configuration, an obscure hardware erratum or a device-tree binding introduced after its training. Its reliability can change abruptly between seemingly neighbouring tasks.
Competence demonstrated in one engineering task is not evidence of competence in the next.
2. What existing research tells us
Research into AI-assisted software engineering is beginning to reveal several important limitations.
Functional success is not necessarily engineering correctness
In one recent evaluation involving real Linux kernel crashes, AI agents prevented approximately three-quarters of the crashes from reproducing. However, only around one-fifth of the generated patches closely matched the fixes accepted by kernel developers.
A different patch is not necessarily an incorrect patch. But the distinction matters.
A crash disappearing does not establish that its underlying cause has been addressed. A patch might suppress a symptom, change execution timing, introduce a resource leak or leave a concurrency problem unresolved.
The evaluation also reported better performance on bugs fixed before the models’ training cut-off, suggesting that some apparent problem-solving ability could be influenced by prior exposure.
For embedded Linux engineers, this distinction should feel familiar:
- A successful boot does not establish that the board configuration is correct.
- A working driver does not establish that its concurrency model is safe.
- A passing test does not establish the absence of a race condition.
- A successful build does not establish runtime correctness.
- A disappearing crash does not establish that the root cause has been eliminated.
AI does not change these principles. It makes them easier to overlook.
Reliability varies even within specialised domains
Evaluations involving small embedded firmware tasks have shown considerable variation across models. Some models completed most of the tasks successfully, while others failed repeatedly or generated references to nonexistent libraries. Performance on broad coding benchmarks, therefore, cannot automatically be translated into reliability on a specific embedded platform.
An engineer working with a vendor-maintained Linux kernel, a custom BSP and undocumented hardware behaviour faces a very different problem from the one represented by a general-purpose coding benchmark.
Engineers do not always recognise incorrect output
A preliminary, non-peer-reviewed experiment involving programmers found that participants identified incorrect AI-generated checks only around half the time, despite expressing similar confidence in their judgements.
This exposes a second reliability problem. We need to evaluate not only whether AI produces correct answers, but also whether engineers can recognise when those answers are wrong.
Our earlier article on problem framing explores how convincing solutions can prematurely narrow an engineer’s investigation.
There are two reliability problems: the AI’s ability to produce a correct answer and the engineer’s ability to recognise an incorrect one.
3. Why embedded Linux makes this particularly difficult
Embedded Linux development is rarely an isolated programming exercise. Correctness depends on interactions across several layers:
- Hardware architecture and silicon revisions
- SoC technical reference manuals and errata
- Bootloader configuration
- Kernel versions and vendor-specific modifications
- Device-tree bindings
- Clock, reset, interrupt and power-management subsystems
- Driver implementation
- Board-level electrical characteristics
- Runtime behaviour under real workloads
An answer can be correct at one layer and wrong in the context of another. Consider the following examples.
| AI-generated output | What may be overlooked |
|---|---|
| Device-tree configuration | Binding requirements, pin multiplexing or board-specific wiring |
| DMA implementation | Cache coherency, mapping lifetime or DMA address limitations |
| Interrupt handler | Execution context, locking or interrupt acknowledgement |
| Kernel crash analysis | The original corruption occurring elsewhere |
| Yocto recipe | Layer compatibility, release-specific syntax or dependency behaviour |
| Power-management implementation | Hardware sequencing and dependencies between devices |
| Driver patch | Lifetime management, error paths and concurrency |
These failures are not always syntactic. Many of them survive compilation, initial testing and even code review. That is what makes AI reliability in embedded systems particularly important.
The most dangerous output is not necessarily the output that fails immediately. It is the output that appears to work.
4. Why our trust gradually exceeds the evidence
Trust in an AI assistant is rarely established through deliberate measurement. It develops through repeated interaction.
The assistant explains a concept correctly. It generates a useful script. It resolves a compilation error. It helps diagnose a kernel crash. Over time, engineers naturally begin to reduce the amount of verification they perform.
Three mechanisms contribute to this behaviour.
Confidence of presentation. AI assistants can express incorrect information in the same authoritative language as correct information. Research suggests that communicating uncertainty can help users avoid excessive reliance on incorrect answers.
Automation bias. People have a tendency to favour automated recommendations, sometimes even when conflicting evidence is available. Repeated success can reinforce that tendency.
Transfer of trust. We extend trust earned in one task to other tasks without independently establishing competence. This is particularly problematic when the assistant’s capabilities are uneven.
The third mechanism is our interpretation of the engineering experience rather than a separately established research finding. Together, these mechanisms can create a gradual expansion of trust without a corresponding expansion of demonstrated reliability.
The engineer begins by trusting AI to explain code. Then to generate code. Then to diagnose failures. Then to recommend architectural decisions. Eventually, the scope of delegation may be determined by familiarity with the assistant rather than evidence of its competence.
The assistant’s confidence is not an engineering measurement. Neither is your comfort with using it.
5. Reliability changes when the model changes
There is another complication: AI capabilities are not static.
Research has documented significant changes in the behaviour of the same named model over relatively short periods. Other work suggests that a model update can improve aggregate performance while making established user judgement less effective.
A newer model may be better overall without being better at every task.
For engineers, this means that accumulated experience with an AI assistant has a version dependency.
The following is a possible progression for an engineer who does not periodically reassess the assistant. It is an illustrative projection, not a measured longitudinal result.
| Stage | Engineer’s trust | Potential risk |
|---|---|---|
| Initial adoption | Cautious and task-specific | Most responses are independently verified |
| Familiarity | Increasing through repeated success | Verification becomes selective |
| Routine dependence | Extended to neighbouring tasks | Plausible errors go unnoticed |
| Model update | Existing trust remains | Previously understood failure boundaries change |
| Long-term reliance | Based on accumulated experience | Trust no longer reflects current capabilities |
Our article on the evolution of AI in Linux kernel work provides additional context for the speed at which these capabilities are changing.
An engineering team would not normally upgrade a compiler, kernel or critical library without considering regression testing. Why should a tool increasingly involved in engineering decisions be treated differently?
6. Build your own AI reliability map
There is no universal benchmark that can tell you exactly how reliable an AI assistant will be on your hardware, your kernel tree, your BSP and your engineering workflow.
Instead of asking whether AI is reliable, ask a more useful set of questions:
- Which engineering tasks can I delegate?
- Which tasks require independent verification?
- Which tasks should remain under direct engineering control?
- Am I capable of recognising an incorrect answer in this area?
The answers should come from observed performance rather than impressions. We propose a lightweight methodology consisting of three verification probes and a reliability notebook. This is a practical engineering framework, not a scientifically validated assessment method.
Probe 1: Consistency
Does the answer remain consistent when the question is asked differently?
Open a fresh session and describe the same engineering problem using different wording. For example, ask an assistant to generate the device-tree configuration for a temperature sensor. Then independently ask it to identify the required properties for integrating that sensor into the same kernel version.
Compare the technical claims. Look for changes in:
- Property names
- API selection
- Configuration values
- Hardware assumptions
- Explanations of subsystem behaviour
Peer-reviewed research on large language models suggests that variation in the meaning of repeated model responses can be an indicator of unreliable generation. Consistency, however, is not proof of correctness. A model can repeat the same incorrect answer indefinitely.
Treat inconsistency as a warning signal, not consistency as validation.
Probe 2: Traceability
Can the answer be independently established from authoritative engineering evidence?
Ask the assistant to identify the source supporting each significant technical claim.
For embedded Linux development, that evidence might include:
- Kernel source code
- Device-tree binding schemas
- Hardware datasheets
- SoC technical reference manuals
- Silicon errata
- Upstream commits
- Official subsystem documentation
- Vendor BSP source trees
Do not stop at receiving a reference. Open it and verify the claim against the version relevant to your project.
For device-tree development, for example, inspect the relevant YAML binding under:
Documentation/devicetree/bindings/
Then validate the configuration using:
make dtbs_check
Schema validation can detect many invalid properties and structural errors. It cannot establish that the configuration accurately represents the physical board.
Likewise, when an assistant recommends a kernel API, check its implementation, calling context, lifetime requirements and version-specific behaviour.
The objective is not to make AI provide more convincing explanations. It is to establish a chain of evidence that exists independently of the assistant.
Probe 3: Fault detection
Can the assistant recognise a defect whose existence you already know?
Introduce a deliberate error into an engineering example and ask the assistant to review or diagnose it.
Suitable examples include:
- An invalid device-tree property
- A sleeping operation in an atomic context
- An incorrect DMA mapping lifetime
- A missing reference-count operation
- A potential use-after-free
- Incorrect error handling during driver initialisation
- A missing dependency in a Yocto recipe
Alternatively, use an internal regression whose root cause has already been established. For a stronger test, create new faults rather than relying exclusively on publicly documented bugs that may have appeared in the model’s training data.
Do not tell the assistant what kind of defect to look for. Observe whether it identifies the actual problem, explains the failure mechanism, proposes a defensible correction and avoids inventing unrelated problems.
This probe helps distinguish genuine diagnostic capability from the ability to produce convincing technical commentary.
Use only assistants approved for the project, particularly when working with proprietary source code, logs or customer hardware.
7. Maintain a reliability notebook
Before verifying an AI-generated answer, ask yourself:
Would I have accepted this answer without further investigation?
Record your initial judgement before you know the outcome. Then document what the verification reveals.
A simple record might look like this:
| Field | Observation |
|---|---|
| Date | 20 November 2026 |
| Model | Model name and version |
| Platform | Target SoC and kernel version |
| Task | Temperature sensor device-tree configuration |
| Verification | Binding schema and dtbs_check |
| Initial judgement | Would have accepted |
| Actual outcome | Invalid property |
| Classification | Near miss |
A near miss occurs when you would have accepted an answer that independent verification subsequently reveals to be incorrect. Near misses are particularly valuable because they expose a failure in both the assistant’s reliability and your judgement of its reliability.
Record successful verifications as well. Without them, a notebook measures the frequency of discovered failures rather than the proportion of incorrect answers.
Over time, maintain a task-specific summary.
For illustration, consider the following hypothetical results:
| Engineering task | Answers verified | Correct | Incorrect | Near misses |
|---|---|---|---|---|
| Kernel oops analysis | 20 | 18 | 2 | 0 |
| Device-tree configuration | 20 | 12 | 8 | 5 |
| Yocto recipe generation | 20 | 16 | 4 | 2 |
| DMA implementation | 20 | 11 | 9 | 6 |
| Kernel API explanation | 20 | 19 | 1 | 0 |
These are illustrative numbers, not benchmark results.
From this notebook, two useful measurements emerge.
Observed correctness rate. The percentage of verified answers that satisfy your independently established correctness criteria.
Near-miss rate. The percentage of verified answers that were incorrect but that you would otherwise have accepted.
You can additionally measure how many deliberately planted defects the assistant successfully identifies. These measurements tell you different things.
Correctness measures the assistant’s observed performance. Near misses measure the dangerous gap between its performance and your trust.
Neither should be interpreted as a guarantee of future correctness, particularly when the sample size is small or the engineering tasks change.
8. Turn measurements into delegation decisions
The purpose of the reliability notebook is not to assign an overall score to an AI assistant. It is to make better engineering decisions.
A useful starting point is to classify tasks into three categories.
| Delegation level | Criteria | Engineering approach |
|---|---|---|
| Assisted delegation | Repeatedly verified, low-consequence tasks | AI generates; engineer performs proportionate review |
| Controlled assistance | Variable reliability or significant context dependency | Independently verify consequential claims and changes |
| Engineer-led | High-consequence tasks, poor reliability or limited ability to detect errors | Engineer owns the reasoning; AI supports research and exploration |
An apparently high correctness rate should never override the consequences of a failure.
Generating a diagnostic shell script and modifying a safety-critical driver’s concurrency model are fundamentally different delegation decisions, even if the assistant performs equally well on a small set of tests.
When the model changes, replay your planted-fault examples. When the platform changes, reassess platform-specific tasks. When you encounter a near miss, add it to your regression collection.
Our article on building an engineering failure portfolio describes how such experiences can become a reusable source of professional knowledge.
9. The engineering skill that becomes more valuable
Much of the discussion around AI focuses on productivity. How quickly can an engineer generate code? How many debugging steps can be automated? How much development time can be saved? These are useful questions, but they are incomplete.
As generating technical output becomes cheaper, establishing its correctness becomes increasingly important.
An engineer who can generate a device driver in minutes but cannot evaluate its execution context, resource lifetime, locking requirements or hardware assumptions has acquired speed without acquiring engineering control.
Our earlier article on what got cheap and what got scarce in engineering explores this shift.
The emerging professional advantage may not belong to engineers who use AI the most. It may belong to engineers who know:
- Where AI accelerates their work.
- Where it introduces unacceptable uncertainty.
- How to independently establish correctness.
- When to challenge an apparently convincing answer.
- When to stop delegating and start investigating.
This also connects directly with the question of whether AI is weakening engineers’ critical thinking.
Critical thinking is not demonstrated by rejecting AI-generated answers. It is demonstrated by knowing what evidence would justify accepting them.
Start with your next AI-generated answer
The next time an AI assistant produces an answer you are about to accept, ask three questions:
- Is the answer consistent?
- Is it independently verifiable?
- Would I recognise it if it were wrong?
This week, introduce one deliberate defect and see whether your assistant detects it. Over the next month, build a small record of verified answers, failures and near misses.
You do not need a sophisticated benchmarking infrastructure. You need a disciplined way of observing where the assistant helps, where it fails and where your own judgement needs improvement.
AI capabilities will continue to evolve. Models will improve. Their failure boundaries will move. Your ability to independently establish engineering correctness must evolve with them.
The objective is not to trust AI more or to trust it less. It is to make trust proportional to evidence.
— Raghu Bharadwaj, Techveda




