Skip to main content

FiftyFive Tech

Email Us sales@fiftyfivetech.io
Get in Touch
FiftyFive Weekly Digest10 Nov 20267 min read

Context-aware AI is an engineering problem, not a prompting problem

Better AI answers don't guarantee better workflows. What makes AI dependable at work is the engineering around the model: connected knowledge, explicit workflow state, resilient integrations and clear limits on what it may do alone.

Glowing nodes joined by thin lines in a dark blue network

An AI assistant can summarise a requirements document in seconds and suggest a sensible next step. Then a decision changes in another tool, a colleague closes the dependency it flagged, and the assistant keeps recommending the old plan. Fluently, confidently and wrongly.

As AI moves from answering isolated questions to supporting ongoing work, the hard problem moves with it. The question is no longer whether a model can produce a good answer. It is whether the system around the model knows enough about the work to stay correct as the work changes.

What is context-aware AI?

Context-aware AI is software that uses relevant information about a user's task, history, permissions and current environment to produce responses or actions that fit that situation. The model does not hold that context. The surrounding system has to assemble it, check it and supply it on every interaction.

That is harder than it sounds. Enterprise information is spread across records, documents, application events and conversations. Some of it changes hourly. Some of it is restricted. Some becomes obsolete the moment a decision is revised. A longer prompt fixes none of this, which is why context is an engineering problem rather than a prompting one.

Why a correct answer can still be the wrong one

Collaboration tools are good at collecting information. They are much weaker at representing how it fits together: which requirement was superseded, which approval is already done, which recommendation no longer suits the current stage of the work.

Consider an illustrative scenario. An assistant reviews a requirements document, spots a missing approval and recommends a follow-up. Meanwhile, someone completes the approval in a separate application. If the assistant works from stale information, it keeps flagging a resolved issue. If it updates the project record without checking permissions, it creates a new problem.

An answer can be factually correct and still operationally wrong
  1. Decision changesin another tool
  2. Context goes staleindex not refreshed
  3. AI repeats old advicefluently
  4. Reworkpeople correct it
  5. Trust dropsadoption stalls

Retrieval-augmented generation (RAG) helps by grounding responses in retrieved content. But retrieval quality depends on what is indexed, how fresh the index is, whether permissions are enforced and how evidence is ranked.

Answer-centred assistant vs context-aware system
AspectAnswer-centred assistantContext-aware system
Source of truthWhatever was pasted or retrieved for this promptIndexed, permission-aware sources with provenance
Changed decisionsUnaware unless someone repeats themTracked in explicit workflow state
PermissionsImplied by the promptEnforced by the application on every read and write
Other toolsOutput copied across by handIntegrated, with events reconciled
Typical failureConfident advice based on outdated contextSurfaces the conflict and asks before acting

Three layers that make AI workflows dependable

A practical way to design, or audit, an AI-enabled workflow is to separate three engineering responsibilities. Each one fails differently, so each needs its own design and its own tests.

  1. Knowledge: what the system knows

    Connect the relevant sources and make them retrievable. Index documents properly, enforce access permissions at retrieval time and keep enough source metadata for people to see where an answer came from. When sources disagree, surface the conflict instead of letting the model choose silently. The same discipline applies to AI analytics, where a valid SQL query can still return the wrong business answer.

    In practicePermission-aware retrieval · Source citations · Conflict surfacing
  2. Workflow state: what has already happened

    A conversation is not a reliable record of a business process. Approvals, dependencies, ownership and completed actions need an explicit state model, such as a state machine or workflow engine with persisted context. The model can interpret the situation. It should not be the only authority over business rules or persistent state.

    In practiceExplicit states and transitions · Persisted decisions · Safe reopening of earlier steps
  3. Integration: connecting intelligence to real work

    A recommendation has little value if people must re-enter it across disconnected tools. Integrations let the system receive updates and act inside established workflows, but they bring distributed-systems problems with them: events arrive late, fail, repeat or conflict. This is where solid data engineering matters as much as the model.

    In practiceIdempotent event handling · Reconciliation jobs · One system of record per entity

How much should an AI system do on its own?

Proactive AI can remove a lot of back-and-forth by spotting a missing input or an unresolved dependency before work stalls. But anticipating a need is not the same as having permission to act. The right level of autonomy depends on the cost of being wrong.

Four levels of AI autonomy, and the control each one needs
  1. ObserveDetects an issue or changeControl: logging and visibility
  2. SuggestRecommends, with evidenceControl: sources shown, easy to dismiss
  3. ConfirmAsks before proceedingControl: a named approver
  4. ActRuns a permitted operationControl: permission checks in code, audit trail, undo

Controls for consequential actions belong in application code, not in the prompt. Retrieved content and external inputs must never be treated as trusted instructions, a risk OWASP lists as prompt injection and one we look at in building secure chatbots. The NIST AI Risk Management Framework, organised around Govern, Map, Measure and Manage, gives teams a structure for setting these thresholds. For organisations operating in the EU, including Sweden, Denmark and Finland, the EU AI Act adds explicit human-oversight requirements for systems classified as high-risk.

How should teams evaluate an AI workflow?

Response accuracy is necessary but not sufficient. Test whether the complete system behaves correctly in realistic scenarios:

  • Does each response use relevant, current and authorised information?
  • Does workflow state stay consistent when people revise or reopen decisions?
  • What happens when an integration fails or delivers duplicate events?
  • Can the system tell uncertainty apart from confirmed information?
  • Can people inspect, correct or reverse consequential actions?

These scenarios belong in integration tests, regression suites and production monitoring, not only in prompt evaluation. Track retrieval relevance, state-consistency errors, action error rates, latency and how often people have to step in. A disciplined software testing and QA practice matters as much for AI features as for any other production code.

What should technology leaders prioritise?

Model capability still matters. But the lasting value of an AI-enabled product comes from the engineering around the model. For CTOs and heads of engineering, that shifts investment from prompt tuning towards data foundations, state management, integration resilience and evaluation.

This is the work behind FiftyFive Technologies' Agentic Solutions: agents and AI workflows that plan, act and execute across existing tools, with human approval built in. Teams that need more capacity can extend their engineering team with remote developers who work inside their existing processes. From offices in Stockholm, London, Dubai and India, we work with product and engineering leaders across the Nordics, the UK, the Middle East, the US and Australia.

The takeaway

A better answer helps someone finish a task. A better-engineered system helps the work continue correctly.

  1. 01Treat context as a system: assemble it, check permissions and keep it traceable on every interaction.
  2. 02Keep workflow state and business rules outside the model, and let the model interpret them.
  3. 03Match autonomy to the cost of being wrong, and test the whole workflow, not just the answer.
Tags
  • Context-aware AI
  • RAG
  • Workflow state
  • Integration
  • Prompt injection
  • Software engineering