Turning an AI architecture doc into a two-week spike

How Northfield's AI-written MCP design became a two-week architecture spike: what it builds, what counts as passing and the fallback for most failures.

Chatis Santos · October 19, 2026 · 6 min read · For engineers and leaders

The first two weeks of the Northfield Energy MCP platform, the shared Model Context Protocol endpoint its engineers' AI tools will use, are a spike. The AI-written design doc already says what the spike has to prove. Both architecture papers (described in the case study) carry a list of claims about Bedrock AgentCore and FusionAuth that the model could not confirm, and phase 0 of the rollout exists to answer that list with running code. It uses one platform engineer, one friendly first team and about two weeks, with a gate at the end that either passes or sends Northfield to a fallback the paper names in advance. Nothing else gets built before that gate.

Why the first phase is a spike

An AI-written architecture doc reads with the same confidence on every line, whether the line is a settled fact about OAuth or a guess about a product that changed last quarter. The architecture paper says this about itself, in the model's voice: its AgentCore claims come from what it knew at the time and were never checked against current docs, so each one is a hypothesis. I left that paragraph in on purpose. (The AgentCore mapping article goes through those claims one by one.)

Hypotheses about a product don't get resolved in a design review. Nobody in the room knows whether AgentCore Policy filters tools/list per caller in Northfield's region this month, and reading the docs only gets you to "probably", so the paper's own line is that phase 0 exists to answer these questions with code, in a week. The rollout sizing says two. With three client types to wire up, so would I.

The other reason is cost. If the OAuth handshake between Claude.ai and FusionAuth fails after a team has built three MCPs, that is a painful week, and if it fails in a spike with one hello-world tool then one engineer loses a day or two and picks the fallback.

What the spike builds

Phase 0 builds the smallest thing that can answer the verification list with real clients. From the design paper's phased plan:

  • The FusionAuth application (Northfield Engineering MCP) with Google as the identity provider, restricted to the northfield-energy.com domain.
  • One hello-world MCP behind the gateway. I'd give it two tools with different access lists so role filtering has something to show.
  • Connections from Claude.ai, Claude Code and one AgentCore agent. The two chat clients each do the authorization-code-plus-PKCE handshake a little differently, and the agent uses client credentials, so each is a separate OAuth client to register and test.

Cursor is not in the phase 0 list. Whether it is in v1 scope is one of the design paper's six open decisions, and a yes adds one more OAuth client to test.

The registry repo, the CI pipeline, the manifest schema and the token vault all wait for phase 1 or later. The spike only has to show that the gateway and the identity provider do what the paper says before anyone writes tooling on top of them.

The questions it has to answer

The architecture paper's "verify before committing" list has nine items. I grouped them by what the paper says to do if the answer is no.

Most have a named fallback, and the architecture stays whichever way those go.

Question If the answer is no
Does Gateway serve the MCP authorization discovery documents (/.well-known/oauth-protected-resource), so Claude, Cursor and Claude Code find FusionAuth on their own? A thin reverse proxy in front of each gateway that serves them
Does Northfield's FusionAuth version support Dynamic Client Registration (DCR, RFC 7591)? Pre-register one OAuth client per MCP client type. Engineers paste the client ID into the connector's advanced settings
Can AgentCore Policy filter tools/list per caller, or only deny tools/call, and is it generally available in the region? A separate FusionAuth application for each gateway, so a user not registered for mcp-data cannot get a token for it at all
Can one FusionAuth sign-in cover several gateways (resource indicators or per-gateway audiences)? One sign-in per gateway, which changes the onboarding doc

Two have no fallback in the paper. A no on either one reopens the gateway decision.

Question If the answer is no
Does Gateway forward caller claims (sub, email, roles) to Lambda and MCP-server targets? No fallback named. In-tool checks and the audit log depend on this one
Does Gateway accept an MCP server hosted on AgentCore Runtime as a target? No fallback named. Teams with stateful or long-running tools need this path

The rest are numbers and flows with no yes or no answer, and they size the later phases.

Question What the answer decides
What are Gateway's quotas: targets per gateway, tools per target, request and response size, timeout? How many domain gateways Northfield needs
When a tool first needs a user's Salesforce token (on-behalf-of, where the tool acts as the signed-in person), how does the consent link reach a chat client? Whether to promise on-behalf-of to teams. The paper says to prototype it with one tool first
What are region availability and pricing for Gateway tool calls and Runtime session hours at the expected call volume? The budget conversation before phase 1 starts

The first three rows of the first table are what the exit gate is built around. Quotas, pricing and claim forwarding are cheap to measure once the hello-world MCP is up. The consent item needs an AgentCore Identity credential provider, which the spike does not otherwise build, so it can slip to the start of phase 3. DCR and the aud claim are FusionAuth questions, flagged in the design paper as a one-day spike on their own, and the same hello-world setup answers them.

What counts as passing

The exit gate for phase 0, from the design paper: DCR, audience and role claims work with real clients, and the gateway filters tools by role. A curl against the gateway with a hand-minted token proves nothing about whether Claude.ai's connector flow completes. The gate passes when an engineer adds the gateway URL in Claude.ai, signs in with their Google account through FusionAuth and sees only the tools their role allows. Then the same in Claude Code, then from an agent using the client credentials grant. That grant needs FusionAuth Entities, which depends on Northfield's plan, so it is a fourth FusionAuth question for the spike.

The audience check is easy to miss. FusionAuth sets the aud claim to the client ID by default and the MCP spec wants it scoped to the gateway, so the spike has to settle whether FusionAuth mints the gateway audience or the gateway accepts the app's client ID. (The two papers lean different ways on this.)

Failing the gate is a defined outcome. That is the part I'd want any manager reading the plan to notice. The first table's fallbacks cover the OAuth handshake, DCR and list filtering, the architecture survives all three, and the only result that reopens the big decision is Gateway failing a hard requirement with no fallback, which is when the custom gateway option (a small FastMCP-based proxy reading the same manifests) comes back on the table. The design paper calls that one of the two decisions that matter most, and it gets settled by the spike rather than by anyone's opinion.

What comes after the gate

The phases after it each have their own gate. The phase 1 gate is the one I care most about, because it tests the whole project's goal: a second team ships an MCP with no platform-team involvement. If that team needs a platform engineer on a call to ship, phase 1 has not passed, even if the pipeline is green.

Phase 1 (paved road) exits when a second team ships without the platform team, phase 2 (governance) when a destructive tool can't be shared broadly without security sign-off and phase 3 (user delegation) when Gmail and Drive tools act as the signed-in user. The case study has the table of what each phase ships.

The phases also encode the biggest open decision. Service identity is the default in phase 1 and user delegation waits for phase 3, which only holds if Databricks reads and the first Salesforce tools can act as a service account. If Northfield decides that Salesforce writes need a person's name in the audit log from day one, the token vault moves up to phase 1 and the sizing changes, and that is Northfield's call to make.

If you're deciding this

If you have an AI-written architecture doc in front of you, find its verification list (ask for one if it doesn't have it) and group the items by which fallback each one triggers. Then fund two weeks to answer them with a hello-world build before any team starts on the real thing. Write down what passing looks like and what the fallback is, if there is one, for each failure before the spike starts. Scoping that is a short job, and if your doc is in front of me the grouping usually takes an afternoon.

More in this series

All articles in the series