Skip to content / Vai al contenuto

MODULE 06 · ENGINEERING ASSURANCE

The code that looked correct

An application may compile, display a polished interface and pass a sales demonstration, yet remain unfit for production. When generative models contribute code, the difference between 'it works on my machine' and 'we can release it' must be supported by evidence.

Enterprise clients do not purchase lines of code. They purchase operational continuity, data protection, maintainability, risk management and trust.

75 minutes · specialist module4 CASE STUDIES4 REVIEW DECISIONS

MANZO AI / GUIDED LEARNING

Learn, apply, verify

A guide to the existing course: explicit goals, navigable lessons, professional practice and formative assessment.

MANZO AILEARNINGPATH / 06

By the end, you can

  • Identify invented or unsupported AI-generated code
  • Apply checks before delivery to a client
  • Justify release decisions with traceable evidence
06Chapter Original learning text and answer logic preservedCore learning path

Study plan

06
  1. 01A demo is not a delivery
    Outcome and evidence

    Observable skill Identify a defect that a convincing demo does not make safe for delivery

    Scenarios are in the practice section; quiz questions are presented in sequence

  2. 02What a coding hallucination actually is
    Outcome and evidence

    Observable skill Recognize an invented SDK method and identify the technical sources needed to verify it

    Scenarios are in the practice section; quiz questions are presented in sequence

  3. 03From a software defect to commercial risk
    Outcome and evidence

    Observable skill Evaluate the risk of using an unverified AI-suggested dependency and its consequences

    Scenarios are in the practice section; quiz questions are presented in sequence

  4. 04Professional accountability
    Outcome and evidence

    Observable skill Justify a professional decision without accepting unsupported claims that tests passed

    Scenarios are in the practice section; quiz questions are presented in sequence

  5. 05Verifying before production
    Outcome and evidence

    Observable skill Define the minimum evidence required by a release quality gate

    Scenarios are in the practice section; quiz questions are presented in sequence

  6. 06The business value of verification
    Outcome and evidence

    Observable skill Explain the operational and business consequences of releasing unverified software

    Scenarios are in the practice section; quiz questions are presented in sequence

    This evidence assesses the release decision but does not directly measure the financial cost of verification

Formative assessment, not an accredited certificate · The original quiz is unchanged; this guide does not change questions or scores.

A demo is not a delivery

Software can look finished while lacking the conditions needed to entrust it with real operations.

In professional development, quality is not the number of features, visual polish or the speed at which a developer replies to a client. A screen can be excellent while the backend mishandles permissions; a function can work for a happy-path example and fail on unexpected input; a payment routine can look fine in a presentation and lose consistency when two requests arrive simultaneously.

Generative assistance can accelerate the production of components and possible solutions. It does not automatically shorten the work required to understand dependencies, validate business rules, test behavior and show that a change has not broken the surrounding system. Code production speed and release quality are different measures.

The risk increases when a professional substitutes trust in the output's presentation for independent review. Well-commented code is not a code review. A 'tests passed' statement written by the model is not a CI run. An example resembling official documentation does not prove compatibility with the library version actually installed.

What a coding hallucination actually is

Not every software defect is a hallucination; some hallucinations, however, produce serious defects.

A model may invent a method name, attribute unsupported capabilities to a library or recommend a plausible but nonexistent dependency. It may generate syntactically consistent settings that the actual framework version does not recognize. It might even describe tests as executed when no commands were run. The difference between plausible prose and technical reality is directly checkable here.

Other failures are different in kind. Incomplete validation, missing authorization, race conditions and inefficient algorithms can all be engineering mistakes even when nothing has been fabricated. They need no hallucination label to be serious. A precise diagnosis separates invented facts, faulty implementation and unsupported assurances.

Research by Spracklen and colleagues, presented at USENIX Security 2025, examined 576,000 code samples from 16 models and identified many nonexistent package names. Its reported rates belong to that experiment; they should not be mistaken for universal probabilities for today's projects. The result nevertheless illustrates why dependency suggestions require independent verification.

Fabricated APIs or methods

Check signature, version and behavior against documentation and the actually installed library.

Imaginary packages

Check package name, publisher, origin, integrity and lockfile before installation; consider slopsquatting.

Invented configuration fields

Validate against real schemas, tools and tests in the intended runtime.

Tests 'run' only in text

Require commands, logs and artifacts produced by CI, not the assistant's assertion.

Unsubstantiated security assurances

Do not equate a lack of warnings with a security assessment or compliance review.

From a software defect to commercial risk

Risk materializes when a weakness passes the controls and reaches users or customer operations.

Consider a vendor delivering a multi-company invoicing portal. An AI-generated endpoint requires users to sign in, but never checks whether the requested invoice belongs to the user's company. The demo worked. The problem appears when a signed-in user requests an invoice associated with another tenant.

The defect could expose data, require emergency remediation, delay releases and trigger technical or legal investigations. The customer relationship now hinges on evidence: which checks were run, who approved the change, which negative test could have detected the issue, and what shows that the fix has not introduced new defects?

An enterprise customer might request contractual remedies, pause future work or decline to renew, but none of these consequences is automatic. Outcomes depend on the incident, applicable duties, contract terms and the supplier's response. This course does not present hypothetical outcomes as established losses.

A vulnerability concealed by a successful demo

Illustrative JavaScript pseudocode. The user is authenticated, but the invoice is retrieved by ID alone. This is an authorization flaw, not necessarily a hallucination.

INPUT · UNVERIFIED
app.get('/api/invoices/:id', requireAuth, async (req, res) => {
  const invoice = await db.invoice.findUnique({
    where: { id: req.params.id }
  });
  res.json(invoice);
});
REVIEW · PARTIAL FIX
const invoice = await db.invoice.findFirst({
  where: {
    id: req.params.id,
    tenantId: req.auth.tenantId
  }
});
if (!invoice) return res.sendStatus(404);
Tenant filtering is only one part of remediation. Authorization policy, role checks, identity validity, missing-record handling, audit logging and cross-tenant tests also need attention.

The chain of impact

Distinguishing hallucinations from vulnerabilities

Risk materializes when a weakness passes the controls and reaches users or customer operations.

01Generation

Plausible code, not yet examined

02Omission

No tenant, dependency or regression checks

03Release

The defect reaches real systems and users

04Incident

Possible downtime or data exposure

05Consequences

Remediation, disputes and rebuilding trust

Professional accountability

Using a generator does not transfer the duty of verification to the generator.

Clients assess a solution against agreed requirements, service levels, reliability and contractual commitments. They need not know how many lines were typed manually, suggested by an assistant or produced by an agent. The delivery team must be able to explain the architecture, identify dependency provenance, reproduce tests and substantiate its security claims.

Poor professional practice is not the use of AI. It can be shipping unexecuted code, trusting an unknown package without due diligence, closing a ticket without regression tests or advertising a system as 'certified' without an appropriate assessment. Whether an actual loss creates legal liability depends on relevant law and contract terms.

Good engineers also know when to stop a release. Saying 'we do not yet have sufficient evidence' can be more professional than signing off on a system no one can account for. Quality is built through an observable chain of decisions, tests and occasionally justified refusals.

Verifying before production

A sequence of quality gates turns approval into a documented judgement.

Professional verification starts with the requirements. The code must solve the intended problem, not the model's imagined version of it. Next come reproducible builds, dependency checking, happy- and unhappy-path tests, authorization reviews, automated analysis and a human review of meaningful diffs.

In enterprise environments, teams must also establish how the software behaves under failure: timeouts, duplicate requests, partial transactions, network interruptions, concurrency and rollback. The acceptance criterion is not 'nothing went wrong during the demo', but 'sufficient evidence exists for the expected operating conditions'.

Every gate should leave an artifact: CI logs, test reports, dependency scans, review records, known limitations, authorized approval and a recovery plan. These checks cannot eliminate every vulnerability, but make the process inspectable and resist unsupported confidence.

Quality gate

Release accountability remains human. This learning checklist translates GitHub and NIST practices into a MANZO AI teaching tool; it does not constitute a security certification. [F9] [F11]

The business value of verification

Review has an identifiable cost; skipping it can also have costs that are harder to predict.

Risk analysis distinguishes the certain cost of controls from possible incident impacts. Inputs may include downtime, failed transactions, emergency staff, forensic work, recovery, mandatory notifications, contractual remedies and non-renewal risk. Each number needs an identified source or an explicitly stated assumption.

Purely fictional example: a critical service is unavailable for three hours and the business estimates the operational impact at €12,000 per hour. The modeled result is €36,000, excluding other potential costs. This is not an observed incident or an industry benchmark: it illustrates how to expose assumptions instead of inventing damages.

Large contracts do not excuse improvisation, just as using AI does not make a developer unprofessional. The competitive distinction is evidence: clients can verify that software was examined, tested, documented and that residual risks were disclosed. Trust begins well before the next contract.

Case lab

Specialist assessment

Four decisions for a technical lead. This is not a syntax test: evaluate the quality of the evidence.

SCENARIO 01 · API & SDK

A method invented for an SDK

An assistant writes 'paymentClient.reverseSettlement(id)', claiming it exists in SDK v3.2. Official docs and the installed types contain no such method.

Classify the issue. What evidence is needed before adopting an alternative method for payment refunds?

Write at least 30 characters to unlock the model review.
SCENARIO 02 · Security & multitenancy

Authentication is not authorization

A multi-company portal has a login-protected route that fetches invoices using only the ID in the URL. A signed-in user can guess an ID belonging to another company.

What is the concrete defect, and which negative test must block release?

Write at least 30 characters to unlock the model review.
SCENARIO 03 · Supply chain

The package that should not exist

AI recommends installing 'fictional-corporate-auth-guard' for enterprise SSO. The name is fictitious in this exercise and has not been checked in any registry.

What would you inspect before installing an unknown dependency, and how does slopsquatting create risk?

Write at least 30 characters to unlock the model review.
SCENARIO 04 · Release governance

'All tests passed' — without a log

The model declares: 'Build successful, 100% of tests passed, production-ready.' No CI pipeline was run, and there is no log, commit ID or rollback plan. The customer operates a critical business service.

Would you approve release? Identify the minimum artifacts and communicate the decision to the customer.

Write at least 30 characters to unlock the model review.

Specialist assessment

Specialist assessment

Four decisions for a technical lead. This is not a syntax test: evaluate the quality of the evidence.

1 / 4

References

References

The references document risks and control practices. Cases and financial figures are learning simulations, not incidents attributed to real companies.

The references document risks and control practices. Cases and financial figures are learning simulations, not incidents attributed to real companies.