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.
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.
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.
AI family tree
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Rule-based systems | Human-authored rules | Deterministic, inspectable; brittle on unexpected inputs. |
| 2012–2016 | Deep neural networks, CNNs, RNNs, AlphaGo | ML already existed; learned perception and narrow decision systems dominated many enterprise uses. |
| 2017 | Transformer architecture | Attention enables parallel training and contextual sequence processing. |
| 2018–2021 | Pretrained foundation models, GPT/BERT, large-scale transfer learning | Reuse a pretrained model for many tasks instead of training each from scratch. |
| 2022–2024 | Chat assistants, diffusion, RAG, tool use | Natural-language interfaces and generative outputs enter business workflows. |
| 2025–2026 | Multimodal reasoning, coding agents, enterprise copilots, agentic workflows | Systems can take actions; permissions and runtime safety become central. |
| Predictive AI | Classify, score, forecast | Fraud score, demand prediction, spam filtering; often simpler and cheaper than an LLM. |
| Generative AI | Synthesize text, images, code, audio | Useful for open-ended tasks; outputs need validation. |
| Agentic system | Model + tools + orchestration | An 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
Classify your company's existing fraud detection, chatbot, OCR and workflow automation into method, capability and autonomy. Identify where an LLM would be unnecessary.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Supervised learning | Labeled examples | Classification and regression; labels must reflect the intended target. |
| Unsupervised learning | Unlabeled data | Clustering, dimensionality reduction, anomaly patterns; results still require interpretation. |
| Self-supervised learning | Targets derived from data | Next-token prediction and masked prediction learn useful representations at scale. |
| Reinforcement learning | Reward feedback and actions | Optimizes behavior under a reward; reward misspecification can produce unwanted behavior. |
| Training / validation / test | Fit / tune / final estimate | Keep the final test independent; prevent train-test leakage. |
| Loss and gradient descent | Reduce error by updating weights | A gradient provides a local direction of change; no guarantee of global optimum. |
| Overfitting | Fits training quirks | Look for generalization gap; regularize, improve data, test new slices. |
| Drift | Input or relationship changes over time | Monitor production quality, compare distributions and reassess when needed. |
| Precision / recall | TP/(TP+FP) and TP/(TP+FN) | Choose thresholds based on the cost of false alarms and missed cases. |
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
Change the threshold in the confusion-matrix lab. Explain why a SOC and a medical triage system may choose different trade-offs.
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.
Inside a language model
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Token | A unit of model input/output | May be a word fragment, punctuation or another modality representation; tokenizer dependent. |
| Embedding | Vector representation | Similarity approximates relationships, not identity or truth. |
| Attention | Context-dependent weighted mixing | Queries, keys and values; simplified attention weights = softmax(QKᵀ/√d). |
| Transformer | Layers of attention and feed-forward blocks | Decoder-only generation predicts subsequent tokens; encoder models commonly represent input. |
| Context window | Maximum supported sequence budget | Includes prompt, retrieved content, tool messages and output per endpoint rules; large context does not imply perfect recall. |
| Temperature / sampling | Controls output sampling | Lower randomness may help consistency but cannot eliminate hallucination. |
| Reasoning effort | Additional inference computation where supported | Potential quality vs latency, cost and token use trade-off. |
| Dense / MoE | All vs selected expert subnetworks | MoE can activate fewer parameters per token; memory and routing still matter. |
| Quantization | Reduced numerical precision | Lower memory/cost; measure accuracy, speed and hardware compatibility. |
| Multimodality | Text, image, audio, video depending on model | Input 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
Compare an 8K and 128K context workload. Count document, system, tool and response tokens; reserve a safety margin.
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.
RAG request path
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Ingestion | Parse, OCR, clean, chunk, classify | Preserve source identifiers, ACLs, versions, timestamps and deletion state. |
| Embedding index | Vector search / approximate nearest neighbors | Choose an embedding model, chunk strategy and index; evaluate multilingual coverage. |
| Hybrid search | Keyword + vector retrieval | Lexical matches help codes and names; semantics help paraphrases; rerank candidates. |
| Authorization | Security trimming before prompt assembly | Apply caller permissions at retrieval, not merely in the answer UI. Enforce again at source/tool. |
| Reranking | Reorder retrieved passages | May improve precision; adds compute/latency. |
| Generation | Prompt with selected evidence | Require citations and abstention when evidence is weak; citations can still be wrong. |
| RAG vs fine-tune | Current facts vs behavioral adaptation | RAG updates indexed facts; tuning is not a reliable method of enforcing access or erasing individual facts. |
| Fine-tuning / LoRA | Optimize behavior with examples | Version datasets, adapters, evaluations and licenses. Avoid training sensitive data without authorization. |
| GraphRAG | Graph/entity relationships plus retrieval | Useful for relationship queries and synthesis; higher ingestion and governance complexity. |
| RAG products | Azure AI Search, Bedrock Knowledge Bases, Vertex AI Search, pgvector/OpenSearch | Managed services or custom pipeline; compare access trimming, residency, refresh, cost and connector semantics. |
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
Use the RAG simulator to test a confidential HR document against a normal employee, then simulate an untrusted retrieved instruction.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Public benchmark | General comparison across models | Use exact benchmark version, effort, modality, date and methodology; beware contamination. |
| SWE-bench / coding evals | Repository issue resolution | Measure agent scaffold and tool access as well as base model. |
| Human review | Domain-expert rubric | Blind comparisons, calibrated reviewers, disagreement handling. |
| RAG evaluation | Retrieval recall, context precision, faithfulness | Measure whether right evidence is retrieved and claims are supported. |
| Security evaluation | Adversarial test suites | Synthetic data, authorization, injection resistance, action scope and abuse cases. |
| Operational metrics | p95 latency, errors, completion and cost/task | Include retries, tool calls, long-context use and reasoning tokens. |
| Fairness / harm | Cohort outcomes and impact | Define affected groups, context, false-positive/negative costs and escalation. |
| Regression | Fixed evaluation suite after each change | Pin 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
Create a 50-case golden set with normal, edge and adversarial cases. Define pass criteria for quality, data access, cost and latency.
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 / product | What it means | Architect’s notes |
|---|---|---|
| OpenAI GPT | GPT-6.2 Astra / Sol; additional smaller variants in catalog | Hosted API and ChatGPT; compare reasoning effort, tool support, latency and price. |
| Anthropic Claude | Fable 5.2, Opus 5.5, Sonnet 5.5 (benchmark-listed) | Hosted API/Claude; check endpoint availability, agent capabilities and usage limits. |
| Google Gemini | Gemini 4 Neon / Carbon / Hydrogen (benchmark-listed); Flash-Lite class | Hosted consumer and API/Vertex endpoints; check multimodal support and regional availability. |
| Meta Llama | Llama family; open-weight releases | Self-host or provider; check model-specific community license and acceptable use. |
| DeepSeek | Reasoning and general model family | Hosted and selected open-weight releases; validate license, data path and hosting jurisdiction. |
| Alibaba Qwen | General, reasoning, code and multimodal families | Selected open-weight versions; inspect exact release and license. |
| Mistral | General, code and smaller model families | Hosted and selected open-weight options; verify deployment and commercial terms. |
| Cohere | Enterprise text, embeddings and reranking | Hosted/private deployment options vary; useful for retrieval tasks. |
| xAI Grok / Kimi / GLM | Additional proprietary or open-weight families by release | Evaluate separately; no implied approval or guaranteed availability. |
| ChatGPT plans | Free, Go, Plus, Pro, Business, Enterprise | Individual access differs from organization controls; API usage separately billed. |
| Claude / Gemini plans | Free access where offered; individual paid, team/enterprise tiers | Check official plans and country; quotas and features vary. |
| Local models | Ollama, llama.cpp, vLLM, GPU/CPU infrastructure | No per-token provider fee for own host, but compute, storage, power, support and compliance cost money. |
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.
Source: model comparison · release analysis · methodology. Rankings change; compare the exact benchmark version, settings and provider.
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
Compare two candidate hosted models and a local one using the benchmark snapshot and editable cost lab. Document eligibility gates before scoring quality.
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 / product | What it means | Architect’s notes |
|---|---|---|
| ChatGPT | General productivity / analysis | Free and paid tiers; enterprise workspace controls and tools vary. chatgpt.com |
| Claude | Writing, analysis and code | Free and paid plans; evaluate files, workspace and coding integration. claude.ai |
| Gemini | Multimodal and productivity | Free/paid access; Workspace integration depends on edition. gemini.google.com |
| Microsoft 365 Copilot | Enterprise productivity | Commercial licensing; grounding in permitted M365 data. microsoft.com/microsoft-365/copilot |
| Perplexity | Research and discovery | Free/paid; verify citations and enterprise terms. perplexity.ai |
| NotebookLM | Source-based research and learning | Free/paid or workspace features; verify notebook permissions. notebooklm.google.com |
| Amazon Quick | Enterprise knowledge, BI, research and automation | Paid service; identity propagation and permissions matter. aws.amazon.com/quick |
| GitHub Copilot | IDE completion and coding agent | Free/paid eligibility; review organization policies. github.com/features/copilot |
| OpenAI Codex | Coding agent and repository work | Plan/API access varies; sandbox, PR review, scoped Git credentials. chatgpt.com/codex |
| Claude Code | Terminal coding agent | Subscription/API usage; manage command execution and file scope. claude.com/product/claude-code |
| Cursor | AI-first coding editor | Free/paid plans; check code retention and indexing. cursor.com |
| Gemini CLI | Terminal coding assistance | Quota and paid access depend on configuration; validate tool permissions. github.com/google-gemini/gemini-cli |
| Power Automate | Low-code workflow automation | Commercial and connector licensing; DLP and environment policy. microsoft.com/power-platform/products/power-automate |
| n8n | Workflow orchestration | Cloud paid/self-host options; control credentials, nodes and license. n8n.io |
| Zapier | SaaS integration and automation | Free/paid tiers; review connector scopes and execution limits. zapier.com |
| Make | Visual workflow builder | Free/paid quotas; validate external data paths. make.com |
| Copilot Studio | Low-code agent design | Metered/licensed; manage connectors, environments and publishing. microsoft.com/microsoft-copilot/microsoft-copilot-studio |
| Dify | LLM app and workflow design | Cloud and self-host options; license and operational review. dify.ai |
| Canva Magic Studio | Visual content and design | Free/paid feature limits; validate rights and brand controls. canva.com/magic-studio |
| Adobe Firefly | Image and creative production | Free/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
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.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Autocomplete | Inline suggestions | Fast local context; assess code quality and secret exposure. |
| Chat/editor agent | Read and edit multiple files | Scope workspace, exclude sensitive paths, inspect diffs. |
| Terminal agent | Run commands and tests | Sandbox filesystem/network, allowlist commands, require approvals for escalation. |
| Cloud coding agent | Repository clone, isolated runtime, PR | GitHub App least privilege, ephemeral environment, branch protection. |
| GitHub Copilot / Codex / Claude Code / Cursor | Different delivery surfaces | Compare model access, context, tool execution, billing, audit and enterprise policy. |
| Secure SDLC | Threat model, PR, SAST/SCA, secrets scan | Generated code has the same review obligations as human code. |
| Dependency risk | Hallucinated or malicious packages | Validate package origin, pin versions and scan transitive dependencies. |
| Prompt injection in repo | Untrusted issue, README, comments | Treat 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
Design a feature-branch workflow with synthetic secrets, tests, scan gates and a human reviewer. Compare local and cloud agent trust boundaries.
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 / layer | Primary role | Why people use or customize it | Enterprise decision |
|---|---|---|---|
| OpenCode | Open-source multi-provider coding harness; terminal, desktop and SDK/server | Choose 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 runtime | Customize 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 SDK | Terminal coding agent and programmable runtime | Repository 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-server | CLI, cloud agent and embeddable runtime | AGENTS.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 CLI | Google-centered terminal agent | Repository context, tool calls, extensions and enterprise model-access configuration. | Confirm quota, billing, data handling and authorization separately from the open client. |
| GitHub Copilot | IDE / repository / managed coding experience | Organization policy and review workflow; code suggestions and agent work. | Seat/license and model access vary. Enforce review, repository scope and data policies. |
| Cursor | AI-native editor | Integrated indexing, model selection, rules and agent edits. | Review remote indexing, retention, agent shell permissions and enterprise configuration. |
| Windsurf | AI-native editor | Integrated code navigation, editing and agent workflow. | Review available enterprise controls, hosting choices, indexing and model terms. |
| Google Antigravity | Agent-oriented development environment | IDE-based agent coordination and artifact verification. | Assess runtime approvals, preview/edition status, browser tools and file boundaries. |
| Cline | Open-source coding agent across IDE/CLI surfaces | Multi-provider coding with plan and execution workflows. | Use scoped credentials and validated permissions; tool approvals alone do not isolate the process. |
| Kilo Code | Agentic coding tooling and orchestration | Multi-model workflows, editor/CLI tooling and specialized modes. | Inspect extension and provider terms, telemetry, tool scopes and runtime boundaries. |
| Continue | Open-source coding assistant and agent tooling | Customize model/provider choices and developer context. | Validate data flow, extension updates and local versus remote inference. |
| Aider | Git-centered terminal pair programmer | Repository map, code edits, lint/test feedback and Git integration. | Check automatic commit behavior and branch isolation. Review changes independently. |
| OpenHands | Software-engineering agent environment and SDK | Run agent work in configurable execution environments, local or hosted. | Evaluate container isolation, secret injection, network policy and infrastructure ownership. |
| goose | Open-source extensible general-purpose agent | Desktop/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 Code | Terminal coding agent | Model-backed repo exploration, editing and testing; inspect supported providers. | Confirm region/provider terms, model availability and current release security. |
| Mistral Vibe | Terminal coding agent | Coding workflow with Mistral ecosystem integration. | Validate supported model/provider access and organization policy. |
| Crush | Terminal coding assistant | Alternative multi-model command-line workflow. | Review current license, permissions, maintenance and model integration. |
| Devin | Managed autonomous software-engineering agent | Delegated 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 layer | Adds 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. |
| OpenClaw | Persistent general-purpose assistant / gateway | Connects 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 Agent | Extensible general-purpose persistent agent | Model/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-agent | Minimal software-engineering evaluation agent | Small 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 observability | Analyze coding-agent sessions | Review 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
| Dimension | OpenCode | Pi |
|---|---|---|
| Design philosophy | More complete configurable coding experience | Small extensible core that you shape |
| Customization | Agents, config, skill discovery, plugins, MCP, provider choice | Extensions, skills, prompt templates, themes, packages |
| Programmatic use | Server and SDK for embedding the runtime | SDK and RPC for embedding the runtime |
| Best evaluation scenario | Common coding workflows across multiple teams/providers | Custom internal agent or experimental workflow requiring precise composition |
| Security posture | Tool/agent permissions and policies; validate independent enforcement | Assess supplied and custom extensions; add external sandbox and policy enforcement |
| Trade-off | Feature-rich platform and configuration compatibility | More design, testing and operational responsibility for your extensions |
| Model selection | Multi-provider; compare policy and provider entitlement | Multi-provider; compatible model capability and provider terms matter |
| Enterprise adoption | Candidate for standard coding harness, subject to review | Candidate for building specialized agent products, subject to review |
Research / tool radar and official project links
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.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Microsoft 365 Copilot | Word, Excel, Teams, Outlook, Graph grounding | User-permission-aware retrieval; fix overly broad SharePoint permissions and validate labels. |
| Copilot Chat | Chat experience and supported organizational data/features | Separate entitlement and capabilities from full M365 Copilot license. |
| Google Gemini for Workspace | Docs, Gmail, Sheets and related workflows | Workspace admin and data controls vary by edition. |
| Amazon Quick | Chat, research, insights, flows, automation and agents | Business workspace over connected enterprise sources; see Chapter 13. |
| Glean | Enterprise search and assistant | Connectors and permission-aware retrieval; validate ACL sync. |
| NotebookLM / Perplexity | Research and source synthesis | Verify evidence and sensitive-data rules; generated citations are not proof. |
| Notion AI / Atlassian Rovo | Knowledge and workflow in collaboration platforms | Scope workspace access, integrations, retention and admin controls. |
| Design assistants | Canva, Firefly, image/video generation | Brand, 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
Review a hypothetical SharePoint site with inherited broad read access. Define a data cleanup and label pilot before enabling AI discovery.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Workflow | Trigger → condition → action | Deterministic orchestration and explicit branching. |
| RPA | Automates UI actions | Useful for legacy systems; brittle selectors and credential risks. |
| AI-assisted workflow | Model extracts/classifies/summarizes | Validate schema, threshold and business rules before applying actions. |
| Power Automate / Logic Apps | Microsoft connectors and workflows | Environment DLP, connection references, managed identities and audit. |
| n8n / Make / Zapier | Workflow integration | SaaS vs self-host; permissions, data flow, error handling and credential vaulting. |
| Durable execution | Retries, timeout, idempotency, checkpoint | Avoid duplicate transactions and unbounded loops. |
| Human approval | Risk-based execution gate | Show exact action, target, amount and source; prevent approval reuse or stale approval. |
| Rollback and kill switch | Stop, compensate and reconcile | Some 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
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 / platform | Where it fits | Control considerations |
|---|---|---|
| Persistent agents: OpenClaw / Hermes | Long-lived tasks, connected workflows, recurring context | Separate accounts, review scheduled actions, revoke scopes, protect memory and logs. |
| Coding harness as general agent runtime | Reuse tool loop and environment via SDK/RPC/server | Validate isolation and non-coding tool permissions, not only developer UX. |
| Programmatic tool calling / Code Mode | Execute constrained code to combine tool calls efficiently | Use sandboxed execution, per-tool authorization, output validation and resource limits. |
| Agent workflow engines: LangGraph / Temporal / n8n | Stateful agent flows or durable deterministic execution | Choose based on state recovery, idempotency, human gates and operational ownership. |
| Skill registries and enterprise harness | Approved workflow packages shared across different agents | Review, sign or pin packages; track owner, versions, distribution and revocation. |
| Agent observability and evaluation | Trace failures, costs, actions and model upgrades | Protect telemetry; measure business outcomes and independent security controls. |
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.
Agent trust boundary
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Agent components | Model, system instructions, memory, tools, executor, policies | Each boundary has separate owners, credentials and failure modes. |
| Function calling | Model requests structured function invocation | Server validates arguments and authorizes action; output is untrusted. |
| MCP | Protocol for resources, prompts and tools | Authenticate endpoints, scope tokens, vet servers and inspect tool schemas. |
| A2A | Agent-to-agent communication patterns | Trust and task delegation across systems require explicit identity and authorization. |
| Memory | Session state, durable stores, retrieval | Isolate users and tenants; retention, deletion and provenance controls. |
| Agent autonomy | Read-only, draft, approval-based write, autonomous write | Higher impact requires stronger control, budgets, monitoring and stop conditions. |
| Tool policy | Allowlist, schema, scope, target, action authorization | Enforce outside the model and on destination service. |
| Human-in-loop | Approval for sensitive actions | Bind approval to immutable parameters and expiry; handle rejection safely. |
| Agent frameworks | LangGraph, Semantic Kernel, AutoGen, OpenAI Agents SDK, CrewAI | Compare state, durability, observability and integration; frameworks aren't policy engines. |
| Agent designers | Copilot Studio, Dify, Bedrock Agents/AgentCore, Vertex agent services | Low-code vs code; inspect identity defaults, environment and tool governance. |
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
Use the agent action lab to compare read-only, approved write and compromised retrieved instructions. Specify a kill switch and max step count.
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.
One agent, several independent layers
| Layer | Meaning | Why it matters |
|---|---|---|
| Foundation model | Learned parameters producing predictions or generated output | The reasoning engine; may propose actions but cannot by itself execute real-world tools. |
| Agent | Goal-driven system using model, context, execution state and actions | An operational system, not simply a chatbot persona or the LLM weights. |
| Harness | Runtime wrapper that manages the model/tool loop, execution, state and boundaries | Calls the model, dispatches tools, handles failures, stopping, approvals and telemetry; use external enforcement for high-risk actions. |
| Scaffolding | Behavioral support: instructions, planning prompts, context structure, retries and decomposition | Some scaffolding becomes redundant with stronger models; distinguish it from authorization and runtime reliability. |
| Skill | Reusable packaged task instructions, examples, references and optional scripts; often SKILL.md | Teaches a workflow or domain convention on demand. It does not grant a tool permission or change model weights. |
| AGENTS.md / CLAUDE.md / rules | Repository or workspace guidance loaded according to the host’s rules | Project conventions and recurring constraints. Location and precedence are host-specific; instructions are not a security boundary. |
| Tool / function | Callable capability, usually with a structured schema | Actual execution and downstream authorization are separate from the model’s request. |
| MCP server | Standardized integration exposing tools, resources and prompts | Connects agent clients to capabilities; does not establish trust automatically. |
| ACP | Agent Client Protocol for client-to-coding-agent integration | Different from MCP (agent-to-tool) and A2A (agent-to-agent collaboration); verify exact protocol and implementation. |
| Subagent | Delegated task-specific agent with its own context and possibly distinct tools | Can reduce context pressure or parallelize work; creates additional trust and budget boundaries. |
| Plugin / extension | Executable host customization or bundled integrations | Often broader authority than a text skill. Treat as software supply-chain dependency. |
| Orchestrator / meta-harness | Coordinates agents, model routing, scheduling and workflows | Useful for durable execution or independent jobs; not automatically better than a capable single agent. |
| Memory | Persisted or session-scoped information beyond immediate task | Not the same as training; control provenance, tenant/user scope, retention and deletion. |
| Context engineering | Selecting, ordering and refreshing the information available to the model | Include relevant documents, state, tool results and instructions; reduce noise and manage compaction. |
| Prompt engineering | Designing the specific model request and instructions | A subset of context engineering; measure behavior rather than optimizing verbosity. |
| Harness engineering | Designing the environment, tools, feedback loops and controls that enable reliable action | Make tasks legible and independently verifiable: tests, typed tool schemas, constraints, traces and feedback. |
| Agent evaluation | End-to-end testing of model, harness, tools and environment | Measure 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 / technique | Likely direction as models improve | Architect’s decision |
|---|---|---|
| Hand-written chain-of-thought prompts / rigid plan templates | Less necessary when reasoning and planning improve | Test removing them; do not expose private reasoning or equate fluent plans with correctness. |
| Manually scripted tool selection and parsing workarounds | May shrink with native structured tool calling and better selection | Keep schema validation and authorization on every actual action. |
| Multi-agent debate / fixed manager-worker teams | Often optional for simple tasks as a single agent improves | Keep parallelism or independent review when measured value or separation of duties justifies it. |
| Verbose generic skills | Can become redundant if they merely reteach common capabilities | Retain organization-specific workflows, changing facts, examples and regulated procedures. |
| Manual context packing | Some selection/compaction delegated to capable runtimes | Keep privacy filtering, retrieval ACLs, provenance, freshness and token limits. |
| Custom retry/planning framework | May shift into mature managed or open-source harnesses | Retain durable checkpoints, idempotency, retries, timeout and failure handling. |
| Identity, access control, sandbox and network policy | Not replaced by model reasoning | Enforce at runtime and destination; better planning can increase impact of a compromised agent. |
| Approval, audit, budgets, kill switch | Not replaced by a more capable model | Require independent checks for sensitive actions, evidence and accountable risk ownership. |
| RAG and trusted external data | Not universally replaced by larger models or longer context | Current proprietary data, citations, deletion and authorization are system requirements. |
| Deterministic business workflow | Still useful regardless of model capability | Use a workflow for stable rules; use a model for uncertainty, not for every decision. |
Harness engineering vs prompt engineering: enterprise example
| Scenario | Fragile approach | More robust approach |
|---|---|---|
| IAM access request triage | A long prompt telling a model to follow every policy | Retrieve current approved rules; model classifies request; deterministic workflow validates owner and eligibility; reviewer authorizes grant. |
| Repository modernization | Many hard-coded agents debate each edit | Use a capable coding harness, scoped repo, tests and focused skills; parallelize independent work only where evaluation supports it. |
| Model upgrade | Assume improved benchmark makes all skills obsolete | A/B test old/new model and harness; remove redundant hints; retain domain policies, approval and security controls. |
| Long-running task | Rerun from scratch whenever model times out | Durable state, bounded retries, idempotency, checkpoints, human escalation and audit. |
| Tool marketplace | Install popular community skill or plugin immediately | Pin reviewed versions, inspect code and dependencies, constrain execution, log tool changes and retest. |
Agent stack patterns: from simplest to complex
| Pattern | When to use | When to avoid |
|---|---|---|
| Single model call + RAG | Read-only question answering or classification | If task requires reliable external writes or long-running recovery. |
| Deterministic workflow + model step | Predictable business process with a fuzzy input | If a completely deterministic rule already solves the task. |
| Single agent + mature harness | Open-ended investigation, coding, iterative tool use | For narrow work where cost and variance exceed benefit. |
| Multiple agents / parallel workers | Independent research, separate execution jobs, specialized contexts | When duplicated context, coordination cost and inconsistent state exceed measured quality gains. |
| Persistent personal or enterprise agent | Scheduled tasks, recurring assistance, long-lived workspace | Without durable authorization, revocation, audit and separation between users. |
| Managed harness / SDK | Need reliable existing runtime with integration points | If required controls, tenancy or data processing cannot be validated. |
| Custom harness | Unique regulatory, execution or platform requirements | When a supported mature runtime provides equivalent control at lower maintenance cost. |
Research / Agent Skills, harness engineering and emerging architecture
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.
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 / product | What it means | Architect’s notes |
|---|---|---|
| CPU vs GPU/TPU | General compute vs accelerators | Small quantized models can run on CPUs; GPU throughput depends on workload, memory and hardware. |
| VRAM estimate | Parameters × bits / 8, plus overhead | A 7B model at 4-bit has ~3.5GB raw weights; KV cache, activations and runtime increase memory. |
| KV cache | Attention history reuse | Consumes memory with context length, concurrency and model structure. |
| Inference service | vLLM, TGI, llama.cpp, Ollama | Compare production scale, scheduling, supported formats, isolation and observability. |
| Hosted API | Vendor serves models | Fast integration; evaluate provider data terms, network, rate limits and availability. |
| Managed cloud | Foundry, Bedrock, Vertex AI | Platform controls and model choices; not identical contracts or residency. |
| Self-host | Own VMs, Kubernetes, bare metal | Greater deployment control; responsibility for patching, inference security and scale. |
| Gateway | Auth, routing, quota, policy, telemetry | Enforce tenant isolation and model allowlists; avoid unsafe raw prompt logs. |
| MLOps / LLMOps | Registry, evaluation, release, trace, drift | Version prompt/model/index/tool configurations together. |
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
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
| Component | Examples / purpose | Enterprise consideration |
|---|---|---|
| Local model server | Ollama, llama.cpp, LM Studio | Local inference can reduce external data flow but requires approved weights, patching and endpoint protection. |
| Production inference serving | vLLM and managed model endpoints | Measure concurrency, KV cache, latency, resilience and tenancy. |
| Model routing / gateways | LiteLLM, OpenRouter and managed cloud gateways | Verify supported model/provider routes, data terms, quotas, logging and regional processing. |
| Agent harness | OpenCode, Pi, Codex, Claude Agent SDK | Select independently from provider where supported. Verify exact model/tool compatibility and permitted credentials. |
| Evaluation tooling | Inspect AI, promptfoo, Langfuse, agent traces | Measure the complete configuration rather than an isolated model; protect test data and traces. |
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.
Enterprise service layers
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Microsoft Foundry | Model catalog, evaluations, agent development and fleet governance | Build custom AI applications; project/resource boundaries and Entra identities. |
| Azure Machine Learning | ML experiments, registry, training and endpoints | Traditional ML and custom models; overlaps with Foundry for lifecycle. |
| Amazon Bedrock | Managed foundation models, knowledge bases, evaluations and guardrails | Model and app platform; IAM, resource controls, region-specific features. |
| Bedrock AgentCore | Agent runtime, identity, gateway, observability, policy and related services | Run/govern agent workloads; validate specific feature support. |
| Amazon SageMaker AI | ML training, deployment, registry and MLOps | Different from Bedrock model API; Clarify availability changing (existing customers; check migration docs). |
| Google Vertex AI | Model Garden, training, prediction and agent development | Google Cloud project/IAM boundary and evaluation tools. |
| Amazon Quick Sight | BI dashboards and analytics | Earlier QuickSight branding; part of Quick's capabilities. |
| Amazon Quick Research | Internal and public-source research | Validate citations, connected-source permissions and data handling. |
| Quick Flows / Quick Automate | Workflow automation and agent-assisted business processes | Distinguish deterministic workflow from contextual agent actions; audit approvals. |
| Amazon Quick spaces / agents | Knowledge collaboration and business assistance | Identity propagation, data sources, action connectors and admin scope. |
| Amazon Q Business | Existing enterprise search/assistant service and integrations | Existing customers may continue or use Q index with Quick; check service availability. |
| Databricks Mosaic AI / Snowflake Cortex AI | AI over data platform | Governed 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
Map a finance analyst needing dashboards, a developer building custom RAG, and a team deploying a managed agent to their appropriate service layers.
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.
Delegated vs app-only
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Human user | Interactive sign-in with MFA and risk controls | Account lifecycle and approval; don't share identities. |
| Application registration / service principal | Application definition and tenant-local identity | Permissions and credentials; app consent can be high impact. |
| Managed identity | Platform-managed workload credential | No manually stored secret; authorization still required. |
| Federated workload | OIDC token exchange | Scope issuer, audience, subject; avoid static secrets. |
| Agent identity | Distinct principal where supported | Owner/sponsor, classification, lifecycle and risk; not every framework provisions one. |
| Delegated / OBO | Acts on behalf of user | User and application permissions plus service-specific evaluation; downstream access should preserve context. |
| App-only | Runtime operates as itself | Least-privileged scoped grants and separate authorization for job; no automatic user intersection. |
| AWS role / STS | Assumed temporary principal | Trust policy plus identity/resource policies; session attribution and expiry. |
| Agent-to-agent | Delegated service calls | Audience-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
Draw user → agent → MCP → API. Mark principal, audience, token lifetime, resource permission and audit identifier on every hop.
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.
Entra control layers
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Entra ID | Directory and identity authority | Users, groups, apps, agents; directory roles are separate from Azure RBAC. |
| Agent ID blueprint | Template/configuration governing agent creation | Blueprint principal and agent identities are distinct; validate creator permissions and tenant trust. |
| Agent identity | Principal representing an agent | Authentication, metadata, owners/sponsors; Foundry projects may share a default agent identity unless configured otherwise. |
| Agent user account | User-like identity where supported | Separate from agent identity; targeting blueprint does not necessarily target agent user. |
| Workload ID | Non-human app/service principal protections | Workload CA eligibility and scope differ; do not assume managed identities or every SP supported. |
| Conditional Access | Evaluate token issuance context/risk | Target supported user, agent or workload identities; different conditions and licenses; not payload inspection. |
| ID Protection | Risk detection and risk-based response | Supported user/agent/workload signals vary; high-risk blocks need validated recovery. |
| ID Governance | Lifecycle, access packages, reviews, sponsors | Automate entitlement and recertification; configure supported agent targets and actual deprovisioning. |
| PIM | Eligible administrative roles and activation | For supported human/admin roles and scopes; not a generic per-tool approval system for agents. |
| Consent / app governance | Review delegated and application permissions | Restrict user consent, admin approval, verify publisher and scopes; monitor grants. |
| Global Secure Access | Identity-aware network/web controls | Supported traffic paths, agent web access and policies; not universal runtime prompt protection. |
| Sign-in and audit logs | Identity events and configuration changes | Send 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
Inventory three agents (autonomous, delegated, shared Foundry project). Design sponsor review, allowed scopes, CA blocking strategy, break-glass and token/audit validation.
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.
Microsoft defense in depth
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Agent 365 | Enterprise agent registry/control plane | Inventory, management, supported integration with Entra, Purview and Defender; check current licensing. |
| Foundry governance | Fleet/project management, evaluation and deployment visibility | Former Foundry Control Plane; use AI Gateway for supported traffic controls. |
| Copilot Control System / M365 admin | Admin settings and management of Copilot experiences | Usage, availability, policies and managed agents; not an IdP. |
| Copilot Studio / Power Platform | Agent design, environments, connector DLP, publishing | Govern connectors, channels and environment roles; test action identity. |
| Purview DSPM for AI | Discover data exposure and AI-related posture | Insights and remediation; scope depends on app/integration. |
| Purview Information Protection / DLP | Labels, sensitive data policy and supported processing controls | Protect data and govern supported AI interactions; not universal interception. |
| Purview Audit / eDiscovery / retention | Compliance investigation and retention | Validate events, licenses and searchable scope; minimize raw content retention. |
| Defender for Cloud Apps | SaaS discovery and session/app controls | Shadow AI visibility for supported paths; coverage not universal. |
| Defender for Cloud | Cloud workload and AI posture/threat protection | CSPM, supported AI workload protections and risks; verify plans and cloud coverage. |
| Defender XDR / Agent 365 runtime protection | Threat detection and response across supported signals | Runtime agent protection features may be preview; check status and action support. |
| Azure AI Content Safety / Prompt Shields | Input/output safety and injection signals | Detection is imperfect; layer independent authorization and validation. |
| Azure API Management AI gateway | Central request routing, policy, quotas, observability | Traffic must flow through gateway; not identity governance or GRC. |
| Sentinel | SIEM and SOAR | Correlate 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
Build a control matrix for M365 Copilot, a Foundry RAG service, Copilot Studio agent and external SaaS. Mark coverage, license, evidence and blind spots.
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.
AWS AI defense in depth
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Organizations SCP / RCP | Principal and supported resource permission ceilings | Apply to member accounts/supported resources; no permission grant; verify exceptions. |
| IAM / Identity Center | Workforce and workload access | Scoped roles, trust policies, session limits, conditional grants. |
| Bedrock model access / model invocation permissions | Authorized use of model endpoints | Control regions, models and inference profiles with applicable IAM and service settings. |
| Bedrock Guardrails | Supported prompt/output safety, sensitive data and other filters | Apply on intended path; explicit integration where necessary; does not enforce all authorization. |
| AgentCore identity / gateway / policy | Agent authentication, tool mediation and authorization features | Verify support and runtime enforcement; constrain tool arguments and target resources. |
| Bedrock evaluations | Model/RAG quality and safety evaluation | Track data, evaluator settings, model versions and results. |
| SageMaker registry / model cards | ML model lifecycle evidence | Approval stages, metadata and release controls; verify Clarify migration and new-customer availability. |
| Macie / KMS / Secrets Manager | Data discovery, keys, secrets | Macie scope is S3; KMS policies and key use; avoid logging secrets. |
| CloudTrail / CloudWatch | API and operational telemetry | Enable relevant event categories and invocation logging selectively; assess PII and cost. |
| Security Hub / GuardDuty / Inspector | Posture, threat and vulnerability findings | Validate supported AI infrastructure coverage; not a full prompt firewall. |
| AWS Config / Audit Manager | Configuration evidence and audit workflows | Evidence 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
Design a multi-account Bedrock deployment with separate platform/logging/workload ownership, controlled inference models and a tool policy. Test a denied action.
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 / product | What it means | Architect’s notes |
|---|---|---|
| IBM watsonx.governance | Model lifecycle, risk/compliance and monitoring | Complement with runtime security if required; verify integrations. |
| ServiceNow AI Control Tower | AI inventory, governance and enterprise workflow | Useful for risk/approval ownership and lifecycle integration. |
| Credo AI | AI registry, policy and risk evidence | Map frameworks and approvals; validate enforcement integrations. |
| OneTrust AI Governance | Risk workflows, inventory, privacy and assessment | Verify data flow and technical evidence integration. |
| Holistic AI / ModelOp / Saidot | Model governance, assessment, lifecycle and assurance (vary) | Compare regulated-use coverage, model types, evidence and connectors. |
| Cranium AI / Relyance AI | AI risk discovery/inventory and related governance | Validate visibility and data-lineage coverage. |
| Cisco AI Defense | AI discovery and security controls | Assess runtime enforcement path and red-team coverage. |
| Palo Alto Prisma AIRS | AI security and runtime protection | Verify deployed models, traffic path and exact modules. |
| Check Point Lakera / HiddenLayer | AI runtime safety and model security capabilities | Separate prompt filtering, model artifact scanning and threat detection. |
| Prompt Security / WitnessAI / Noma | AI usage visibility and security, varying by product | Evaluate SaaS, browser, network, agent and gateway coverage individually. |
| Google Vertex governance / Model Armor | Platform lifecycle and runtime filtering | Complement Cloud IAM, VPC SC, DLP/Sensitive Data Protection and logging. |
| Databricks Unity Catalog | Data/model catalog, access governance | AI lifecycle evidence and platform data access; external runtime coverage varies. |
| MLflow / Langfuse / Arize Phoenix | Open-source/hosted experiment and tracing/evaluation tools | Protect traces; not full GRC or IAM. |
| OPA / Cedar / OpenFGA | Policy-as-code or relationship authorization | Integrate at enforcement point; policy data and evaluation correctness matter. |
| LiteLLM / Kong / Portkey | AI gateway and routing options | Verify quotas, key handling, policy bypass, privacy and availability. |
| PyRIT / garak / promptfoo | Authorized red-team and regression testing | Testing 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
Run a capability-based RFP. Require evidence for discovery, policy workflow, identity integration, data protection, runtime blocking, evaluations and audit export.
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.
Indirect injection path
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Direct prompt injection | User input tries to override instructions | Input classification, bounded model role, enforce actions independently. |
| Indirect prompt injection | Untrusted retrieved document/site/tool result carries instructions | Separate data from instructions, source provenance, read-only by default, tool authorization. |
| Jailbreak / safety bypass | Attempts to defeat safety behavior | Defense in depth, evaluate abuse cases, monitor; filtering alone not sufficient. |
| Data leakage | Sensitive prompt, output, logs or memory exposed | Minimize data, ACL trim, DLP, tenant isolation, retention, safe tracing. |
| Poisoning / backdoor | Compromised training, fine-tuning or retrieval corpus | Provenance, signing, review, trusted pipeline and version rollback. |
| Adversarial examples / evasion | Inputs manipulated to change prediction | Robustness tests, model monitoring, independent validation and safe fallback. |
| Extraction / inference | Recover model behavior or infer sensitive training information | Rate limits, output minimization, privacy testing and access controls. |
| Excessive agency | Agent has dangerous authority or unbounded loops | Scope tools, budgets, approvals, timeouts, kill switch and idempotency. |
| Improper output handling | Generated content treated as trusted executable data | Validate schema, encode output, parameterized queries, sandbox commands. |
| MCP / tool supply chain | Untrusted server or misleading tool description | Vet server, authenticate, pin versions, constrain tokens, inspect arguments. |
| Model artifact supply chain | Malicious packages, weights or unsafe deserialization | Trusted origins, signed digests, safe formats, scans, isolated load. |
| Denial of wallet / service | Unbounded tokens, requests or agent steps | Rate limits, cost ceilings, concurrency and max-step limits. |
| Deepfake / social engineering | Generated impersonation or deceptive content | Independent 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
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 mode | What can happen | Control |
|---|---|---|
| Poisoned SKILL.md / workspace instructions | Malicious instructions alter planning or request unauthorized actions | Review provenance and changes; isolate untrusted repository content; enforce tool permissions. |
| Malicious extension or plugin | Executable code may access credentials, files or network within its runtime authority | Software inventory, source review, pinned versions, restricted sandbox, egress controls and secret isolation. |
| MCP tool description poisoning | Untrusted metadata tries to redirect agent behavior or cause unexpected calls | Approved servers and schemas, tool-level authorization, update review and bounded execution. |
| Memory contamination | Untrusted content is persisted and later treated as authoritative guidance | Provenance, memory write policy, segregation and deletion; review generated skills. |
| Subagent privilege drift | Delegation widens access or bypasses original approval | Pass scoped identity and immutable intent, enforce child permissions and downstream policy. |
| Compaction or context loss | Critical constraints disappear during long task or retry | Persist mandatory policy outside prompts; rehydrate approved task state and verify each action. |
| Cost / resource exhaustion | Recursive loops, fan-out or repeated tool failures consume budget | Independent step, time and spend limits; cancellation, quotas and escalation. |
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.
Frameworks are not equivalents
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| MITRE ATLAS | Threat knowledge base for AI systems | Tactics, techniques, case studies; map adversarial behavior to detection and mitigation. Complement MITRE ATT&CK for traditional infrastructure. |
| OWASP LLM Top 10 (2026) | Application risk categories | Current guide for GenAI application risks, distinct from 2025 edition. Use official taxonomy/version rather than static identifiers. |
| OWASP Agentic Top 10 (2026) | Agent system risks | Goal hijacking, tool misuse, identity/privilege abuse, trust and cascading failures among risk themes; verify official names. |
| NIST AI RMF 1.0 | Voluntary risk framework | Govern, Map, Measure, Manage; iterative across lifecycle. |
| NIST AI 600-1 | Generative AI profile of AI RMF | GenAI-specific risk and recommended actions. |
| ISO/IEC 42001:2023 | AI management system requirements | Organization-level AIMS; can support certification against scoped management system. |
| ISO/IEC 23894:2023 | AI risk management guidance | Risk-specific guidance; not same as certifiable AIMS. |
| ISO/IEC 42005 | AI system impact assessment | Support assessment of affected parties and impacts; verify current edition. |
| ISO 27001 / 27701 | Information security / privacy management | Complement AI-specific governance; maintain scope and evidence. |
| CSA AI Controls Matrix / AI security guidance | Cloud/AI control reference | Map technical and organizational controls; assess relevant edition. |
| EU AI Act | Binding regulation where applicable | Risk-based obligations, provider/deployer roles, prohibited practices and GPAI rules. Verify consolidated legal text and phased dates; proposals are not law. |
| GDPR / local privacy law | Personal-data obligations | Lawful basis, purpose, minimization, transfer, rights and impact assessments where required. |
| Malaysia AIGE | MOSTI 2024 National Guidelines on AI Governance and Ethics | Seven 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 Frameworks | Traditional 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 Moonshot | Testing and assurance resources | Evaluate supported characteristics; does not certify all behavior. |
| ASEAN Guide on AI Governance and Ethics | Regional voluntary guidance and GenAI expansion | Cross-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
Map one use case to ATLAS threat scenarios, OWASP risks, NIST functions, ISO AIMS evidence and jurisdiction-specific duties.
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 / product | What it means | Architect’s notes |
|---|---|---|
| AI inventory | Use case, model/version, data, owner, users, purpose, tools, region, vendor | Include shadow AI, copilots, vendor-embedded AI, experimental workloads and agents. |
| Risk tiers | Low, moderate, high, prohibited under organizational rules | Base on data sensitivity, consequence, autonomy, scale and obligations. |
| Impact assessment | Affected people, decisions, fairness, privacy and safety | Identify human review, recourse, disclosures and mitigation. |
| Vendor due diligence | DPA, retention/training, residency, subprocessors, security evidence | Contract terms and technical settings both matter; review exit strategy and change notification. |
| Model/data supply chain | Provenance, license, SBOM/model card, version | Evaluate dependency, training data rights and update policy. |
| Threat model | Assets, trust boundaries, adversary and abuse cases | Map ATLAS/OWASP to concrete flows; document control and evidence owner. |
| Exception handling | Risk owner, scope, expiry, compensating controls | Avoid indefinite untracked waivers; re-assess after changes. |
| Shadow AI | Discover unapproved usage through permitted telemetry | Provide 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
Create a one-page AI inventory record and risk assessment for an HR assistant. Identify prohibited decisions, owners, evidence, retention and escalation.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Intake | Business outcome, data classification, impact, accountable owner | Choose simple automation vs ML vs LLM vs agent deliberately. |
| Architecture review | Data flows, model path, IAM, isolation, egress, logging | Threat model and privacy assessment; approvals before sensitive processing. |
| Landing zone | Separate dev/test/prod, identity, keys, network, log sink | Private endpoints where appropriate, resource limits and regional requirements. |
| Build | Approved model, prompt/index/tools, evaluation set | Version artifacts; maintain safe defaults; no persistent admin credentials. |
| Pilot | Limited users and data, read-only where practical | Measure utility, feedback and safety; monitor incidents and failure modes. |
| Release gates | Performance, security, privacy, resilience, risk acceptance | Independent review, canary, rollback and documented exceptions. |
| Production operations | SLOs, model/version changes, continuous evaluation | Track token use, output quality, drift, incidents and access recertification. |
| Retirement | Disable identities/tools, delete data by policy, revoke credentials | Archive 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
Draft 30/60/90-day plan for a read-only knowledge assistant, then add controlled ticket creation as a separate risk change.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Identity logs | Entra sign-in/audit, AWS CloudTrail, IdP events | Track agent principal, token context, consent and entitlement changes. |
| Model invocation | Model/version, tenant, status, tokens, latency, policy outcomes | Avoid raw sensitive prompts by default; controlled sampling and restricted access. |
| RAG traces | Query ID, document IDs, ACL decision, index version | Do not copy confidential text into broadly accessible logs. |
| Tool/action logs | Requested and approved arguments, caller, destination, outcome | Hash/redact sensitive fields; use correlation ID and approval binding. |
| Detection use cases | Unexpected privilege, unusual tool action, denied document, budget spike | Correlate multiple signals; tune false positives and verify alerts. |
| Incident response | Triage, containment, evidence, eradication, recovery | Disable agent or tool, revoke supported credentials/sessions, isolate index or model, rollback; prioritize active harm. |
| Red team | Authorized adversarial evaluation | Synthetic data and scoped targets; document repro, impact and fixes. |
| SIEM | Sentinel, Splunk, Chronicle/Google SecOps and other SIEMs | Normalize 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
Design a detection for an agent attempting a tool write after its sponsor revoked approval. Define events, correlation fields and response gates.
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 / product | What it means | Architect’s notes |
|---|---|---|
| Business owner | Accountable for purpose, benefit and impact | Own use case, approve changes, validate outputs and define escalation. |
| AI platform team | Responsible for approved endpoints, registry and delivery | Standard templates, versioning, evaluation, availability and costs. |
| IAM / security | Responsible for identity, threat model and security controls | Least privilege, consent, runtime policy, SOC, emergency isolation. |
| Data owner / steward | Accountable for permitted data use | Classification, ACLs, retention, provenance and deletion. |
| Legal / privacy / compliance | Consulted and responsible within mandate | Determine applicability, contractual terms, DPIA, disclosures and evidence. |
| Risk owner / committee | Accepts residual risk within authority | Time-bound approvals, exceptions, escalation and periodic reviews. |
| Internal audit | Independent assurance | Test design and operating effectiveness; not owner of technical controls. |
| Policies | Acceptable use, approved models, data handling, agent actions, testing | Define what is allowed, by whom, evidence and enforcement mechanisms. |
| KPIs/KRIs | Usage, quality, incidents, policy denials, cost, drift, review overdue | Measure trends and thresholds; don't incentivize hiding reports. |
| Evidence pack | Inventory, risk assessment, architecture, approvals, evaluation, logs, review | Keep 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
Create a RACI for AI onboarding, model changes, new connector requests, incident response and decommissioning. Identify one accountable role per decision.
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.
Minimum viable enterprise AI architecture
| Concept / product | What it means | Architect’s notes |
|---|---|---|
| Starting from zero | Inventory + acceptable use + one approved enterprise tool | No sensitive inputs until data rules approved; owner, SSO, MFA, baseline logging and simple approval. |
| Growing business | Formal intake, vendor assessment, RAG pilot, scoped connectors | Central gateway if multiple APIs; data owner reviews, evaluation suite, incident runbook. |
| Regulated multinational | Federated ownership + central standards and control plane | Regional/legal review, cross-border data governance, segregated environments, evidence automation and independent assurance. |
| Days 0–30 | Discover shadow usage, appoint owner, define risk tiers and data rules | Approve low-risk pilots, establish AI inventory and procurement checklist. |
| Days 31–60 | Build landing zone, identity, gateway/data controls and test suites | Pilot read-only RAG; validate DLP, retrieval ACL, logging and recovery. |
| Days 61–90 | Measure value, review risks, canary production, train users | Approve expansion only with evidence; define risk acceptance and rollback. |
| After 90 days | Review lifecycle, optimize spend, add controlled actions | Monitor model changes, recertify access, red-team, update policies and retire unused agents. |
| Minimum viable architecture | IdP → approved AI entry → model/retrieval → controlled tools → audit | Enforce access at each boundary; preserve business ownership and privacy. |
| RFP scorecard | Must-have gates then weighted capability scores | Evaluate actual data paths, DPA, identity, audit, safety, cost, portability and support. |
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
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.
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.
Speak AI fluently.
| Term | Meaning |
|---|---|
| AI | Artificial intelligence |
| ML | Machine learning |
| DL | Deep learning |
| LLM / SLM | Large / small language model |
| MoE | Mixture of experts |
| RAG | Retrieval-augmented generation |
| LoRA | Low-rank adaptation |
| MCP | Model Context Protocol |
| A2A | Agent-to-agent communication |
| OBO | On-behalf-of delegation |
| SPN | Service principal (Entra usage) |
| STS | Security Token Service |
| CAP | Conditional Access policy |
| PIM | Privileged Identity Management |
| DSPM | Data security posture management |
| CSPM | Cloud security posture management |
| DLP | Data loss prevention |
| GRC | Governance, risk and compliance |
| AIMS | AI management system |
| ATLAS | Adversarial Threat Landscape for Artificial-Intelligence Systems |
| KV cache | Key/value cache used during attention |
| TP / FP / FN / TN | True positive / false positive / false negative / true negative |
| SLO | Service-level objective |
| DPIA | Data protection impact assessment |
| RACI | Responsible, accountable, consulted, informed |
| KRIs | Key risk indicators |
| Harness | Runtime that manages the model/tool loop, execution state and boundaries |
| Scaffolding | Behavioral guidance and structural assistance around model calls |
| Skill | Reusable task instruction package; often SKILL.md with resources |
| AGENTS.md | Repository-level agent instructions; host-dependent discovery and precedence |
| ACP | Agent Client Protocol for connecting clients to coding agents |
| Context engineering | Managing relevant instructions, state, retrieval and tool results for a model |
| Meta-harness | Layer coordinating multiple agents, runtimes or providers |
| Progressive disclosure | Load skill metadata first and relevant full content when needed |
| Harness engineering | Designing an execution environment, feedback and controls for reliable agent work |