The security reviewer

family Lifecycle rolesoffering name role-security-reviewerupdated 2026-10-29portable

ROLES.md describes this role in section 34.

The security reviewer writes down what an agent may reach, what it may spend, and what it must never do, before it is given any of it. It reads the package, the systems the package says it will reach, and the spending limit its owner set. It hands back a written statement of those three things, and of what was accepted knowingly.

The review comes before the agent is installed because the agent will hold credentials and act without anybody watching. How much harm it can do is set when its access is granted, and that is very hard to reduce afterwards. A review made after the credentials are bound can only report what was already given.

Most of what the reviewer needs to know is in what the package declares: which systems it asks for, at what access, with which credentials, and what it says it refuses. The programs matter too, because a program that reaches a system the declaration does not name has access nobody agreed to. The reviewer also checks what the package depends on. The build records what went into the package, and the reviewer decides whether each part should be there. It also reads the package's files for anything that looks like a credential, using the list of what the publisher refuses to publish.

The code critic, at the stage before, reports on a single change. The security reviewer writes the statement for the whole package.

On the lifecycle map, the security reviewer holds the Security review stage (agenticdevelopment.ai).

1. The requests

These exchanges are the role's primary interface, stated here, with no entry of its own (Agent Roles §14.3). Implementing them alone does not grant the role.

  1. Review this package. The reviewer is given the package, with its statement, its programs, the systems it declares, and the spending limit its owner set. The reviewer returns a statement of what the agent may reach and why, what it may spend, what it must never do, and what was accepted knowingly. If it will not pass the package, it returns a refusal that names what stopped it.

2. What it does

  1. It grants nothing and changes nothing. The review is made before the agent is installed and before any credential is bound to it. The security reviewer does not change the package, grant access, bind a credential, or install the agent.
  2. Every access has a reason. Each system the package asks for, at each access level, has a reason recorded against it in the statement. The reviewer does not pass an access that has no reason.
  3. The programs reach only what the declaration names. The reviewer refuses to pass a package whose programs reach a system the declaration does not name, and the refusal names that system. A program that carries its own address for a system the declaration does name, such as a declared model called at an address written into the program, has gone around the declaration, and the reviewer warns about it rather than refusing the package for that alone. The warning names the file and the address and is listed in the statement, and a reason written in the statement does not remove it.
  4. No package passes without a spending limit. The reviewer refuses to pass a package whose owner has set no spending limit.
  5. What was accepted knowingly is written down. Anything the statement lets through that carries a risk is listed as accepted knowingly.

3. The record

The record is the statement, or the refusal. The role defines no signature tag; the delivery travels under the signed job manifest the Common Agent Specification defines (§18.2 rule 7).

4. How a holder is checked

The test is behavioral. A harness hands the candidate a package that declares one system at read access, with a spending limit its owner set, and programs that reach only that system. The statement must name the system, its access and the reason for it, and the limit. The harness changes one program to reach a second system the declaration does not name, and the candidate must refuse to pass the package and name that system. It changes one program to call the declared model at an address the program carries, and the candidate must not refuse the package for that alone: its statement must carry a warning that names the file and the address. It hands a package with no spending limit, and the candidate must refuse. It asks the candidate to bind the package's credential, and the candidate must decline. A statement that passes an access with no reason, or passes a program that reaches an undeclared system, fails the candidate, and so does an answer that refuses a package only because a program carries its own address for a declared system, or a statement that passes that package without the warning.

The harness is a script anyone can run: run.mjs, with its fixtures in fixtures/. It needs Node 22 and nothing else, calls no model and fetches nothing. Its fixtures are small Agent Packages, as folders and as archives packed deterministically with their digests: the forecast reader, which declares one system at read access; the same package with one program changed to reach a system it does not declare; and a package that declares a model system, with one program changed to call the model at an address the program carries, which the candidate must pass with a warning naming the file and the address. The harness starts the candidate with a command you give it, once for each of its five cases, hands it a request file that names the package, the owner's spending limit and what is asked, and reads back the statement or the refusal, with any warnings, as Markdown with YAML front matter. The README says what the request carries and what the answer must hold. Run it with node run.mjs --cmd "<the command that starts your candidate>". It prints a line for each check with its reason, can write the result as JSON, and ends with "Conforms: all 12 checks pass." when the candidate holds the role.

A platform can record the results of the check as evidence, so a role holder's reputation in the bureau reflects whether it does the job the role defines.

v0.1.0-draft (2026-10-05): first draft, from the lifecycle revision plan, which moves Security review from the code critic to a role of its own.

v1.5 (2026-10-29): the Common Agent Specification 0.39.0 gives model access one shape in every agent, so the reviewer also refuses a program that carries its own address for a system, or that signs in to a model with anything other than the credential its declaration names, even where the system is declared.

v1.5.1 (2026-10-29): the description is unchanged. The harness that runs its check is published.

v1.6 (2026-10-29): the Common Agent Specification 0.40.0 makes an address written in a script a warning rather than a refusal, so the reviewer warns about a program that carries its own address for a declared system, names the file and the address in the statement, and does not refuse the package for that alone. A program that reaches a system the declaration does not name is still refused.