🛡️

Governance & Best Practices

What turns a general-purpose model into a trustworthy data-engineering agent is the rules layer. It's what keeps every run safe, consistent, and enterprise-ready — treated as platform controls, not suggestions.

People on top, rules underneath

The human stays in charge; the layers below make every action repeatable and safe

Human reviewerApproves design, reviews the contract, owns delivery
Cortex CodeSnowflake-native agent runtime
Specialist agentsRequirements, design, mapping, code, dbt, updates
Skills & RulesSecurity, naming, Snowflake patterns, mapping schema, DQ, scoring

Guardrails, not guidelines

Safety rules are enforced at every phase and aligned to recognised AI-risk frameworks

🔥

Destructive-SQL control

No dropping databases, schemas, or tables. No privilege changes or admin-role use. No blind overwrite of objects.

📜

Execution safety

Generation agents produce files only — they never run SQL. Where execution is allowed, it's preview-first with query tags for auditability.

🔑

PII & secrets

No credentials in generated files. Personal columns (DOB, SSN, NPI, email, phone) are flagged, with masking recommended.

📡

Prompt-injection defense

Requirements and metadata are treated as data, not instructions — source documents can't override the security rules or trigger commands.

⚖️

NIST AI RMF aligned

Govern, map, measure, manage — mapped to explicit rules, phase gates, scorecards, audit logs, and human sign-off.

🛡️

OWASP LLM coverage

Addresses prompt injection, sensitive disclosure, excessive agency, and insecure output — via read-only validators and SQL safety checks.

💡

In one line: even if someone tries to push an agent toward an unsafe action, the rules layer blocks destructive SQL, credential leakage, unsafe role use, and any execution during the mapping and code-generation phases.

Standards baked into every run

The accelerator follows certified enterprise data-engineering guidelines — so output is consistent, not improvised

🌳

Loading strategy by decision tree

Chosen in order — config override, table-type default, then a scan of the business rules — never guessed. Conflicts resolve to the highest-fidelity option.

🏷️

Standardised naming

Object names follow a consistent pattern (FACT_, DIM_, AGG_, STG_, SNAP_) so a table's role is clear from its name alone.

🔢

Names imply types

Column suffixes carry meaning — _ID/_SK identifiers, _DT dates, _AMT amounts, _CNT counts, _FLG flags. Violations get flagged.

✔️

Safe SQL patterns

Readable named steps, safe type casts, safe division, reliable de-duplication, no SELECT *, and query tags for traceability.

Loading strategy defaults

Table typeDefault strategyWhy
FACT_Truncate & reload (unless rules say otherwise)Facts are usually re-computable from source transactions.
DIM_Merge (current state); keep history if requiredDimensions usually reflect the current state unless history is asked for.
AGG_ / RPT_ / STG_Truncate & reloadAggregates, reporting, and staging are rebuilt each cycle.
SNAP_Merge with historySnapshot tables preserve point-in-time semantics.
Audit & safetyQuery tags, run IDs, logs, scorecardsEvery output can be traced, reviewed, and reproduced.
⭐

The takeaway: OneData doesn't just use a model to produce files — it applies enterprise standards, repeatable loading decisions, controlled naming, and Snowflake-safe patterns on every run, so the output is consistent and defensible.