DUKE FIELD GUIDE · CONTEXT ENGINEERING

THE ENTERPRISE
CONTEXT LAYER
SPECIFICATION

What an AI data agent should know before it writes SQL.

A practical specification for the business rules, metric definitions, schema knowledge, join paths, exceptions and verified examples that prevent an AI data agent from guessing how your company interprets its data.

8

SECTIONS

6

PAGES

1

REUSABLE TEMPLATE

Built for AI data agents, Text-to-SQL systems and enterprise analytics teams.

SPECIFICATION PDF · 6 pages · Work email required

WHAT GOES INSIDE

01

BUSINESS MEANING

  • Global rules
  • Business vocabulary
  • Metric definitions

The decisions that cannot safely be inferred from the database.

02

DATA STRUCTURE

  • Relevant schema
  • Representative values
  • Canonical join paths

Enough structure for the agent to navigate the model without exploring blindly.

03

OPERATIONAL REALITY

  • Exclusions
  • Temporal rules
  • Known traps
  • Conventions

The details that make technically valid queries produce wrong business answers.

04

VERIFIED EVIDENCE

  • Known-good queries
  • Critical reminders
  • Evaluation cases

Examples and tests that make the context executable rather than merely descriptive.

THE EIGHT-PART FILE

  1. 01GLOBAL RULES
  2. 02BUSINESS LANGUAGE
  3. 03METRICS & FORMULAS
  4. 04DATA MODEL
  5. 05JOIN PATHS
  6. 06TRAPS & CONVENTIONS
  7. 07VERIFIED QUERIES
  8. 08CRITICAL REMINDERS

A context layer is not everything the company knows. It is the information the AI must not be allowed to guess.

Useful Context ≠ Maximum Context
Useful Context = Minimum Evidence Required To Remove Dangerous Guesses

TREAT IT LIKE CODE

IF CONTEXT CAN CHANGE THE ANSWER,
CONTEXT IS PRODUCTION LOGIC.

VERSION IT.REVIEW IT.TEST IT.MEASURE IT.OWN IT.

A stale context file rarely throws an error. It produces a plausible answer using an outdated interpretation.

DOWNLOAD

THE ENTERPRISE CONTEXT LAYER SPECIFICATION

Want to see how this works on your own data model?

DUKE builds the governed layer between enterprise data, business meaning and AI analysis.

INTERLUDEElectrophazz, les vibes du studio