Staff ask in plain English and get sourced, company-scoped answers with a stated confidence: orders, stock, customers, store context, and the how-to behind them. It runs in Teams, a web console, five MCP tool packs and the shared D365 Agent Factory landing zone. One engine behind every door.
Principal AI Engineer. Architecture, the planner and tool layer, access policy, the evaluation harness, CI and nightly canary, and the landing-zone integration reviewed and merged by the platform owner.
FastAPI on Azure App Service · GPT-4.1 / 4.1-mini and text-embedding-3-large on Azure AI Foundry · Dynamics 365 F&O OData (39 entities, read-only) · Azure AI Search / Foundry IQ · Table + Blob storage · Entra ID · Application Insights · GitHub Actions
Microsoft Zero Trust principles, OWASP LLM & Agentic Top 10 assessment, six ADRs, SBOM and secret scanning on every commit, one-command rollback.
Plain-English captions, no sound needed. Switch to For tech for the architecture, guardrails and evaluation detail.
Figures are computed in code with provenance. "Not visible to your role" and "no confident answer" are real answers, never guesses.
Teams, the landing zone or the web console establishes who is asking through Entra ID.
Compass maps the person to their F&O user: roles, default legal entity, store context. Admin profiles can override.
The model picks tools under a schema; verified exemplars of similar questions guide the plan.
Read-only OData calls to F&O, scoped to the company; knowledge retrieval over the business's own SOPs for the how-to.
Figures are computed in code; the answer names the company, cites sources and states confidence, or declines and logs a gap.
An episode (tools, checks, latency) is written for evaluation. The nightly battery and the judge read the same evidence.
Each door authenticates differently and all resolve the same identity and scope. The engine is one deployable: versioned, health-checked and rollback-able in a single command.
The Dynamics client has no write method. Write, form and action tools are never exposed and are refused by name, proven every night by the adversarial cases.
Effective access is always the person's own F&O role intersected with the tool pack. A pack can never widen what a role allows. Finance views stay behind a deny-list.
The landing-zone surface validates signature, tenant, audience, expiry and scope; refuses app-only tokens; accepts only the landing zone's origin; refuses anyone it cannot place as an F&O user.
Verify every request (Entra sign-in or validated bearer, per-client API keys). Least privilege. Assume breach: external content is treated as untrusted input, never as instructions.
A written assessment and twelve permanent adversarial cases: injection, disclosure, authority-framed writes, role escalation, PII probes, tool misuse. They run every night.
Pinned dependencies, dependency audit, an SBOM per build, secret scanning over history. No secrets in the repository; runtime settings live in App Service.
Evaluation-first: the battery is written before changes, gates every release, and re-runs against production every night.
32 nights since 3 September: 25 green, 6 red, 1 running. Functional packs 76 / 76 green every night.
Five of the six reds were one adversarial wording case: the agent refused a write correctly, then offered to fetch. The fence held every time; the first occurrence found a real defect, fixed in v3.6.2 with a tightened no-overpromise rule. One red was a harness timeout, fixed with retry-on-exception and comparable baselines.
Fourteen releases in fourteen weeks: each one gated, each one reversible in a single command, and every failure files its own report.
Compass is operated as a service with a version it can report, a known-good state it can return to, and a nightly check that is harder on it than its users are. Observability is end to end: an answer's episode records the tools called, what retrieval returned, which checks ran and how long each took, so a wrong answer is traced to the step that produced it rather than to the model in general. Dependencies, lint rules and the judge's calibration set are pinned, so a regression is a change someone made, not drift nobody can find.
Compass cannot write to the ERP, so its heaviest controls are on who may see what, on honesty about confidence, and on proving every night that the fence still holds.
No person approves a read, because a read is reversible and the scoping is enforced in code. Humans sit where judgement matters: a 20-case calibration set anchors the judge to human review; an editor's approval can promote an episode to a gold exemplar, and every exemplar is inspectable and deletable; every red night is read by a person before the fix ships; business sign-off closes each packaged agent.