CelinQ Insights · No. 80

From Prompt to Production Model: A Complete AI + CelinQ Workflow for Sparx Enterprise Architect

Following one request from a plain-English prompt through validation, human approval, synchronisation and audit shows what a governed AI modelling workflow actually looks like.

A NILUS perspective on collaborative modelling for Sparx Enterprise Architect

Most discussions of AI and modelling stay at the level of the impressive moment: someone types a sentence, and a diagram appears. That moment is real, and it is worth having, but it is also the smallest part of the story, and treating it as the whole story is how organisations end up disappointed by AI modelling tools six months after the demo. The interesting question was never "can AI produce something that looks like an architecture model." It is what happens in the twenty steps between that first sentence and a model an architecture review board would actually sign off on, synchronised to every architect's local Enterprise Architect repository, with a complete record of who approved what and why. This article follows one request through that entire path, because the path is the product, not the sentence that started it.

The request, and what it is not

An architect, mid-workshop, needs to sketch a proposed integration pattern quickly enough to keep a room of stakeholders engaged rather than watching someone click through package trees. They type into CelinQ: "Add a new microservice called Claims Intake that receives requests from the existing Customer Portal application, validates them, and forwards accepted claims to the existing Claims Processing system. Show it on a new component diagram." It is worth being precise about what this sentence is, because the precision matters for everything that follows: it is a request for a proposal, not an instruction to modify the repository. Nothing about the model changes the moment this sentence is submitted, and nothing will change until several more steps have happened, each of which is designed to catch exactly the kind of mistake a fast, casual prompt is prone to making.

Step one: model context retrieval, not a blank page

Before anything is proposed, CelinQ retrieves the relevant slice of the existing model — the Customer Portal and Claims Processing elements the prompt names, their current types and stereotypes, the package they live in, and their existing relationships — because a proposal generated without that context would be guessing at identifiers it does not actually have. This retrieval is deterministic and scoped: it is a lookup against the real, current canonical workspace, not a general question answered from an AI's own background knowledge about what a claims system might typically look like. If "Customer Portal" does not exist in the model under that exact name, or exists twice in different packages, that ambiguity surfaces here, before a single new element is proposed, rather than resulting in a shiny new component connected to the wrong thing or to nothing at all.

Step two: a semantic change set, not a document

What comes back from the AI layer is not a paragraph of prose or a finished diagram image. It is a structured, semantic change set: create one new element, type Application Component, name Claims Intake, in a specified package; create two new connectors, one from Customer Portal to Claims Intake, one from Claims Intake to Claims Processing, each with a proposed relationship type; create one new diagram containing the three elements and two connectors, with a proposed initial layout. Every item in that change set names a concrete model operation — create, not "something claims-related appears" — and every reference to an existing element uses that element's real, stable identity rather than a name the AI is trusting itself to spell correctly a second time. This is the structural discipline that makes the rest of the pipeline possible: because the proposal is a list of typed operations rather than free text, every one of those operations can be independently checked before anything is applied.

Step three: deterministic validation, the part with no AI in it at all

The proposed change set is checked against the same rules that would apply to a change typed by hand inside Enterprise Architect, and this validation step involves no AI whatsoever — it is exactly the deterministic engine used everywhere else in CelinQ. Do the proposed relationship types make sense for the element types on each end. Does the target package exist and does the requesting user have write access to it. Are there naming collisions with existing elements. If the model has ArchiMate or UML profile constraints active, do the proposed relationships respect them, the same viewpoint-aware checking CelinQ applies when generating ArchiMate models directly from a prompt. A proposal that fails any of these checks is not silently corrected or quietly dropped; it is returned with a specific, named reason, the same way a validation failure would be reported for a change a human typed directly. This is the step that keeps a fluent but wrong AI suggestion — an invalid relationship type, a reference to an element that was renamed since the AI's context was retrieved, a naming collision with something created moments earlier by a colleague — from ever having the chance to become a permanent part of the model. Nothing reaches this far without already having been checked against the same rules that govern every other change.

Step four: preview, in the architect's own words

Only after passing deterministic validation is the change set shown to the architect, rendered as a clear preview: the new element and its type, the two new relationships with their endpoints named explicitly, and a draft of the new diagram with the proposed layout. Nothing has been written to any repository yet. This is the moment the architect from the workshop actually looks at what was generated, and it is worth being honest about what a preview like this is for: it is not a rubber stamp on the way to an inevitable "Apply." It exists because an AI's proposal, however well validated structurally, can still be substantively wrong in ways no rule engine catches — the relationship direction could be logically backwards even though it is a permitted relationship type, or the new component might duplicate something that already exists under a slightly different name. The preview is where a human's actual domain knowledge, the kind no deterministic check can encode, gets its say.

Validation catches what is structurally wrong. A human catches what is contextually wrong. A pipeline that only has the first of those two checks will faithfully apply confident nonsense, because confident nonsense can be perfectly well-typed.

Step five: approval, and the boundary AI never crosses

The architect adjusts the proposed relationship type on one connector — the AI had proposed a generic dependency where the architect wants an explicit information-flow relationship — renames the diagram to match the workshop's own naming convention, and approves the rest as proposed. This adjustment happens in the preview, before anything is committed, and it is worth dwelling on because it is the clearest illustration of the boundary this whole series insists on: at no point does the AI have write access to the repository. It proposed; the deterministic engine validated the proposal's structure; a human edited and approved the substance. The actual write — the operation that turns a proposal into part of the canonical model — is executed by CelinQ's own semantic change-application logic, the identical mechanism used for every change in the product regardless of whether a human typed it directly or an AI proposed it first. AI never had, at any point in this sequence, the ability to mutate a repository row. It only ever had the ability to suggest what such a mutation might look like, for a human to check.

What the preview would have caught, in a slightly different workshop

It is worth imagining a version of this same request that goes less smoothly, because the value of the preview step is easiest to see when something is actually wrong with the proposal. Suppose the model already contains an element named "Claims Intake Service," created eighteen months earlier by a different team and now largely forgotten by everyone in the current workshop. The AI's context retrieval, searching by name, may or may not surface that near-match depending on how closely the names align — this is precisely the kind of ambiguity a deterministic naming-collision check exists to catch, flagging a similar existing element rather than silently creating a duplicate that will need to be found and merged later, the same duplicate-detection discipline CelinQ applies across the wider model. Caught at the preview stage, this costs the architect ten seconds of reading a warning and deciding whether to reuse the existing element or proceed with a genuinely new one. Caught six months later during a portfolio review, the same duplicate costs a data-quality investigation and an awkward conversation about which of two elements is actually authoritative. The gap between those two costs is the entire economic argument for validation and preview existing at all, and it is why skipping them in the name of speed is a false economy even in a fast-moving workshop.

Iterative refinement, not a single irreversible shot

Workshops rarely produce a correct model on the first sentence, and the pipeline is built around that reality rather than against it. Because nothing is written to the repository until approval, the architect can refine the proposal through follow-up prompts before ever committing to it — "make the connection from Claims Intake to Claims Processing asynchronous, not synchronous," or "add a validation step as a separate internal activity on the new component" — and each refinement re-runs context retrieval and validation against the current state of the proposal, not against a frozen first draft. This matters because it means the cost of getting the first prompt slightly wrong is a few seconds of conversation, not a mistaken commitment that has to be found and reversed later. Only when the architect is satisfied with what the preview shows does approval turn any of it into a revision, and everything before that point remains exactly as reversible as a sentence typed into a chat window, because none of it was ever anything more than that.

This is also where the diagram layout gets its final shape. CelinQ's auto-layout proposes a reasonable initial arrangement of the new component and its connectors, but layout is explicitly treated as a starting point rather than a final answer — an architect can drag elements into a clearer arrangement before approving, and that adjustment, like the relationship-type correction described earlier, becomes part of what gets approved rather than something applied automatically afterwards. A diagram that will be projected in front of stakeholders deserves a human's sense of visual clarity, and the pipeline treats that sense as a required ingredient rather than a nice-to-have polish step tacked onto the end.

Step six: a revision exists, and only now does it exist

The moment the architect approves, CelinQ applies the change set through its normal semantic command path and a new revision is created in the canonical workspace — an ordered, permanent record: what was added, by which user, at which timestamp, with a note that this revision originated from an AI-assisted proposal that a specific person reviewed and approved. This is the pivot point of the entire workflow. Before this moment, nothing existed except a proposal sitting in a preview pane. After this moment, a real, addressable, auditable fact exists in the model's history, exactly as durable and exactly as reviewable as any change made by hand. The distance between "AI generated something" and "a revision exists" is not a formality. It is the entire discipline this article is describing, compressed into a single instant.

Prompt-to-production pipeline A user prompt becomes model context retrieval, then a proposed semantic change set, then deterministic validation, then human preview and approval, then a canonical revision, then synchronisation through the EA add-in to local repositories, with Fusion handling any concurrent edits. User prompt plain English request Context retrieval deterministic lookup Semantic proposal typed operations, not text Deterministic validation rule checks, no AI Human preview + approval edit, accept, or reject Canonical revision now a permanent fact EA add-in Sync Now / background Local EA repository each architect's machine Fusion, if a concurrent edit exists merges or raises a capsule — the same engine, unrelated to this AI request
The path from a plain-English prompt to a synchronised local repository. Validation and the write to the canonical model are deterministic; the only two places AI participates are context retrieval and the initial proposal, both of which a human still checks before a revision exists.

Step seven: synchronisation, exactly like any other change

From here, the workflow this series has spent seventy-nine articles describing simply takes over, because an AI-originated revision is not a special kind of revision — it is a revision. Every architect's EA add-in, watching for updates through the normal Smart Sync cadence, pulls the new Claims Intake component, its two relationships, and its diagram into their local repository the next time their background agent checks in, typically within the debounce and safety-sync windows described in the article on Smart Sync. A colleague who happened to be editing the Claims Processing element at the same moment the workshop's proposal was approved does not experience a special AI-flavoured conflict; Fusion evaluates the concurrent changes using exactly the rule matrix described in the article on AI-assisted conflict resolution, and if the two changes are genuinely independent, both apply cleanly with no one's attention required. If they do collide, a normal F3 capsule is raised, with an F2 recommendation available if the workspace has that enabled — the same governed, advisory-only mechanism, not a separate path invented for AI-generated content. The system does not need to know, or care, that one side of a later conflict originated from a prompt rather than a mouse click; a semantic operation is a semantic operation regardless of where the idea for it came from.

Step eight: what happens after the model changes

A finished pipeline does not stop at the write. The new component and its relationships are immediately available to every deterministic quality check CelinQ runs — is the new element missing an owner, does it have a lifecycle status recorded, does it introduce a dependency that would create a cycle — the same analysis described in the article on AI-assisted model analysis, run without needing to be told that this particular element arrived through a prompt. If documentation generation is part of the team's workflow, the new component is included the next time a package summary is produced, following the pattern described in the article on generating architecture documentation. None of this is a separate AI feature bolted onto the workflow; it is what already happens to every element in the model, applied automatically to the one that happens to be three minutes old.

Step nine: the audit trail, read backwards

Weeks later, during a routine architecture review, someone asks why Claims Intake exists and who approved the relationship into Claims Processing. Instead of a search through meeting notes or a message to whoever seems likely to remember, the answer is the revision record itself: created by the named architect, on the date of the workshop, originating from an AI-assisted proposal, approved after a specific relationship type was corrected from the AI's initial suggestion. Every fact in that sentence is drawn from data CelinQ recorded automatically as a consequence of the ordinary pipeline running, not from any special effort taken to make the AI-assisted change auditable after the fact. This is, in the end, the actual argument for building the pipeline this carefully in the first place: not that it makes the impressive first moment more impressive, but that it makes the boring, necessary moment six months later — the one where someone has to explain a decision to a review board — trivially answerable instead of a small archaeology project.

Only two of the nine steps in this pipeline involve AI at all: retrieving relevant context and drafting the initial proposal. Validation, preview, approval, the write itself, synchronisation, Fusion, quality analysis, documentation and audit are the same deterministic machinery CelinQ runs for every change in the product, whether a person typed it directly or a prompt started it.

Where AI is switched off, and what is lost when it is

Everything from step three onward in this walkthrough is identical in a workspace where AI has never been enabled: validation, preview and approval of a manually specified change, revision creation, synchronisation, Fusion, quality checks, documentation, and audit all function exactly the same way for a change an architect builds directly through CelinQ's semantic commands or by hand inside Enterprise Architect. What disappears without AI is only steps one and two — the retrieval and the initial drafting of the proposal from a plain-English sentence. An architect in an AI-disabled or sovereign workspace builds the same Claims Intake component the same way architects always have, specifying each element and relationship directly, and every downstream guarantee this article describes — deterministic validation, human review of anything ambiguous, a complete audit trail, safe synchronisation to every other repository — applies to that manually built change with exactly the same rigour. AI shortens the distance between an idea and a reviewable proposal. It does not weaken, bypass, or replace any of the governance that decides whether that proposal becomes real.

Honest limits

This pipeline is deliberately slower than the version where AI writes directly to the repository, and that slowness is the entire point, but it is worth being honest that it is a real cost and not a free lunch dressed up as caution. A workshop moves at the speed of a room full of people, and pausing to preview, adjust a relationship type, and approve is a genuine interruption to that momentum, however brief. Retrieval is only as good as the model it retrieves from, and a prompt referencing an element that does not yet exist, or exists under an inconsistent name because of years of accumulated naming drift, will produce a proposal that reflects that inconsistency rather than silently fixing it — the pipeline surfaces the model's existing untidiness rather than curing it. And a validated, human-approved, well-formed change can still be a bad architectural decision; deterministic checks and a moment of human attention catch structural and contextual errors, not strategic ones, and no amount of pipeline discipline substitutes for an architect who understands why Claims Intake should or should not exist at all. What this workflow guarantees is narrower and more defensible than "AI makes good architecture." It guarantees that whatever architecture results, good or imperfect, is the product of a visible, validated, human-approved decision that the organisation can stand behind and explain — which, for anyone who has had to defend a model in front of a client or a review board, turns out to be most of what actually matters.