<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Phase 3: Observability and Governance on Claude Code Wiki</title><link>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/</link><description>Recent content in Phase 3: Observability and Governance on Claude Code Wiki</description><generator>Hugo</generator><language>en-us</language><atom:link href="http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/index.xml" rel="self" type="application/rss+xml"/><item><title>Audit and Compliance -- Three-Layer Architecture</title><link>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/audit-compliance/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/audit-compliance/</guid><description>&lt;h1 id="audit-and-compliance--three-layer-architecture"&gt;Audit and Compliance &amp;ndash; Three-Layer Architecture&lt;a class="anchor" href="#audit-and-compliance--three-layer-architecture"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="layer-1-aws-cloudtrail"&gt;Layer 1: AWS CloudTrail&lt;a class="anchor" href="#layer-1-aws-cloudtrail"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Captures every Bedrock &lt;code&gt;InvokeModel&lt;/code&gt; call with IAM principal attribution.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What it records:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Timestamp of every API call&lt;/li&gt;
&lt;li&gt;IAM principal (which user/role made the call)&lt;/li&gt;
&lt;li&gt;Model ID invoked&lt;/li&gt;
&lt;li&gt;Source IP address&lt;/li&gt;
&lt;li&gt;Request parameters (not prompt content by default)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Configuration:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Enable CloudTrail in the dedicated Bedrock AWS account&lt;/li&gt;
&lt;li&gt;Send logs to a centralized S3 bucket with immutable retention policy&lt;/li&gt;
&lt;li&gt;Set up CloudWatch Alarms for unusual patterns (e.g., API calls outside business hours, unexpected model IDs)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Limitation:&lt;/strong&gt; CloudTrail records that a call was made but not what was asked or returned. It&amp;rsquo;s an access log, not a content log.&lt;/p&gt;</description></item><item><title>Cost Tracking and Budgets</title><link>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/cost-tracking/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/cost-tracking/</guid><description>&lt;h1 id="cost-tracking-and-budgets"&gt;Cost Tracking and Budgets&lt;a class="anchor" href="#cost-tracking-and-budgets"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="the-cost-challenge"&gt;The Cost Challenge&lt;a class="anchor" href="#the-cost-challenge"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Bedrock bills per-token. 500 developers using Opus for everything can cost $50K–$200K+/month depending on usage intensity. Without controls, costs are unpredictable and can spike when developers discover long-running agentic workflows.&lt;/p&gt;
&lt;h2 id="model-tiering-strategy"&gt;Model Tiering Strategy&lt;a class="anchor" href="#model-tiering-strategy"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;The LLM gateway is the control point for cost management.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Use Case&lt;/th&gt;
 &lt;th&gt;Model&lt;/th&gt;
 &lt;th&gt;Approx. Cost&lt;/th&gt;
 &lt;th&gt;Access&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Routine coding, quick edits&lt;/td&gt;
 &lt;td&gt;Sonnet&lt;/td&gt;
 &lt;td&gt;Lower per-token&lt;/td&gt;
 &lt;td&gt;Default for all developers&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Architecture, complex reasoning&lt;/td&gt;
 &lt;td&gt;Opus&lt;/td&gt;
 &lt;td&gt;Higher per-token&lt;/td&gt;
 &lt;td&gt;Gated to senior engineers or by request&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Summarization, classification&lt;/td&gt;
 &lt;td&gt;Haiku&lt;/td&gt;
 &lt;td&gt;Lowest per-token&lt;/td&gt;
 &lt;td&gt;Claude Code uses automatically as fast model&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;h3 id="implementation"&gt;Implementation&lt;a class="anchor" href="#implementation"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Configure the LLM gateway to:&lt;/p&gt;</description></item><item><title>Security Controls</title><link>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/security-controls/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>http://www.markalston.net/claude-code-wiki/enterprise-rollout/05-phase-3-observability-and-governance/security-controls/</guid><description>&lt;h1 id="security-controls"&gt;Security Controls&lt;a class="anchor" href="#security-controls"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;h2 id="claude-code-permission-model"&gt;Claude Code Permission Model&lt;a class="anchor" href="#claude-code-permission-model"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Claude Code requires explicit developer approval for:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Writing or modifying files&lt;/li&gt;
&lt;li&gt;Executing shell commands&lt;/li&gt;
&lt;li&gt;Making network requests (beyond the LLM API)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is the first line of defense. Developers see what Claude wants to do before it happens.&lt;/p&gt;
&lt;h2 id="non-negotiable-controls"&gt;Non-Negotiable Controls&lt;a class="anchor" href="#non-negotiable-controls"&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;h3 id="bypass-mode-disabled"&gt;Bypass Mode Disabled&lt;a class="anchor" href="#bypass-mode-disabled"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;&lt;code&gt;disableBypassPermissionsMode: &amp;quot;disable&amp;quot;&lt;/code&gt; in managed-settings.json prevents &lt;code&gt;--dangerously-skip-permissions&lt;/code&gt;. This flag removes all permission prompts and lets Claude execute freely &amp;ndash; never use in production or enterprise environments, regardless of developer convenience arguments.&lt;/p&gt;</description></item></channel></rss>