Skip to content

Model access

Model groups decide who may call a model and who may read the results that used it. Code is gated separately, by code-access rules.

Model groups

Each model configured in Middleman belongs to a model group, set by a Middleman admin. Permissions separate access to stored results from using the model:

Permission Read/download results Import/edit results Call models
model-access-example:read Yes No No
model-access-example:write Yes Yes No
model-access-example:execute No No Yes
model-access-example Yes Yes Yes
No matching grant No No No

Set these grants in the identity provider's permissions or cognito:groups claim. Group names in Middleman's registry and in result policies have no suffix. Each group is checked on its own: access to one model group grants nothing in another. Grants combine: :read plus :execute permits running evals and reading results, but not editing them. Sample tags are the one exception: reading a sample is enough to write its tags, with no write access to its group, unless every model grant the credential holds is :read (see Read-only scopes). :execute alone permits model calls, but can't launch Hawk runs or read saved results. Other suffixes grant nothing.

model-access-public is the group for models meant for every user. It is an ordinary group: a user sees public-model results only if they hold it, from their claims or from hawk:defaultPermissions. On a hawk:publicModelsOnly deployment every login holds model-access-public:read.

A group name can't be empty, __unresolved__ or hawk_api, start with code_group_, or be a standard OAuth scope (openid, profile, email or offline_access, matched exactly). A model-access-* name can't carry a permission suffix. Middleman's API or the database refuses these.

Scans need read access to their sources' results and read plus execute access to their scanner models, and their results keep both sets of groups. Warehouse results are restricted by the models declared or observed in each evaluation; folder and pod reads use their own checks. The endpoint audit lists every surface's checks.

Result access also controls who sees usage: user, team, job and task labels and estimated spend. Hawk admins normally see usage for all models, but prices only for model groups they can read, and job and task labels only for runs whose code groups they hold. With hawk:publicModelsOnly, usage is limited to public models, even for admins.

Middleman's authenticated /public_models_info endpoint shows public-model metadata whatever the caller's groups, with secret details hidden. It doesn't permit running those models.

How a model in a log is matched to its group

The warehouse records each model's Middleman public name. The importer keeps the part of the log's model URI that Inspect sends to the provider, dropping the Inspect provider and any cloud service segment but keeping an aggregator prefix: anthropic/claude-opus-4-6 and anthropic/bedrock/claude-opus-4-6 are stored as claude-opus-4-6, and openrouter/openrouter/z-ai/glm-5.2 as openrouter/z-ai/glm-5.2. Hawk knows how Inspect's built-in providers name models, and stores a model behind the third-party eval/<model> wrapper as the model it wraps; any other provider keeps everything after its name, including any service segment it wouldn't send.

Rows imported by older releases hold the bare name (glm-5.2) until the log is re-imported, and a run that didn't go through Middleman can record a name Middleman registered with a prefix. So group lookup accepts either name as a whole-segment suffix of the other: claude-3 matches anthropic/claude-3, but secret doesn't match anthropic/claude-secret. A model registered either way gates its eval and scan data.

The Inspect name as written is kept beside the public name in *_raw columns (eval.model_raw, scan.model_raw, model_role.model_raw, and a *_raw copy of each model-usage column), on the same rows, so row-level security covers them the same way. Several Inspect names can map to one public name; the public-name usage columns sum their usage.

Declared and observed model dependencies

Warehouse restrictions include registered primary models, model roles and sample model calls, plus the groups of every model name an import records. A name Middleman doesn't know adds no restriction to an eval. A name only an import recorded (a model seen only in usage, or an unregistered hardcoded* or mockllm/* test model, which requires model-access-public) tightens an eval's restriction at once, but an eval with no other group stays unclassified until its import has succeeded or, if a recorded name is unknown, until its publish saves a group. A scan counts such a name when its results are imported. Data with no model groups is unclassified, and warehouse, folder, pod and monitoring checks deny it, as they deny a folder with no permission file. Neither none nor an empty group list means data is public: when you classify such data, keep every sensitive-model and code restriction it has. Direct SQL readers need model-access-public to see public evals.

Scans over unclassified evals are denied; their folder policies carry __unresolved__ until the source is classified and the policy republished. A restricted scan's folder carries __unresolved__ only while one of its scans has results the warehouse can't classify yet (a transcript whose eval isn't imported, or a source eval with no groups); a marker written for any other reason is removed the next time the folder is republished. Its warehouse rows can still be hidden: a rule edit on one of its sources, or a resume, recomputes its code groups from its results, and a result whose sample never imported puts __unresolved__ on every chunk until it links.

Running evals, and imports that are pending, importing or failed, keep their launch-time groups until an import succeeds. Scan reads also check current source-eval restrictions. Missing source transcripts carry __unresolved__, which denies ordinary warehouse access and can't be granted; database administrators keep their row-level security bypass.

Denying unclassified data is a backstop: a nonempty policy that omits a sensitive model isn't caught. Restricted credentials stop undeclared model calls made with Hawk's credentials.

Models discovered during import

Imports keep every model identity they find: the primary model, roles, eval and sample usage, and model events. When an import completes, the importer saves those models' groups, so a later registry change can't remove them, and adds them to the existing .models.json. Both keep earlier restrictions, so replacing content never declassifies it. Native and imported scans inherit their sources' groups plus their scanner groups.

Discovery is a backstop: undeclared calls may expose data before the import completes, so declare models before launch. Unknown models, and missing or malformed policies, fail publication through the importer's retries and need an operator if retries run out. Rows with observed_model_names IS NULL come from older imports and aren't repaired automatically; a forced full re-import repairs them. See the deployment procedure.

To check these labels, see Auditing model-group labels.

Provider-discovered models

When Middleman loads its registry, it also records models found in provider feeds and their model groups, and keeps them even if a provider stops listing them. The warehouse matches these names with the same suffix rule as administrator-registered models.

Discovery adds missing restrictions to matching evals and scans, including scans that read those evals, and keeps every existing group and the __unresolved__ marker that hides unfinished scan imports. A registry reload inserts only names it hasn't stored, so an import that overlaps a model's first discovery gets the group when it next writes or publishes after the discovery commits. A database failure is logged and doesn't stop Middleman from serving.

Discovery matches full names and their path suffixes in eval, model-role, sample-model and scan records, including the names imports recorded. The reverse suffix direction waits for the row's next import. Discovery doesn't rebuild jobs or .models.json, and moving an existing model to another group still means rebuilding the affected caches by hand.

Read-only scopes

Credentials whose model grants are all :read cannot make mutating requests (403), except to manage their own delegated sessions. Use these for machine or agent tokens that only need to read results.

A delegated token can make mutating requests only with hawk:manage@jobs, on the routes that start and manage its person's jobs (Starting and managing jobs).

Endpoint audit

Surface Model permission Ownership
/meta/eval-sets All sibling evals, including those hidden by filters or row-level security None
/meta/jobs, POST /meta/jobs/running Launch groups, saved output restrictions and all imported results. For a scan's sources: missing and unclassified sources and their output restrictions are checked live; source model groups come from the scan's own rows, which lag a source until the scan is recomputed (hawk.tools.audit_model_groups finds a stuck one) None
/meta/evals, /meta/scans, sample metadata/scores/events/lean events/message pool/matches/timeline and warehouse search Warehouse groups; scans also check current source evals None
Config, run files (/eval_sets/{id}/files, /scans/{id}/files and their presigned downloads), sample content, viewer logs/downloads, scan exports (/meta/scan-export also checks warehouse groups and current source evals), transcript grep, eval-set status/stream, eval-set resource usage and human-eval metadata Folder groups; batch downloads check every folder None
LLM transcript search Read access to the transcript and execute access to the search model; the cross-lab rule applies None
Scan-viewer inputs stored by reference (/view/scans/scans/{dir}/{scan}/{scanner}/{uuid} with column=input) Folder groups of the scan, then of the source eval set, read at the sample's warehouse location (the row's transcript_source_uri only for a sample not yet imported), which must be a canonical .eval key under the evals prefix None
Runner logs, traces and monitoring, including the resource_usage block of /status Job/pod groups and current warehouse restrictions, including declared and imported scan sources None
POST /scans/selections, POST /scans/selections/{id}/finalize None; launch checks every selected transcript Owner only, by S3 key prefix (selections/<owner hash>/<id>.txt.gz); another user's id is a 404
Eval stop/delete; scan delete No separate content check Recorded owner or admin
Eval/human relaunch, including config-pinned IDs Read and execute access to every recorded folder group; validate requested models before launch Owner or admin
Scan resume Read access to existing results and sources; read and execute access to current scanner groups Owner or admin; active or unverified releases are refused
Fresh eval, human-eval and scan launches Read and execute access to requested models; scans also require source read access Reserve owner before launch writes; retain after failure
Eval/scan imports Write access to all resulting model groups and existing content on updates Reserve owner at allocation; owner/admin for uploads and finalization
Sample score overwrites and invalidation changes Write access to folder groups Run/import owner or admin
Append info/score events Write access to folder groups None
Sample tag writes (POST /meta/samples/{uuid}/tags/{tag}) Read access to the sample, by its warehouse groups, and no write access: whoever can read a sample can write, replace and remove its tags, another person's included. Read-only credentials cannot write; delegated tokens are refused None
Sample tag list and counts (/meta/sample-tags, /meta/sample-tags/counts) Only tags on samples the caller can read, by their warehouse groups, as /meta/samples decides it. Delegated tokens are refused None
Relay, ACP, attach and browser approvals (/approvals/{job_id}, HTTP preflight and WebSocket) Full access (read, write and execute) to every relevant folder/pod group, the run's code groups, and a write-capable token None
/traffic, /traffic/{id} and its /body (your own Middleman requests, direct and from your runs) None; see Your own Middleman traffic The caller's own records only (user_id = token sub); admins included
Usage history (/usage/history) recorded costs Models the caller may read, as for its token counts; a model whose details are secret shows its recorded cost to admins only (its cost, like its prices, would reveal what the public name hides) None
Spend rollup (/usage/spend) None: every person's spend on every model, secret ones included, through the usage_daily() definer function; requires the exact usage-spend-reader permission, which admin status doesn't imply and which grants nothing else. Meant for a reporting service that applies its own access control None
Code-access rule preview and source registry (/code_rules/preview, /code_rules/repos, /code_rules/repos/{pk}/code) None; no code-group filter, so admins see sources and code items outside their code groups Admin only
Middleman model and lab administration (/middleman_admin/models/..., /middleman_admin/labs/...) None in Hawk; relayed to Middleman's admin API with the caller's own token. Read-only credentials cannot write; provider keys are not relayed; a hawk:publicModelsOnly deployment refuses every route Middleman admin (Middleman decides, as for hawk proxy)
Your code groups' rules (/meta/code-groups) Lists only the prefixes of rules that require a code group the caller holds, never sources: a source's name comes from runs whose models the caller may not read None
Runner Git tokens (token broker /github) The job's own pod-bound job token, not a user token; tokens for a private repository only if no rule restricts it or the run declared it at launch, where the launcher's code access was checked None
Repository downloads (/code_downloads/archive and /code_downloads/file, hawk code download) Off unless hawk:enableCodeDownloads is set. The caller's own user token; only repositories whose rule assigns them to one of the caller's code groups, with no admin exception. See Repository downloads None
Task image pull logins (token broker /images/pull) An eval set's own pod-bound job token, not a user token; logins only for the repositories it names, each of whose source no rule restricts or the run declared at launch, as for Git tokens None
Task image push logins (token broker /images/publish, which GitHub Actions invokes through an IAM role) A GitHub Actions OIDC token for the audience <api-url>/images/publish, which nothing else in Hawk accepts, from a configured owner's push, dispatch or schedule run on an allowed ref (main, by default); logins only for the token's own repository, and only while a code-access rule restricts it None
Source listing and URL signing (/sources/{eval_set_id}, /sources/sign) Human token: folder groups for every requested folder. Restricted execution token (Authorization header only): the grant's sources, plus an eval set's own output, while the execution is active None
Transcript index (POST /sources/index) Human token: eval sets readable per the warehouse (model groups, code groups, output restrictions, whole-eval-set denial); this can include an eval set whose stricter .models.json then refuses /sources/sign. Restricted execution token (Authorization header only): the grant's sources, plus an eval set's own output, while the execution is active; 403 for an eval set outside the grant or when the grant is missing or invalid None

A delegated token counts as its person where a job's owner is recorded or compared to start, resume, stop or delete it, and is never an admin; to stop or delete a job it must also be able to watch it. On reads its subject is never an owner, so it gets no owner exceptions there.

Except for /traffic, reading doesn't require ownership. Warehouse checks don't update folder permission files or pod groups, so access can differ between these surfaces. Viewer file writes and deletes are disabled; unsupported scan-viewer data paths return 400. Live-job monitoring needs the warehouse for authorization, so a warehouse outage can return 503 even when the runner is healthy.

  • Relaunch groups: A relaunch or resume records its requested model groups on the job before launch, and a failed relaunch keeps them: a job's recorded groups only grow. An admin relaunch can widen another user's job.
  • Pinned IDs: IDs with warehouse results or human assignments but empty S3 folders are refused, including for admins.
  • Legacy ownership: Native runs without a launch record need an admin with content access to resume or edit destructively; imports without an owner record need the same to update or edit destructively. An admin who resumes a legacy native run becomes its recorded owner; stop and delete still need a launch record.
  • Imports: Owner records live in the API-only import-owners/ prefix. Admins can't finalize another uploader's stamped files without re-uploading them with their own attribution.
  • Failed scan creation: If config or permission files are missing, resubmit with hawk scan run to get a new run ID. The retained owner record alone doesn't make a scan resumable.

Known limitations:

  • Selection launch timing: A selection's launch spends a few more reads refusing a transcript in an eval set the caller can't read than refusing an unknown one, so someone who already holds a transcript ID can tell that it exists.
  • Literal search progress: searched_through reports only the creation time of a row the caller can read. A page that examined only unreadable rows leaves it unchanged while the cursor advances, which shows that the span between two readable rows holds only unreadable rows. It discloses no row identity, content or timestamp.
  • Full-text search progress: The time-limited full-text scan checks permissions and scope before reading any row's search text, so the text of unreadable rows affects neither its results nor its timing, and it reports searched_through as literal search does. Indexed full-text search fetches candidates in batches of 500 whatever the page size, so a page's latency reveals the number of unreadable matching rows between readable ones, in steps of 500.
  • Model-call failure counts: A job's platform events show every viewer of the job its failed model calls, as counts by interval, error class, status and model, never bodies or user IDs. They come from the runner's own inspect.model.* DogStatsD metrics, read by the job's namespace tag, which the runner sets itself, so code running in one job could inflate another job's counts.
  • Samples awaiting approval: An eval set's status marks the samples its runner reports waiting on a tool approval, with each one's ACP session ID, from a file the runner writes to its log directory. Task code in the runner's pod can write that file too, so it can mislabel its own run's samples. It can't answer anything: the approval socket checks the reader's access, binds only sessions the live runner lists as waiting, and shows the reader the actual request. Session IDs select a sample; they grant nothing. In a sharded eval set each worker writes its own file, which any pod of the run can write; the API reads it only while a running pod with that worker's index is in one of the deployment's runner namespaces, never a sandbox namespace. A dead worker's count can still show until the run closes or a resume clears it, as a label only.

How the cross-lab rule decides

Hawk stops a model from reading non-public transcripts produced by models whose read policy doesn't allow it. By default, a model may read only transcripts from models its own provider serves. The rule covers:

Request Readers Source models
Standalone scan (create, resume) Every approved remote model: primary models, roles, additional models and configured fallbacks The models of its source eval sets
Online scan in an eval set (create, resume) scan.model and additional models The eval's primary, role and additional models
Eval with transcripts.sources Every approved remote model, as for standalone scans The models of its input eval sets
LLM transcript search The search model The sample's models
Monitor model preferences Each candidate monitor model; Hawk picks the first one allowed, trying first those that can also read the eval's inputs The eval's primary model

A request is refused if any reader may not read any source model. Monitor model preferences instead skip a candidate that may not read the primary model, and the request is refused with a 422 when a primary model has no candidate left. Scans with scanner_models do the same for each eval (Which models are judged). Public source models are exempt whatever their policy, and a scan with no reader (one that uses only non-LLM scanners) isn't checked. Only restricted credentials hold a run's model calls to the readers checked here: with user credentials the runner calls with the launcher's token, and scanner code with its own provider key can still send transcripts to that provider from a pod with network egress.

Read policies

Each non-public source model's read policy, recorded in Middleman (Recording who may read a model's transcripts) and read from its /model_groups endpoint, decides which readers may read it. A model with no policy has the default.

Mode Readers allowed
provider (default) Those served by the source model's provider
any All
tags Those whose reader_tags include one of the policy's tags
Any other None: a mode this Hawk doesn't know is refused

A policy with zdr_only also requires a reader whose is_zdr is set, whatever the mode, and a tags policy requires a matching tag even from a same-provider reader, so both can refuse readers the default policy would allow. Only a reader's reader_tags, is_zdr and internal_reader matter, not its own policy.

A reader marked internal_reader (served on the deployment's own infrastructure, so no third party receives the data) may read every non-public source model under a provider policy or a tags policy with tags, without matching the provider or tags. zdr_only still applies, and a policy no reader can satisfy (an unknown mode or field, an entry Hawk can't parse, or tags with no tags) still refuses it. Each read the flag opens counts as a policy grant (mode internal-reader) in the audit log.

A scan with such a grant must run with restricted credentials: creating or resuming it with user credentials returns 422. The rule judges only the models a scan declares, and a runner with user credentials can call every model its submitter can, so scanner code that calls another model would send the transcripts to that model's provider. A restricted runner can call only its declared models. A scan launched with user credentials can't change mode, so run it again under a new ID. A deployment that hasn't enabled restricted credentials can't run such a scan. The cross-lab override doesn't lift this rule.

Its model calls must also go to Middleman: Hawk judges a scan by model name, so a call sent to another host would deliver the transcripts there while the audit still records the internal reader. Creating or resuming such a scan returns 422 when a model's args.base_url isn't under the deployment's Middleman URL, when a model's args sets a key Hawk doesn't declare other than responses_api, streaming and background (Hawk passes those to the provider's client, and some choose its host), when its args.config sets extra_headers (which can carry another credential) or a model in extra_body, or when runner.environment, runner.secrets or the request's secrets name a variable that picks a provider's URL or key, a proxy, or Inspect's or Scout's model settings (*_BASE_URL, *_API_KEY, HTTPS_PROXY, SCOUT_SCAN_MODEL_ARGS and the like). Names are matched by pattern, so a variable an SDK reads under an unusual name isn't caught. An eval whose inputs an internal reader reads is held to the same rule; other scans and evals keep these settings.

In provider mode, both sides are judged by the serving provider that Middleman records for each model in /model_groups: the company that receives the data. A model served through OpenRouter or another aggregator has that aggregator as its provider. Providers must match exactly. Middleman's per-integration lab isn't used, so two models the same company serves through different integrations may read each other's transcripts.

Hawk refuses a source whose policy sets a field it doesn't know (to a non-empty or true value), as it refuses an unknown mode. Unknown fields outside policy describe the model as a reader and are ignored. An entry Hawk can't parse is refused as a source and holds no tags and no ZDR as a reader, and Hawk logs a warning naming the model. Tags not in Middleman's format are dropped with the same kind of warning.

Hawk caches /model_groups for 15 minutes, so a policy change in Middleman can take up to 15 minutes to apply.

Which models are judged

Models are looked up by their Middleman public names. The Inspect provider prefix in a config (for example openai-api/openai-chat/...) only picks the wire format, so it isn't used. A standalone scan's readers are its scanner models, their fallbacks (args.default) and its additional_models. Transcript search takes the sample's models from its recorded model calls, or, for older data without them, from the names stored in the warehouse.

A standalone scan's source models are every model of its source eval sets: the names in each eval set's .models.json and the models the warehouse recorded for its evals. When every scanner's filter is only transcript_id conditions, Hawk judges just the evals that hold those transcripts, counting every model an eval declared or any of its samples called. It does so only when the warehouse holds every requested transcript in a source eval set, each of those evals imported successfully with model names, and no transcript is still being ingested live. Otherwise, and when resuming a scan that already has results, it judges the whole source eval sets. Access checks don't change: a scan still needs the groups of every model of its source eval sets.

A scan of every readable eval set or of a selection with scanner_models (see Model scanners over everything you can read) is judged per eval.

At each launch and resume, an eval set records the models of its transcripts.sources, and what they read in turn, in its .models.json (input_model_names). Models Hawk learns of only later aren't recorded until the eval set is resumed: those of files a source gains while the eval runs, and models a source still running with user credentials calls without declaring them, which Hawk learns of only when the source's logs are imported, even for files that existed at launch. Every later check of its transcripts counts the recorded models as models of each transcript: scans, per-eval ones included, LLM transcript search, and the eval set's own restricted resumes, which can read its earlier output.

Missing providers

When a request has at least one reader that isn't an internal reader and at least one non-public source model in provider mode, each of those readers and source models needs a provider; a missing one refuses the request with a 422 naming those models. Monitor model preferences instead skip a candidate when it or the primary model has none. A scan with scanner_models needs a provider for every candidate, whatever the sources, and skips a candidate for an eval whose source model has none. A provider-mode source whose policy sets an unknown field is refused anyway, so it needs none. A Middleman administrator has to record the provider. A model with no recorded provider gets its lab's default from Middleman, so only models on labs without a default provider (such as the dummy test labs) have none.

Eval inputs

Eval inputs (transcripts.sources) are judged by the cross-lab rule above, through their source model names: their .models.json names, what they read in turn and their warehouse evals' observed model names. A restricted resume is also judged against what its earlier output read, and against that output's own models when it lists its own eval set. Hawk checks source-read permission first, then the cross-lab rule, all before anything is written; a refused resume keeps the previous execution and saved config. Hawk refuses inputs with a non-public model group, stored or inherited, that none of their names resolves to, with a 403 that the override doesn't lift.

A transcript whose non-public provider-mode models span more than one provider can't be searched by any model except an internal reader, since no other model shares all their providers. The refusal names the requested search model, not the transcript, since another model may be allowed to search it. Models in other modes are judged by their own policies, so a transcript of such models from several providers can be searched by a model they all allow. A provider-mode model whose policy sets an unknown field doesn't count toward this: it is refused whatever the search model.

Audit lines

A read that a non-default policy allows (any, tags, a zdr_only the reader meets, or the reader's internal_reader flag) writes an info-level audit line once the request has passed every check:

Request Written Identifies
Scan, an eval's inputs or its monitor model preferences Once the job has launched The job ID
LLM transcript search Just before the search model reads the transcript The sample UUID
Profile made with --provider Each time its session issues a token The session and token IDs
Devbox login At each approval The session ID

Each line also has the caller's email and user ID (user_sub, their login's sub; for a restricted login, the person's), the reader and source models (for a session, the reader is __delegated_session_reader__), the mode, the matched tags and zdr_only. It never names a provider. A job's lines, like the override line, carry a launch field: launched once the runner's Helm release is installed, or uncertain when the launch failed or was cancelled after it began, since even a failed Helm install may leave a runner reading the transcripts. A launch refused before it begins writes none. Refusals never name a source model's provider, mode or tags.

Cross-lab scan overrides

The runtime flag allow_sensitive_cross_lab_scan_override decides whether the API honors a request's allow_sensitive_cross_lab_scan field, which hawk scan run/resume and hawk eval-set run/resume send with --allow-sensitive-cross-lab-scan. It applies to standalone and online scans and to eval transcripts.sources, on creation and resume, and each submission must ask for its own override. It never applies to LLM transcript search, to monitor model preferences, to a refusal for a missing provider, or to an eval input's group that no recorded model explains. Scans of every readable eval set or of a selection (--all, --transcripts) refuse a request that asks for it, model-free ones included. A delegated token can never use it: its request is refused with a 403.

Runtime flag Request asks for override Behavior for a read the policy refuses
Enabled (default) No Blocked with 403
Enabled (default) Yes Allowed, subject to normal model and transcript permissions
Disabled Either Blocked with 403

If the request asks for an override and the flag can't be read, the request fails with a 503; requests that don't ask, or that have no cross-lab violation, never read the flag.

The override is the last resort: it bypasses every read-policy refusal, even policies this Hawk can't evaluate. Where a read should be allowed, record a read policy in Middleman that allows it instead.

An honored override writes an info-level audit line with the caller's email and user ID, the job ID, and each overridden read: the source model, the reader and why it would have been refused (provider, tags, zdr, or policy for an unknown or unparseable policy), in the message and in the structured overridden field. It is written once the job has launched, with the same launch field as the policy lines. It never names a provider, and the reasons never reach the caller.

Sensitive model protection

Hawk protects sensitive model information through codenames:

  • Models are given a public_name (codename), which Hawk uses to label them
  • Middleman keeps the real model identifier (danger_name). Middleman admins see and edit it in the viewer's LLM proxy tab, which reaches Middleman through the Hawk API's /middleman_admin relay. Sentry error events for the relay drop request bodies, and a hawk:publicModelsOnly deployment doesn't relay at all.
  • A provider's response can name the upstream model, and so can the eval logs that keep it and a person's own Middleman traffic
  • Observability telemetry uses layered protections: model fields and tags use public_name, known credential fields are removed, and recognized model-bearing URL forms are scrubbed. URL and arbitrary-text scrubbing are best-effort, so observability access must remain restricted.

For models with are_details_secret, the usage price endpoint also hides prices and provider and lab details, and Middleman records no cost for them (see Audit Logging). For other models, cost metrics aren't restricted by model group, like the token metrics beside them. A model priced from admin-set rates rather than the public catalog exposes those rates to anyone who can divide its cost by its tokens; limit who can read recorded costs accordingly.