JAY / AI FIELD​BOOK
JAY’S FIELD NOTES / ISSUE 02 / NOVEMBER 2026

Jay’s AI
Fieldbook™

From algorithms to autonomous agents. Learn what AI is, how to use and build it, and how to secure and govern it in a real enterprise.

25Learning chapters
355Comparison rows
112Challenge questions
140Research references

JAY’S RULE #01 — Don't confuse a clever demo with a governed system.

Pick your learning path.

Start with foundations, then switch to building, using, governing or enterprise deployment. Search across the whole guide or select a track.

01 / Foundations / Origins

From rules to agents

AI is the broad effort to make systems perform tasks requiring intelligence. ML learns patterns from data; deep learning is a subset of ML using multilayer neural networks. Generative AI describes the capability to generate content, not a mutually exclusive algorithm family. Agents are systems that use models plus tools, state and execution logic.

Interactive diagram / select a node

AI family tree

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Rule-based systemsHuman-authored rulesDeterministic, inspectable; brittle on unexpected inputs.
2012–2016Deep neural networks, CNNs, RNNs, AlphaGoML already existed; learned perception and narrow decision systems dominated many enterprise uses.
2017Transformer architectureAttention enables parallel training and contextual sequence processing.
2018–2021Pretrained foundation models, GPT/BERT, large-scale transfer learningReuse a pretrained model for many tasks instead of training each from scratch.
2022–2024Chat assistants, diffusion, RAG, tool useNatural-language interfaces and generative outputs enter business workflows.
2025–2026Multimodal reasoning, coding agents, enterprise copilots, agentic workflowsSystems can take actions; permissions and runtime safety become central.
Predictive AIClassify, score, forecastFraud score, demand prediction, spam filtering; often simpler and cheaper than an LLM.
Generative AISynthesize text, images, code, audioUseful for open-ended tasks; outputs need validation.
Agentic systemModel + tools + orchestrationAn agent is not inherently autonomous or intelligent; authority depends on the surrounding system.
Quick check · Is every AI system an LLM?

No. Search, planning, rule-based logic and predictive models can be AI without language generation.

Go deeper / research & architecture exercise
Your turn

Classify your company's existing fraud detection, chatbot, OCR and workflow automation into method, capability and autonomy. Identify where an LLM would be unnecessary.

02 / Foundations / Mechanics

How machines learn

Models fit parameters to data. Training adjusts weights to minimize a loss; inference applies the learned parameters to new inputs. A dataset split helps detect memorization. An accurate model can still be unfair, poorly calibrated or vulnerable outside its training distribution.

Concept / productWhat it meansArchitect’s notes
Supervised learningLabeled examplesClassification and regression; labels must reflect the intended target.
Unsupervised learningUnlabeled dataClustering, dimensionality reduction, anomaly patterns; results still require interpretation.
Self-supervised learningTargets derived from dataNext-token prediction and masked prediction learn useful representations at scale.
Reinforcement learningReward feedback and actionsOptimizes behavior under a reward; reward misspecification can produce unwanted behavior.
Training / validation / testFit / tune / final estimateKeep the final test independent; prevent train-test leakage.
Loss and gradient descentReduce error by updating weightsA gradient provides a local direction of change; no guarantee of global optimum.
OverfittingFits training quirksLook for generalization gap; regularize, improve data, test new slices.
DriftInput or relationship changes over timeMonitor production quality, compare distributions and reassess when needed.
Precision / recallTP/(TP+FP) and TP/(TP+FN)Choose thresholds based on the cost of false alarms and missed cases.
Lab 01 · evaluation metrics

Accuracy can lie.

Adjust counts to explore precision, recall and accuracy. This is a synthetic confusion matrix, not measured production performance.

Quick check · Why keep a holdout set?

To estimate performance on examples not used to train or tune the model.

Go deeper / research & architecture exercise
Your turn

Change the threshold in the confusion-matrix lab. Explain why a SOC and a medical triage system may choose different trade-offs.

03 / Foundations / Inside a model

Tokens, attention and inference

A language model converts text into tokens, maps them to vectors and computes contextual representations. It estimates a probability distribution for subsequent tokens. Post-training can improve instruction following; retrieval and tools can supply external information. None guarantees truth.

Interactive diagram / select a node

Inside a language model

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
TokenA unit of model input/outputMay be a word fragment, punctuation or another modality representation; tokenizer dependent.
EmbeddingVector representationSimilarity approximates relationships, not identity or truth.
AttentionContext-dependent weighted mixingQueries, keys and values; simplified attention weights = softmax(QKᵀ/√d).
TransformerLayers of attention and feed-forward blocksDecoder-only generation predicts subsequent tokens; encoder models commonly represent input.
Context windowMaximum supported sequence budgetIncludes prompt, retrieved content, tool messages and output per endpoint rules; large context does not imply perfect recall.
Temperature / samplingControls output samplingLower randomness may help consistency but cannot eliminate hallucination.
Reasoning effortAdditional inference computation where supportedPotential quality vs latency, cost and token use trade-off.
Dense / MoEAll vs selected expert subnetworksMoE can activate fewer parameters per token; memory and routing still matter.
QuantizationReduced numerical precisionLower memory/cost; measure accuracy, speed and hardware compatibility.
MultimodalityText, image, audio, video depending on modelInput and output support differ; OCR quality and spatial reasoning vary.
Quick check · Is a longer context window the same as persistent memory?

No. Context is the input budget for an invocation; persistence requires external state or product-specific memory.

Go deeper / research & architecture exercise
Your turn

Compare an 8K and 128K context workload. Count document, system, tool and response tokens; reserve a safety margin.

04 / Build / RAG

Grounding, retrieval and fine-tuning

Retrieval-augmented generation (RAG) looks up relevant material at request time and supplies it to a generator. Fine-tuning changes model weights or adapters to improve behavior on a task. Prompting changes input instructions. They can be combined; they solve different problems.

Interactive diagram / select a node

RAG request path

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
IngestionParse, OCR, clean, chunk, classifyPreserve source identifiers, ACLs, versions, timestamps and deletion state.
Embedding indexVector search / approximate nearest neighborsChoose an embedding model, chunk strategy and index; evaluate multilingual coverage.
Hybrid searchKeyword + vector retrievalLexical matches help codes and names; semantics help paraphrases; rerank candidates.
AuthorizationSecurity trimming before prompt assemblyApply caller permissions at retrieval, not merely in the answer UI. Enforce again at source/tool.
RerankingReorder retrieved passagesMay improve precision; adds compute/latency.
GenerationPrompt with selected evidenceRequire citations and abstention when evidence is weak; citations can still be wrong.
RAG vs fine-tuneCurrent facts vs behavioral adaptationRAG updates indexed facts; tuning is not a reliable method of enforcing access or erasing individual facts.
Fine-tuning / LoRAOptimize behavior with examplesVersion datasets, adapters, evaluations and licenses. Avoid training sensitive data without authorization.
GraphRAGGraph/entity relationships plus retrievalUseful for relationship queries and synthesis; higher ingestion and governance complexity.
RAG productsAzure AI Search, Bedrock Knowledge Bases, Vertex AI Search, pgvector/OpenSearchManaged services or custom pipeline; compare access trimming, residency, refresh, cost and connector semantics.
Lab 02 · synthetic permission-aware RAG

Can this employee retrieve the salary policy?

Toy scenario only; no external requests or real documents. A real retriever must enforce the actual identity and source authorization.

Quick check · Does RAG retrain the model every time a policy changes?

No. Update and reindex the source; verify freshness and access control.

Go deeper / research & architecture exercise
Your turn

Use the RAG simulator to test a confidential HR document against a normal employee, then simulate an untrusted retrieved instruction.

05 / Build / Evaluation

Evidence before benchmarks

Benchmark scores are task-specific evidence, not universal rankings. Test your own examples, including failure cases, with fixed model versions, settings, tools and budgets. Evaluation includes capability, safety, reliability, cost, latency and user value.

Concept / productWhat it meansArchitect’s notes
Public benchmarkGeneral comparison across modelsUse exact benchmark version, effort, modality, date and methodology; beware contamination.
SWE-bench / coding evalsRepository issue resolutionMeasure agent scaffold and tool access as well as base model.
Human reviewDomain-expert rubricBlind comparisons, calibrated reviewers, disagreement handling.
RAG evaluationRetrieval recall, context precision, faithfulnessMeasure whether right evidence is retrieved and claims are supported.
Security evaluationAdversarial test suitesSynthetic data, authorization, injection resistance, action scope and abuse cases.
Operational metricsp95 latency, errors, completion and cost/taskInclude retries, tool calls, long-context use and reasoning tokens.
Fairness / harmCohort outcomes and impactDefine affected groups, context, false-positive/negative costs and escalation.
RegressionFixed evaluation suite after each changePin versions and retain test artifacts; canary before broader rollout.
Quick check · Can benchmark scores from different versions be directly compared?

Not generally. Datasets, weights and evaluation settings can change.

Go deeper / research & architecture exercise
Your turn

Create a 50-case golden set with normal, edge and adversarial cases. Define pass criteria for quality, data access, cost and latency.

06 / Use / Model landscape

Models, access and economics

A model is not a subscription, a deployment or a tool. Model families include multiple variants. Consumer free tiers often have quotas and separate privacy terms; enterprise seats and API calls are separately priced. Open weights enable deployment control but may have license restrictions and infrastructure cost.

Concept / productWhat it meansArchitect’s notes
OpenAI GPTGPT-6.2 Astra / Sol; additional smaller variants in catalogHosted API and ChatGPT; compare reasoning effort, tool support, latency and price.
Anthropic ClaudeFable 5.2, Opus 5.5, Sonnet 5.5 (benchmark-listed)Hosted API/Claude; check endpoint availability, agent capabilities and usage limits.
Google GeminiGemini 4 Neon / Carbon / Hydrogen (benchmark-listed); Flash-Lite classHosted consumer and API/Vertex endpoints; check multimodal support and regional availability.
Meta LlamaLlama family; open-weight releasesSelf-host or provider; check model-specific community license and acceptable use.
DeepSeekReasoning and general model familyHosted and selected open-weight releases; validate license, data path and hosting jurisdiction.
Alibaba QwenGeneral, reasoning, code and multimodal familiesSelected open-weight versions; inspect exact release and license.
MistralGeneral, code and smaller model familiesHosted and selected open-weight options; verify deployment and commercial terms.
CohereEnterprise text, embeddings and rerankingHosted/private deployment options vary; useful for retrieval tasks.
xAI Grok / Kimi / GLMAdditional proprietary or open-weight families by releaseEvaluate separately; no implied approval or guaranteed availability.
ChatGPT plansFree, Go, Plus, Pro, Business, EnterpriseIndividual access differs from organization controls; API usage separately billed.
Claude / Gemini plansFree access where offered; individual paid, team/enterprise tiersCheck official plans and country; quotas and features vary.
Local modelsOllama, llama.cpp, vLLM, GPU/CPU infrastructureNo per-token provider fee for own host, but compute, storage, power, support and compliance cost money.
Dated benchmark snapshot · 30 Nov 2026

Intelligence is not a single number.

Selected Artificial Analysis Intelligence Index results (v5.0.2-era source snapshot; effort settings shown). This is a selected comparison, not a comprehensive rank. Scores are index points, not accuracy percentages.

Claude Fable 5.2 max / default fallback
65
GPT-6.2 Astra max
62
Gemini 4 Carbon high
60
Claude Opus 5.5 max
59
Claude Sonnet 5.5 max
55
Gemini 4 Argon high
51

Source: model comparison · release analysis · methodology. Rankings change; compare the exact benchmark version, settings and provider.

Rate examples · USD per million tokens

Calculate the workload, not just the sticker price.

Published reference rates for selected earlier model versions, not the latest flagship prices: Claude Sonnet 5 standard input $3 / output $15 (from Sep 2026); Gemini 3.1 Flash-Lite standard text input $0.25 / output $1.50. Verify live rate and endpoint before procurement. Claude · Gemini · OpenAI.

Excludes caching, reasoning tokens not counted in output, retrieval, tools, network, support, taxes, and retries. Enter actual billed tokens and rates. Enterprise seat rates and infrastructure TCO require separate analysis.

Quick check · Is an open-weight model automatically open-source?

No. Weight availability does not guarantee open training data, unrestricted commercial use or open-source licensing.

Go deeper / research & architecture exercise
Your turn

Compare two candidate hosted models and a local one using the benchmark snapshot and editable cost lab. Document eligibility gates before scoring quality.

07 / Use / Tool atlas

20 AI tools to know

This curated shortlist is organized by job to be done rather than a popularity ranking. Many products overlap. Free tiers are for evaluation, not default corporate approval. Review current vendor terms and connectors before use.

Concept / productWhat it meansArchitect’s notes
ChatGPTGeneral productivity / analysisFree and paid tiers; enterprise workspace controls and tools vary. chatgpt.com
ClaudeWriting, analysis and codeFree and paid plans; evaluate files, workspace and coding integration. claude.ai
GeminiMultimodal and productivityFree/paid access; Workspace integration depends on edition. gemini.google.com
Microsoft 365 CopilotEnterprise productivityCommercial licensing; grounding in permitted M365 data. microsoft.com/microsoft-365/copilot
PerplexityResearch and discoveryFree/paid; verify citations and enterprise terms. perplexity.ai
NotebookLMSource-based research and learningFree/paid or workspace features; verify notebook permissions. notebooklm.google.com
Amazon QuickEnterprise knowledge, BI, research and automationPaid service; identity propagation and permissions matter. aws.amazon.com/quick
GitHub CopilotIDE completion and coding agentFree/paid eligibility; review organization policies. github.com/features/copilot
OpenAI CodexCoding agent and repository workPlan/API access varies; sandbox, PR review, scoped Git credentials. chatgpt.com/codex
Claude CodeTerminal coding agentSubscription/API usage; manage command execution and file scope. claude.com/product/claude-code
CursorAI-first coding editorFree/paid plans; check code retention and indexing. cursor.com
Gemini CLITerminal coding assistanceQuota and paid access depend on configuration; validate tool permissions. github.com/google-gemini/gemini-cli
Power AutomateLow-code workflow automationCommercial and connector licensing; DLP and environment policy. microsoft.com/power-platform/products/power-automate
n8nWorkflow orchestrationCloud paid/self-host options; control credentials, nodes and license. n8n.io
ZapierSaaS integration and automationFree/paid tiers; review connector scopes and execution limits. zapier.com
MakeVisual workflow builderFree/paid quotas; validate external data paths. make.com
Copilot StudioLow-code agent designMetered/licensed; manage connectors, environments and publishing. microsoft.com/microsoft-copilot/microsoft-copilot-studio
DifyLLM app and workflow designCloud and self-host options; license and operational review. dify.ai
Canva Magic StudioVisual content and designFree/paid feature limits; validate rights and brand controls. canva.com/magic-studio
Adobe FireflyImage and creative productionFree/paid credits; review asset provenance and commercial terms. adobe.com/products/firefly.html
Quick check · Is this list a ranked top 20 by market share?

No. It is an enterprise-relevant curated set covering distinct workflows.

Go deeper / research & architecture exercise
Your turn

Pick one tool per category; document data classes, identity, integration permissions, audit and retention before approval.

Developer and emerging tools radar

The 20 general-use tools are a starting shortlist, not a claim that niche tools are less important. Explore the expanded coding-agent catalog for OpenCode, Pi, Cline, OpenHands, goose, Aider, Qwen Code, Oh My OpenAgent, OpenClaw, Hermes Agent and others. Understand the harness layer before choosing an agent stack.

08 / Use / Coding

AI for software engineering

Coding assistants range from autocomplete to autonomous coding agents. The risk grows when a model can read source, run commands, alter dependencies or push code. The model proposes changes; repository and CI policy determine what reaches production.

Concept / productWhat it meansArchitect’s notes
AutocompleteInline suggestionsFast local context; assess code quality and secret exposure.
Chat/editor agentRead and edit multiple filesScope workspace, exclude sensitive paths, inspect diffs.
Terminal agentRun commands and testsSandbox filesystem/network, allowlist commands, require approvals for escalation.
Cloud coding agentRepository clone, isolated runtime, PRGitHub App least privilege, ephemeral environment, branch protection.
GitHub Copilot / Codex / Claude Code / CursorDifferent delivery surfacesCompare model access, context, tool execution, billing, audit and enterprise policy.
Secure SDLCThreat model, PR, SAST/SCA, secrets scanGenerated code has the same review obligations as human code.
Dependency riskHallucinated or malicious packagesValidate package origin, pin versions and scan transitive dependencies.
Prompt injection in repoUntrusted issue, README, commentsTreat repo contents as data; prohibit privilege escalation from retrieved instructions.
Quick check · Does a passing unit test prove generated code is secure?

No. Tests cover specified behavior, not all security properties or supply-chain risks.

Go deeper / research & architecture exercise
Your turn

Design a feature-branch workflow with synthetic secrets, tests, scan gates and a human reviewer. Compare local and cloud agent trust boundaries.

November 2026 / Developer ecosystem radar

Beyond the big four: coding agents, harnesses and extensions

The original general-purpose top 20 remains a curated shortlist. This separate developer catalog is intentionally broader and unranked. A popular tool is not automatically approved for corporate use. The November 2026 Thoughtworks Radar discusses OpenCode and Pi, including increased adoption of Pi as a foundation for other tools. Its recommendations are qualitative adoption signals, not global market-share statistics.

Tool / layerPrimary roleWhy people use or customize itEnterprise decision
OpenCodeOpen-source multi-provider coding harness; terminal, desktop and SDK/serverChoose model/provider, configure agents, skills, MCP, plugins, permissions and policy. Useful for standardized developer workflows or embedding a harness.Client is open source; inference, gateway and commercial features can cost money. Review V1/V2 config differences, upstream provenance, egress and workspace permissions.
Pi (pi-coding-agent)Minimal TypeScript coding harness and embeddable runtimeCustomize with extensions, skills, prompt templates, themes and packages; SDK/RPC integration. Good for composing a tailored agent rather than accepting a fixed workflow.Minimal defaults do not imply strong isolation. Audit extension execution, filesystem/network controls and credentials. Model access is separate from the client.
Claude Code / Claude Agent SDKTerminal coding agent and programmable runtimeRepository guidance, skills, hooks, MCP, subagents and configurable execution modes.Confirm supported models, commercial terms, sandbox/approval settings and telemetry; do not confuse hooks with mandatory OS security.
OpenAI Codex / Codex SDK / app-serverCLI, cloud agent and embeddable runtimeAGENTS.md, skills, sandboxing, approval policies, headless tasks and streamed session integration.Open-source CLI is not free inference. Validate subscription/API entitlement, repo scopes and sandbox behavior.
Gemini CLIGoogle-centered terminal agentRepository context, tool calls, extensions and enterprise model-access configuration.Confirm quota, billing, data handling and authorization separately from the open client.
GitHub CopilotIDE / repository / managed coding experienceOrganization policy and review workflow; code suggestions and agent work.Seat/license and model access vary. Enforce review, repository scope and data policies.
CursorAI-native editorIntegrated indexing, model selection, rules and agent edits.Review remote indexing, retention, agent shell permissions and enterprise configuration.
WindsurfAI-native editorIntegrated code navigation, editing and agent workflow.Review available enterprise controls, hosting choices, indexing and model terms.
Google AntigravityAgent-oriented development environmentIDE-based agent coordination and artifact verification.Assess runtime approvals, preview/edition status, browser tools and file boundaries.
ClineOpen-source coding agent across IDE/CLI surfacesMulti-provider coding with plan and execution workflows.Use scoped credentials and validated permissions; tool approvals alone do not isolate the process.
Kilo CodeAgentic coding tooling and orchestrationMulti-model workflows, editor/CLI tooling and specialized modes.Inspect extension and provider terms, telemetry, tool scopes and runtime boundaries.
ContinueOpen-source coding assistant and agent toolingCustomize model/provider choices and developer context.Validate data flow, extension updates and local versus remote inference.
AiderGit-centered terminal pair programmerRepository map, code edits, lint/test feedback and Git integration.Check automatic commit behavior and branch isolation. Review changes independently.
OpenHandsSoftware-engineering agent environment and SDKRun agent work in configurable execution environments, local or hosted.Evaluate container isolation, secret injection, network policy and infrastructure ownership.
gooseOpen-source extensible general-purpose agentDesktop/CLI and integration with models and tools; coding, research and automation.Scope extensions, credentials and execution. Local client does not automatically mean local inference.
Qwen CodeTerminal coding agentModel-backed repo exploration, editing and testing; inspect supported providers.Confirm region/provider terms, model availability and current release security.
Mistral VibeTerminal coding agentCoding workflow with Mistral ecosystem integration.Validate supported model/provider access and organization policy.
CrushTerminal coding assistantAlternative multi-model command-line workflow.Review current license, permissions, maintenance and model integration.
DevinManaged autonomous software-engineering agentDelegated longer-running coding tasks with repository workflows.Check workspace isolation, Git integration, cost per accepted task and human review.
Oh My OpenAgent (formerly Oh My OpenCode)Opinionated orchestration / enhancement layerAdds curated agents, routing and richer coordination over supported harnesses; not a foundation model.Adds dependency, token and privilege surface. Verify compatibility, version, provider entitlement and subprocess boundaries.
OpenClawPersistent general-purpose assistant / gatewayConnects channels, tools, workspace skills and persistent workflows.High-impact access to messaging and local systems demands isolated runtime, explicit authorization, secrets and install policy.
Hermes AgentExtensible general-purpose persistent agentModel/provider choice, tools, memory and reusable workflows.Treat learned or generated skills and memory as untrusted changes until reviewed; sandbox and monitor side effects.
mini-SWE-agentMinimal software-engineering evaluation agentSmall research-oriented loop useful for understanding harness effects and benchmarking.Benchmark harness is not an enterprise runtime. Add independent isolation and policy.
AgentsView / agent session observabilityAnalyze coding-agent sessionsReview patterns, context use, repeated failures and cost across supported harnesses.Session transcripts can contain proprietary code and secrets. Restrict access, redact and govern retention.

OpenCode versus Pi: pick the layer, not the logo

DimensionOpenCodePi
Design philosophyMore complete configurable coding experienceSmall extensible core that you shape
CustomizationAgents, config, skill discovery, plugins, MCP, provider choiceExtensions, skills, prompt templates, themes, packages
Programmatic useServer and SDK for embedding the runtimeSDK and RPC for embedding the runtime
Best evaluation scenarioCommon coding workflows across multiple teams/providersCustom internal agent or experimental workflow requiring precise composition
Security postureTool/agent permissions and policies; validate independent enforcementAssess supplied and custom extensions; add external sandbox and policy enforcement
Trade-offFeature-rich platform and configuration compatibilityMore design, testing and operational responsibility for your extensions
Model selectionMulti-provider; compare policy and provider entitlementMulti-provider; compatible model capability and provider terms matter
Enterprise adoptionCandidate for standard coding harness, subject to reviewCandidate for building specialized agent products, subject to review
Research / tool radar and official project links
Your turn

Run the same approved synthetic repository task in OpenCode, Pi and one vendor CLI. Pin model/version where possible, use the same test suite and sandbox, record accepted patches, time, model/tool calls, actual token cost and attempted unauthorized actions. Do not compare different models and attribute every difference to the harness.

09 / Use / Productivity

Work assistants and enterprise knowledge

Productivity AI drafts, summarizes, researches and assists analysis. Enterprise copilots may retrieve existing corporate content and invoke business actions. Permission hygiene matters because AI makes previously obscure oversharing easier to discover.

Concept / productWhat it meansArchitect’s notes
Microsoft 365 CopilotWord, Excel, Teams, Outlook, Graph groundingUser-permission-aware retrieval; fix overly broad SharePoint permissions and validate labels.
Copilot ChatChat experience and supported organizational data/featuresSeparate entitlement and capabilities from full M365 Copilot license.
Google Gemini for WorkspaceDocs, Gmail, Sheets and related workflowsWorkspace admin and data controls vary by edition.
Amazon QuickChat, research, insights, flows, automation and agentsBusiness workspace over connected enterprise sources; see Chapter 13.
GleanEnterprise search and assistantConnectors and permission-aware retrieval; validate ACL sync.
NotebookLM / PerplexityResearch and source synthesisVerify evidence and sensitive-data rules; generated citations are not proof.
Notion AI / Atlassian RovoKnowledge and workflow in collaboration platformsScope workspace access, integrations, retention and admin controls.
Design assistantsCanva, Firefly, image/video generationBrand, licensing, likeness consent, source provenance and accessibility review.
Quick check · If Copilot finds an accessible confidential file, did it necessarily bypass RBAC?

No. Existing overly broad source permissions may be the problem; verify the access decision.

Go deeper / research & architecture exercise
Your turn

Review a hypothetical SharePoint site with inherited broad read access. Define a data cleanup and label pilot before enabling AI discovery.

10 / Use / Automation

Workflows, RPA and AI decisions

Traditional automation is predictable when input is structured and rules are stable. AI adds flexible parsing, classification or planning, but introduces uncertainty. Use deterministic validation around probabilistic decisions, especially before external writes.

Concept / productWhat it meansArchitect’s notes
WorkflowTrigger → condition → actionDeterministic orchestration and explicit branching.
RPAAutomates UI actionsUseful for legacy systems; brittle selectors and credential risks.
AI-assisted workflowModel extracts/classifies/summarizesValidate schema, threshold and business rules before applying actions.
Power Automate / Logic AppsMicrosoft connectors and workflowsEnvironment DLP, connection references, managed identities and audit.
n8n / Make / ZapierWorkflow integrationSaaS vs self-host; permissions, data flow, error handling and credential vaulting.
Durable executionRetries, timeout, idempotency, checkpointAvoid duplicate transactions and unbounded loops.
Human approvalRisk-based execution gateShow exact action, target, amount and source; prevent approval reuse or stale approval.
Rollback and kill switchStop, compensate and reconcileSome external actions cannot be undone; restrict irreversible operations by design.
Quick check · Can an AI workflow safely send invoices on every retry?

Not without idempotency and verification of the intended action.

Go deeper / research & architecture exercise
Your turn

Design a ticket-routing workflow with an ML classifier, schema validator, manual queue for uncertain items and audit events.

What is trending in automation architecture?

Technique / platformWhere it fitsControl considerations
Persistent agents: OpenClaw / HermesLong-lived tasks, connected workflows, recurring contextSeparate accounts, review scheduled actions, revoke scopes, protect memory and logs.
Coding harness as general agent runtimeReuse tool loop and environment via SDK/RPC/serverValidate isolation and non-coding tool permissions, not only developer UX.
Programmatic tool calling / Code ModeExecute constrained code to combine tool calls efficientlyUse sandboxed execution, per-tool authorization, output validation and resource limits.
Agent workflow engines: LangGraph / Temporal / n8nStateful agent flows or durable deterministic executionChoose based on state recovery, idempotency, human gates and operational ownership.
Skill registries and enterprise harnessApproved workflow packages shared across different agentsReview, sign or pin packages; track owner, versions, distribution and revocation.
Agent observability and evaluationTrace failures, costs, actions and model upgradesProtect telemetry; measure business outcomes and independent security controls.
11 / Build / Agents

Designing agents, MCP and tools

An agent is a system that selects actions toward a goal, using a model, context, tools and execution state. The model is a planner, not the trust authority. An orchestrator enforces boundaries independently. MCP standardizes interaction between hosts/clients and servers exposing capabilities; it does not itself grant permissions.

Interactive diagram / select a node

Agent trust boundary

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Agent componentsModel, system instructions, memory, tools, executor, policiesEach boundary has separate owners, credentials and failure modes.
Function callingModel requests structured function invocationServer validates arguments and authorizes action; output is untrusted.
MCPProtocol for resources, prompts and toolsAuthenticate endpoints, scope tokens, vet servers and inspect tool schemas.
A2AAgent-to-agent communication patternsTrust and task delegation across systems require explicit identity and authorization.
MemorySession state, durable stores, retrievalIsolate users and tenants; retention, deletion and provenance controls.
Agent autonomyRead-only, draft, approval-based write, autonomous writeHigher impact requires stronger control, budgets, monitoring and stop conditions.
Tool policyAllowlist, schema, scope, target, action authorizationEnforce outside the model and on destination service.
Human-in-loopApproval for sensitive actionsBind approval to immutable parameters and expiry; handle rejection safely.
Agent frameworksLangGraph, Semantic Kernel, AutoGen, OpenAI Agents SDK, CrewAICompare state, durability, observability and integration; frameworks aren't policy engines.
Agent designersCopilot Studio, Dify, Bedrock Agents/AgentCore, Vertex agent servicesLow-code vs code; inspect identity defaults, environment and tool governance.
Lab 04 · agent action authorization

Would you let this agent execute?

Simulated policy: delete is always denied, read is allowed only with valid identity/intent/budget; ticket creation requires write mode and, for approval mode, bound approval. Real service authorization is additional.

Quick check · Does MCP guarantee least privilege?

No. MCP standardizes interactions; authentication, authorization and trust must be designed and verified separately.

Go deeper / research & architecture exercise
Your turn

Use the agent action lab to compare read-only, approved write and compromised retrieved instructions. Specify a kill switch and max step count.

November 2026 / Agent engineering

Model, agent, harness, skill: get the vocabulary right

The harness is the runtime that turns model output into a working loop. Think of the model as the reasoning engine, the skill as a reusable playbook, the harness as the operating environment, and the agent as the combined system acting toward a goal. The terms harness and scaffolding overlap in industry usage; this Fieldbook distinguishes runtime mechanics from behavioral workarounds.

Interactive diagram / select a node

One agent, several independent layers

Select a layer to inspect its responsibilities.
LayerMeaningWhy it matters
Foundation modelLearned parameters producing predictions or generated outputThe reasoning engine; may propose actions but cannot by itself execute real-world tools.
AgentGoal-driven system using model, context, execution state and actionsAn operational system, not simply a chatbot persona or the LLM weights.
HarnessRuntime wrapper that manages the model/tool loop, execution, state and boundariesCalls the model, dispatches tools, handles failures, stopping, approvals and telemetry; use external enforcement for high-risk actions.
ScaffoldingBehavioral support: instructions, planning prompts, context structure, retries and decompositionSome scaffolding becomes redundant with stronger models; distinguish it from authorization and runtime reliability.
SkillReusable packaged task instructions, examples, references and optional scripts; often SKILL.mdTeaches a workflow or domain convention on demand. It does not grant a tool permission or change model weights.
AGENTS.md / CLAUDE.md / rulesRepository or workspace guidance loaded according to the host’s rulesProject conventions and recurring constraints. Location and precedence are host-specific; instructions are not a security boundary.
Tool / functionCallable capability, usually with a structured schemaActual execution and downstream authorization are separate from the model’s request.
MCP serverStandardized integration exposing tools, resources and promptsConnects agent clients to capabilities; does not establish trust automatically.
ACPAgent Client Protocol for client-to-coding-agent integrationDifferent from MCP (agent-to-tool) and A2A (agent-to-agent collaboration); verify exact protocol and implementation.
SubagentDelegated task-specific agent with its own context and possibly distinct toolsCan reduce context pressure or parallelize work; creates additional trust and budget boundaries.
Plugin / extensionExecutable host customization or bundled integrationsOften broader authority than a text skill. Treat as software supply-chain dependency.
Orchestrator / meta-harnessCoordinates agents, model routing, scheduling and workflowsUseful for durable execution or independent jobs; not automatically better than a capable single agent.
MemoryPersisted or session-scoped information beyond immediate taskNot the same as training; control provenance, tenant/user scope, retention and deletion.
Context engineeringSelecting, ordering and refreshing the information available to the modelInclude relevant documents, state, tool results and instructions; reduce noise and manage compaction.
Prompt engineeringDesigning the specific model request and instructionsA subset of context engineering; measure behavior rather than optimizing verbosity.
Harness engineeringDesigning the environment, tools, feedback loops and controls that enable reliable actionMake tasks legible and independently verifiable: tests, typed tool schemas, constraints, traces and feedback.
Agent evaluationEnd-to-end testing of model, harness, tools and environmentMeasure task completion, regression, latency, cost, policy violations and adverse outcomes; model benchmark is not the deployed agent benchmark.

What a skill actually looks like

A portable pattern is a folder containing a SKILL.md manifest and optional resources or scripts. The host may discover the name and description first, then load full instructions when needed. This progressive loading reduces context overhead. Discovery, precedence, permission and execution rules vary by host.

---
name: review-infrastructure-change
description: Review a proposed infrastructure change against the approved control checklist.
---
1. Read the change request and approved scope.
2. Inspect the diff without modifying it.
3. Run only approved read-only checks.
4. Report findings, evidence and unresolved risks.
5. Escalate production writes to the authorized reviewer.

Are harnesses, skills and agents going away?

Not as a general rule. The trend is a shift away from brittle, hand-written behavioral scaffolding toward more capable models and reusable runtimes. Stronger models may need fewer planning prompts, fewer examples and less elaborate routing; some implementation detail moves into the model provider or a mature harness. Yet coding harnesses are increasingly being embedded in general-purpose agent systems. The November 2026 Thoughtworks Radar identifies this as an emerging technique. A more capable agent can also cause more consequential side effects, so execution boundaries and accountability become more important, not less.

Layer / techniqueLikely direction as models improveArchitect’s decision
Hand-written chain-of-thought prompts / rigid plan templatesLess necessary when reasoning and planning improveTest removing them; do not expose private reasoning or equate fluent plans with correctness.
Manually scripted tool selection and parsing workaroundsMay shrink with native structured tool calling and better selectionKeep schema validation and authorization on every actual action.
Multi-agent debate / fixed manager-worker teamsOften optional for simple tasks as a single agent improvesKeep parallelism or independent review when measured value or separation of duties justifies it.
Verbose generic skillsCan become redundant if they merely reteach common capabilitiesRetain organization-specific workflows, changing facts, examples and regulated procedures.
Manual context packingSome selection/compaction delegated to capable runtimesKeep privacy filtering, retrieval ACLs, provenance, freshness and token limits.
Custom retry/planning frameworkMay shift into mature managed or open-source harnessesRetain durable checkpoints, idempotency, retries, timeout and failure handling.
Identity, access control, sandbox and network policyNot replaced by model reasoningEnforce at runtime and destination; better planning can increase impact of a compromised agent.
Approval, audit, budgets, kill switchNot replaced by a more capable modelRequire independent checks for sensitive actions, evidence and accountable risk ownership.
RAG and trusted external dataNot universally replaced by larger models or longer contextCurrent proprietary data, citations, deletion and authorization are system requirements.
Deterministic business workflowStill useful regardless of model capabilityUse a workflow for stable rules; use a model for uncertainty, not for every decision.

Harness engineering vs prompt engineering: enterprise example

ScenarioFragile approachMore robust approach
IAM access request triageA long prompt telling a model to follow every policyRetrieve current approved rules; model classifies request; deterministic workflow validates owner and eligibility; reviewer authorizes grant.
Repository modernizationMany hard-coded agents debate each editUse a capable coding harness, scoped repo, tests and focused skills; parallelize independent work only where evaluation supports it.
Model upgradeAssume improved benchmark makes all skills obsoleteA/B test old/new model and harness; remove redundant hints; retain domain policies, approval and security controls.
Long-running taskRerun from scratch whenever model times outDurable state, bounded retries, idempotency, checkpoints, human escalation and audit.
Tool marketplaceInstall popular community skill or plugin immediatelyPin reviewed versions, inspect code and dependencies, constrain execution, log tool changes and retest.

Agent stack patterns: from simplest to complex

PatternWhen to useWhen to avoid
Single model call + RAGRead-only question answering or classificationIf task requires reliable external writes or long-running recovery.
Deterministic workflow + model stepPredictable business process with a fuzzy inputIf a completely deterministic rule already solves the task.
Single agent + mature harnessOpen-ended investigation, coding, iterative tool useFor narrow work where cost and variance exceed benefit.
Multiple agents / parallel workersIndependent research, separate execution jobs, specialized contextsWhen duplicated context, coordination cost and inconsistent state exceed measured quality gains.
Persistent personal or enterprise agentScheduled tasks, recurring assistance, long-lived workspaceWithout durable authorization, revocation, audit and separation between users.
Managed harness / SDKNeed reliable existing runtime with integration pointsIf required controls, tenancy or data processing cannot be validated.
Custom harnessUnique regulatory, execution or platform requirementsWhen a supported mature runtime provides equivalent control at lower maintenance cost.
Research / Agent Skills, harness engineering and emerging architecture
Your turn

Design a read-only IAM change reviewer using a reusable skill and a mature harness. Run a controlled model upgrade experiment with the same authorized tools, tasks and environment. Remove generic scaffold instructions one at a time; measure success, token cost, latency, policy violations and failure recovery. Never remove independent security gates merely because the model passes a prompt test.

12 / Build / Infrastructure

Where AI actually runs

Training and inference have different compute profiles. A GPU/accelerator executes matrix operations, memory holds weights and cache, and serving infrastructure batches requests. Model hosting requires reliability, access control, supply-chain management and observability.

Concept / productWhat it meansArchitect’s notes
CPU vs GPU/TPUGeneral compute vs acceleratorsSmall quantized models can run on CPUs; GPU throughput depends on workload, memory and hardware.
VRAM estimateParameters × bits / 8, plus overheadA 7B model at 4-bit has ~3.5GB raw weights; KV cache, activations and runtime increase memory.
KV cacheAttention history reuseConsumes memory with context length, concurrency and model structure.
Inference servicevLLM, TGI, llama.cpp, OllamaCompare production scale, scheduling, supported formats, isolation and observability.
Hosted APIVendor serves modelsFast integration; evaluate provider data terms, network, rate limits and availability.
Managed cloudFoundry, Bedrock, Vertex AIPlatform controls and model choices; not identical contracts or residency.
Self-hostOwn VMs, Kubernetes, bare metalGreater deployment control; responsibility for patching, inference security and scale.
GatewayAuth, routing, quota, policy, telemetryEnforce tenant isolation and model allowlists; avoid unsafe raw prompt logs.
MLOps / LLMOpsRegistry, evaluation, release, trace, driftVersion prompt/model/index/tool configurations together.
Lab 05 · memory estimator

Can the weights fit?

Decimal GB only. Raw size plus user-selected overhead is a planning approximation, not a fit guarantee; measure actual KV cache and runtime needs.

Quick check · Does 4-bit quantization mean total VRAM equals only raw parameter size?

No. Cache, runtime, metadata and activations add overhead.

Go deeper / research & architecture exercise
Your turn

Estimate raw weights for 7B, 32B and 70B parameters at 4/8/16 bits. Add a realistic headroom assumption and run your own memory measurement.

Model choice is separate from harness choice

ComponentExamples / purposeEnterprise consideration
Local model serverOllama, llama.cpp, LM StudioLocal inference can reduce external data flow but requires approved weights, patching and endpoint protection.
Production inference servingvLLM and managed model endpointsMeasure concurrency, KV cache, latency, resilience and tenancy.
Model routing / gatewaysLiteLLM, OpenRouter and managed cloud gatewaysVerify supported model/provider routes, data terms, quotas, logging and regional processing.
Agent harnessOpenCode, Pi, Codex, Claude Agent SDKSelect independently from provider where supported. Verify exact model/tool compatibility and permitted credentials.
Evaluation toolingInspect AI, promptfoo, Langfuse, agent tracesMeasure the complete configuration rather than an isolated model; protect test data and traces.
13 / Enterprise / Enterprise platforms

Foundry, Bedrock, Vertex and Amazon Quick

Choose the layer first: business application, model development/serving, or agent execution. Amazon Quick (introduced as Quick Suite) combines business insights, research and automation; Bedrock is a model and application platform; AgentCore provides agent runtime and related capabilities. None is a direct equivalent to all of Microsoft 365 Copilot.

Interactive diagram / select a node

Enterprise service layers

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Microsoft FoundryModel catalog, evaluations, agent development and fleet governanceBuild custom AI applications; project/resource boundaries and Entra identities.
Azure Machine LearningML experiments, registry, training and endpointsTraditional ML and custom models; overlaps with Foundry for lifecycle.
Amazon BedrockManaged foundation models, knowledge bases, evaluations and guardrailsModel and app platform; IAM, resource controls, region-specific features.
Bedrock AgentCoreAgent runtime, identity, gateway, observability, policy and related servicesRun/govern agent workloads; validate specific feature support.
Amazon SageMaker AIML training, deployment, registry and MLOpsDifferent from Bedrock model API; Clarify availability changing (existing customers; check migration docs).
Google Vertex AIModel Garden, training, prediction and agent developmentGoogle Cloud project/IAM boundary and evaluation tools.
Amazon Quick SightBI dashboards and analyticsEarlier QuickSight branding; part of Quick's capabilities.
Amazon Quick ResearchInternal and public-source researchValidate citations, connected-source permissions and data handling.
Quick Flows / Quick AutomateWorkflow automation and agent-assisted business processesDistinguish deterministic workflow from contextual agent actions; audit approvals.
Amazon Quick spaces / agentsKnowledge collaboration and business assistanceIdentity propagation, data sources, action connectors and admin scope.
Amazon Q BusinessExisting enterprise search/assistant service and integrationsExisting customers may continue or use Q index with Quick; check service availability.
Databricks Mosaic AI / Snowflake Cortex AIAI over data platformGoverned data access and model-serving patterns; evaluate within existing data estate.
Quick check · Should Quick be treated as AWS's equivalent of Bedrock?

No. Quick is a business-facing workspace; Bedrock is a model/application platform and AgentCore supports agent execution.

Go deeper / research & architecture exercise
Your turn

Map a finance analyst needing dashboards, a developer building custom RAG, and a team deploying a managed agent to their appropriate service layers.

14 / Govern / Identity

Human, workload and agent identities

Authentication proves an identity, authorization permits an action, and governance determines who should have access and why. A model is not the identity. A runtime or agent acts through a principal. Separate delegated user actions from application-only actions and explicitly bind delegation to the user context.

Interactive diagram / select a node

Delegated vs app-only

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Human userInteractive sign-in with MFA and risk controlsAccount lifecycle and approval; don't share identities.
Application registration / service principalApplication definition and tenant-local identityPermissions and credentials; app consent can be high impact.
Managed identityPlatform-managed workload credentialNo manually stored secret; authorization still required.
Federated workloadOIDC token exchangeScope issuer, audience, subject; avoid static secrets.
Agent identityDistinct principal where supportedOwner/sponsor, classification, lifecycle and risk; not every framework provisions one.
Delegated / OBOActs on behalf of userUser and application permissions plus service-specific evaluation; downstream access should preserve context.
App-onlyRuntime operates as itselfLeast-privileged scoped grants and separate authorization for job; no automatic user intersection.
AWS role / STSAssumed temporary principalTrust policy plus identity/resource policies; session attribution and expiry.
Agent-to-agentDelegated service callsAudience-scoped tokens, explicit trust, provenance and no uncontrolled transitive delegation.
Quick check · Is an agent with a user-facing UI automatically delegated?

No. It may call downstream services using application-only credentials unless delegation is designed.

Go deeper / research & architecture exercise
Your turn

Draw user → agent → MCP → API. Mark principal, audience, token lifetime, resource permission and audit identifier on every hop.

15 / Govern / Entra controls

Agent ID, CAP, Governance and PIM

Entra is the identity and access layer. Its controls address different points: creation and ownership, authentication conditions, authorization entitlement, privileged access and lifecycle. They are not content filters or a universal AI inventory. Verify tenant licensing, supported identity type and rollout state before enforcing.

Interactive diagram / select a node

Entra control layers

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Entra IDDirectory and identity authorityUsers, groups, apps, agents; directory roles are separate from Azure RBAC.
Agent ID blueprintTemplate/configuration governing agent creationBlueprint principal and agent identities are distinct; validate creator permissions and tenant trust.
Agent identityPrincipal representing an agentAuthentication, metadata, owners/sponsors; Foundry projects may share a default agent identity unless configured otherwise.
Agent user accountUser-like identity where supportedSeparate from agent identity; targeting blueprint does not necessarily target agent user.
Workload IDNon-human app/service principal protectionsWorkload CA eligibility and scope differ; do not assume managed identities or every SP supported.
Conditional AccessEvaluate token issuance context/riskTarget supported user, agent or workload identities; different conditions and licenses; not payload inspection.
ID ProtectionRisk detection and risk-based responseSupported user/agent/workload signals vary; high-risk blocks need validated recovery.
ID GovernanceLifecycle, access packages, reviews, sponsorsAutomate entitlement and recertification; configure supported agent targets and actual deprovisioning.
PIMEligible administrative roles and activationFor supported human/admin roles and scopes; not a generic per-tool approval system for agents.
Consent / app governanceReview delegated and application permissionsRestrict user consent, admin approval, verify publisher and scopes; monitor grants.
Global Secure AccessIdentity-aware network/web controlsSupported traffic paths, agent web access and policies; not universal runtime prompt protection.
Sign-in and audit logsIdentity events and configuration changesSend to SIEM; separate from model traces and tool actions.
Quick check · Does a policy targeted at an agent blueprint automatically cover its agent user account?

No. Microsoft documents separate coverage; inspect both identity types and policy targets.

Go deeper / research & architecture exercise
Your turn

Inventory three agents (autonomous, delegated, shared Foundry project). Design sponsor review, allowed scopes, CA blocking strategy, break-glass and token/audit validation.

16 / Govern / Microsoft stack

Entra is not the whole governance story

Microsoft's AI governance is layered across identity, data, threat protection, AI engineering and agent administration. Agent 365 integrates management of supported agents, while Foundry governance manages AI fleets in its platform. Licensing and supported integrations must be confirmed; no dashboard magically covers arbitrary agents.

Interactive diagram / select a node

Microsoft defense in depth

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Agent 365Enterprise agent registry/control planeInventory, management, supported integration with Entra, Purview and Defender; check current licensing.
Foundry governanceFleet/project management, evaluation and deployment visibilityFormer Foundry Control Plane; use AI Gateway for supported traffic controls.
Copilot Control System / M365 adminAdmin settings and management of Copilot experiencesUsage, availability, policies and managed agents; not an IdP.
Copilot Studio / Power PlatformAgent design, environments, connector DLP, publishingGovern connectors, channels and environment roles; test action identity.
Purview DSPM for AIDiscover data exposure and AI-related postureInsights and remediation; scope depends on app/integration.
Purview Information Protection / DLPLabels, sensitive data policy and supported processing controlsProtect data and govern supported AI interactions; not universal interception.
Purview Audit / eDiscovery / retentionCompliance investigation and retentionValidate events, licenses and searchable scope; minimize raw content retention.
Defender for Cloud AppsSaaS discovery and session/app controlsShadow AI visibility for supported paths; coverage not universal.
Defender for CloudCloud workload and AI posture/threat protectionCSPM, supported AI workload protections and risks; verify plans and cloud coverage.
Defender XDR / Agent 365 runtime protectionThreat detection and response across supported signalsRuntime agent protection features may be preview; check status and action support.
Azure AI Content Safety / Prompt ShieldsInput/output safety and injection signalsDetection is imperfect; layer independent authorization and validation.
Azure API Management AI gatewayCentral request routing, policy, quotas, observabilityTraffic must flow through gateway; not identity governance or GRC.
SentinelSIEM and SOARCorrelate identity, data, model and action logs; design connectors and response.
Quick check · Does Purview DLP replace Entra Conditional Access?

No. They enforce different control layers (data handling vs identity access).

Go deeper / research & architecture exercise
Your turn

Build a control matrix for M365 Copilot, a Foundry RAG service, Copilot Studio agent and external SaaS. Mark coverage, license, evidence and blind spots.

17 / Govern / AWS controls

Govern AI across accounts and workloads

AWS AI controls combine Organizations, IAM, Bedrock, AgentCore, monitoring, data and independent assurance. The account boundary is distinct from a model endpoint, and model safety rules do not replace IAM or source ACLs.

Interactive diagram / select a node

AWS AI defense in depth

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Organizations SCP / RCPPrincipal and supported resource permission ceilingsApply to member accounts/supported resources; no permission grant; verify exceptions.
IAM / Identity CenterWorkforce and workload accessScoped roles, trust policies, session limits, conditional grants.
Bedrock model access / model invocation permissionsAuthorized use of model endpointsControl regions, models and inference profiles with applicable IAM and service settings.
Bedrock GuardrailsSupported prompt/output safety, sensitive data and other filtersApply on intended path; explicit integration where necessary; does not enforce all authorization.
AgentCore identity / gateway / policyAgent authentication, tool mediation and authorization featuresVerify support and runtime enforcement; constrain tool arguments and target resources.
Bedrock evaluationsModel/RAG quality and safety evaluationTrack data, evaluator settings, model versions and results.
SageMaker registry / model cardsML model lifecycle evidenceApproval stages, metadata and release controls; verify Clarify migration and new-customer availability.
Macie / KMS / Secrets ManagerData discovery, keys, secretsMacie scope is S3; KMS policies and key use; avoid logging secrets.
CloudTrail / CloudWatchAPI and operational telemetryEnable relevant event categories and invocation logging selectively; assess PII and cost.
Security Hub / GuardDuty / InspectorPosture, threat and vulnerability findingsValidate supported AI infrastructure coverage; not a full prompt firewall.
AWS Config / Audit ManagerConfiguration evidence and audit workflowsEvidence not compliance guarantee; assess operational effectiveness.
Quick check · Does Bedrock Guardrails automatically protect every self-hosted model?

No. The application must route through a supported integration or explicitly apply the guardrail.

Go deeper / research & architecture exercise
Your turn

Design a multi-account Bedrock deployment with separate platform/logging/workload ownership, controlled inference models and a tool policy. Test a denied action.

18 / Govern / Independent stack

Governance beyond Microsoft and AWS

Choose controls by capability rather than vendor logo. GRC workflows, model observability, shadow AI discovery, runtime security, gateways and red teaming solve different problems. Vendor products may bundle multiple capabilities, so validate exact editions and deployment paths in a proof of concept.

Concept / productWhat it meansArchitect’s notes
IBM watsonx.governanceModel lifecycle, risk/compliance and monitoringComplement with runtime security if required; verify integrations.
ServiceNow AI Control TowerAI inventory, governance and enterprise workflowUseful for risk/approval ownership and lifecycle integration.
Credo AIAI registry, policy and risk evidenceMap frameworks and approvals; validate enforcement integrations.
OneTrust AI GovernanceRisk workflows, inventory, privacy and assessmentVerify data flow and technical evidence integration.
Holistic AI / ModelOp / SaidotModel governance, assessment, lifecycle and assurance (vary)Compare regulated-use coverage, model types, evidence and connectors.
Cranium AI / Relyance AIAI risk discovery/inventory and related governanceValidate visibility and data-lineage coverage.
Cisco AI DefenseAI discovery and security controlsAssess runtime enforcement path and red-team coverage.
Palo Alto Prisma AIRSAI security and runtime protectionVerify deployed models, traffic path and exact modules.
Check Point Lakera / HiddenLayerAI runtime safety and model security capabilitiesSeparate prompt filtering, model artifact scanning and threat detection.
Prompt Security / WitnessAI / NomaAI usage visibility and security, varying by productEvaluate SaaS, browser, network, agent and gateway coverage individually.
Google Vertex governance / Model ArmorPlatform lifecycle and runtime filteringComplement Cloud IAM, VPC SC, DLP/Sensitive Data Protection and logging.
Databricks Unity CatalogData/model catalog, access governanceAI lifecycle evidence and platform data access; external runtime coverage varies.
MLflow / Langfuse / Arize PhoenixOpen-source/hosted experiment and tracing/evaluation toolsProtect traces; not full GRC or IAM.
OPA / Cedar / OpenFGAPolicy-as-code or relationship authorizationIntegrate at enforcement point; policy data and evaluation correctness matter.
LiteLLM / Kong / PortkeyAI gateway and routing optionsVerify quotas, key handling, policy bypass, privacy and availability.
PyRIT / garak / promptfooAuthorized red-team and regression testingTesting tools do not automatically block production attacks.
Quick check · Can an AI registry alone prevent prompt injection?

No. It tracks assets/ownership; runtime controls and application design must handle adversarial inputs.

Go deeper / research & architecture exercise
Your turn

Run a capability-based RFP. Require evidence for discovery, policy workflow, identity integration, data protection, runtime blocking, evaluations and audit export.

19 / Govern / Threats

What can go wrong with AI?

AI introduces new attack surfaces on top of conventional application, identity and supply-chain security. Threat model the model, retrieved data, tools, credentials, state, deployment pipeline and users. Attack categories overlap; mitigations need enforcement and verification outside the model.

Interactive diagram / select a node

Indirect injection path

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Direct prompt injectionUser input tries to override instructionsInput classification, bounded model role, enforce actions independently.
Indirect prompt injectionUntrusted retrieved document/site/tool result carries instructionsSeparate data from instructions, source provenance, read-only by default, tool authorization.
Jailbreak / safety bypassAttempts to defeat safety behaviorDefense in depth, evaluate abuse cases, monitor; filtering alone not sufficient.
Data leakageSensitive prompt, output, logs or memory exposedMinimize data, ACL trim, DLP, tenant isolation, retention, safe tracing.
Poisoning / backdoorCompromised training, fine-tuning or retrieval corpusProvenance, signing, review, trusted pipeline and version rollback.
Adversarial examples / evasionInputs manipulated to change predictionRobustness tests, model monitoring, independent validation and safe fallback.
Extraction / inferenceRecover model behavior or infer sensitive training informationRate limits, output minimization, privacy testing and access controls.
Excessive agencyAgent has dangerous authority or unbounded loopsScope tools, budgets, approvals, timeouts, kill switch and idempotency.
Improper output handlingGenerated content treated as trusted executable dataValidate schema, encode output, parameterized queries, sandbox commands.
MCP / tool supply chainUntrusted server or misleading tool descriptionVet server, authenticate, pin versions, constrain tokens, inspect arguments.
Model artifact supply chainMalicious packages, weights or unsafe deserializationTrusted origins, signed digests, safe formats, scans, isolated load.
Denial of wallet / serviceUnbounded tokens, requests or agent stepsRate limits, cost ceilings, concurrency and max-step limits.
Deepfake / social engineeringGenerated impersonation or deceptive contentIndependent verification for high-risk requests, provenance signals and training.
Quick check · If retrieved text tells an agent to send a file, is that valid authorization?

No. Only trusted policy and independently authorized user intent can authorize a tool action.

Go deeper / research & architecture exercise
Your turn

Run only the built-in synthetic injection demo. List the preventive, detective and responsive controls for that scenario; never test real systems without permission.

Agent harness and skill supply-chain risks

Attack / failure modeWhat can happenControl
Poisoned SKILL.md / workspace instructionsMalicious instructions alter planning or request unauthorized actionsReview provenance and changes; isolate untrusted repository content; enforce tool permissions.
Malicious extension or pluginExecutable code may access credentials, files or network within its runtime authoritySoftware inventory, source review, pinned versions, restricted sandbox, egress controls and secret isolation.
MCP tool description poisoningUntrusted metadata tries to redirect agent behavior or cause unexpected callsApproved servers and schemas, tool-level authorization, update review and bounded execution.
Memory contaminationUntrusted content is persisted and later treated as authoritative guidanceProvenance, memory write policy, segregation and deletion; review generated skills.
Subagent privilege driftDelegation widens access or bypasses original approvalPass scoped identity and immutable intent, enforce child permissions and downstream policy.
Compaction or context lossCritical constraints disappear during long task or retryPersist mandatory policy outside prompts; rehydrate approved task state and verify each action.
Cost / resource exhaustionRecursive loops, fan-out or repeated tool failures consume budgetIndependent step, time and spend limits; cancellation, quotas and escalation.
20 / Govern / Standards

Threat frameworks, assurance and law

Standards, guidance, laws and threat taxonomies are not interchangeable. Use them for different tasks: adversary modeling, application risks, management system, risk assessment, control evidence, legal obligations. Determine applicability with legal and compliance specialists.

Interactive diagram / select a node

Frameworks are not equivalents

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
MITRE ATLASThreat knowledge base for AI systemsTactics, techniques, case studies; map adversarial behavior to detection and mitigation. Complement MITRE ATT&CK for traditional infrastructure.
OWASP LLM Top 10 (2026)Application risk categoriesCurrent guide for GenAI application risks, distinct from 2025 edition. Use official taxonomy/version rather than static identifiers.
OWASP Agentic Top 10 (2026)Agent system risksGoal hijacking, tool misuse, identity/privilege abuse, trust and cascading failures among risk themes; verify official names.
NIST AI RMF 1.0Voluntary risk frameworkGovern, Map, Measure, Manage; iterative across lifecycle.
NIST AI 600-1Generative AI profile of AI RMFGenAI-specific risk and recommended actions.
ISO/IEC 42001:2023AI management system requirementsOrganization-level AIMS; can support certification against scoped management system.
ISO/IEC 23894:2023AI risk management guidanceRisk-specific guidance; not same as certifiable AIMS.
ISO/IEC 42005AI system impact assessmentSupport assessment of affected parties and impacts; verify current edition.
ISO 27001 / 27701Information security / privacy managementComplement AI-specific governance; maintain scope and evidence.
CSA AI Controls Matrix / AI security guidanceCloud/AI control referenceMap technical and organizational controls; assess relevant edition.
EU AI ActBinding regulation where applicableRisk-based obligations, provider/deployer roles, prohibited practices and GPAI rules. Verify consolidated legal text and phased dates; proposals are not law.
GDPR / local privacy lawPersonal-data obligationsLawful basis, purpose, minimization, transfer, rights and impact assessments where required.
Malaysia AIGEMOSTI 2024 National Guidelines on AI Governance and EthicsSeven ethical principles: fairness; reliability/safety/control; privacy/security; inclusiveness; transparency; accountability; human benefit/happiness. Voluntary guidance; PDPA and sector requirements separate.
Singapore Model AI Governance FrameworksTraditional AI, GenAI and Agentic AI (Jan 2026)Human accountability, risk assessment, bounded agents, meaningful human control and lifecycle assurance; guidance not blanket law.
Singapore AI Verify / Project MoonshotTesting and assurance resourcesEvaluate supported characteristics; does not certify all behavior.
ASEAN Guide on AI Governance and EthicsRegional voluntary guidance and GenAI expansionCross-border reference; national and sector laws still apply.
Quick check · Can certification to ISO 42001 establish that every AI response is safe?

No. It concerns the scoped management system; evaluate operational controls and actual system behavior.

Go deeper / research & architecture exercise
Your turn

Map one use case to ATLAS threat scenarios, OWASP risks, NIST functions, ISO AIMS evidence and jurisdiction-specific duties.

21 / Govern / Risk

Inventory, impact and third-party assurance

An AI risk assessment starts with what the system does, whose data it uses, who can be affected and what authority it has. Risk classification should drive approval, evaluation and monitoring, not merely label a model. Separate inherent risk from residual risk after controls.

Concept / productWhat it meansArchitect’s notes
AI inventoryUse case, model/version, data, owner, users, purpose, tools, region, vendorInclude shadow AI, copilots, vendor-embedded AI, experimental workloads and agents.
Risk tiersLow, moderate, high, prohibited under organizational rulesBase on data sensitivity, consequence, autonomy, scale and obligations.
Impact assessmentAffected people, decisions, fairness, privacy and safetyIdentify human review, recourse, disclosures and mitigation.
Vendor due diligenceDPA, retention/training, residency, subprocessors, security evidenceContract terms and technical settings both matter; review exit strategy and change notification.
Model/data supply chainProvenance, license, SBOM/model card, versionEvaluate dependency, training data rights and update policy.
Threat modelAssets, trust boundaries, adversary and abuse casesMap ATLAS/OWASP to concrete flows; document control and evidence owner.
Exception handlingRisk owner, scope, expiry, compensating controlsAvoid indefinite untracked waivers; re-assess after changes.
Shadow AIDiscover unapproved usage through permitted telemetryProvide approved alternative, communicate policy and protect privacy.
Quick check · Can the same model have different risk tiers?

Yes. A read-only internal FAQ and an autonomous payment agent have different impacts and permissions.

Go deeper / research & architecture exercise
Your turn

Create a one-page AI inventory record and risk assessment for an HR assistant. Identify prohibited decisions, owners, evidence, retention and escalation.

22 / Enterprise / Deploy

From pilot to production

Start with value and risk, not a model license. Establish a landing zone and policy baseline, choose use cases, evaluate, pilot, govern expansion and operate. Production AI needs normal reliability engineering plus model-specific testing and controls.

Concept / productWhat it meansArchitect’s notes
IntakeBusiness outcome, data classification, impact, accountable ownerChoose simple automation vs ML vs LLM vs agent deliberately.
Architecture reviewData flows, model path, IAM, isolation, egress, loggingThreat model and privacy assessment; approvals before sensitive processing.
Landing zoneSeparate dev/test/prod, identity, keys, network, log sinkPrivate endpoints where appropriate, resource limits and regional requirements.
BuildApproved model, prompt/index/tools, evaluation setVersion artifacts; maintain safe defaults; no persistent admin credentials.
PilotLimited users and data, read-only where practicalMeasure utility, feedback and safety; monitor incidents and failure modes.
Release gatesPerformance, security, privacy, resilience, risk acceptanceIndependent review, canary, rollback and documented exceptions.
Production operationsSLOs, model/version changes, continuous evaluationTrack token use, output quality, drift, incidents and access recertification.
RetirementDisable identities/tools, delete data by policy, revoke credentialsArchive required audit evidence; check dependencies and legal holds.
Quick check · What should precede broad rollout?

A scoped pilot, documented risk review, control validation and explicit release approval.

Go deeper / research & architecture exercise
Your turn

Draft 30/60/90-day plan for a read-only knowledge assistant, then add controlled ticket creation as a separate risk change.

23 / Govern / SOC

AI security operations and detection

AI monitoring must connect identity, model, retrieval and tool events. Logs should support attribution without retaining every sensitive prompt. Define correlation IDs, security telemetry, privacy constraints and response runbooks. Revoke future access and address already-issued sessions separately.

Concept / productWhat it meansArchitect’s notes
Identity logsEntra sign-in/audit, AWS CloudTrail, IdP eventsTrack agent principal, token context, consent and entitlement changes.
Model invocationModel/version, tenant, status, tokens, latency, policy outcomesAvoid raw sensitive prompts by default; controlled sampling and restricted access.
RAG tracesQuery ID, document IDs, ACL decision, index versionDo not copy confidential text into broadly accessible logs.
Tool/action logsRequested and approved arguments, caller, destination, outcomeHash/redact sensitive fields; use correlation ID and approval binding.
Detection use casesUnexpected privilege, unusual tool action, denied document, budget spikeCorrelate multiple signals; tune false positives and verify alerts.
Incident responseTriage, containment, evidence, eradication, recoveryDisable agent or tool, revoke supported credentials/sessions, isolate index or model, rollback; prioritize active harm.
Red teamAuthorized adversarial evaluationSynthetic data and scoped targets; document repro, impact and fixes.
SIEMSentinel, Splunk, Chronicle/Google SecOps and other SIEMsNormalize events, guard log access, automate scoped response with human approval where needed.
Quick check · Does disabling an agent identity always invalidate already-issued tokens immediately?

No. Revocation behavior varies; revoke or constrain sessions/resources and verify enforcement.

Go deeper / research & architecture exercise
Your turn

Design a detection for an agent attempting a tool write after its sponsor revoked approval. Define events, correlation fields and response gates.

24 / Govern / Operating model

Accountability, policy and evidence

AI governance is a continuous management system, not just a technology procurement. Assign business ownership, platform operations, data stewardship, IAM, security, privacy, legal and risk oversight. Decision rights must stay clear even when actions are automated.

Concept / productWhat it meansArchitect’s notes
Business ownerAccountable for purpose, benefit and impactOwn use case, approve changes, validate outputs and define escalation.
AI platform teamResponsible for approved endpoints, registry and deliveryStandard templates, versioning, evaluation, availability and costs.
IAM / securityResponsible for identity, threat model and security controlsLeast privilege, consent, runtime policy, SOC, emergency isolation.
Data owner / stewardAccountable for permitted data useClassification, ACLs, retention, provenance and deletion.
Legal / privacy / complianceConsulted and responsible within mandateDetermine applicability, contractual terms, DPIA, disclosures and evidence.
Risk owner / committeeAccepts residual risk within authorityTime-bound approvals, exceptions, escalation and periodic reviews.
Internal auditIndependent assuranceTest design and operating effectiveness; not owner of technical controls.
PoliciesAcceptable use, approved models, data handling, agent actions, testingDefine what is allowed, by whom, evidence and enforcement mechanisms.
KPIs/KRIsUsage, quality, incidents, policy denials, cost, drift, review overdueMeasure trends and thresholds; don't incentivize hiding reports.
Evidence packInventory, risk assessment, architecture, approvals, evaluation, logs, reviewKeep version, owner, timestamp and retention; independent evidence.
Quick check · Who owns residual risk?

The designated risk owner with appropriate authority; not the AI vendor or model by default.

Go deeper / research & architecture exercise
Your turn

Create a RACI for AI onboarding, model changes, new connector requests, incident response and decommissioning. Identify one accountable role per decision.

25 / Enterprise / Blueprint

Three maturity levels and practical rollout

Maturity is not company size. A small company can govern AI well; a regulated multinational may have fragmented AI usage. Compare realistic operating models and expand only as risk and value justify investment.

Interactive diagram / select a node

Minimum viable enterprise AI architecture

Select any node to inspect its role and trust boundary.
Concept / productWhat it meansArchitect’s notes
Starting from zeroInventory + acceptable use + one approved enterprise toolNo sensitive inputs until data rules approved; owner, SSO, MFA, baseline logging and simple approval.
Growing businessFormal intake, vendor assessment, RAG pilot, scoped connectorsCentral gateway if multiple APIs; data owner reviews, evaluation suite, incident runbook.
Regulated multinationalFederated ownership + central standards and control planeRegional/legal review, cross-border data governance, segregated environments, evidence automation and independent assurance.
Days 0–30Discover shadow usage, appoint owner, define risk tiers and data rulesApprove low-risk pilots, establish AI inventory and procurement checklist.
Days 31–60Build landing zone, identity, gateway/data controls and test suitesPilot read-only RAG; validate DLP, retrieval ACL, logging and recovery.
Days 61–90Measure value, review risks, canary production, train usersApprove expansion only with evidence; define risk acceptance and rollback.
After 90 daysReview lifecycle, optimize spend, add controlled actionsMonitor model changes, recertify access, red-team, update policies and retire unused agents.
Minimum viable architectureIdP → approved AI entry → model/retrieval → controlled tools → auditEnforce access at each boundary; preserve business ownership and privacy.
RFP scorecardMust-have gates then weighted capability scoresEvaluate actual data paths, DPA, identity, audit, safety, cost, portability and support.
Lab 06 · readiness gate

Is the organization ready to expand?

Illustrative readiness checklist, not a certification or legal conclusion. Missing controls must be evaluated for the actual use case.

Quick check · Does a company need every governance product on day one?

No. Apply risk-based controls appropriate to use cases, then expand as complexity and authority grow.

Go deeper / research & architecture exercise
Your turn

Use the readiness lab to score an organization. Turn missing gates into a prioritized backlog; select two high-value, low-risk pilots and measurable acceptance criteria.

Assessment / architect challenge

Think beyond the demo.

112 original CISSP-inspired scenario questions across 25 chapters. Select every defensible answer or arrange steps in the correct sequence. No answer-count hints, no live correctness indicators. Exact-match scoring only. Original practice material, not official CISSP exam questions.

Back to top
Reference / glossary

Speak AI fluently.

TermMeaning
AIArtificial intelligence
MLMachine learning
DLDeep learning
LLM / SLMLarge / small language model
MoEMixture of experts
RAGRetrieval-augmented generation
LoRALow-rank adaptation
MCPModel Context Protocol
A2AAgent-to-agent communication
OBOOn-behalf-of delegation
SPNService principal (Entra usage)
STSSecurity Token Service
CAPConditional Access policy
PIMPrivileged Identity Management
DSPMData security posture management
CSPMCloud security posture management
DLPData loss prevention
GRCGovernance, risk and compliance
AIMSAI management system
ATLASAdversarial Threat Landscape for Artificial-Intelligence Systems
KV cacheKey/value cache used during attention
TP / FP / FN / TNTrue positive / false positive / false negative / true negative
SLOService-level objective
DPIAData protection impact assessment
RACIResponsible, accountable, consulted, informed
KRIsKey risk indicators
HarnessRuntime that manages the model/tool loop, execution state and boundaries
ScaffoldingBehavioral guidance and structural assistance around model calls
SkillReusable task instruction package; often SKILL.md with resources
AGENTS.mdRepository-level agent instructions; host-dependent discovery and precedence
ACPAgent Client Protocol for connecting clients to coding agents
Context engineeringManaging relevant instructions, state, retrieval and tool results for a model
Meta-harnessLayer coordinating multiple agents, runtimes or providers
Progressive disclosureLoad skill metadata first and relevant full content when needed
Harness engineeringDesigning an execution environment, feedback and controls for reliable agent work