Architecture · for architects and security teams

A control layer around the AI tools you already use.

MEMIST doesn't replace your AI clients, and it isn't in the path between them and a model provider. It holds your Capabilities, knowledge, Project context, rules and evidence, and it runs the work that needs to stay under control.

Your AI clients
  • Claude Code
  • Other MCP-capable tools
Authenticated boundary

The credential identifies the organization and the person.

MEMIST
  • Capability
  • Project
  • Governed execution · approval gate
Your systems
  • CRM
  • Code repository
  • Ticketing
Evidence ledger

Usage, cost and trace for every run, attributed to a Project.

External work (Work Session) feeds in from your AI clients
Your AI clients · the boundary MEMIST enforces · what runs under control
The unit

A Capability is the only thing that runs.

One managed, versioned object holds everything needed to reach an outcome reliably.

Capability
  • SkillsHow the work is done, in your organization's own words.
  • ContextWhat the work may and must know, within a set budget.
  • ToolsExternal systems it may reach, through an authorized Connection.
  • FunctionsFixed code steps, used wherever a model isn't needed.
  • ModelsThe model chosen for each step. Nothing is picked by default.
  • WorkflowThe steps, their order and where a person has to approve.
  • EvaluationWhat good looks like, and how each version is scored against it.
  • PolicyClassification, approvals and organizational rules, applied at run time.
  • Execution requirementsWhat must be in place and authorized before it runs.
Outcome

Publishing seals a version. A sealed version freezes its Skills and context. Functions and Blueprint components that move between workspaces are matched by a fingerprint of their content, not a version number, and a reference that doesn't match is refused rather than replaced by the latest.

Business context

A Project is a boundary, not a tag.

Every Project settles three questions, and one shared module decides who may open it, so access, context and cost agree. A Project is open to the whole organization or restricted to named members.

Usage records are never rewritten. Moving usage to a different Project is a separate, recorded action that leaves the original booking in place.

Access

Who may see this work, its context and its evidence.

Context

Which organizational knowledge the work may use.

Attribution

Which Project the usage, cost and outcome belong to.

Bound to a ProjectUserRepositoryWork SessionCapabilityUsage
External AI environments

Your environment. MEMIST's authority.

Engineers keep the AI client they prefer. It connects to MEMIST as an authenticated MCP client, and every decision that matters is made on MEMIST's side.

  1. 01 · Your sideYour AI clientAny MCP-capable environment. No MEMIST-specific client is needed.
  2. 02 · BoundaryAuthenticated connectionThe credential identifies the organization and the person. The client asserts nothing.
  3. 03 · MEMISTAuthority derivedOrganization, person, role, Project and resource access, all resolved on the server.
  4. 04 · MEMISTAuthorized surfaceApproved Skills, Project context, plus authoring, testing and publishing.
  5. 05 · MEMISTExecute and recordRuntime, approval gates, trace, usage and cost, the same as every other path.

No authorization lives in a client

MEMIST stays the authority for Skills, versions, dependencies, Project context, execution, testing, evaluation, cost, audit and publishing.

The surface depends on the connection

A build connection, everyday use and a curated activation each expose different things. The result is then filtered by each person's role and access, so two people on one connection can see different things.

Connections to your systems

Connector templates
Each template holds a platform's OAuth details, so connecting a system is configuration, not new code. Any standards-compliant MCP surface connects the same way.
Configured Connections
Your organization's authorization to a platform, using your own OAuth app. Secrets are encrypted at rest and never returned to a client.
Tool surfaces
An MCP source points to a Connection and holds no credentials itself, so authorization stays in one place.
Delegated or shared
Each Connection is either per-user, with each person authorizing, or one shared organization account.
Progressive disclosure

Skills load only when they're needed.

Putting every method in every prompt is costly and imprecise. An agent first sees a short list of available Skills, then fetches the full text of a Skill only when it applies.

There are two separate controls. Exposure settings decide which Skills an agent can browse. Skills a published Capability requires are always supplied when it runs, whatever the exposure setting.

  1. Short list

    The approved catalog: names and one-line descriptions only.

  2. Relevance

    The agent recognizes that a Skill applies to its current task.

  3. Fetch

    It retrieves that Skill's full text. Access is checked again when the Skill is served.

Limit Once Skill content reaches an external model, MEMIST controls what was sent and to whom, not what happens after. Classification decides what may leave. It doesn't keep content secret after it leaves.

Execution

One execution model for every path.

Interactive, batch and scheduled work follow the same steps and produce the same records. The approval gate is enforced when the work runs, not in the interface.

  1. Published CapabilityA sealed version that can no longer be edited.
  2. AdmissionOrganization, person, Project and access are resolved before anything runs.
  3. Context assemblyOnly what this work needs, within budget, recorded for review.
  4. StepsModels, tools and Functions, in the order the Capability sets.
  5. Approval gateA step that changes data in another system waits for a person to approve it before it runs.
  6. TraceEvery step, tool call, model and token count is written to an append-only record.
  7. Outcome + usageThe result, usage and cost, attributed to a Project, person and Capability.

Code steps run in a separate runtime. It has no database access, secrets or provider credentials. A request names a registered Function and never carries code. If the runtime is down, the step fails rather than running inside the main application.

Authority

Being able to reach a system isn't permission to use it.

A Connection defines what can be reached. Identity and policy define who may reach it and under what conditions. Keeping them separate stops access from being granted just because a route exists.

MEMIST identity

Organization, person, role and Project membership. Taken from the server-side session or token, never from what a client sends.

Downstream identity

Who the work acts as in your CRM, code repository or ticketing system. It's a separate authorization, never combined with the MEMIST identity.

Checked at the moment of action

Access is checked against the acting person when the action happens. If they aren't authorized, the system is unavailable to them. Nobody else's access counts.

Roles

Roles control who may author, publish, approve and administer. A role sets a minimum and never replaces access to a specific resource.

Project access

Named members only, or the whole organization. One shared module decides who may open a Project.

Classification and policy

A classification on a Skill sets where it may go, including whether it can reach an external client. Policy is applied where the work runs.

Evidence and cost

One evidence chain. One ledger.

All usage is recorded through a single path, with one cost model and one attribution key. That makes cost comparable however the work started.

  1. Execution or Work Session
  2. Usage
  3. Project
  4. Person · Capability · client · model
  5. Cost + source
  6. Reporting
  7. Optimization

Every figure states what kind of number it is

  • MeasuredCounted from recorded events: runs, outcomes, tokens and durations.
  • EstimatedMEMIST's pricing of recorded usage using its rate card. Cost figures are estimates today: rate-card pricing of observed usage, or the client's own estimate, labeled as such.
  • ModeledCalculated from several inputs. A projection, not a measurement.
  • AssertedA value a person entered, such as what an outcome is worth to the business.

Run counts, outcomes and usage are measured. Cost is MEMIST's pricing of that usage. Your business states what an outcome is worth. A return figure is therefore modeled, and it's labeled that way.

External work

Record work MEMIST didn't run.

MEMIST records AI work done in other tools as a Work Session. A Work Session is authenticated, is assigned to a Project and goes into the same usage ledger as native runs, labeled as reported evidence. MEMIST never presents it as a run it governed.

Claude Code was the first client with a shipped adapter, and others now ship too. The ingestion service has no per-client logic: each adapter translates its client's activity into one shared format, so switching AI tools doesn't invalidate your evidence.

MEMIST does

  • Authenticates the sender and derives organization, person and client from the credential
  • Assigns the Project, including from the repository the work was in
  • Validates the reported events and counts each model call once
  • Writes usage through the same ledger as native runs

The client adapter does

  • The client reports its activity and authenticates
  • A MEMIST adapter converts it to the shared format
  • Neither decides who may do what. That comes from the credential

Two ways to observe Claude Code

Path 1 · OpenTelemetryDefault · MEMIST is not in the call path

Activity reporting

Claude Code calls the model provider directly, then its own OpenTelemetry exporter reports the activity to MEMIST. MEMIST reads three event types (model calls, tool runs and subagent completions) and drops the rest.

  1. Claude Code calls the provider directly, with no change
  2. Its exporter sends the activity log to MEMIST afterwards
  3. MEMIST reads only the fields on its allowlist
  4. Each session is recorded as one Work Session and assigned to a Project
Received
  • Model and token counts
  • Claude Code's own cost estimate per call
  • Which tools ran, whether they succeeded and how long they took
  • Subagent type, tool count and duration
  • Session ID and the repository's Git address, used to find the Project
Never received
  • Prompts or responses
  • Source code, file contents or diffs
  • Tool inputs, results or shell commands
  • Anthropic credentials
Privacy
An allowlist, not redaction. A field that isn't on MEMIST's allowlist is never read, so no client setting can make it leak.
Project
A repository bound to a Project decides first. Otherwise a pinned Project is used, and one that can't be found or accessed is refused. If nothing is named, the session goes to the organization's default Project, labeled as a fallback.
Cost
The client's own estimate, recorded as estimated and asserted. MEMIST didn't make the call.
Path 2 · MEMIST gatewayOptional · MEMIST is in the call path

Model call observation

Developers who opt in point Claude Code's base URL at MEMIST. MEMIST passes each call to Anthropic and reads only its metadata. The request is passed through unread, and response text is dropped before it can be stored.

  1. Claude Code calls a MEMIST endpoint, as an opt-in
  2. MEMIST passes the request to Anthropic without reading it
  3. MEMIST records model, tokens and cache use from the provider
  4. Matched to the same Work Session as the telemetry
Never logged or stored
  • Prompts or responses
  • Tool inputs or results
  • Raw request and response bodies
  • Anthropic credential: passed through as-is
  • MEMIST token: removed before the request is forwarded
Cost
An API-equivalent cost at Anthropic's published API rates. It's a benchmark, not your subscription charge. No actual cost is recorded.
Tradeoff
Your credential passes through MEMIST on every call, and Claude Code depends on MEMIST. If MEMIST is down, calls fail with no fallback.
Advice
Start with OpenTelemetry if you're unsure. The gateway sees model calls only, so tool and subagent activity still comes from telemetry.

With both paths on, one call is still one call. Both channels carry the same session and request IDs, so they resolve to one record. When reports are read, the stronger evidence wins: a gateway observation outranks a telemetry report. The other record is kept in full. The two are never added together.

What MEMIST doesn't claim

Not metering

On the default path MEMIST records what an authenticated client reported, labeled as asserted. With the optional gateway it observes token counts directly, but still records no actual cost.

Not your invoice

An API-equivalent cost is a benchmark at published rates, not what you were charged.

Not subscription allocation

A flat-rate subscription has no per-call charge, so MEMIST doesn't create or spread one.

Not a harness

On both paths Claude Code runs on the developer's machine, not inside MEMIST. On the telemetry path MEMIST isn't a gateway either.

Not an upgrade to measured

The gateway replaces the client's estimate with observed usage and a published-rate benchmark.

Not applied to spend caps

Budget limits count every raw record, so removing duplicates for reports never loosens a spend cap. They sum recorded dollar figures, and the gateway benchmark isn't counted.

Trust boundaries

Each boundary is enforced where the work is written or run.

Tenant isolation

Every customer record is stored under one organization and queries are limited to it. The server sets the organization from your sign-in, never the client.

Person authorization

Access follows the acting person. An organization admin role doesn't open a restricted Project. An admin has to be added as a member, and that is recorded.

Project access

One shared module decides who may open a Project, so every screen gets the same answer.

Publishing boundary

Publishing seals a version. The rule is enforced when data is written, not in the interface.

Credential separation

Credentials are encrypted at rest and never returned. A caller only learns whether a connection is authorized.

Leaving for external clients

Each Skill carries a classification. Skills above the external threshold are never offered to an outside client, and that is re-checked on every retrieval. Client reports are evidence only. Authority comes from the credential.

Test it against your own architecture.

A working session with the team, using your systems, Project structure and governance requirements. Not a scripted demo.

AI harness walkthrough → How cost is attributed to Projects →

See features