Skip to main content

Python: agent_shield

Every module of the package and its public names, from their docstrings' first lines.

Built: everything listed here exists in the package at this version. Not built: nothing is listed that does not exist; the plan's pending boxes are on the front page.

agent_shield​

Datalayer Agent Shield: a runtime firewall for every agent.

agent_shield.acp​

ACP: the client-side channels, the normaliser, the workspace and the proxy.

agent_shield.acp.channel​

The client-side ACPChannel: stdio and WebSocket, on the official SDK.

  • ChannelRefused — A connection the Shield will not keep, said in a sentence.
  • build_handler — The SDK's client router, with elicitation/create dispatched to handler.elicitation.
  • ACPChannel — One ACP connection, client side (see the module).
  • ConnectionChannel — An ACPChannel over the SDK's :class:acp.connection.Connection, whatever carries it.
  • StdioACPChannel — The agent as a subprocess of the Shield, its stdio the wire.
  • with_shell — env with SHELL named: the SDK's trimmed environment drops it, and a
  • WebSocketACPChannel — An agent served over a WebSocket, one JSON-RPC message per text frame.
  • stderr_to_our_stderr — A stderr sink that passes the agent's lines through, for agent-shield run --verbose.
  • wire — A schema model as the wire spells it (camelCase, no nulls).

agent_shield.acp.credential​

Authority across the chain: the execution credential a caller hands the Shield.

  • take_credential — The _meta to hand on, with the credential withheld, and the credential when one was sent.
  • fingerprint — Which credential, to compare two: a digest, never kept beside the token.
  • CredentialRefused — A credential the Shield cannot lend as asked, said in a sentence.
  • lent_with — The lent servers, each HTTP one's Authorization the credential; a stdio one refused.

agent_shield.acp.events​

The neutral events of the package: the ACP updates' neutral form, typed.

  • TextDelta — agent_message_chunk: the answer, streamed.
  • ThoughtDelta — agent_thought_chunk: reasoning, kept in the record, folded on the page.
  • UserText — user_message_chunk: what the person said, replayed by session/load.
  • Diff
  • Terminal
  • Text
  • Location
  • ToolCallSaid — tool_call: a tool row titled by the harness, its kind as its icon.
  • ToolCallUpdated — tool_call_update: the row's status and its displays (a diff, a terminal).
  • PlanStep
  • PlanUpdated — plan: the plan card, steps ticked, replaced as it progresses.
  • Command
  • CommandsUpdated — available_commands_update: slash commands for the composer.
  • ModeChanged — current_mode_update: the mode in the header.
  • SessionInfo — session_info_update: a title, a timestamp.
  • PermissionAsked — session/request_permission: the row awaits an approval.
  • Question — elicitation/create: a question the person answers.
  • ShieldAction — An fs/* or terminal/* the Shield answered: visible, decided, recorded.
  • TurnEnded — session/prompt's answer: why the turn stopped.

agent_shield.acp.normalize​

session/update → one neutral event; a malformed update ends the turn with a sentence.

  • MalformedUpdate — An update the protocol does not describe: no silent drop, the turn ends with this.
  • normalize — One session/update's update (an SDK model, or its wire dict) as an event.

agent_shield.acp.proxy​

The proxy: an ACP agent on the Shield's stdio, in front of the agent it launched.

  • ProxyRefused — What stops the proxy before the agent runs, said in a sentence.
  • SessionState
  • tool_name_of — The tool a call names: its input's name/tool, else the first word of its title.
  • action_of_tool_call — An Action from a tool call (a ToolCallSaid event or a ToolCallUpdate), or none to decide.
  • lend_mcp_servers — The servers the strictest policy that lists any lends, and the names cut.
  • ShieldProxy — The ACP agent the client sees (see the module).
  • proxy_running
  • serve_stdio — Run the proxy as an ACP agent on this process's stdio until the client goes away.
  • stderr_passthrough

agent_shield.acp.remote​

agent-shield connect <url>: a remote Shield (serve) as a local stdio agent.

  • RemoteRefused — A remote the mirror will not connect to, said in a sentence.
  • remote_url — The URL checked: ws/wss, no token in it.
  • mirror_stdio — Relay this process's stdio to the Shield at url until either side ends; the exit status.

agent_shield.acp.server​

agent-shield serve: the proxy as a server, over WebSocket and ACP Streamable HTTP.

  • ServeRefused — What stops the server before it listens, said in a sentence.
  • ShieldBackend — A connection's Shield: a proxy of its own, the SDK's agent router in front of it.
  • BridgeBackend — No Shield: the harness spawned for this connection, every line relayed both ways.
  • Served — One client connection: its backend, its streams, what it is waiting for.
  • ShieldServer — The listener (see the module). agents maps a path id ("" for /acp alone) to what serves it.

agent_shield.acp.workspace​

The workspace: where fs/* and terminal/* are answered.

  • OutsideWorkspace — A path the workspace does not hold, said in a sentence.
  • Placed — A path, placed against the workspace.
  • Workspace
  • TerminalRun
  • Terminals — The terminals a session opened, each a child process in the workspace.
  • workspace_of

agent_shield.audit​

The audit: every action and decision, one JSON line each, nothing secret.

  • redact — The text with every credential-looking span replaced by [redacted].
  • redacted_row — A row with every string of it redacted, however deep: what any audit writes, whoever keeps it.
  • diff_summary — A diff as the audit keeps it: its path, hash and size, never its text.
  • default_audit_path
  • AuditLog — Rows appended to a JSON Lines file.

agent_shield.cli​

The agent-shield command.

  • say
  • refuse
  • run — Run an ACP agent behind the Shield: agent-shield run -- claude-agent-acp.
  • install_adapter — npm install --prefix ~/.agent-shield/harnesses/<id>@<version> <package>@<version>, in the foreground.
  • setup — Find what is installed, install the pinned adapter and write the policy.
  • log — The audit: the last rows, one line each.
  • policy_show — Every line of the policy in force, and where it came from.
  • policy_schema — The policy document's JSON Schema.
  • policy_export — A document as another policy language: --dogwood, AgentCore Policy's.
  • policy_init — Write the default policy.
  • harnesses — The register: every harness with its terms.
  • yaml_checked_on
  • upgrade — Move the adapters to the register's pinned versions.
  • uninstall — Preview what an uninstall would remove.
  • serve — Serve the proxy over WebSocket and ACP Streamable HTTP.
  • connect — A remote Shield as a local stdio agent, for clients that only start commands.
  • version — The Shield's version.
  • main

agent_shield.config​

Where the Shield keeps its things: ~/.agent-shield (or $AGENT_SHIELD_HOME).

  • home
  • harness_prefix
  • harness_bin
  • Config — config.yaml, as a mapping the commands read and write.
  • find_policy_file — The project's policy, else the home one, else none.

agent_shield.conformance​

Conformance: a standard's controls answered from the Shield's evidence.

  • ConformanceError — What cannot be assessed, said in a sentence.
  • Evidence — One piece of evidence a collector attached to a control.
  • Document — A document of the Studio a person wrote for a control.
  • ThirdPartyReport — A third party's evaluation report, recorded with its date (the quarterly clock starts there).
  • DrillResult — One of the drills, as its report records it.
  • Fact — A fact the host asserts of its platform, with where it was proved.
  • Inputs — Everything the map reads, collected by the host.
  • Cadence — A control's clock: how often, when last, when next, whether it has run out.
  • ControlStatus — One control's answer.
  • Assessment — Every control of a standard, answered.
  • cadence_of — A control's clock from its cadence and the last time it was demonstrated.
  • assess — Every control of standard (an agentspecs StandardSpec) answered from inputs.

agent_shield.conformance.collect​

The collectors: each reads one kind of evidence out of :class:Inputs.

  • policies_by_scope
  • policy_in_force — The documents in force, each scope with its version: the configuration the Shield decides with.
  • organization_scope_present
  • rules_deciding — The rules, in any scope, that decide one of classes with one of decisions: (scope, rule).
  • rules_for — The rules that hold the given classes: ask first or leave it to me.
  • outside_workspace_held — A rule that asks or refuses outside the workspace, in any scope.
  • limits_set — The limits set in any scope, soft then hard.
  • network_allowlist — What a fetch may reach: the allow-list of the strictest scope that says.
  • mcp_allowlist
  • harness_admission
  • policy_weakened — Every way the application's own document (the team scope) permits more than the organization's: empty when none does.
  • organization_weakened — Every way the organization's document now permits more than it did at the previous assessment.
  • record_rows — The record's entries of one kind whose payload matches where.
  • decisions_logged — The Shield's decisions in the record: by behaviour and by what decided them.
  • approvals_logged
  • tool_calls_logged
  • feedback_logged
  • mcp_rows_logged
  • record_kept — The record as a whole: that it is written, how many entries, since when.
  • otel_counts
  • drill — A drill that was run and refused what it tried; a drill that allowed it, or was not run, is no evidence.
  • drill_outcome
  • failed_drills
  • validation_gate — The Validate gate passed on this version.
  • safety_held — Every safety test of the run on this version held.
  • validation_at
  • benchmark
  • signed_document — The organization's document for a control, as evidence only once signed and in date: (evidence, why not, the document).
  • third_party_report — A third party's report for a control, as evidence while within its cadence and passed.
  • fact — A fact the host asserts, as evidence when it holds.
  • fact_missing — What is missing when a fact is not held: the host's own words when it said why, else ours.
  • demonstration
  • harness_register

agent_shield.conformance.continuous​

Continuous conformance: recomputed as the inputs change, a lapse raised as a notice.

  • Notice — One lapse, for the organization's owners.
  • Snapshot — What an assessment amounted to, kept for the line over time.
  • lapses — What lapsed between two assessments, each a notice; empty when nothing did.
  • notice_keys — One key per notice and day, so an owner is told once of each lapse a day: a notice of a control
  • Trend — The line over time: snapshots, one per day at most, oldest first.

agent_shield.conformance.map​

The evidence map: AIUC-1's 55 controls, each with its collectors and its status rule.

  • a001
  • a002
  • a003
  • a004
  • a005
  • a006
  • a007
  • a008
  • a009
  • b001
  • b002
  • b003
  • b004
  • b005
  • b006
  • b007
  • b008
  • b009
  • b010
  • c001
  • c002
  • c003
  • c004
  • c005
  • c006
  • c007
  • c008
  • c009
  • c010
  • d001
  • d003
  • d004
  • e004
  • e005
  • e006
  • e009
  • e015
  • e016
  • e018
  • f001
  • f002
  • rule_for
  • covering_standard — The standard whose controls cover another's clauses, from the catalogue.
  • answer_covered — A clause answered through the controls that cover it: the weakest of them, bounded by the coverage.

agent_shield.firewall​

The firewall: an agent's policy.shield enforced in its pod and every connection recorded.

agent_shield.firewall.bounds​

An agent's rules held to its organization's ceiling.

  • bounded — rules held to ceiling: each entry only as far as the ceiling allows it; unchanged with no ceiling.
  • organization_ceilings — The ceilings the organization documents among policies carry, in their order.
  • bounded_by — rules held to every ceiling in turn: an account in two organizations gets what both allow.

agent_shield.firewall.cli​

agent-shield firewall: check, compile, apply, watch.

  • parse_rules — Rules from an agent spec (its policy.shield), a {shield: …} mapping, or bare rules.
  • load_rules — :func:parse_rules for a command: a refusal is said and ends it.
  • load_revision — The revision a rules file names ({"revision": …, "shield": {…}}), echoed once applied.
  • load_base
  • check — Validate the rules and say what they allow.
  • schema — The JSON Schema of policy.shield.
  • compile_command — Print the iptables-restore script.
  • apply_command — Apply base and rules once (needs NET_ADMIN).
  • FirewallAuditLog — The sidecar's audit: each row also on stdout as one JSON line (a container's log carries it),
  • watch — The sidecar's daemon: apply, keep current, record (needs NET_ADMIN).

agent_shield.firewall.compile​

Base and spec, compiled into one iptables-restore script.

  • BaseAllowance — One platform endpoint: its name, host, resolved addresses and ports.
  • BaseLayer — What the platform's runtime always reaches, and what is always refused.
  • Compiled — The script, and what a row needs to name a destination.
  • prefix — The NFLOG prefix of a rule: shield <decision> <rule>, quoted-safe and short.
  • compile_rules — The iptables-restore --noflush script for base + spec.

agent_shield.firewall.controller​

The firewall's controller: apply base + spec, keep it current, record every connection.

  • run_command
  • lookup
  • FirewallRefused — The kernel did not take the rules: said with what iptables said.
  • Applied — What the last apply wrote.
  • Controller — Applies and keeps the rules; the only writer of the firewall's chains.
  • ConnectionRecorder — Each logged connection as a connection row; repeats within a window folded.

agent_shield.firewall.export​

The firewall's rows to OTEL: one span per connection and firewall row.

  • runtime_uid — The runtime's uid the sidecar was given, or None.
  • row_attributes — A connection or firewall row as the span's attributes; :data:SPAN_NAMES says which rows.
  • export_row — One firewall row as one span; False when the row is not one or OpenTelemetry is not there.

agent_shield.firewall.model​

The firewall's rules: what an agent's pod may reach, and who may reach it.

  • FirewallError — An entry the firewall cannot take, said in a sentence.
  • Entry — One parsed entry: any, platform, a host or a network, and its port.
  • parse_entry — One entry of egress or ingress, parsed, or :class:FirewallError saying why not.
  • FirewallRules — An agent's policy.shield: its pod's egress and ingress.
  • FirewallCeiling — An organization's firewall: the most any of its agents may be granted.
  • firewall_json_schema — The JSON Schema of policy.shield, which agentspecs carries verbatim.
  • rules_of_spec — An agent spec's policy.shield, or the empty rules when it has none.

agent_shield.firewall.nflog​

nfnetlink_log: the packets the firewall's rules logged, read back as connections.

  • Connection — One logged connection: what was decided, by which rule, to where.
  • attributes — The attributes of one message's body, by type (the nested flag cleared).
  • decode_prefix — shield <decision> <rule> → (decision, rule); another prefix is not the Shield's.
  • decode_packet — An IPv4 packet's protocol, source, destination and ports; anything else is None.
  • decode_message — One netlink message → a :class:Connection, or None for what is not a Shield packet.
  • messages — The netlink messages one datagram carries.
  • config_message — A NFULNL_MSG_CONFIG request: a command, or the copy mode, for a group.
  • Listener — The bound group: :meth:connections yields each logged connection as it comes.

agent_shield.pap​

PAP through the Shield: the company role, standing in front of any agent, on PAP draft 0.4.

agent_shield.pap.company​

The Shield as a PAP company, standing in front of any agent, on PAP draft 0.4 (Operations v2).

  • money_moves — Whether a term carries an amount with a currency, anywhere in the terms.
  • operation_class — buy when a term moves money, or when there are no terms; write otherwise.
  • ReviewRefused — A ticket that is not held, or not this company's.
  • ReviewTicket — An operation held for a person of the company to release or refuse: held, released, failed or refused.
  • canonical
  • Signer — The company's signature on what the Shield answers: HMAC-SHA256 over the canonical JSON.
  • CompanyShield — The company's policy in front of its agent: decides, holds, releases, signs, records.
  • ShieldedOperationExecutor — pap.company.operationExecutor in place of the application's for its action: decided first.
  • ShieldedCompanyAgent — pap.company.agent in front of the application's: a turn is answered only when the policy lets it.
  • ShieldCompanyPlugin — A Reactor plugin wrapping an application's company contributions behind the Shield.

agent_shield.policy​

The policy document and the decision engine.

  • policy_json_schema — The document's JSON Schema, the one agentspecs carries as policies/.
  • policy_json_schema_text

agent_shield.policy.agentcore​

An organization's policy compiled for AgentCore Policy and its Gateway rate limits.

  • AgentCoreRefused — A document AgentCore's Gateway cannot decide as the Shield does, said in a sentence.
  • AgentCoreStatement — One AgentCore policy: its name in the engine, its statement, and where it came from.
  • AgentCorePolicies — What the document compiles to for one policy engine.
  • split_statements — Each policy of a set as its own text, its annotations kept, comments between policies dropped.
  • gateway_suffix — The ten characters AgentCore ends a Gateway's id with: what a policy's name carries.
  • compile_for_agentcore — An organization's document as the policies of one AgentCore policy engine, one per statement and Gateway.
  • gateway_rate_limit — The document's rate_limits as one BatchPutLimitEntry of BatchPutGatewayRateLimits.

agent_shield.policy.authorize​

The authorizer port: may this principal act on this object?

  • Subject — Who acts: {type, id} as AuthZen names it (account, deployment, agent).
  • ActionName — What is done: an action class of the policy, or a relation's own name.
  • Resource — What it is done to: {type, id} (workspace, tool, connection, deployment, host).
  • EvaluationRequest — One AuthZen evaluation request.
  • EvaluationResponse — One AuthZen evaluation response: the decision, and what the decision point adds.
  • AuthorizerUnreachable — The decision point did not answer; said in a sentence, never read as an allow.
  • Authorizer — A policy decision point behind the port.
  • Authorization — What the port answered for one action, for the decision and the audit.
  • AllowCache — Allows kept until their expiry; a deny is never kept.
  • authorize — Ask the authorizer, with the port's rules: deny wins, unreachable is a deny, allows cached.
  • hook_for — The hook a Context carries: one authorizer, one cache of allows.
  • Grant — One line of the local authorizer: who may do what to what, as patterns (fnmatch).
  • LocalAuthorizer — Grants in agent-shield.yaml (the local authorizer): the standalone proxy's own.
  • AuthZenAuthorizer — Any AuthZen evaluation endpoint (POST <url>): IAM's on Datalayer, OPA or Cedar elsewhere.
  • OpenFgaAuthorizer — An organization's own OpenFGA, asked at its check API (openfga: {url, store, model}).
  • OpaAuthorizer — Open Policy Agent behind the port: a second decision point, not OpenFGA-shaped.
  • LocalAuthorizerConfig
  • OpenFgaAuthorizerConfig
  • AuthZenAuthorizerConfig
  • OpaAuthorizerConfig
  • read_cedar_policies — The Cedar text a config names (inline, or a .cedar file's), and where it came from.
  • CedarAuthorizerConfig — cedar: {policies}: a Cedar policy set inline, or the path of a .cedar file.
  • AuthorizerConfig — authorizer: in a policy document: exactly one decision point (standalone).

agent_shield.policy.cedar​

Cedar behind the authorizer port: the cedar authorizer.

  • uid — Datalayer::<kind>::"<ident>", quoted as Cedar quotes it.
  • action_uid — The Cedar action of a call: the tool as AgentCore names it, else the Shield's own kind.
  • cedar_value — A value as Cedar's JSON takes it: no null, no float (a float becomes its text).
  • CedarCall — One call as Cedar sees it: principal, action, resource, context, and the principal's attributes.
  • call_from_request — The Cedar call an AuthZen request is (the context request_for writes).
  • CedarAnswer — What Cedar decided: allowed or not, the policies that decided, and its errors.
  • cedar_decide — Decide one call against a Cedar policy set; no cedarpy, or an error, is a deny.
  • CedarAuthorizer — A Cedar policy set behind the port (authorizer: {cedar: {policies}}).

agent_shield.policy.classify​

ACP kinds to classes, and the commands the default policy asks about.

  • strictest — The class that asks the most, of several; None for none.
  • pap_tool_class — The class of a pap_* tool as the model names it, prefixed by its server or not.
  • UnknownKind — A tool kind the protocol does not name: the turn ends with this sentence.
  • class_of — The class of an ACP kind or a Shield kind, or None when nothing is to decide.
  • flagged — The name of the first flag a command line raises, or None.
  • deleting — The name of the first deleting family a command line runs, or None.
  • command_class — The class of a command line: delete when it runs a deleting family, else default.

agent_shield.policy.decide​

decide(action, context, policies): pure, strictest scope first, first decision wins.

  • LimitState — What a session has used so far; the caller counts, the engine reads.
  • Context — What surrounds an action: the workspace, the session and its state.
  • request_for — The AuthZen request an action is: the context's subject, the class, the action's resource.
  • decide — Decide one action against the policies in force (see the module).
  • decide_budget — Decide the next model request against the model limits alone.
  • scopes_present

agent_shield.policy.default​

The default policy of as a session document.

  • default_policy — The document agent-shield setup writes beside a project.

agent_shield.policy.dogwood​

Dogwood policy sets: the parser, AgentCore's quotas and the lowering to Cedar.

  • DogwoodRefused — A policy set that cannot be read, said in a sentence.
  • Window — A within <n><unit> window.
  • Lit — A literal: an integer, a string, a boolean, or a decimal kept as text.
  • Var — A bound variable.
  • Wild — _ or *: matches anything, binds nothing.
  • CtxRef — context.a.b: a path into the current request's context.
  • ScopeRef — principal or resource, with an optional attribute path.
  • Entity — An entity literal, Type::"id", kept normalised.
  • Arr — An array of terms.
  • Agg — count or sum v over a for domain, where a condition holds.
  • Arith — left + right, left - right or left * right.
  • Pred — A predicate on one event: its action, its kind and its field patterns.
  • Tp — tp(t): binds t to the timepoint evaluated.
  • Formerly — formerly within W body.
  • Previous — previous within W body.
  • Since — left since within W right.
  • Not — !body.
  • And — left && right.
  • Exists — exists (x: T). body.
  • Compare — left <op> right.
  • Clause — One when or unless of a policy: Cedar text, or a temporal condition.
  • DogwoodPolicy — One policy of a set.
  • DogwoodSet — A parsed policy set and its lowering.
  • count_operators — The temporal operators in a condition: formerly, previous, since, count and sum.
  • windows_of — Every window in a condition.
  • normalize_uid — An entity's uid written Type::"id" with no spaces, as the evaluator compares them.
  • parse_temporal — Parse the body of a temporal { … } block.
  • lower — The set as standard Cedar: each temporal clause a boolean context.dogwood slot.
  • quota_problems — Why AgentCore would refuse the set, in sentences; empty when it would take it.
  • parse_set — Parse a Dogwood policy set and hold AgentCore's quotas.
  • cedar_problem — Why cedarpy refuses the lowered set; None when it parses, or "unavailable".
  • validate — Validate a policy set as the policies spec reads it: problems, and what was not checked.

agent_shield.policy.export_dogwood​

A Shield document's rules and limits as a Dogwood policy set.

  • ExportRefused — A document the export cannot say in Dogwood, said in a sentence.
  • rule_match — The rule's match as a Cedar condition over the Shield's context.
  • export_dogwood — A document's rules and limits as a Dogwood policy set, read back before it is returned.

agent_shield.policy.files​

Policy documents on disk: agent-shield.yaml.

  • PolicyRefused — A policy file that cannot be read, said in a sentence.
  • LoadedPolicy — A document and where it came from, for policy show and the audit.
  • parse_policy — One document from parsed YAML or JSON.
  • parse_policies — Every document of a file, strictest scope first.
  • load_policies — Read a policy file; a missing file is a refusal naming it.
  • dump_policy — The document as YAML, as setup writes it.

agent_shield.policy.levels​

Three levels, nothing loosening below the one above.

  • PolicyWidens — A lower document that would permit more than the one above it, in sentences.
  • overlaps — Whether some action both rules match. Conservative: a pattern is taken to overlap.
  • widening — Every way lower would permit more than above; empty when it only tightens.
  • check_tightens — Refuse lower with :class:PolicyWidens when it loosens any document above it.
  • admits — Why the policies in force refuse harness_id, or None when it is admitted.
  • credentials_rule — Whose key may run a harness: the strictest scope's rule (account when none says).

agent_shield.policy.model​

The policy document: one schema, three scopes, first decision wins.

  • Rule — One line of a policy: what it matches and what it decides.
  • Threshold — A soft threshold asks once; a hard one refuses each call that would cross it.
  • Limits — The stateful limits of a session.
  • Network — What the agent may reach over the network, through the Shield.
  • Mcp — The MCP servers the agent is lent, by name; everything else is cut from session/new.
  • Harnesses — The harnesses an organization admits, and whose credentials run them.
  • Dogwood — A Dogwood policy set (Cedar, and when temporal over the session's events).
  • Rate — A rate: at most rate per per.
  • RateLimits — What each person may spend through the organization's AgentCore Gateways.
  • Policy — One policy document, one scope.
  • Action — What the agent wants to do, as the engine sees it.
  • Decision — What the engine answered, and from where.
  • Settings — Bounds that keep the schema's text readable in a sentence.

agent_shield.policy.temporal​

The temporal evaluator: a Dogwood policy set decided over the session's history.

  • Event — One event of a session: a request, a response or an error, on one call.
  • EventLog — A session's history: what the Shield decided and what completed, oldest first.
  • Evaluator — One condition at one decision: the events up to and including the current request.
  • TemporalAnswer — What a set decided for one call, and why, in a sentence.
  • current_request — The call being decided, observed as a request at the decision timepoint.
  • evaluate — Decide one call: the temporal slots from the history and the current request, then Cedar.

agent_shield.reactor_extension​

What agent-shield contributes to the Datalayer CLI, as a reactor plugin.

  • AgentShieldCliExtension — The plugin: registers the agent-shield group into the host CLI.
  • manifest
  • plugin — What the datalayer.cli and datalayer.reactor.cli entry points resolve to.

agent_shield.register​

The harness register, read from agentspecs.

  • RegisterRefused — A harness the Shield will not set up or run, said in a sentence.
  • Harness — A catalogue harness with its register entry, as the Shield uses it.
  • catalogue
  • harness
  • harness_of_command — The harness whose adapter or command an executable's name is, if any.
  • credential_refusal — The sentence that refuses the credentials at hand, or None when an API key serves.

agent_shield.registration​

Registration with Datalayer, for a Shield that runs outside its runtimes.

  • RegistrationRefused — What stops a registration, said in a sentence; never the key.
  • cannot_have
  • pap_sentence — PAP through the Shield: once registered, said unavailable while local-only.
  • Registration — credentials.yaml: where the Shield is registered and with what.
  • pap_server_name — A company's server as the runtime names it: pap_ and its domain in plain characters.
  • pap_servers — The gateway's pap toolset at each company, lent with the registered Shield's token.
  • register — Exchange the key once, to prove it, and keep the registration (0600).

agent_shield.report​

The conformance report, with the Shield report as its Shield section.

  • ShieldSection — What the Shield decided with, and what it decided, over the period.
  • ConformanceReport — One report: the scope it is of, the assessment, the Shield section.
  • build_report — Assess standard on inputs and write the report of it; previous is the
  • merge_assessments — An organization's assessment from its deployments': each control at the weakest of them, the evidence of all.
  • lexical_state — A Lexical editor state from the report's Markdown: headings, paragraphs, quotes, bullet lists and tables.
  • report_json_text

agent_shield.saas​

Managed from the SaaS: the policies pulled from IAM.

agent_shield.saas.authorizer​

OpenFGA through IAM: the openfga-through-iam contribution to the port.

  • evaluate_url
  • IamAuthorizer — IAM's evaluation route, with the token: the one authorizer on Datalayer.

agent_shield.saas.policies​

The Shield's policy, pulled from IAM and honoured until it expires.

  • shield_policies_path
  • PolicyUnavailable — No policy can be honoured: IAM did not answer and no unexpired copy is held.
  • ServedPolicies — What IAM answered: the documents in force, and until when they are honoured.
  • PolicySource — Where the documents come from: IAM over HTTP, or a fake in a test.
  • fingerprint — What makes two answers the same policy: the documents' content, scope-ordered.
  • IamPolicySource — IAM over HTTP, with the runtime's token: the one source on Datalayer.
  • ManagedPolicies — The documents in force for one Shield, pulled, cached until expires, fail closed.

agent_shield.tracing​

The Shield over OTEL: one trace across the chain, counts under the account.

  • set_labels — The labels every count and span carries from now on: harness, deployment, usage_account_uid.
  • labels
  • reset_instruments — Forget the counters, so a test's meter provider makes new ones.
  • observe — One audit row as a span event on the current span and as counts.
  • turn_span — One prompt as a span, a child of whatever is current (the face's request), or nothing without OTEL.
  • turn_ended — How the turn stopped, on the current shield.turn span (shield.stop_reason); nothing without one.
  • trace_headers — The current trace context as W3C headers, or nothing when there is none.
  • with_traceparent — meta with the current traceparent (and tracestate) added when there is one and meta names none.
  • traceparent_of — The traceparent a _meta carries, when it carries one.
  • continued — Continue the trace a caller handed in (its _meta.traceparent), when this process is not already on one.
  • subject_of_token — Whom a token is minted for (its user, sub or top-level uid), read unverified; "" if none.
  • export_resource — The resource the exported telemetry carries: the service, the token's subject, the account it counts for.
  • configure_export — Export spans and counts to Datalayer's observability at url with token; False without the SDK.
  • refresh_export_token — A new bearer for the exporters already configured (a token exchanged again); how many took it.
  • flush_export — Hand what is batched to the ingest now (at exit, or before a check).