Data-driven strategy for Fabio ArΓ£o β’ US/EU Senior Markets
Live System
IAM + AI β’ 2 pills/day
π IAM Β· OktaNov 26, 2026
Okta's Drift Detector Opens by Accepting Everything: the First Import Writes Your Baseline, Nobody Approves It, and Three Unsynchronised Clocks Decide How Stale Your Evidence Is
π‘ Key Concept
Every governance programme this dashboard has covered so far answers the question "who should have access". Okta's identity reconciliation answers the one nobody funds: who actually does. The opening line of Okta's "Identity reconciliation" documentation, fetched Nov 26, 2026 is the most honest sentence in the IGA docs: "Okta governs access, but doesn't know whether that access changes after it's granted." The feature names the gap β "Drift is the difference between the access that Okta expects a user to have and the actual permissions in a downstream app" β and splits it in two: unmanaged accounts, and entitlement drift. Per Okta's "Certify unmanaged accounts" guide, fetched Nov 26, 2026, an unmanaged account is one of the "Accounts that exist in a downstream app that Okta didn't assign, wasn't aware of, or accounts whose status differs from the matching identity in Okta" β the canonical example being an identity that "was deactivated in Okta but is still active in the app". The accounts review page sorts findings into three shapes worth designing against separately: an account matching an active Okta user, one matching a deactivated Okta user, and one matching no known Okta identity at all.
Now the sentence that decides whether this feature produces evidence or theatre. Per Okta's "Enable identity reconciliation" page, fetched Nov 26, 2026, on the first import after you switch it on "Okta automatically accepts and logs all existing entitlements and accounts in the downstream app as the starting state", and auto-revoke rules "don't run on this first import, regardless of configuration." Read that as an architect, not an admin: your baseline is the estate exactly as found, and no human approves it. Whatever standing access, orphaned service account or post-offboarding leftover is in that app at the moment you click Save becomes the definition of "expected", silently, with a System Log entry rather than a decision. From then on the steady state is equally permissive β "By default, identity reconciliation accepts and logs all differences", and "No automated access changes occur until an admin configures a revocation rule." The feature ships as a detector, not a control, and it is pointed at a reference state you never reviewed. The sequencing consequence is concrete: enable reconciliation on an app after you have a reason to trust what is in it, never on the day you inherit it, because enabling it is itself an act of certification you cannot see.
The second architectural fact is temporal, and the docs contradict themselves in a way worth catching before a design review does. The overview opens by saying reconciliation "continuously detects what actually exists in a downstream app compared to what Okta assigned", then its own "What's not supported" section says: "Identity reconciliation isn't performed in real time and doesn't do event-based detection." The second statement is the one to build on, and it comes with an ownership transfer β "Okta doesn't auto-configure or enforce import schedules", so "Detecting drift for an app requires that admins configure and maintain import schedules for that app at an appropriate cadence." Your detection latency is therefore a number you own, not one the product gives you, and it is actually three numbers running out of phase: the import schedule you configure per app; the extra weekly pass that the "Import all unmanaged accounts" option adds, whose "frequency" the enable page says plainly "You can't change"; and a third clock the certification page mentions only in troubleshooting β "Okta refreshes the data for unmanaged accounts every seven days" β which is why a campaign launched within seven days of another's end date can present access that was already revoked. A reviewer deciding on stale data signs off on a fiction. One note on status, because it will come up in procurement: Okta's Identity Governance release notes list "Import all unmanaged accounts" as a Generally Available item in version 2026.47.1, deployed November 18, 2026, while every reconciliation documentation page I fetched still carries an "Early Access release" label β so confirm the flag state in your own org rather than quoting either page at a customer. The thread to today's AI pill is the same shape in a different system: there too the platform's default is to accept or discard quietly, and the only durable record of what happened is one you deliberately choose to write.
π¬ Deep Dive
Practitioner trap: the option that finds your worst accounts is the one option whose findings you cannot work in the UI. "Import all unmanaged accounts" is, per the enable page, there "to detect deactivated accounts and accounts with incomplete profiles in the app" β precisely the offboarding leftovers an auditor asks about β and it "is off by default". Turn it on and two limits land immediately. First, scope: it is "available only for Office 365, Active Directory, On-premises Provisioning (OPP), and generic database (JDBC) apps", so every SCIM SaaS app in your estate is outside it, which means the feature does not cover the part of your estate that grew fastest. Second, and sharper: the accounts it uniquely finds are not actionable where you review everything else. The enable page states "You can't manage these accounts from the Reconcile import diffs page", and the overview agrees that you "can't manage deactivated and incomplete accounts detected by Import all unmanaged accounts in the admin UI" β they "generate System Log events and appear in the identity reconciliation reports" and that is the whole interface. So the deliverable for this option is not a queue an analyst works; it is a log pipeline and a report owner. If you enable it without building the downstream consumer, you have added a weekly import, some log volume, and no remediation path at all.
The certification path is a prerequisite chain, and its scale is per-entitlement, not per-account. Certifying what reconciliation finds needs more than a toggle: per the certification guide you must be "a super or access certifications admin", you must "Check that the Account reconciliation and Certify unmanaged accounts features are enabled for your org", the app must support JDBC or OPP with provisioning configured, Entitlement Management must be on, and "Import all unmanaged accounts" must already be selected in the app's settings. Clear all of that and the campaign shape has two edges worth pricing. One: "Okta generates one review item for each entitlement held by an unmanaged account when the campaign launches and assigns it a reviewer" β an orphaned admin account with forty entitlements is forty decisions for one human, so a campaign scoped to "Review all unmanaged accounts" across a large AD estate is a review burden you should model before you launch, and the Custom (Okta Expression Language) scope over "the app's imported user profile attributes" is how you keep the first campaign small enough to finish. Two: there is no manager to route to. "Manager-based review isn't available, because an unmanaged account has no linked Okta identity to look up a manager from" β reviewer types are User, Group and Resource owner only, which means resource ownership stops being metadata hygiene and becomes the thing that decides whether these campaigns can be staffed at all.
Revocation does less than the word suggests, and that gap is the most likely audit finding. Three documented limits compose into one unpleasant outcome. From the certification guide: "Revoking all of an account's entitlements doesn't deactivate the account," and "Okta doesn't automatically remove unmanaged accounts from groups when a reviewer revokes access. After the campaign, remove the membership manually in AD or Entra." From the entitlement review page: automated rules can accept or reject additive and subtractive drift independently, and "Entitlement drifts revoked by automated rules are tagged with Okta System as the actor" β useful attribution, and also a reminder that a rule you wrote months ago is now making decisions under a name that is not yours. Put together: a campaign can close green, every review item marked revoked, while the account is still enabled and still in its groups in Active Directory. The campaign is a record of intent; the manual follow-up is the control. Any programme that reports certification completion without a reconciliation check afterwards is reporting the intent and calling it the outcome. Two more scope limits belong in the same note: the certification guide says Governance Analyzer produces no insights or recommendations for these campaigns, and auditor reporting packages include only the Campaign scope and Campaign actions reports β so the evidence pack is thinner here than for ordinary user campaigns, and you should see that before an auditor does.
Staff-level framing: treat enablement as a change with a blast radius, because the dangerous configuration is the one that looks responsible. The enable page's own warning is to not "set any auto-revoke rules, as this may result in users losing access" during onboarding β which, combined with auto-revoke not running on the first import, gives you the safe rollout order for free: enable on one low-stakes app with no revocation rules; let the first import write the baseline; then diff that baseline against what you believe is true and treat every surprise as a finding about your provisioning, not about reconciliation; only then add revocation rules, narrowest first. The permission to ask for is modest and should stay modest β the enable page requires only "an admin role with permission to manage the app and its provisioning settings", and the review pages only "permission to manage the app and view its import results" β so there is no reason for this work to travel on a super-admin credential even though the certification side accepts one. Audit trail is the part that is genuinely good and worth citing in a design review: per-account Confirm, Revoke and Ignore decisions are "logged in the System Log" with actor, timestamp, action and justification, and Ignore is durable β "Okta remembers the decision" β which is how you keep a known-good service account from re-appearing in every campaign forever. The cost conversation is a cadence conversation: detection latency is the product of import schedules you fund, so the honest statement to a sponsor is that reconciliation converts an unknown into a measured number, and the size of that number is a budget decision about import frequency, report ownership and manual AD follow-up, not a feature flag.
# ---------------------------------------------------------------------------
# Okta identity reconciliation - the documented defaults, in one place.
# Admin Console > Applications and Resources > Applications > {app}
# > Provisioning > To Okta > Settings > Account Reconciliation > Edit
# ---------------------------------------------------------------------------
first_import:
behaviour: "accepts and logs all existing entitlements and accounts
in the downstream app as the starting state"
auto_revoke: DOES NOT RUN # "regardless of configuration"
implication: your reference state is the estate as-found, unreviewed.
=> enable AFTER you have a reason to trust the app,
never on the day you inherit it.
steady_state_default:
differences: "accepts and logs all differences"
changes: none
# "No automated access changes occur until an admin
# configures a revocation rule."
detection_model:
real_time: NO # "isn't performed in real time"
event_based: NO # "doesn't do event-based detection"
schedule_owner: YOU # "Okta doesn't auto-configure or enforce
# import schedules."
=> drift age is bounded by YOUR import cadence and nothing else.
import_all_unmanaged_accounts:
default: off
detects: deactivated accounts + accounts with incomplete profiles
apps: Office 365 | Active Directory | On-premises Provisioning
| generic database (JDBC) # and ONLY these
frequency: weekly, ADDITIONAL to your normal imports
tunable: NO # "You can't change the frequency."
review_ui: NONE # not on the Reconcile import diffs page
output: System Log events + identity reconciliation reports ONLY
=> the deliverable is a log consumer, not an analyst queue.
per_account_actions: # Accounts tab, manual
confirm: keep the account, add it to the app's user list in Okta
revoke: deactivate + remove the account from the downstream app
ignore: suppress future notifications; "Okta remembers the decision"
logged: actor, timestamp, action, justification -> System Log
entitlement_drift: # Entitlements tab
shape: additive OR subtractive, accepted/rejected independently
auto: rule-driven revocations are tagged actor = "Okta System"
undo: Reject an automatically accepted change
Doc-verified against Okta Identity Governance identity reconciliation docs, Nov 2026.
# ---------------------------------------------------------------------------
# Certifying what reconciliation found. The prereqs are a chain, not a toggle.
# ---------------------------------------------------------------------------
# role: super admin OR access certifications admin
# org: "Account reconciliation" AND "Certify unmanaged accounts" enabled
# app: JDBC or OPP, provisioning (To Okta) enabled and configured,
# Entitlement Management enabled,
# "Import all unmanaged accounts" already selected
#
# Identity Governance > Access Certifications > Certification campaigns
# > Create campaign > Resource campaign
# Resources : Application (Group = separate EA feature,
# AD / Office 365 groups only)
# Entitlements : Review entitlements = ON
# Identities : [x] Review unmanaged accounts
# -> "Review all unmanaged accounts"
# -> or "Custom (Okta Expression Language)" over the
# app's IMPORTED user profile attributes
# Reviewers : User | Group | Resource owner
# Manager-based review: UNAVAILABLE - an unmanaged
# account has no linked Okta identity to look up a
# manager from. Resource ownership is the staffing plan.
#
# SCALE : ONE review item PER ENTITLEMENT held by the account, at launch.
# 40 entitlements on one orphan = 40 decisions for one human.
# STALENESS : unmanaged-account data refreshes every 7 days, so a campaign
# launched within 7 days of another's end date can present
# access that was already revoked.
# AFTER : revoking every entitlement does NOT deactivate the account,
# and group memberships are NOT removed - do that by hand in
# AD or Entra. The campaign records intent; this step is the
# control. Verify with the next reconciliation import.
# EVIDENCE : no Governance Analyzer insights for these campaigns; auditor
# packages carry only Campaign scope + Campaign actions.
Doc-verified against Okta "Certify unmanaged accounts" and "Enable identity reconciliation", Nov 2026.
π§ Recall
From the Nov 19 pill on Okta risk rules: why do two access requests that together create a separation-of-duties conflict both sail through, and why does today's pill mean reconciliation is a weaker backstop than it first looks?
Show answer
Because a risk rule carries one resource and is evaluated when a request is submitted. Two requests opened while both are still pending each evaluate against the requester's current, still conflict-free access, so neither rule ever sees the combination it exists to block β the conflict is created by the pair, and nothing evaluates the pair. Reconciliation is the obvious answer: detect the conflicting state after the fact. Today's pill is why that answer needs qualifying three times. It is not real-time and does no event-based detection, so the conflict persists for at least one import cycle you scheduled yourself. Its default posture "accepts and logs all differences" with "No automated access changes" until you write a revocation rule, so by default it records the conflict rather than ending it. And if the conflicting access predates enablement, the first import already absorbed it into the baseline as expected state, so it never appears as drift at all. Submission-time prevention and after-the-fact detection share one blind spot β neither reasons about a combination that was never a single event.
πΌ Market Signal
Governance is the line item carrying Okta's growth story, which is why unglamorous plumbing like this gets shipped and why the skill sells. In Okta's second quarter fiscal 2027 results, Aug 2026 β the quarter ended July 31, 2026 β CFO Brett Tighe attributes the quarter to "strong contributions from our portfolio of new products, led by Okta Identity Governance", alongside "accelerating cRPO, success with our largest customers". The surrounding numbers set the scale of the installed base a governance specialist is selling into: total revenue of $805 million, up 11% year-over-year; subscription revenue of $793 million, up 12%; RPO of $4.858 billion, up 17%; cRPO of $2.585 billion, up 14%; and full-year fiscal 2027 guidance raised to $3.216β$3.226 billion. CEO Todd McKinnon frames the agent story in verbs that map exactly onto this feature set β Okta helps organisations "discover agents, secure their connections, govern their actions, and respond when something goes wrong" β and the first and last of those verbs are what reconciliation does for human and service accounts today. Two reads for positioning. The commercial one: OIG is the product leading new-product contribution, so the buying centre for governance work is funded and the engagements are attach-motion, not greenfield. The technical one is the part competitors miss β the gap this pill is about is not "can Okta detect drift" but "what is your baseline, how stale is your evidence, and who does the manual AD cleanup after a campaign closes". That is a scoped, repeatable assessment: inventory which apps even qualify for the unmanaged-account import, measure the three clocks, and name the owner of the follow-up. It is the kind of work a buyer cannot do alone precisely because the product reads as finished.
β‘ Action This Week
Write the one-page "drift baseline memo" that should exist before anyone enables this feature, for a single app. Four parts, under two hours. (1) Eligibility: list your provisioning-enabled apps and mark which are Office 365, Active Directory, OPP or JDBC β only those get the unmanaged-account import β and state plainly what share of your estate that leaves uncovered. (2) The three clocks: write today's configured import cadence for the chosen app, add the fixed weekly extra pass, add the seven-day campaign refresh, and state the worst-case age of a finding a reviewer could be handed. (3) The baseline risk: answer in writing "if we enabled reconciliation on this app this afternoon, what access would be silently accepted as expected state?" β name the three or four account types you would expect to be wrong, because that list is your pre-enablement cleanup backlog, and the first import is the moment it stops being visible as drift. (4) The remediation path: name who owns the System Log and report consumer for the accounts the UI cannot action, and who performs the manual group removal in AD or Entra after a campaign revokes entitlements, since revocation neither deactivates the account nor removes memberships. Then sequence it: no revocation rules, one app, baseline first, diff against belief, narrowest rule last. This publishes well as a LinkedIn post or portfolio page because the argument is counterintuitive in one line β turning on drift detection is itself an unreviewed approval β and the memo is the artifact that proves you have run the problem, not just read the release note. Done = a one-page memo naming the eligible apps, the worst-case staleness number from all three clocks, the account types your first import would silently bless, and a named owner for both the log-only findings and the manual post-campaign cleanup.
Every Context Clear Buys Window and Bills a Cache Write: clear_at_least Is a Gate That Can Silently Switch Clearing Off, and Only /memories Crosses the Session Boundary
π‘ Key Concept
A long-running agent has three places to put history, and most teams discover the difference between them by accident. Per Claude's "Context editing" documentation, fetched Nov 26, 2026, context editing throws things away by rule: the clear_tool_uses_20250919 strategy drops old tool results once the prompt crosses a threshold, and "The API replaces each cleared result with placeholder text indicating to Claude that it was removed." Per the compaction overview, fetched Nov 26, 2026, compaction instead summarises: it "replaces the older turns of a conversation with a summary that Claude writes on the server", keeping "a long conversation or agent task inside the context window". Both operate on the window. The third place does not: per the memory tool documentation, fetched Nov 26, 2026, the memory_20250818 tool lets Claude "create, read, update, and delete files that persist between sessions", and it is yours to run β "The memory tool operates client-side: Claude requests file operations, and your application runs them," so "Memory lives entirely in your application." The architecture question is therefore not "which feature do I turn on" but which of your three storage tiers is the system of record, because two of them are designed to lose data on purpose.
The coupling that decides your bill is between clearing and the prompt cache, and the docs state it without hedging. Tool result clearing "Invalidates cached prompt prefixes when content is cleared." The guidance that follows is an instruction to do arithmetic: "To account for this, clear enough tokens to make the cache invalidation worthwhile," and "You'll incur cache write costs each time content is cleared, but subsequent requests can reuse the newly cached prefix." That is why clear_at_least exists, and the docs are explicit about its purpose β it "helps determine whether context clearing is worth breaking your prompt cache." Now put a price on the trade. Per Menlo Ventures' "2026: The State of Enterprise AI", Nov 2026, "Cache reads can make up 95% or more of an agent's tokens", with Opus 5.5 billing $0.20 per million for cache reads against $4 for fresh input and $20 for output β which is how the report arrives at roughly $0.70 per million tokens for an agent session at a 3% fresh-input, 2% output mix. Read those two sources together and the shape is clear: a steady-state agent is overwhelmingly a cache-read workload, and every clear converts part of that into a cache write. Clearing is not free context; it is a purchase, and the thing you are buying is window headroom.
The boundary is also where the two features actually cooperate rather than compete. The context-editing docs note that under "Using with the memory tool", "When your conversation context approaches the configured clearing threshold, Claude receives an automatic warning to preserve important information" β so the intended pattern is that the model writes what matters into /memoriesbefore the clear lands, and the docs add that when memory is enabled "Claude automatically checks its memory directory before starting a task." The /memories path is "a prefix that your handler maps onto real storage", which means durability, retention and tenant isolation are your problem, and the docs' path-traversal warning is not optional hardening β a handler that resolves .. turns a model-driven file API into arbitrary filesystem access. One more boundary detail is worth carrying into a design review because it has compliance teeth: the context-editing page lists the feature as beta, zero-data-retention eligible excluding Covered Models, and HIPAA not eligible, while the memory tool is marked stable and HIPAA eligible. Two features that look like one capability sit on different sides of a regulatory line. Today's IAM pill is this same lesson in an identity system: Okta's reconciliation accepts your entire existing estate as the baseline silently and logs rather than acts, so in both systems the platform's default is to absorb or discard quietly, and the only durable record is the one you deliberately decided to write.
π¬ Deep Dive
Practitioner trap:clear_at_least reads like a safety floor and behaves like an on/off switch. The docs define it as ensuring "a minimum number of tokens is cleared each time the strategy activates", and then add the sentence that changes its meaning entirely: "If the API can't clear at least the specified amount, the strategy isn't applied." That is a gate, not a floor. Set it generously β a round 50,000 on a workload whose clearable tool results rarely exceed 20,000 tokens β and clearing never happens at all. Nothing errors. Your config is valid, the feature is enabled, the parameter looks conservative, and the agent walks into the context limit exactly as it did before you configured anything. The failure is silent and it is also invisible in the obvious place, because an agent that never clears produces no applied_edits entries to notice the absence of. Two companions deserve the same suspicion. trigger defaults to 100,000 input tokens, so on a workload that tops out at 80,000 the feature is configured and never fires. And when you combine strategies the docs impose an ordering rule β "When combining strategies, you must list the clear_thinking_20251015 strategy first" β which makes the edits array order-significant, so a reorder during a refactor is a behavioural change disguised as formatting.
Do the break-even arithmetic before you tune, because the cache is the workload. The docs say clearing invalidates cached prefixes and that you "incur cache write costs each time content is cleared", and the market data says cache reads can be 95% or more of an agent's tokens at a fifth of the fresh-input rate. Those two facts define the whole optimisation: you are trading a repeated cheap read against an occasional expensive write plus the tokens you no longer carry. The trade is clearly good when a clear removes a large block that would otherwise be re-read on every subsequent turn, and clearly bad when it removes a few hundred tokens and forces a full prefix rewrite β which is precisely the thrash clear_at_least is designed to prevent, and precisely the case a default-free configuration walks into. Get the actual cache-write multiplier from the pricing page for the model you ship rather than assuming it, then size clear_at_least from your own trace distribution: measure the clearable tool-result volume per turn, take something near the low end of what actually accumulates rather than a round number, and verify it fires. One asymmetry is free money and easy to miss: the docs say thinking clearing preserves the prompt cache when thinking blocks are kept and invalidates it "at the point where clearing occurs" when they are not β and clear_thinking_20251015 defaults to keeping just one thinking turn, which the docs note applies "on every model", overriding per-model defaults. Clearing thinking is usually the cheaper lever to pull first.
Observability is opt-in, and the token counter is the only honest dry run. Two response surfaces exist and both are easy to drop on the floor. First, the record of what the model stopped being able to see: a non-streaming response carries context_management.applied_edits with entries such as cleared_tool_uses: 8 and cleared_input_tokens: 50000, and under streaming "the context edits are included in the final message_delta event" β so a client that only accumulates text deltas discards its entire audit trail of context mutation. Log it per request, keyed to the conversation, or you will debug "the agent forgot the file it just read" with no evidence that a clear occurred. Second, and better still, you can measure the whole thing before shipping: POST /v1/messages/count_tokens accepts the same context_management block and returns input_tokensafter clearing alongside context_management.original_input_tokens before it. That turns parameter tuning into an offline experiment on recorded traces instead of a production A/B, and it is the one call that will show you a clear_at_least gate never opening. One caveat the compaction docs raise for anyone building cost dashboards: with server-side tools such as web search, cache_read_input_tokens "includes accumulated reads from multiple internal API calls", so token counts can be overcounted and your per-turn cost model will drift from the invoice.
Staff-level framing: decide the storage tiers first, then the parameters, then the compliance envelope. The design decision worth writing down is which facts an agent is allowed to hold only in the window β cheap, disposable, lost at session end β and which must be promoted to /memories or to your own database before a clear can take them. The docs give you the hook: Claude receives an automatic warning as the threshold approaches, so "write durable state out now" is a behaviour you prompt for and then verify, not one you assume. Blast radius sits in two places. clear_tool_inputs defaults to false and flipping it to true "Controls whether the tool call parameters are cleared along with the tool results" β meaning you lose the record of what was asked, not just the answer, which is exactly the field an incident reviewer needs; keep it false unless tool arguments are themselves the bulk, and if you flip it, make sure your own request log retains the arguments. And because /memories is a prefix your handler maps onto real storage, the handler is a security boundary: constrain paths, enforce tenant separation, and set retention deliberately, because "persists between sessions" means a model-authored file outlives the conversation that justified it. On rollout, prefer the platform's own recommendation over clever client code β "Anthropic recommends server-side compaction over SDK compaction", with compaction_control deprecated in the TypeScript and Ruby SDKs and removed in Python v1.0 β and note the one state machine edge to handle: if compaction fires while a tool use is pending, "it removes the tool use block from the message history before generating the summary", so an orchestrator that assumes every tool_use it issued will still be present must tolerate its disappearance. Finally, put the regulatory split on the slide: context editing is beta and HIPAA ineligible while the memory tool is stable and HIPAA eligible, so in a regulated workload the feature you can keep may be the one that writes files, not the one that trims the window.
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2026-10-21" \
-H "content-type: application/json" \
-H "anthropic-beta: context-management-2025-06-27" \
-d '{
"model": "claude-opus-5-5",
"max_tokens": 4096,
"messages": [ { "role": "user", "content": "..." } ],
"tools": [
{ "type": "memory_20250818", "name": "memory" },
{ "type": "web_search_20250305", "name": "web_search", "max_uses": 3 }
],
"context_management": {
"edits": [
{ "type": "clear_thinking_20251015",
"keep": { "type": "thinking_turns", "value": 2 } },
{ "type": "clear_tool_uses_20250919",
"trigger": { "type": "input_tokens", "value": 30000 },
"keep": { "type": "tool_uses", "value": 3 },
"clear_at_least": { "type": "input_tokens", "value": 5000 },
"exclude_tools": [ "memory", "web_search" ] }
]
}
}'
# ORDER IS SEMANTIC: "you must list the clear_thinking_20251015 strategy
# first". A refactor that sorts this array changes behaviour.
#
# The memory tool itself needs NO beta header. Its name must be "memory".
Doc-verified against Claude context-editing and memory-tool docs, Nov 2026 β strategy strings, parameter names and the ordering rule. The exclude_tools values are a design choice here, not a documented recommendation.
# ---------------------------------------------------------------------------
# Documented defaults. Context editing does nothing until you send "edits".
# ---------------------------------------------------------------------------
# clear_tool_uses_20250919
# trigger 100,000 input tokens activates once the prompt
# exceeds this threshold
# keep 3 tool use/result pairs oldest removed first
# clear_at_least none <-- READ THE GATE BELOW
# exclude_tools none never cleared
# clear_tool_inputs false true also drops the tool CALL,
# i.e. WHAT WAS ASKED
# clear_thinking_20251015
# keep { thinking_turns: 1 } applied on every model,
# overriding per-model defaults
#
# ---------------------------------------------------------------------------
# THE GATE. clear_at_least is not a floor:
# "If the API can't clear at least the specified amount, the strategy
# isn't applied."
# => clear_at_least = 50_000 on a workload that only accumulates ~20_000
# of clearable tool results means clearing NEVER happens. No error.
# You hit the context limit with a feature you believe is enabled,
# and there are no applied_edits entries to reveal the absence.
# => size it from YOUR measured per-turn clearable volume.
#
# ---------------------------------------------------------------------------
# Dry-run offline on recorded traces. Same context_management block:
# POST /v1/messages/count_tokens
# -> "input_tokens": 25000 # AFTER clearing
# -> "context_management": {
# "original_input_tokens": 70000 } # BEFORE clearing
# This is also how you prove the gate above actually opens.
#
# ---------------------------------------------------------------------------
# LOG THIS. It is the only record of what the model stopped being able to see.
# non-streaming:
# "context_management": { "applied_edits": [
# { "type": "clear_tool_uses_20250919",
# "cleared_tool_uses": 8, "cleared_input_tokens": 50000 } ] }
# streaming: the same edits arrive in the FINAL message_delta event,
# so a text-delta-only client throws the audit trail away.
#
# Cache: clearing "Invalidates cached prompt prefixes"; you "incur cache
# write costs each time content is cleared". Thinking clearing preserves
# the cache when blocks are KEPT, invalidates at the clear point otherwise.
Doc-verified against Claude context-editing docs, Nov 2026 (defaults, gate wording, response and count_tokens fields).
π§ Recall
From the Nov 19 computer use pill: the API stopped doing one specific piece of work for you on every screenshot. Which, and why does today's pill make that the same question asked in two opposite directions?
Show answer
Resizing. The computer toolset takes no display dimensions and the API does not downscale for you, so an oversized tool_result image is rejected with a validation error β and because Claude returns coordinates in the pixel space of the image it received, you must keep your scale factor to map them back. That was work moving out of the platform and into your client. Today's pair moves in both directions at once, and knowing which way each one went is the whole design. Context editing runs server-side: you declare a rule, the API drops the tool results and substitutes placeholder text, and all you get back is the applied_edits receipt. Compaction is also server-side β Claude "writes on the server" the summary that replaces older turns. The memory tool is the opposite: client-side, "Claude requests file operations, and your application runs them", so /memories is your storage, your retention policy and your path-traversal risk. Same question β who executes, who stores, who is liable β answered differently per feature, which is why "turn on context management" is not a single decision.
πΌ Market Signal
Context management stopped being a craft concern the moment agents became the majority of inference. Per Menlo Ventures' "2026: The State of Enterprise AI", published Nov 3, 2026 β a survey of nearly 400 US enterprise decision-makers responsible for more than $4 billion in AI spending, fielded by Morning Consult between September 8 and 26, 2026, with token economics triangulated against OpenRouter, Ramp and Vercel β enterprises now spend "$176.8B in enterprise spending on using AI (up 5.4x) versus $102.5B on building models (up 5.3x)", and "On OpenRouter, agents now generate 80% of all tokensβ130.9 trillion per week, roughly 7x human-driven usage." The report is careful that OpenRouter "is just one channel" skewed toward individual developers and startups, so treat the 80% as directional rather than an enterprise census. Three numbers matter for anyone selling this skill. The cache figure already quoted β "Cache reads can make up 95% or more of an agent's tokens" β means prompt-cache behaviour, not model choice, dominates the unit economics of a production agent, and context editing is one of the few knobs that changes it deliberately. The spend-versus-adoption split is the demand signal: "Spend per enterprise nearly quintupled while adoption among enterprises rose only from 55% to 65%", so the money is going into making deployed agents work, which is exactly where cost-per-task and context architecture live. And the platform concentration tells you where to be fluent β Anthropic at 40% to 55% of enterprise LLM API spend, Anthropic plus OpenAI at 86%, up from 67%. For positioning, the honest pitch is narrow and verifiable: most teams running agents have never measured their clearable token volume, never logged applied_edits, and cannot say whether their context configuration fires at all. A two-day engagement that replays recorded traces through count_tokens and produces a before/after cost model is a concrete deliverable against a line item that is growing roughly five times a year.
β‘ Action This Week
Build the context-management dry-run harness, on recorded traces, with no production change. Under two hours. (1) Take 20β50 saved conversations from your longest-running agent and, for each, call POST /v1/messages/count_tokens twice: once with no context_management, once with clear_tool_uses_20250919 at your candidate settings. Record original_input_tokens and input_tokens for each. (2) Plot the per-turn clearable volume. This single histogram answers the question nobody asks: is your clear_at_least larger than the amount you ever actually have to clear? If it is, the strategy is silently inert and the number you need is at the low end of that distribution, not a round figure. (3) Sweep trigger and keep across three settings each and tabulate tokens saved per turn against the number of clears β each clear is a cache invalidation and a cache write, so the column that decides the winner is clears-per-conversation, not tokens-saved. Look up your model's actual cache-write price and put a currency figure in the last column. (4) Add one line to your client: persist context_management.applied_edits from every response, including the final message_delta under streaming, keyed to the conversation id. Then write the three-sentence recommendation β chosen parameters, measured token and cost delta, and the one fact you are now logging that you were not before. The histogram plus the cost table is a strong LinkedIn post or portfolio artifact precisely because the headline is a configuration that looks right and does nothing. Done = a clearable-volume histogram from real traces, a parameter sweep table with clears-per-conversation and a cost column priced from your model's cache-write rate, a chosen clear_at_least you have proven actually fires, and applied_edits landing in your logs.
Okta Will Now Honour an ID-JAG It Never Issued: Eight Ordered Checks, a Five-Minute Window, and a Policy Condition That Fails by Not Matching
π‘ Key Concept
In every Cross App Access flow this dashboard has covered before, Okta sits in the IdP role: the user signs in to Okta, Okta mints the ID-JAG, and the agent walks it to a resource authorization server. That role is now optional. Per Okta's "Configure XAA with an external IdP" guide, fetched Nov 24, 2026, an external OIDC IdP β or another Okta org β can issue the ID-JAG instead, and "Okta acts only as the resource authorization server." Two constraints frame everything that follows: "This flow applies only to a custom authorization server. The Okta org authorization server doesn't accept an ID-JAG issued by an external IdP." The agent presents the foreign assertion straight to the custom server's /token endpoint as a urn:ietf:params:oauth:grant-type:jwt-bearer grant β "There's no separate exchange with the Okta org authorization server first" β and, the guide notes, "The client doesn't need a separately provisioned Okta credential."
Read that last clause slowly, because it is the whole security question. An agent with no Okta credential, holding a JWT signed by a key Okta does not own, obtains an Okta access token for an Okta-protected resource. The trust is assembled from five bindings, all documented: the ID-JAG's iss must match an IdP configured in your org whose IdP Usage is either Cross App Access only or SSO and Cross App Access; the signature is verified with a key Okta pulls from "the JWKS endpoint that's configured for the IdP"; the aud must be your custom authorization server; the client_id claim "matches the client that sends the token request"; and the sub "identifies a user who has a linked identity in Okta". Then two hard limits: "The lifetime is no more than five minutes," and the assertion must not have been seen before. Okta "doesn't create a user when it receives an ID-JAG" β there is no JIT path on this grant, so the sub either resolves to a pre-linked Okta user or the request fails.
What makes this a protocol pill rather than a configuration pill is that the guide publishes the order of those checks β eight steps, audience before issuer before client before time before signature before replay before user link β and ordering is what you test against, what you reason about when a request fails, and what tells you which check an attacker reaches first. The matching prerequisite sits one layer out, on the resource side: per Okta's "Expose XAA metadata for your resource app", Nov 2026, a resource app's authorization server metadata at .well-known/oauth-authorization-server must advertise urn:ietf:params:oauth:grant-type:jwt-bearer in grant_types_supported and urn:ietf:params:oauth:grant-profile:id-jag in authorization_grant_profiles_supported, while the RFC 9728 protected resource metadata at .well-known/oauth-protected-resource "is required for Model Context Protocol (MCP) servers" and optional elsewhere. The guide's warning about omitting either document is the sentence to put on a runbook: "Without these discovery metadata URIs, token exchange requests can fail silently or be rejected." That is also the thread to today's AI pill: MCP's 2026-07-28 revision deleted its sessions and now asks each tool server to validate an opaque, client-held requestState blob β audience, principal, expiry, replay β which is precisely the eight-check validator Okta runs here, except hand-written by every tool author instead of enforced once at an authorization server.
π¬ Deep Dive
Practitioner trap: the IdP condition does not deny β it stops matching, and a rule that stops matching leaves no "blocked by policy" to read. The guide is precise about where xaaSupportedIdentityProvider runs and what it does: "Okta checks this condition at the custom authorization server's /token endpoint, after it matches the ID-JAG's iss claim to an IdP in your org. If the IdP isn't one that the condition allows, the rule doesn't apply to the request." A non-applicable rule is not a decision; it is an absence, and the request then falls through to whatever else your policy happens to allow. Three sharp edges come with it. The condition "is valid only on" rules whose grant types include jwt-bearer, so adding it to the wrong rule is a no-op you will not be told about. Its default is permissive β provider "default value is ANY", meaning any IdP in the org that is configured for XAA β so the safe posture (SPECIFIC_IDP plus idpIds) is the one you must type. And the update is a full replace: "This request replaces the entire rule, so include the rule's existing properties along with the new condition," which is how a PUT intended to narrow one condition silently widens the people or scopes conditions beside it. Diff the rule before and after, every time.
The user link is the provisioning dependency nobody budgets for, and one of the two IdP usages has no automatic linker at all. Okta matches the ID-JAG's sub "to an Okta user through an existing linked identity (externalId) between that user and the IdP. If no link exists, the request fails." How that link appears depends entirely on the usage you chose: with SSO and Cross App Access, "Okta links the user when they sign in to Okta through the IdP," subject to account linking and JIT settings β so the link is a by-product of human sign-in. With Cross App Access only, "Users don't sign in to Okta through the IdP, so Okta can't link them automatically": you set externalId to the sub value yourself, per user, through the Link-a-user-to-an-IdP API. That is the honest shape of the acquisition scenario β the agents federate in an afternoon, and the user table is a reconciliation job you own forever. Budget it as one, with drift detection, because an unlinked user is an agent that works for forty colleagues and fails for the forty-first. One more irreversible decision sits next to it: "You can't change the IdP usage of an IdP after you save it with Cross App Access only or SSO and Cross App Access. To use a different option, delete the IdP and create a new one."
Two issuers that look alike are a rejection, not a coin flip β and that is the right default to design for. Step three of the documented validation reads: "Okta matches the iss claim to a single trusted IdP that has its IdP usage set to Cross App Access only or SSO and Cross App Access. If no IdP matches, or if more than one IdP matches, Okta rejects the request." In a real multi-IdP estate β the acquisition case this feature exists for β two tenants of the same vendor, or a test and a production instance registered side by side, can present the same issuer string, and the result is a hard failure rather than an ambiguous grant. Treat issuer uniqueness as an inventory invariant you assert, not a property you assume. The anti-replay half is equally finite and equally worth stating out loud to whoever signs off the design: the only replay protection is a five-minute maximum lifetime plus Okta's own "confirms that the ID-JAG hasn't already been used" check, both enforced at the token endpoint. Your resource server never sees the assertion; it sees the access token Okta issued, so every claim your API makes about how an agent got there is a claim about the authorization server's behaviour, which is an argument for keeping these grants on a custom AS you can describe rather than scattering them.
Staff-level framing: the governance story here is better than the usual federation pitch, and the cost story is where the design is decided. Blast radius: the identity that configures this needs okta.authorizationServers.manage, plus okta.users.manage if it also writes the IdP links β give it a dedicated service app with private-key JWT, not a super-admin token, because a credential that can edit authorization-server policy rules can edit the condition that decides which foreign issuers you trust. Rollout order that survives an audit: register the IdP with the narrower Cross App Access only usage where the IdP will never sign humans in; land the policy rule with SPECIFIC_IDP from the first commit; link a single pilot user and prove the eight checks in order, including the negative cases (wrong aud, six-minute lifetime, replayed assertion, unlinked sub); only then widen the people condition. Cost and entitlement: a third-party OIDC IdP in this role requires an Okta for AI Agents subscription, while "If the IdP is another Okta org, your org only needs the SSO feature" β so the Org2Org variant is the cheap way to prove the pattern, and it carries its own gate, since the issuing org must put your custom authorization server's ID in the Org2Org app's Custom Authorization Server ID field or "you can't configure XAA on the Machine Assignments tab". Audit trail: the access token your API receives is the artifact, so the question to answer before go-live is whether a reviewer can reconstruct, from logs alone, which external IdP asserted the user and which agent client presented the assertion β and if the answer is no, that is a logging gap to close now, not after the first incident.
# ---------------------------------------------------------------------------
# 1. The runtime call: a foreign ID-JAG presented straight to a CUSTOM auth
# server. No prior exchange with the Okta ORG authorization server.
# ---------------------------------------------------------------------------
curl -i -X POST \
'https://YOUR_OKTA_DOMAIN/oauth2/{authServerId}/v1/token' \
-H 'Accept: application/json' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer' \
--data-urlencode 'assertion=<EXTERNAL_IDP_ID_JAG>' \
--data-urlencode 'scope=chat.read chat.history' \
--data-urlencode 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
--data-urlencode 'client_assertion=<PRIVATE_KEY_JWT>'
# Okta validates IN THIS ORDER (write your negative tests against it):
# 1. request went to a CUSTOM auth server, not the org authorization server
# 2. ID-JAG aud == this custom authorization server
# 3. ID-JAG iss -> EXACTLY ONE trusted IdP whose usage is
# "Cross App Access only" | "SSO and Cross App Access"
# (no match OR >1 match => reject)
# 4. ID-JAG client_id == the client sending the request
# 5. timestamps valid; MAX LIFETIME 5 MINUTES
# 6. signature verified with a key from that IdP's configured JWKS endpoint
# 7. ID-JAG not already used (the only replay control)
# 8. ID-JAG sub -> an Okta user via an existing linked identity
# (externalId). No link => the request fails.
# Success -> { "token_type":"Bearer", "expires_in":3600,
# "access_token":"...", "scope":"chat.read chat.history" }
# ---------------------------------------------------------------------------
# 2. The gate on step 3. Default is provider:"ANY" = any XAA-configured IdP
# in the org. Type SPECIFIC_IDP. Note: PUT REPLACES THE ENTIRE RULE.
# ---------------------------------------------------------------------------
curl -i -X PUT \
'https://YOUR_OKTA_DOMAIN/api/v1/authorizationServers/{authServerId}/policies/{policyId}/rules/{ruleId}' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{
"type": "RESOURCE_ACCESS",
"name": "XAA external IdP rule",
"conditions": {
"people": { "groups": { "include": [ "EVERYONE" ] } },
"grantTypes": { "include": [ "urn:ietf:params:oauth:grant-type:jwt-bearer" ] },
"scopes": { "include": [ "*" ] },
"xaaSupportedIdentityProvider": {
"provider": "SPECIFIC_IDP",
"idpIds": [ "{idpId}" ]
}
}
}'
# Condition is valid ONLY on rules whose grantTypes include jwt-bearer.
# If the IdP is not allowed, "the rule doesn't apply to the request" -
# an absence of a match, NOT a deny you can grep for.
# ---------------------------------------------------------------------------
# 3. The link Okta will never create for you under "Cross App Access only".
# externalId MUST equal the sub claim of that user's ID-JAGs.
# ---------------------------------------------------------------------------
curl -i -X POST \
'https://YOUR_OKTA_DOMAIN/api/v1/idps/{idpId}/users/TEST_USER_ID' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "externalId": "{subClaimValue}" }'
# Admin scopes needed: okta.authorizationServers.manage (+ okta.users.manage)
# ---------------------------------------------------------------------------
# 4. The resource side. Omit either document and token exchange "can fail
# silently or be rejected". RFC 9728 doc is REQUIRED for MCP servers.
# ---------------------------------------------------------------------------
GET /.well-known/oauth-authorization-server
{
"grant_types_supported": [ "authorization_code",
"urn:ietf:params:oauth:grant-type:jwt-bearer" ],
"authorization_grant_profiles_supported": [
"urn:ietf:params:oauth:grant-profile:id-jag" ]
}
GET /.well-known/oauth-protected-resource # RFC 9728
{ "resource": "https://api.example.com",
"authorization_servers": [ "https://auth.example.com" ],
"scopes_supported": [ "myAPI.read", "myAPI.manage" ] }
Doc-verified against Okta's "Configure XAA with an external IdP" guide, Nov 2026 β the jwt-bearer token request and its parameters, the eight-step validation order, the five-minute maximum ID-JAG lifetime, the single/multiple-IdP rejection rule, the xaaSupportedIdentityProvider object with its ANY default and SPECIFIC_IDP/idpIds form, the full-replace PUT, the Link-a-user request body and the two admin scopes β and against "Expose XAA metadata for your resource app", Nov 2026, for both well-known documents and their required XAA properties. Not executed in this session; every identifier is a placeholder.
π§ Recall
From the Nov 17 pill on the Okta AI agent profile: which four base attributes does that profile carry, and why does filling the profile in completely still leave an agent.id-shaped hole in the tokens your API receives?
Show answer
Four base attributes β name, description, platform and external ID β where name is required, name and external ID must be unique, and all four are read-only. The hole is architectural, not clerical: agent attributes reach tokens through Expression Language custom claims, and custom claims exist only on a custom authorization server, so any API still sitting behind the org authorization server gets no agent claim however complete the profile is. Today's pill is the same boundary from the other side β the external-IdP XAA grant is also custom-AS-only, because "The Okta org authorization server doesn't accept an ID-JAG issued by an external IdP." Two independent agent capabilities, one shared precondition: if your resource is not behind a custom authorization server, neither of them is available to you, and that migration is the real dependency underneath both.
πΌ Market Signal
This is not Early Access plumbing β it shipped as a positioning move eleven days ago. Per Okta's "Okta for AI Agents now works out-of-the-box with multiple third-party identity providers", Nov 2026, dated November 13, 2026, third-party IdP support is "generally available today for Okta for AI Agents and Agent SSO customers", with employee and agent identities able to live "in any Cross App Access (XAA)-enabled IdP, such as Ping, Descope, and Oracle", connected "without a custom connector". The argument Okta is making is explicitly anti-consolidation: "AI isn't going to consolidate on one platform, and neither are the identity providers companies inherit through acquisitions and partnerships," says Harish Peri, SVP and GM of AI at Okta, framing the outcome as the ability to "bring a new team onto shared agents this quarter, not after a multi-year identity consolidation" β a line echoed by Tunde Oni-Daniel, Deputy Chief Technology Officer at OneMain Financial: "The identity layer for agents has to be neutral and plug into whatever customers already run, today and after their next acquisition." The release also names the operational deliverables worth quoting back in a design review: agents across every connected IdP in "one directory and one audit trail", a "kill switch that stops agents from getting new access to Okta-protected resources", and the consent argument β employees keep their existing sign-in "because Okta validates the signed token from each employee's home identity provider before an agent acts β no second login and no second credential to issue or rotate". For anyone positioning as a fractional IAM architect, read the demand signal underneath the feature: post-merger integration is being sold as a days engagement with no identity migration, which is a scoped, repeatable piece of work β and the part a buyer cannot do alone is exactly the part this pill is about, deciding which foreign issuers to trust, in which policy rule, with which user-linking job behind it.
β‘ Action This Week
Turn the eight-step order into a negative-test matrix, which is under two hours of work and the thing almost nobody writes down. Take the validation list above and, for each step, write the single request that should fail there and the observable you would expect: an ID-JAG aimed at the org authorization server instead of a custom one; a correct assertion with the wrong aud; an iss that matches no IdP, then one that matches two; a client_id claim belonging to a different client; a six-minute lifetime; a tampered signature; the same assertion replayed; and a valid assertion for a sub you deliberately left unlinked. Then write the two configuration artifacts beside it: the policy rule JSON with provider: "SPECIFIC_IDP" and a one-line note on why ANY is not acceptable in your estate, and a short plan for the externalId link job β who populates it, how drift is detected, and what an unlinked user looks like to the agent's user. If you have an org with a custom authorization server, run the happy path and at least the lifetime, replay and unlinked-user cases for real and record what each returned; if you don't, the matrix is still the deliverable, because it is a test plan a reviewer can execute. This publishes cleanly as a LinkedIn post or portfolio page titled around one idea β "the policy condition that fails by not matching" β since the interesting content is the failure mode, not the happy path. Done = an eight-row negative-test matrix mapped to the documented validation order with the expected observable per row, the SPECIFIC_IDP rule JSON with its justification, and a named owner plus drift check for the externalId linking job.
MCP Deleted Its Sessions and Handed the Continuation to the Client: requestState Is Attacker-Controlled, and the Spec Will Not Give You Single-Use
π‘ Key Concept
The 2026-07-28 revision of the Model Context Protocol is not a feature release, it is a change of shape. Per the specification's own Key Changes document, fetched Nov 24, 2026, the revision removes "protocol-level sessions and the Mcp-Session-Id header" (SEP-2567), removes "the initialize/notifications/initialized handshake" so that "Every request now carries its protocol version and client capabilities in _meta" (SEP-2575), and removes SSE stream resumability, with the blunt consequence that "A broken response stream loses the in-flight request; clients MUST re-issue it as a new request with a new request ID." Servers needing continuity across calls are told to "use explicit, server-minted handles passed as ordinary tool arguments". The reward is real and is the reason this was, in the maintainers' words, "one of the most highly-requested features": any request can land on any instance behind a round-robin load balancer, with no shared storage and no sticky routing.
That leaves one problem the protocol could not simply delete: a tool sometimes needs something from the user mid-call. The answer is Multi Round-Trip Requests, and it inverts the direction of control. Per the MRTR pattern specification, fetched Nov 24, 2026, "Servers MUST send server-to-client requests (such as roots/list, sampling/createMessage, or elicitation/create) using the MRTR pattern. The previous pattern of server-initiated requests is no longer supported. This is a breaking change." Instead of calling the client, the server answers with an InputRequiredResult: resultType: "input_required", an optional inputRequests map keyed by server-assigned identifiers, and an optional opaque requestState string β at least one of the two is mandatory. The initial request then terminates. The client gathers the answers and retries the original request, carrying inputResponses and echoing requestState back verbatim, under a different JSON-RPC id. MRTR is allowed only on prompts/get, resources/read and tools/call; "Servers MUST NOT send InputRequiredResult responses on any other client requests."
Now look at what that does to your half-finished operation. "The server encodes any needed context into the requestState field, which the client echoes back on retry," and "the requests in each step are completely independent: the server processing the retry does not need any information beyond what is directly present in the retry request." Your continuation has become a blob held by a counterparty, and the spec says exactly what that makes it: "servers MUST treat requestState as an attacker-controlled input. If requestState influences authorization, resource access, or business logic, servers MUST protect its integrity (e.g. HMAC or AEAD) and MUST reject state that fails verification." To bound replay, servers SHOULD seal three things inside that protected payload and check each on receipt β the authenticated principal, a short expiry, and "an identifier for the originating request, e.g. the method name and a digest of its salient parameters" β and then comes the sentence that should decide your design: those measures "do not by themselves guarantee single-use. Servers for which a given requestState must be consumed at most once (e.g., one-time redemptions) MUST enforce that invariant server-side." In other words, every MCP tool author is now writing a token validator. Today's IAM pill is the same validator, built once in a platform: Okta accepting a foreign ID-JAG checks audience, then issuer, then client, then a five-minute expiry, then signature, then "the ID-JAG hasn't already been used", then the user link β audience binding, principal binding, TTL, integrity, single-use. MCP has specified that list as a MUST and left the implementation to you.
π¬ Deep Dive
Practitioner trap: forgetting resultType does not raise an error β it ships a half-finished answer to the model as if it were finished. The changelog makes the field mandatory and then, for backward compatibility, defines the failure-open default: "All results now carry a required resultType field: "complete" for ordinary results and "input_required" for multi round-trip request interim results. Clients MUST treat results from earlier-protocol servers that omit the field as "complete"." A server that builds an interim result and omits the discriminator is indistinguishable from an old server returning a final one, so the client never gathers the input, never retries, and the model reasons over a partial payload. That is a wrong-answer bug with no stack trace, and the only reliable guard is a server-side assertion that every response body on tools/call, prompts/get and resources/read carries an explicit resultType before it leaves your process. Two companion rules bite in the same quiet way: "The JSON-RPC idMUST be different between the initial request and the retry," and the pair of fields "affect only the client's retry of the original request. They MUST NOT be used for any other request that the client may be sending in parallel" β so a client that caches one requestState per connection, the obvious implementation when you have just deleted sessions, corrupts concurrent tool calls.
Idempotency stopped being a nicety and became a protocol obligation, because the retry re-executes your tool from the top. The retry is not a continuation; it is a fresh request that happens to carry answers. Everything your handler does before it decides it needs input β the write, the charge, the email, the ticket β runs again on every attempt unless it is gated on the presence and contents of a verified requestState. The spec compounds this deliberately: servers "MUST NOT assume that clients will fulfill the inputRequests or retry the original request", and they "MAY choose to return an InputRequiredResult on multiple attempts at the same request if they want to repeatedly prompt the user for information until they have what they need". So the state machine you must build has three live paths rather than one: completed, retried-with-answers (possibly several times), and abandoned mid-flight β and the abandoned path is the one that leaks reservations, locks and partial rows. Design the handler as a pure function of (arguments, verified state) and put every side effect after the last input gate, not before it. If a side effect genuinely cannot wait, it needs its own idempotency key derived from the request digest you were already told to seal into the state.
Capability gating now reads from the request in your hand, and under-answering is a loop, not an error. "Servers MUST NOT send an inputRequests that the client has not declared support for in its capabilities. For example, if a client does not declare support for elicitation, the server MUST NOT include any elicitation/create requests" β and with the handshake gone, capabilities arrive per request in _meta under io.modelcontextprotocol/clientCapabilities, so this check belongs inside the handler rather than in connection setup, and the same tool can legitimately take different paths for two clients in the same second. When the client answers incompletely, the prescribed behaviour is patience: "the server SHOULD respond with a new InputRequiredResult requesting the missing information again, rather than returning an error," while unexpected extra fields "SHOULD" be ignored. Pair that with a cap of your own, because a server that re-prompts forever and a client that retries forever make a billable infinite loop β the spec bounds neither side, so the attempt counter goes inside your sealed state where the client cannot reset it.
Staff-level framing: the moment you adopt MRTR you have issued a credential, and it should be governed like one. The requestState signing or encryption key is now part of your service's security surface: scope it per server and per tenant, rotate it with overlapping validity so in-flight states survive a deploy, and never let it be the same key that signs anything a client is allowed to read. Blast radius of getting the integrity check wrong is not "a failed tool call" but "a client-authored authorization decision", which is why the spec reserves integrity omission for the one case where "tampering can cause nothing worse than request failure" β write that judgement down per tool rather than per service. For the audit trail, log the principal, the request digest and a hash of the state, never the blob, and emit a distinct event for a verification failure, because a rejected state is the signal that someone is probing this path; the revision helpfully documents OpenTelemetry trace-context propagation through _meta (traceparent, tracestate, baggage, SEP-414), so the two halves of one logical operation can be stitched back together despite being two independent requests. On rollout, assume a long bi-revision window: pin a behaviour with a conformance test rather than a version number, keep your own error codes inside the implementation-defined band β the revision partitions the JSON-RPC server-error range, leaving -32000 to -32019 implementation-defined and reserving -32020 to -32099 for the specification, renumbering HeaderMismatch to -32020, MissingRequiredClientCapability to -32021 and UnsupportedProtocolVersion to -32022 β and bank the win you actually bought: statelessness means the capacity question becomes "how many instances", not "how do I keep a user pinned to one", which is the cheapest scaling argument in this protocol's history.
# ---------------------------------------------------------------------------
# 1. The interim response. resultType is the discriminator - OMIT IT AND THE
# CLIENT READS THIS AS A FINISHED RESULT (MUST treat missing as "complete").
# ---------------------------------------------------------------------------
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"resultType": "input_required",
"inputRequests": {
"github_login": { # key = server-assigned id,
"method": "elicitation/create", # unique within the request
"params": {
"mode": "form",
"message": "Please provide your GitHub username",
"requestedSchema": {
"type": "object",
"properties": { "name": { "type": "string" } },
"required": [ "name" ]
}
}
}
},
"requestState": "AEAD-protected blob" # opaque to the client, which
} # MUST NOT inspect or modify it
}
# Allowed ONLY on: tools/call | prompts/get | resources/read
# MUST include at least one of inputRequests / requestState.
# MUST NOT include an inputRequests type the client did not declare in
# _meta["io.modelcontextprotocol/clientCapabilities"] of THIS request.
# ---------------------------------------------------------------------------
# 2. The retry. NEW JSON-RPC id. inputResponses keyed by the same keys.
# requestState echoed back byte-for-byte.
# ---------------------------------------------------------------------------
{ "jsonrpc": "2.0", "id": 2, "method": "tools/call",
"params": { "name": "open_pr", "arguments": { "...": "..." },
"inputResponses": {
"github_login": { "action": "accept", "content": { "name": "octocat" } }
},
"requestState": "AEAD-protected blob",
"_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28" } } }
# ---------------------------------------------------------------------------
# 3. What the sealed state MUST carry (spec: MUST integrity-protect if it
# influences authz/resources/business logic; SHOULD bind these three).
# Illustrative - the spec names the fields, not this encoding.
# ---------------------------------------------------------------------------
state = aead_seal(key_for(tenant), {
"prn": authenticated_principal, # reject a different principal
"exp": now() + 120, # short TTL, reject if lapsed
"req": sha256("tools/call" + canonical(salient_args)), # bind request
"try": attempt_counter, # YOUR loop fuse, inside the seal
"ctx": partial_work_handle,
})
# On receipt, in this order - a failure here is a security event, not a 400:
# verify(state) or reject # MUST reject state failing verification
# state.prn == authenticated_principal or reject
# state.exp > now() or reject
# state.req == sha256(method + canonical(salient_args)) or reject
# single_use_ledger.consume(state) # MUST be server-side; TTL+binding
# # "do not by themselves guarantee
# # single-use"
# Keep your own error codes in -32000..-32019. -32020..-32099 is the spec's:
# -32020 HeaderMismatch | -32021 MissingRequiredClientCapability
# -32022 UnsupportedProtocolVersion
Doc-verified against the MCP 2026-07-28 MRTR pattern specification, Nov 2026 β the InputRequiredResult shape and its resultType/inputRequests/requestState fields, the three supported client requests, the at-least-one and capability-gating MUSTs, the distinct-id and echo-verbatim client rules, and the integrity, principal, TTL, request-digest and single-use requirements β and against the revision's Key Changes document, Nov 2026, for SEP-2567/2575/2322, the resultType default for earlier-protocol servers, the _meta keys, the OpenTelemetry propagation note and the error-code allocation policy with its three renumbered codes. Block 3 is illustrative: the spec requires the bindings and leaves the encoding to the implementer ("base64-encoded JSON, encrypted JWT, serialized binary"). Not executed in this session.
π§ Recall
From the Nov 17 pill on OpenTelemetry's GenAI semantic conventions: the repository's README listed its Schema URL as "TODO". What is the OTLP schema_url field actually for, and what does its absence cost you when an attribute gets renamed?
Show answer
schema_url is what a collector-side schema transformation reads in order to rewrite renamed attributes on telemetry emitted by older instrumentation β the automated migration path. With no published schema URL, a rename is a rename: you apply it, in your code, in every dashboard and alert that reads the old key, and nothing warns you, because a panel built on a retired metric name does not error, it quietly goes flat. The link to today: MCP's 2026-07-28 revision documents OpenTelemetry trace-context propagation through _meta (traceparent, tracestate, baggage), and under MRTR that propagation is the only thing stitching two independent JSON-RPC requests back into one logical operation. So the protocol now leans on OTel exactly where the GenAI half of those conventions is still entirely Development-stage β worth building your correlation on the stable core attributes and your own request digest, not on the moving vocabulary.
πΌ Market Signal
The scale number is the reason a breaking change of this size is a career-relevant event rather than a spec-watcher's footnote. In the maintainers' own release post, "The 2026-07-28 Specification", Jul 2026, David Soria Parra and Den Delimarsky report that "Across our Tier 1 SDKs, we're seeing close to half-a-billion downloads a month, with both TypeScript and Python SDKs crossing the 1 billion total downloads threshold", and describe the headline as "a stateless protocol core - MCP is transforming from a bidirectional stateful protocol into a request/response stateless protocol", motivated by "developers who were eager to get better reliability and scalability for their MCP servers". They also ship the governance that makes planning possible: "A formal deprecation policy with a twelve-month minimum window so you can plan upgrades instead of reacting to them." What that means for the next year is visible in the SDKs rather than the spec: the TypeScript SDK v2.4.0 release, published Oct 23, 2026, states plainly that its new features work "on 2025-11-25 and 2026-07-28", gates behaviour on the negotiated revision β "On 2026-07-28 only, the server sends the caching fields (ttlMs, cacheScope)" β and carries the renumbered codes in anger, rejecting an x-mcp-header annotation on a number parameter with -32020 "as the 2026-07-28 spec requires". Two revisions, live, in one dependency. The positioning read: the scarce skill for the next few quarters is not writing MCP tools, which is now a weekend's work, but migrating a fleet of them across a stateful-to-stateless boundary without breaking idempotency or inventing an accidental bearer token β a per-tool security and state review, which is exactly the kind of bounded, high-trust engagement a fractional architect is hired for.
β‘ Action This Week
Build the requestState codec once, properly, and then audit one real tool against it β under two hours and both halves are portfolio material. Write a tiny sealed-state module with the four bindings the spec names: principal, short expiry, a digest of the method plus the salient arguments, and your own attempt counter, all inside one AEAD or HMAC envelope, with a verify that returns a typed rejection reason rather than a boolean. Then write the five tests that matter and make each one fail for the right reason: a tampered blob, a blob presented by a different principal, an expired blob, a blob replayed onto a request whose arguments changed, and the same valid blob submitted twice β the last one only passes if you added a server-side single-use ledger, which is the point, because the spec explicitly refuses to promise single-use from the bindings alone. Second half, the audit: take one tool you already ship that prompts the user for anything, and list every side effect it performs before the input gate; those are the operations that will now run on each retry. Move them after the gate, or give them an idempotency key derived from the request digest you are already sealing. Write the result up as a one-page note titled around the uncomfortable sentence β your continuation is now a token held by a counterparty β with the five test names and the before/after side-effect list; that note is a better artifact than a demo server, because it shows the security reasoning a reviewer cannot infer from working code. Done = a sealed-state module whose five negative tests each fail for a distinct, named reason including a replayed-twice case backed by a server-side ledger, plus one real tool's side effects enumerated and moved behind its input gate or keyed off the request digest.
Separation of Duties That Cannot See Across Apps: Okta Risk Rules Carry One Resource, and Two Open Requests Walk Straight Through
π‘ Key Concept
Separation of duties is the oldest control in the audit canon and the one most identity platforms describe without implementing: nobody may both create an invoice and pay it. Okta implements it as a first-class object with an API. Per Okta's Governance API Risk Rules reference, fetched Nov 19, 2026, risk rules "allow you to define criteria for granted principal access that are a risk to your org" and exist "to support separation of duties (SOD) in Access Certifications and Access Requests". A rule is a POST /governance/api/v1/risk-rules body whose type is one of exactly two values β SEPARATION_OF_DUTIES or GROUP_SEPARATION_OF_DUTIES β and whose conflictCriteria.and holds two named lists evaluated against principal.effective_grants with the operation CONTAINS_ONE or CONTAINS_ALL. The control is not a report you run. It is a predicate the request pipeline evaluates.
Those two operations across two lists produce the entire semantic surface, and Okta's "Understand separation of duties conflicts", Nov 2026 enumerates all four: Any one of Γ Any one of fires when a user holds a pair from both lists; Any one of Γ All of needs one from List 1 and the complete set from List 2; All of Γ All of needs both sets whole. "The same Any one of and All of logic from entitlement rules applies to group memberships." Around that predicate Okta wraps two enforcement points, and "Separation of duties", Nov 2026 names both: Access Requests, where you "specify whether users are allowed (or allowed with custom settings) or blocked from requesting access that can cause an SOD rule conflict", and Access Certifications, where campaigns "review and remediate existing user access if they have an SOD rule conflict". Preventative and remediative, one predicate, two places it runs.
The architecture lives in the boundaries, and there are three worth designing around before you write a single rule. First, kind exclusivity: per Okta's "Get started with separation of duties", Nov 2026, entitlement rules "apply to apps that have Governance Engine enabled", group rules "apply to apps that don't", and "an app can have entitlement rules or group rules, but not both". Second, scope: the API schema declares resources as an "Array of objects, <= 1 items" and required β one rule, one app. Third, capacity: 50 entitlements or groups per list, 100 SOD rules per app, 500 per org. Read the second boundary twice, because it decides what this control can never catch: a toxic combination split across two applications β raise a vendor in the ERP, approve the payment in the banking portal β is not expressible as an Okta SOD rule at all. And since the predicate reads the principal's effective grants, a computer-use agent driving those screens on a human's behalf inherits that human's grants exactly, which is the connection to today's AI pill: the GUI agent adds no principal to govern and no entitlement to certify, so the only SOD rule that ever sees it is the one already written against the human at the keyboard.
π¬ Deep Dive
Practitioner trap: the preventative half is evaluated once, at submission, against what the requester already has β so two requests opened in the same window each pass. Okta documents the hole itself, in a note on the "Separation of duties" page: "Okta evaluates separation of duties rules based on the requester's existing entitlement assignments when they submit the request. This means that separation of duties rule conflict warnings won't appear to requesters or prevent them from requesting access to conflicting entitlements if they create multiple requests in a short period or have multiple requests open simultaneously." A control that can be defeated by clicking twice is not a control you can put in front of an auditor on its own. Okta's own compensating guidance is the design: "Before you grant access, check all open requests from the requester for any potentially conflicting entitlement requests against your separation of duties rules," plus certification campaigns that revoke conflicts after the fact. Translate that into mechanism rather than diligence β approvers do not hold a conflict matrix in their heads β which in practice means a scheduled detection pass over the open-request queue and a resource campaign on a cadence you can defend, because the remediative half is the only half that sees accumulated state.
One resource per rule makes SOD an intra-app control, and the honest consequence is that your cross-app conflicts need a different home. With resources capped at a single entry, every rule is scoped to one app's entitlement model, so the classic finance pairings only work where both entitlements live in the same system. Three responses are defensible and you should pick one deliberately: collapse the pairing into one app where the entitlement model allows it; express the cross-app conflict in an upstream construct that both apps inherit from, such as the resource collections the November train just moved to GA, and govern the collection instead of the pair; or accept that it is detected outside Okta and name the system that owns it. What is not defensible is a rule matrix that looks complete in the admin console while the conflict your auditor actually asked about spans two apps and was never expressible.
Pick the semantics for the reviewer, not for the matrix, and watch for rules that die quietly.Any one of Γ Any one of is the broadest of the four conditions and the one that will fire on legitimate access, and a conflict queue full of false positives trains reviewers to approve on sight β the measurable failure mode of every certification programme. All of Γ All of is the narrowest and the easiest to justify, at the price of missing partial accumulations. The second-order risk is structural: the API declares status as an enum of ACTIVE or INVALID, so a rule whose referenced entitlement stops existing does not fail loudly β it sits there, listed, no longer enforcing anything. Reconcile rule status on a schedule, because INVALID is what a silent control failure looks like in a GET response.
Staff-level framing: governance, blast radius, rollout, cost and audit trail all have concrete answers here. Blast radius: creating a rule through the API takes the okta.governance.riskRule.manage scope with the APP_ADMIN admin role, so the identity that automates your SOD matrix is an app administrator β give it its own service app with private-key JWT and a resource set that reaches only the apps it governs, rather than reusing a super-admin token. Rollout: land every rule in the permissive setting first, measure what it would have blocked through the Separation of duties report, and only then move the access-request condition to blocked; flipping straight to block is how a governance rollout becomes a help-desk incident. Audit trail: the "Separation of duties" page names the two reports that carry evidence β the Separation of duties report, and the Past Access Requests (Conditions) report where you "view access requests that have an SOD rule conflict using the Conflict name column" β so name your rules as the control statement you want the auditor to read, because the rule name is the evidence label. Cost and ceiling: 500 rules per org and 50 entries per list bound how fine your matrix can get, which makes the design question "which ten conflicts actually matter" rather than "how do I encode every segregation line in the policy document". And the platform is moving under you at a monthly cadence β the November train alone changed resource collections, request System Log payloads and assignee limits β so pin the behaviour you depend on with a check you run, not with a link to a doc page.
# The whole Risk Rules surface (Okta Governance API, fetched Nov 19, 2026):
# GET /governance/api/v1/risk-rules
# POST /governance/api/v1/risk-rules
# GET /governance/api/v1/risk-rules/{ruleId}
# PUT /governance/api/v1/risk-rules/{ruleId}
# DELETE /governance/api/v1/risk-rules/{ruleId}
# POST /governance/api/v1/risk-rule-assessments
# Create: OAuth 2.0 scope okta.governance.riskRule.manage | admin role APP_ADMIN
# "Process and Approve Payment" - the documented create body, with my placeholders.
# Note resources: the schema is "Array of objects, <= 1 items", required -> ONE app.
curl -i -X POST \
"https://YOUR_OKTA_DOMAIN/governance/api/v1/risk-rules" \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer <TOKEN>" \
-d '{
"name": "Process and Approve Payment",
"description": "Process and Approve Payment",
"type": "SEPARATION_OF_DUTIES",
"resources": [
{ "resourceOrn": "orn:okta:idp:YOUR_ORG_ID:apps:salesforce:YOUR_APP_ID" }
],
"conflictCriteria": {
"and": [
{
"name": "list1",
"attribute": "principal.effective_grants",
"operation": "CONTAINS_ONE", <- "Any one of"
"value": {
"type": "ENTITLEMENTS",
"value": [ { "id": "ENTITLEMENT_PROPERTY_ID",
"values": [ { "id": "ENTITLEMENT_VALUE_ID" } ] } ]
}
},
{
"name": "list2",
"attribute": "principal.effective_grants",
"operation": "CONTAINS_ALL", <- "All of"
"value": {
"type": "ENTITLEMENTS",
"value": [ { "id": "ENTITLEMENT_PROPERTY_ID_2",
"values": [ { "id": "ENTITLEMENT_VALUE_ID_2" } ] } ]
}
}
]
}
}'
# Response 201 carries the field that decides whether the control is still live:
# { "id": "rulb0oNGTSWTBKOLGLNR", "type": "SEPARATION_OF_DUTIES",
# "status": "ACTIVE", <- enum: ACTIVE | INVALID
# "createdBy": ..., "created": ..., "lastUpdated": ..., "lastUpdatedBy": ... }
#
# Reconcile this on a schedule - INVALID is a control that stopped enforcing
# without telling anyone:
# GET /governance/api/v1/risk-rules -> filter status != "ACTIVE"
#
# Limits that bound the matrix (help.okta.com, Nov 2026):
# 50 entitlements per list | 50 groups per list | 100 rules per app | 500 per org
Doc-verified against Okta's Governance API "Risk Rules" reference, Nov 2026 β the six endpoint paths, the okta.governance.riskRule.manage scope and APP_ADMIN role, the documented create body with its conflictCriteria.and / principal.effective_grants / CONTAINS_ONE / CONTAINS_ALL shape, the resources "<= 1 items" constraint, the type and status enums and the 201 response fields β and against "Get started with separation of duties", Nov 2026, for the four limits. Not executed in this session; all identifiers are placeholders.
π§ Recall
From the Nov 12 pill on Okta Native SSO: the first native app on the device cannot just ask for a token and share it β which three scopes must that first authorization request carry, and what does the /token response hand back that the other apps on the device actually consume?
Show answer
All three of openid, device_sso and offline_access β Okta's guide is explicit that all three are required β and the /token response then carries a fourth artifact beside the usual trio: a device_secret. Every other app on the device presents that device_secret as the actor token in an RFC 8693 token exchange to mint its own tokens. The thread back to today: both pills are about where a control is evaluated versus where its effect is felt. Native SSO moves the session into an artifact that outlives the app that minted it; SOD evaluates a predicate at submission time against state that keeps changing after. In both cases the question an auditor asks is the same one β between evaluation and effect, what else happened?
πΌ Market Signal
The governance surface is shipping monthly and the buying argument has shifted from coverage to labour. Per Okta Identity Governance release notes version 2026.46.0, deployed November 11, 2026, this single train took Certify resource collections to GA for both resource and identity campaigns, extended collections to cover "groups, push groups, and non-EM apps", added accessRequestMatchedConditionId, accessRequestApprovalSequenceId and requestedForId to request System Log events, shipped a new governance.settings.update event, raised the per-task assignee limit from 25 to 50, and put policy-driven collection assignment into Early Access. Every one of those is plumbing for exactly the problem SOD exposes: the control is only as good as the resource grouping and the evidence trail underneath it. The commercial case is being made in hours rather than features β in Okta's September 2026 product-innovation announcement, Sep 2026, Ashley Taylor, IT Security Analyst at Instructure, puts it as "We've been able to automate most of our access campaign work with Okta Identity Governance. It now takes one of us a day of work instead of two of us spending a full month of our time," while the same release claims new governance and privileged-access integrations "in as little as 48 hours (down from a manual process that took two to three months)" on a catalogue of "more than 8,000 pre-built integrations". For positioning, note what that does to the role: when campaign execution collapses from a month to a day, the scarce skill is no longer running the campaign. It is deciding which ten conflicts are worth encoding, knowing that a rule carries one app and is evaluated at submission β which is an architect's judgement, stated in a sentence an auditor can read.
β‘ Action This Week
Write one real rule and the two paragraphs that make it defensible β under two hours, and the second half is the portfolio piece. Pick one app you actually know and name a single toxic combination in it, in business language, in one sentence. Then encode it: choose entitlement or group kind (and note whether that app has Governance Engine enabled, because you cannot have both kinds), write the two lists, and pick the operation for each from the four documented conditions β justifying in one line why you chose All of over Any one of on the list where it matters. Draft it as the POST /governance/api/v1/risk-rules body above with placeholder ids, so the artifact is reviewable without a tenant; if you have an OIG org, create it in the permissive setting, run the Separation of duties report, and record what it would have blocked before you ever set the condition to blocked. Then write the honest half: the submission-time gap in Okta's own words plus the compensating control you would schedule, one cross-app conflict in the same business process that an Okta rule cannot express and where it will be detected instead, and the reconciliation job that catches rules going INVALID. That second half is a clean LinkedIn post or portfolio page precisely because almost nobody writes down what their SOD programme does not cover. Done = one encoded rule body with justified operations, plus a one-page control statement naming the submission-time gap and its compensating control, one inexpressible cross-app conflict with its owner, and the INVALID reconciliation check.
Computer Use Stopped Being One Tool: 17 Members, Batches You Must Run In Order, and a Screenshot the API Will No Longer Resize For You
π‘ Key Concept
Computer use used to be a single tool with an action string inside it. It is now a toolset, and that is a different integration shape rather than a version bump. Per the Claude "Computer use tool" documentation, fetched Nov 19, 2026, it is "an Anthropic-defined client toolset: one {"type": "computer_toolset_20260801"} entry in tools gives Claude 17 member tools such as screenshot, left_click, type, and zoom, and your application runs every call in an environment you control." The calls arrive as "tool_use blocks whose name is the member and which carry "toolset_name": "computer", often several in one turn (a batch action)" β and the block's input "holds only that member's parameters, with no action field". Your dispatcher no longer switches on input.action; it switches on the block's name together with toolset_name. Two product boundaries come with it: the toolset "isn't currently available in Claude Managed Agents", so you own the harness, and for work that stays inside webpages the docs point at the separate browser use tool instead, "its member tools read and act on the page itself, and it doesn't need a full desktop environment".
The migration list is short, mechanical and entirely breaking, and the docs state it as a set of changes to make together: drop the anthropic-beta: computer-use-2025-11-24 header and come off the SDK's beta namespace; set type to computer_toolset_20260801 and delete name, display_width_px, display_height_px, display_number and enable_zoom, because "the toolset rejects each of these fields"; iterate over everytool_use block rather than reading only the first; run them in order, "stop at the first failure, and answer the remaining blocks with Not executed: an earlier computer action in this turn failed."; echo "toolset_name": "computer" on every tool_result, which "may contain only text and image content"; honour the key member's optional repeat count; and resize screenshots yourself. What forces the timing is the model, not a deprecation date: a computer_20251124 integration "works without changes on the models listed for that version", but you must upgrade "before you move it to a model that doesn't accept computer_20251124, such as Claude Opus 5.5 on the Claude API". Tool-version pinning and model selection are now one decision.
The part that silently changes your cost and reliability profile is the image budget, which moved from the API to your code. "Screenshots and zoom images that you return to the computer use toolset must already fit within your model's image size limits: the toolset takes no display dimensions and the API doesn't downscale for you, so an oversized tool_result image is rejected with a validation error. Because Claude returns coordinates in the pixel space of the image it receives, keep the scale factor you used so you can map those coordinates back to your screen." The ceilings are specific: every model that supports computer_toolset_20260801 β Claude Opus 4.7 and later β accepts "up to 2,576 pixels on the long edge and 4,784 visual tokens total (βwidth / 28β Γ βheight / 28β, approximately 3.75 megapixels)", while earlier models cap at 1,568 pixels and roughly 1.15 megapixels. The docs recommend 1024Γ768 or 1280Γ720 for general desktop work, 1280Γ800 or 1366Γ768 for web apps, and "avoid resolutions above 1920x1080 to prevent performance issues"; on macOS, Retina capture at a device pixel ratio of 2 means you either downscale by 2Γ or halve every coordinate Claude returns. One governance note that ties to today's IAM pill: the agent drives a GUI as whoever is signed into it, so it accumulates no new entitlement and no new principal β the separation-of-duties rule that governs it is the one already written against that human, and nothing in your identity platform will show that a model, not a person, executed the pair.
π¬ Deep Dive
Practitioner trap: two of the migration items fail quietly rather than loudly, which is worse than a 400. The key member "accepts an optional repeat count from 1 to 100", and the docs spell out the failure directly: "A handler that ignores unrecognized fields would press the key once, so make your key handler honor repeat." Claude asks for twelve Backspace presses, your handler sends one, the field keeps eleven characters, and the model is then reasoning about a screenshot that does not match the action it believes it took β a corruption bug, not an error. The second is zoom polarity: "Zoom is enabled by default on the toolset, whereas enable_zoom defaults to false." A harness migrated verbatim from computer_20251124 has no zoom implementation and will now receive zoom calls; if you are not ready to serve them, the documented opt-out is to add "configs": {"zoom": {"enabled": false}}, and if you are, implement it properly, because zoom is how the model reads small text that a downscaled full screenshot destroyed.
Batch actions are ordered, not parallel, and the ordering rule is a correctness requirement. A response can carry several member calls β the docs' example is left_click, then type, then screenshot β and it "uses the same response shape as parallel tool use with one difference: you run the blocks in order rather than concurrently". Return "one tool_result block for each tool_use block, matched by tool_use_id, all in the next user message", with an image for screenshot and zoom and "a short text such as OK" for the rest. On failure, mark that block is_error: true and answer the remainder with the halt text instead of executing them β the same shape covers "coordinates outside the display bounds". This is where the economics live: a three-action batch is one model turn instead of three, which is the difference between a GUI task that costs tens of turns and one that costs hundreds, so a harness that cannot run batches yet is paying a tax it does not need to pay.
Screenshot history is a prompt-caching problem, and the intuitive optimisation is the wrong one. You get four cache breakpoints β system prompt and tool definitions, plus "up to three more on the last tool_result block of each of the most recent turns" β and inside a batch "markers on several blocks act as a single breakpoint, but each still counts toward the limit of four, so use at most one in any turn". Pruning old screenshots is where teams destroy their own cache: "Dropping a screenshot every turn changes the prefix every turn and invalidates the cache." Prune in batches instead β the documented default is "keep the last three screenshots and prune every 25 turns, so the prefix stays byte-identical between prune events", with an interval that keeps each request at 20 or fewer images. And on the current generation the advice inverts completely: on Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5, and on Fable 5.2, Mythos 5.2, Fable 5.1 and Mythos 5.1, avoid client-side pruning altogether, because "removing an earlier screenshot from a request invalidates every later thinking block already in the history of that and every later request".
Staff-level framing: this is the only tool in the catalogue whose blast radius is "everything visible on a desktop", and the docs' precautions are the control set to write down: "a dedicated virtual machine or container with minimal privileges", no sensitive data such as account credentials in reach, internet access limited "to an allowlist of domains", and "asking a human to confirm decisions that might result in meaningful real-world consequences and any tasks requiring affirmative consent, such as accepting cookies, completing financial transactions, or agreeing to terms of service". On prompt injection the docs are candid in both directions: Anthropic "has trained the model to resist these prompt injections" and "classifiers automatically scan what the tool returns, such as screenshots, to flag potential prompt injections", and yet "in some circumstances, Claude follows commands found in content even when they conflict with your instructions" β so screen content remains untrusted input and the defence is isolation, not the classifier. Cost containment is structural: the reference loop carries a max_iterations fuse precisely because an unbounded agent loop is an unbounded bill, and the docs name that as the reason. Audit trail: log every member call with its parameters and result, because a GUI agent leaves no API-level record anywhere else β the target application sees an ordinary human session. And on data handling, the toolset is marked ZDR eligible and HIPAA eligible, which is the question procurement will ask before any of the engineering matters.
# 1. Declare the toolset. ONE entry -> 17 member tools. No name, no display_*,
# no display_number, no enable_zoom: the toolset REJECTS each of those fields.
TOOLS = [{"type": "computer_toolset_20260801"}]
# Not implementing zoom yet? Keep computer_20251124's old default explicitly:
# TOOLS = [{"type": "computer_toolset_20260801",
# "configs": {"zoom": {"enabled": False}}}]
# 2. Claude answers with a BATCH: several member calls in one turn, each carrying
# toolset_name, each input holding only that member's params (no "action"):
# {"role": "assistant", "content": [
# {"type":"tool_use","id":"toolu_01Hq...","name":"left_click",
# "toolset_name":"computer","input":{"coordinate":[640,60]}},
# {"type":"tool_use","id":"toolu_01Pp...","name":"type",
# "toolset_name":"computer","input":{"text":"pictures of cats"}},
# {"type":"tool_use","id":"toolu_01Xf...","name":"screenshot",
# "toolset_name":"computer","input":{}}]}
HALT = "Not executed: an earlier computer action in this turn failed."
def run_batch(blocks):
"""Run IN ORDER, stop at the first failure, halt-text the rest."""
results, failed = [], False
for b in blocks:
if b["name"] == "screenshot" and not failed:
img, scale = capture_scaled() # see 4 - you own the resize
results.append(ok_image(b["id"], img))
continue
if failed:
results.append(text(b["id"], HALT)) # do NOT execute
continue
try:
dispatch(b["name"], b["input"]) # name + toolset_name, not input.action
results.append(text(b["id"], "OK"))
except Exception as exc:
results.append(text(b["id"], f"Error: {exc}", is_error=True))
failed = True
return results
def text(tool_use_id, body, is_error=False):
r = {"type": "tool_result", "tool_use_id": tool_use_id,
"toolset_name": "computer", # required on EVERY member result
"content": body}
if is_error:
r["is_error"] = True # also used for out-of-bounds coords
return r
# 3. The silent one: key takes repeat 1..100. Ignore it and 12 presses become 1.
def on_key(params):
for _ in range(int(params.get("repeat", 1))):
press(params["text"])
# 4. The API does NOT downscale. An oversized tool_result image is a validation
# error, and coordinates come back in the pixel space of the image you sent.
import math
screen_width, screen_height = 1512, 982 # logical; macOS Retina captures 2x
def get_scale_factor(width, height):
long_edge_scale = 1568 / max(width, height) # earlier-model tier
total_pixels_scale = math.sqrt(1_150_000 / (width * height))
return min(1.0, long_edge_scale, total_pixels_scale)
# Opus 4.7+ (every model that supports this toolset): 2,576 px long edge and
# 4,784 visual tokens = ceil(w/28) * ceil(h/28) (~3.75 MP) - size to the token
# budget rather than a pixel total on that tier.
SCALE = get_scale_factor(screen_width, screen_height)
def execute_click(x, y): # map back BEFORE you click
perform_click(x / SCALE, y / SCALE)
Doc-verified against the Claude "Computer use tool" documentation, Nov 2026 β the computer_toolset_20260801 declaration and the five rejected fields, the configs.zoom.enabled opt-out, the batch-action response shape with toolset_name on every block, the exact halt text, the is_error result shape, the keyrepeat 1β100 rule, and the get_scale_factor helper and image limits as published. Assembled into one loop by me and not executed in this session; capture_scaled, dispatch, press and perform_click are your environment's primitives.
π§ Recall
From the Nov 10 pill on message threads: once the conversation lives on the server and each later request sends only the new messages, what happens if you keep sending system and tools on a continue request β and what does the feature not change?
Show answer
You get a 400. The documentation is explicit that sending either one on a continue request, "even as null", returns an error β a continue carries only the messages since the previous response plus "thread": {"type": "continue", "previous_message_id": "<previous id>"}. And it changes the request, not the bill: threads do not change pricing or rate limits, because the server still processes the whole conversation. The pairing with today's pill is the uncomfortable one for GUI agents: threads shrink what you upload, while a computer-use loop's weight is images you must keep in the prompt for caching to work β so the lever on a desktop agent is batching actions and pruning screenshots on a schedule, not moving state to the server.
πΌ Market Signal
GUI control has crossed from lab demo to a line item in mainstream enterprise automation suites, which is what makes the harness skills above sellable rather than novel. Per Microsoft's "Automate web and desktop apps with computer use" documentation for Copilot Studio, updated Oct 2026, computer use is now a tool you add to an agent from the Tools page: it "lets your agent interact with and automate tasks on a Windows computer", "works with websites and desktop apps by selecting buttons, choosing menus, and entering text into fields on the screen", and the pitch is explicitly the integration gap β "agents can complete tasks even when there's no API to connect directly to the system. If a person can use an app or website, computer use can too", named for "automated data entry, invoice processing, and data extraction", with the caveat that it "is only available for agents with generative orchestration turned on". That is the no-code end of the market, and it tells you where the differentiated work sits. The Claude computer use documentation, Nov 2026 says the toolset "isn't currently available in Claude Managed Agents" and is marked ZDR eligible and HIPAA eligible β so on the API side someone has to own the container, the allowlist, the ordered batch dispatcher, the image budget and the audit log, and that someone is an AI platform engineer, not a flow builder. Positioning follows directly: anyone can add a computer-use tool to an agent in a console this quarter; the scarce skill is the harness that keeps it cheap, bounded and auditable in a regulated process β invoice processing being, not by accident, the same business process your separation-of-duties matrix is about.
β‘ Action This Week
Build the two things the toolset stopped doing for you, in under two hours, against any desktop you are willing to sacrifice β a container or a throwaway VM, never your workstation. First, the image layer: implement get_scale_factor, capture a real screenshot, resize it to the tier limit, send it, then take Claude's returned coordinates and map them back before clicking; prove it by asking for a click on a small, unambiguous target and checking you hit it, then repeat on a Retina display to feel the 2Γ factor. Second, the dispatcher: route on name plus toolset_name, honour repeat on key, run a batch strictly in order, inject a deliberate failure in the middle and confirm your loop answers the remaining blocks with the exact halt text instead of executing them. Cap the loop with max_iterations and log every member call with its parameters and result; then write a ten-line README naming your isolation boundary, your domain allowlist, which actions require a human confirmation, and your screenshot-pruning policy with the model caveat. That README plus a short screen recording of a batch failing cleanly is a better portfolio artifact than a working demo, because it shows you treating a GUI agent as a blast-radius problem rather than a party trick. Done = coordinates that land after a resize on both a standard and a 2Γ display, a batch whose mid-failure halts the rest with the documented text, repeat honoured on key, and a README naming isolation, allowlist, confirmation points and pruning policy.
The Profile Editor Is Now a Token Contract: Okta Mints agent.id Into Access Tokens, and the Expression Reference Has Never Heard of It
π‘ Key Concept
An API that receives a call made by an AI agent has, until now, been able to see the client and the human but not the agent. Okta's own documented access-token shape makes that concrete: cid for the app, uid for the user, scp for the granted scopes, and nothing that says which of the forty agents registered against that app actually made the request. Release Okta Identity Engine version 2026.46.0, expected in Preview orgs November 11, 2026 closes that gap and lists it as "AI agent attributes in custom claims is GA in preview": "Okta Expression Language now supports the agent object in custom claims. Use agent.id and agent.profile attributes, such as agent.profile.name, to add AI agent data to access tokens. This allows resource servers to identify which AI agent is calling them." Agent attribution stops being something your API infers from a client id and becomes something it reads off a verified token.
Which means the schema of that claim is the Okta AI agent profile, and the profile is a stricter object than most Okta directory objects. Per Okta's "Configure the Okta AI agent profile", Nov 2026, it "has four base attributes: name, description, platform, and external ID. The name attribute is required, and the name and external ID must be unique. These attributes are read-only and can't be changed." On top of those you add custom attributes, which "can be a string, integer, or Boolean, and can be optional or required", optionally carrying an enum of allowed values, and each flagged either mappable to an import source or Okta-sourced and editable. Directory β Profile Editor β AI agents is therefore not a cosmetic screen. It is where you decide what an access token is capable of saying about an agent, before a single resource server is written.
Three constraints bound the design. The claim only exists on a custom authorization server β Okta's "Customize tokens returned from Okta" guide, Nov 2026 is unambiguous: "You can only add custom claims to a custom authorization server, not the org authorization server." The expression that produces it is capped at 1024 characters. And the claim is a snapshot minted at issuance, so it describes the agent as the directory saw it at iat, not as it is now. That last property is the one that pairs with today's AI pill: OpenTelemetry's GenAI conventions require gen_ai.main_agent.id to be a provider-assigned stable identifier and forbid generating it from an in-memory one, which makes the identity plane β not the agent framework β the natural supplier of the only agent identifier the telemetry schema will accept.
π¬ Deep Dive
Practitioner trap: the agent object is not in the Expression Language reference, so you cannot discover it, and you cannot look up its shape. Fetched on Nov 17, 2026, the "Expressions for OAuth 2.0/OIDC custom claims" section of Okta's Expression Language overview documents exactly two bindings for this context β app.$attribute (with the note that app.id and app.clientId can be used directly) and access.scope β and the word "agent" appears nowhere on the page. The release note is the only published statement of the feature, and it lands in Preview orgs, not Production. Your only in-product confirmation that an expression resolves is the Token Preview tab, which the guide names for exactly this purpose. The companion edge: because custom claims live only on a custom authorization server, every agent whose calls go through the org authorization server gets no agent claim at all, however complete the profile is β the profile work is wasted until the API is moved behind a custom AS.
"Mark as required" is an edit to the import contract of every provider, made on a screen that does not show you the providers. The profile doc states the consequence in one line: "If the attribute isn't mapped to an attribute in the provider app, all future import from the provider app fail." Mapping is a separate, per-provider act β per Okta's "Map AI agent attributes to Okta", Nov 2026, you go to Directory β AI Agent Providers, pick a provider, open Attributes, "enter an OEL expression or select an attribute from the dropdown list", then choose Apply mapping for create and update (or Do not map for an optional attribute) and Save and sync attributes to Okta. So the ordering that works is: add the custom attribute as optional, map it on every provider, then mark it required. The ordering that breaks a production import pipeline is the obvious one.
The base attributes are read-only, which makes whatever you authorize on a permanent key.name and externalId are unique and all four base attributes "are read-only and can't be changed". If a resource server's policy keys on agent.profile.name, authorization is now bound to a string nobody in the org can rename, and because the name is unique org-wide a decommissioned agent keeps its name reserved against the next one. Key policy on agent.id, carry the name as a human-readable label, and treat externalId as the join back to the builder platform rather than as an authorization input.
Staff-level framing: the claim is static for the life of the token, so your access-token TTL is your revocation window for agent-level authorization. Deactivating or deleting an agent record does not reach into tokens already minted; an API that trusts agent_id will keep honouring a retired agent until the token expires. That is the same lesson the Nov 12 Native SSO pill drew from the other end of the stack, and it is the number an auditor will ask for. On provenance: the same release train added a read-only source property to the AI agent registration responses β IMPORTED for agents imported from a provider, MANUAL for agents registered by hand, with Okta setting the value so a request body cannot override it. That is a governance primitive worth carrying into a claim, because it lets a production resource server refuse agents that no platform vouches for. On audit trail: agent.id in the token is the first field that makes an API access log joinable to the agent inventory, so name the claim once, namespace it, and set Include in to a specific scope instead of Any scope so it only rides the tokens that need it. On rollout and cost: every claim inflates every token issued by that authorization server, the expression ceiling is 1024 characters, and the Disable claim checkbox exists precisely so you can land the configuration before you depend on it.
# 1. Design the schema BEFORE the claim: Directory > Profile Editor > AI agents
# base (read-only, name + externalId unique): name, description, platform, externalId
# custom: string | integer | boolean, optional|required, optional enum
# order that works: add optional -> map on every provider -> only then "Mark as required"
# 2. Mint it. Admin Console > Security > API > <your custom AS> > Claims > Add Claim
# Name: agent_id
# Include in token type: Access Token (for OAuth 2.0)
# Value type: Expression
# Value: agent.id # max 1024 characters
# Include in: a specific scope, NOT "Any scope"
# then repeat: agent_name -> agent.profile.name, agent_source -> your mapped attribute
# 3. Confirm the claim exists (the guide's documented verification endpoint):
curl -s -H "Accept: application/json" \
-H "Authorization: SSWS YOUR_OKTA_API_TOKEN" \
"https://YOUR_OKTA_DOMAIN/api/v1/authorizationServers/default/claims"
# 4. Decode the access token. Before, the API saw the client; now it sees the agent:
# {
# "ver": 1,
# "iss": "https://YOUR_OKTA_DOMAIN/oauth2/default",
# "aud": "api://default",
# "cid": "0oaoesxtxmPf08QHk0h7", <- the app integration
# "uid": "00uixa271s6x7qt8I0h7", <- the human, when there is one
# "scp": ["openid"],
# "agent_id": "AGENT_ID", <- new: WHICH agent, and the key to policy on
# "agent_name": "invoice-triage" <- a label; it can never be renamed
# }
# 5. Validate the expression in the Token Preview tab BEFORE shipping the claim.
# The agent object is absent from the Expression Language reference, so Token Preview
# is the only place Okta will tell you whether it resolves in your org.
Doc-verified against Okta's "Customize tokens returned from Okta" guide, Nov 2026 β the Admin Console claim fields and their defaults, the 1024-character expression limit, the /api/v1/authorizationServers/{authorizationServerId}/claims verification URL, the Token Preview note and the decoded access-token shape with its example cid, uid and scp values β and against "Configure the Okta AI agent profile", Nov 2026, for the base and custom attribute rules. The agent.id and agent.profile.name expressions and the source property are doc-verified against Okta Identity Engine release notes 2026.46.0 and 2026.45.1. Not executed in this session; placeholders are mine.
π§ Recall
From the Nov 10 pill on Okta's AI agent import staging queue: the three resolve verbs are not symmetric β which verb is available from each staged state, which transition is not documented, and what does the API return instead of a finished result?
Show answer
A NEW item can be registered or ignored; an IGNORED item's only documented forward action is register; a DUPLICATE's only documented action is merge. There is no documented path from IGNORED to merge, so "ignore the noise now, dedupe later" is not a workflow the API supports. Both mutating calls are asynchronous: the import and every resolve return 202 with a Location pointing at /workload-principals/api/v1/operations/{opId} to poll. The two pills are the same pipeline read end to end: the staging queue decides whether an imported agent becomes a principal at all, and today's claim work decides what that principal is able to say about itself to an API. Note that the staging queue is also where source is set to IMPORTED rather than MANUAL β the provenance you may want in the token is a byproduct of a decision made at import time.
πΌ Market Signal
Okta is betting that the agent inventory, not the agent runtime, is the control point it owns β and it is now removing the requirement to be the primary IdP to get it. Per Okta's "Okta for AI Agents now works out-of-the-box with multiple third-party identity providers", Nov 2026, dated 13 November 2026: "Third-party IdP support is generally available today for Okta for AI Agents and Agent SSO customers," covering employee and agent identities that "can live in any Cross App Access (XAA)-enabled IdP, such as Ping, Descope, and Oracle." Harish Peri, SVP and GM of AI at Okta, framed the wager plainly: "AI isn't going to consolidate on one platform, and neither are the identity providers companies inherit through acquisitions and partnerships." Tunde Oni-Daniel, Deputy Chief Technology Officer at OneMain Financial, supplied the buyer-side version β "The identity layer for agents has to be neutral and plug into whatever customers already run, today and after their next acquisition." The promise that matters for this pill is the one Okta makes to security teams: agents used by employees "across every connected identity provider appear in one directory and one audit trail, with end-to-end governance and a kill switch." One directory and one audit trail are only worth as much as the schema of the records in them β which is why the person who can design an agent profile and decide which attribute becomes the claim an API authorizes on is doing architecture, while the person who can merely register agents is doing data entry. That distinction is the one to make visible in an interview.
β‘ Action This Week
Prove the claim pipeline with a stand-in, then write the schema you would actually ship β under two hours, and the second half is the portfolio piece. First, in any org with a custom authorization server (an Okta Integrator Free Plan org is enough for this part), create an OIDC service app with a profile object, add a claim on the default custom AS with Value type Expression and Value app.profile.label, validate it in Token Preview, list it through /api/v1/authorizationServers/default/claims, then run the client-credentials call and decode the JWT until you see your claim next to cid and scp. That exercises every mechanic the agent object will use. Second, write one page of design: the four immutable base attributes and what each is good for, the two or three custom attributes you would add and what each unlocks at a resource server, which field your policy keys on and why it is agent.id rather than the name, the provider-mapping order you will follow so that marking an attribute required never breaks an import, and the TTL you will set once you accept that the claim is a snapshot. If your org has Okta for AI Agents, open Directory β Profile Editor β AI agents and Directory β AI Agent Providers β Attributes and reconcile your page against what is really there. That page is a clean LinkedIn post or portfolio artifact precisely because it is a schema decision with named consequences rather than an opinion about agent security. Done = a custom claim you created, previewed, listed and decoded in a real token, plus a one-page agent profile and claim contract naming the policy key, the mapping order and the token TTL.
You Cannot Pin What Has Never Shipped: OpenTelemetry's GenAI Conventions Moved Repos, 85 of 85 Attributes Are Development, and 20 Breaking Changes Are Queued
π‘ Key Concept
The GenAI semantic conventions are no longer part of OpenTelemetry's core semantic-conventions repository. The page everyone still links to, opentelemetry.io/docs/specs/semconv/gen-ai/, fetched Nov 2026, now contains one substantive sentence: GenAI semantic conventions "have moved to the OpenTelemetry GenAI semantic conventions repository", and "This page has moved and is no longer maintained in this repository." The new repository's README, Nov 2026 says it "extends the OpenTelemetry Semantic Conventions β¦ using Weaver to manage dependencies on the core semantic conventions" β and its "Schema URL" section consists, in its entirety, of the word "TODO". Queried through the GitHub API on Nov 17, 2026, that repository has zero releases and zero tags, while its changelog.d/ directory holds 90 unreleased fragments: 35 enhancement, 24 clarification, 20 breaking, 8 bugfix, 2 deprecation and 1 component.
The stability picture is just as blunt when you count it yourself rather than read a blog about it. The repository's generated attribute registry lists 85 gen_ai.* attributes, and all 85 carry the Development badge β not one is Stable. Yet the attributes sitting on the same span that come from core semantic conventions v1.45.0, which the GenAI docs pin by explicit link, are Stable: error.type, server.address, server.port. A single invoke_agent span is therefore a mixture of a frozen vocabulary and a moving one, and the moving half is precisely the half that says what the agent was, which model it called and which conversation it belonged to. Anything you build that reads those keys β a dashboard, an SLO, a cost allocation, an eval pipeline joining traces to scores β is reading a schema that has not yet promised you anything.
The keystone, and the part worth designing around rather than merely tracking, is agent identity. The conventions define a gen_ai.main_agententity, Nov 2026 whose identity attribute gen_ai.main_agent.id is Required and "SHOULD be the provider-assigned stable identifier of the agent resource such as AWS Bedrock agent ARN or GCP Agent Registry identifier", with a hard prohibition attached: "Instrumentation MUST NOT generate gen_ai.main_agent.id from an in-memory or process-local identifier. If no stable identifier is available, the agent entity is not emitted." The span-level name has its own guardrail β gen_ai.agent.name "MUST have low cardinality", explicitly not "instrumentation-time constants, framework defaults, or type names such as 'StateGraph'", and "when no meaningful, low-cardinality name is available, this attribute MUST NOT be captured by default". Read that next to today's IAM pill and the dependency becomes obvious: Okta is now minting exactly that class of stable, provider-assigned agent identifier into access tokens as agent.id, which makes your identity provider β not your agent framework β the natural supplier of the only agent identifier this schema will accept.
π¬ Deep Dive
Practitioner trap: there is no version to pin, and the mechanism that would have saved you depends on the version that does not exist. With zero tags and zero releases, the only thing you can reference in a README or a lockfile is a commit SHA. Worse, the README's Schema URL is TODO β and the OTLP schema_url field is exactly what a collector-side schema transformation would read in order to rewrite renamed attributes on telemetry emitted by older instrumentation. No published schema URL means no automated migration path; a rename is a rename, applied by you, in your code. The concrete case is already queued: changelog.d/+client-agent.breaking.md adds gen_ai.client.invoke_agent.duration and states that "Invoke agent client operations are no longer reported on gen_ai.client.operation.duration". That is a breaking change to a metric name, so an agent-latency panel or burn-rate alert built on the generic duration metric does not error when it lands β it quietly goes flat. It also retires advice from this dashboard's own Sep 1 pill on these conventions, which named gen_ai.client.operation.duration and gen_ai.client.token.usage as the two metrics to build cost and latency monitoring on: the token-usage metric stands, the duration metric no longer covers agent invocations, and that reversal inside eleven weeks is the clearest available argument for keeping the key names in one module.
Put the attribution in one mapping module, not in field names sprinkled across call sites. Two independent forces push the same way. The first is sampling: the agent spans document, Nov 2026 lists the attributes that "can be important for making sampling decisions and SHOULD be provided at span creation time (if provided at all)" β gen_ai.agent.name, gen_ai.operation.name, gen_ai.provider.name, gen_ai.request.model, server.address, server.port β so an instrumentation that sets them with a later set_attribute call is invisible to a head sampler. The second is churn: 20 queued breaking changes against 85 Development keys means the question is not whether a key you use gets renamed but how many files that costs. The same module should own the span-name formats, which are conventions in their own right: create_agent {gen_ai.agent.name} with span kind CLIENT, {gen_ai.operation.name} {gen_ai.agent.name} for the in-process invoke with span kind INTERNAL (falling back to just {gen_ai.operation.name} when no name is available), and plan {gen_ai.agent.name}, or bare plan, also INTERNAL.
Entity versus span attribute is the actual modelling decision, and it turns on an identifier you may not own. The gen_ai.main_agent entity is for an agent that "exists as a persistent resource with a stable identifier across invocations (for example, a scheduled or cron-driven agent job, a hosted agent configured in a cloud provider console, or an agent declared in an Agent-to-Agent (A2A) Agent Card)", and the entity docs say in-process instrumentations recording invoke_agent "should use gen_ai.agent.* attributes such as gen_ai.agent.name instead". In A2A deployments the mapping is spelled out: gen_ai.main_agent.name and .description map to the name and description properties declared in the Agent Card. So "is this agent an entity or just an attribute on a span?" is answered outside your observability stack β by whether a registry, a cloud console, an Agent Card or an identity provider has issued it a stable id. Teams that have not decided where agent identifiers come from cannot answer it at all, which is why half of agent-tracing work is really inventory work.
Staff-level framing: the governance decisions here are cardinality, content and provenance, and all three are cheaper to make once in the mapping layer than per service. Cardinality is both the bill and the outage: the spec tells you to dropgen_ai.agent.name rather than emit a meaningless value, and the same discipline applied to a metric label is the difference between a useful breakdown and a cardinality incident in your metrics backend β so keep an explicit allowlist of agent names rather than passing through whatever the framework calls the object. Content is a data-governance call with a documented escape hatch: gen_ai.input.messages and gen_ai.output.messages carry full chat history, and the registry defines gen_ai.input.messages_ref and gen_ai.output.messages_ref as "An absolute URI identifying the input messages in external storage" with an s3:// example, so you can choose between prompts in your telemetry vendor and pointers into storage you control β once, centrally, not per team. Provenance is where this pill meets the identity plane: carry the agent id your IdP or agent registry issued, never a process-local object id the spec forbids, because that is the only field that makes a span joinable to an agent inventory, an access log and an access-certification campaign. And write the commit SHA you instrumented against into your own README, since the upstream has no release for you to cite.
from opentelemetry import trace
from opentelemetry.trace import SpanKind
# One module maps domain facts -> gen_ai.* keys. Rename once here, never at a call site.
# Every gen_ai.* key below is Development: 85 of 85 in the registry, 0 Stable (17 Nov 2026).
GENAI = {
"agent_id": "gen_ai.agent.id", # a hosted agent resource id, NOT an in-memory id
"agent_name": "gen_ai.agent.name", # MUST be low cardinality; omit rather than guess
"operation": "gen_ai.operation.name", # create_agent | invoke_agent | plan | execute_tool
"provider": "gen_ai.provider.name",
"model": "gen_ai.request.model",
"conv": "gen_ai.conversation.id",
}
LOW_CARD_AGENT_NAMES = {"invoice-triage", "contract-review"} # yours: an allowlist, not a guess
def invoke_agent_span(tracer, *, agent_id, agent_name, model, provider, conversation_id):
# Sampling-relevant attributes MUST be set AT span creation, not with set_attribute later.
attrs = {
GENAI["operation"]: "invoke_agent",
GENAI["provider"]: provider,
GENAI["model"]: model,
GENAI["conv"]: conversation_id,
}
if agent_id: # supplied by the identity plane, e.g. the agent_id claim in the access token
attrs[GENAI["agent_id"]] = agent_id
if agent_name in LOW_CARD_AGENT_NAMES:
attrs[GENAI["agent_name"]] = agent_name
span_name = f"invoke_agent {agent_name}"
else:
span_name = "invoke_agent" # the spec's documented fallback when no name is available
return tracer.start_as_current_span(span_name, kind=SpanKind.INTERNAL, attributes=attrs)
# Queued breaking change (changelog.d/+client-agent.breaking.md, unreleased):
# gen_ai.client.invoke_agent.duration is added, and "Invoke agent client operations are
# no longer reported on gen_ai.client.operation.duration - use ... instead."
# -> an agent-latency panel built on the generic metric loses its series silently, not loudly.
Syntax-checked: this file was compiled with python3 -m py_compile in this session and passed; it was not executed against a live collector, and LOW_CARD_AGENT_NAMES is a placeholder for your own allowlist. The conventions it encodes are doc-verified against the OpenTelemetry GenAI semantic conventions repository at main, Nov 2026 β the agent span kinds and name formats, the span-creation-time sampling attribute list, the gen_ai.main_agent entity rules and the quoted +client-agent.breaking.md fragment. The counts (85 of 85 attributes at Development, 90 changelog fragments of which 20 breaking, zero releases and zero tags) were computed in this session from that repository's generated registry file and the GitHub API on Nov 17, 2026.
π§ Recall
From the Nov 10 pill on server-side Message Threads: which request fields are create-only, which must carry the same value on every request for the life of the thread, and what does the API return when one of them changes?
Show answer
Create-only: system and tools, together with their cache_control breakpoints. Fixed for the thread's whole life: model, tool_choice, thinking, context_management, output_config, the top-level cache_control and the set of anthropic-beta values; changing one returns a 400 with thread_fingerprint_mismatch naming the offending fields. Only max_tokens, stop_sequences, stream, metadata and similar may vary per turn. The rhyme with today's pill is the reason both bite in production: each is a contract pinned at creation time. A thread fixes the shape of every later request at create; an agent span fixes everything a head sampler can see at start_span. In both cases the correct-looking instinct β set it later, when you know more β produces a failure that testing does not reproduce, because the cost appears only under long-running or sampled traffic.
πΌ Market Signal
The demand side has already arrived, which is what makes an unreleased schema a live problem rather than a standards-body curiosity. Per Grafana Labs' 2026 State of Observability survey, Oct 2026, run with ETR and dated October 19, 2026: 80% of respondents "are already building or operating LLM-powered products", and among those building LLM applications "63% are already monitoring model output quality or accuracy, while 53% are tracing LLM calls for latency and token usage." Spend is following β 78% report increased observability spend over the past year and 73% expect another increase in the next twelve months β while trust lags capability: 85% are comfortable with AI conducting read-only investigations against 52% comfortable with fully autonomous remediation. Read the methodology before you quote it: ETR surveyed 300 IT and engineering decision-makers at Director/VP level or above with budget influence, across the United States (150), Japan (50), Latin America (50) and Western Europe (50), in June 2026 β a small, leadership-only, vendor-commissioned sample, so treat the percentages as direction rather than measurement. The direction is enough. Roughly half the teams shipping LLM applications are tracing them today, almost all against conventions with zero releases, and very few have written down which commit they pinned to. "I instrumented our agents against the GenAI conventions and built the rename blast radius down to one module" is a sentence with an artifact behind it, and it lands in exactly the platform and AI-infrastructure interviews where "we use OpenTelemetry" does not.
β‘ Action This Week
Instrument your smallest agent loop to the conventions, then prove the rename is cheap β that proof is the deliverable, and it fits in under two hours. Write the mapping module first, exactly as above, and emit three spans by hand: create_agent as CLIENT, the in-process invoke_agent as INTERNAL with its name format, and one execute_tool child. Export to a local collector with a debug exporter and read the spans back rather than trusting the SDK, checking three things: the sampling-relevant attributes are present at creation and not patched on later, gen_ai.agent.name is absent whenever you have no low-cardinality name to give, and gen_ai.agent.id carries an identifier issued outside the process β an agent registry id, an ARN, or the agent_id claim from today's IAM pill β never a Python object id. Then run the two tests that justify the architecture: rename one key inside GENAI and confirm the diff touches one file, and grep -rn "gen_ai\." --include=*.py . to prove there are no stray literals left outside the module. Finish with two lines in your README: the semantic-conventions-genai commit SHA you instrumented against, since there is no release to cite, and whether any existing agent-latency panel is built on gen_ai.client.operation.duration and will therefore flatline when the queued breaking change lands. The grep output plus the one-file rename diff is a strong portfolio artifact and an honest LinkedIn post, because it demonstrates a decision rather than a tool choice. Done = three correctly-kinded spans read back off a collector, a one-file rename diff, a clean grep for stray gen_ai. literals, and a README naming the commit SHA you pinned to and your exposure to the duration-metric change.
Native Apps Have No Cookie Jar: Okta Makes a device_secret the Desktop Session β Under a Token-Type URN the Spec Does Not Define
π‘ Key Concept
Web SSO is a cookie problem. One browser holds one session cookie on the IdP's domain, every app redirects through it, and the session is something the browser keeps on your behalf. Native apps β desktop and mobile β have no shared cookie jar: each app has its own token store and its own keychain entry, and nothing ambient ties them together. Okta's answer is a token-based substitute. Per Okta's "Configure SSO for Native apps" guide, Nov 2026, "SSO between browser-based web apps is achieved by sharing cookies. Unlike web apps, native apps can't use web cookies. Okta offers a token-based approach to achieve SSO between native apps." The first app runs Authorization Code with PKCE and must request all three of openid, device_sso and offline_access β the guide is explicit that all three are required β and the /token response then carries a fourth artifact next to the usual trio: a device_secret. Every other app on the device gets its own tokens by presenting that device_secret as the actor token in an RFC 8693 token exchange, with the first app's id_token as the subject token.
The architectural point is that the device_secretis the desktop session, not a convenience cache in front of one. It is the object you introspect, the object you revoke, and the object whose lifetime decides when the device goes dark. Introspect it with token_type_hint=device_secret and Okta returns active, exp and a sid β and that same sid appears in the ID tokens minted under it, which the guide names as the way to "correlate and identify the ID tokens that are minted with the same device secret." Revoke it and, in the guide's words, "the corresponding access and refresh tokens are invalidated for that device," across every participating client. Its lifetime is inherited rather than configured: "The device secret assumes the lifetime of the first refresh token that it was minted with," conforming to the policy of the authorization server that minted it β and that original policy keeps governing the secret's idle and maximum lifetime even later, when it is being used to mint tokens that answer to a different policy.
Two things follow for an architect. First, this is a dialect, not the spec: the feature is "based on the OpenID Connect Native SSO for Mobile Apps 1.0 draft, draft 07, Jan 2025" β Okta's own wording β and the places where it diverges are places your client code breaks. Second, the pattern rhymes with today's AI pill on Web Bot Auth: both take an identity that used to ride on a spoofable ambient artifact β a cookie here, a User-Agent string there β and rebind it to a cryptographic object held by a device or a key, and both ship with a documented gap between the draft and the implementation you actually have to code against.
π¬ Deep Dive
Practitioner trap: the token-type URN in Okta's exchange is not the one the spec defines, and the binding claim the spec requires is not documented at Okta. The draft says actor_token_type is REQUIRED and "MUST be: urn:openid:params:token-type:device-secret". Okta's guide sends urn:x-oath:params:oauth:token-type:device-secret β a legacy x-oath namespace, with an extra oauth: segment β and the same string comes back as the token_type in the introspection response. Any client, SDK or test double that validates the spec's string against Okta's /token endpoint fails on a value mismatch rather than on anything meaningful. The mirror-image trap sits on the ID token: the draft adds a ds_hash claim and calls it "REQUIREDβ¦ provides a binding between the id_token and the issued device_secret", while Okta's guide documents that binding through sid and never mentions ds_hash. Write a validator that insists on ds_hash and it will reject every Okta ID token; assume ds_hash is there and your binding check is reading an absent claim.
Three configuration gates that are nowhere in the protocol. The guide states plainly that "The org authorization server isn't supported" β Native SSO runs only on a custom authorization server, the walkthrough using default. The Token Exchange grant has to be enabled twice, in two different places: once on each app integration (Grant type β Advanced β Token Exchange) and once on the authorization server's access-policy rule (IF Grant type is β Advanced β Token Exchange). And openid, device_sso and offline_access all have to be present in that authorization server's scope table. Miss any one of the three and the symptom is a failed token exchange at runtime, not a configuration warning at setup β which is why this feature is usually debugged from the wrong end.
Your real session boundary is the device secret, not the ID token. The guide notes: "You can pass an expired ID token as part of the token exchange grant as long as the device_secret (sid) that the id_token is associated with is still valid." So an exp that has long passed on the subject token stops nothing; the device keeps minting fresh access and refresh tokens for new apps until the device_secret itself idles out, hits its maximum lifetime, or is revoked. Any session-duration answer you give an auditor has to be stated in terms of the device secret's inherited lifetimes.
Staff-level framing: Native SSO flattens assurance tiers into one device decision, and that is the governance consequence to surface before rollout. The guide carries a blunt note: "An error occurs when you perform Native SSO token exchange using an app with a low assurance policy and another app with a high assurance policy." You therefore cannot put the finance desktop client behind a phishing-resistant policy, leave the chat client on password plus OTP, and still expect SSO between them β the device's assurance floor is a single choice for the whole bundle, so pick it from the most sensitive app and accept the cost on the rest. Blast radius: one device_secret sitting in one app's keychain is an SSO credential for every registered client, which is why the guide says to store it "in a secure location on the device, such as the iOS keychain" and to "ensure that only authorized apps have access to the device secret" β on a shared or jailbroken device, that is the whole perimeter. Audit trail: the sid from /introspect is the only documented join key between a device session and the tokens minted under it, so capture it at issuance rather than trying to reconstruct it later. Rollout: wire the /logout request with device_secret on day one β it is the documented path that revokes the secret when a user signs out of a single app β and keep the direct /revoke call in your incident runbook as the one-POST kill switch for a lost laptop, verified by re-introspecting until you see "active": false.
# App 2 joins the device session: device_secret is the ACTOR, app 1's id_token the SUBJECT.
# Note the actor_token_type namespace: x-oath, not the spec's urn:openid:...
curl -s -X POST "https://YOUR_OKTA_DOMAIN/oauth2/default/v1/token" \
-H "Accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "client_id=CLIENT_2_ID" \
--data-urlencode "grant_type=urn:ietf:params:oauth:grant-type:token-exchange" \
--data-urlencode "actor_token=DEVICE_SECRET" \
--data-urlencode "actor_token_type=urn:x-oath:params:oauth:token-type:device-secret" \
--data-urlencode "subject_token=APP_1_ID_TOKEN" \
--data-urlencode "subject_token_type=urn:ietf:params:oauth:token-type:id_token" \
--data-urlencode "scope=openid offline_access" \
--data-urlencode "audience=api://default"
# Is the device session still alive, and which sid are its tokens tied to?
curl -s -X POST "https://YOUR_OKTA_DOMAIN/oauth2/default/v1/introspect" \
-H "Accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "client_id=CLIENT_1_ID" \
--data-urlencode "token=DEVICE_SECRET" \
--data-urlencode "token_type_hint=device_secret"
# -> {"active":true,"sid":"102oRgEWx5lRTWHilEoGfed4w",
# "token_type":"urn:x-oath:params:oauth:token-type:device-secret","exp":1628886628}
# Kill switch for the whole device: revoke the secret, then prove it.
curl -s -X POST "https://YOUR_OKTA_DOMAIN/oauth2/default/v1/revoke" \
-H "Accept: application/json" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "token=DEVICE_SECRET" \
--data-urlencode "client_id=CLIENT_1_ID"
# Re-introspect per client until every one returns {"active": false}
Doc-verified against Okta's "Configure SSO for Native apps" guide, Nov 2026 β endpoints, the four exchange parameters and their URNs, the token_type_hint=device_secret introspection and its example sid/exp response, and the revoke-then-reintrospect verification. The contrasting urn:openid:params:token-type:device-secret and ds_hash requirements are doc-verified against OpenID Connect Native SSO for Mobile Apps 1.0 draft 07. Not executed in this session; placeholders are mine.
π§ Recall
From the Nov 5 pill on Okta Desktop MFA: which registry value decides how many times a user may sign in to Windows with offline MFA methods, what type and default does it carry, and under which key does Okta store it?
Show answer
MaxLoginsWithOfflineFactor β a REG_DWORD with a default of 50, a counter rather than a timer, stored with the rest of Desktop MFA's policy under HKLM\Software\Policies\Okta\Okta Device Access and pushed through MDM or Administrative Templates. The two pills are the same architecture lesson from opposite ends of one laptop: Desktop MFA decides whether the user gets into the OS, Native SSO decides how long one device-held secret keeps every app on that OS signed in. Both keep their state on the endpoint, and both are governed by a lifetime you inherit rather than one you read off a policy screen.
πΌ Market Signal
Endpoint and native-app identity is the quiet half of Okta's growth story, and the filings show why it gets engineering attention. Per Okta's "Second quarter fiscal year 2027 financial results", Aug 2026, dated SAN FRANCISCO β August 26, 2026 for the quarter ended July 31, 2026: total revenue was $805 million, up 11% year-over-year, with subscription revenue of $793 million, up 12%; RPO reached $4.858 billion, up 17%, and cRPO $2.585 billion, up 14%; GAAP operating income was $107 million, or 13% of revenue, against $41 million and 6% a year earlier, with non-GAAP operating income of $226 million, or 28%. CFO Brett Tighe attributed the quarter to "Steady momentum from core Okta workforce and customer identity" driving "ACV acceleration in both businesses," with new products "led by Okta Identity Governance" β in other words, the growth is in governing an existing estate, not in new logins. CEO Todd McKinnon framed the forward bet on agents: "As AI agents transform every layer of technology, every agent needs a trusted identity and clear controls over what they can access and do." Read Native SSO as the unglamorous counterweight to that sentence. The desktop and mobile apps your workforce actually lives in are the part of the estate no agent narrative covers, and they are the part where an architect who can explain why a device secret outlives an ID token is worth more than one who can recite the agent roadmap.
β‘ Action This Week
Run the flow once, by hand, and write down the two strings that differ from the spec β that is the whole exercise, and it fits in well under two hours in an Okta Integrator Free Plan org. Create two OIDC Native app integrations, enable Token Exchange on both, then flip the default custom authorization server's Default Policy Rule to allow Token Exchange and confirm openid, device_sso and offline_access are in its scope table. Do the PKCE authorize in a browser with scope=openid device_sso offline_access, exchange the code and capture the device_secret, then run the three calls above in order: exchange for client 2, introspect the secret and record the sid, revoke, and re-introspect both clients until each returns "active": false. Keep a four-line note as you go: the actor_token_type Okta accepted versus the one the draft mandates, whether any ID token you received carries ds_hash, the sid you used as the correlation key, and what the error looked like when you deliberately pointed the exchange at the org authorization server instead of default. That note is a clean LinkedIn post or portfolio artifact β "native SSO is a device-held secret, and the vendor's URN is not the spec's" is a concrete, checkable claim, which reads very differently from an opinion about mobile security. Done = a working two-app Native SSO exchange in a free org, the sid captured from /introspect, a revoke proven by "active": false on both clients, and the four-line divergence note.
Sign Your Agent's Requests Exactly as the Draft Says and Cloudflare Rejects Them: Web Bot Auth's Dictionary-vs-String Split
π‘ Key Concept
When your agent fetches a page, the site decides what it is from a User-Agent string and an IP address β one trivially spoofable, the other unstable for anything running in a cloud. Web Bot Auth replaces both with a signature. Per draft-ietf-webbotauth-httpsig-protocol-01, Oct 2026 β dated 29 October 2026, by T. Meunier (Cloudflare) and S. Major (Google) β the client signs outbound requests with RFC 9421 HTTP Message Signatures, and the draft "defines the Signature-Agent header field for in-band key discovery, a key directory format based on JWKS, and a well-known URI at which that directory is served." Concretely: three headers on every request (Signature, Signature-Input, Signature-Agent), an Ed25519 key, tag="web-bot-auth", a keyid that is a JWK thumbprint, and a directory at /.well-known/http-message-signatures-directory served as application/http-message-signatures-directory+json.
What that signature proves is narrower than most teams assume, and the draft spends a whole section saying so. An unresolved Signature-Agent "is a claim rather than an identity. It becomes an identifier once the verifier fetches it and finds that it provides a key that verifies the requestβ¦ Until then, verifiers MUST NOT attach policy to it." Even after resolution, "a valid signature over a resolved URL proves that a holder of a key that URL publishes signed the covered message," and it "says nothing about who operates the Agent, whether the Agent is benign, or whether the request is authorized. Those are origin policy." The draft also concedes the obvious abuse: "Nothing stops an Agent from abandoning a URL and standing up another one, and the protocol does not try to prevent this. It targets honest clients that want to be recognised across requests." This is authentication and attribution, not authorization β the same split that governs every identity system, restated for machine traffic.
The engineering problem in November 2026 is not the cryptography. It is that the specification is moving while the verifier that most of your traffic will meet is pinned to an older revision of it, and the two now disagree about the exact bytes of the header that carries your identity. A signer that is spec-correct today is rejected in production. That is the part worth your afternoon.
π¬ Deep Dive
Practitioner trap: the draft requires a dictionary, the dominant verifier requires a string, and it is not a cosmetic difference. Draft-01 is unambiguous: "Signature-Agent is a Dictionary Structured Headerβ¦ Signers MUST send the dictionary form", with the signed component list written as ("@authority" "signature-agent";key="sig1"); a verifier "MAY accept" the legacy bare String form that earlier revisions defined. Now read Cloudflare's Web Bot Auth documentation, Oct 2026 (page states "Last updated Oct 8, 2026"), which implements the Signature-Agent format from draft-meunier-http-message-signatures-directory-03 and whose troubleshooting list says the opposite twice over: "Ensure you have a Signature-Agent header, and that its value is in double-quotes" and "Ensure your Signature-Agent header uses a structured string, not a dictionary." Worse, the same page lists key among the RFC 9421 component parameters it does not support, and is explicit that "Cloudflare will fail to verify a message if they are included" β so the draft's own "signature-agent";key="sig1" component cannot verify there at all. Build strictly to draft-01 and your requests fail closed at the CDN; build to Cloudflare and you are emitting a form the current draft tells signers not to send. Keep both behind a per-destination flag and treat the header form as a deployment variable, not a constant.
Replay is bounded by expires, because nobody is checking your nonce. The draft provides a nonce parameter, and Cloudflare recommends sending one β then says what it does with it: "there is currently no nonce validation, nor does Cloudflare guard against replay attacks using a database of seen nonces. Instead, Cloudflare recommends short expires as a protection against replay attacks. A minute is often sufficient." So your replay window is exactly your expires delta, and a generous value chosen to survive clock skew is also the window an attacker gets to resend a captured request. The same page rules out @query-params (sign @query whole instead), @status, and the parameters sf, bs, req and name β a signer that reaches for RFC 9421's full expressiveness gets less interoperability, not more.
The verifier-side bug the draft explicitly tells you not to write. "Key lookup MUST be keyed on the (URL, key) pair, not on the key alone. A verifier that indexes by keyid alone will verify a request as coming from one URL that provides a key it learned from another, and attribute that request to the URL the client asserted. The party whose URL is asserted cannot detect or stop this: its own directory is never fetched, so no rotation or removal has any effect." That last clause is the one to sit with: the impersonated party has no remedy, because nothing of theirs is ever consulted. It is the same failure shape as today's IAM pill, where Okta's device_secret only means anything as an actor token bound to one device session's sid β a credential you index without its binding is a credential you cannot revoke.
Staff-level framing: this is a two-sided rollout against a spec in motion, so govern it like one. The live evidence is easy to collect and it is instructive. Fetched twice during the writing of this pill, OpenAI's directory at https://chatgpt.com/.well-known/http-message-signatures-directory returns HTTP 200 with content-type application/http-message-signatures-directory+json and a single Ed25519 OKP key (kidArwjqcCqtA5oxEWkzXGC-To_0A9whHmajCHtfe8I9aY, use: sig), alongside "signature_agent":"https://chatgpt.com" and "purpose":"ai". Two details matter operationally. The nbf is fixed at 1735689600 (1 Jan 2025) while exp is minted per request at exactly request time plus 604800 seconds β two fetches 35 seconds apart came back with exp values 35 seconds apart β so that seven-day window is a rolling freshness hint on a stable kid, not a rotation schedule; cache the directory past it and you will reject real traffic, and plan rotation from the kid changing, not from exp arriving. And purpose is a field the directory draft removed in v03, whose changelog reads "Remove 'purpose' field from web-bot-auth" β so a verifier written to reject unknown or stale members would reject a production directory belonging to one of the largest signers on the web. Be liberal in what you accept there. Three governance decisions belong in the design doc before any of this ships: whether a verified signature grants access or only attribution (the draft says it cannot grant authorization, so that is your policy to own); which fields land in the access log as the audit join key β the resolved Signature-Agent URL together with keyid, never keyid alone; and who owns the signer's version pin, since a header-format change does not degrade politely. A rejected signature means a challenge or a block, so getting this wrong is a traffic outage for your agent, discovered by your customers.
# Who is actually signing today? Fetch a real production key directory.
curl -sL -H "Accept: application/http-message-signatures-directory+json" \
"https://chatgpt.com/.well-known/http-message-signatures-directory"
# Response observed 2026-11-12 (HTTP 200, content-type as requested):
# {"keys":[{"crv":"Ed25519","kty":"OKP",
# "x":"P_1c4SX6fCavDcq6FRegWcVvaOKsp_aXHPEN1FcKDIA",
# "kid":"ArwjqcCqtA5oxEWkzXGC-To_0A9whHmajCHtfe8I9aY",
# "use":"sig","nbf":1735689600,"exp":1795079289}],
# "signature_agent":"https://chatgpt.com","purpose":"ai"}
#
# Fetch it twice and watch exp move: 1795079289 then 1795079324, 35s apart.
# exp - 604800 == the moment of the request, every time -> rolling 7-day window.
VALIDATED β this request was executed twice in this session on 2026-11-12 and the output above is the response as returned, including the two exp values.
# Generate the signing key the verifier side expects (Ed25519 only).
openssl genpkey -algorithm ed25519 -out private-key.pem
openssl pkey -in private-key.pem -pubout -out public-key.pem
# THE SAME IDENTITY, TWO INCOMPATIBLE HEADERS.
#
# (a) draft-ietf-webbotauth-httpsig-protocol-01: dictionary, signed with ;key=
# "Signers MUST send the dictionary form."
Signature-Input: sig1=("@authority" "signature-agent";key="sig1")\
;created=1763024400;expires=1763024460\
;keyid="JWK_THUMBPRINT";tag="web-bot-auth"
Signature-Agent: sig1="https://agent.example"
Signature: sig1=:BASE64_ED25519_SIGNATURE:
# (b) What Cloudflare verifies today: bare quoted string, no ;key= component.
# Including ;key= makes verification FAIL ("not supported").
Signature-Input: sig1=("@authority" "signature-agent")\
;created=1763024400;expires=1763024460\
;keyid="JWK_THUMBPRINT";tag="web-bot-auth"
Signature-Agent: "https://agent.example"
Signature: sig1=:BASE64_ED25519_SIGNATURE:
Syntax-checked, and doc-verified in both directions: form (a) against draft-ietf-webbotauth-httpsig-protocol-01 Β§5.2.1 and its component example, form (b) against Cloudflare's Web Bot Auth page, Oct 2026, including its required tag/keyid/created/expires table, its double-quoted structured-string requirement and its unsupported-parameter list. The openssl genpkey pair is the command that page documents. Signatures and thumbprints here are placeholders; not executed.
π§ Recall
From the Nov 3 pill on the AIPREF drafts: the vocabulary defines three categories of use with short labels and a value of y or n β name them, and say what a parser must return when the key is absent, the wrong type, or unparseable.
Show answer
train-ai (modifying a generative model's learned parameters), ai-use (an asset as input to a generative model where the user did not provide it β where RAG retrieval sits), and search (selecting assets and directing users to them, defined to exclude generating summaries, and overriding the other two when allowed). Anything that is not y or n resolves to an explicit third state named by the spec: unknown β not an error, not a default-deny. The two pills meet in Cloudflare's experimental transitive-trust work, which proposes carrying an operator's content-use commitment forward on the RFC 7239 Forwarded header as Forwarded: for="openai";use="reference": Web Bot Auth says who is asking, AIPREF says what they may do with what they get, and neither answers the other's question.
πΌ Market Signal
The adoption signal here is not a funding round, it is a key directory you can curl. OpenAI's published Web Bot Auth directory, fetched Nov 2026, serves a live Ed25519 signing key under the draft's well-known URI and media type, with "signature_agent":"https://chatgpt.com" β a model vendor committing to cryptographic attribution for its outbound traffic. On the other side, Cloudflare's Web Bot Auth documentation, Oct 2026 makes Web Bot Auth "a verification method for verified bots and agents" and gates it behind a step most protocol write-ups omit: "Register your bot and key directory." That single step is the market structure. Verification is not an open handshake between your agent and a site; it runs through a small number of infrastructure providers who decide whose signatures count, and whose experimental Forwarded work would also carry a content-use commitment on the operator's behalf. The role that pays here is the one that can hold both halves β the identity semantics of RFC 9421 and the commercial reality that a CDN's troubleshooting page outranks an IETF draft in production. The original design rationale is worth reading for the framing: Cloudflare, "Forget IPs: using cryptography to verify bot and agent traffic", May 2025 (page last updated July 2026), which opens from the premise that the User-Agent header "is easily spoofable."
β‘ Action This Week
Build the compatibility matrix before you build the signer β it is an hour of curl and it changes what you ship. Fetch two or three real directories (start with chatgpt.com, then any other signer you care about) and record, per directory: HTTP status, the content-type actually returned, key type and kid, whether nbf/exp are present, and whether exp moves when you fetch twice a minute apart. Then generate your own Ed25519 key with the two openssl commands above, compute the JWK thumbprint, and write your Signature-Input twice β the draft's dictionary form with ;key=, and the bare quoted-string form without it β as two fixtures in your test suite rather than two branches in your code. Finish with a five-line decision note: which form you send to which destination today, what your expires delta is and why (remembering nobody is validating your nonce), which two fields you will log as the attribution key, and whether a verified signature grants your callers anything beyond attribution. Stripped of your service names, that matrix is an unusually good LinkedIn post, because almost everyone writing about agent identity this year is quoting the draft and nobody is reporting what the verifiers actually accept. Done = a one-page matrix of at least two live directories with their observed exp behaviour, your own Ed25519 key and thumbprint, both header forms captured as test fixtures, and the five-line decision note naming your expires delta and your logging key.
An Imported AI Agent Is Not an Identity Yet: Okta's Staging Queue, Three Non-Symmetric Verbs, and One SUPER_ADMIN Token
π‘ Key Concept
Every agentic-identity pill on this dashboard so far has started from a token: rich authorization requests, on-behalf-of token exchange, client-ID metadata documents, an agent gateway minting workload credentials. All of them assume the agent is already a principal in your directory. The step before that one is the least designed and the most consequential, and it moved on November 04, 2026. Per the Okta Identity Engine API release notes, version 2026.45.1, Nov 2026, two entries landed on that date under a table headed "Change / Expected in Preview Orgs": "Import staged AI agents" β "You can now import AI agents that are in a staged or preview state" β and "Multiple AGENT_IMPORT client authentication settings per app instance". Neither carries a GA, EA or Preview label in the entry text, and the APIs they point at are labelled Beta.
The architecture those two lines imply is a review pipeline, not a sync. Per the Okta "Start the import of an AI agent provider" API reference (Beta), Nov 2026, you kick the import with POST /workload-principals/api/v1/ai-agent-providers/{providerId}/import β scope okta.aiAgents.manage, admin role SUPER_ADMIN, no request body β and it answers 202 Accepted with a required Location header documented as the "URL to poll for import status", pointing at /workload-principals/api/v1/operations/{opId}. Nothing in that response is an identity. What the import produces is a queue: per the Okta "List all staging items for an AI agent provider" API reference (Beta), Nov 2026, GET .../ai-agent-providers/{providerId}/staging (scope okta.aiAgents.read, cursor after, limit 1β200 default 20) takes one filter β type, enum AIAgentStagingType β and that enum has exactly three values: NEW, DUPLICATE, IGNORED.
Those three buckets are drained by three verbs. Per the Okta "Resolve a staging item" API reference (Beta), Nov 2026, the action is a path segment, not a body field β POST .../staging/{id}/{action} with action β register | ignore | merge, scope okta.aiAgents.manage, role SUPER_ADMIN, returning 202 and another Location to poll β and the page states which action each type accepts: NEW β register or ignore; IGNORED β register; DUPLICATE β merge. That matrix is your agent-onboarding policy, expressed as an API. The second November 4 change is the credential half of it: the release note states that POST /resource-servers/api/{version}/client-auth-settings "now supports multiple client authentication settings with the AGENT_IMPORT purpose for the same Okta Integration Network (OIN) app instance", where "Previously, creating a second AGENT_IMPORT setting for an app instance returned a 400 Bad Request error", each setting has "its own client credentials and OAuth configuration, so platforms in one app instance can authenticate separately", and "Settings with other purposes, such as STS, are still limited to one per app instance".
π¬ Deep Dive
Practitioner trap: the three verbs are not symmetric, so triage order is a design decision you only get to make once per item. A NEW item can go register or ignore; an IGNORED item's only documented forward action is register; a DUPLICATE's only documented action is merge. There is no documented path from IGNORED to merge, which means the comfortable habit β "ignore the noise during the first import, dedupe later" β is not a workflow this API supports. Ignore an item that was really a duplicate of an existing agent and your only sanctioned move afterwards is to register it as a second principal, which is precisely the duplicate you were trying to avoid.
Both mutating calls are asynchronous by contract, and your runbook has to treat them that way. The import and every resolve return 202 with a Location pointing at /workload-principals/api/v1/operations/{opId} β the reference pages describe it as the "URL to poll for import status" and "URL to poll for action status". A script that reads the 202 as "done" will report a clean import while the staging queue is still filling, and a bulk resolve loop that fires without polling has no idea which of its decisions actually landed. Verify from the operation, not from the call returning.
Staff-level framing: every page in this pipeline β import, list staging, resolve β documents admin role SUPER_ADMIN alongside the okta.aiAgents.* scopes. No delegated role is documented for it today, so the automation that builds your agent inventory is a tier-0 workload: it can create principals in your directory, and its credential is worth exactly as much as a super-admin session. The blast radius sits in the verbs. merge collapses two staged agents into one principal and whatever entitlements follow the survivor; register mints an identity that your access-request, certification and token-exchange policies will then treat as real. Three controls earn their keep before you turn this on: a named human owner per verb (not per provider), a System Log query over the import and resolve operations retained with your certification evidence, and β now that the November 4 change allows it β one AGENT_IMPORT client-auth setting per source platform, so you can revoke or rotate one platform's import credential without stopping every other platform sharing that OIN app instance. The STS purpose stays one per app instance, so don't model the two the same way.
The credential boundary is the same boundary your agent's runtime state lives in. Today's AI pill covers the Claude API's server-side conversation state, which cannot be continued when a request "comes from a different organization, workspace, user or service account than the one that created the thread" β the same lesson from the other side of the stack: the identity you import an agent with and the identity its runtime holds are one governance surface, not two.
# 1. Start the import for one AI agent provider -> 202 + Location to poll
curl -i -X POST \
"https://YOUR_OKTA_DOMAIN/workload-principals/api/v1/ai-agent-providers/aip-1a2b3c4d/import" \
-H "Authorization: Bearer ${OKTA_ACCESS_TOKEN}" # scope: okta.aiAgents.manage
# HTTP/1.1 202 Accepted
# Location: https://YOUR_OKTA_DOMAIN/workload-principals/api/v1/operations/op-1a2b3c4d
# 2. Poll the operation. The 202 above is not "imported".
curl -s "https://YOUR_OKTA_DOMAIN/workload-principals/api/v1/operations/op-1a2b3c4d" \
-H "Authorization: Bearer ${OKTA_ACCESS_TOKEN}"
# 3. Read the review queue one bucket at a time: NEW | DUPLICATE | IGNORED
curl -s "https://YOUR_OKTA_DOMAIN/workload-principals/api/v1/ai-agent-providers/aip-1a2b3c4d/staging?type=DUPLICATE&limit=200" \
-H "Authorization: Bearer ${OKTA_ACCESS_TOKEN}" # scope: okta.aiAgents.read
# 4. Resolve one item. The verb is a path segment, and it is type-dependent:
# NEW -> register | ignore IGNORED -> register DUPLICATE -> merge
curl -i -X POST \
"https://YOUR_OKTA_DOMAIN/workload-principals/api/v1/ai-agent-providers/aip-1a2b3c4d/staging/aic-1a2b3c4d/merge" \
-H "Authorization: Bearer ${OKTA_ACCESS_TOKEN}" # 202 + Location: .../operations/{opId}
Doc-verified against the Okta Workload Principals API reference (Beta), Nov 2026 β paths, scopes, the SUPER_ADMIN role, the type and action enums, the 202 + Location contract and the doc's example ids (aip-, aic-, op-). Not executed in this session.
# Which import credentials already exist on one OIN app instance?
# search takes a SCIM filter; only eq is supported, on resourceOrn and purpose,
# combined with and. Percent-encoding of the query parameter is required.
curl -s -G "https://YOUR_OKTA_DOMAIN/resource-servers/api/v1/client-auth-settings" \
--data-urlencode 'search=resourceOrn eq "orn:okta:idp:YOUR_ORG_ID:apps:APP_NAME:YOUR_APP_INSTANCE_ID" and purpose eq "AGENT_IMPORT"' \
-H "Authorization: Bearer ${OKTA_ACCESS_TOKEN}"
# Each entry returns its purpose array, protocol and configuration details.
Syntax-checked. The endpoint, the eq-only filter on resourceOrn/purpose, the and combination and the percent-encoding requirement are doc-verified against the Okta "List all client authentication settings" reference (Beta), Nov 2026; that page's examples only show purpose eq "STS", so the AGENT_IMPORT value here comes from the release-note text, not from the reference page.
π§ Recall
From the Nov 3 pill on the Okta MCP server's admin plane: in the browserless Private Key JWT flow for an OAuth 2.0 service app, which claims must line up for Okta to mint an Okta-scoped access token β and what is the ceiling on the assertion's lifetime?
Show answer
Client Credentials is the only flow that mints Okta-scoped access tokens for a service app. The client signs a JWT whose iss and sub must both equal the client_id, whose aud is the full https://YOUR_OKTA_DOMAIN/oauth2/v1/token URL, and whose exp may be at most one hour in the future; jti is optional and exists as a replay guard. The point of that pill β and of this one β is the same: the admin-plane credential is the control, and its admin role is the blast radius.
πΌ Market Signal
The commercial pressure behind an agent-import pipeline is visible in Okta's own filings rather than in its marketing. Per Okta's "First Quarter Fiscal Year 2027 Financial Results" press release filed as Exhibit 99.1, May 2026, total revenue was $765 million, up 11% year-over-year, subscription revenue $750 million (also up 11%), remaining performance obligations $4.719 billion, up 16%, and current RPO $2.499 billion, up 12% β a backlog growing faster than revenue, which is where platform bets show up first. In the same release, CEO Todd McKinnon framed the thesis directly: "AI agents are rapidly becoming a new workforce inside every organization," "creating a wave of identities that must be secured and governed alongside human users." Read the November 4 staging API as the operational version of that sentence: the vendor is now shipping the queue where somebody has to decide, one item at a time, whether a discovered agent becomes a governed principal. That decision is an architect's job, and it does not exist in any human-JML runbook you already own.
β‘ Action This Week
In a preview org, build the triage matrix before you ever build the importer β the read path is free and the decisions are not. Enumerate your AI agent providers, then call GET .../staging?type=NEW, ?type=DUPLICATE and ?type=IGNORED and record the counts per provider. Write a one-page table with four columns: staging type β the actions the API allows for it β the named human who owns that decision β the System Log evidence you will keep. Add the operation poller (step 2 above) as a ten-line shell function, and write down one sentence on which AGENT_IMPORT client-auth setting each source platform will use now that an OIN app instance can hold more than one. Strip the org details and that table is a strong LinkedIn post or portfolio artifact: "before we imported a single AI agent, we wrote down who gets to press merge" is a governance judgment, and the three-verb asymmetry is the kind of detail that reads as hands-on rather than enthusiastic. Done = a one-page triage matrix naming an owner for register, ignore and merge, with per-type staging counts from a real preview org and a working operation poller.
Server-Side Conversation State With a Five-Minute Fuse: Message Threads Shrink the Request, Not the Bill
π‘ Key Concept
A chat-completions-style API is stateless, and in a long agent loop that statelessness is paid for on every single turn: the whole conversation is uploaded, validated and tokenized again to add one tool result. Per the Claude API release notes entry of November 2, 2026, the Messages API now answers that with message threads, in beta behind the header message-threads-2026-08-12: "The API keeps the conversation on the server, so each later request sends only the new messages." It is one new request field. Per the Claude "Message threads" documentation (beta), Nov 2026, the first call sends the conversation as usual plus "thread": {"type": "create"}, and each later call sends only the messages since the previous response plus "thread": {"type": "continue", "previous_message_id": "<previous id>"} β with system and tools left out, because "Sending either one on a continue request, even as null, returns a 400 error."
Two sentences from that page decide whether this belongs in your architecture. The first is the economics: "Threads do not change pricing or rate limits." The model still processes the full conversation each turn, so the win is payload size and time to first token β the docs promise that "requests are smaller, and time to first token stays lower and steadier as the conversation grows" β and emphatically not token spend. Anyone selling threads internally as a cost lever is going to be wrong in the first invoice review. The second sentence is the lifetime: "It expires 5 minutes after its last request, and the API deletes it no more than 1 hour after its last use." Those are two different clocks, and the five-minute one is the one your code lives with; the one-hour one is a data-retention statement.
Which makes the failure contract the real design input. A thread is append-only, each response id can be continued exactly once, and the recovery path is yours to build: a continue request "returns a 404 error with error.details.error_code set to thread_not_found when the API can't continue the thread", and "The response does not say why." The documented causes include expiry, a turn the API didn't store, new content the stored conversation can't take β and ownership: a request from a different organization, workspace, user or service account than the one that created the thread. Hence the rule the page states outright: "Your application stays the source of truth for the conversation. Keep your own copy of every message, and build the replay path from the start," because "No response, to a create or a continue request, says whether the API stored that turn. You find out on the next continue request." On data handling, the page is equally blunt: thread contents are "held in memory, encrypted under a server-managed key, never written to durable storage", deleted within an hour of last use β and message threads are not ZDR eligible.
π¬ Deep Dive
Practitioner trap: the five minutes run from the last request, not from the last token you read or the last thing your user did. Any pause longer than that β a human-in-the-loop approval, a queue hop, an exponential backoff, a tool that calls a slow downstream system before you send the tool_result β silently turns the next continue into a 404 and a full replay. Because nothing in a successful response tells you the turn was stored, a loop written without the replay branch does not fail in testing; it fails later, under exactly the long-running conditions you adopted threads for. Second edge on the same trap: a continue request carries only the new messages, so code that habitually appends the previous assistant turn before sending β the correct stateless pattern β errors here.
A thread pins the shape of the request for its entire life. The docs split request fields into create-only (system, tools, with their cache_control breakpoints) and fixed fields that must carry the same value on every request: model, tool_choice, thinking, context_management, output_config, the top-level cache_control and the set of anthropic-beta values; changing one returns a 400 with thread_fingerprint_mismatch naming the fields. Only max_tokens, stop_sequences, stream, metadata and similar may vary per turn. So the common runtime tricks β raising effort for a hard step, switching to a cheaper model for a bulk sub-task, swapping the tool list as the agent changes phase β are mutually exclusive with keeping one thread. The documented way to change system or tools is to start a new thread with the full conversation.
Prompt caching does not come for free, and the breakpoint budget is tighter than it looks. "A thread does not cache your prompt for you" β you still place breakpoints β but "A request with thread can carry at most 4 cache_control breakpoints. The top-level cache_control counts as one. Breakpoints on the system and tools of the create request count again on every continue request." One too many is a 400 with thread_unsupported_request, and you "can't move or remove a breakpoint after you send it". A conversation with a cached system prompt, cached tools and a per-turn breakpoint is already at three before you do anything clever.
Staff-level framing: treat threads as a latency optimisation behind a flag, never as a platform assumption. Three constraints drive that. (1) Compliance: not ZDR eligible, with conversation, system prompt and tools held in Anthropic's memory for up to an hour β a decision for whoever owns your data-processing posture, not for the engineer tuning p90. (2) Observability: a token-counting request that includes thread returns a 400, so your metering and budget-estimation path keeps counting the full conversation with system and tools β the thread saves bytes on the wire while your cost model stays stateless. (3) Feature surface: threads don't support Message Batches, compaction, or context editing beyond clear_thinking_20251015 with keep: "all"; to compact you start a new thread from a summary you write yourself. The clean rollout is the unthreaded path as the fallback, which the SDK thread helper encodes: it adds the beta header, keeps system/tools off continue requests, replays once on thread_not_found, thread_already_continued or thread_continue_in_flight, and with unsupported_request_behavior set to continue_unthreaded it stops using threads entirely for a conversation the API can't store.
Identity is one of the documented reasons a thread dies β continuation is scoped to the organization, workspace, user or service account that created it. A worker pool that rotates API keys mid-run, or spreads a conversation across two workspaces, buys itself silent full replays and the latency profile it was trying to escape. Pin one credential for a thread's lifetime, which is the same boundary today's IAM pill draws around per-platform AGENT_IMPORT credentials: the agent's identity and the agent's state are governed together.
import anthropic
client = anthropic.Anthropic()
BETA = "message-threads-2026-08-12"
SYSTEM = "You are an operations agent. Keep replies short."
history = [] # your own copy: the source of truth
previous_id = None # the id of the last stored response
def send(new_messages):
"""One turn. Continues the thread when possible, replays when it can't."""
global previous_id
if previous_id is not None:
try:
reply = client.beta.messages.create(
model="claude-opus-5-5", max_tokens=4096,
messages=new_messages, # ONLY the new turn - no system, no tools
thread={"type": "continue", "previous_message_id": previous_id},
betas=[BETA],
)
except anthropic.APIStatusError as exc:
body = exc.body if isinstance(exc.body, dict) else {}
code = ((body.get("error") or {}).get("details") or {}).get("error_code")
if code != "thread_not_found":
raise # fingerprint mismatch etc. are bugs, not retries
previous_id = None # expired or never stored -> fall through to replay
if previous_id is None:
reply = client.beta.messages.create(
model="claude-opus-5-5", max_tokens=4096,
system=SYSTEM, # create requests carry system/tools
messages=history + new_messages, # the whole conversation, from your copy
thread={"type": "create"}, betas=[BETA],
)
history.extend(new_messages)
history.append({"role": "assistant", "content": reply.content})
previous_id = reply.id # append-only: each id is continued once
return reply
Doc-verified against the Claude "Message threads" documentation (beta), Nov 2026 β the thread field shapes, the beta value, the create/continue split of system, the thread_not_found 404 and the replay-from-your-own-copy recovery. Not executed in this session. If a continue request returns thread_not_found again right after a replay, the documented move is to stop sending thread for that conversation.
π§ Recall
From the Nov 5 pill on text-to-SQL over a semantic layer: on Spider 2.0, what did the o1-preview code-agent framework actually solve β and what were the comparison numbers that made the gap the headline?
Show answer
Per the Spider 2.0 abstract quoted in that pill: "based on o1-preview, our code agent framework successfully solves only 21.3% of the tasks, compared with 91.2% on Spider 1.0 and 73.0% on BIRD." Same models, same SQL, roughly a seventy-point collapse β which is why the pill's conclusion was that the gap is not the model's ability to write SQL. Both pills point the same way: when a system gets slower or worse at scale, look at what you are asking it to carry on every call, not at the model.
πΌ Market Signal
Two signals, pointing the same way. First, distribution: per the Claude API release notes, Nov 2026, message threads shipped in beta on day one across the Claude API, Claude Platform on AWS, Claude Models on Google Cloud (Anthropic managed) and Claude in Microsoft Foundry β a long-agent-loop optimisation launched simultaneously on every enterprise procurement path, which is not how experiments ship. Second, the demand it is aimed at: Mayfield's survey of 266 CIOs, CTOs, CAIOs, CISOs and CDOs from Fortune 50βGlobal 2000 and high-growth enterprises reports that "42% are already in production; 72% are deploying in production and pilots combined", while "60% of organizations lack a formal AI governance framework" (Mayfield, "The Agentic Enterprise in 2026", Jan 2026). That is the market an architect is hired into: agents are already running in production, the governance and operability work around them is not done, and the people who can say precisely which optimisation moves latency versus which moves cost β and which one quietly moves your data-retention posture β are the ones making the call rather than taking it.
β‘ Action This Week
Instrument one existing agent loop before you change it. Log, per turn, the serialized request size in bytes and the time to first token over a 20-turn run; that is your baseline and it takes minutes. Then run the same script with the thread (the function above), and run it a third time with a deliberate six-minute sleep injected mid-conversation to force the thread_not_found path and prove your replay branch works. Record three columns β bytes per turn, time to first token, input tokens billed β and let the third column stay flat, because that is the finding most teams get wrong. Add one line to your design doc on ZDR and the one-hour in-memory retention, so the compliance question is answered before someone else asks it. Written up with the actual numbers, "threads cut our request payload and TTFT and did not move our token spend β here is the table" is a crisp LinkedIn post precisely because it contradicts the obvious assumption. Done = a three-column before/after table for one real agent loop, plus a replay path you have actually triggered on purpose rather than hoped about.
Desktop MFA Is Two Sign-In Budgets and a Two-Minute PIN β the Registry Keys That Decide Whether Your Fleet Can Still Log In Offline
π‘ Key Concept
Every Okta control this dashboard has covered denies access to something behind Okta β an app, an API, a managed org, an agent's token. Desktop MFA is the first one that can deny access to the laptop itself, while the laptop is on a plane with no network and no Okta session in sight. That inversion is the whole architecture lesson. Per Okta's "Configure and deploy Desktop MFA policies for Windows" documentation, Nov 2026, Desktop MFA for Windows adds a second factor after the password step at the Windows logon screen, it is configured entirely through registry policy β "Okta stores all registry keys under: HKLM\Software\Policies\Okta\Okta Device Access", except where the page notes otherwise β and those keys are pushed with PowerShell scripts through an MDM (the doc's example is Intune) or through Administrative Templates. There is no Okta-side policy object you can flip to undo a bad decision. The policy lives on the endpoint, and the endpoint needs a successful sign-in to talk to your MDM.
Two of those keys are not timers. They are counters, and they are the controls most teams misread. MaxLoginsWithOfflineFactor (REG_DWORD, default 50) defines how many times a user can sign in to Windows with offline MFA methods, and the doc is explicit that it also counts when the machine is online but the user chooses an offline method; past the limit, access is denied and the user is prompted to connect to the internet. MaxLoginsWithoutEnrolledFactors (default 50) is the same shape for users with no factor enrolled yet. Next to them sits a timer that covers less than its name suggests: MFAGracePeriodInMinutes (default 60) is the window in which a user doesn't need MFA after locking the computer β switching user accounts or restarting prompts for MFA regardless, 0 means prompt on every sign-in, and the grace period does not apply when password autofill is enabled. Then the two gates that decide which factors are even offered: OfflineLoginAllowed and OnlineLoginAllowed, both default 1, plus AllowedFactors (REG_MULTI_SZ, default *, requires UseDirectAuth) drawn from a fixed vocabulary β OV_Push, OV_TOTP, Offline_TOTP, Offline_Security_key, FIDO2_USB_key, RSA_Token, Offline_Fingerprint, Offline_FaceBio. The documentation carries an explicit CAUTION on that key: a user can be locked out of their computer if the factors in AllowedFactors don't match the factors shown by the OfflineLoginAllowed and OnlineLoginAllowed settings.
Which brings you to the recovery path, and to the number that should set your help-desk design. Per Okta's "Enable Desktop MFA recovery for Windows" documentation, Nov 2026, recovery is not a registry key: a super admin turns it on in the Admin Console under Security > General, in the Okta Device Access section, by setting Enable Device Recovery PIN for Desktop MFA to Enabled. An admin then generates a PIN from Directory > Devices (or Directory > People > User > Devices) via the Device Recovery column and View Recovery PIN. That PIN is valid for two minutes β the user must type it inside that window or an admin generates another one. Only after a successful sign-in does the longer clock start: DeviceRecoveryPINDuration (default 60 minutes, maximum 7200, which the doc calls five days). Underneath both sits DeviceRecoveryValidityInDays (default 90), the rotation frequency of the device recovery secret that generates PINs β and the sentence to underline: if the device can't connect to your Okta org, the secret isn't rotated, and you cannot generate new recovery PINs for that device until it connects and rotates. A device that has been offline past its secret's validity is a device your help desk cannot rescue over the phone. Okta's own CAUTION is blunt about the trade: using recovery may increase your attack surface if you don't implement policies or procedures to fully authenticate the device, the user, and the request.
π¬ Deep Dive
Practitioner trap: four behaviours that are documented, individually sensible, and together the shape of a Monday-morning outage. First, one key does not live where the others live. The page says all keys sit under HKLM\Software\Policies\Okta\Okta Device Access, then carries a caution telling you to store UseDirectAuth at HKLM\Software\Okta\Okta Device Access β no Policies segment. A single Intune PowerShell script that loops over a hashtable and writes everything to the policy path will leave UseDirectAuth at its default of 0, and that one key is the prerequisite for FIDO2 and RSA authenticators, for AllowedFactors to mean anything at all, for Device-Bound SSO, and for the recovery flow. You will see no error; you will see users who cannot use their security keys. Second, group-based enforcement needs a prior online login. MFARequiredList (default *, meaning everyone) and MFABypassList (default empty, and it takes precedence) accept users or Active Directory groups, but the doc requires that users sign in to Windows at least once while online and connected to the network, directly or over VPN, so AD group membership resolves β and changes to either list can take up to 10 minutes to apply. A remote starter who has never been on the corporate network is not in the group your policy thinks they are in. Third, the budgets are counters, not clocks: fifty offline sign-ins is roughly ten weeks for a daily-login laptop and roughly two weeks for a shift-worker device that locks and resumes all day, and when it runs out the documented behaviour is access denied, not a warning. Fourth, the recovery button is conditional on something users control: the known limitation is that if a user is locked out because they never enrolled an offline factor, the Desktop MFA recovery button doesn't appear on the sign-in screen at all, and the documented workaround is to increase MaxLoginsWithOfflineFactor and redeploy the policy β which requires the device to reach your MDM, which requires a sign-in. Set AdminContactInfo (REG_SZ, no default) before you need it; it is the string shown to a user who is locked out, and it is the cheapest control in the entire product.
Two keys quietly repeal controls you think you have, and one release note tells you your dashboards were lying. PrioritizeBiometrics (default 0, flagged Early Access) is documented to let offline fingerprint and face factors be enrolled without an online factor, become the default, and β the part that matters β MaxLoginsWithOfflineFactoris ignored when it is non-zero. One key flip removes the offline budget entirely. ExcludePasswordCredProvider is the mirror image: by default the standard Windows password credential provider is disabled, and you set the key to 0 to bring it back, so "users can still log in the old way" is a thing you have to deliberately re-enable rather than something you have until you remove it. On the observability side, Okta's Identity Engine production release notes, version 2026.44.0, deployed November 3, 2026 list a fix under Fixes: the System Log displayed multiple Evaluation of Sign-On Policy events when users signed in with Okta Verify push for Desktop MFA (OKTA-1278196). If you built a SIEM detection, an MFA-prompt-per-user metric or a capacity model on those events before 3 November 2026, the counts were inflated by a duplication you did not cause and could not see β re-baseline anything that counted them. The same release adds, as Early Access, Okta Verify Device Posture Sensor Mode, which registers the app directly to the org instead of requiring a single-user FastPass enrollment so Device Assurance policies can be evaluated on shared devices; that is the shared-fleet gap that endpoint-MFA rollouts hit first, and it is worth knowing it now has a name.
Staff-level framing: this is the rare identity change whose blast radius is measured in people who cannot work. Blast radius: a wrong value in a policy push does not degrade an app, it denies the logon screen, offline, with no Okta-side rollback β the remediation channel (MDM) is behind the thing that broke. So the rollout contract is: never enforce and configure in the same wave, stage by group, and keep one documented escape hatch per wave (MFABypassList entry, ExcludePasswordCredProvider=0, or a raised MaxLoginsWithOfflineFactor) that your help desk is trained to invoke. Rollout evidence that is not vendor marketing: Okta ran this on itself and published the sequence β see the Market Signal below β and the shape is worth copying because it is boring: a small UAT group, function-based waves, a grace period before enforcement, enrollment status reported through MDM attributes. Audit trail and least privilege for the help desk: generating a recovery PIN is a privileged action that hands someone interactive access to a corporate endpoint, so it should not require a super admin. The doc names the two permissions a custom admin role needs β Generate device recovery PIN and View devices β and the two org feature toggles that make them assignable: Enable custom admin roles for Okta Device Access permissions and Enable custom admin roles for device permissions. Design that role, and the ticket type that justifies using it, before go-live; afterwards every lockout is an escalation to your most privileged account. Cost: the recurring expense is not licensing, it is the help-desk minute β a two-minute PIN window means a live call, not an email, which is a staffing shape you should size before the enforcement wave, not after.
# ---------------------------------------------------------------------------
# Okta Desktop MFA for Windows β the keys that decide lockout, in the order
# a reviewer should read them. Names, types and defaults are quoted from
# Okta's "Configure and deploy Desktop MFA policies for Windows" and
# "Enable Desktop MFA recovery for Windows" docs. Deploy via MDM
# (PowerShell) or ADMX. Nothing below was executed against a fleet.
# ---------------------------------------------------------------------------
$policy = 'HKLM:\Software\Policies\Okta\Okta Device Access' # almost everything
$direct = 'HKLM:\Software\Okta\Okta Device Access' # UseDirectAuth ONLY
# 1. WHO is enforced. AD groups resolve only after one online Windows login.
# MFABypassList wins over MFARequiredList. Changes take up to 10 minutes.
Set-ItemProperty $policy -Name MFARequiredList -Type MultiString `
-Value @('CORP\Wave1-DesktopMFA') # default '*' = everyone
Set-ItemProperty $policy -Name MFABypassList -Type MultiString `
-Value @('CORP\DesktopMFA-BreakGlass') # default empty = nobody
# 2. WHICH factors are offered. AllowedFactors requires UseDirectAuth=1,
# and that key lives on the OTHER path. Mismatch between this list and
# the two *LoginAllowed gates is a documented lockout cause.
Set-ItemProperty $direct -Name UseDirectAuth -Type DWord -Value 1 # default 0
Set-ItemProperty $policy -Name OnlineLoginAllowed -Type DWord -Value 1
Set-ItemProperty $policy -Name OfflineLoginAllowed -Type DWord -Value 1
Set-ItemProperty $policy -Name AllowedFactors -Type MultiString `
-Value @('OV_Push','OV_TOTP','Offline_TOTP','FIDO2_USB_key')
# 3. The two BUDGETS (counters, not timers). Exceeded => access denied.
Set-ItemProperty $policy -Name MaxLoginsWithOfflineFactor -Type DWord -Value 50
Set-ItemProperty $policy -Name MaxLoginsWithoutEnrolledFactors -Type DWord -Value 50
# PrioritizeBiometrics (EA) non-zero => MaxLoginsWithOfflineFactor IGNORED.
# 4. The one TIMER, and what it does not cover.
Set-ItemProperty $policy -Name MFAGracePeriodInMinutes -Type DWord -Value 60
# Applies after LOCK only. Switch user / restart still prompt. 0 = always
# prompt. Does not apply when password autofill is enabled.
# 5. RECOVERY. Enabled in Admin Console (Security > General > Okta Device
# Access > Enable Device Recovery PIN for Desktop MFA), not by a key.
Set-ItemProperty $policy -Name DeviceRecoveryPINDuration -Type DWord -Value 60 # max 7200 (5 days)
Set-ItemProperty $policy -Name DeviceRecoveryValidityInDays -Type DWord -Value 90 # secret rotation
Set-ItemProperty $policy -Name AdminContactInfo -Type String `
-Value 'Locked out? Call the IT service desk: YOUR_SERVICE_DESK_NUMBER'
# Re-running the Okta Verify installer with command-line parameters does
# NOT change registry values that already exist. Plan for in-place edits.
Doc-verified against Okta's Desktop MFA for Windows policy and recovery documentation, both fetched Nov 5, 2026. Key names, types and defaults are the documentation's; group names, paths and the phone placeholder are mine. Not executed against any fleet or tenant.
# The lockout matrix. Four documented ways a user reaches a Windows logon
# screen they cannot pass, and whether you can fix it remotely.
# Sources: policy doc (AllowedFactors CAUTION, budget keys) and recovery
# doc (Known Limitations, secret rotation).
CAUSE | RECOVERY BUTTON? | REMOTE FIX?
---------------------------------------+------------------+-------------------
AllowedFactors does not intersect the | depends on | MDM push, needs a
factors shown by On/OfflineLoginAllowed| enrolled factors | working login
---------------------------------------+------------------+-------------------
MaxLoginsWithOfflineFactor exhausted | yes, if an | yes - admin PIN,
(50 offline sign-ins, counter) | offline factor | 2-minute window
| is enrolled |
---------------------------------------+------------------+-------------------
No offline factor ever enrolled | NO - button is | only by raising
(documented Known Limitation) | not displayed | MaxLoginsWith-
| | OfflineFactor and
| | redeploying
---------------------------------------+------------------+-------------------
Device offline past DeviceRecovery- | yes, but no PIN | NO - device must
ValidityInDays (secret not rotated) | can be generated | reach Okta first
# Read the bottom row as the design constraint it is: the longer a device
# stays off the network, the closer it drifts to unrecoverable-by-phone.
# Field laptops, lab machines and long-term-leave devices are the fleet
# segment that needs a shorter rotation window and a physical runbook.
Doc-verified against the Known Limitations and setting descriptions in Okta's Desktop MFA for Windows policy and recovery documentation, fetched Nov 5, 2026. The matrix layout is mine; every cause and remedy is the documentation's.
π§ Recall
Nine days ago the Okta Aerial pill named the single most dangerous shape in that API β a write call whose "update" semantics are actually "replace". Name the endpoint, say what happens to the fields you leave out, and then say what the equivalent one-call-wipes-state hazard is in the Desktop MFA policy you just read about.
Show answer
Aerial: PUT /orgs/{orgId}/products takes an array of product objects and disables any previously enabled product omitted from that array β so a helper that PUTs a single-element array to "enable one product" silently turns off every other product in the org, and the call returns success. The Desktop MFA equivalent is AllowedFactors, and the failure is quieter because it is local. It is a REG_MULTI_SZ whose default * means every supported factor; writing it at all replaces that list wholesale, and the documented consequence of a list that doesn't intersect what OfflineLoginAllowed and OnlineLoginAllowed actually offer is a user locked out of their computer. Same class of defect β a replace-semantics write with no diff, no dry run and a success response β but the blast radius differs in a way that should change your process: Aerial's bad PUT is fixable with another API call from the same credential, while a bad AllowedFactors push is fixable only through a channel that requires the users you just locked out to log in. The generalizable rule is to treat every replace-semantics write as a diff operation you build yourself: read current state, compute the union you intend, assert the result before you write, and for endpoint policy add one more step that cloud APIs don't need β ship it to a canary ring whose devices you can physically reach.
πΌ Market Signal
The only published end-to-end playbook for this rollout is Okta's own, and it is thinner than the risk deserves β which is precisely the gap a fractional architect bills for. In "Insights from our experience: Okta deploys Okta Device Access", Okta, Apr 2025, published 2 April 2025 by Cynthia Luu, Okta describes starting its Device Access journey with Desktop MFA on macOS: a UAT group of under 100 users for feedback, then impacted employees sorted into four function-based rollout groups, a rollout phased over four weeks with MDM-driven enrollment prompts at the start of each group's week, a grace period before enforcement so employees would not be locked out of their computers, a dedicated Slack channel for questions, and MDM extension attributes used to report enrollment status and device health. The outcome they state is "By the end of the planned rollout timeline, 100% of impacted employees were compliant." Two details from that post are worth more than the headline: in several cases employees first had to fix their MDM configurations before they could enroll at all β so MDM hygiene is a prerequisite, not a parallel workstream β and the most common support question was simply how users could confirm their enrollment had succeeded, which is a communications artifact, not an engineering one. Note what the post does not contain: no device counts, no help-desk ticket volumes, no lockout rate, and at publication Desktop MFA for Windows and Device Access recovery flows were both still described as planned. Both have since shipped and are documented, and the product surface is still moving β the Identity Engine production release notes for 2026.44.0, Nov 2026 carry Desktop MFA and Okta Verify items as recently as 3 November 2026. That combination β a deployment every mid-size estate now wants, a vendor playbook with no operational numbers in it, and a documented set of four distinct lockout paths β is why "endpoint identity" (IdP policy plus MDM plus service desk, in one head) is one of the few workforce-IAM specialisms that is hard to outsource to a tool.
β‘ Action This Week
Ninety minutes, no tenant changes required, and it produces the one artifact nobody has: a lockout model for your own fleet. Step one, fifteen minutes: segment your Windows estate into four buckets by how often a device touches the network β daily office/VPN, weekly, field or lab devices offline for weeks, and shared or kiosk machines. Network cadence, not department, is the axis that matters here, because every control in this pill is either a counter of offline sign-ins or a secret that only rotates on connection. Step two, thirty minutes: for each bucket, fill the four-row lockout matrix from the second code block above with your intended values β grace period, offline budget, the exact AllowedFactors list, and the recovery secret rotation window β and mark which buckets can be rescued by an admin-generated PIN over the phone and which cannot. Step three, twenty minutes: write the break-glass path as a numbered runbook, naming who holds the custom admin role with Generate device recovery PIN and View devices, what identity proofing they perform before generating one (Okta's own caution puts that burden on you), and what the fallback is for the bucket where no PIN can be generated. Step four, fifteen minutes: check two things you can check today without deploying anything β whether AdminContactInfo would be populated on your first wave, and whether any dashboard or detection in your SIEM counts Evaluation of Sign-On Policy events for Desktop MFA push, because those were duplicated until 3 November 2026. Step five, ten minutes: write the single sentence you would say in a change-approval meeting about why enforcement and configuration ship in separate waves. Done = a four-bucket fleet segmentation, a completed lockout matrix per bucket, a named break-glass role with an identity-proofing step, and one re-baselined SIEM metric. Strip the group names and this is a strong LinkedIn post: "we modelled how our own MFA rollout could lock out the fleet before we deployed it" is a judgment artifact, and the four-row matrix is the rare diagram that reads as experience rather than enthusiasm.
The Model Never Sees Your Schema: a Deterministic Compiler Over a Curated Semantic Layer Turned 21% Into 94% β and Moved the Risk Into a YAML File
π‘ Key Concept
Natural language to SQL looks solved in demos and is not solved in estates, and there is a benchmark that quantifies the distance exactly. "Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows" (Lei et al., arXiv, Nov 2024, ICLR 2025 Oral) β submitted 12 November 2024, last revised 17 March 2025 β assembles 632 real-world text-to-SQL workflow problems from enterprise database use cases, where databases are sourced from real data applications, often contain over 1,000 columns, and live in local or cloud systems such as BigQuery and Snowflake. Solving them frequently requires understanding and searching database metadata, dialect documentation, and even project-level codebases, processing extremely long contexts, and emitting multiple queries in various dialects, often exceeding 100 lines. The abstract's result is the number to remember: "based on o1-preview, our code agent framework successfully solves only 21.3% of the tasks, compared with 91.2% on Spider 1.0 and 73.0% on BIRD." Same models, same SQL language, a seventy-point collapse. Whatever that gap is, it is not the model's ability to write SQL.
"A Semantic-Layer-Mediated Agent for Natural Language to SQL over Heterogeneous Enterprise Databases" (Kim, Khoeurn and Yoon, arXiv, Jun 2026), submitted 30 June 2026, answers it by taking the schema away from the model entirely. Each physical table is wrapped in a semantic model carrying dimensions, measures and metrics, where every element has two faces: a human-readable description, which is what the LLM reads, and an expr holding the exact physical column expression, which only the compiler uses. A per-database join graph declares typed join edges. The model's output is not SQL but a compact intermediate representation the authors call a Semantic Model Query (SMQ) β a JSON object with metrics, filters and group_by β and a deterministic engine, SmqToSql, resolves names, injects joins from the graph and emits dialect-specific SQL. The agent runs a single-tool think-act loop over exactly three tools: getModelDataElements, convertSmqToSql and execute, with direct INFORMATION_SCHEMA introspection disallowed and the one execute call ending the workflow. With Gemini 3 Pro at temperature 0.1, high extended thinking and a cap of 20 SMQ iterations per instance, it reports 94.15% execution accuracy β 515 of 547 tasks β on Spider2-snow, third on the official leaderboard, against leaderboard entries the paper tabulates at 2.20% (DAIL-SQL + GPT-4o), 23.58% (Spider-Agent + o1-preview), 25.78% (Spider-Agent + Claude-4-Sonnet) and 31.26% (ReFoRCE + o1-preview).
Before that number goes into anyone's slide, read the comparison honestly, because the authors do. The baselines are zero-shot leaderboard runs without a per-database semantic layer, so this is not a controlled same-LLM ablation; the paper's own framing is that the comparison reflects the value of the system rather than the LLM alone. The per-class table is uneven β 131/135 on sf_local, 350/369 on sf_bq, and 10/18, or 55.6%, on the native Snowflake class, which is eighteen instances and should never be quoted as a rate. And the limitation the authors raise themselves is the one that should change your architecture, not your optimism: curating semantic-layer descriptions against the evaluation set carries what they call a Goodhart-style risk, with descriptions drifting toward text that encodes expected answers, raising benchmark accuracy while reducing robustness to unseen questions and schema change. Put those together and the engineering conclusion is sharper than the headline. This architecture does not make accuracy a property of the model; it makes accuracy a property of a hand-authored artifact your data team maintains. That is a genuinely better trade β artifacts can be reviewed, versioned, tested and owned, and model weights cannot β but only if you treat the semantic layer as a production dependency with an owner, a review process and a regression suite, rather than as documentation.
π¬ Deep Dive
Practitioner trap: the determinism you are buying is narrower than the pitch, and the gaps are specific. First, the IR has an edge and the hardest questions fall off it. The paper states the SMQ covers only a common analytical core β no CROSS JOINs, no arbitrary subqueries, no advanced window functions, no recursive CTEs β and the agent writes those itself, which means the compiler's correctness guarantee simply does not apply to the queries most likely to matter in a board pack. Your first production metric is therefore not accuracy, it is escape rate: the share of real questions that leave the IR. Second, a wrong description is a silent semantic bug, not a crash. The description steers the model, the expr steers the compiler, and nothing checks that they agree; label a measure "net revenue" over an expression that is in fact gross and the pipeline will compile, execute and return a confidently stable wrong number forever. That is worse than a hallucination, which at least varies between runs and gets noticed. Third, the accuracy is tied to a reasoning budget: the paper's one sensitivity finding is that disabling extended thinking substantially degrades accuracy, with no figure given β so a cost-reduction flag flip in your inference config is an accuracy regression that will not show up in your cost review. Fourth, the failure modes are in the artifact, not the prompt: the paper's failure analysis names SMQ compilation gaps from missing join edges and under-specified semantic layers as the main sources, which means your bug triage should start in the YAML and the join graph, not in prompt engineering.
Staff-level framing: the semantic layer stops being a BI nicety the moment it becomes the only thing the model can see β it is now simultaneously your authorization surface, your audit surface and your blast radius. Authorization: because the model never touches physical tables and INFORMATION_SCHEMA introspection is blocked, the compiler is the single point where a per-tenant or per-user predicate can be injected, and it is the only honest place to put one β a row filter asked for in the prompt is a suggestion, a predicate added by SmqToSql is a control. The companion question is whose credentials the execute tool actually uses, because in most pilots the answer is one warehouse service account shared by every asker, which converts a careful semantic model into a uniform grant. Audit: log three things per turn and you have a reviewable trail β the SMQ (the intent, small and human-readable), the compiled SQL (the executed fact), and the semantic-layer version hash (the definition in force at that moment). Without the third, a metric definition change silently rewrites the meaning of every past answer and you cannot reproduce last quarter's number. Blast radius: one bad expr is not one bad answer, it is every answer that touches that measure, consistently, which argues for the same release discipline you would give a shared library β versioned, code-reviewed by someone who owns the metric, and gated by a regression suite of known questions with known answers. Cost and ownership: the recurring cost here is not tokens, it is the per-database semantic model plus join graph that someone has to author and keep current against schema drift; budget that as a data-team deliverable with a named owner, and note that the market has already priced it (see the Market Signal).
The two numbers you should carry into a stakeholder conversation are a coverage number and an accuracy number, in that order, and only one of them is in any vendor's deck. 94.15% describes a system whose semantic layer was hand-curated per database for a benchmark whose authors flag the overfitting risk themselves; it does not predict your estate, where nobody has curated anything and the schema moves monthly. The defensible claims are narrower and more useful: that routing the model through a declared IR removes the "model guesses at cryptic_col_7" failure class entirely; that whatever remains is attributable to a file you can diff; and that your own escape rate and compile-failure rate are measurable in a week on twenty real questions, long before you can trust any published accuracy figure. There is a direct line from here to the document-grounding pill this dashboard ran nine days ago: in both cases a single headline metric was quietly standing in for two independent properties, and in both cases the second property β the one nobody dashboards β is the provenance of the answer rather than its correctness.
# ---------------------------------------------------------------------------
# The three-layer contract, in the shapes described in arXiv:2606.31041.
# (1) semantic model: description for the LLM, expr for the compiler.
# (2) SMQ: the only thing the model emits. metrics / filters / group_by.
# (3) compiled SQL: emitted deterministically by SmqToSql, dialect-aware.
# Field names follow the paper; the business model below is invented.
# ---------------------------------------------------------------------------
# (1) semantic_models/orders.yaml - one file per semantic model
name: orders
source: ANALYTICS.PROD.FCT_ORDERS_V3 # physical, never shown to the LLM
dimensions:
- name: order_region
description: "Sales region the order is attributed to, ISO-3166 alpha-2."
expr: "COALESCE(bill_to_region_cd, ship_to_region_cd)" # compiler only
- name: order_month
description: "Calendar month the order was placed, first day of month."
expr: "DATE_TRUNC('month', placed_at_utc)"
measures:
- name: net_revenue
description: "Revenue after discounts and returns. Excludes tax and freight."
expr: "SUM(gross_amt - discount_amt - return_amt)"
metrics:
- name: net_revenue_per_region_month
description: "Net revenue grouped by region and month. Use for trend questions."
measure: net_revenue
join_graph:
- from: orders
to: customers
type: left
on: "orders.customer_sk = customers.customer_sk"
# (2) The model's entire output for "net revenue by region since July":
{
"metrics": ["net_revenue_per_region_month"],
"filters": [{"dimension": "order_month", "op": "gte", "value": "2026-07-01"}],
"group_by": ["order_region", "order_month"]
}
# (3) What SmqToSql emits. Note the two things the model never wrote:
# the physical expressions, and the tenant predicate your compiler
# injects from the caller's identity rather than from the prompt.
SELECT COALESCE(bill_to_region_cd, ship_to_region_cd) AS order_region,
DATE_TRUNC('month', placed_at_utc) AS order_month,
SUM(gross_amt - discount_amt - return_amt) AS net_revenue
FROM ANALYTICS.PROD.FCT_ORDERS_V3
WHERE DATE_TRUNC('month', placed_at_utc) >= DATE '2026-07-01'
AND tenant_id = SESSION_CONTEXT('tenant_id') -- injected, not prompted
GROUP BY 1, 2
ORDER BY 2, 1;
Illustrative. Field names (description, expr, metrics/filters/group_by) and the compile-then-execute flow follow arXiv:2606.31041, fetched Nov 5, 2026; the order model, the join graph and the tenant predicate are invented for this pill and were not run against any warehouse.
# The four numbers to track instead of one. Executed in-session with
# python3 -m py_compile and a 20-turn synthetic run (output below).
from dataclasses import dataclass
@dataclass
class Turn:
question: str
smq_compiled: bool # the IR expressed it and SmqToSql emitted SQL
agent_raw_sql: bool # the agent wrote SQL the compiler never saw
executed: bool
result_matches_gold: bool
def report(turns):
n = len(turns)
if n == 0:
raise ValueError("no turns to score")
compiled = sum(t.smq_compiled for t in turns)
escaped = sum(t.agent_raw_sql for t in turns)
correct = sum(t.result_matches_gold for t in turns)
correct_via_ir = sum(
t.result_matches_gold and t.smq_compiled and not t.agent_raw_sql
for t in turns
)
return {
"ir_coverage": compiled / n, # how much of reality the IR covers
"escape_rate": escaped / n, # hand-written SQL, no guarantee
"compile_failure": (n - compiled - escaped) / n,
"execution_accuracy": correct / n, # the only number vendors quote
"accuracy_under_guarantee": correct_via_ir / n,
}
# Gate the build on the two that describe risk, not on the headline.
GATES = {
"escape_rate": lambda v: v <= 0.20,
"accuracy_under_guarantee": lambda v: v >= 0.80,
}
def enforce(m):
failed = [k for k, ok in GATES.items() if not ok(m[k])]
if failed:
raise SystemExit("gate failed: " + ", ".join(failed))
return True
# Synthetic 20-turn run, every 5th question escaping the IR, 1 in 4 wrong:
# {'ir_coverage': 0.8, 'escape_rate': 0.2, 'compile_failure': 0.0,
# 'execution_accuracy': 0.75, 'accuracy_under_guarantee': 0.6}
# gate failed: accuracy_under_guarantee
#
# Read that last line as the point of the whole exercise: 0.75 execution
# accuracy looks shippable, and 0.6 of the corpus answered correctly
# *under the compiler's guarantee* is a different product.
VALIDATED β this module was written to disk, compiled with python3 -m py_compile and executed against the 20-turn synthetic corpus in this session on Nov 5, 2026; the commented output is the real stdout. The metric definitions are mine, not the paper's.
π§ Recall
Nine days ago the document-grounding pill quoted a one-sentence research finding that should have changed how you report extraction quality. Reproduce that finding, and then say which two metrics it splits apart β and what the exactly analogous split is in the text-to-SQL architecture you just read about.
Show answer
The finding, from "Towards Reliable and Interpretable Document Question Answering via VLMs" (Chen et al., arXiv, Sep 2025), is that "correct answers often lack reliable localization" β which is why the authors built DocExplainerV0 to predict bounding boxes separately from answer generation, so grounding can be bolted onto models that cannot be fine-tuned. The two metrics it splits are answer accuracy and localization accuracy: a field-level accuracy dashboard says nothing about whether the box you showed the auditor points at the value you reported. The text-to-SQL analogue is execution accuracy versus accuracy under guarantee. A system can return the right number by way of agent-written SQL that the deterministic compiler never saw, which means the answer is correct and the provenance claim β "every query is compiled from a reviewed semantic definition" β is false for that turn. In both cases one headline number is standing in for two independent properties, correctness and provenance, and in both cases the fix is the same move: measure provenance separately and refuse to report the aggregate without it. That is also why the gate in the code block above fails the build on accuracy_under_guarantee rather than on execution_accuracy β the second number is the one your compliance story actually rests on.
πΌ Market Signal
The budget for exactly this architecture is being allocated now, and the published figures are intentions rather than deployments β a distinction worth being the person in the room who makes. Per The Futurum Group, "Enterprise Data Analytics Survey Finds 59% Investing in Semantic Layers as Critical AI Infrastructure", Mar 2026 β dated 30 March 2026, from its 1H 2026 Data Intelligence, Analytics, and Infrastructure Decision Makers Survey, n=818 global decision-makers at organizations with $100 million or more in annual revenue β "44.5% of respondents plan to increase spending on semantic layers over the next 24 months, with an additional 14.4% planning to newly adopt", which is where the headline "nearly 59%" comes from, while only 6.1% have no plans. Read the arithmetic rather than the headline: that 59% is stated intent to direct incremental budget, not measured adoption. The same release puts semantic-layer investment as an explicit 2026 priority for 25.4% (up from 24.4%), names "AI-augmented and agentic analytics" as the top expected trend at 47.8%, reports that among GenAI and agentic prioritizers production-plus-pilot adoption held essentially flat at approximately 47% while "strong consideration" shrank by 8.3 percentage points, and lists accuracy and hallucination risk at 24.9% as the top reservation about GenAI replacing traditional analytics, with integration complexity (29.3%) and lack of transactional write-back (24.6%) as the leading bottlenecks and skills shortages more than doubling to 10.4%. Futurum is a research and advisory firm with a commercial interest in this category and the release names no external sponsor, so treat the percentages as directional. The career read is in the combination: the top stated blocker is accuracy, the top stated investment is the artifact that fixes accuracy, pilots are no longer converting to production on enthusiasm, and the scarce skill is doubling. Someone has to author per-database semantic models, decide where the tenant predicate is injected, and own the regression suite that catches a changed expr β and that person is neither a pure analytics engineer nor a pure ML engineer, which is exactly the seam where fractional architecture work appears.
β‘ Action This Week
Two hours, one table, and it produces a number that no vendor benchmark can give you: your own escape rate. Step one, twenty minutes: pick the single most-asked metric in your organization β the one that appears in every weekly review β and write its semantic model by hand in the shape of the first code block: source table, two or three dimensions, one measure, and for each element both a description aimed at a model and an expr aimed at a compiler. Step two, fifteen minutes: collect twenty real questions people have actually asked about that metric, from Slack, from a BI request queue, or from your own notes. Do not invent them; invented questions are always inside the IR. Step three, forty minutes: for each question, write the SMQ-shaped JSON by hand and mark one of three outcomes β expressible in the IR, needs raw SQL (window function, correlated subquery, recursive CTE), or ambiguous because the question itself under-specifies the metric. Step four, twenty minutes: compute the four numbers from the second code block over those twenty questions, then write the two-sentence verdict that matters: what fraction of real demand your declared contract covers, and which specific SQL construct is responsible for most of the escapes. Step five, twenty minutes: decide and write down where the per-tenant or per-user predicate would be injected in your design, and whose credentials the execute step would run under β naming the service account if that is the honest answer. Done = one hand-written semantic model, twenty classified real questions, your own escape rate and IR coverage as numbers, and one sentence naming the SQL construct that would most expand your IR. This is a strong portfolio artifact precisely because it is unglamorous: "our semantic layer covers 70% of real questions, here is the construct that owns the rest" is the kind of measured claim that gets a consultant hired, where "we built an AI data analyst" is not.
The Okta MCP Server Shows Your Agent a Filtered Tool List β the Service App's Admin Role Decides What the Token Actually Reaches
π‘ Key Concept
Every agentic-identity pill on this dashboard so far has pointed outward: an agent needs a token for some business API, and Okta is the thing that issues it. There is a second direction, it ships as a supported product, and it almost never reaches a design review β the agent holding credentials to the identity control plane itself. Per the okta/okta-mcp-server repository, Nov 2026, the Okta Open Source MCP Server is Generally Available, Apache-2.0, and exposes Okta's Admin Management APIs to an MCP client so a model can create users, edit authentication policies, manage apps and query System Logs from natural language. The Okta MCP server concepts documentation, Nov 2026 describes it as translating those instructions into structured API calls using Okta's Python SDK v3.4.1, and names two authentication flows: OAuth 2.0 Device Authorization Grant, browser-based and recommended for interactive use and local development, and Private Key JWT, browserless and recommended for automation, CI/CD pipelines and headless environments.
The browserless flow is not an MCP invention; it is Okta's own service-app client-credentials flow, and the mechanics matter because they determine what you can revoke. Per the Okta "Implement OAuth for Okta with a service app" guide, Nov 2026, Client Credentials is the only flow that mints Okta-scoped access tokens for an OAuth 2.0 service app. The client signs a JWT whose iss and sub must both equal the client_id, whose aud is the full https://YOUR_OKTA_DOMAIN/oauth2/v1/token URL, and whose exp may be at most one hour in the future, with jti offered as the optional replay guard; it posts that as client_assertion alongside client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer. The scopes requested "must already be in the app's grants collection", and the resulting bearer token's lifetime is, in the guide's words, "fixed at one hour". So the credential at rest is a private key, the credential in flight is a one-hour bearer token, and the only thing on the wire that describes what the agent may do is the scope parameter.
Now the part that inverts most people's mental model. The MCP server performs what the repository calls Scope-Based Tool Loading: at startup it reads OKTA_SCOPES and registers only the tools whose required scope is present, and tools without a matching scope are "silently removed before the first request" β the concepts doc adds a second check, a scope-guard decorator that confirms permissions immediately before executing a command. That is a good design and it is not an authorization boundary. The boundary is the token, and the token's reach is set by two things the MCP layer never sees: the scopes in the app's grants collection, and the admin role assigned to the service app. The serviceapp guide is explicit that for each service app "you need to assign admin roles to constrain the permissions and resources of that app for least privilege access" β and that there is an org setting, Public client app admins, which when enabled "automatically assigns the super admin role (SUPER_ADMIN) after scopes are granted to service apps", with the documented instruction to disable it once admin role assignments are part of your workflow. Read those two sentences together: the tool list your model sees can be two read-only tools while the principal behind it is a super admin.
π¬ Deep Dive
Practitioner trap: three behaviours that are documented, reasonable in isolation, and wrong-footing in production. First, shrinking OKTA_SCOPES is a UI change, not a privilege change. Tool loading happens at startup from an environment variable; the grants on the app and the admin role bound to it are untouched. An operator who "locked the agent down" by editing a container env var has narrowed what the model can be asked to do and has narrowed nothing about what that key can do if the process, the config file or the orchestrator is compromised β and because the filter runs at startup, the change does not even take effect until a restart. Second, the device-grant path writes an admin-API token to disk in cleartext by design. The repository's own Docker recipe for Device Authorization Grant mounts a named volume at the keyring path and sets PYTHON_KEYRING_BACKEND=keyrings.alt.file.PlaintextKeyring, explaining that the volume "persists tokens between container restarts". That is a deliberate convenience for a headless container, and it means a token for Okta's admin surface sits in a plaintext keyring file on whatever host runs your agent. Third, the destructive-operation guardrail is a property of the client, not the server. The repository states that deletes and deactivations prompt for confirmation through the MCP Elicitation API "with automatic fallback for clients that do not yet support the feature". Automatic fallback is the phrase to read twice: swap the MCP client and the human-in-the-loop step can disappear without any change on the Okta side, so you cannot attest to it in an audit unless you pin and verify the client.
Staff-level framing: write this up as a privileged-access review for a non-human administrator, because that is exactly what it is. Blast radius: the unit of compromise is one private key plus one client_id, and the reachable surface is the intersection of the app's granted scopes and its assigned admin role β so the first finding in any estate is whether Public client app admins is enabled, since with it on, granting scopes to a service app is the same action as making it a super admin. Split the agent in two from day one: a reporting client holding read scopes such as okta.users.read okta.groups.read with a read-only admin role, and a separate change client whose grants are requested per use case. Audit trail: the concepts doc promises a complete record of agent activity integrated with Okta System Logs, and it delivers attribution to the service app β not to the person who typed the prompt. The prompt is the intent, and the prompt lives in the MCP client's transcript, not in Okta, so attribution stops at the client unless your runbook attaches a change-ticket id to every session and your SIEM can join on it. Budget for that join; it is the same gap the Aerial pill found in a different product. Rollout and cost: the one-hour fixed token lifetime means there is no long-lived token to leak, but revocation granularity stops at the app β there is no per-session kill switch β and the guide notes that once a service app has Okta-scoped grants "only an admin with Super Admin role permissions can rotate the keys", which makes key rotation a privileged scheduled operation that needs an owner and a date, not a best-effort task.
The gap this flow cannot close is instance identity, and the IETF now has vocabulary for it. private_key_jwt authenticates the client: every replica, container and laptop holding the same OKTA_PRIVATE_KEY is the same principal, so "which agent instance deactivated that user" is unanswerable from the token alone. draft-ietf-oauth-attestation-based-client-auth-12, Oct 2026 β last updated 18 Oct 2026, WG state "WG Consensus: Waiting for Write-Up" β defines the missing half: a client attester issues a Client Attestation JWT whose cnf.jwk binds a key held by one client instance, the instance proves possession with a second JWT of type oauth-client-attestation-pop+jwt carrying aud, jti, iat and a challenge, and the two travel in the OAuth-Client-Attestation and OAuth-Client-Attestation-PoP header fields. The draft's own framing is that the instance proves its authenticity to the authorization server without revealing its target audience to the attester. Okta does not support it today, and that is the point of knowing it exists: when a security architect asks how you would distinguish one agent replica from another, "attestation-based client authentication, not yet available, so we compensate with per-replica clients and short grant lists" is a Staff-level answer and "DPoP, probably" is not. The companion question lives on the other side of the stack β today's AI pill covers a content-usage vocabulary with no enforcement point at all, which is the exact mirror image of what you have here: an enforcement point at every API call, and no record of the intent behind it.
# ---------------------------------------------------------------------------
# Okta Open Source MCP Server, browserless path: the three artifacts that
# decide what the agent can do, in the order a reviewer should read them.
# Values and semantics are quoted from the okta/okta-mcp-server README and
# Okta's "Implement OAuth for Okta with a service app" guide. Placeholders
# only; nothing below was executed against any tenant.
# ---------------------------------------------------------------------------
# 1. What the MODEL sees. OKTA_SCOPES is read at startup and filters the
# tool list. It does not change the app's grants or its admin role.
# MCP client config (README, Docker + Private Key JWT):
{
"mcpServers": {
"okta-mcp-server": {
"command": "docker",
"args": ["run", "-i", "--rm",
"-e", "OKTA_ORG_URL", "-e", "OKTA_CLIENT_ID",
"-e", "OKTA_SCOPES", "-e", "OKTA_PRIVATE_KEY",
"-e", "OKTA_KEY_ID", "okta-mcp-server"],
"env": {
"OKTA_ORG_URL": "https://YOUR_OKTA_DOMAIN",
"OKTA_CLIENT_ID": "YOUR_CLIENT_ID",
"OKTA_SCOPES": "okta.users.read okta.groups.read",
"OKTA_PRIVATE_KEY": "<PRIVATE_KEY_PEM>",
"OKTA_KEY_ID": "<KID>"
}
}
}
}
# 2. What the TOKEN carries. Client Credentials is the only flow that mints
# Okta-scoped tokens for a service app. iss == sub == client_id,
# aud == the full /token URL, exp at most one hour ahead.
curl --location --request POST 'https://YOUR_OKTA_DOMAIN/oauth2/v1/token' \
--header 'Accept: application/json' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'scope=okta.users.read' \
--data-urlencode 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
--data-urlencode 'client_assertion=<SIGNED_JWT>'
# Response: lifetime is fixed at one hour and the granted scopes echo back.
# {"token_type":"Bearer","expires_in":3600,
# "access_token":"<TOKEN>","scope":"okta.users.read"}
# 3. What the PRINCIPAL is. Neither of the above tells you. Check both:
# a) Admin Console > Settings > Account > Public client app admins
# ENABLED => granting scopes auto-assigns SUPER_ADMIN to the app.
# Okta's guidance: disable it once admin role assignment is in your
# workflow. Treat "enabled" as a finding, not a preference.
# b) The admin role actually bound to this service app, which is what
# constrains permissions and resources for least privilege.
#
# Reviewer's rule: OKTA_SCOPES narrows the menu, the grants collection
# narrows the token, and the admin role narrows the blast radius. Only the
# third one survives an attacker who can edit your container environment.
Doc-verified against the okta/okta-mcp-server README, the Okta MCP server concepts documentation and Okta's "Implement OAuth for Okta with a service app" guide, all fetched Nov 3, 2026. Placeholders only; not executed against a tenant.
# The instance-identity gap, in the vocabulary of
# draft-ietf-oauth-attestation-based-client-auth-12 (Oct 2026).
# Not supported by Okta today. Shown so you can name the control you lack.
# Client Attestation JWT β issued by the client attester, binds ONE instance
# key via cnf.jwk (payload, abbreviated from the draft's example):
{ "sub": "https://client.example.com", "iat": 1772487595,
"exp": 2529866394,
"cnf": { "jwk": { "kty": "EC", "crv": "P-256", "use": "sig",
"x": "<INSTANCE_PUBLIC_X>", "y": "<INSTANCE_PUBLIC_Y>" } } }
# Client Attestation PoP JWT β signed by the instance key above:
{ "typ": "oauth-client-attestation-pop+jwt", "alg": "ES256" }
{ "aud": "https://as.example.com",
"jti": "d25d00ab-552b-46fc-ae19-98f440f25064",
"iat": 1772487595, "challenge": "<AS_CHALLENGE>" }
# On the wire, both as header fields (names are case-insensitive):
OAuth-Client-Attestation: <ATTESTATION_JWT>
OAuth-Client-Attestation-PoP: <POP_JWT>
# Why an IAM architect should care: with private_key_jwt, 40 agent replicas
# are one principal. With this, each replica is distinguishable at the
# authorization server, and the attester never learns which audience the
# instance is talking to.
Doc-verified against draft-ietf-oauth-attestation-based-client-auth-12, fetched Nov 3, 2026; claim names and header fields are the draft's, values are placeholders. Illustrative β this flow is not available on Okta.
π§ Recall
A week ago the Okta Aerial pill ended on a specific asymmetry: the action happens in the managed org, and the evidence is written somewhere else. Name the org that holds the System Log events for Aerial API actions β and then say what the same question is for the MCP server you just read about, because the answer there is not an org at all.
Show answer
For Aerial it is the Aerial org β the single org you permanently designate to host the authorization server for all Aerial API actions, which also receives the System Log events for those actions, while the state change lands in the managed org. Evidence and action live in different tenants, so cross-org attribution is a SIEM join you have to build on timestamp and org id. For the MCP server the split is not geographic, it is semantic. The System Log entry is in the right org and is perfectly attributable β to the service app. What is missing is the layer above: the natural-language instruction that caused the call, which exists only in the MCP client's transcript, and the identity of the human who issued it, which Okta never receives because the client-credentials flow has no user. So Aerial loses attribution across a tenant boundary and the MCP server loses it across a trust boundary, and both failures look identical on the day of an incident: a complete log that cannot answer "who decided this". The generalizable control is the same in both cases β a correlation id minted outside the IdP, carried on every privileged call, and joined in the SIEM β and in the MCP case the only honest place to mint it is the agent session itself, which is why "pin the client" and "require a change-ticket id per session" are security requirements rather than operational hygiene.
πΌ Market Signal
The money is already pointed at this problem, and the practice around it is visibly immature β which is the gap a fractional architect gets paid to close. In Okta's Q2 fiscal 2027 results, Aug 2026, published 26 August 2026 for the quarter ended 31 July 2026, total revenue was $805 million, up 11% year over year, subscription revenue $793 million, up 12%, RPO $4.858 billion, up 17%, and cRPO $2.585 billion, up 14%, with GAAP net income of $116 million against $67 million a year earlier. CFO Brett Tighe attributed top-line growth in part to "strong contributions from our portfolio of new products, led by Okta Identity Governance" β governance, not authentication, is where the newer dollars are. CEO Todd McKinnon framed the quarter around agents needing a trusted identity and clear controls over what they can access and do, describing Okta's job as helping organizations discover agents, secure their connections, govern their actions, and respond when something goes wrong. Set that against the supply side: the okta/okta-mcp-server repository, Nov 2026 β the vendor's own GA tool for putting an LLM in front of the admin APIs β showed 76 stars and 66 forks when fetched for this pill, with 17 open issues and 31 open pull requests. That ratio is the market signal. A GA product on the identity control plane with a community that small means almost nobody has written the review this pill describes, there is no body of published threat models to copy, and the questions a CISO will ask in 2027 β which admin role is bound to the agent's service app, who rotates its key, which MCP client is pinned, where the prompt that caused the change is stored β currently have no standard answers. Being the person with a written answer, for an estate rather than a demo, is the engagement.
β‘ Action This Week
Ninety minutes, read-only, and it works whether or not anyone in your organization has deployed an MCP server yet. Step one, twenty minutes: list every OAuth 2.0 service app in your org that holds Okta-scoped grants β these are your existing non-human administrators, MCP or not β and for each one record four fields: client_id, the granted scopes, the admin role bound to the app, and who holds the private key. Step two, five minutes and the highest-value check in the exercise: look at Settings > Account > Public client app admins and write down whether it is enabled. If it is, every service app in that list is a super admin regardless of how modest its scope list looks, and that sentence is your executive summary. Step three, forty minutes: pick the one app with the broadest grants and write a one-page review with four rows β principal (key custody, rotation owner, and the fact that rotation after Okta-scoped grants requires a Super Admin), reach (scopes intersected with admin role, stated as the set of objects it can change, not as a scope string), human guardrail (for an MCP deployment: which client is pinned, and whether Elicitation confirmation is actually enforced or silently falling back), and evidence (the System Log query that would show its actions, and the correlation id you would need to tie those actions to a person). Step four, fifteen minutes: write the two-client split you would recommend β read-only reporting client versus change client β with the scope list for each. Done = a service-app inventory table, a one-line verdict on the Public client app admins setting, and a four-row review of your broadest non-human admin that states its reach as objects rather than scopes. Strip the client ids and the org name and the four-row review is a strong LinkedIn post: "we gave an LLM admin API access and here is the privilege review we ran first" is a template almost nobody has published, and it reads as judgment rather than enthusiasm.
Two robots.txt Dialects Now Say Whether You May Train On a Page β Same Three Categories, Incompatible Tokens, and a Parser That Returns "Unknown" Instead of an Error
π‘ Key Concept
Most RAG and crawling pipelines treat robots.txt as one bit: fetch or do not fetch. Two IETF drafts now split that bit in two, and the second half β what you may do with a page you were allowed to fetch β is the half your data-governance reviewer will ask about. draft-ietf-aipref-vocab-08, Sep 2026, published 14 September 2026 by Paul Keller (Open Future) and Martin Thomson (Mozilla) on the Standards Track, defines three categories of use with short labels: AI Training (train-ai), modifying the learned parameters of a generative model; AI Use (ai-use), using an asset as input to a generative model where the asset was not directly provided by the user β the category your RAG retrieval sits in; and Search (search), selecting assets and directing users to them, which the draft defines to exclude generating summaries and which explicitly overrides the other two categories when allowed. Each label takes a value of y or n, and anything else β absent key, wrong type, unparseable dictionary β resolves to a third state the spec names explicitly: unknown.
The companion draft says where those strings live. draft-ietf-aipref-attach-05, Aug 2026, dated 19 August 2026 by Gary Illyes (Google) and Martin Thomson, defines two attachment points β a Content-Usage HTTP response header field and a Content-Usage rule inside robots.txt β and formally updates RFC 9309, the Robots Exclusion Protocol, if approved. The architecture it describes is the useful part: a deliberate two-stage arrangement where "acquisition relies on Allow/Disallow rules" and "usage preference relies on Content-Usage rules". Content-Usage rules use the same longest-matching-path-prefix logic as Allow and Disallow, rule ordering inside a group carries no semantics, and preferences apply only to resources that may be crawled β for a disallowed path, no usage preference is implied at all. The header is representation metadata, so it describes the content of that one message rather than the resource; and when two Content-Usage rules give the same path conflicting preferences, the vocabulary's combining rule applies, meaning the most restrictive wins. That is the opposite of the Allow/Disallow conflict rule, where a tie resolves to the more permissive option. Two conflict rules in one file, pointing in opposite directions.
Two things keep this from being a clean standards story. First, status: both documents are working-group drafts with an IESG state of "I-D Exists" and a working-group milestone dated August 2026 that has passed without an RFC; vocab-08 still carries a note to readers stating that its contents do not reflect working-group consensus, and marks the data model and vocabulary sections individually as not yet having consensus. Second, and more consequential for anyone writing a parser this quarter, there is already a different dialect in production. Cloudflare's Content Signals, Nov 2026 uses the directive name Content-Signal, the labels ai-train, search and ai-input, and the values yes and no. The semantics line up almost exactly with the IETF categories β Cloudflare's ai-input is defined as inputting content into a model, giving retrieval-augmented generation and grounding as the examples, which is AIPREF's ai-use β and not one token is the same. Same three concepts, two spellings, zero overlap.
π¬ Deep Dive
Practitioner trap: every failure mode in this stack is silent, and three of them will bite a careful implementer. First, a conformant parser reads the production dialect as nothing at all. The vocabulary states that unknown labels and unknown parameters MUST be ignored when turning a parsed dictionary into preferences, so a line reading Content-Signal: ai-train=no, search=yes, ai-input=no β a directive name AIPREF does not define, carrying labels AIPREF does not define β yields unknown for all three categories rather than an error. Your pipeline logs nothing and your corpus silently inherits your default. Second, type errors degrade to unknown, not to safety. Preferences are a Structured Fields dictionary whose values must be the tokens y or n: the draft's own example, train-ai=y, train-ai, search=n, search="n", resolves to all preferences unknown, because a bare key is a boolean, a quoted "n" is a string, and duplicate keys mean only the last value applies. An uppercase key fails the dictionary parse outright, and a failed parse means unknown for everything β so a publisher who writes Content-Usage: Train-AI=n has expressed a restriction that disappears without a diagnostic on either side. Third, robots.txt is cacheable for up to 24 hours, as attach-05 notes while pointing at RFC 9309's caching semantics, which means a publisher's change of mind may be invisible to your fetcher for a day. That is not a latency problem, it is an evidence problem: the preference you recorded was a legitimate read of a stale file, and only a stored snapshot plus fetch timestamp lets you prove it later.
Staff-level framing: treat this as a data-governance control that lives in the ingestion pipeline, and make four decisions explicitly, in writing, with an owner. Enforcement point: record the preference at acquisition β alongside each document store the raw Content-Usage or Content-Signal string, the source (header or robots.txt), the matched path pattern and the fetch timestamp β then filter at use time, per use case, because the same document can be allowed as a search result and disallowed as training data. A pipeline that collapses this into a single boolean at crawl time cannot answer "was this document permitted as RAG input in March", which is precisely the question that arrives from a customer, a regulator or opposing counsel. Defaults are policy: the vocabulary deliberately takes no position on what to do with unknown, and since unknown will be the answer for the overwhelming majority of the web, your default assignment is your AI-use policy and needs a named signatory, not a constant in a crawler config. Blast radius: that default is applied across the whole corpus by one line of code, and flipping it retroactively relabels everything β which is the argument for storing preferences as an append-only history per document version rather than a mutable column. Interoperability: parse both dialects, normalize into one internal enum, and never discard the original strings; the normalization table is the artifact that will be reviewed, and it should state its own ambiguity β mapping Cloudflare's ai-input=no onto AIPREF's ai-use=n is a judgement call you are making on the publisher's behalf, and it belongs in a document, not in a regex. The mirror image of this problem is today's IAM pill: there, every call hits a real enforcement point and the missing artifact is the record of intent; here the intent is published in machine-readable form and there is no enforcement point anywhere in the stack.
The honesty clause in these specs is the part a Staff engineer should quote in a design review, because it sets the altitude of the whole conversation. Vocab-08 states that it does not ensure preferences are followed, does not address if, how or when they should be followed, and does not address the technical, legal or contractual mechanisms that might create a stronger requirement β an entity receiving usage preferences simply has a choice. Cloudflare's own Content Signals page says the same thing in plainer language: robots.txt files express preferences, do not prevent crawler operators from taking content at a technical level, some operators may disregard them, and courts and regulators may conclude that they impose no enforceable legal obligation. So the engineering value of AIPREF is not compliance enforcement, it is provenance: a dated, machine-readable, per-document record of what the publisher asked for and what you did about it. That record is cheap to build during ingestion and effectively impossible to reconstruct afterwards, which makes "we store the preference with the document" one of those decisions that costs a day now and a quarter later.
# ---------------------------------------------------------------------------
# The same intent, expressed three ways, as your fetcher will actually see it.
# Syntax follows draft-ietf-aipref-attach-05, draft-ietf-aipref-vocab-08 and
# Cloudflare's Content Signals. Publisher intent below: search allowed,
# training refused, RAG/grounding refused.
# ---------------------------------------------------------------------------
# A) IETF AIPREF, in robots.txt. Two stages: Allow/Disallow = acquisition,
# Content-Usage = usage. Longest path prefix wins; order is irrelevant.
User-Agent: *
Allow: /
Disallow: /internal/
Content-Usage: train-ai=n, ai-use=n, search=y
Content-Usage: /blog/ train-ai=n, ai-use=y, search=y
# /internal/ is disallowed, so NO usage preference is implied for it.
# Identical paths with conflicting values => most restrictive wins,
# the opposite of the Allow/Disallow tie-break.
# B) IETF AIPREF, per response. Representation metadata: it describes THIS
# message's content, not the resource.
HTTP/1.1 200 OK
Content-Type: text/html
Content-Usage: train-ai=n, ai-use=n, search=y
# C) Cloudflare Content Signals, the dialect already deployed at scale.
User-Agent: *
Content-Signal: ai-train=no, search=yes, ai-input=no
Allow: /
# Normalization table your ingester needs (and should keep reviewable):
# AIPREF train-ai <-> Content-Signal ai-train (train the model)
# AIPREF ai-use <-> Content-Signal ai-input (RAG / grounding)
# AIPREF search <-> Content-Signal search (index + link out)
# values: y|n <-> yes|no absent => UNKNOWN, not "allowed"
# Failure modes that produce UNKNOWN and never an error:
Content-Usage: Train-AI=n # uppercase => dictionary parse fails
# => ALL categories unknown
Content-Usage: train-ai=y, train-ai, search=n, search="n"
# bare key = boolean, "n" = string,
# duplicate key = last wins
# => ALL categories unknown
Content-Signal: ai-train=no # unknown label to an AIPREF parser
# => MUST be ignored, silently
Doc-verified against draft-ietf-aipref-vocab-08, draft-ietf-aipref-attach-05 and contentsignals.org, all fetched Nov 3, 2026. The robots.txt and header shapes are the drafts' own; the multi-rule example is composed, not quoted.
π§ Recall
A week ago the grounded-extraction pill made a point about vendors shipping the same feature with incompatible geometries. Reproduce the one concrete convention it opened with: what exactly does Gemini's box_2d contain, in what order and on what scale β and why does getting that wrong look like a model quality problem rather than a parsing bug?
Show answer
box_2d is [ymin, xmin, ymax, xmax], normalized to 0β1000 β y before x, integers, on a thousand-unit scale, and the documentation tells you to descale those coordinates against your original image size. The REST schema constrains it no further than an array of integers, so swapping the axes produces a perfectly valid payload and a box in the wrong place. It looks like a quality problem because the extracted value is still correct: the invoice total reads 41,280, the field name is right, the confidence is high, and the only thing that is wrong is the rectangle a human reviewer clicks to verify it. Reviewers conclude the grounding is unreliable and stop trusting it, which quietly removes the audit property the feature existed to provide. The parallel with today's pill is exact and worth keeping: in both cases the data is syntactically valid, no error is raised, and the defect only becomes visible to the person who has to defend the pipeline β a transposed bounding box destroys provenance for the extraction, and a dialect your parser ignores destroys provenance for the ingestion. Both are fixed by storing the raw source artifact alongside the normalized value, so the disagreement can be found later rather than inferred from distrust.
πΌ Market Signal
The demand here is measurable, and it is lopsided in a way that tells you exactly which category to engineer for. In Cloudflare's "Have it both ways" post, Sep 2026, published 15 September 2026, Cloudflare reports that fewer than 1% of its sites choose to block Search bots while 17% enable some mechanism to block training β publishers overwhelmingly want to be found and a material minority refuse to be trained on, which is precisely the distinction the AIPREF categories encode and the distinction a single crawl/no-crawl bit cannot. The same post announces a Disallow AI Training setting aimed at mixed-use crawlers that serve both search and training, and states that Apple, Google and Microsoft honor it or have committed to honoring it within a specified time frame. Scale comes from the earlier announcement: Cloudflare's Content Signals Policy launch, Sep 2025, dated 24 September 2025, says customers had already turned on managed robots.txt for over 3.8 million domains, and that Cloudflare would update those files to carry Content-Signal: search=yes, ai-train=no β deliberately leaving ai-input blank rather than guessing. So the dialect that an AIPREF-only parser ignores is the one sitting on millions of domains, and the category Cloudflare declined to answer for its customers, ai-input, is the exact category that governs RAG. For a Staff-level AI engineer this is the most sellable kind of work: it is not a model problem, it needs no GPU budget, it produces a document a legal team can read, and it is required by the same EU AI Act and data-governance reviews that are already on 2027 roadmaps. Very few AI platform teams can currently answer "which of your retrieval corpus asserted a preference, and what did you do with the ones that said no" β being the engineer who can is a differentiator in both IAM-adjacent governance roles and AI platform roles.
β‘ Action This Week
Ninety minutes, read-only, no pipeline changes. Take the twenty domains that contribute the most documents to a retrieval corpus you own β docs sites, partner portals, news sources, your own marketing site. For each, fetch /robots.txt and the response headers of one representative content URL, and record four fields in a table: any Content-Usage line, any Content-Signal line, the Content-Usage response header if present, and the fetch timestamp. Then compute three numbers: how many of the twenty assert a training preference, how many assert anything about AI input or AI use (this will be the small number, and it is the interesting one), and how many say nothing at all β your unknown bucket. Write the normalization table from the code block above and mark each mapping as exact or judgement. Finish with the two sentences that make this a decision rather than a survey: what your pipeline does today with unknown, and what it should do, with a named owner for that default. Done = a twenty-row table of fetched preferences with timestamps, three counts, a reviewed normalization table, and a one-paragraph default-for-unknown policy naming its owner. This travels well as a portfolio artifact: publish the counts and the normalization table without the domain list, and you have a post about measuring the preference layer of the open web rather than opining about it β and it doubles as the opening evidence section of an AI data-governance review you can reuse per client.
Okta Aerial Issues One Token That Can Reconfigure Every Org You Own β and Writes the Evidence Into a Different Org Than the One That Changed
π‘ Key Concept
Almost every Okta design conversation happens inside one org. The estate that pays for a fractional architect usually does not look like that: an acquisition that came with its own tenant, a regional subsidiary that will not consolidate, a preview org per business unit, a sandbox estate for load testing. Until recently there was no Okta-native layer above those orgs β cross-org work meant your own Terraform, a spreadsheet of super admin accounts, and a per-org onboarding ritual. Okta Aerial, Oct 2026 is that layer: a centralized administration service that manages several orgs from one account. Per the Okta Aerial release notes, Oct 2026, the Aerial Console arrived in release 2025.03.0 and Aerial reached general availability with a preview date of "November 4, 2025" and a production date of "November 10, 2025".
The hierarchy has three levels and it is worth getting the vocabulary exact, because two of the names sound like the same thing. The Aerial account is the management layer; it "sits outside your orgs" and can manage any production or preview org linked to it. The Aerial org is one org you permanently designate to host the "authorization server for all Aerial API actions" β and, separately, to hold the System Log events for those actions. The managed orgs are everything else. Authorization is ordinary Okta machine-to-machine: a super admin in the Aerial org registers an API Services app with Public key/Private key client authentication, and per the Okta "Manage orgs with Okta Aerial" guide, Oct 2026 the client posts grant_type=client_credentials with client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer to https://${aerialOrgDomain}/oauth2/v1/token. DPoP is supported but optional. There are exactly two scopes: okta.accounts.read and okta.accounts.manage, the latter documented as granting "full access to Aerial operations".
Read those two scope names again and notice what is missing from them. They name an operation class. They do not name an org. Nothing in an Aerial access token says which managed orgs it may touch, and there is no documented per-org scoping on the token β so a single client in the Aerial org is, in practice, an estate-wide principal. That is a different security object from anything inside an org, where you have realms, resource sets, custom admin roles and app-level policy to narrow an administrator down. Here the narrowing mechanism is not an Okta policy at all: it is your custody of one private key and the change process wrapped around one service app. Add the logging asymmetry β the action changes a managed org, the System Log entry lands in the Aerial org β and you have a control plane whose blast radius and whose audit trail both live outside the thing being protected. That is the architectural fact to put in the first paragraph of any design document about this product.
π¬ Deep Dive
Practitioner trap: three places the API does something a reasonable engineer would not predict. First, product enablement is a full replacement, not a patch. The guide's PUT .../orgs/{orgId}/products takes an array of product objects, and states plainly that any previously enabled product omitted from the array is disabled. A helper function called enable_product(org, "P000052") that PUTs a one-element array will silently turn off every other product in that org β and the call returns success. This is the single most dangerous shape in the API and it is one line of code away from a self-inflicted outage across an estate loop. Second, the bootstrap credential is invisible and mortal. The Org creator API returns, with each new child org, an API token tied to the super admin; the guide says that token "doesn't appear in the Admin Console", that "it's deactivated if the super admin is deactivated", and that if it is lost or expires you must create a new one as a super admin. So your automation's root credential for a new org cannot be inventoried from the console and dies on an offboarding ticket. Third, concurrency is capped low: each Aerial account is limited to 10 concurrent requests per environment, and requests beyond that return HTTP 429. Iterating 200 orgs is a backoff-and-queue design, not a for loop, and raising the cap means a request to Okta Support.
Staff-level framing: write this up as a control-plane review, not a feature evaluation, and give each line an owner. Blast radius: the unit of compromise is one private key held by one API Services app in one org, and the reachable surface is every org linked to the Aerial account β so key custody, JWKS rotation and the approval path for okta.accounts.manage are the actual controls, and a read-only client holding okta.accounts.read should be the default for anything that reports rather than changes. Audit trail: the Aerial org holds the System Log for Aerial actions, which means your SIEM needs a feed from an org that carries almost no human traffic, and any cross-org investigation is a join between that log and the managed org's own log, correlated on time and org id rather than on a shared event. Budget for the join; nobody does, and it is discovered during the first incident. Cost and availability in one call:PUT .../orgs/{orgId}/status with INACTIVE deactivates an org, which the guide notes means it does not count toward billing and its users cannot sign in β a single request with both a finance consequence and a total-outage consequence, which is the textbook definition of a change that needs two-person review. Rollout: access requires the Platform - Multi-org Deployment or Sandbox - Preview product and is arranged through the Okta account team, so the commercial conversation precedes the technical one by weeks.
There is a human path and a machine path, and only one of them has a just-in-time story. Per the Okta Aerial admin help documentation, Oct 2026, the Aerial Console lists associated and managed orgs with each org's status, cell and domain, distinguishes Aerial owners from invited Aerial admins, and offers "Time-bound authentication through Access Requests" β admins define access request conditions that let Aerial owners request time-limited sign-in to a managed org. That is a genuine zero-standing-privilege path for interactive cross-org administration. The API client has no equivalent: it holds its scope continuously. If you wire up automation first and never revisit it, you will have built permanent estate-wide privilege sitting directly beside a product feature that offers the time-bound alternative to humans β an inconsistency that reads badly in an audit precisely because the better answer was already in the box.
Place Aerial correctly against the two cross-org mechanisms you probably already run, because they solve different problems and get conflated in design reviews. Realms partition administration inside a single org. Org2Org federates authentication between orgs. Aerial administers the orgs themselves β adding them to an account, activating and deactivating them, enabling products, viewing subscriptions. Nothing about Aerial changes who can sign in to what; it changes what orgs exist and what they are licensed for. One naming detail worth grepping your Terraform for: a release note on the same page records that the default authorization server can no longer be renamed to "aerial", so the word is now effectively reserved, and a convention script that templates authorization server names from a tenant label will fail in exactly one environment.
The environment split deserves a line in the runbook because the two base URLs are not interchangeable and the docs say so. Sandbox is https://aerial-sandbox.okta.com, connects only to OP3 cells, and is intended for scale and repetitive testing; production is https://aerial-apac.okta.com, connects to okta.com and okta.preview.com, and a preview org must be linked to the production instance. A preview org is therefore managed from the production Aerial endpoint β which means "we only touch preview from the sandbox control plane" is not a statement the product supports, and any separation-of-environments claim built on that assumption is wrong.
# ---------------------------------------------------------------------------
# Okta Aerial: the four calls that matter, with the two that can ruin a day
# marked. Paths, parameters and semantics are quoted from Okta's "Manage orgs
# with Okta Aerial" guide and the Aerial API overview. Placeholders only;
# nothing below was executed against any tenant.
# ---------------------------------------------------------------------------
AERIAL=https://aerial-sandbox.okta.com # prod: https://aerial-apac.okta.com
ACCOUNT=YOUR_AERIAL_ACCOUNT_ID
ORG=YOUR_MANAGED_ORG_ID
# 1. Token, from the AERIAL ORG's authorization server (not a managed org).
curl -X POST "https://YOUR_AERIAL_ORG_DOMAIN/oauth2/v1/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "scope=okta.accounts.read" \
-d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
-d "client_assertion=<SIGNED_JWT>"
# Scopes available: okta.accounts.read | okta.accounts.manage
# "okta.accounts.manage -- Grants full access to Aerial operations"
# Neither scope names an org. Read-only is the correct default.
# 2. Link an org to the Aerial account.
curl -X POST "$AERIAL/$ACCOUNT/api/v1/orgs" \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '{"domain":"https://subsidiary.okta.com","cell":"YOUR_CELL"}'
# -> response "id" is the orgId used by every later call.
# 3. DANGER: product enablement is a REPLACE, not a patch. --------------------
curl -X PUT "$AERIAL/$ACCOUNT/api/v1/orgs/$ORG/products" \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '[{"id":"P000052"}]'
# ^^^^^^^^^^^^^^^^^ this is the COMPLETE desired state for the org.
# Guide: any previously enabled product omitted from the array is disabled.
# So the safe shape is always read-modify-write, never write:
# GET .../orgs/$ORG/products -> current list
# merge the new id into that list
# PUT .../orgs/$ORG/products -> full list, including what was there
# A one-element PUT returns 200 and quietly strips the org's other products.
# 4. DANGER: one call, a billing change AND a sign-in outage. ----------------
curl -X PUT "$AERIAL/$ACCOUNT/api/v1/orgs/$ORG/status" \
-H "Authorization: Bearer <TOKEN>" -H "Content-Type: application/json" \
-d '{"status":"INACTIVE"}'
# Deactivated orgs do not count toward billing and their users cannot sign in.
# Two-person review belongs on this endpoint, in your pipeline, not in Okta.
# ---- Rate limiting is a design constraint, not an edge case ---------------
# 10 concurrent requests per Aerial account per environment; HTTP 429 beyond.
# Estate-wide jobs need a bounded worker pool + backoff. Higher limits are a
# support request, so the queue has to exist before the request is granted.
# ---- Bootstrap credential, for the risk register --------------------------
# Org creator API returns a super-admin-bound API token per new child org.
# - used with the SSWS scheme against the new org's /api/v1/*
# - "doesn't appear in the Admin Console" -> not inventoriable there
# - "deactivated if the super admin is deactivated" -> dies on offboarding
# - lost or expired = create a new one as a super admin
# Put it in the vault at creation time or you will not find it later.
Doc-verified against Okta's "Manage orgs with Okta Aerial" guide, the Okta Aerial API overview, the Okta Aerial release notes and the Okta Aerial admin help documentation, all fetched Oct 27, 2026, for the account/org hierarchy, the two scope names and the "full access" wording, the token endpoint and grant parameters, the /orgs, /orgs/{orgId}/products and /orgs/{orgId}/status paths and their replace/deactivation semantics, the 10-concurrent-request limit and HTTP 429, the sandbox and production base URLs, and the super-admin-bound API token caveats. The curl calls are syntax-checked, use placeholders only, and were not executed.
π§ Recall
Five days ago the pill on agent-to-agent connections ended on a distinction: RFC 8693 Β§4.1 makes a nested act chain a signed record of who acted, while instructing the resource server to decide using only the top-level claims β evidence and enforcement are different artifacts with different owners. Aerial separates the same two things along a different axis. Name that axis precisely, and say what it costs you on the day of an incident.
Show answer
The nested act chain separates evidence from enforcement within one token: everything is present, and the spec tells you which part may drive a decision. Aerial separates them across orgs: the enforcement happens in the managed org β a product disabled, a status flipped to INACTIVE β while the evidence is written to the System Log of the Aerial org, which is not the org that changed and typically carries no other meaningful traffic. The incident-day cost comes in three forms. First, discovery fails by default: an analyst investigating "why did Org B lose a product on Tuesday" opens Org B's System Log, finds nothing attributable, and concludes a licensing error rather than an API call. Second, correlation is a join nobody wrote: you have to match an Aerial-org event to the state change in the managed org on timestamp and org id, with no shared event id to key on, and that join has to exist in the SIEM before you need it. Third, the identity in that event is the service app, not the engineer β so attribution stops at the client unless your pipeline attaches a change ticket to every call. The general rule this and the act chain share: whenever a product moves evidence to a different place than the action, the gap between them is an engineering deliverable, and leaving it unbuilt converts a complete audit trail into an unused one.
πΌ Market Signal
The demand side is structural rather than cyclical, which is the kind that pays for architecture work. Okta's own launch post, "Discover the home for multi-org management via Okta Aerial", Nov 2025, published 14 November 2025, frames the problem as Global 2000 scale and cites two third-party figures: "over 90%" of Global 2000 companies are multinational conglomerates, and "two-fifths maintain between 11 and 50 subsidiaries". It names the operational shape directly β subsidiary orgs running in silos, each with its own policies, admin access and audit trails, a situation it describes as especially hard during M&A, where a single overlooked org or misconfigured admin role becomes a security blind spot. Note what the post does not contain: no customer counts, no adoption figures, no org counts. The supply side is young in a way you can date precisely from the Okta Aerial release notes, Oct 2026: consent granting in the Admin Console in 2025.02.0, the Aerial Console in 2025.03.0, org-status filtering in 2025.03.2, GA in November 2025, and a bug fix as recently as the December 2025 weekly release, where an API call failed to assign the Device Access product to an org with both SSO and MFA enabled. That is a control plane roughly a year past GA. Put the two sides together and the engagement writes itself, because the product ships the mechanism and nothing else: no estate-wide change process, no key custody standard for a credential that can reach every org, no SIEM routing for a log that lands in the wrong tenant, no throttle-aware automation for a 10-concurrent-request ceiling, no read-modify-write discipline on an endpoint that replaces rather than patches. "We enabled Aerial" is a procurement outcome. "Here is the org inventory, the two-scope split between our reporting and change clients, the approval path for okta.accounts.manage, the SIEM join that makes cross-org actions attributable, and the three endpoints we put behind two-person review" is a statement of work β and it is the kind of document that M&A-heavy US and EU enterprises buy before they buy anything else.
β‘ Action This Week
Ninety minutes, no tenant changes, and it works even if you have never been granted Aerial. Start with the inventory you probably do not have in one place: every Okta org your organization owns, with its type (production or preview), its business owner, and whether it arrived through an acquisition. If that list takes more than twenty minutes to assemble, you have just found the finding. Then write a one-page blast-radius memo for the Aerial API client, structured as four rows. Row one, principal: one API Services app, one private key, two possible scopes β state which of your automations genuinely need okta.accounts.manage and which can live on okta.accounts.read, and whether they are the same client today. Row two, reach: the count of orgs from your inventory, because that number is the blast radius and it should be written down rather than felt. Row three, the three dangerous endpoints: product replacement, org status, and org linking β for each, say whether your pipeline does read-modify-write, and who the second pair of eyes is. Row four, evidence: name the SIEM index that would receive the Aerial org's System Log, and write the join key you would use to connect an Aerial event to the resulting change in a managed org. Done = an org inventory table plus a four-row memo that states the blast radius as a number, marks each of the three endpoints as guarded or unguarded, and names the SIEM join. Strip the org names and the reach count and the memo is a strong LinkedIn post, because the multi-org control plane is new enough that almost nobody has published a threat model for it, and "here is what one token reaches in an estate like ours" is a far more useful artifact than another product walkthrough.
Every Document-AI Vendor Ships Bounding Boxes Now β Three Incompatible Geometries, and a Correct Answer Still Doesn't Prove the Box Points At It
π‘ Key Concept
Document extraction is the AI workload most likely to be audited, and grounding β returning, with each extracted value, the region of the page it came from β is what makes it auditable. It is the feature that turns "the model says the invoice total is 41,280" into "the model says 41,280 and here is the rectangle on page 3 it read it from", which is the difference between a pipeline a controller will sign off on and one they will not. Over the last two years it has stopped being a differentiator and become table stakes: it is in general-purpose multimodal APIs, in dedicated OCR models, and in the document-AI products built on top of both. The architectural mistake is to conclude from that ubiquity that a standard exists. There is no shared contract β not for the geometry, not for the granularity, and most importantly not for what a box actually asserts.
Start with geometry, because it is concrete and because it is where silent bugs live. Google's Gemini image understanding documentation, Oct 2026 returns a box_2d field whose contents are, in the docs' own prompt wording, "[ymin, xmin, ymax, xmax] normalized to 0-1000" β y before x, integers, on a thousand-unit scale, with the instruction "You need to descale these coordinates based on your original image size." The REST schema constrains it only as far as "box_2d": { "type": "array", "items": { "type": "integer" } }. The VLM Run visual grounding documentation, Oct 2026 takes a different shape entirely: you set grounding to True in GenerationConfig, and each extracted field <field> gains a companion <field>_metadata object carrying a confidence of hi, med or low and a bboxes list, where each entry has an xywh array and a page. Every xywh value is between 0 and 1, x and y give the top-left corner, w and h give width and height β so a width of 1 means the full page width. A third family of engines reports plain pixel coordinates against the rendered page. Three conventions: axis order, scale, and corner-plus-size versus corner-plus-corner, all describing the same rectangle.
Now the part that actually decides whether your compliance story holds. A box is produced by the same model that produced the answer, and the two are not equally reliable. "Towards Reliable and Interpretable Document Question Answering via VLMs" (Chen, Giovannini, Gemelli, Coppini and Marinai, arXiv, Sep 2025, submitted 12 September 2025) exists precisely because of this: the authors introduce DocExplainerV0, a plug-and-play module that predicts bounding boxes separately from answer generation so it can be bolted onto existing VLMs including proprietary ones that cannot be fine-tuned, and they systematically evaluate the gap between textual accuracy and spatial grounding. Their finding, in their words, is that "correct answers often lack reliable localization". Read that as an engineering requirement rather than a research result. If you measure your pipeline with field-level accuracy alone and then tell an auditor that every value is traceable to its source region, you have shipped an unmeasured claim β the number you reported says nothing about the claim you made. Answer accuracy and localization accuracy are two metrics, and only one of them is usually on the dashboard.
π¬ Deep Dive
Practitioner trap: every geometry error in this space is silent, because a wrong rectangle is still a valid rectangle. The classic is axis order. Gemini's [ymin, xmin, ymax, xmax] read as [xmin, ymin, xmax, ymax] produces a box that is in-page, well-formed, and completely elsewhere β the executed snippet below transposes one realistic field box and measures an IoU of 0.0 against the correct one, with no exception, no warning and no API error anywhere in the path. The second is scale: 0-1000 integers, 0-1 floats and raw pixels are visually indistinguishable in a JSON blob until a value exceeds 1, so a float-expecting adapter fed Gemini output clips every box to the top-left corner of the page and an int-expecting adapter fed normalized output collapses every box to a point. The third is the render: "descale based on your original image size" means the raster the model actually received, so rasterizing a PDF at 200 DPI for inference and then drawing the overlay on a 72 DPI preview scales every box by a constant factor β the layout still looks structurally plausible, which is exactly why it survives review. The fourth is page indexing, where VLM Run's examples use page: 0 for the first page while most PDF tooling a reader will open counts from 1. None of these four fail loudly; all four are caught by three assertions in an adapter.
Staff-level framing: grounding is a provenance contract, and a contract needs a measured service level, an owner and a budget line. The claim: write down the sentence your organization intends to tell an auditor β usually "each extracted field links to the region of the source document it was read from" β and treat it as a testable assertion with a number attached, which means a labelled sample and a reported mean IoU alongside field accuracy, refreshed whenever the model version changes. The blast radius of a wrong box: it is worse than a wrong value, because a wrong value may be caught by a human reviewer while a wrong box actively misleads one β the reviewer sees a confident highlight, glances at it, and approves. Grounding that is not measured converts human review from a control into a rubber stamp, and that is a regression in assurance disguised as a feature. Routing: design the review queue around the granularity the vendor actually gives you, not the one you wish for β VLM Run's hi / med / low is three buckets, not a probability, so you can choose which buckets a human sees but you cannot tune a threshold, and a pipeline designed around a numeric cutoff will have to be redesigned. Ownership: the normalization adapter is shared infrastructure, not per-integration glue; one canonical internal box format with one adapter per vendor is a two-hour build that stops being optional the moment there is a second vendor or a fallback model.
Granularity differs as much as geometry, and it changes what a highlight means to the person looking at it. VLM Run attaches boxes per extracted field, and a single field can carry several boxes β their documentation notes that something like an invoice number "can typically be found on each page", so one field legitimately maps to a list of boxes across pages. Gemini emits a box per detected item in a schema-constrained response, which means the geometry is whatever the model writes into an integer array in response to your prompt. A third pattern, common in parse-then-extract products, grounds at parse time: chunks get ids and grounding objects, and extracted fields reference chunks. That last one is the quietest downgrade of the three, because the pipeline still returns a box for every field and the box is still correct β it just outlines the paragraph the value sits in rather than the value, so your auditor gets a highlighted block and still has to read it. Decide early which of those three your evidence story needs, because "one field has exactly one tight box" is a data model that none of them guarantees.
There is a structural point here that is worth stating in a design review, and it connects to today's IAM pill. Grounding is self-attested evidence: the component producing the claim also produces the proof of the claim, and nothing independent corroborates it. Today's Okta Aerial pill describes the opposite arrangement, where the platform records the action independently of the actor who performed it, so the record can be trusted against the actor. A bounding box has no such property, which is why "we return grounding" is not by itself an audit control, and why the measured localization rate β not the presence of the field β is the thing that belongs in the control description.
One practical note on model selection that the geometry discussion tends to bury: grounding quality is a per-model property and it does not move with general capability. The DocExplainerV0 approach exists because localization can be improved by a module bolted on outside the answering model, which is strong evidence that the two abilities are separable. Practically, that means an upgrade to a more capable general model is not automatically an upgrade to your overlays, and your localization metric needs to be in the regression suite that gates a model version bump β alongside accuracy, not folded into it.
# ---------------------------------------------------------------------------
# One canonical frame for three vendor geometries, plus the check that catches
# the error none of them will raise. Canonical box = (x0, y0, x1, y1) as
# fractions of page width/height, origin top-left, with a page index.
# ---------------------------------------------------------------------------
def from_gemini(box_2d, page=0):
"""Gemini: box_2d = [ymin, xmin, ymax, xmax], integers scaled to [0, 1000]."""
ymin, xmin, ymax, xmax = box_2d
return (xmin / 1000.0, ymin / 1000.0, xmax / 1000.0, ymax / 1000.0, page)
def from_vlmrun(xywh, page=0):
"""VLM Run: xywh normalized 0..1; x,y = top-left corner; w,h = width,height."""
x, y, w, h = xywh
return (x, y, x + w, y + h, page)
def from_pixels(box_px, page_w_px, page_h_px, page=0):
"""Pixel-unit engines: (x0, y0, x1, y1) in pixels OF THE RENDER YOU SENT.
Use the dimensions of the exact raster the model saw, not of a later
re-render at a different DPI -- that mistake scales every box uniformly
and the overlay still looks structurally correct."""
x0, y0, x1, y1 = box_px
return (x0 / page_w_px, y0 / page_h_px, x1 / page_w_px, y1 / page_h_px, page)
def iou(a, b):
if a[4] != b[4]: # different page -> no overlap
return 0.0
ix0, iy0 = max(a[0], b[0]), max(a[1], b[1])
ix1, iy1 = min(a[2], b[2]), min(a[3], b[3])
if ix1 <= ix0 or iy1 <= iy0:
return 0.0
inter = (ix1 - ix0) * (iy1 - iy0)
area_a = (a[2] - a[0]) * (a[3] - a[1])
area_b = (b[2] - b[0]) * (b[3] - b[1])
return inter / (area_a + area_b - inter)
# --- the transposition that no API will reject -----------------------------
g = [100, 250, 160, 700] # [ymin, xmin, ymax, xmax]
correct = from_gemini(g)
transposed = from_gemini([g[1], g[0], g[3], g[2]]) # read as [xmin, ymin, ...]
print("correct ", tuple(round(v, 3) for v in correct[:4]))
print("transposed ", tuple(round(v, 3) for v in transposed[:4]))
print("IoU ", round(iou(correct, transposed), 3))
# --- same field, two vendors, one frame ------------------------------------
v = from_vlmrun([0.25, 0.10, 0.45, 0.06])
p = from_pixels([425, 110, 1190, 176], 1700, 1100)
print("vlmrun ", tuple(round(x, 3) for x in v[:4]))
print("pixels ", tuple(round(x, 3) for x in p[:4]))
print("agree(IoU) ", round(iou(v, p), 3))
# EXECUTED OUTPUT (this session):
# correct (0.25, 0.1, 0.7, 0.16)
# transposed (0.1, 0.25, 0.16, 0.7)
# IoU 0.0 <-- zero overlap, zero errors, zero warnings
# vlmrun (0.25, 0.1, 0.7, 0.16)
# pixels (0.25, 0.1, 0.7, 0.16)
# agree(IoU) 1.0
#
# The transposed box is still in-page, still renders, still highlights
# something. A reviewer sees a confident highlight over the wrong region and
# approves the value. Nothing in the stack disagrees with them.
#
# Minimum viable guardrails, in order of cost:
# 1. Assert 0 <= x0 < x1 <= 1 and 0 <= y0 < y1 <= 1 after every adapter.
# 2. Assert the box is not pathologically thin or full-page (w*h sanity).
# 3. On a labelled sample, report answer accuracy and mean IoU SEPARATELY.
# One number cannot stand in for the other -- that is the whole finding
# of the DocExplainerV0 paper.
VALIDATED β this snippet was executed in full during the session that wrote this pill, on Python 3, and the printed values in the comment block are its real output, copied verbatim. The vendor conventions it adapts are doc-verified against Google's Gemini image understanding documentation (box_2d, [ymin, xmin, ymax, xmax], 0-1000, "descale β¦ based on your original image size") and the VLM Run visual grounding documentation (grounding in GenerationConfig, <field>_metadata, bboxes, xywh normalized 0-1 from the top-left corner, page, confidence of hi/med/low), both fetched Oct 27, 2026. The pixel-unit adapter is the generic third case and is not quoted from any one vendor.
π§ Recall
A week ago the pill on AP2 payment mandates covered evidence of a different kind: an SD-JWT mandate with key binding, where the holder cryptographically proves the artifact is theirs and the verifier can check it without trusting the presenter. A bounding box is also evidence. Say exactly what property the mandate has that the box lacks, and what that costs you when someone disputes an extracted value six months later.
Show answer
The mandate is verifiable; the box is merely asserted. With a key-bound SD-JWT, a third party who was not present at issuance can take the artifact, check the issuer signature and the holder's proof of possession, and reach a conclusion without trusting whoever handed it over β the evidence carries its own validation procedure. A bounding box carries none. It is four numbers emitted by the same model that produced the value, in a response nobody signed, against a rendering of a document that your pipeline chose and may not have retained. There is no procedure a disputing party can run on the box itself; it can only be checked by re-opening the source page and looking, which means the evidence is only as durable as your document retention and only as meaningful as your rasterization being reproducible. In a dispute six months later, that difference shows up as three concrete gaps. You must still hold the exact source artifact, because the box is meaningless without it. You must be able to reproduce the render, or a constant-factor DPI shift makes every stored box wrong. And you cannot prove the box was not altered in your own pipeline, so the integrity story falls back entirely on your logging and storage controls rather than on the artifact. The design conclusion is not that grounding is worthless β it is that grounding is an internal review aid that becomes an external evidence claim only when you wrap it in things it does not have: immutable storage of the source and the render parameters, a hash chain over the extraction output, and a measured localization rate that gives the claim a known error bar.
πΌ Market Signal
Provenance has a published unit price, and that is the clearest signal that it has moved from research feature to procurement line item. The Mistral OCR 3 model card, Oct 2026 β API version mistral-ocr-2512, listed as "GA Premier v25.12" with a release date of December 18, 2025 β prices plain OCR at "$2" per "/1000 Pages" and structured annotated output at "$3" per "/1000 Annotated Pages", with the feature list naming "OCR", "Annotations - Structured" and "Batching" against the /v1/ocr and /v1/batch endpoints. Two things follow. First, structured output carries a 50% premium over raw text on this card, so the decision to extract fields rather than dump text is a budget conversation with a real multiplier: on the card's published rates, an estate processing two million pages a year pays $4,000 at the plain tier and $6,000 at the annotated tier β that arithmetic is mine from their numbers, not a quoted figure, and it is small enough to make the honest point, which is that at these prices the cost of a document-AI programme is almost entirely the review queue and the integration, not the inference. Second, the same card states that "OCR 4 is available as the newer model" while OCR 3 "remains available for existing integrations and production workloads", which is a model line moving fast enough to have a supported-legacy tier less than a year after GA β the exact condition under which a localization regression slips in during a version bump. One honest caveat on this source: the card's visible content lists the annotation tier and its price but does not itself document bounding-box output, so treat the price as verified and the box schema as something to confirm against the API reference for whichever model you actually deploy. The consulting shape is the gap between those facts and the research position. Vendors sell grounding; the DocExplainerV0 paper, Sep 2025 says the field still needs a standardized framework for interpretable document information extraction and that correct answers often lack reliable localization. Nobody is selling the measurement. "We use a document AI with grounding" is a tool choice; "here is our canonical box format, our per-vendor adapters, our labelled localization set, our mean IoU by field type, and the version-bump gate that runs it" is a deliverable, and in regulated finance, insurance and healthcare work in the US and EU it is the one the risk function asks for.
β‘ Action This Week
Two hours, one document type, and you can do it against whichever extraction API you already have. Take twenty real pages of a single document type β invoices, statements, claim forms, whatever is in production or closest to it β and pick five fields that someone downstream acts on. Run them through your current pipeline with grounding enabled. Then do the part almost nobody does: open each page and hand-label the true region for those five fields, giving you a hundred ground-truth boxes. Write the adapter that converts your vendor's geometry into one canonical format, with assertions that the normalized box is inside the page and non-degenerate, and run the IoU from the snippet above over all hundred pairs. Report two numbers side by side β field accuracy and mean IoU, plus the count of fields the model got textually right while putting the box somewhere wrong. That last count is the whole point of the exercise and it is usually the first time anyone has looked at it. Twenty pages is not a benchmark and you should not present it as one; it is enough to tell you whether your grounding is trustworthy, broken, or unmeasured, which is a different question and the one you currently cannot answer. Done = a table with one row per field type holding accuracy, mean IoU and the right-answer-wrong-box count, plus a one-paragraph note on whether your audit claim survives those numbers. With the document content redacted and only the metric table shown, that is an unusually credible LinkedIn post, because the genre is saturated with extraction accuracy benchmarks and effectively empty of anyone reporting localization alongside them.
Okta Now Records Every Agent-to-Agent Hop in a Nested act Chain β and RFC 8693 Tells the Resource Server to Ignore Everything but the Last Link
π‘ Key Concept
One agent calling another is the point where most agent identity designs quietly stop working. Agent A has been given a clean, scoped, short-lived token. It then needs agent B to do a piece of the job, and the cheapest thing to do β the thing every prototype does β is hand B a service credential or an API key of its own. At that instant two facts disappear from the record: which human or system started the work, and which agent asked for this particular call. The resource at the end sees a service account, and your incident review sees a dead end. Okta's answer is Agent-to-Agent Connections, Sep 2026, announced as generally available and described as a control that "sets rules for which agents can call other agents, what each agent can access, and captures the handoff in an auditable chain."
The mechanism is a token exchange per hop, and it is worth reading at parameter level rather than as a diagram. Per the Okta "Set up AI agent-to-agent token exchange" guide, Oct 2026, the flow runs in seven steps and every hop costs two calls. First the agent exchanges the subject token it holds at the org authorization server β grant_type=urn:ietf:params:oauth:grant-type:token-exchange, requested_token_type=urn:ietf:params:oauth:token-type:id-jag, authenticated with a client_assertion JWT signed with the key from agent registration β and gets back an Identity Assertion JWT with expires_in of 300. Then it presents that assertion at the resource app's custom authorization server with grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer and receives an access token with expires_in of 3600. That access token is what it passes to the next agent, which repeats both steps. The subject token at the head of the chain is either a user's ID token from Authorization Code with PKCE β and "Okta accepts only ID tokens minted for the requesting agent" β or a Client Credentials token for machine access.
What accumulates across those hops is the interesting part. Each exchange wraps the previous actor: after one hop the token carries act.sub = agent 1 with sub_profile: "ai_agent" and act.act.sub = the initiating client with sub_profile: "service"; after the second hop there are three levels, agent 2 outermost and the initiator deepest. This is RFC 8693 Β§4.1, Jan 2020 working exactly as written: "A chain of delegation can be expressed by nesting one act claim within another", where "The outermost act claim represents the current actor while nested act claims represent prior actors" and "The least recent actor is the most deeply nested." Now read the next sentence of that same section, because it is the one that decides what you may claim in a control description: for access control "the consumer of a token MUST only consider the token's top-level claims and the party identified as the current actor", and "Prior actors identified by any nested act claims are informational only". The chain of custody is real, it is signed, and the specification instructs the thing at the end of it not to make decisions from it. It is evidence, not enforcement β and those are different artifacts with different owners.
π¬ Deep Dive
Practitioner trap: three assumptions the flow does not support. First, scope does not attenuate itself. In the guide's own worked example the same chat.read+chat.history scope string survives every exchange to the final token β nothing in the protocol narrows a chain as it lengthens. Attenuation is configuration: per the Okta "Connect AI agents to resources" help docs, Oct 2026, an agent-to-agent connection is configured per agent under Directory > AI Agents > Resource connections, and the scope setting offers Allow all, Only allow or Disallow, where "Allow all grants all available OAuth scopes". If nobody chooses, the broad option is the one that reads like a sensible default. Second, the short-lived artifact is not the one that travels. The ID-JAG lives 300 seconds; the access token minted from it lives 3600 and is precisely the object handed to the next agent. Reasoning about chain lifetime from the assertion's five minutes is off by an order of magnitude. Third, two fields answer "who is this for" and they are not the same: audience is the issuer URL of the resource app's authorization server, while resource is the next agent's resource URL. Swapping them produces an exchange that fails in a way that looks like a policy problem and is not.
Staff-level framing: treat this as a provisioning programme with a cost curve, not a feature flag. Prerequisites, honestly listed: an org subscribed to Okta for AI Agents, custom scopes defined in a custom authorization server for each resource app, both agents registered with signing keys, and a resource connection on each β so the unit of work is per agent pair, and it grows combinatorially with fleet size unless someone owns a topology. Cost and latency: two token calls per hop means a three-agent chain performs four exchanges before the resource is touched, and Forrester expects Okta's agent IAM to be priced per transaction rather than per monthly active user. Chain depth therefore becomes a line item and a p99 contributor at the same time β a rare case where the architecture review and the finance review are looking at the same number. Blast radius and revocation: deactivating or removing a connection "causes Okta to deny all future access requests from the agent to that resource", which is a clean statement about future requests and says nothing about the hour-long token already in flight; the custom authorization server issues standard Okta access tokens, so revocation is available but is a separate deliberate act. Write the runbook with both steps in it. Audit trail: this is the real prize, and it needs engineering. Your SIEM queries must pivot on act.act.sub and deeper, not on sub, or every multi-hop incident will attribute itself to the last agent in the chain.
The gap between evidence and enforcement is where a fractional architect earns the engagement. If your security requirement is "agent 2 may touch the payroll API only when the chain was initiated by the HR workflow, never when it was initiated by the support bot", RFC 8693 Β§4.1 says the generic resource server will not do that for you β it is told to decide on top-level claims and the current actor. Someone has to write that rule, and the natural homes for it are the token inline hook that mints the final access token, a policy check inside the resource server that deliberately opts in to reading the nested chain, or a runtime proxy. Each of those is a design decision with an owner, and none of them appears in a product demo. The spec does give you the vocabulary for the other half of the question β Β§4.4's may_act claim "makes a statement that one party is authorized to become the actor and act on behalf of another party" β and the product's answer to that question is the delegation link plus the resource connection in the admin console rather than a claim in the token. Mapping spec vocabulary onto product vocabulary like this is most of what a credible design document does.
Two operational details that only surface once you build it. The guide shows the resource parameter present on the first hop's exchange and absent on the second, where the delegation link already establishes the pairing β so your client library cannot assume one request shape for all hops. And when a delegation link exists, the admin UI auto-populates the authorization server and the audience/resource URL for the connection; when it does not, an operator types a URL by hand, which is exactly the kind of field that is wrong in one environment out of three and produces an audience mismatch nobody can explain on a Friday.
Worth reading beside today's AI pill, because it is the same move with the opposite enforcement semantics. Both carry the real principal across a trust boundary that would otherwise flatten it. Okta's nested act chain is explicitly informational for access control; Anthropic's anthropic-user-profile-id header is the thing enforcement actually attaches to. When you design identity propagation, the first question is not "can I carry the identity" but "does anything at the far end act on it".
# ---------------------------------------------------------------------------
# One hop of an Okta agent-to-agent chain. Parameter names, token types and
# claim shapes are quoted from Okta's "Set up AI agent-to-agent token
# exchange" guide. Placeholders only; nothing here was executed.
# ---------------------------------------------------------------------------
# Hop N, call 1 of 2 -- subject token -> ID-JAG, at the ORG auth server.
curl -X POST "https://YOUR_OKTA_DOMAIN/oauth2/v1/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=urn:ietf:params:oauth:grant-type:token-exchange" \
-d "subject_token=<T1>" \
-d "subject_token_type=urn:ietf:params:oauth:token-type:id_token" \
-d "requested_token_type=urn:ietf:params:oauth:token-type:id-jag" \
-d "audience=https://YOUR_OKTA_DOMAIN/oauth2/AUTH_SERVER_ID" \
-d "resource=https://agent2.example.com" \
-d "scope=chat.read+chat.history" \
-d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
-d "client_assertion=<SIGNED_JWT>"
# -> token_type "Bearer", expires_in 300, Cache-Control: no-store,
# issued_token_type "urn:ietf:params:oauth:token-type:id-jag"
# NOTE: audience = the AUTH SERVER's issuer URL.
# resource = the NEXT AGENT's URL. Two different questions.
# Hop N, call 2 of 2 -- ID-JAG -> access token, at the RESOURCE APP's
# custom auth server. This is the token that is handed onward.
curl -X POST "https://YOUR_OKTA_DOMAIN/oauth2/AUTH_SERVER_ID/v1/token" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer" \
-d "assertion=<ID_JAG>" \
-d "client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer" \
-d "client_assertion=<SIGNED_JWT>"
# -> expires_in 3600 <-- the long-lived artifact is the one that travels.
# After two hops the chain is three deep (claim shape from the guide):
# {
# "sub": "...", "aud": "https://finalresource.example.com",
# "scope": "chat.read+chat.history",
# "act": {
# "sub": "{agent2ClientId}", "sub_profile": "ai_agent",
# "act": {
# "sub": "{agent1ClientId}", "sub_profile": "ai_agent",
# "act": { "sub": "{initiatingClientId}", "sub_profile": "service" }
# }
# }
# }
#
# RFC 8693 4.1, for the control description you will actually write:
# outermost act = current actor -> decisions MAY use it
# nested act = prior actors -> "informational only"
# "the consumer of a token MUST only consider the token's top-level
# claims and the party identified as the current actor"
#
# So: chain-aware authorization is YOUR code (token inline hook, resource
# server opt-in, or runtime proxy). The chain alone is audit evidence.
# ---- Where attenuation actually happens (admin, not protocol) ------------
# Directory > AI Agents > {agent} > Resource connections
# > Add resource connection > "Connect to another AI agent"
# - Authorization server + Audience/resource URL
# (auto-populated when a delegation link already exists)
# - Scopes: Allow all | Only allow | Disallow
# "Allow all grants all available OAuth scopes." <-- pick deliberately
# Deactivate/Remove connection: Okta "denies all future access requests"
# -- it does NOT kill the 3600s token already issued. Revoke separately.
Doc-verified against Okta's "Set up AI agent-to-agent token exchange" developer guide and the "Connect AI agents to resources" help documentation, fetched Oct 22, 2026, for the seven-step flow, the grant types and token types, the expires_in values of 300 and 3600, the nested act claim shape with sub_profile, the admin console path and the three scope settings; normative quotes are from RFC 8693 Β§4.1 and Β§4.4. The curl calls are syntax-checked, use placeholders only, and were not executed against any tenant.
π§ Recall
A week ago the pill on unified identity for AI agents established that Okta collapses duplicate agent records using an externalId and platform value that providers are not obliged to fill in. Today every hop of a delegation chain names an agent by its client id. Explain precisely what a duplicate agent record does to the chain β and why the damage shows up in the audit review rather than at the moment of the call.
Show answer
Nothing fails at call time, which is the problem. Two records for one running agent are two principals: two sets of signing keys, two sets of resource connections, two scope configurations. Whichever principal performs the exchange is the one that appears in act.sub, so the same physical agent can appear in two chains as two unrelated actors, each perfectly valid and perfectly signed. The call succeeds; the attribution is what splits. That has three consequences worth naming in a design review. Queries break quietly: "show me every chain that passed through the invoicing agent" misses half the traffic, and the miss is invisible because the result set looks plausible. Least privilege erodes asymmetrically: the agent's effective permission is the union of both records' connections, while every review looks at one of them. And containment fails at the worst moment β deactivating the connection on record A leaves record B serving, so an incident responder watches denials appear in the log while the behaviour continues. The general rule: a delegation chain inherits the trustworthiness of the identity resolution underneath it, and a chain of custody over ambiguous identities is a chain of custody over nothing. Deduplicate first, then build chain-aware policy on top.
πΌ Market Signal
The feature is shipped and the governance layer around it is openly unfinished, which is the exact shape of a consulting market. On the shipped side, the Okta press release, Sep 2026, dated 22 September 2026, lists Agent-to-Agent Connections and Resource Access Certifications as generally available now, with a Configuration Designer that "visually maps agent-to-resource connections" and a Kill Switch expansion to Agent Gateway that can "revoke every active token held by a compromised agent and shut down every session in flight" both still on the roadmap β and the release carries the usual caveat that items not yet generally available "may not be delivered on time or at all". On the unfinished side, Forrester analysts Andras Cser and Geoff Cairns, writing in their Oktane 2026 recap, Oct 2026 of 1 October 2026, name four open items with unusual directness: Okta has no full SPIFFE-based agent identity implementation today, with SPIFFE-based authentication on the roadmap for Q4 2026 while Aembit and Teleport already ship one; no disclosed plan for a universal know-your-agent framework; an unclear story on reusing its existing fine-grained authorization for agents; and unresolved pricing, which they expect to land on a transaction basis rather than the monthly-active-user model of human IAM. They also flag the Auth0 and Okta split β different session and agent management on the customer and workforce sides β as a cost borne by enterprises building unified human and non-human identity. Read those together and the positioning writes itself. The platform now emits delegation evidence that almost nobody is consuming; the authorization rules that would use it are nobody's product; and the pricing model is likely to make chain depth expensive before most teams have measured theirs. "We enabled agent-to-agent connections" is a configuration task. "Here is our agent call topology, the scope setting on every connection, the three places chain-aware policy could live with a recommendation, and the per-transaction cost of our deepest chain" is a statement of work in regulated US and EU accounts.
β‘ Action This Week
Ninety minutes, one real workflow, no tenant changes required for most of it. Pick a single agent-to-agent interaction you already run β or intend to run this quarter β and draw its call topology as an ordered list of hops, not a cloud. For each hop write four things: the agent pair, the scope setting the connection would carry (Allow all, Only allow with the explicit scope list, or Disallow), the number of token exchanges that hop costs, and the lifetime of the artifact actually handed onward. Total the exchanges; that number is your future per-transaction bill and your added p99. Then answer the one question that separates evidence from enforcement: does anything at the far end of this chain read the nested act claims? Grep the resource server for act. If the answer is no β it usually is β write down which of the three homes you would put chain-aware policy in and why. Done = a one-page topology table with a row per hop holding the four fields, a total exchange count, and a two-sentence recommendation naming where chain-aware authorization will live and who owns it. Published with the tenant details stripped, that table is a better LinkedIn post than another explainer of what token exchange is, because the genre is saturated with the mechanism and empty of anyone counting the hops.
If Your Gateway Doesn't Name the End Customer on Every Inference Call, the Smallest Tenant You Have Can Get the Whole Organization Banned
π‘ Key Concept
Multi-tenant architecture for an AI product usually gets scoped as data isolation: separate indexes, row-level filters, per-tenant keys in the vault. There is a second isolation boundary that almost nobody draws, and it sits outside your system entirely. If you run a platform, a gateway, or you resell model access, every request your tenants generate leaves your infrastructure under your organization's credential. The provider runs automated safety classifiers over that traffic, and when a classifier fires, the enforcement action attaches to the identity on the request. Without attribution, that identity is you. Per the Anthropic user profiles documentation, Oct 2026, stated as plainly as a docs page ever states a risk: "Without a profile on the request, one end customer can trigger an enforcement action that applies to your whole organization."
The mechanism is small enough to look like a header and large enough to be a subsystem. You register each end customer once with POST /v1/user_profiles, store the returned uprof_ id on your customer record, and send it in the anthropic-user-profile-id header on every request you make on that customer's behalf. An access_type of application β the default β means one profile per signed-up user of your product; passthrough, which you must set explicitly, means one profile per company you resell to, not per person inside it. Profiles carry no conversation content, only what you choose to send: name, metadata, and an external_user_details object holding reference_id, country, entity_type, onboarded_at, account_status and β for names and addresses you are not allowed to share β name_hash and email_hash, hashed with a function you choose and normalize consistently. Profiles "aren't billable and don't affect pricing", which removes the only argument anyone will make against adopting them. These were launched on 20 October 2026, with enforcement_status and enforcement_actions added the following day, per the Claude API release notes, Oct 2026.
Treat this as identity propagation across a trust boundary and the design questions arrive in the right order. Where is the tenant identifier minted, and is it stable across your own refactors? Who writes it onto the request β a middleware everyone shares, or each service, which guarantees one of them forgets? What happens when the provider pushes back a state you did not ask for: enforcement_status of restricted or banned, with an enforcement_actions array carrying a reason from a fixed set β unsupported_region, fraud_or_abuse, high_harm, usage_policy_violation, account_compromise, unspecified β and an expires_at that may be null? And what does your erasure runbook say, given that DELETE removes everything you supplied but "doesn't remove the trust and safety records that Anthropic keeps about that profile ID"? None of those are header questions. They are the questions you answer when a second identity system quietly becomes part of your architecture.
π¬ Deep Dive
Practitioner trap: four behaviours that will make your attribution look healthy while it is not. Silent misattribution: on Claude in Amazon Bedrock and on Google Cloud the platform checks the format of the id but does not look it up β "They accept any well-formed ID, so a successful response doesn't confirm that the ID matches a profile." A stale or mistyped-but-well-formed id therefore produces 200s forever, and you discover it during the incident it was supposed to prevent. Duplicate tenants: "POST /v1/user_profiles isn't idempotent, so every call creates a new profile, even when reference_id matches an existing one" β so one retried onboarding request splits a customer's traffic across two identities, and reference_id "doesn't have to be unique", meaning nothing stops you. Polling that cannot see the change: enforcement state moves without a reliable timestamp β "A change doesn't reliably move updated_at" β so a diff keyed on modification time will miss a ban; compare the fields themselves or subscribe to organization webhooks, in beta behind the webhooks-2026-10-07 header. Batch divergence: Message Batches only format-check at creation, so a well-formed id belonging to another organization still creates the batch and then fails per request with invalid_request_error results.
Staff-level framing: the governance value here is that a vague risk becomes a bounded one you can write into a contract. Blast radius: unattributed traffic exposes every tenant to the worst behaviour of any tenant; attributed traffic converts an organization-wide outage into a single refused profile, with the rest of your traffic unaffected. That is a sentence worth putting in a customer-facing reliability page. Fail-closed by instruction: the docs write the forward-compatibility contract for you β treat an unrecognized enforcement_status as restricted, an unrecognized type as restriction, an unrecognized reason as unspecified β which means your client must implement conservative defaults rather than switch statements that fall through to "fine". Deployment asymmetry, the finding most teams will miss: on Claude Platform on AWS the two fields never report anything β "enforcement_status is always unrestricted, and enforcement_actions is always empty", and requests there are not refused because of an open action. Your control therefore behaves differently depending on where inference runs, so a single architecture diagram covering several deployments is lying by omission. Organization hygiene: profiles belong to an organization, not a workspace, and the guidance is explicit β keep end-customer traffic in one organization and your own internal usage in another, because workspace separation is not enough. Erasure: after a delete, "For up to about 10 minutes, inference requests that carry the deleted ID can still succeed", which belongs in the runbook as a step, not a surprise.
The cross-provider picture matters if you front more than one model vendor, and the two designs are not symmetric. OpenAI documents safety_identifier as "a string that uniquely identifies each user", recommended for products where individual users interact with a model, with the explicit instruction to "Hash the username or email address in order to avoid sending us any identifying information", a 128-character ceiling for Images requests, an OpenAI-Safety-Identifier header for the Realtime API, and the older user parameter deprecated in the Images API with safety_identifier taking precedence when both are sent β per the OpenAI safety best practices guide, Oct 2026. That is an opaque per-request string with no registered object and, on that page, no documented way to read enforcement state back. Anthropic's is a registered resource with a lifecycle, a status you can query and filter on, and webhooks. So a multi-provider gateway needs one internal tenant identity mapped two ways β a consistently hashed string on one side, a uprof_ id on the other β and that mapping table is now a compliance artifact with a retention policy, not a cache.
One subtlety about who the profile actually names. A passthrough profile identifies a company, not the person typing, so for traffic attributable to one identifiable human the docs direct you to also send metadata.user_id in the Messages request β a different object from the profile's own metadata. If you get that distinction wrong you will build a per-company control and believe you have a per-person one, which is the sort of error that survives review because both versions sound correct when described out loud.
Worth reading beside today's IAM pill, which looks at the same architectural move from the other side. Okta's agent-to-agent flow carries the whole delegation chain in nested act claims that RFC 8693 explicitly marks informational for access control; the profile id here is carried in one header and is precisely what enforcement attaches to. Carrying identity and acting on identity are separate properties, and knowing which one a given mechanism gives you is the difference between an audit artifact and a control.
# ---------------------------------------------------------------------------
# Tenant attribution at the gateway boundary. Endpoints, header, field names,
# enum values and quoted behaviours come from the Anthropic user profiles
# docs; the OpenAI parameter names come from OpenAI's safety best practices
# guide. Illustrative wiring -- not executed.
# ---------------------------------------------------------------------------
# 1) ONBOARDING, exactly once per end customer. NOT idempotent: a retry
# creates a SECOND profile even with the same reference_id.
curl https://api.anthropic.com/v1/user_profiles \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"name": "Acme Analytics, Inc.",
"access_type": "passthrough",
"external_user_details": {"reference_id": "TENANT_REF", "country": "US"}
}'
# -> {"type":"user_profile","id":"uprof_...", ...}
# Store uprof_ on the customer record. Never let a service mint its own.
# 2) EVERY inference call on that customer's behalf.
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "anthropic-user-profile-id: $PROFILE_ID" \
-H "content-type: application/json" \
-d '{"model":"claude-opus-5-5","max_tokens":1024,
"messages":[{"role":"user","content":"Hello, Claude"}]}'
# Claude API / Claude Platform on AWS / Foundry-on-Anthropic: looked up,
# 400 invalid_request_error if malformed or not yours.
# Claude in Amazon Bedrock / Google Cloud: FORMAT-CHECKED ONLY.
# "a successful response doesn't confirm that the ID matches a profile"
# -> your own assertion must verify the id before the call, not after.
# 3) READBACK. Poll the field, not the timestamp
# ("A change doesn't reliably move updated_at"), or use org webhooks
# (beta header: webhooks-2026-10-07).
curl "https://api.anthropic.com/v1/user_profiles?enforcement_status[]=restricted&enforcement_status[]=banned" \
-H "x-api-key: $ANTHROPIC_API_KEY" -H "anthropic-version: 2023-06-01"
# {
# "id": "uprof_...", "enforcement_status": "restricted",
# "enforcement_actions": [{
# "type": "restriction", "id": "enac_...",
# "reason": "fraud_or_abuse", "action": null,
# "opened_at": "2026-10-02T19:30:00Z", "expires_at": null
# }]
# }
# 4) FAIL-CLOSED MAPPING, written as the docs instruct.
STATUS_FALLBACK = "restricted" # unknown enforcement_status
TYPE_FALLBACK = "restriction" # unknown action type
REASON_FALLBACK = "unspecified" # unknown reason
# Claude Platform on AWS: fields are ALWAYS unrestricted/empty -- absence of
# an action there is not evidence of a healthy tenant. Do not treat the two
# deployments as one control.
# ---- Multi-provider gateway: one tenant, two external names -------------
# internal_tenant_id -> uprof_... (Anthropic, registered)
# internal_tenant_id -> sha256(normalized_email) (OpenAI safety_identifier,
# "Hash the username or
# email address")
# Same normalization for every row or the hashes never match.
# Realtime API uses the OpenAI-Safety-Identifier header instead of a field.
# This table is a compliance artifact: give it an owner and a retention rule.
Doc-verified against the Anthropic "User profiles for end-customer attribution" documentation and the Claude API release notes of 20β21 Oct 2026, fetched Oct 22, 2026, for the endpoints, the anthropic-user-profile-id header, the access_type values, the enforcement_status and enforcement_actions fields and their enums, the non-idempotent create, the format-only check on Bedrock and Google Cloud, the updated_at caveat and the Claude Platform on AWS exception; OpenAI parameter names and hashing guidance are doc-verified against OpenAI's safety best practices guide, fetched the same day. The curl calls are syntax-checked with placeholder credentials and were not executed; the fail-closed constants are illustrative.
π§ Recall
A week ago the pill on agent sandboxes argued that isolation is chosen per workload β engine class, pinned images, egress policy β rather than inherited from a platform. Today's control lives outside your perimeter entirely. Name the boundary each one defends, and explain why a perfectly isolated sandbox offers you nothing in the failure this pill describes.
Show answer
The sandbox defends an inward boundary: code your agent chose to run must not reach your network, your secrets or another tenant's data, and the controls are yours to configure and verify. Attribution defends an outward one: the provider's trust-and-safety system is going to act on somebody, and the only question is whether the identity on the request is one tenant or your entire organization. The two never substitute for each other, because the sandbox has no opinion about what the model was asked to produce and the classifier has no opinion about where the code ran. A tenant can drive a policy violation through text alone, with no code execution at all β the sandbox is not in the path. The deeper point for an architect is about who holds the control. Isolation is a control you own end to end: you can test it, break it deliberately, and prove it in an audit. Attribution is a control you can only participate in β you supply the identity, the provider decides the action, and your sole lever is whether the request was named at all. Systems with external enforcement need a different review question than systems with internal enforcement: not "is the boundary strong" but "is our side of the contract always upheld, on every request path, including the ones added last week".
πΌ Market Signal
Two providers independently building per-end-customer attribution is the market admitting that a large share of model traffic no longer comes from the company that signed the contract. The scale underneath that admission is in Menlo Ventures' State of Generative AI in the Enterprise, Dec 2025, published 9 December 2025 from a survey of 495 US enterprise AI decision-makers fielded 7β25 November 2025: enterprise generative AI spend reached $37 billion in 2025 against $11.5 billion in 2024, a 3.2x increase, with three vendors accounting for 88% of enterprise LLM API usage β Anthropic at 40% of enterprise LLM spend, OpenAI at 27%, Google at 21%. Menlo marks portfolio companies with an asterisk in that report and Anthropic carries one, so read the shares as a modelled survey estimate from an invested party rather than measured transaction data; the direction of travel is the robust part, not the decimal. Against that backdrop the dated product record is the signal worth citing in a proposal: per the Claude API release notes, Oct 2026, user profiles launched 20 October 2026 for platforms, gateways and resellers, and enforcement_status and enforcement_actions arrived on 21 October 2026 together with an enforcement_status[] filter β a provider shipping a readback path within a day of the write path is a provider that expects operators to build on it. The role this creates is not "prompt engineer" and not "MLOps". It is the person who can walk into a company whose product embeds a model and answer, with evidence, which request paths are unattributed, what the blast radius of the worst tenant currently is, and what the erasure runbook says β identity propagation, tenant isolation and vendor governance in one brief. That intersection is thinly staffed, and it is exactly where IAM experience stops being a different career and starts being the differentiator.
β‘ Action This Week
Under two hours, and it works whether or not you adopt profiles. Take the service that sends model traffic and enumerate every outbound path to a provider β the main request handler, the batch job, the evaluation harness, the retry worker, the internal admin tool somebody wrote in a hurry. For each one record three things: whose traffic it carries, whether a tenant identifier is attached today, and what the identifier would be if it were. Count the paths that carry customer traffic unattributed; that count is your current blast radius expressed as a number, and it is almost never zero because evaluation and retry paths are written by different people than the request handler. Then write the two rules you are missing: the fail-closed mapping for an enforcement status your code does not recognize, and the single place the tenant id is read from so no service can mint its own. Done = a one-page table with a row per egress path, a marked subset of unattributed customer traffic, and a two-line policy stating where the identifier comes from and what the client does when it cannot resolve one. Strip the service names and that table is a portfolio artifact that reads as operating experience rather than opinion β the kind of post that gets answered by the person who has the same problem and no table.
PAR Takes the Authorization Request Out of the Browser β but the Replay Protection You Think It Gives You Is a SHOULD, Not a MUST
π‘ Key Concept
An OAuth authorization request is, structurally, a URL that you hand to software you do not control. Every parameter that decides what is being asked for β scope, redirect_uri, claims, authorization_details β travels through the user agent, where it can be logged by a proxy, leaked by a referrer, truncated by a length limit, or simply rewritten. Pushed Authorization Requests invert the data flow: per RFC 9126, Sep 2021, the client POSTs the complete request to a dedicated endpoint whose "URL MUST use the "https" scheme" (Β§2), authenticating "in the same way as at the token endpoint" (Β§2.1), and the server "MUST generate a request URI and provide it in the response with a 201 HTTP status code" (Β§2.2) alongside an expires_in. The browser then carries a reference instead of a request. Two properties make that reference meaningful: the value "MUST contain some part generated using a cryptographically strong pseudorandom algorithm" and "MUST be bound to the client that posted the authorization request" (Β§2.2).
In Okta's CIAM platform the control surface is two switches and a line item. Per the Auth0 Configure PAR docs, Oct 2026, PAR is off by default and is first allowed at the tenant β Settings > Advanced, the Allow Pushed Authorization Requests (PAR) toggle β and only then required per application, under Application Settings > Authorization Requests, via the Require Pushed Authorization Requests (PAR) toggle or by PATCHing require_pushed_authorization_requests: true onto the client with the Management API. Requests go to /oauth/par and the implementation is described as based on RFC 9126. The sentence that belongs in the budget rather than the design doc: "To use Highly Regulated Identity features, you must have an Enterprise Plan with the Highly Regulated Identity add-on."
Now the part that changes how you write the control description. The property almost everyone attributes to PAR is that a pushed request cannot be replayed β one push, one authorization. RFC 9126 Β§4 does say "the client MUST only use a request_uri value once", and that reads like the guarantee. It is not: it is an obligation on the client, which is the party you are trying to constrain. The matching sentence for the server is weaker by design β "Authorization servers SHOULD treat request_uri values as one-time use but MAY allow for duplicate requests" β and Β§7.3 repeats only the SHOULD. A normative SHOULD carrying an explicit MAY-escape is not a boundary you can build an attack model on. What is hard is expiry: "An expired request_uri MUST be rejected as invalid" (Β§4). So the enforceable half of PAR's anti-replay story is the clock, not the counter β and that is why the profile that actually ships in regulated environments had to add its own rules on top.
π¬ Deep Dive
Practitioner trap: three assumptions about request_uri that the spec does not support, in rising order of damage. First, the shape: the urn:ietf:params:oauth:request_uri: prefix is a MAY, not a requirement β Β§2.2 says the server "MAY construct the request_uri value using the form", so code that detects a PAR reference by matching that prefix will silently fail against a conformant server that returns an opaque string. Second, the counter: measure your server's duplicate-use behaviour rather than inheriting it from the RFC's client-side MUST, because the server-side rule is a SHOULD with a documented MAY-escape, and a design review that writes "the request URI is single-use" without a test behind it has recorded a hope as a control. Third, and this is the one that becomes a finding: RFC 9126 says nothing about what the authorization server does with additional parameters sent alongside request_uri at /authorize. The spec's normative text covers the PAR endpoint, not the authorization endpoint. If your server merges query parameters over the pushed request, the integrity property you bought with PAR is gone β the attacker simply appends the parameter they wanted. Treat that silence as the injection surface it is, and confirm your server's precedence rule explicitly. One smaller edge while you are there: a request_uri "MUST NOT be provided" to the PAR endpoint itself (Β§2.1), and the server must reject it.
Staff-level framing: PAR is a rollout problem and a procurement problem wearing a protocol costume, and all three parts need naming before anyone touches a toggle. Rollout: the tenant switch is permissive and the application switch is enforcing, so the only safe order is allow-at-tenant, then require-per-application, staged one application at a time β because "require" turns every client that cannot push into a total login outage, not a degraded path. Blast radius, honestly stated: PAR shrinks what the user agent and anything on its path can see or alter about the request. It does not authenticate the user, does not replace PKCE β FAPI 2.0 still demands PKCE with S256 for both server and client β and does nothing for the token that comes out the other end. Selling it internally as "we secured the authorization flow" invites precisely the audit question you cannot answer. Cost: one extra server-to-server round trip per authorization, plus client authentication at a new endpoint, which means public clients need a credential they did not previously need; that migration, not the toggle, is the actual project. Audit trail: the genuine upside is evidentiary β the server holds the complete request, attributable to an authenticated client, before the browser is involved at all, which is a far better basis for "what was asked for" than reconstructing intent from a redirect URL after the fact. Commercial: gated behind Enterprise plus the Highly Regulated Identity add-on, so the architecture decision has a contract attached and should be raised with whoever owns that line.
Validation is a two-phase contract, and the consistency requirement between the phases is where server operators get hurt. Β§2.1 requires the server to validate the pushed request as it would an authorization request, permits it to "MAY omit validation steps that it is unable to perform", and then binds it: those checks "MUST then be performed" at the authorization endpoint. Β§4 closes the loop from the other side β the server "MAY omit validation steps" already completed at push time, but only if it can confirm the request was pushed and that neither the request nor server policy changed in a way that affects those steps. Read plainly, that is a cache-coherence problem with security consequences: a policy edit landing between push and authorize must either force re-validation or cause a rejection. If you operate the authorization server, that invariant deserves a test, because nothing about it is visible in a happy-path integration.
The error surface is token-endpoint shaped, which surprises people who expect redirect-based OAuth errors. Per Β§2.3, failures use the RFC 6749 Β§5.2 format with invalid_request as the default when no redirect is possible, and user-interaction errors such as consent_required are never returned here β there is no user present yet. The status codes worth wiring into alerting are 405 for a non-POST, 429 for rate limiting, and especially 413 for an oversized request. That last one is the production surprise hiding in the feature's own motivation: teams adopt PAR precisely so they can send large claims or authorization_details objects, then discover the endpoint has a size ceiling. Size-test the real payload before you flip require, not after.
Discovery has a name collision that costs an afternoon in multi-tenant code. pushed_authorization_request_endpoint SHOULD appear in authorization server metadata (Β§2), and its mere presence is what tells a client PAR is available (Β§5). But require_pushed_authorization_requests exists twice β as server metadata, where it means the server accepts authorization request data only via PAR, and as client metadata, where it means PAR is the only way that client may start a request (Β§5, Β§6). Both default to false when omitted. One identifier, two scopes, opposite subjects: if your client library reads the server's value into a per-client flag, you will either enforce PAR where it is optional or skip it where it is mandatory, and neither failure announces itself.
Worth reading beside today's AI pill, because it is the same architectural move in a different domain. PAR replaces "a large request carried by the user agent" with "a reference, plus an authoritative copy held server-side and bound to an authenticated party". AP2's mandates do exactly that for a purchase: the negotiated checkout lives in a merchant-signed JWT and the mandate carries only a checkout_hash binding to it. Same instinct β move the substance off the untrusted channel, leave a binding behind β and the same failure mode if anyone lets the untrusted channel contribute fields.
# ---------------------------------------------------------------------------
# PAR in three moves. Field names, status codes and normative quotes from
# RFC 9126; the Management API call is quoted from Auth0's "Configure PAR"
# page. Nothing below was executed against a tenant.
# ---------------------------------------------------------------------------
# 1) Push the whole request, server-to-server, authenticated the same way
# as at the token endpoint (RFC 9126 2.1).
curl -X POST "https://YOUR_OKTA_DOMAIN/oauth/par" \
-H "Content-Type: application/x-www-form-urlencoded" \
-u "YOUR_CLIENT_ID:YOUR_CLIENT_SECRET" \
-d "response_type=code" \
-d "client_id=YOUR_CLIENT_ID" \
-d "redirect_uri=https://app.example.com/callback" \
-d "scope=openid profile" \
-d "state=STATE" \
-d "code_challenge=CODE_CHALLENGE" \
-d "code_challenge_method=S256"
# request_uri "MUST NOT be provided" to this endpoint (2.1); the AS rejects it.
# 2) 201 Created -- not 200. Two members, application/json (2.2).
# HTTP/1.1 201 Created
# {
# "request_uri": "urn:ietf:params:oauth:request_uri:<opaque>",
# "expires_in": 90
# }
# The urn: prefix is a MAY (2.2) -- never pattern-match it.
# FAPI 2.0 5.3.2.2 item 12: expires_in MUST be < 600 seconds.
# 3) The browser carries a reference, not a request.
# GET /authorize?client_id=YOUR_CLIENT_ID
# &request_uri=urn:ietf:params:oauth:request_uri:<opaque>
# FAPI 2.0 5.3.3.2 item 6: the client "shall only send client_id and
# request_uri" here. RFC 9126 is SILENT on what the AS does with extra
# parameters at /authorize -- that silence is the injection surface.
# ---- Enable it (Auth0 / Okta CIC) ----------------------------------------
# Tenant: Settings > Advanced > "Allow Pushed Authorization Requests (PAR)"
# (off by default -- permissive switch)
# Application: Application Settings > Authorization Requests >
# "Require Pushed Authorization Requests (PAR)" (enforcing switch)
curl -X PATCH --location 'https://TENANT.auth0.com/api/v2/clients/CLIENT_ID' \
--header 'Authorization: Bearer MANAGEMENT_ACCESS_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
"require_pushed_authorization_requests": true
}'
# ---- The three behaviours to MEASURE, in this order ----------------------
# a) reuse one request_uri twice
# RFC 9126 4: the CLIENT "MUST only use a request_uri value once".
# The SERVER "SHOULD treat request_uri values as one-time use but MAY
# allow for duplicate requests." <-- measure yours; do not assume it.
# b) send an overriding parameter next to request_uri at /authorize
# -> establishes your AS's precedence rule. Undefined by RFC 9126.
# c) push an oversized claims/authorization_details object
# -> expect 413 (405 non-POST, 413 oversized, 429 rate-limited: 2.3)
#
# Hard vs soft, for the control description you will actually write:
# expiry MUST -- "An expired request_uri MUST be rejected as invalid"
# client reuse MUST -- but binds the party you are constraining
# server reuse SHOULD + explicit MAY-escape -- NOT a boundary
# extra params undefined -- test it, then write down what you observed
Doc-verified against RFC 9126 (Β§2, Β§2.1, Β§2.2, Β§2.3, Β§4, Β§5, Β§6, Β§7.3) and the Auth0 "Configure PAR" documentation, fetched Oct 20, 2026, for the endpoint rules, the 201 response members, the one-time-use asymmetry, the metadata field names, the error status codes and both Auth0 toggle names; the PATCH call is quoted from that Auth0 page. The /oauth/parcurl is syntax-checked and uses placeholder credentials only β it was not executed, and the expires_in: 90 value is illustrative, not a figure Auth0 publishes.
π§ Recall
A week ago the FastPass pill made the login ceremony itself phishing-resistant, down to the authentication method chain. Name what an attacker can still change after that control is fully deployed β and explain why the fix is PAR rather than an even stronger authenticator.
Show answer
The parameters of the authorization request itself. FastPass binds the authentication event to a device-bound key, so the user cannot be phished into authenticating somewhere else; it says nothing about the scope, redirect_uri, claims or authorization_details the client asked for, because those ride in the front channel as query parameters that anything on the path can rewrite. A user can therefore complete a flawless phishing-resistant ceremony and consent to a request that was altered before they ever saw the screen β and the consent screen renders whatever the request says, so a stronger authenticator makes that consent look more trustworthy, not less. That is the uncomfortable interaction: authenticator strength and request integrity are orthogonal, and raising the first without the second raises the evidentiary weight of a signature over content you have not protected. PAR fixes the other half by moving the request to a server-to-server POST under client authentication and leaving the browser only a request_uri that is bound to the client that pushed it β there is nothing left in the URL to tamper with. Deploy order follows from that: request integrity first or alongside, never after.
πΌ Market Signal
PAR stopped being optional in the profile that regulated buyers actually procure against. The OpenID Foundation FAPI 2.0 Security Profile, Feb 2025 β a Final Standards Track specification dated 22 February 2025 β requires in Β§5.3.2.2 that authorization servers "shall support client-authenticated pushed authorization requests according to [RFC9126]" and, in the next item, "shall reject authorization requests sent without [RFC9126]". It tightens the parts the RFC left loose: servers "shall reject pushed authorization requests without client authentication", "shall require the redirect_uri parameter in pushed authorization requests", and "shall issue pushed authorization requests request_uri with expires_in values of less than 600 seconds", while clients "shall only send client_id and request_uri request parameters to the authorization endpoint". Note what is still not a shall even here: accepting a request_uri only once appears in Β§6.4 as a mitigation, non-normative. And the profile's reach is deliberately broader than its name β the introduction says it "was initially developed with a focus on financial applications" but "is designed to be universally applicable for protecting APIs exposing high-value and sensitive (personal and other) data", naming e-health and e-government. On the commercial side, the Auth0 Configure PAR docs, Oct 2026 put PAR behind "an Enterprise Plan with the Highly Regulated Identity add-on" β which is the market telling you where the money is. That combination is the whole opportunity for a fractional architect in EU and US regulated sectors: a Final profile that mandates the feature, a platform that charges for it, and a gap between the two that is nobody's job. "We enabled PAR" is a toggle; "here is the rollout order, the measured duplicate-use behaviour of our authorization server, our parameter-precedence rule at /authorize, and the payload size ceiling we hit" is an engagement.
β‘ Action This Week
Spend ninety minutes turning the three soft spots above into three observed facts, in a non-production tenant. Allow PAR at the tenant, require it on exactly one throwaway application, and push one authorization request β confirm you get 201 rather than 200, and record the expires_in your server actually issues against FAPI 2.0's under-600-second rule. Then run the three measurements in order: replay the same request_uri a second time and write down whether it is accepted, because the server-side rule is only a SHOULD; append an overriding parameter next to request_uri at /authorize and write down which value wins, because RFC 9126 does not say; and push a deliberately oversized claims object until you find the ceiling, because that is the failure your largest client will hit first. Keep the credentials out of the notes. Done = a one-page table with three rows β duplicate use, parameter precedence, payload ceiling β each holding the observed behaviour and the spec clause it does or does not satisfy, plus the two-line rollout order (allow at tenant, require per application) ready to paste into a migration ticket. That table is also an unusually honest LinkedIn post, because the genre is saturated with explanations of what PAR does and nearly empty of measurements of what a real authorization server does when you break the rules β publish the method and the three results, never the tenant.
Every AP2 Explainer Describes Intent and Cart Mandates. The Spec Now Has Checkout and Payment β With Open and Closed Stages and a cnf Claim Holding It Together
π‘ Key Concept
When an agent rather than a person initiates a payment, three questions appear that card rails were never built to answer. The Google Cloud AP2 announcement, Sep 2025 states them as authorization β "Proving that a user gave an agent the specific authority to make a particular purchase" β authenticity, meaning the merchant can be sure the request reflects the user's true intent, and accountability when a transaction turns out to be fraudulent or wrong. AP2's answer is the mandate: "tamper-proof, cryptographically-signed digital contracts that serve as verifiable proof of a user's instructions". That post, dated 16 September 2025, describes an Intent Mandate and a Cart Mandate, and essentially every explainer written since repeats that pair, usually as a trio with a Payment Mandate bolted on.
Open the specification today and that object model is gone. The AP2 specification (v0.2), Oct 2026 defines two mandate types β a Checkout Mandate (mandate.checkout.open.1) verified by the merchant, and a Payment Mandate (mandate.payment.1) verified by the credential provider, network and payment processor β each existing in an open and a closed stage rather than as separate documents. Mandates are secured with SD-JWT. The roles are explicit: Shopping Agent, Credential Provider, Merchant, Merchant Payment Processor, and a Trusted Surface that obtains informed consent and creates user-signed mandates and which "MUST be non-agentic". Binding runs through hashes, not references: the closed Checkout Mandate is bound to a merchant-signed Checkout JWT, and the Payment Mandate carries a checkout_hash pointing at it.
The stage split is what makes delegated, human-absent purchasing tractable, and it rests on one claim. Per the AP2 Agent Authorization Framework, Oct 2026, an open mandate carries constraints β each an object with a required type, such as checkout.line_items or checkout.allowed_merchants β and a cnf claim, optional for closed mandates but required for open ones, holding a confirmation method per RFC 7800 with the agent's public key as a jwk. In the Direct (human-present) mode the user approves the closed mandate through the Trusted Surface. In Autonomous (human-not-present) mode the user signs only the open mandate β the constraints, the authority budget β and the agent later closes it by producing a Key Binding JWT with the key named in that cnf. That is proof-of-possession doing delegation: the user signs the limits, the agent proves it is the thing those limits were issued to, and nothing has to wake the user at purchase time.
π¬ Deep Dive
Practitioner trap: you will implement AP2 from blog posts and build the wrong objects, and the versioning rule guarantees it fails loudly rather than degrading. The explainer consensus β Intent Mandate, Cart Mandate, Payment Mandate β matches Google's September 2025 launch post and not the v0.2 specification, which has Checkout and Payment with open and closed stages. Then the detail that removes your escape hatch: each mandate's vct claim carries a numeric suffix acting as a schema version, and implementations "MUST match the full string, including the suffix", with an incompatible revision taking a new suffix such as .2. So you cannot prefix-match mandate.checkout.open and hope to be forward-compatible β that is explicitly the thing the rule forbids. A second trap with no workaround at all: the Checkout JWT "MUST be signed with a non-deterministic scheme such as ECDSA, not a deterministic one such as Ed25519", because deterministic signatures over a low-entropy checkout make the hash binding vulnerable to rainbow-table attacks. If your platform standardised on Ed25519 β and plenty of agent infrastructure did, for good reasons elsewhere β you cannot sign checkouts with your existing key material, and that discovery belongs in week one, not in integration testing.
Staff-level framing: treat the mandate chain as the audit artifact and design storage before you design the happy path, because the dispute process is a hash recomputation and hashes are unforgiving about bytes. The Agent Authorization Framework requires the verifier to return a signed Mandate Receipt JWT with iss (which MUST be the verifier), result of "success" or "error", and reference β the base64url hash of the final SD-JWT β plus error when the result is an error. After a success the agent stores the open mandate, the closed mandate and the receipt together, then narrows the open mandate's scope. Dispute handling recomputes the checkout_jwt hash independently and re-verifies the Payment Mandate against checkout_hash, so your retention requirement is the exact JWTs byte-for-byte, not a parsed projection into your own schema β a normalising ORM write is a silent loss of non-repudiation. Three more decisions belong at this altitude: blast radius is defined entirely by the open mandate's constraints plus exp, which "SHOULD be set as short as the task allows", so the authority budget is a product decision with a number attached; the protocol fails closed, since any unknown constraint is treated as a failed evaluation and yields unresolved_constraint, which means shipping a new constraint type to agents before verifiers breaks purchases rather than quietly permitting them; and in the Trusted Agent Provider model the provider "MUST ensure that the Agent is not able to access the Agent Provider signing key", which is a hard key-custody boundary that decides whether you can run agents in customer-controlled infrastructure at all.
The concurrency rule is easy to miss and expensive to retrofit: the Shopping Agent "MUST NOT present a new open Mandate until it has received a rejection receipt for the previous one". That is a serialisation constraint on your agent's authority lifecycle, not a nicety β it rules out the obvious implementation where an agent optimistically requests a fresh, wider mandate while the old one is still in flight. Combine it with the instruction to disclose "only the open-Mandate fields needed for evaluation" and with selective disclosure hiding permitted line items and merchants until revealed, and the shape of a correct client emerges: one outstanding open mandate at a time, minimal disclosure per verifier, and scope narrowing after every success.
Delegation rides on the verifiable-credential stack rather than anything bespoke, which is exactly why this is an identity engineer's problem as much as an agent engineer's. Delegation is expressed over OpenID4VP: the agent places base64url-encoded objects in transaction_data, each requiring type (the string delegate), format and delegate_payload, with delegate_disclosures optional and delegate_payload required to be included in the Key Binding. The credential query uses format: "dc+sd-jwt" with vct_values: ["com.emvco.dpc"], and both sd-jwt_alg_values and kb-jwt_alg_values are ES256 β which is the same constraint as the ECDSA requirement, arriving from a second direction. Normative references are OpenID4VP, SD-JWT (RFC 9901), Delegate SD-JWT and RFC 7800. Multiple delegations can travel in one request as multiple delegate_payload elements.
The Trusted Surface being non-agentic is a hard architectural constraint that quietly settles a product argument. A model cannot render or mediate the consent screen, because the component that obtains informed consent and creates user-signed mandates "MUST be non-agentic" β so the tempting design where the assistant itself presents the confirmation is non-conformant. Autonomous mode does not remove that surface, it relocates it earlier: the human still signs, but signs constraints ahead of time instead of a cart at purchase time. Build the consent UI once, deterministic and outside the agent, and let both modes share it.
Read alongside today's IAM pill, which is the same primitive in the authorization domain. cnf is RFC 7800, the confirmation-claim mechanism under which DPoP registers its jkt key thumbprint β a credential that names the public key whoever presents it must prove possession of. AP2 uses it so a user-signed constraint set can only be exercised by one specific agent; sender-constrained OAuth uses it so a stolen token is inert without the key. One idea, two stacks: stop asserting who the holder is, make them demonstrate it.
# ---------------------------------------------------------------------------
# AP2 v0.2 -- claim names, stages and normative rules from the AP2
# specification and the Agent Authorization Framework (fetched Oct 20, 2026).
# Structure is illustrative; values are invented. Nothing was executed.
# ---------------------------------------------------------------------------
# --- OPEN Checkout Mandate: user-signed. This IS the authority budget. ---
{
"vct": "mandate.checkout.open.1", # MUST match the FULL string, suffix
# included. No prefix matching.
"_sd_alg": "sha-256",
"exp": 1792000000, # SHOULD be as short as the task allows
"cnf": { # REQUIRED on OPEN mandates (RFC 7800).
"jwk": { # The agent key that may later close it.
"kty": "EC",
"crv": "P-256",
"x": "<agent public key x>",
"y": "<agent public key y>"
}
},
"constraints": [
{ "type": "checkout.allowed_merchants" }, # each constraint: required "type"
{ "type": "checkout.line_items" } # hashed entries stay hidden until
] # selectively disclosed
}
# An UNKNOWN constraint type is a FAILED evaluation -> "unresolved_constraint".
# Fails closed: ship constraint types to verifiers BEFORE agents.
# --- CLOSING it: the agent proves possession of the cnf key ---------------
# The open mandate is closed when the Agent creates a Key Binding JWT
# (proof-of-possession) using the key in the open mandate's cnf claim.
# Verification order:
# 1. verify the SD-JWT chain (per Delegate SD-JWT)
# 2. confirm the closed mandate keeps the open mandate's claim values UNCHANGED
# 3. evaluate each constraint, by type, against the closed mandate
# 4. any unknown constraint -> fail
# --- Binding to the merchant's checkout -----------------------------------
# Payment Mandate (vct: mandate.payment.1) carries:
# checkout_hash -- hash of the merchant-signed checkout_jwt
# transaction_id -- proposed lookup key for retrieving Checkout Mandates
#
# The checkout_jwt MUST be signed with a NON-deterministic scheme (e.g. ECDSA),
# NOT a deterministic one (e.g. Ed25519): deterministic signatures over a
# low-entropy checkout expose the hash binding to rainbow-table attacks.
# --- The audit artifact: Mandate Receipt JWT ------------------------------
{
"iss": "<the Verifier>", # REQUIRED, MUST be the Verifier
"result": "success", # or "error"
"reference": "<base64url hash of the final SD-JWT, via _sd_alg or sha-256>"
# "error" REQUIRED when result is "error"; "error_description" optional
}
# Error codes: invalid_credential (terminal) | invalid_mandate (terminal)
# unresolved_constraint (may fall back) | mandates_not_supported
# --- Storage contract (the part that is NOT in the happy path) ------------
# On success, store TOGETHER: open mandate + closed mandate + receipt,
# then NARROW the open mandate's scope.
# Retain the exact JWTs byte-for-byte -- dispute handling recomputes the
# checkout_jwt hash independently and re-verifies against checkout_hash.
# A normalising ORM write silently destroys non-repudiation.
#
# Concurrency: the Shopping Agent MUST NOT present a new open Mandate until
# it has received a rejection receipt for the previous one.
Doc-verified against the AP2 specification (v0.2) and the AP2 Agent Authorization Framework, fetched Oct 20, 2026, for the two mandate types and their vct values, the open/closed stages, the cnf/RFC 7800 key-binding rule, the constraint and receipt claim names, the error codes, the ECDSA-not-Ed25519 signing requirement and the storage and concurrency rules. JSON values are illustrative placeholders β no real keys, credentials or transactions appear, and nothing here was executed against an AP2 implementation.
π§ Recall
A week ago the context-lifecycle pill drew the line between what an agent may forget and what it must persist. AP2 turns that into a concrete requirement: name the three objects the spec says an agent must store together after a mandate succeeds, and explain why the context window is the wrong home for them.
Show answer
The open mandate, the closed mandate and the receipt β stored together, with the open mandate's scope narrowed afterwards. Those three are two different things at once: the non-repudiation record for a dispute, and the remaining authority budget for the next purchase. Context compaction is lossy by design and optimises for conversational relevance, which is exactly the wrong selection function for either job β an evicted mandate is not a degraded answer, it is an agent that can no longer prove it was authorised, or one that re-requests authority it already holds. The protocol closes off the obvious recovery, too: an agent "MUST NOT present a new open Mandate until it has received a rejection receipt for the previous one", so "just ask again" is non-conformant while the first is outstanding. There is a subtler reason as well. Dispute handling recomputes hashes over the exact SD-JWTs, so what must survive is the byte sequence, not a summary of it β and summarisation is precisely what a compaction pass does. These belong in durable storage keyed by transaction_id, with the context window holding at most a reference the agent can dereference on demand.
πΌ Market Signal
The payments industry committed to this before the engineering patterns existed, which is the asymmetry worth trading on. Google launched AP2 on 16 September 2025 in collaboration with "more than 60 organizations", per the Google Cloud announcement, Sep 2025, and the named list is not a roster of AI startups β it includes the card networks and processors that actually settle money: American Express, Mastercard, JCB and UnionPay International alongside Adyen, Worldpay, PayPal, Ant International and Revolut, plus Coinbase, Intuit, Salesforce, ServiceNow, Etsy, Forter and Mysten Labs. Meanwhile the protocol itself is still at v0.2 and positions as an extension to the Agent2Agent (A2A) protocol and the Universal Commerce Protocol, per ap2-protocol.org, Oct 2026. Hold those two facts together: networks and processors have publicly aligned on agent-initiated payments, and the specification underneath them has already rewritten its core object model since the launch post that most of the ecosystem's documentation still paraphrases. That gap is the billable one. For a fractional architect positioned across identity and AI, this is the rare topic where the scarce skill is not model engineering at all β it is reading SD-JWT, RFC 7800 key binding, OpenID4VP delegation and selective disclosure, and knowing that an open mandate is an authorization budget with an expiry. Very few AI engineers can review that chain, and very few payments engineers have run an autonomous agent. Being credible in both rooms is the position, and "I implemented the v0.2 object model, not the launch-post one" is the sentence that proves it.
β‘ Action This Week
Model one real delegated purchase from your own domain as an AP2 open Checkout Mandate β a procurement reorder, a subscription top-up, whatever your organisation would plausibly let an agent do unattended β and write it as a JSON skeleton with four things filled in deliberately: the exact vct including its version suffix, the constraints array with the real merchant and line-item limits, an exp you can defend as "as short as the task allows", and a cnf block naming which key the agent would hold. Then write the half nobody writes: the storage contract. One paragraph stating where the open mandate, closed mandate and receipt live, how long they are retained byte-for-byte, and which identifier (transaction_id) retrieves them during a dispute. Finish with a two-line key audit β does your agent platform sign with ECDSA or Ed25519, and does your provider architecture keep the signing key out of the agent's reach, as the Trusted Agent Provider model requires. Done = a one-page artifact holding the annotated mandate skeleton, the storage-and-retention paragraph, and the two key-custody answers, with every claim name traceable to the v0.2 spec rather than to a blog post. It converts directly into a portfolio piece or a LinkedIn post with an unusually defensible hook β that the mandate model most AP2 content describes is not the one in the current specification β and the annotated skeleton is the evidence, so the post teaches something instead of announcing a trend.
Okta Will Collapse Your Duplicate Agent Records Into One β But Only Using a Field That Is Optional to Fill In
π‘ Key Concept
Give an agent an identity, a lifecycle and a policy engine, and you have solved authorization for one record. The question nobody asks in the design review is how many records one agent has. There are at least three doors into the directory and they do not know about each other: an engineer registers a custom agent by hand, an admin imports the fleet from a builder platform, and a vendor app arrives through Cross App Access carrying agents of its own. Each door mints a principal. Nothing in the act of registering ties two of them to the same running thing. Okta shipped the fix for this and it is worth reading as an admission of the problem: per the Okta Identity Engine release notes, Oct 2026, release 2026.08.2 β dated 19 August 2026 β lists "Unified identity for AI agents is GA in Production", which resolves AI agent identities across all registration paths into one record per org and adds endpoints for listing, reviewing and resolving conflicts. The sentence that carries the architecture: "Each agent can now carry an externalId and platform value to ensure agents are unique."
So the deduplication key is not something Okta mints. The Okta External IDs for AI agent providers docs, Oct 2026 define the external ID as "a unique identifier that's assigned to an AI agent in its third-party builder platform" β the join key is the other system's primary key, imported. On the automated path the external ID "is set at the provider level" and filled in for every imported record. On the manual path, "When you manually add an AI agent in Okta, you can specify the platform and external ID." And the shape of that key is different for every platform: Amazon Bedrock AgentCore uses agentRuntimeArn, Bedrock Agent Classic a full arn:aws:bedrock:{awsRegion}:{awsAccountId}:agent/{agentId}, Gemini Enterprise a resource path projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}, LangSmith Deployments a composite {deployment_id}_{assistant_id}, Microsoft Copilot Studio and DataRobot a bare id, Salesforce Agentforce Id, ServiceNow AI Agent Studio agent.sys_id, Glean agent_id, and Workday "externalAgentID if present, otherwise id". Okta adds the caveat that decides how you treat the table: "This list isn't exhaustive and is intended for reference only."
Now put the two halves together, because the gap between them is the whole pill. On the manual registration path documented in Add AI agents manually, Oct 2026, Platform and External ID sit under an Identifier section that applies only "If the AI agent was built in a third-party builder platform" β and Owners is labelled "Owners (optional)". The identity-resolution feature that collapses duplicates into one authoritative record therefore depends on a field that the registration flow never forces anyone to supply, and the accountability anchor beside it is optional too. Meanwhile deactivation is a per-record action: the Okta for AI Agents API reference, Oct 2026 (labelled Beta) defines INACTIVE as an agent that "can't authenticate or connect to resources", and that statement is scoped to the record you clicked. One runtime with two records has one off switch that works and one that does nothing, and the console will show you a tidy green Inactive either way.
π¬ Deep Dive
Practitioner trap: the external ID encodes deployment topology, so "same agent" and "same external ID" are not the same claim, in both directions. A Bedrock Agent Classic key contains the AWS region and account; a Gemini Enterprise key contains the GCP project and location. Promote that agent from the staging account to production, or run it active-active in two regions, and you correctly get two external IDs β identity resolution will never merge them, because they are genuinely two runtimes, and your "one agent" mental model is the thing that is wrong. In the other direction, Workday's rule is conditional β "externalAgentID if present, otherwise id" β so the key for an existing agent can change the day that field gets populated, which silently creates a second record for a runtime you never redeployed. And the opaque keys are the ones that bite in practice: Copilot Studio's id and Agentforce's Id are strings a human will retype into the manual flow, where one transposed character does not produce an error, it produces a duplicate. Key your inventory on the tuple (platform, externalId), never on the display name, and generate it from the provider's API rather than from a person.
Staff-level framing: treat (platform, externalId) as the primary key of the agent inventory and write the policy that Okta's form does not enforce. Three concrete rules, each cheap to state and auditable: no agent is registered without Platform and External ID, even for in-house agents that have no builder platform β in which case you mint and record your own stable identifier at the point of deployment; every agent has at least two owners, which is also Okta's own recommendation ("Okta recommends that you assign at least two owners to an AI agent to ensure that it always has an owner"), with the documented limits being up to five individual owners or a single group owner whose group has at least two members; and every deprovisioning runbook queries by the tuple, never by name, so that "disable the invoice agent" cannot resolve to one of two records. The blast radius argument that lands with a risk committee is the asymmetry: a duplicate costs you nothing on the access-granting path, because both records work, and costs you everything on the revocation path, because only one of them stops. That is the definition of a control that fails open, and it fails open precisely during an incident, when someone is reading a console under time pressure.
Registration method is a decision with a one-way door inside it. The manual flow offers four client registration methods β "Client ID Metadata Document (CIMD)", "Client ID only", "Client secret" and "Public/private key" β and the docs are explicit that "You can stage several, but activate only one at a time", that CIMD is for agents identified by a developer-hosted URL and once chosen "you can't change this later", that "Client ID only" is for public clients that cannot store a secret such as local coding agents, and that the public/private key method needs a public JWK which you "can generate when you register the AI agent". The same page adds a topology constraint that quietly shapes your design: for user access you link an OIDC app, and "You can only link one app to an AI agent". An agent that needs to appear in two user-facing surfaces is therefore two agent records by construction β which is a legitimate duplicate, and exactly the kind your inventory must be able to distinguish from an accidental one.
"Who may call this agent" became a separate object this year, and separate objects need separate audits. The release notes deprecate the appId parameter on the Register an AI agent API in the 2026.07.0 entry dated 17 June 2026, directing you to the Delegation Links API instead, and the same date carries "Agent-to-agent connections is GA in Production", where admins connect agents to other agents through delegated links, with scopes and System Log visibility. Two entries in the same notes show how young the surface is: a fix dated 5 August 2026 (OKTA-1226327) for a delegation-link error when an app was already set as a delegation caller for the same agent, and one dated 30 September 2026 (OKTA-1267499) for a SAML delegation link and an OIDC app being bound to one AI agent at the same time. Read those as a map of the sharp edges rather than as noise β both are binding conflicts, which is the same class of defect as a duplicate principal.
The token layer is where a duplicate stops being a tidiness problem and becomes an audit problem. Per the Okta AI agent token exchange guide, Oct 2026, the agent exchanges a subject token for an ID-JAG with requested_token_type=urn:ietf:params:oauth:token-type:id-jag, and the resulting assertion carries sub_profile β "ai_agent" when an agent is acting β plus an act claim identifying the agent, with nested act claims for each agent in an agent-to-agent chain. That nesting is the delegation chain an auditor will be handed. It reconstructs "which agent acted for which agent for which human" only if every hop resolves to exactly one record; with a duplicate in the middle, the chain is still cryptographically valid and still names a principal that your inventory believes is a different agent. Note the lifetimes while you are there: the ID-JAG response shows expires_in: 300, while the access token minted from it comes back with expires_in: 3600 β so even a correct deactivation leaves a window measured in the downstream token's lifetime, not in the click.
Where to put the metadata that makes this governable: 2026.09.2, dated 30 September 2026, lists "Extensible AI Agent Profile Schema and Custom Attributes is Beta", which adds custom schema attributes to AI agent profiles and maps provider attributes into Okta. Environment, cost centre, underlying model, risk tier and the internal service that owns the runtime belong there, on the agent profile, rather than in a spreadsheet beside the console β because attributes on the profile can be filtered in the Directory > AI Agents page, which already filters by provider, sign-on app and managed status. One qualifier on every date in this pill: Okta's release-note tables mix Preview and Production dates in the same column, so treat the dates as the release's own labels and confirm the status in your tenant before you quote them in a control description.
Worth reading next to today's AI pill, which asks what an agent's code can reach at runtime. The two halves of agent containment are a principal you can actually revoke and a runtime that holds no credential worth stealing β and each one is worthless alone. A perfectly deduplicated agent record protects nothing if a static API key is baked into the sandbox image; a hermetic sandbox protects nothing if the identity it authenticates with has a twin you forgot to disable.
# The join key for AI agent identity resolution in Okta.
# Every mapping below is quoted from Okta's "External IDs for AI agent
# providers" help page, fetched Oct 15, 2026. Okta's own caveat:
# "This list isn't exhaustive and is intended for reference only."
# app integration | builder platform | External ID
# ---------------------------|--------------------------------|-------------------------------
# AWS IAM | Amazon Bedrock Agent Classic | arn:aws:bedrock:{awsRegion}:{awsAccountId}:agent/{agentId}
# AWS IAM | Amazon Bedrock AgentCore | agentRuntimeArn
# Datarobot | Datarobot Agent Workforce | id
# Glean | Glean Agent Builder | agent_id
# Google Workspace | Gemini Enterprise Agent Platf. | projects/{project}/locations/{location}/reasoningEngines/{reasoningEngine}
# LangSmith | LangSmith Deployments | {deployment_id}_{assistant_id}
# Microsoft Office 365 | Microsoft Copilot Studio | id
# Salesforce.com | Salesforce Agentforce | Id
# ServiceNow UD | ServiceNow AI Agent Studio | agent.sys_id
# Workday | Workday Agent System of Record | externalAgentID if present, otherwise id
# ---- Onboarding contract (policy YOU enforce; Okta's form does not) ------
# Manual registration: Platform + External ID live under "Identifier" and
# apply only "If the AI agent was built in a third-party builder platform".
# Owners is labelled "Owners (optional)". Both are mandatory in this org.
agent_onboarding_required:
platform: ""
external_id: ""
owners: ">= 2 individuals, or 1 group with >= 2 members" # Okta's own recommendation
client_registration: "one of: CIMD | client_id_only | client_secret | public_private_key"
# CIMD is irreversible: "If you configure CIMD as the client registration
# method, you can't change this later."
user_access_app: "one OIDC app -- 'You can only link one app to an AI agent'"
# ---- Reconciliation you run weekly (illustrative pseudo-query) -----------
# Source of truth A: provider API inventory -> (platform, external_id, runtime_state)
# Source of truth B: Okta Directory > AI Agents -> (platform, external_id, status, owners)
#
# duplicates = B grouped by (platform, external_id) having count > 1
# unkeyed = B where external_id is null # cannot ever be resolved automatically
# orphans = B where owners = 0 # no human accountable
# ghosts = B.status = ACTIVE and (platform, external_id) not in A
# shadow = A not in B # running, never registered
#
# Fail conditions, in the order that hurts:
# unkeyed -> identity resolution has nothing to join on; dedupe will not happen
# ghosts -> an ACTIVE principal with no runtime behind it: pure standing privilege
# duplicates -> your kill switch disables one record and leaves the other ACTIVE
#
# Token-lifetime reality check, from the token exchange guide:
# ID-JAG expires_in: 300 (5 minutes)
# access token expires_in: 3600 (1 hour)
# => "deactivated" is not "cannot act" until the longest downstream token expires.
Doc-verified against the Okta "External IDs for AI agent providers" and "Add AI agents manually" help pages, the Okta for AI Agents API reference, the AI agent token exchange guide and the 2026 Okta Identity Engine release notes, Oct 2026, for the mapping table, the Identifier/Owners labels, the four client registration methods, the one-app-per-agent and CIMD constraints, the INACTIVE definition and the two token lifetimes. The onboarding contract and the reconciliation query are illustrative pseudo-config β Okta has no such file format and the query names no real API. Nothing here was executed against a tenant.
π§ Recall
Nine days ago the Agent Gateway pill rested on one sentence from Okta's own docs: "The AI agent never holds a credential for the remote service." Today's pill is about agents that hold two identities instead of one. Name precisely what the gateway guarantee does not cover β and why a duplicate record is worse in an identity-native proxy architecture than in the old credential-per-tool one.
Show answer
It guarantees that the credential is never in the agent's hands; it guarantees nothing about how many principals that agent can present. The gateway validates inbound tokens and enforces policy per workload principal, so the principal is the unit of authorization, of audit and of revocation β which means a second registered record is a second, fully legitimate path to the same tools, with its own policy evaluation and its own clean entry in the System Log. In the old architecture a duplicate was survivable because revocation meant rotating a credential, and rotating it broke every copy at once; the credential was a shared fate. Identity-native proxying removes that shared fate deliberately β it is the point of the design β so the burden moves to the inventory. Deduplication is not hygiene in this model. It is the precondition that makes per-principal revocation mean anything at all.
πΌ Market Signal
The commercial signal and the engineering signal point at the same gap. Okta announced general availability of Agent SSO on 24 August 2026, per the Okta newsroom, Aug 2026, putting the open Cross App Access standard inside core SSO β registering supported agents as identities in Universal Directory and issuing short-lived tokens in place of stored credentials, at no additional cost on core SSO plans, across what Okta states is more than 20,000 customers. In the same release Okta cites its AI Agents at Work 2026 report: "Only 34% of organizations apply the same security controls to AI agents as they do to human workers." Set that against the release cadence in the Identity Engine release notes, Oct 2026 β agent-to-agent connections GA in June, unified agent identity GA in August, Agent SSO for third-party OIDC apps and an extensible agent profile schema at the end of September, and guides for securing Salesforce Agentforce and Google Vertex AI agents landing on 7 October β and the shape of the market is legible. The platform capability is arriving faster than the operating model around it, which is exactly the gap a fractional architect gets paid to close. The hiring signal follows the same logic: "we deployed Okta for AI Agents" is a procurement statement, while "I can show you the agent inventory, its join key, the duplicate rate and the mean time from provider deprovisioning to Okta deactivation" is an architecture statement β and in US and EU regulated environments, where the agent population is growing faster than the identity team, it is the second one that gets funded.
β‘ Action This Week
Reconcile one builder platform, end to end, in under two hours. Pick the platform where your organisation actually has agents β Copilot Studio, Agentforce, Bedrock AgentCore, whatever is real β and pull two lists: every agent that exists in that platform, with its native identifier (the one named in Okta's mapping table for that provider), and every agent record in Okta's Directory > AI Agents page filtered to that provider. Join them on (platform, externalId) and count five numbers: records with no external ID, records with no owner, duplicate tuples, Okta records with no live runtime behind them, and live runtimes with no Okta record. Then do the one thing that turns an audit into a control: write the onboarding contract as five lines β platform and external ID mandatory, external ID copied from the provider API rather than typed, two owners minimum, client registration method chosen deliberately because CIMD cannot be changed later, and deprovisioning queried by tuple. Done = a one-page reconciliation sheet with those five counts for one provider, the five-line onboarding contract, and a named owner for every unowned record you found. The five counts are also the most honest LinkedIn post available on agentic identity right now, because almost every post on the topic describes a capability and almost none reports a number from a real tenant β publish the methodology and the shape of the gap, never the tenant's data.
Your Agent's Sandbox: the Isolation Question Isn't "microVM or Container" β It's Who Pins the Engine, and Whether Egress Is Off
π‘ Key Concept
Code execution stopped being an exotic agent capability some time in the last year, and the market consolidated while most teams were still arguing about frameworks. Theory's AI in Practice Survey 2026, published by Tomasz Tunguz on tomtunguz.com, Oct 2026, "fielded 455 senior technical builders on 22 September 2026" and asked the sandbox-hosting question only of the 259 teams whose agents write and execute code β which is itself the headline, because that is 259 of 455 teams running model-authored code somewhere. Among those 259: Cloudflare 62%, Other 17%, Vercel 17%, Modal 16%, E2B 12%, Daytona 9%, Sail 7% (shares of the 259 teams, which sum to more than 100%; Cloudflare's share is three times the closest competitor). A capability that barely existed as a product category two years ago now has a plurality winner and a long tail, and the choice is being made by platform teams who are mostly comparing DX and price.
The security literature has caught up enough to say that the comparison most teams run is the wrong one. AI Code Sandboxes: A Comparative Security Study, Part 1 β Engine-Level Properties by George Andronchik and Pavel Lokhmakov (arXiv:2606.08433, Jun 2026) measures five AI-sandbox products across six engine-level axes β attack surface, leakage, stackability, CVE history, patch cadence and fuzzing investment β and refuses to publish an overall ranking, stating plainly that "No single axis is a sufficient basis for a comparative judgement." Its structural finding is the useful one: the three engine classes β microVM, userspace kernel, OCI container β separate cleanly on architectural axes, but products within a class do not. In other words the label on the box ("Firecracker", "gVisor", "containers") predicts much less about your actual exposure than the vendor comparison tables imply, because two products built on the same engine can differ enormously in how they are operated.
And the paper names the variable that does the predicting, which is not an architecture property at all. Engine-side patch latency for coordinated disclosures is approximately zero days β upstream projects fix things fast β while downstream lag, driven by each product's pin policy, ranges from 0 days to 471+ days, with some products simply opaque about which engine build they run. The authors call product pin policy the dominant operator-facing variable. A second finding belongs in every procurement deck: the strongest combination available in principle β microVM plus a continuous public fuzzer β is used by no product in their set, and a "0 published CVEs" claim that coincides with no upstream fuzzer and no academic study is not evidence of safety but, in their phrase, "structurally unmeasured". So the two questions that actually discriminate between vendors are: which engine build are you running today and how fast do you pick up a fix, and what controls do you hand me for egress and credentials. Everything else is a brochure.
π¬ Deep Dive
Practitioner trap: the isolation class you end up with is decided by a different requirement, usually late, usually by someone optimising for something else. Per the Modal Sandboxes docs, Oct 2026, you pick a runtime with runtime="vm" β each Sandbox in a virtual machine with its own Linux kernel, needed for Docker-in-Sandbox, FUSE mounts or nested cgroups β or runtime="gvisor", described as "a container runtime developed by Google". Then one line in the same docs collapses the choice: "GPU Sandboxes are supported only with runtime="gvisor"". The day your agent needs a GPU, "we chose VM-level isolation" silently becomes "we chose a userspace kernel", and nothing in the diff will say so. Nested virtualization also requires the Team or Enterprise plan, so the stronger boundary can be a billing decision too. Write the isolation class into the code review checklist for the file that creates sandboxes, because that is the only place the regression is visible.
Staff-level framing: turn the vendor conversation into five questions with written answers, and the procurement exercise stops being a feature grid. One: which engine class and, specifically, which engine build is in production today. Two: what is your pin policy and your median lag from upstream fix to deployed fix β the arXiv paper's 0-to-471+ day spread means this single answer dominates the others, and "we're on the latest" is not an answer, a number with a measurement method is. Three: is egress deny-by-default and how is the allowlist expressed. Four: where do credentials live, and can the sandbox reach a token at all. Five: what is the documented lifetime and what exactly survives a restart. The blast-radius argument that persuades a risk committee is simpler than the taxonomy: the sandbox bounds what the code can do, not what it can reach or what it can steal, and the second and third are configuration you own rather than engineering the vendor did. Cloudflare says the third part in its own documentation β keep credentials in the Worker rather than inside the sandbox, since sandbox code can use anything placed inside it. Treat that sentence as the control, not as a tip.
Egress is the control with the best ratio of risk reduced to effort spent, and in the two platforms documented here it is one parameter. Per the Cloudflare Sandbox SDK docs, Oct 2026, a Container instance "is a microVM with its own kernel and network, so no other workload shares it", started by a Durable Object in your Worker, and you set enableInternet: false to block public Internet access, with inbound HTTP reaching the instance only through your Worker; for the JavaScript/Python/Wasm path, a Dynamic Worker takes globalOutbound: null to block outbound requests entirely. Default-deny egress converts the two failure modes people actually suffer β model-authored code exfiltrating whatever it was handed, and prompt-injected code calling an attacker's endpoint β from a breach into a failed call you can log. The cost is real and worth naming in the design doc: package installs, API calls and web fetches now need an explicit, reviewed path, which is exactly the point.
Lifetime is an operational property that teams keep mistaking for a security one. Modal documents timeout as the maximum lifetime with a default of 5 minutes and a maximum of 24 hours, plus an idle_timeout where a Sandbox counts as active if it has a running exec, stdin writes or an open TCP connection through a Tunnel; for runs beyond 24 hours the documented approach is Filesystem Snapshots restored into a new Sandbox, and terminating produces return code 137. Three consequences. A long-horizon agent needs an explicit state-handoff design, not a longer timeout. A snapshot is a trust boundary of its own β whatever the model wrote into the filesystem is what you restore into the next sandbox, so a poisoned workspace survives the "fresh" sandbox you believe you just created. And an idle definition that counts an open TCP connection as activity means an agent can keep a sandbox alive by doing nothing except holding a socket, which is a cost line and a forensics problem at the same time.
Self-hosting is a legitimate answer and it is less exotic than the managed-platform framing suggests. Per the gVisor containerd quick start, Oct 2026, the whole Kubernetes integration is a RuntimeClass whose handler is runsc and a pod field runtimeClassName: gvisor, requiring runsc and containerd-shim-runsc-v1 installed with containerd at a "Minimal version supported: 1.3.9 or 1.4.3". If you already run Kubernetes, the userspace-kernel boundary is two YAML objects away, and critically you own the pin policy β which the arXiv study identifies as the dominant variable. That is the honest trade: self-hosting hands you the variable that matters most and also hands you the obligation to actually move it, which is a staffing commitment, not a config change. Decide it explicitly rather than discovering in an incident review that nobody owned the upgrade.
One sizing note on the survey before anyone quotes 62% as market share. It measures respondents, not revenue or workloads, the sample is self-selected senior builders, and the question went to a 259-team subset. What it establishes reliably is directional: sandboxing is now a default component of the agent stack rather than a specialist concern, and the distribution has a clear leader. Read it as a statement about where the defaults are being set, which is also where the shared failure modes will be.
Worth reading next to today's IAM pill on agent identity resolution. Containment has two halves and each is worthless alone: a principal you can actually revoke, and a runtime that holds nothing worth stealing. The joint design is the one to argue for β short-lived, agent-scoped credentials fetched per call from outside the sandbox, egress denied by default, and an inventory where one runtime maps to exactly one revocable identity.
// Egress off, credentials outside. Cloudflare Sandbox SDK (@cloudflare/sandbox).
// Both parameter names are quoted from the Cloudflare Sandbox docs, Oct 2026.
// Linux container path -- "Each instance is a microVM with its own kernel
// and network, so no other workload shares it." Started by a Durable Object.
container.start({
image: "cloudflare/debian-trixie",
entrypoint: ["sleep", "infinity"],
enableInternet: false, // blocks public Internet access
});
const process = await container.exec(["uname", "-a"]);
const output = await process.output();
// JS / Python / Wasm path -- Dynamic Worker, outbound blocked entirely.
const sandbox = env.LOADER.load({
compatibilityDate: "$today",
mainModule: "code.js",
modules: { "code.js": untrustedModule },
globalOutbound: null, // no outbound requests
});
// Cloudflare's own guidance, verbatim in spirit: keep credentials in your
// Worker, not inside the sandbox -- sandbox code can use anything placed
// inside it. The call out to a tool API is made BY the Worker, with a
// short-lived token the sandbox never sees.
Doc-verified against the Cloudflare Sandbox SDK documentation, Oct 2026, for enableInternet, globalOutbound, the microVM sentence and the credential-placement guidance. Not executed in this session.
# Self-hosted userspace-kernel isolation: you own the pin policy.
# RuntimeClass and pod fields quoted from the gVisor containerd quick start.
# Requires runsc + containerd-shim-runsc-v1; containerd "Minimal version
# supported: 1.3.9 or 1.4.3".
apiVersion: node.k8s.io/v1
kind: RuntimeClass
metadata:
name: gvisor
handler: runsc
---
apiVersion: v1
kind: Pod
metadata:
name: agent-exec
spec:
runtimeClassName: gvisor
containers:
- name: exec
image: your-registry/agent-exec:pinned-digest
# ---- The five questions, with the answers written down (illustrative) ----
# Everything below is a review template, NOT product documentation.
sandbox_control_record:
engine_class: "microVM | userspace-kernel | OCI container"
engine_build: "exact version/digest running in prod today"
pin_policy:
owner: "named team"
median_lag: "days from upstream fix to deployed fix" # arXiv 2606.08433:
# engine-side patch latency ~0 days; downstream lag 0 to 471+
# days, or opaque. Pin policy is the dominant operator variable.
egress: "deny by default + reviewed allowlist"
credentials: "never inside the sandbox; short-lived, agent-scoped, per call"
lifetime: "max wall-clock; what a snapshot restores; what a restart clears"
# Fail conditions worth naming explicitly:
# - GPU requirement silently downgrades the runtime to the weaker class
# - snapshot/restore carries a model-written filesystem into a 'fresh' sandbox
# - an open TCP connection counts as activity, so idle timeouts never fire
# - '0 published CVEs' with no upstream fuzzer and no study is
# "structurally unmeasured", not safe
Doc-verified against the gVisor containerd quick start, Oct 2026, for the RuntimeClass handler, runtimeClassName and the containerd minimum versions; the patch-lag and measurement claims are from arXiv:2606.08433, Jun 2026. The control record is an illustrative review template with no vendor-defined schema behind it. Nothing here was executed in this session.
π§ Recall
A week ago the service-tiers pill priced latency as its own axis: the same weights at 50% through the Message Batches API and at 2Γ under fast mode, a 4Γ spread decided by how long you are willing to wait. Given everything above, name the second bill that choosing the cheap tier moves β and the documented limit it eventually collides with.
Show answer
The sandbox's wall clock. Cheaper inference tiers buy their discount with latency, and for a code-executing agent that latency is spent while a sandbox sits open holding the workspace β so the token saving is partly refunded as sandbox runtime, and it is billed by a different vendor on a different line, which is why nobody notices. The collision is documented on both sides: batch results are available when all messages complete or after 24 hours, whichever comes first, while Modal documents a Sandbox timeout with a maximum of 24 hours, default 5 minutes. A batch-tier agent can therefore outlive the sandbox that holds its state. The fix is not a longer timeout β it is the state-handoff design the lifetime bullet above describes: snapshot the filesystem, let the sandbox die, restore into a new one when the results land, and treat the restored workspace as untrusted input rather than as continuity.
πΌ Market Signal
The same survey that maps the vendors also prices the skill. Per Theory's AI in Practice Survey 2026, Oct 2026 (455 senior technical builders, fielded 22 September 2026), 43% now rate security and governance the most important pain point β evals are second at 22% β and security has climbed from sixth place to first in twelve months. Against that, only 10% say security tooling delivers the most value today, and 18% expect it to lead in future, the largest expected gain of any category in the survey. A 43%-pain / 10%-value gap is the most legible demand signal a specialist can be handed: the problem is now ranked first by the people holding the budget, and the tools they have bought are not solving it, which means the work is architecture and operating model rather than procurement. That is precisely the engagement shape a fractional architect sells β not "install a sandbox", but "write the control record, set the pin-policy owner, make egress deny-by-default, move the credentials out of the runtime, and show me the five numbers next quarter". It also explains why the AI-platform roles that pay at the Staff band increasingly read like infrastructure security roles with an agent flavour, and why the portfolio artifact that travels furthest is a written isolation decision with trade-offs named, rather than a demo of an agent writing code.
β‘ Action This Week
Write the control record for the sandbox you already run, then test the one line that matters. Open the file in your codebase that creates sandboxes and answer the five questions in writing: engine class and the exact engine build in production, the pin-policy owner and your median lag from upstream fix to deployed fix, whether egress is deny-by-default, whether any credential is reachable from inside the sandbox, and the maximum wall-clock lifetime plus what a snapshot restores. Most teams will find two of the five unanswerable from their own repo, and that is the finding. Then run the experiment: set egress to deny β enableInternet: false or globalOutbound: null on Cloudflare, the equivalent on your platform, or a NetworkPolicy if you self-host β and re-run your agent's five most common tasks. Record which ones break and what they were reaching for, because that list is your reviewed allowlist, derived from evidence rather than from guessing. Finish by grepping the sandbox's environment for anything token-shaped and moving it to the caller. Done = a one-page control record with the five answers, a pass/fail table for five tasks under default-deny egress, the resulting allowlist, and one named owner for the engine pin. That page is also the rare AI-engineering post that is not a framework tutorial β publish the methodology and the trade-offs, never the allowlist itself.
Okta Made Phishing Resistance a Default β Which Is Exactly Why Every Rule You Already Wrote Needs an Audit
π‘ Key Concept
On 5 October 2026 Okta moved a default, and the release note is one line long. Per the Okta Identity Engine production release notes, Oct 2026, version 2026.09.2 ships "Automatic phishing resistance for FastPass": when Okta FastPass sits in an authentication chain, the Phishing resistant characteristic is now selected by default. The same release makes Passkey (FIDO2 WebAuthn) "available by default in all newly created orgs". Both changes point the right way. Neither one touches the policy you are actually running, and that gap is the whole story.
The reason a default matters this much is that in Okta's model phishing resistance has never been a property an authenticator carries around β it is a constraint you assert inside a rule. The Okta phishing-resistant authentication docs, Oct 2026 classify "Passkey (FIDO2 WebAuthn) and Okta FastPass (which comes with Okta Verify)" as phishing-resistant authenticators, and say authentication with them "is phishing resistant on all supported operating systems when users access their apps directly or from a supported browser". But capability is not enforcement. An Okta support article, Nov 2025 states the condition without hedging: FastPass "is considered a phishing-resistant authenticator on unmanaged BYOD devices, only if the 'Phishing resistant' constraint in the App Signon Policy rule was chosen", and "if that checkbox was not selected, Okta FastPass may choose a non-phishing-resistant method to authenticate the user". Your tenant can be fully FastPass-enrolled and still authenticating people in a way that fails the bar you think you cleared.
The mechanism where that constraint lives is the authentication method chain, Oct 2026, which Okta defines as a rule that "requires users to verify their identity using authenticators in an order that you configure". Per method you can demand a characteristic β Phishing resistant, Hardware protected, or User interaction β which is the knob the new default now pre-selects for FastPass. Above all of this sits a standards ceiling worth knowing before you promise anything to a risk committee. NIST SP 800-63B-4 Β§3.2.5 defines phishing resistance as the protocol's ability to prevent disclosure of authentication secrets and valid authenticator outputs to an impostor verifier "without relying on the vigilance of the claimant", and rules normatively that authenticators involving manual entry of an output "SHALL NOT be considered phishing-resistant". Then Β§2.3.2 closes a door most passkey rollouts walk straight into: "The cryptographic authenticator used at AAL3 SHALL have a non-exportable private key", and because syncable authenticators require an exportable key, "syncable authenticators SHALL NOT be used at AAL3" β Table 1 lists key exportability as prohibited at AAL3 and permitted at AAL1 and AAL2. The passkey Okta now turns on by default is a correct AAL2 answer and an invalid AAL3 one.
π¬ Deep Dive
Practitioner trap: the new default is scoped to FastPass inside an authentication method chain, and a default only ever applies at the moment something is configured. Every app sign-in rule written before 5 October 2026 β every "any two factors" rule inherited from an Okta Classic migration, every rule a project team cloned in 2024 β keeps whatever it had, which for most estates is nothing selected. Read that against the support article's sentence and the consequence is specific rather than theoretical: those rules permit FastPass to pick a non-phishing-resistant method, and nothing in the Admin Console will flag it, because an unset characteristic is a valid configuration rather than an error. The audit question is therefore not "have we deployed FastPass" or even "have we enabled passkeys" β both can be yes while the answer that matters is no. It is: for each app sign-in policy rule, is the characteristic asserted on each step, and does that rule's device condition actually cover the unmanaged devices the support article is talking about? Treat the release note as a reminder to go and look, not as remediation.
Staff-level framing: enforcing phishing resistance is not a hardening toggle, it is a deny rule, and the blast radius is an application inventory you probably do not have. Okta documents that "Some apps don't support Okta phishing-resistant authentication due to their WebView implementation", and that when policy requires phishing resistance those sign-ins fail with Access denied. There are platform prerequisites in the same class: on macOS you "configure an SSO extension to ensure that authentication with Okta FastPass in Safari is phishing resistant", and for Universal Windows Platform apps "you must run a script". So the rollout plan that survives review is sequenced the other way round from the one people propose: enumerate WebView-based and UWP apps first, stage enforcement by app tier, and carry a written exception register with a named owner and an expiry date per exception. The governance artifact an auditor can actually use is an export of the rules showing the characteristic asserted per method β not a screenshot of the authenticator enrollment page, which proves capability and nothing about enforcement. And decide the target assurance level per app before writing rules, because the AAL3 exclusion of syncable authenticators means "we rolled out passkeys" and "we meet AAL3" are different claims that a committee will happily conflate on your behalf.
Things run before your chain, and they can contradict its design. The chain documentation is explicit that if the Global Session Policy requires a password, the user enters the password first and then the chain runs; and that with User Enumeration Prevention enabled, the user must first authenticate with a password or email on an unknown device. A chain you specified as "two phishing-resistant factors, no shared secrets" can therefore be fronted by a password prompt that you did not put in the chain and cannot see when you read the rule in isolation. If you are writing the control description for an audit, describe the composed sequence β global session policy, enumeration prevention, then the chain β rather than the chain alone, or your documented control and your actual control will differ in the one direction that matters.
The product you bought to evaluate risk continuously relaxes the chain's central guarantee. Per the same documentation, "With Identity Threat Protection enabled, the authenticator order isn't enforced for session protection." Order is the entire reason a chain exists rather than a set, so this is a real carve-out and it lives precisely where a mature deployment operates: continuous evaluation during a session rather than at initial sign-in. It does not make ITP a bad idea. It means that if your control narrative says "step-up always presents WebAuthn before FastPass", the session-protection path is an exception you have to state, and anyone reasoning about your enforcement from the rule definition alone is reasoning about the sign-in path only.
Several documented failure modes present as outages rather than as policy results, which is how they end up mis-triaged. DNS Rebind Protection causes sign-in attempts to "fail phishing resistance checks" and "can prevent Okta Verify from establishing a secure connection to browsers or native apps on the device" β a client-side network setting that produces an authentication failure with no obvious identity-side cause. The documented degradation path is better news: "If Okta FastPass isn't supported, users are prompted to sign in with Passkey (FIDO2 WebAuthn)", so the fallback is to another phishing-resistant authenticator rather than down to SMS. That only holds if passkeys are actually enrolled, which is what the new-org default delivers and what your existing org, by construction, does not. Enrollment coverage for the fallback authenticator is a prerequisite for enforcement, not a follow-up task. One more migration detail with a security edge: on the next sign-in a user is offered the same first authenticator as last time unless they choose another, so enrollment drives behaviour for a long time after you change the policy.
Worth reading next to today's AI pill, which is about three different mechanisms for managing an agent's context whose defaults quietly decide what the agent forgets. The shared lesson is not a metaphor: in both systems the default is a configuration-time event, the control is a per-rule assertion, and the only reliable way to know which one is in force is to enumerate the rules rather than trust the product's direction of travel.
# Phishing resistance in Okta is a POLICY ASSERTION, not an authenticator
# property. Every normative line below traces to a doc fetched Oct 13, 2026.
# ---- 1. The two sentences that should drive the whole audit ---------------
# Okta support article, last updated Nov 12 2025:
# "Okta FastPass is considered a phishing-resistant authenticator on
# unmanaged BYOD devices, only if the 'Phishing resistant' constraint in
# the App Signon Policy rule was chosen."
# "If that checkbox was not selected, Okta FastPass may choose a
# non-phishing-resistant method to authenticate the user."
#
# Okta 2026.09.2 (deployed Oct 5 2026) changes the DEFAULT for FastPass
# inside an authentication method chain. It does not rewrite rules you
# already wrote, and it does not apply outside a chain.
# ---- 2. Configuration intent per app tier (documented UI semantics) ------
# Admin Console > Applications > <app> > Sign On > sign-on policy rule:
# "User must authenticate with" = Authentication method chain
# then, per method, select the characteristic: "Phishing resistant"
tier_crown_jewel:
step_1: { method: "Passkey (FIDO2 WebAuthn)", characteristic: "Phishing resistant" }
step_2: { method: "Okta FastPass", characteristic: "Phishing resistant" }
reauth: "Every time user signs in to resource"
tier_standard:
step_1: { method: "Okta FastPass", characteristic: "Phishing resistant" }
reauth: "When an Okta global session does not exist"
# ---- 3. Audit matrix -- one row per app sign-in policy rule ---------------
# rule | chain? | characteristic asserted per step? | covers unmanaged
# devices? | app uses WebView? | ITP enabled? | exception owner + expiry
# Fail conditions to look for, each one documented:
# - chain configured, characteristic left unset -> downgrade is permitted
# - Global Session Policy requires a password -> the password runs FIRST,
# then the chain runs
# - User Enumeration Prevention enabled -> password or email first
# on an unknown device
# - Identity Threat Protection enabled -> "the authenticator order
# isn't enforced for session protection"
# - WebView-based app + required phishing resistance -> sign-in fails with
# "Access denied"
# - macOS + Safari without an SSO extension -> configure the SSO
# extension or it is not phishing resistant
# - Universal Windows Platform app -> "you must run a script"
# - DNS Rebind Protection on the client -> "fail phishing resistance
# checks"
# ---- 4. The AAL ceiling nobody mentions in the rollout deck --------------
# NIST SP 800-63B-4 Sec. 2.3.2: "The cryptographic authenticator used at
# AAL3 SHALL have a non-exportable private key", and because syncable
# authenticators require an exportable key, "syncable authenticators SHALL
# NOT be used at AAL3". Table 1, Key Exportability: AAL3 = Prohibited.
# => a synced passkey is a correct AAL2 answer and an invalid AAL3 one.
# Decide which assurance level the app actually needs BEFORE you write the rule.
Doc-verified against the Okta phishing-resistant authentication docs, the authentication method chain docs, the 2026.09.2 production release notes, the Okta support article of Nov 2025 and NIST SP 800-63B-4, Oct 2026, for the quoted sentences, the characteristic names, the password and enumeration-prevention precedence, the Identity Threat Protection carve-out, the WebView / macOS / UWP / DNS Rebind caveats and the AAL3 key-exportability rules. Sections 2 and 3 are an illustrative audit scaffold written in YAML-like pseudo-config β Okta has no such file format; translate it into Admin Console rules or your Terraform provider's own attribute names, which were not verified in this session. No request here was executed against a tenant.
π§ Recall
Five days ago the CIMD pill established that converting an existing Okta app integration to a Client ID Metadata Document is a one-way door, and listed what Okta deletes on the way through. One item on that list is a control many incident runbooks depend on by name. Which one β and what does its removal have in common with an app sign-in rule whose Phishing resistant characteristic was never selected?
Show answer
Universal Logout, along with Single Logout β the conversion removes their configuration, and Okta documents that neither applies to CIMD app integrations at all. So if "revoke every session for this integration" currently means Universal Logout in your runbook, converting that app silently deletes the lever while leaving the obligation in place. The common shape with the unset characteristic is that in both cases the system is in a state no error message describes: nothing is broken, nothing is flagged, and the configuration is perfectly valid β it simply does not provide the control you are documenting. Both are only discoverable by enumerating what each rule or integration actually asserts today, which is why the deliverable for this kind of work is an inventory with owners rather than a setting you flip once.
πΌ Market Signal
The gap between capability and enforcement is measurable, and it is enormous. Okta's own telemetry, published in The Secure Sign-in Trends Report 2025, Dec 2025 (data as of January 2025), puts workforce MFA adoption at "reaching 70%" while phishing-resistant authenticators β FastPass, WebAuthn and Smart Card combined β moved "from 8.6% to 14.0% in one year", a 63% relative jump off a very small base. FastPass alone went from 6.7% to 13.3%. The counterweights in the same dataset are the interesting part: low-assurance SMS only fell from 17.5% to 15.3%, and overall password usage went from 95.1% to 93.0% of users. So the authenticator the entire industry calls table stakes is in force for roughly one user in seven, while the factor everyone claims to be eliminating is still present for more than nine in ten. That is not a product-availability problem β FastPass and passkeys have shipped for years and Okta is now switching their strongest setting on by default, per the 2026.09.2 release notes, Oct 2026. It is a policy-estate problem, which is to say it is architecture and governance work: rule inventories, WebView exception registers, assurance-level decisions per application, and the enrollment coverage that makes enforcement survivable. That is also why this is the IAM work that gets funded in regulated US and EU environments right now, and why "we deployed phishing-resistant MFA" is a weak claim in an interview next to "I can tell you which rules assert it, which applications cannot support it, and what the AAL3 ceiling is on a synced passkey".
β‘ Action This Week
Audit one application, end to end, and write the matrix. Pick your highest-value app β the one whose compromise you would have to report. Open its sign-on policy and record, per rule: whether it uses an authentication method chain; whether the Phishing resistant characteristic is asserted on each step or left unset; whether the rule's conditions actually cover unmanaged devices; whether the app is WebView-based; and whether Identity Threat Protection is enabled in the org. Then add the three sequencing checks that are invisible inside the rule: does the Global Session Policy require a password first, is User Enumeration Prevention on, and what is the enrollment coverage for Passkey (FIDO2 WebAuthn) among that app's users β because that is the documented fallback when FastPass is unsupported. Finish with one assurance-level decision written down: does this app need AAL2 or AAL3, and if anyone has said AAL3, note that a synced passkey cannot satisfy it. Done = a one-page matrix for that app showing chain / characteristic / device-condition / WebView / ITP, the three sequencing answers, the passkey enrollment percentage for its user population, and a named owner with an expiry date for every exception you had to record. The matrix generalises into a LinkedIn post almost no one has written, because the common post is "turn on phishing-resistant MFA" and the useful one is "here is the audit that tells you whether it is actually in force".
Your Agent's Context Has Three Exits β Compaction Summarises, Editing Clears, Memory Persists β and One Bill Isn't in usage.input_tokens
π‘ Key Concept
Long-horizon agents all fail the same way, and it is not a reasoning failure. They run out of room. Anthropic's context engineering guidance, Sep 2025 states the premise plainly β "Context is a critical but finite resource for AI agents" that "must be treated as a finite resource with diminishing marginal returns" β and gives the mechanism rather than a metaphor: models have an "attention budget" where "every new token introduced depletes this budget by some amount", because a transformer yields "nΒ² pairwise relationships for n tokens". Usefully, it also refuses to overclaim: "these factors create a performance gradient rather than a hard cliff". The design goal that follows is "the smallest possible set of high-signal tokens", and there are now three distinct production mechanisms competing to produce it.
They are genuinely different, and the differences are where the architecture lives. Compaction runs on the server and summarises: per the compaction overview, Oct 2026, it "replaces the older turns of a conversation with a summary that Claude writes on the server", motivated by the fact that "response quality degrades as a conversation grows". It comes in two shapes β on demand, behind the compact-2026-09-04 beta and a top-level compaction parameter, or at a token threshold, behind compact-2026-01-12 as the compact_20260112 strategy with a default trigger of {"type":"input_tokens","value":150000} and a documented minimum of 50,000. Once it fires, the threshold compaction docs, Oct 2026 are blunt about the consequence: "The API automatically drops all content blocks prior to the compaction block." Context editing clears by rule instead of summarising β the strategies clear_tool_uses_20250919 and clear_thinking_20251015 behind context-management-2025-06-27, defaulting to a 100,000-input-token trigger that keeps the last 3 tool uses. The memory tool (memory_20250818) is the only durable one, and the only one you host: per the memory tool docs, Oct 2026 it "operates client-side: Claude requests file operations, and your application executes them".
Read as a set, these are not three competing answers but one lifecycle with three loss semantics, and choosing between them is the actual design decision. Compaction is lossy by summarisation and costs an extra model call. Context editing is lossy by deletion but rule-bounded and predictable. Memory is lossless and durable, and survives both of the others β which is why the docs recommend pairing rather than picking: "compaction keeps the active context small without client-side bookkeeping, and memory preserves the information that must survive summarization". The clearest statement of the stakes is the instruction the API injects into the system prompt whenever the memory tool is present: "ASSUME INTERRUPTION: Your context window might be reset at any moment, so you risk losing any progress that is not recorded in your memory directory." That sentence is the whole architecture in one line. Anything your agent must not forget belongs in a store you own, because every other layer is explicitly allowed to discard it. Note too that context editing, Oct 2026 is applied "server-side before the prompt reaches Claude" while "your client application maintains the full, unmodified conversation history" β so the client, not the provider, is your system of record for what actually happened.
π¬ Deep Dive
Practitioner trap: the compaction bill is not where your dashboard is looking. Threshold compaction "requires an additional sampling step, which contributes to rate limits and billing", and the top-level usage fields "do not include compaction iteration usage" β they are "the sum of all non-compaction iterations". To get what you actually owe you must "sum across all entries in the usage.iterations array". The docs' own example is the whole lesson: top-level reports 23,000 input and 1,000 output tokens, while the iterations array carries a compaction entry of 180,000 input and 3,500 output. Real billed input for that single request is 203,000, so a cost dashboard built on usage.input_tokens under-reports it by about 89%. It gets sharper with server-side tools, where "the compaction trigger is checked at the start of each sampling iteration" and compaction can therefore run more than once inside one request. The one piece of good news is that "re-applying a previous compaction block incurs no additional compaction cost", so the steady state is cheap and it is the transitions you pay for.
Staff-level framing: pick the loss you can defend, write it down, and put it under review. Three mechanisms with three loss semantics produce three incident classes, and the one that will actually bite you is governance rather than code. Threshold compaction accepts an instructions parameter that "completely replaces the default prompt when provided" β meaning a custom summarisation prompt is a production-critical artifact that silently decides what your agent forgets across every future session. It belongs in version control with a named owner, a review path and a regression test, not in a config blob someone tuned once during an incident. Rollout and blast radius follow from the trigger value: set it too low on a tool-heavy agent and you churn the prompt cache every turn, set it too high and you hit the window mid-task with no room to recover. For audit, remember that the server saw a redacted prompt while your client holds the full history, so your observability and any compliance evidence must be built on the client-side transcript. And on cost structure, the memory tool is the only one of the three with no recurring model-inference charge, because your own storage serves it β which makes "move it to memory" a cost decision as much as a correctness one.
Cache economics decide the real price, and the two clearing strategies behave differently. Tool result clearing "invalidates cached prompt prefixes when content is cleared", and the docs are explicit about the trade: "You'll incur cache write costs each time content is cleared, but subsequent requests can reuse the newly cached prefix." That is precisely why clear_at_least exists β "if the API can't clear at least the specified amount, the strategy will not be applied" β so it functions as an amortiser that stops you paying a full cache rewrite to reclaim a few thousand tokens. Thinking-block clearing is the cleaner case: when thinking blocks are kept, "the prompt cache is preserved, enabling cache hits and reducing input token costs", and when they are cleared "the cache is invalidated at the point where clearing occurs". The operating rule that falls out of both: never clear a little, often.
If you are tempted to compute your own trigger, know that the obvious arithmetic is wrong. The context-editing docs flag that with server-side tools and compaction the SDK may miscalculate token usage, and give the worked example 63,000 + 0 + 270,000 + 1,400 = 334,400 β a figure inflated because it includes cache_read_input_tokens β with the result that compaction "can trigger at the wrong time". Anyone summing usage fields to drive their own threshold is very likely double-counting cache reads, which means firing compaction early, paying for it, and invalidating a cache that was doing its job. Read the field list before you trust a sum.
Ordering and model-dependence are load-bearing, not cosmetic. "When using multiple strategies, the clear_thinking_20251015 strategy must be listed first in the edits array" β a positional requirement in a config array, which is the kind of thing that silently degrades rather than erroring. The thinking-clearing defaults also vary by model generation: keep-all on Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 and later, last-turn-only on the earlier ones. A routine model upgrade therefore changes how much reasoning context your agent carries without a line of your code changing. Two further edges: for accounts created on or after 31 August 2026, "a request that replays an invalidated block is rejected unless you opt into dropping it", and after threshold compaction on the current models you must strip thinking and redacted_thinking blocks from any assistant turn you re-insert, or send the documented drop-block behaviour, "otherwise, where the check is enforced, the request fails with a 400 error".
Memory is the durable tier, which makes it your security boundary. Because the tool is client-side, the docs' warning is an instruction to you rather than a note about the model: "A malicious path such as /memories/../../secrets.env can reach files outside the /memories directory. Your implementation must validate every path in every command." The recommended approach is canonical resolution plus a containment check rather than blocklisting ../, since URL-encoded traversal (%2e%2e%2f) defeats naive matching. Size and lifecycle are yours too: cap file growth, cap what view returns, and expire stale files β and note the documented limits you should mirror, with view truncating text views past 16,000 characters and files beyond 999,999 lines returning an error.
One real link to today's IAM pill rather than a forced one: that pill is about an Okta default moving in the right direction while the control that matters stays a per-rule assertion nobody has enumerated. The same shape governs this stack β a 150,000-token compaction trigger and a keep-3-tool-uses default are decisions about what your agent forgets, taken for you, in a field you have probably never set.
# Three mechanisms, one scarce resource. Stack them deliberately.
# Every field name below comes from the Claude docs fetched Oct 13, 2026.
# ---- A. Context editing + threshold compaction in one request -----------
# anthropic-beta: context-management-2025-06-27, compact-2026-01-12
"context_management": {
"edits": [
{ "type": "clear_thinking_20251015",
"keep": { "type": "thinking_turns", "value": 2 } },
{ "type": "clear_tool_uses_20250919",
"trigger": { "type": "input_tokens", "value": 60000 },
"keep": { "type": "tool_uses", "value": 3 },
"clear_at_least": { "type": "input_tokens", "value": 10000 },
"exclude_tools": ["fetch_webhook_payload"],
"clear_tool_inputs": false },
{ "type": "compact_20260112",
"trigger": { "type": "input_tokens", "value": 150000 } }
]
}
# clear_thinking_20251015 MUST be listed first in the edits array.
# compact_20260112 trigger.value must be >= 50,000 (default 150,000).
# clear_tool_uses_20250919 defaults: trigger 100,000 input tokens, keep 3
# tool uses, clear_at_least unset, clear_tool_inputs false.
# clear_at_least is the amortiser: "If the API can't clear at least the
# specified amount, the strategy will not be applied" -- so you never pay
# a cache rewrite to reclaim a trivial number of tokens.
# exclude_tools should protect results you CANNOT re-fetch (a one-shot
# webhook body, a non-idempotent query). Memory reads are the safest
# thing to clear: the durable copy already lives in your own store.
# ---- B. The bill that is not in usage.input_tokens ----------------------
# Top-level usage is "the sum of all non-compaction iterations".
# Verbatim example from the threshold-compaction docs:
"usage": {
"input_tokens": 23000,
"output_tokens": 1000,
"iterations": [
{ "type": "compaction", "input_tokens": 180000, "output_tokens": 3500 },
{ "type": "message", "input_tokens": 23000, "output_tokens": 1000 }
]
}
# Billed input for that single request is 203,000 -- not the 23,000 your
# dashboard reads off the top level.
$ jq '[.usage.iterations[].input_tokens] | add' response.json
# With server-side tools the compaction trigger "is checked at the start of
# each sampling iteration", so compaction can run MORE THAN ONCE per
# request. Re-applying an existing compaction block is free.
# ---- C. Memory tool: durable, client-side, your security boundary -------
"tools": [ { "type": "memory_20250818", "name": "memory" } ]
# The docs carry an explicit warning: "/memories/../../secrets.env" must
# never resolve outside the memory root. Resolve first, then prove
# containment -- do not pattern-match on "..".
from pathlib import Path
ROOT = Path("/srv/agent-memory").resolve()
def resolve_memory_path(path: str) -> Path:
if not path.startswith("/memories"):
raise ValueError("outside /memories")
p = (ROOT / path.removeprefix("/memories").lstrip("/")).resolve()
p.relative_to(ROOT) # raises if traversal escaped the root
return p
# Size caps, view truncation and expiry are also your code's job, not the
# API's: view truncates text views past 16,000 characters, and files over
# 999,999 lines should return an error.
Doc-verified against the Claude context editing, compaction overview, threshold compaction and memory tool docs, Oct 2026, for every strategy and parameter name, the beta header strings, the default and minimum trigger values, the edits-array ordering requirement, the verbatim usage.iterations example, the cache-invalidation behaviour, the view truncation and line limits and the path-traversal warning. The jq line and the resolve_memory_path function are syntax-checked Python and shell written for this pill and were not executed in this session; fetch_webhook_payload and the storage root are placeholders.
π§ Recall
A week ago the MCP Tasks pill argued that turning a blocking tool call into a durable handle is an improvement you can still squander β the title ended "Which You Can Still Lose". Given everything above about where context goes, name the specific mechanism by which a perfectly durable task handle gets lost, and the one place it should have been written.
Show answer
The handle is durable on the server; the agent's knowledge of it is not. The task id arrives inside a tool result, and a tool result is exactly what clear_tool_uses_20250919 is designed to delete β it keeps only the last 3 tool uses by default and "removes the oldest tool interactions first". Compaction is the same hazard by a different route: it replaces older turns with a summary and the API then "drops all content blocks prior to the compaction block", so whether the id survives depends on whether a summariser judged it worth keeping. For a long-running task the window between submission and completion is precisely the window in which both mechanisms fire. So the durable handle belongs in a memory file β the one tier that survives a context reset β written at the moment of submission, not left sitting in a tool result and trusted to still be there hours later. This is the same lesson the injected memory prompt states as "ASSUME INTERRUPTION", and it is why durable-handle protocols and context-lifecycle design are one problem rather than two.
πΌ Market Signal
Context lifecycle management has stopped being a framework concern and become a priced, versioned API primitive at more than one provider β which is the clearest signal available that the industry hit the same wall at the same time. OpenAI now ships the same idea in the Responses API: the OpenAI compaction guide, Oct 2026 documents server-side compaction configured as context_management with a compact_threshold that fires "when the rendered token count crosses the configured threshold", plus a stateless /responses/compact endpoint whose returned window "is the canonical next context window, so pass it into your next /responses call as-is". Its compaction item "carries forward key prior state and reasoning into the next run using fewer tokens" and is "opaque and not intended to be human-interpretable" β a notable divergence from Claude's human-readable summary, and a real architectural choice to reason about if you are abstracting across providers. On the Anthropic side the pace is the tell: three separately versioned surfaces for one problem inside about fourteen months β context-management-2025-06-27, then compact-2026-01-12, then compact-2026-09-04. And the first-party engineering writing has already moved past treating any single lever as sufficient. Effective harnesses for long-running agents, Nov 2025 starts from the constraint that agents "must work in discrete sessions, and each new session begins with no memory of what came before", says flatly that "compaction isn't sufficient", and lands on externalised state β a feature list in JSON, a progress log, git history β with one finding worth stealing outright: the model "is less likely to inappropriately change or overwrite JSON files compared to Markdown files". For positioning, the readable signal is that the scarce skill is no longer prompt authoring but deciding what an agent is allowed to forget, proving what it costs, and keeping the rest in a store you control.
β‘ Action This Week
Instrument before you tune β the measurement is the deliverable and it takes well under two hours. Pick one agent that runs long enough to compact. First, log the full usage.iterations array for twenty real requests and compare the summed input tokens against the top-level usage.input_tokens for the same requests; the delta is your current under-reporting, and if any request shows two compaction entries you have found a server-tool loop worth a second look. Second, write a one-page loss policy with three columns β summarised, cleared, persisted β and put every category of state your agent handles into exactly one of them; anything you cannot place is the thing that will go missing in production. Third, take one piece of must-survive state you find sitting in a tool result (a task handle, a run id, an approval decision, a chosen plan) and move it into a memory file, then write the failing test first: assert that /memories/../../secrets.env is rejected before you implement the resolver. Done = a table of iteration-summed versus top-level token counts for twenty requests with the percentage gap stated, a one-page three-column loss policy, and one memory file plus a path-traversal test that fails closed. The token-gap table is an unusually good LinkedIn post, because almost everyone discussing agent cost is quoting the number that the docs say is incomplete.
CIMD: The Client ID Becomes a URL You Host β Okta Fetches It at Token Time, and the Conversion Is a One-Way Door
π‘ Key Concept
Every OAuth client registration model you have shipped assumes one of two worlds. Either the set of clients is bounded and someone registers each one by hand β which is why onboarding a partner integration takes a ticket and a week β or you open Dynamic Client Registration (RFC 7591) and accept that every instance of every client writes a row in your authorization server. Client ID Metadata Documents take a third route, and the mechanism is almost rude in its simplicity: the client_idis an HTTPS URL, and the document at that URL is the client definition. There is no registration call, no stored client record and no secret to exchange β there is a fetch.
The spec is draft-ietf-oauth-client-id-metadata-document-02, Jul 2026 β an active OAuth working group Standards Track draft published 6 July 2026 and expiring 7 January 2027, authored by Aaron Parecki (Okta) and Emelia Smith. The identifier rules are tighter than they look: the URL must use the https scheme, must contain a path component, must not carry a userinfo or fragment component, should not carry a query, and must not contain single-dot or double-dot path segments. Comparison is simple string comparison per RFC 3986 Β§6.2.1, so https://example.com/client and https://example.com:443/client are two different clients. The document must be JSON, must use metadata names from the IANA OAuth Dynamic Client Registration registry, and must contain a client_id property whose value matches both the identifier and the URL the server actually fetched. Shared secrets are not merely discouraged, they are structurally impossible: token_endpoint_auth_method must not be client_secret_post, client_secret_basic, client_secret_jwt or any other shared-symmetric-secret method; client_secret and client_secret_expires_at must not appear; private key material must not appear. What remains is asymmetric: public keys via jwks or jwks_uri, and private_key_jwt for confidential clients, validated per RFC 7523 Β§2.2 against the key in the document.
Okta has shipped this, and the first production consumer is agents. Per the Okta CIMD app registration guide, Oct 2026, you set settings.oauthClient.cimdClient to true and settings.oauthClient.cimdUrl to the document URL, and you omitredirect_uris, grant_types, response_types and token_endpoint_auth_method β Okta reads them from the document instead, fetching it when the client requests a token. Three properties are validated: client_id must exactly match the URL Okta requests, there must be a jwks_uri or an inline jwks, and redirect_uris must be a non-empty array even for apps with no redirect-based flow. The URL itself must be HTTPS with a path, must be 2048 characters or fewer, must not resolve to an internal address, and can belong to only one app integration per org. The architectural consequence is the part worth internalising: credential ownership moves from the IdP admin to the application owner, and the authorization server's job shifts from storing a secret to resolving a name.
π¬ Deep Dive
Practitioner trap: you will treat the CIMD URL as a name and it is a byte string. Okta's guide is explicit that matching is exact and literal, wildcards and patterns are unsupported, and https://partner.example.com/app and https://partner.example.com:443/app are treated as different URLs β the same simple-string-comparison rule the draft imposes on the identifier. Add a trailing slash in your deployment template and you have minted a second client that Okta has never heard of. The same exactness governs redirects: per RFC 9700 the server must require registered redirect URLs and must require an exact match by simple string comparison, where "registration" now means "whatever your document said at the moment the server fetched it". A port silently normalised away by a reverse proxy, a CDN that rewrites the path, a staging template that appends / β each is an authorization failure that looks nothing like a configuration error. And the non-empty redirect_uris requirement bites exactly where you least expect it: a machine-to-machine client with no browser flow still needs the array present.
Staff-level framing: conversion is the risk, not configuration. Okta documents the conversion of an existing app integration to CIMD as irreversible β you cannot convert back to an Okta-generated client ID β and it is not a metadata flip. Okta deletes the existing client, its secret and any stored JWKS keys; sets the profile attribute to null; revokes refresh tokens issued to the previous client ID; removes Universal Logout and Single Logout configuration along with any network zone bound to the previous client ID; and disables Federation Broker Mode. Universal Logout and Single Logout then do not apply to CIMD app integrations at all. Read that against your incident runbook: if "revoke everything for this client" currently means Universal Logout, converting that integration to CIMD deletes the lever while keeping the obligation. CIMD is also limited to custom OIDC app integrations β not OIN, SAML, SWA or SCIM β so it cannot be your uniform registration story. The governance framing for an architecture review is therefore not "should we adopt CIMD" but "which classes of client do we move, what replaces logout for them, and who signs off that the old client ID dies at a coordinated moment with the app owner". The blast radius of getting that wrong is every refresh token the integration holds.
Your login path acquires a new outbound dependency, and the spec knows it. The authorization server must not automatically follow HTTP redirects, the response must be 200 OK with anything else treated as an error, it should fetch automatically and should periodically re-fetch, it may cache while respecting RFC 9111 cache headers but must not cache error responses or malformed documents, and it should limit how much it reads β the draft's recommended maximum is 5 kilobytes β treating a response that hits the limit as an error. If the fetch fails the server should abort the authorization request. Pair that with the line in Okta's guide that it validates only the URL at registration, not the document it points to, and the operational shape is clear: a document that 404s, drifts or grows past the read cap does not fail at registration time, it fails at token time, for that one client, in production. Your CIMD endpoint is now a tier-one service with a tier-one availability target, and nothing in the registration flow will tell you that.
SSRF is the named new attack surface, because the authorization server now makes outbound HTTPS requests to URLs supplied by strangers. The draft requires that the server must not fetch the Client Identifier URL, or any URL inside the document, that resolves to special-use IP addresses defined in RFC 6890; a loopback exception exists only for development or testing deployments where the server itself runs on loopback and must not apply in production. It further says servers should use network policies to block special-use addresses and should only fetch or parse URLs with known supported schemes, rejecting things like javascript:. Two more edges live nearby: changes to jwks or jwks_uri content may, at the server's discretion, trigger revocation of previously issued tokens or user consent β so key rotation becomes a potentially session-breaking operation you schedule rather than automate blindly β and where a server supports both self-generated and CIMD clients, generated client_id values should not start with https://, which is the kind of rule that only exists because someone was nearly confused into a very bad day.
Discovery is advertised with the boolean client_id_metadata_document_supported in authorization server metadata (RFC 8414), whose purpose is to let clients avoid redirecting users to servers that do not support the specification. Worth flagging honestly: in revision -02 the normative language around that property reads inconsistently β Β§6 states the server must include it while the property is also described as optional β so client code that branches solely on its presence is betting on a sentence that is likely to change before the draft becomes an RFC. The draft also still carries a TBD for a possible client_id_expires_at property, which is not yet defined. Treat both as moving parts: build the fetch-and-validate path now, keep the capability-detection branch soft, and re-read the Datatracker page before you harden anything against section numbers.
The agent case is why this shipped when it did. A CIMD URL attached to an AI agent is also added to the app configured on that agent's User access tab, and once an app integration is bound to an AI agent the cimdUrl can no longer be changed through the Apps API β you configure it on the agent instead. Okta's own positioning is that admins register a URL, developers control authentication at that endpoint, and Okta authenticates agents at runtime without storing credentials, which removes the manual public-key exchange and rotation handoff between admin and agent operator. That is the registration half of a story this dashboard has been tracking from the token half all year: one less static credential in the agent's hands, at the cost of one more URL your authorization path depends on. Worth reading alongside today's AI pill, which shows the same agent workloads being pushed onto asynchronous inference tiers where a tool call can execute up to 24 hours after submission β a client whose definition is re-fetched per token request and a token that must outlive a queue are two halves of the same lifetime problem.
# CIMD end to end. Placeholders only; nothing here was executed against a tenant.
# ---- 1. The document you host. This IS the client definition. --------------
# GET https://YOUR_APP_DOMAIN/oauth/client-metadata.json -> 200, no redirect,
# JSON, recommended read cap 5 KB, cache headers honoured (RFC 9111).
{
"client_id": "https://YOUR_APP_DOMAIN/oauth/client-metadata.json",
"client_name": "Fulfilment Agent",
"client_uri": "https://YOUR_APP_DOMAIN",
"token_endpoint_auth_method": "private_key_jwt",
"jwks_uri": "https://YOUR_APP_DOMAIN/.well-known/jwks.json",
"grant_types": ["authorization_code", "refresh_token"],
"response_types": ["code"],
"redirect_uris": ["https://YOUR_APP_DOMAIN/callback"]
}
# client_id MUST equal the URL the AS fetched (simple string comparison).
# redirect_uris MUST be a non-empty array even with no redirect-based flow.
# MUST NOT appear: client_secret, client_secret_expires_at, private keys,
# or any shared-symmetric-secret token_endpoint_auth_method.
# ---- 2. Register the app integration in Okta ------------------------------
POST /api/v1/apps
{
"name": "oidc_client",
"label": "Fulfilment Agent (CIMD)",
"signOnMode": "OPENID_CONNECT",
"settings": {
"oauthClient": {
"application_type": "web",
"cimdClient": true,
"cimdUrl": "https://YOUR_APP_DOMAIN/oauth/client-metadata.json"
}
}
}
# Omit redirect_uris / grant_types / response_types / token_endpoint_auth_method
# -- Okta reads them from the document. URL: HTTPS, has a path, <= 2048 chars,
# not an internal address, unique to one app integration in the org.
# Converting an EXISTING app instead: PUT /api/v1/apps/{appId} with the same
# two fields. That conversion CANNOT be undone (see Staff-level framing).
# ---- 3. Scope the authorization server policy to the CIMD client ----------
# In the policy's client conditions, use the cimd array -- not clients:
"cimd": [ { "matchType": "APP", "value": "TEST_APP_INSTANCE_ID" } ]
# ---- 4. Runtime: the URL travels as client_id -----------------------------
POST /oauth2/YOUR_AUTH_SERVER_ID/v1/token
grant_type=authorization_code
code=<CODE>
client_id=https://YOUR_APP_DOMAIN/oauth/client-metadata.json
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
client_assertion=<PRIVATE_KEY_JWT>
# Okta fetches the document on the token request. Verify resolution by
# decoding the access token and checking that "cid" is the CIMD URL.
# ---- 5. Capability detection (keep this branch soft) ----------------------
GET /.well-known/oauth-authorization-server
-> "client_id_metadata_document_supported": true
Doc-verified against the Okta CIMD app registration guide and draft-ietf-oauth-client-id-metadata-document-02, Oct 2026, for the document properties and prohibitions, the cimdClient/cimdUrl settings and the omitted fields, the URL constraints, the cimd policy-condition shape with matchType: APP, the cid verification step and the client_id_metadata_document_supported metadata property. Endpoint paths follow Okta's documented patterns; placeholder values throughout, and no request in this block was executed.
π§ Recall
A week ago the Entitlement Management pill described the bundle as the virtual role, and pinned down its shape in the Governance API: a required target of type APPLICATION whose externalId is the Okta app.id, plus an array of entitlement and value ids. Given that target, why can an entitlement bundle never be the cross-app role your org chart actually wants β and what does that have in common with the scoping rule CIMD imposes on a document URL?
Show answer
Because the bundle's target is a single application. Its externalId names one app.id, so a bundle is a per-app virtual role by construction; anything spanning two apps has to be composed one layer above the bundle, and the bundle layer stays deliberately narrow so certification and access-request flows always have an unambiguous resource to point at. CIMD enforces the same kind of one-to-one discipline from the other direction: a given CIMD URL can be registered to only one app integration per org, and the URL is compared as an exact byte string, so the identifier can never fan out to cover several clients. In both cases the model refuses to let one object mean "several things", and in both cases the composition you actually want has to be built explicitly above it rather than smuggled into the identifier.
πΌ Market Signal
This is not a draft waiting for adopters β it is in production in Okta and already the preferred path in the ecosystem driving the demand. Okta shipped it in the 2026.09.1 Update 1 release, with deployment starting September 28, and the Okta Identity Engine production release notes, Oct 2026 describe it in one line: "You can now register AI agents with a CIMD so that they can identify themselves with a URL instead of a static client ID." The pull is coming from MCP. The MCP authorization specification (draft), Oct 2026 now states that "Authorization servers and MCP clients SHOULD support OAuth Client ID Metadata Documents" while Dynamic Client Registration is demoted to MAY and, in the spec's own words, "is deprecated and retained for backwards compatibility with authorization servers that do not support Client ID Metadata Documents" β a normative inversion of the default registration mechanism for the fastest-growing class of OAuth client. The economic argument behind that inversion is stated plainly by Auth0 engineering, Nov 2025, which tracks the proposal as SEP-991 and frames DCR as stateful and operationally heavy: 10,000 instances of one app create 10,000 client records, an open /register endpoint is a flooding target, and nothing stops an attacker registering a client named to look official. For anyone positioning as an identity architect, the readable signal is that client registration β a settled, boring layer for a decade β is being redesigned in public right now, by an Okta author, because agents broke its assumptions.
β‘ Action This Week
Publish and validate one CIMD document. Do not convert anything in Okta β the conversion is irreversible, so this week's output is the artifact and the evidence, not a changed tenant. Pick a single internal OIDC client you own. Host a JSON document at an HTTPS URL with a path component, set client_id to that exact URL, add jwks_uri, a non-empty redirect_uris array and token_endpoint_auth_method: private_key_jwt, and confirm by inspection that no client_secret, client_secret_expires_at or private key material appears anywhere in it. Then test it as an authorization server would: curl -sD - the URL and verify a bare 200 with no redirect, measure the body with wc -c against the 5 KB recommended read cap, check the URL is 2048 characters or fewer, and read your own Cache-Control header out loud β that value now decides how long a stale client definition stays authoritative. Finish with ten lines in the runbook: this URL is on the token path, here is its owner, here is its availability target, and here is what happens to live sessions if we rotate the keys it names. Done = a reachable CIMD URL, a terminal transcript showing 200 / no redirect / byte count, and a runbook entry naming the owner and the availability target. The write-up is a natural LinkedIn post, because almost nobody has published the operational checklist for hosting a client definition instead of storing one.
Latency Is a Line Item Now: Batch, Flex and Fast Mode Make the Same Weights Cost 4Γ Apart
π‘ Key Concept
Most teams still make one decision about inference cost β which model β and treat latency as whatever falls out. The providers have stopped modelling it that way. Latency is now sold as a separate, explicitly priced axis on top of the model, and the spread is not a rounding error. Take Claude Opus 5.5 at its standard rate of $4 / $20 per million input / output tokens. Submit the identical request through the Message Batches API, Oct 2026 and it bills at $2 / $10, because "all usage is charged at 50% of the standard API prices". Submit the same request with speed: "fast" under fast mode, Oct 2026 and it bills at $8 / $40. Same weights, same capabilities β the docs are explicit that fast mode "runs the same model with a faster inference configuration. There is no change to intelligence or capabilities" β and a 4Γ price range end to end, decided entirely by how long you are willing to wait.
The tiers are not symmetric, and the asymmetries are where the engineering lives. Batch is asynchronous and bounded: a batch is limited to 100,000 requests or 256 MB, whichever comes first; most batches complete within 1 hour but results are accessible "when all messages have completed or after 24 hours, whichever comes first", and anything still unprocessed at that point expires. Almost everything can go in β vision, system messages, multi-turn, extended thinking, and tool use "including all server tools (web search, web fetch, code execution, MCP connectors, advisor, and tool search)" β while exactly three parameters are rejected with a validation error: stream: true, speed, and max_tokens: 0. Results are retained for 29 days after creation and arrive in any order, so you key by custom_id or you key by nothing.
OpenAI's flex processing sits in the middle and is the more interesting shape, because it keeps the synchronous request/response contract while buying batch economics. Per the OpenAI flex processing guide, Oct 2026, you set service_tier to flex on a Responses or Chat Completions request; tokens are billed at Batch API rates, and in exchange you accept "slower response times and occasional resource unavailability". The failure contract is the product: a 429 with "Resource Unavailable" means flex has no capacity, and the docs state "You will not be charged when this occurs". The documented escape hatch is a one-line downgrade β retry with service_tier set to auto, or drop the parameter entirely, and the request runs at standard processing and standard price. That is the whole design pattern of this generation of inference products: pick a deadline, pick a failure policy, and the tier follows.
π¬ Deep Dive
Practitioner trap: you will read "most batches complete within 1 hour" as the SLA and build around it, and then discover that the number which actually governs your pipeline is 24. The docs say batches expire if processing does not complete within 24 hours, that rate limits apply both to Batches API HTTP calls and to the number of requests inside a batch waiting to be processed, and β the sentence to paste into your design doc β that "processing may be slowed down based on current demand and your request volume. In that case, you may see more requests expiring after 24 hours." Expiry is therefore a load-correlated partial failure: it arrives precisely when you are busiest, it lands per request rather than per batch, and it surfaces as a result whose type is expired rather than as an exception. You are not billed for those, which is the consolation prize for a pipeline that silently returns 94% of its rows. Two smaller traps ride along: results come back in any order so position-based reassembly is a bug waiting for a slow request, and the docs warn that "because of high throughput and concurrent processing, batches may go slightly over your Workspace's configured spend limit" β batch is a discount, not a cost ceiling.
Staff-level framing: tiering is a governance artifact, not a tuning knob, and the deliverable is a route-to-tier map that someone other than you can audit. For each production route, write down four things: the p95 deadline the business actually has (not the one the UI implies), the failure policy when the deadline is missed, the tier that follows from those two, and the measured cost per completed task at that tier. The map is what makes the discount real β a workload only earns batch pricing if it is genuinely deadline-free, and a route only earns fast mode's 2Γ premium if someone can name the revenue or the abandonment it protects. It is also where the audit trail lives: usage.speed on every response reports whether a request actually ran fast or standard, and a batch's processing_status plus per-request result types (succeeded, errored, canceled, expired) give you the completion evidence. Without that map the organisation's default is the most expensive tier applied uniformly, because no individual engineer has standing to approve a slower answer for someone else's feature.
Tier choice and cache strategy are coupled, and the coupling is invisible until it costs you. Fast mode's own documentation states that switching between fast and standard speed invalidates the prompt cache, because requests at different speeds do not share cached prefixes β so a naive "try fast, fall back to standard on 429" retry loop pays a full cache miss on every fallback, and the fallback fires exactly when the system is under load. In the other direction, the batch docs recommend the 1-hour cache duration for batches with shared context, precisely because a batch can take longer than the default 5-minute ephemeral window. The general rule that falls out: any mechanism that changes which pool serves your request also changes which cache your prefix lands in, so treat tier, speed and cache TTL as one decision rather than three.
Flex's operational contract is a timeout story, not just a price story. The OpenAI guide notes the default SDK timeout is 10 minutes and its own examples raise it to 15 minutes (900.0 seconds in Python), warns that timeouts are more likely under flex because of slower processing, and states that the official SDKs automatically retry a 408 Request Timeout twice before raising. Its retry guidance splits cleanly on what you are optimising: use exponential backoff when the workload tolerates delay, since the request can succeed once capacity frees up and costs stay low, or move to standard processing with service_tier: "auto" when completion matters more than cost. Note that flex is documented as in beta with limited model availability, with the supported list on the pricing page rather than the guide β so capability-detect rather than hard-code.
Fast mode is narrower than its name suggests, and the constraints are the useful part. It delivers up to 2.5Γ higher output tokens per second on Claude Opus 5.5, Claude Opus 5 and Claude Opus 4.8 β and the docs are explicit that the benefit is output tokens per second, not time to first token, so it does nothing for the perceived latency of a short answer and everything for a long streamed one. It requires the beta header fast-mode-2026-02-01 and the top-level parameter speed: "fast"; it is Claude API and Managed Agents only, not Amazon Bedrock, Claude Platform on AWS, Google Cloud or Microsoft Foundry; it has a dedicated rate limit separate from standard Opus, surfaced through anthropic-fast-input-tokens-remaining and sibling headers; and it is incompatible with both the Batch API and a Priority Tier commitment. Pricing is $8 / $40 per MTok on Claude Opus 5.5 and $10 / $50 on Claude Opus 5 and Claude Opus 4.8, and it stacks with prompt-caching and data-residency multipliers rather than replacing them.
The identity consequence nobody puts in the design doc: because tool use in a batch includes MCP connectors, a batched request that calls an MCP server must hold a credential that is still valid whenever the provider gets round to running it β which, by the batch contract, can be up to 24 hours after you submitted it. That collides head-on with the short-lived, narrowly scoped agent tokens the IAM side of this dashboard keeps arguing for. The clean resolution is not a longer token: it is to keep authorization-bearing tool calls on the synchronous path and reserve batch for the parts of the workload that touch only your own data, so that token lifetime never has to be stretched to fit a queue depth you do not control.
# Route -> tier map, then the two tier-specific call shapes.
# Placeholders only; nothing here was executed.
# ---- 1. The artifact that actually controls spend ------------------------
# route p95 deadline on miss tier Opus 5.5 $/MTok in/out
# chat-assistant 2 s TTFT degrade to Haiku standard 4 / 20
# long-code-review stream, 60 s show partial fast 8 / 40 (2.5x OTPS, not TTFT)
# nightly-eval-suite none retry tomorrow batch 2 / 10 (50% of standard)
# doc-enrichment best effort backoff + retry flex Batch API rates (OpenAI)
# Same weights in every row. 4x spread between the cheapest and dearest row.
# ---- 2. Batch: submit, poll, reassemble by custom_id ----------------------
import anthropic
client = anthropic.Anthropic()
batch = client.messages.batches.create(requests=[
{"custom_id": "doc-0001",
"params": {"model": "claude-opus-5-5", "max_tokens": 1024,
"messages": [{"role": "user", "content": "Summarise: ..."}]}},
# ... up to 100,000 requests or 256 MB, whichever is reached first
])
# processing_status: "in_progress" -> "ended". Poll; do not assume 1 hour.
while client.messages.batches.retrieve(batch.id).processing_status != "ended":
time.sleep(60)
out, expired = {}, []
for r in client.messages.batches.results(batch.id): # ANY order -- key by custom_id
if r.result.type == "succeeded":
out[r.custom_id] = r.result.message.content
elif r.result.type == "expired": # 24h cap hit; NOT billed
expired.append(r.custom_id)
# Also handle "errored" and "canceled". Results downloadable for 29 days.
# Rejected inside a batch: stream=True, speed, max_tokens=0.
# Shared context across the batch? Use the 1-hour cache duration, not the 5-min default.
# ---- 3. Flex: synchronous contract, batch economics -----------------------
resp = openai_client.with_options(timeout=900.0).responses.create(
model="gpt-6-astra", service_tier="flex", input="Enrich this record: ...")
# 429 "Resource Unavailable" = no flex capacity, and you are NOT charged.
# Tolerant of delay -> exponential backoff. Need it done -> retry with
# service_tier="auto" (or omit the field) and pay standard price.
# ---- 4. Fast mode: opposite direction, same decision ----------------------
msg = client.beta.messages.create(
model="claude-opus-5-5", max_tokens=4096,
speed="fast", betas=["fast-mode-2026-02-01"],
messages=[{"role": "user", "content": "Refactor this module ..."}])
assert msg.usage.speed == "fast" # audit evidence: which tier actually ran
# Falling back fast -> standard invalidates the prompt cache. Budget for that.
Doc-verified against the Anthropic Message Batches, fast mode and OpenAI flex processing documentation, Oct 2026, for the per-tier prices, the 100,000-request / 256 MB / 24-hour / 29-day limits, the processing_status and result-type values, the rejected batch parameters, the service_tier values and the fast-mode-2026-02-01 beta with speed: "fast" and usage.speed. The Python shapes follow the documented SDK surfaces; the route table is illustrative and no call in this block was executed.
π§ Recall
Nine days ago the InferencePool pill made the case that round-robin balancing is quietly deleting your KV cache: with N replicas and connection-level balancing, the chance of landing on the replica that already holds your prefix is roughly 1/N, which is why routing had to become a scheduling decision informed by each replica's internal state. Now move that same workload onto a provider's batch tier. Does KV-cache affinity still matter to you, and if so, which lever is left?
Show answer
It still matters economically, but you have given away the lever that the Endpoint Picker represented: on a managed batch tier you do not choose the replica, you do not see the placement, and there is no equivalent of endpointPickerRef to point at. What survives is the half of cache locality you still own β the prefix itself. Keep the shared context byte-identical across every request in the batch so it is a genuine cacheable prefix rather than N near-misses, and extend the cache window to match the job's actual duration: the batch documentation specifically recommends the 1-hour cache duration for batches with shared context, because a batch can run well past the default 5-minute ephemeral entry. The trade is explicit and usually worth it β you surrender routing control over your own fleet in exchange for a 50% price cut and no scheduler to operate β but it only pays if the prefix is stable, which makes prompt hygiene a cost control rather than a style preference.
πΌ Market Signal
Read the price sheets as a market structure rather than a menu and the direction is unmistakable: frontier providers are segmenting the same model by delivery guarantee, the way airlines segment the same seat. On the discount side, the Anthropic Message Batches documentation, Oct 2026 publishes a complete batch price list at 50% of standard β Claude Opus 5.5 at $2 / $10 per MTok, Claude Sonnet 5.5 at $1 / $5, Claude Haiku 5.5 at $0.05 / $0.25 for prompts up to 100,000 tokens β against standard rates of $4 / $20, $2 / $10 and $0.10 / $0.50 respectively. On the premium side, Anthropic's fast mode documentation, Oct 2026 prices the same Claude Opus 5.5 at $8 / $40 for up to 2.5Γ output tokens per second, and gates it behind a research preview with an account manager or a waitlist β which tells you demand is being rationed, not merely priced. OpenAI is building the same ladder from the other end: the OpenAI flex processing guide, Oct 2026 bills a synchronous request at Batch API rates in exchange for slower responses and occasional unavailability, naming model evaluations, data enrichment and asynchronous workloads as the target. For an architect, the hireable skill here is not prompt engineering and not model selection β it is being the person who can produce the route-to-tier map and defend it, because a 4Γ spread on the same weights is a budget line that a CFO can see and an engineering leader currently cannot explain.
β‘ Action This Week
Build the route-to-tier map for your top five LLM routes, then prove one row of it. The map is a five-column table and it takes forty minutes: route name, the p95 deadline the business actually has, what happens when that deadline is missed, the tier that follows, and today's measured cost per completed task. Judge cost per completed task rather than per request, because a cheaper tier that needs a retry is not cheaper. Then take the one row that is genuinely deadline-free β the nightly eval suite, a backfill, a bulk enrichment job β and move it to batch for real: submit it, poll processing_status until ended, and count the results by type, keying strictly on custom_id rather than position. Write down the three numbers that come out: wall-clock to ended, the count of expired requests, and the billed cost against the standard-tier equivalent. If anything expired on a first attempt at normal volume, that row is not as deadline-free as you assumed and the map needs correcting. Done = a five-row tier map committed to the repo, one route migrated to batch, and the measured wall-clock, expiry count and cost delta recorded beside it. That table, with one real measurement in it, is a stronger portfolio artifact than another agent demo β it is the kind of thing that gets quoted in someone else's budget review.
Okta Agent Gateway: The Agent Never Holds the Credential β and Every Tool Call Is a Brand-New Session
π‘ Key Concept
Every agent integration you have shipped so far has the same shape: the agent holds a credential for each tool it can touch. A Slack token here, a Jira key there, a long-lived OAuth refresh token in a secrets manager. The credential is the authorization, so the agent's blast radius equals the union of everything it was ever handed, the audit trail belongs to whatever service account the credential names, and revocation means hunting down copies. Okta Agent Gateway, currently documented as Beta, inverts that. Per the Okta Agent Gateway concepts documentation, Oct 2026, it is an identity-native proxy that "aggregates tools from multiple remote MCP servers behind a single Okta-secured endpoint, enforces identity and policy on every tool call, and produces a unified audit trail." The sentence that matters architecturally is shorter: "The AI agent never holds a credential for the remote service."
The subject of that policy is not a user and not an app service account. Agents register as WorkloadPrincipals in Universal Directory β "a first-class managed identity in Okta that's separate from human users and traditional app service accounts" β and the Okta AI agents API reference, Oct 2026 gives that identity a real lifecycle rather than a flag: OPERATION-STARTED, then STAGED ("ready to be activated. Initial state after successful registration"), then ACTIVE ("can authenticate to authorization servers and connect to resources"), with INACTIVE meaning it "can't authenticate or connect to resources", and DELETED. The deployment splits into two planes, and the split is the design. A control plane in Okta, where admins define gateways, resource connections, exposed tools and authorization policy. A data plane that is "an Okta-hosted relay container that handles live AI agent traffic" β it validates inbound tokens, loads config from the control plane, fetches downstream credentials by token exchange, injects them, and proxies onward. Agents never see the real tool endpoint; they speak to a virtual MCP server at https://{subdomain}.gateway.okta.com/mcp/{resourcePath}, each vMCP "protected by an Okta custom authorization server" against which "the gateway validates all inbound AI agent tokens."
Follow one tool call and the whole authorization model falls out. The agent obtains a token via the authorization code flow with PKCE from the vMCP's custom authorization server β a token scoped to the gateway, not to Jira. The relay then exchanges it at the org authorization server, which "presents the AI agent's access token as the subject token" and returns a credential for the upstream service, which the relay injects as a Bearer. What authorizes that exchange is a first-class object: "a delegation link declares that a specific OAuth 2.0 client (the MCP client app) is authorized to delegate to a specific vMCP on behalf of users." On first use, when "the user has no stored refresh token for the remote MCP server, the org authorization server returns an interaction_required response with a consent URL." So consent stays with the human, the credential stays with Okta, and the agent holds nothing but a short-lived ticket to the front door β while "audit logs attribute tool calls to the AI agent regardless of credential rotation." That last clause is the one to put in a control description: attribution survives credential churn, which is exactly what a vaulted-secret design cannot promise.
Cross-pollination: today's AI pill is the MCP Tasks extension, where a slow tools/call returns a durable taskId you poll. Read it directly against this gateway's documented limitation that every tool call opens a new upstream session β a relay that terminates MCP per call is precisely the component that turns a long-running task into an orphan, and tasks/get is not a tool call, so it does not travel the path this gateway proxies.
π¬ Deep Dive
Practitioner trap: you will write "deactivate the agent" as your containment step, and it will not contain anything. The documented limitation is explicit β "revoked AI agent tokens remain valid at the gateway until they expire naturally" β so an agent you deactivated keeps calling tools for the remaining lifetime of a token it already holds. There is an immediate lever, and it is a different object: of the gateway-to-upstream resource connection, the docs say "deactivating this connection immediately revokes that AI agent's access." Two revocation paths, two latencies, and the fast one is the one nobody writes in the runbook. Three more edges sit on the same path. Sessions: "every tool call initiates a new session with the remote MCP server. MCPs that require session state, such as multi-step workflows, resource subscriptions, and paginated responses, break silently" β note silently, which means your failure mode is a wrong answer rather than a 500, and no amount of gateway logging will flag it. Network direction: "the gateway relay makes outbound calls from the Okta cloud. Upstream MCP servers that run inside a private network aren't reachable," so the internal tools where your agents would be most useful are precisely the ones out of scope until you publish them. And registration: "AI agents that rely on DCR for OAuth 2.0 client registration can't use the gateway without reconfiguration," which quietly excludes a good share of the MCP client ecosystem that defaults to dynamic client registration. Also plan the activation step rather than discovering it: a vMCP is created INACTIVE and "must be explicitly activated before AI agents can connect."
Staff-level framing: price this as a control point, not a feature, and then argue about where the control point lives. The win is real and auditable β one chokepoint where every tool call is authorized against a named non-human identity, credentials held by the IdP rather than the agent, and attribution that survives rotation. The constraints are equally real and they are architectural, not configuration: "the gateway is hosted in the Okta Workforce domain. You can't run your own copy of the gateway," upstreams "must accept OAuth 2.0 Bearer tokens" (no API keys, no mTLS, no custom headers), and "the gateway calls remote MCP servers, not raw REST or GraphQL APIs," so every tool you want governed must first be wrapped in an MCP server somebody owns and patches. That last clause is a staffing decision disguised as an integration detail: adopting this gateway means standing up and operating an MCP layer over your own estate, and the team that does that work becomes the de facto authorization authority for agents. Scope the first cut accordingly. Put SaaS tools that already expose remote MCP servers behind it, keep the stateful and private-network ones out, and set the retention expectation honestly β the admin view covers "your org's tool calls and gateway activity within the last 30 days" per the Okta Agent Gateway admin documentation, Oct 2026, so if your evidence requirement is a year, you are streaming these events to a SIEM on day one, not after the first audit. And because it is Beta, the honest control statement this quarter is "we are consolidating agent tool access behind a single policy point for a named set of SaaS tools," not "agents can only reach what we allow."
The boundary is the shape of MCP itself, which makes this a protocol bet rather than a product bet. This gateway can only authorize what MCP can express, and it narrows even that: "MCP resources, prompts, sampling, completion, logging, and roots aren't supported." Tool calls, and nothing else. Draw that honestly on a target-state diagram and a seam appears β the gateway governs the tool-call surface, while anything an agent does through a non-MCP path, a vendor's own connector, or a model provider's hosted tools is governed somewhere else or not at all. The reason to take the bet anyway is that Okta is standardising the layer underneath rather than keeping it proprietary. Its Agent SSO announcement, Aug 2026 states that Cross App Access "extends OAuth and is formally incorporated as the official Enterprise-Managed Authorization extension for the Model Context Protocol" β and that extension is indeed tracked first-party, as io.modelcontextprotocol/enterprise-managed-authorization, described as "centralized access control via enterprise IdP" in the MCP extension support matrix, Oct 2026. So the strategic claim in that release β "just as Single Sign-On centralized human access decisions at the identity provider, Agent SSO moves agent authorization from individual applications to the enterprise identity provider" β has a spec behind it. The architect's question is therefore not "Okta or not" but which of two enforcement styles you are buying: a proxy in the data path, which sees every call and becomes a dependency, or an IdP-issued token the tool validates itself, which keeps the data path clean and pushes enforcement into each tool. Agent Gateway is the first; Cross App Access is the second. Most estates will end up running both, and the design work is deciding which tools get which.
# Okta Agent Gateway: one tool call, end to end, as the docs describe it.
# Placeholders only. Nothing here was executed against a tenant.
# ---- 1. The agent is an identity with a lifecycle, not a secret ----------
# Registers as a WorkloadPrincipal in Universal Directory. Paths are shown
# relative, exactly as the AI agents API reference shows them.
POST ../ai-agents # -> STAGED
POST ../ai-agents/TEST_AGENT_ID/activate # -> ACTIVE
POST ../ai-agents/TEST_AGENT_ID/deactivate # -> INACTIVE
DELETE ../ai-agents/TEST_AGENT_ID # -> DELETED
# ---- 2. The agent's token is for the GATEWAY, never for the tool --------
# Authorization code + PKCE against the vMCP's custom authorization server.
# The agent then speaks MCP to the virtual server only:
# https://{subdomain}.gateway.okta.com/mcp/{resourcePath}
# ---- 3. Per tool call, the relay exchanges that token (RFC 8693) --------
curl -s -X POST 'https://YOUR_OKTA_DOMAIN/oauth2/v1/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=urn:ietf:params:oauth:grant-type:token-exchange' \
--data-urlencode 'subject_token=<AGENT_ACCESS_TOKEN>' \
--data-urlencode 'subject_token_type=urn:ietf:params:oauth:token-type:access_token' \
--data-urlencode 'requested_token_type=urn:ietf:params:oauth:token-type:access_token' \
--data-urlencode 'audience=https://upstream.example.com/mcp'
# The agent's access token is the SUBJECT token: the exchange asserts
# "on behalf of", and a delegation link is what authorizes it at all.
# -> { "access_token": "...", "issued_token_type":
# "urn:ietf:params:oauth:token-type:access_token", "token_type": "Bearer" }
# First use, no stored refresh token for the upstream -- consent, not failure:
# -> { "error": "interaction_required", ... consent URL ... }
# ---- 4. Containment: the two levers are NOT equivalent ------------------
# Deactivating the AGENT: tokens already issued stay valid
# at the gateway until they expire.
# Deactivating the RESOURCE CONNECTION: "immediately revokes that AI
# agent's access."
# Put the second one in the runbook. Put the first one in the ticket.
Doc-verified against the Okta Agent Gateway concepts documentation and the Okta AI agents API reference, Oct 2026, for the vMCP endpoint URL format, the agent lifecycle statuses, the relative endpoint patterns those references show, the subject-token role in the exchange, the interaction_required consent response and both revocation behaviours; and syntax-checked against RFC 8693, OAuth 2.0 Token Exchange, Jan 2020 for the grant_type, subject_token, subject_token_type, requested_token_type, audience and response parameter names. The curl call is composed, not executed: the relay performs this exchange internally, so treat it as a readable model of the flow rather than a client you ship.
π§ Recall
A week ago the Deferred Token Response pill argued that OAuth was moving "wait for a human" out of the grant and into the token endpoint, so that any grant could inherit asynchrony and the authorization server could decide per request β answering with authorization_pending rather than a token. Agent Gateway has its own interrupt: on first use with no stored refresh token for the upstream, the org authorization server answers interaction_required with a consent URL. Both are an authorization server saying "not yet, a human is needed." Why are they not the same mechanism, and which one would you reach for to put an approval gate in front of a single high-risk tool?
Show answer
They sit at different points in time and carry different semantics, and conflating them is how teams end up with an approval gate that only ever fires once. interaction_required here is a provisioning interrupt: the gateway has no stored credential for that user against that upstream, so a human must authenticate and consent so a refresh token can be stored. It is a one-time bootstrap per user per resource, and once consent exists, it never fires again β which is exactly what you want for onboarding and exactly wrong as a control on a risky action. Deferred Token Response is a per-request interrupt chosen by the authorization server on live signals: this agent, this scope, this amount, this hour. It can fire on the thousandth call and not the first. So for an approval gate on one high-risk tool, consent storage is the wrong lever, because the gateway's own design deliberately removes the human from the path afterwards β the whole point is that the agent then calls without interaction. The honest options today are to keep that tool off the gateway and behind a grant that asks a human every time, or to put the decision upstream inside the MCP server itself where it can refuse and demand confirmation. Worth being precise about what is shipped and what is drafted: the Agent Gateway behaviour is in Okta's Beta documentation now, while Deferred Token Response is an IETF OAuth working group draft β so the per-request pattern is the direction of travel, not something to design a Q4 control around. The reusable idea is the taxonomy: ask of every human-in-the-loop interrupt whether it gates enrolment or each use. Only the second is a control.
πΌ Market Signal
The gap this product sells into is measured, and the measurement is unusually candid because Okta published it about its own buyers. Its AI Agents at Work 2026 research, May 2026 β 292 executives and 492 knowledge workers across seven countries, fielded by Apprize360 in March 2026 β reports that "92% of executives surveyed indicated that autonomous AI agents are already in widespread (58%) or moderate (35%) use," that "58% of executives reported that their company experienced an AI-related security issue or close call within the last 12 months," and that only "34% of executives reported that their organization always applies the same security controls" to agents as to humans. Hold that last number against another from the same study: "96% of executives are confident in their organization's IAM to secure non-human identities." A two-thirds control gap alongside near-universal confidence is not a research curiosity; it is a description of where consulting money goes in 2027, because the correction comes from an incident or an audit finding, not from a product launch. The commercial read is that Okta is pricing the entry level at zero to win the layer: per its Agent SSO press release, Aug 2026, "Agent SSO is generally available today and included in core Okta SSO at no additional cost," shipped with Cross App Access implementations for Anthropic (Claude), Slack, Notion and Datadog, across a base the company puts at "more than 20,000 customers." Free and bundled means adoption will outrun design β tenants will switch it on long before anyone has decided which tools belong behind a proxy and which should validate IdP-issued tokens themselves. Career read for a fractional architect: the sellable deliverable is not a gateway deployment, it is the written decision of enforcement style per tool, with the Beta constraints and the 30-day activity window stated as risks rather than discovered later. That is a two-to-three week fixed-scope engagement with an artifact at the end, and right now almost nobody has a reference answer β which is the only window in which design opinions command a premium.
β‘ Action This Week
Do not deploy anything. Inventory instead, because the inventory is the scarce artifact and it fits in two hours. List every AI agent or assistant already reaching a tool in your estate β the coding agent with a repo token, the chat assistant wired into the ticketing system, the internal bot with a Slack app token. For each one, fill five columns: what credential it holds, where that credential physically lives, which identity the tool's audit log actually records when the agent acts, whether the upstream exposes a remote MCP server reachable from the public internet, and how long a revocation takes today measured end to end. Then sort by the fifth column and mark each row with one of three verdicts β proxy (stateless, public, OAuth Bearer upstream: a candidate to put behind a gateway), token (the tool can validate an IdP-issued token itself, so enforcement belongs there), or neither (stateful, private-network, or API-key-only: it stays as it is and you say so out loud). The sorting is the work; the tooling is incidental. Done = a one-page table of every agent-to-tool edge you actually have, each tagged proxy / token / neither, with the measured revocation time per row and one sentence naming the edge you would fix first and why. The portfolio move writes itself and does not leak anything: the redacted table plus the three-verdict rule is a genuinely useful LinkedIn post, because the common version of this discussion is a vendor diagram, and almost nobody publishes the uncomfortable column β how long it takes you to actually cut an agent off.
MCP Tasks: The Tool Call Stops Blocking and Becomes a Durable Handle β Which You Can Still Lose
π‘ Key Concept
A tool call is a request/response pair, and that assumption quietly caps what an agent can do. CI pipelines, batch imports, model training runs and anything needing a human approval do not finish inside a request. The usual workaround is to hold the connection open, and the MCP Tasks extension documentation, Oct 2026 is blunt about why that fails: "blocking ties up a connection for the duration of the operation. Many clients and transport intermediaries impose timeouts that make this impractical beyond a few seconds." The other workaround is worse β return the job id as a string in the tool's text output and let the model remember to poll β which makes correctness depend on prompt obedience. Tasks replaces both with a protocol primitive. A server that decides a request will be long-running answers with a durable handle instead of the result, and the client polls.
The mechanics are small enough to hold in your head. The extension is io.modelcontextprotocol/tasks, specified in the modelcontextprotocol/ext-tasks repository, Oct 2026, which marks version 2026-07-28 as Stable and traces it to SEP-2663. Clients declare support per request inside _meta under io.modelcontextprotocol/clientCapabilities; servers advertise it in the capabilities returned by server/discover. When a server defers, it returns a CreateTaskResult β identified by resultType: "task" β and the ext-tasks TypeScript schema for 2026-07-28, Oct 2026 gives the object exactly: taskId: string, status: TaskStatus, optional statusMessage, createdAt and lastUpdatedAt as strings, ttlMs: number | null, and optional pollIntervalMs. TaskStatus is a five-member union β working, input_required, completed, failed, cancelled β of which the last three are terminal: "once reached, the task's state does not change." The client then calls tasks/get, and on completed the result field "contains what the original request would have returned synchronously." Crucially, the choice is the server's: "the server decides per-request whether to create a task," so there is "no per-tool warmup or per-request flag" β the client opts in once and must handle whichever shape arrives.
The part worth slowing down for is input_required, because it changes where human-in-the-loop lives. When a task needs a confirmation, it moves to that status and the tasks/get response carries an inputRequests map of elicitations; the client answers with tasks/update carrying inputResponses. The design note is the payoff: this happens with "no second connection or unsolicited server-to-client messages required." Approval stops being a push problem β no webhook, no callback URL, no held socket, no server-initiated message racing a client that has gone away β and becomes a state you discover on the next poll. That is what makes this composable with ordinary web infrastructure, and it is the same bet the base protocol now makes: the MCP specification 2026-07-28, Oct 2026 lists the base protocol as "stateless, self-contained requests" with "per-request capability negotiation." Statelessness in the transport, durability in the task. Cancellation is the one place the protocol declines to promise anything: tasks/cancel is "cooperative β the server acknowledges the intent but is not obligated to stop the work."
Cross-pollination: today's IAM pill is Okta Agent Gateway, whose documented limits are "tools only" and a new upstream session per tool call. A task-augmented tools/call survives that; the tasks/get that collects the answer is not a tool call, so a proxy built around the tool-call surface is not on the path that completes the work.
π¬ Deep Dive
Practitioner trap: your client now has a polymorphic return type, and the compiler will not tell you. A supported request can come back as the ordinary result or as a CreateTaskResult, chosen by the server at request time, so every call site that assumed one shape is a latent bug β and the first symptom is not an exception but an agent that confidently reports a job "done" because it read a task envelope as content. Four sharper edges hide underneath. First, there is no tasks/list in the stable schema: the only reference to the work is the taskId the server handed you, which is why the spec tells clients to "store task IDs durably so polling can resume after a client crash or restart." Lose it and the work is unreachable, still running, and still billing. Second, durability is bounded and mutable: ttlMs is "time-to-live duration from creation in integer milliseconds, null for unlimited. The server may discard the task after the TTL elapses. This value MAY change over the lifetime of a task" β so your retention assumption can be revised by the other side mid-flight. Third, pollIntervalMs carries the same "MAY change" clause and clients "SHOULD honor this value," which means a fixed interval in your retry loop is both non-compliant and a self-inflicted thundering herd. Fourth, cancellation does not cancel: it is cooperative, and "the task may still reach a non-cancelled terminal status," so a UI that greys out a button on acknowledgement is lying to the user. Server side, the symmetric trap is returning a task to a client that never declared the extension β the spec's instruction is "never return a task to a client that did not declare support," and because capability negotiation is per request, you must check it on every request rather than once at session start.
Staff-level framing: the real change is that a tool call stops being a single authorization moment and becomes a span, and almost nothing in your stack is modelled for that. At tools/call you have a caller, a token, a scope and a policy decision. At tasks/get, minutes or hours later, you have a taskId β and the token that authorized the work may have expired, the user may have been deprovisioned, the agent may have been deactivated, and the approval recorded in input_required was given by whoever happened to be polling. Three governance questions follow, and they are yours to answer because the extension deliberately does not: who may fetch a task created by someone else, what happens to in-flight tasks when the initiating identity is revoked, and which identity the audit record names β the one that started the task or the one that collected it. Write those down before you ship, because a durable handle is a bearer capability: anyone holding a taskId can call tasks/get against it, so treat task identifiers as credentials, log their issuance, and never let them leak into model-visible text where they will be echoed into a transcript. Cost has the same shape. Tasks are genuinely good for the context window β the agent keeps a short id instead of streaming interim output β but they move spend out of the request that can be attributed to it, so an abandoned task is an orphaned bill, and an agent that retries a deferred call because it mishandled the envelope duplicates the work rather than resuming it. Make orphan reaping and duplicate-submission idempotency keys part of the server design, not an operational afterthought.
Adoption is where this gets uncomfortable, and you should design around the gap rather than hope it closes. The spec is Stable and the schema is unambiguous, but the first-party record of client support does not mention Tasks at all: the community-maintained MCP extension support matrix, Oct 2026 tracks four extensions β MCP Apps, OAuth Client Credentials, Enterprise-Managed Authorization and Skills over MCP β and has no Tasks column, so there is no published evidence of any host implementing it. The documentation says as much in a note: Tasks "is an extension to the core MCP specification. Host support varies by client." Treat that as the design constraint it is. Because negotiation is per request and servers must not return a task to a client that did not declare support, a server can ship Tasks today and remain correct against every existing client β which is the right sequencing, and the opposite of how teams usually adopt a protocol feature. So build the server to do both: when the client declares the extension, defer and hand back a handle; when it does not, either block within a timeout you have measured or return immediately with a tool-level job id and a companion status tool. Keep the long-running execution engine behind one interface so the protocol surface is a thin adapter, and you can turn Tasks on per client as the matrix fills in. The notification path β notifications/tasks, opted into via subscriptions/listen, each notification carrying the full task state so no extra tasks/get round-trip is needed β is a later optimisation, not a starting point: polling is the documented default, and it is the only path that works through intermediaries that will not carry server-initiated messages.
// MCP Tasks, 2026-07-28. The four messages that matter, in order.
// 1. CLIENT opts in -- per request, inside _meta. Not once per session.
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {
"name": "run_ci_pipeline",
"arguments": { "ref": "main" },
"_meta": {
"io.modelcontextprotocol/clientCapabilities": {
"extensions": { "io.modelcontextprotocol/tasks": {} } } } } }
// 2. SERVER defers. Note resultType -- this is NOT your tool's output.
// The task is durably created BEFORE this response is sent.
{ "jsonrpc": "2.0", "id": 1,
"result": {
"resultType": "task",
"taskId": "tsk_01J...", // the only handle that exists
"status": "working",
"createdAt": "2026-10-06T08:14:02Z",
"lastUpdatedAt": "2026-10-06T08:14:02Z",
"ttlMs": 3600000, // null = unlimited; MAY change later
"pollIntervalMs": 2000 } } // SHOULD honor; MAY change later
// 3. Poll. Human-in-the-loop surfaces as a STATUS, not a callback.
{ "jsonrpc": "2.0", "id": 2, "method": "tasks/get",
"params": { "taskId": "tsk_01J..." } }
// -> status: "working" | "input_required" | "completed" | "failed"
// | "cancelled" (last three are terminal)
// On "input_required" the response carries an inputRequests map.
// On "completed", result holds what the sync call would have returned.
// 4. Answer the elicitation on the SAME connection you already have.
{ "jsonrpc": "2.0", "id": 3, "method": "tasks/update",
"params": {
"taskId": "tsk_01J...",
"inputResponses": { "<requestKey>": { "action": "accept" } } } }
// tasks/cancel { taskId } is cooperative: acknowledged, not guaranteed.
// There is no tasks/list. Persist taskId or the work is unreachable.
Doc-verified against the MCP Tasks extension documentation and the ext-tasks TypeScript schema for 2026-07-28, Oct 2026: the extension identifier, the _meta / io.modelcontextprotocol/clientCapabilities negotiation shape, resultType: "task", every Task field name and type, the five TaskStatus values and which are terminal, the verbatim ttlMs and pollIntervalMs semantics, the tasks/get / tasks/update / tasks/cancel method strings and params, and the absence of tasks/list from the stable schema. Values are placeholders and the inputResponses payload is illustrative β the schema keys responses to outstanding inputRequests, whose contents depend on the elicitation the server raised. Not executed against a server in this run.
π§ Recall
A week ago the InferencePool pill made the case that round-robin balancing is actively hostile to LLM serving: treat replicas as interchangeable and you throw away the KV cache that turn one paid for, with roughly a 1/N chance of landing on the replica that holds your prefix. Today's spec revision moves in the opposite direction on purpose β MCP's base protocol is now "stateless, self-contained requests" with per-request capability negotiation, precisely so any server instance can serve any request behind a plain load balancer. Are these two designs in conflict, and what does the answer tell you about where state is allowed to live in an agent stack?
Show answer
Not in conflict β they are the same principle applied at two different layers, and seeing that is the point. Both designs refuse to let state live implicitly in a connection. MCP makes requests self-contained so no instance owns a session, and then, where work genuinely must persist, it reintroduces state explicitly and addressably as a task with an id, a TTL and a status. Inference routing refuses to let the load balancer's connection table decide placement, and then reintroduces state explicitly by letting an Endpoint Picker read each replica's actual cache and choose. In both cases the fix is the same move: make the hidden affinity visible, name it, and route on it deliberately. Which gives you the design rule for an agent stack β never let correctness depend on which box answered. A task handle must resolve from any instance, so the task store is shared infrastructure, not server memory; and the moment you add notifications/tasks, you have reintroduced a connection that matters, so the subscription needs a shared backing too or notifications will only reach clients that happen to reconnect to the right pod. The distinction worth keeping is between affinity as an optimisation and affinity as a correctness requirement. KV-cache affinity is the first: miss it and you pay twice but the answer is right. Task state affinity would be the second: miss it and the answer is gone. Build the second as shared state and the first as a routing hint, and never the other way around.
πΌ Market Signal
The demand signal for this is unusually specific, because the top blocker engineers report is the exact problem Tasks exists to solve. Temporal's 2026 State of Development Report, Aug 2026 β 554 engineers and engineering leaders, fielded via Qualtrics from 29 April to 25 May 2026, 66% US and 34% UK/EMEA β finds that "80.8% use agents daily," up from 47.3% a year earlier, and that the leading limitation is not model quality but plumbing: "tracking state" at 35.7%, ahead of debugging and cost, with "79.8% say token and compute costs limit their progress" and "41.1% encounter issues with AI agents daily or more." Read those two together. Daily use is near-universal, and the thing breaking is state across long operations β which is what a durable task handle, a TTL and five explicit statuses give you at the protocol layer rather than in bespoke per-tool glue. Note who publishes that research and why it is still worth citing: Temporal sells durable execution, so the framing favours them, but the methodology and field dates are stated and the ranking matches what the MCP working group independently prioritised in SEP-2663. The career read is the gap between spec and ecosystem. Tasks is Stable in the 2026-07-28 release and absent from the official client matrix, which means the people who can build a server that degrades correctly across both worlds β defer when the client declares the extension, block or fall back when it does not β are scarce right now and will not be in a year. That is a narrow, demonstrable specialism, and the artifact that proves it is small: a working MCP server with one deliberately slow tool, exercising both paths. Ship that on GitHub with a README explaining the polymorphic-result trap and you have something more credible than any course certificate, because it shows you read a schema rather than a blog post.
β‘ Action This Week
Build the smallest honest thing: one MCP server, one tool that takes 90 seconds, two code paths. Have it inspect _meta for io.modelcontextprotocol/tasks on every request. When the client declares it, return a CreateTaskResult with resultType: "task", a real taskId, ttlMs and pollIntervalMs, serve tasks/get from a store that is not process memory, and park once in input_required with a single yes/no elicitation so you feel the tasks/update round-trip. When the client does not declare it, block and return normally. Then run three deliberate failures and write down what the client actually does: kill the client mid-task and resume polling with the persisted id; let ttlMs expire and discard the task; and call tasks/cancel on work your server does not actually stop, so you watch it reach completed after a cancellation you acknowledged. Keep it under two hours by using an in-memory map with a file snapshot instead of real infrastructure, and by hard-coding the slow tool as a sleep. Done = a server that returns the correct one of two shapes based on per-request capability negotiation, plus three paragraphs recording observed client behaviour on crash-resume, TTL expiry and refused cancellation. That write-up is the LinkedIn post β not "MCP added async tasks," but the three failure modes you reproduced and what each one implies for anyone shipping long-running agent tools, which is the version almost nobody has actually run.