Section 12 of the specification

The Agent Package

This section says how an agent travels from a description to a running agent with an identity: what a package contains, how it is published to a depot and installed from one, and how a verifier checks that the agent answering is the package that was built.

version 0.41.0 status Published date 2026-11-07

This page renders Section 12 of the Common Agent Specification 0.41.0. Where the two differ, the full specification governs. Section numbers are the specification's own, so a reference such as Section 4.1 is in the full text. Rendered 2026-11-07 from SPEC.md in the Common Agent Standards repository, tag common-agent-v0.41.0, commit ea59cf4b.

If you want a platform to run your agent, send a package. If you run it yourself, send a Descriptor and register it.

This specification describes two ways a platform can accept an agent. An agent the platform installs arrives as a package, and this section gives every package one path: it is checked against the rules of 12.6, and it is installed, updated and removed by the procedure of 12.7. An agent the platform does not install is remote. It presents a Descriptor (Section 6) and registers, and its endpoint and the way a caller signs in to it are connection facts the platform holds outside any package. What a package carries inside, such as skills a harness reads or code that speaks a network binding itself, is declared in the package's own files (12.2, 12.4 and 12.5), and is not a separate kind of package.

An agent has an inside and an outside. The inside is what it is made of: skills, the scripts they run, the servers they reach. The outside is what a caller can rely on: what it does, what it refuses, what it needs, what it leaves behind, which is the Descriptor of Section 6. The inside has a portable format of its own, the Agent Plugin, whose standard says in its own words that distribution, installation, and permissions stay under each client's control. This section defines the thing that carries both halves from a description to a running agent with an identity: the Agent Package, what it contains, how the halves are joined, how it is published to and installed from a depot, and how a verifier can check that the agent answering on a network is the package that was built.

It is not a package format: Agent Plugins defines the layout and the manifest, and Agent Skills defines a skill folder; this section adds two files beside the manifest and one namespace inside it, restating neither. It is not a runtime, not a listing, and not a change to any wire.

12.1 Terms#

These are the words this document uses for the things an install joins, and they are used in this sense throughout.

  • Host: the machine an agent runs on. One host may hold many agents, each with its own home and its own identity.
  • Harness: the program that does the thinking when a message arrives, whether a coding tool driven from a terminal, a model runner, or an agent framework. A harness is not an agent: it is what an agent runs on, and one harness may serve many agents on one host.
  • Package: an Agent Plugin directory, or its archive, carrying a draft Descriptor and its runtime requirements at the paths in 12.2. A package is not an agent: it carries no subject, and until it is installed nobody can address it.
  • Draft Descriptor: a Descriptor without a subject (6.2.1), inside a package. Bound Descriptor: the same document with its subject filled and signed, served by the running agent.
  • Runtime requirements: the host-facing declaration of 12.4: what a host must have and what an installer must bind for the agent to run. It holds no install steps and none of the values an install binds. The values come from the owner's instruction, the steps belong to the installer (12.7), and the deployment record (8.3) proves what was placed.
  • Agent: what exists after an install: a subject with a key and a handle, a home on a host, a harness configured to read the package, and whatever parts the binding requires to receive messages and answer them.
  • Bare agent: an agent that carries no package and answers as its harness alone. It has a subject and a Descriptor like any other agent; what it does not have is offerings a package declared.
  • Depot: where packages are published to and fetched from, by name, version, and digest. A depot is not a registry of agents (6.7): it holds packages, which contain drafts, and it never serves a draft as any agent's Descriptor.
  • Installer: whatever performs 12.7; on a conforming deployment, an agent holding the deployment manager role described in Agent Roles.
  • Image: the package as installed, fixed as bytes and named by a digest, together with the harness and whatever parts the binding requires. An image is not a package: a package is authored and published, and an image is what an install produced from one.

An owner instructs a deploy; the installer installs the package; the result is an agent. The three words are not interchangeable: the deploy is the instruction, the install is the procedure of 12.7, and the agent is what the procedure leaves behind.

12.2 Layout#

A package is an Agent Plugin. Its portable parts are exactly what that standard says: plugin.json, skills/, and optionally mcp.json. Beside the manifest sit the two authored files this section adds, and one namespace directory holds the views generated from them.

<name>/
├── plugin.json                      the Agent Plugins manifest
├── agent-descriptor.json            the draft Descriptor: every caller-facing fact
├── agent-runtime-requirements.json  the runtime requirements: every host-facing fact
├── skills/<job-slug>/               one skill per job, offering or step: SKILL.md, scripts/, references/
├── mcp.json                         servers by system name, no vendor (optional)
└── net.agentdoc.package/            NOT.md, RECORDS.md, SYSTEMS.md, generated

The manifest's extension entry for the namespace net.agentdoc.package carries pointers and digests, never copies:

"extensions": {
  "net.agentdoc.package": {
    "descriptor":           { "path": "agent-descriptor.json",           "sha256": "<digest>" },
    "runtime_requirements": { "path": "agent-runtime-requirements.json", "sha256": "<digest>" },
    "built": true,
    "draft": true
  }
}

A package copied from another carries one more member here, from, naming the packages it descends from; Section 13.5 defines it, because copying is what a repository is for and nothing in an install reads it.

A reader accepts the names used before 0.30.0-draft. Before 0.30.0-draft the two authored files were descriptor.json and install.json, the manifest pointed at the second under install, and the second's format was "agent-install-v1". The second file was renamed because the word install made readers expect install steps in it, and it holds none. A writer MUST emit the current names: agent-descriptor.json, agent-runtime-requirements.json, the pointer runtime_requirements, and the format "agent-runtime-requirements-v1". A reader SHOULD accept each former name where its current one is absent, and MUST prefer the current one where a package carries both. Nothing else about either file changed, so a document read under a former name is read exactly as it would be under the current one. The former names have no removal date, because a published version is never changed (12.7) and a package published under them stays installable. A package that carries a file under both names has two spellings of one fact, which rule 1 of 12.6 forbids.

The namespace is the same for every conforming implementation, so any reader that knows this section finds the pointers under one key. A package MUST declare the Agent Plugins schema version that clients read, and an implementation SHOULD validate against a pinned copy of that schema rather than a fetched one, so that a moved or unavailable address cannot make a valid package unverifiable.

12.3 The draft Descriptor#

The draft Descriptor is the only authored spelling of every caller-facing fact in the package. Every rule of Section 6 applies to it unchanged: no subject, shapes only and never an address, credential, or endpoint, an absent member means not stated, versioned by replacement with its digest over exact bytes. Its refusals member is prose, and a builder SHOULD write it as one sentence per line, because an evaluator turns each refusal into a probe and a line is the one boundary it can rely on.

Two members are added to the Descriptor by this section, both optional and both ignored by a consumer that does not know them, as 6.2.4 requires:

  • records[]: what the agent must leave behind, each with a name, when (per_task or standing), and an optional file, a pattern relative to the records directory. A record is not an output: outputs are what a caller receives, records are what an operator and an auditor can inspect, and a caller reading outputs would be misled by a spend log listed among deliverables. An audit with the pattern is exact; without it, it falls back to the name.

  • escalates[]: what always goes to a person, one sentence each.

  • steps[] on an offering: the delivery steps the offering runs, in order, to deliver what it promises. A package's jobs are of two kinds: what a caller orders, which becomes an offering, and what the agent runs to deliver it, which becomes a step listed under that offering in the same shape (id, name, what it does, inputs, outputs). A step is not an offering unless it also stands as one, and a caller MUST NOT be shown a step as something it can order. Steps are one level deep. A builder that marks no job as offered offers them all, which is what every package before this member meant.

  • how on a job or a step: how the work is actually done, in four members, each a single word from a fixed set. A job or step that carries none says nothing, which is what every package before this member meant.

    • control: who decides what happens next: script (a program written in advance, the same every time), model (a model decides), or person (a person acts).
    • intelligence: how a model is used: none, called (a program calls a model at a named point and takes its answer back), or open (a model is given the work and chooses its own way through).
    • cost: what running it can spend: none, metered (bounded by a declared ceiling), or unbounded.
    • contract: how much of the method is written down: full (every step of it), ends (what must come out, not how), or goal (only the aim).

    One combination is refused rather than described: control: model with contract: full. A method written down in full and then handed to a model to improvise is the shape that fails, because the model does not follow the written method and nothing checks that it did. Either the method is a program, and control is script, or the contract is loosened to ends. control: script with intelligence: open is refused for the same reason from the other side: a program that hands the work to a model to find its own way is not a program, it is a model with a launcher. A checker MUST refuse a package carrying either, naming the job or step.

    What this is for: a caller is entitled to know whether the step they are buying is a fixed program or a model improvising, an operator needs to know what can spend, and a builder needs to be stopped from writing a procedure in prose and hoping. The first multi-agent run failed three times in exactly one way, a step with a written procedure left to a model to improvise, and nothing in the package said which steps those were.

  • run on a job: the exact command the host runs for this job, when there is one. A job MAY carry it only when its how says control: script and intelligence is not open; a job that says a program decides what happens next and then names no command is describing a program nobody can find. It has five members: command, the argument vector, first element the program; per_file, an argument fragment repeated once for each file the message brought, or absent when files are not passed; message_file, where the sender's text is written before the command runs, or absent when it is not needed; reply, either stdout or json:<member>, saying where the words for the sender are in what the command printed; and escalate_when, json:<member>, naming a member of that same output which, when it is present and not false, means the command has decided this turn needs judgment. The host then wakes the model as it would for a job with no command at all, and the command's own reply is not used. A job that never needs judgment omits it.

    Every element may carry placeholders, and the host substitutes exactly these and no others: {home}, {package}, {records}, {work}, {job_dir}, {message_id}, {sender}, {handle}, {in_reply_to}, and, inside per_file only, {file_path} and {file_media_type}. A placeholder the host does not know is an error at install, not at run: a command that silently ran with the literal text {job_dir} in it would be worse than one that refused.

    What this is for. A host that has a command for a job MUST run it and MUST NOT wake a model to decide whether to. The step is the same every time, it costs nothing to decide, and it cannot be improvised into something else. {in_reply_to} is the word none when the message answers nothing, so the command's own argument list never changes shape. A command that names escalate_when is not a model in disguise: the program still decides, every time, and what it decides is whether this one turn is one it can finish. The job's job_seconds still caps it, and a command that fails is a failed turn like any other: the sender is told, and finished work already filed is handed over.

  • Named run configs. A package MAY ship named run configs, in the draft Descriptor's run_config.named, beside the settings they set (Section 6.2). They are the author's layer of Section 5.8, and they travel in the package because the builder is the one who has seen which choices produce good work. The settings a job may set are caller-facing and are declared in the draft Descriptor; the install settings of 12.4 section 3 are host-facing and stay in the runtime requirements. A run config never reaches an install setting.

A system in systems[] to which the agent sends a caller's material during the work SHOULD say so with leaves: true; a caller deciding whether to engage is entitled to know that their text leaves the agent.

An offering's scope and the members it requires (Section 6.11), its focus and role, its workspace, its authority and its ceilings, are caller-facing and travel in the draft Descriptor, because the builder is the one who knows what an offering can touch. The owner MAY lower a ceiling at install and MUST NOT raise one (12.6, rule 6). acts_for does not travel: it is the owner's decision (12.6, rule 4).

12.4 The runtime requirements#

The runtime requirements file, agent-runtime-requirements.json, is the host-facing half. Everything in it is something a host must have or an installer must create, bind or set, and nothing in it is something a caller could act on. It states what is required and never how to meet it: the steps are the installer's (12.7), the values an install binds arrive in the owner's instruction, and the deployment record (8.3) is what proves what was placed. It MUST NOT contain a credential value, an address, an account identifier, or a host path outside the package: it names things, and the host resolves the names. Its format is "agent-runtime-requirements-v1", with "agent-install-v1" accepted as 12.2 says, and it has five sections:

  1. runtimes[] and binaries[]: what must be present on the host before install proceeds, each with a purpose a person can read. The installer MUST check each and MUST stop and escalate when one is missing, never substitute.
  2. dependencies[]: what the skills' scripts need, per skill, as a lockfile with integrity hashes carried under the skill's own folder, and the lockfile's digest. The installer MUST install from the lockfile into the agent's own home, never system-wide, and MUST NOT execute install-time scripts or lifecycle hooks of any kind.
  3. systems[]: one entry per system name the Descriptor names, and no others; the two sets MUST be equal. An entry names its system in name, with role accepted as an alias for one revision on the same terms as Section 6.2's, so an installer MUST read either and MUST prefer name where both are present. Each entry says what kind of thing the system is bound to (directory, mcp, service, or model) and, for a service, the name of the credential the scripts expect, the environment variable they read it from, and whether the service spends and in what unit. Kind mcp binds the system to an entry in mcp.json, which names the server by the same name and carries no vendor address. Kind model is the model the scripts call, and its entry, its settings and how they are read are in 12.4.1. A service whose scripts also read a non-secret value the host must supply, such as a billing project, lists it under settings by variable name and purpose; the instruction supplies the value at install, a reconfigure (12.7) may change it later, and the record names the variable. The address a service's scripts call is such a value: a script carries no address of its own (12.6, rule 2), so a service whose address the scripts need lists it under settings like any other non-secret value.
  4. ceilings[]: which spending systems need a ceiling, per what, and which side applies it. The runtime requirements say a ceiling is required; the owner's instruction sets the number. Each entry MUST carry enforced_by, one of two words. runtime: the runtime the agent runs in applies the number and nothing else can, because the package's scripts reach the spending system directly, with the credential this file names, and the call is made before any other party sees it. platform: the spending passes through a party that is not the agent, which can refuse a charge the runtime has already decided to make. The value follows from how the package reaches the system and never from whose machine the agent runs on: a ceiling over a system the scripts reach with a credential named here MUST say runtime, whoever installs the package, and platform is available only where the agent reaches the system through a facility the host supplies. What a reader may conclude: under platform, the ceiling outlives a runtime that ignores it, because a second party is still in the path; under runtime, the ceiling is worth what the party that supplied the runtime is worth, and a number in a record is what that party was asked to apply rather than a limit anybody else can hold it to. A spending system with no ceiling entry does not conform, and neither does an entry with no enforced_by: an unstated enforcing side is read as the weaker one by a careful reader and as the stronger one by a hopeful one, and the hopeful reading is a buyer believing somebody is watching the spend when nobody is. An entry MAY carry suggested, a number in the system's unit that the builder considers reasonable for one task or day; an approver's form MAY offer it as the default, and it binds nothing until the owner's instruction adopts it.
  5. directories[]: the working directories the installer creates and binds, including where records land. A directory is bound at install to storage that outlives a single run, and a host that cannot bind one MUST refuse rather than create a directory of the right name that does not survive: a working directory that is discarded between messages looks filed and is lost, which is worse than no directory at all.

Beside the five sections the file carries one number, job_seconds: how long one job may take at most, a whole number of seconds; the host caps each job at it. A package that says nothing gets the host's default, and work that outruns it is stopped, so a package whose job takes minutes MUST say so. It sits beside ceilings[] rather than inside it because it bounds time rather than spending, and the host applies it whoever else applies a ceiling.

What the agent reaches. The runtime requirements carry no list of network destinations, because every destination an agent needs is already named somewhere else, and a second list would be a second spelling (12.6, rule 1). The install derives them, and these are the derived set: each system in systems[], at the address of the product bound to it (8.3, bindings), or, for a service whose binding carries no address, at the hosts the owner's instruction names for it, except a directory system, which is storage and has no address; the network the agent is bound to (Section 11) and the registrar that holds its handle (Section 8.6), at the addresses the host's own binding uses; the model, which is the host of the MODEL_ENDPOINT value of the agent's model system (12.4.1) as it stands when the set is derived, and, where the harness itself reaches a model, the endpoint the host gives the harness, which a host SHOULD give in the same four settings; and, for each workspace kind an offering declares whose resources live at a network address, such as git, the hosts the owner's instruction names for that kind, because the address of each resource arrives with each request (Section 6.11) and only the owner can say where requests may point. A destination outside the derived set is a further destination. It is reached only by an agent with an offering that declares reaches-network (Section 6.11), and only where the owner's instruction names it, never the package, which carries no address (12.6, rule 3). A package whose offerings all leave reaches-network out has therefore said, by what it already declares, every kind of place it reaches, and an installer can allow those and refuse the rest.

Beside them it carries one name, answer: which of the pieces this package files is the reply to the sender, as { "piece": "<name>" }. A package that files a deliverable and does not say which one answers leaves that decision to the host, and the only thing a host has to decide with is what the work printed. For a command whose run declaration already names a reply that is fine. For an agent that wakes a model it is not: a harness prints every assistant text part, so its output is a transcript of thinking rather than a deliverable, and the tail of a transcript is the end of the thinking. A sender given that has been told nothing, and in a process the next agent is handed it as input and produces something that looks like work.

So a host MUST take the named piece as the reply when the package names one and that piece is filed and carries a text media type. A host MUST NOT treat a piece of any other media type as a reply: a reply is words in a message, and a page, a recording or an archive is a piece to fetch. Where a package names no piece, a host SHOULD offer the work somewhere to write its answer and take what is written there in preference to what was printed. What the work printed is the last resort in both cases, and a host SHOULD record which of the three it used, because a sender given the deliverable and a sender given the transcript cannot tell the difference from the outside.

A package that names a piece it does not file has a fault its author needs to hear, and the host MUST say so where an operator will read it. It SHOULD still answer with whatever the work did manage to say: the sender is a third party to that mistake and silence serves them worse.

12.4.1 The model system#

An agent whose scripts call a model declares the model as a system of kind model, and every agent does this in the same way, so that whoever runs an agent can point it at a model without reading its scripts. A script that calls a model in one of the formats listed below calls it through the agent's model system and through no other system. An agent declares at most one system of kind model, because the settings of that system have the same names in every agent. A model the work calls in some other format, such as a voice or an image service with a format of its own, is a service and keeps a service's entry, with its address under settings.

The name. The model system is named like every other system, in the Descriptor's systems[] and in its entry here, and the two names are equal (12.6, rule 2). The name is the author's choice, such as text-reasoning, and this specification fixes no name for it. The name tells a caller what the access is for, and the kind tells a host what to bind, so a host, an installer and a checker find the model system by its kind and never by its name. A model system to which the scripts send a caller's material SHOULD say leaves: true in the Descriptor, as 12.3 says of every such system.

The entry. The entry carries name, kind of "model", and protocols, the formats the scripts can speak, as one or more values from the list below. It says whether the model spends and in what unit, as a service's entry does, and a model that spends has its ceiling in ceilings[] like any other spending system. The entry names no credential and no variable, because the four settings are the same in every agent and an installer binds them without being told their names.

{ "name": "text-reasoning", "kind": "model", "protocols": ["anthropic-messages", "openai-chat"] }

The four settings. The scripts reach the model through four environment variables, which have these names in every agent:

Setting Holds
MODEL_NAME Which model is called, as the endpoint names it.
MODEL_ENDPOINT Where the request is sent: the base address of the endpoint, which is the address a format's own client libraries take as their base.
MODEL_KEY The credential the request signs in with. It is a credential under every rule of this section: named in the instruction, fetched from the owner's store, placed for the agent, and never written into a package or a record. It MAY be empty where the endpoint needs no credential, such as a gateway on the agent's own host, and a script then sends no credential.
MODEL_PROTOCOL The format of the request, as one value from the list below.

MODEL_NAME, MODEL_ENDPOINT and MODEL_PROTOCOL are non-secret values that the instruction supplies, and MODEL_KEY is a credential that the instruction names. A script MUST read all four from its environment and from nowhere else. It MUST NOT carry a value of its own for any of them, as a default or in any other way. Where MODEL_NAME, MODEL_ENDPOINT or MODEL_PROTOCOL is empty, or MODEL_PROTOCOL holds a value outside the entry's protocols, the script stops before it calls anything and says which setting stopped it.

The answer budget. One more setting is optional: MODEL_MAX_OUTPUT_TOKENS, the most tokens one answer may hold, a whole number above zero. It is a non-secret value the instruction MAY supply, read on every run like the four. Where it is absent or empty, a script uses its own budget, because unlike the four settings a budget is not a fact about where the model is: a script MAY carry a default, and a job MAY name a budget of its own for a call that needs less. Where it is set, it is the budget for every call whose job names none. An installer that binds it refuses, before anything is changed, a value that is not a whole number above zero. A script stops on such a value before it calls anything and says so. Whoever runs the agent raises it where answers are cut off at the budget, and lowers it where the endpoint serves a model whose ceiling is lower.

The formats. MODEL_PROTOCOL takes one of three values. The list is closed. A host MUST refuse a value outside it, and an installer MUST refuse, before anything is changed, an instruction that gives a value outside it or outside the entry's protocols. The list changes only in a new version of this specification.

Value The request
anthropic-messages The Messages format. The request is a POST to MODEL_ENDPOINT followed by /v1/messages, with the model named in the body's model, an anthropic-version header, and MODEL_KEY, where it is not empty, in the x-api-key header.
openai-chat The Chat Completions format. The request is a POST to MODEL_ENDPOINT followed by /chat/completions, with the model named in the body's model, and MODEL_KEY, where it is not empty, sent in the Authorization header as Bearer followed by the key.
gemini The generateContent format. The request is a POST to MODEL_ENDPOINT followed by /models/, then MODEL_NAME, then :generateContent, or :streamGenerateContent for an answer that streams, with MODEL_KEY, where it is not empty, in the x-goog-api-key header.

A script removes one trailing slash from MODEL_ENDPOINT before it adds the path.

Each of the three is a request format that has been published, that its publisher's own models answer, and that hosts and gateways other than its publisher also serve. Between them they reach the models in common use: a host that serves models from several publishers serves them in at least one of these formats, and openai-chat is the format that most gateways and self-hosted model servers accept for any model they serve. The values name formats, not services. A model from one publisher reached through a gateway that speaks another publisher's format is called in the gateway's format, and an agent never needs to know whose model stands behind an endpoint. Two of the three publishers publish more than one format for their models, so those two values say which format is meant, with messages and chat. The third publishes one family of operations under one name, and its value is that name. A format that only one host serves, or one that a gateway can translate into one of these three, does not join the list, because every value added is one more format that a model caller shared by many agents has to speak.

Read on every run. The four settings are read each time a script runs, and whoever runs the agent MAY change any of them at any time. The next run uses the new values. No new version is published, nothing is installed again, and the package, its digest and the bound Descriptor stay as they were. A script MUST NOT copy the settings into a file, keep them from one run to the next, or read them once when the agent starts and use them for later runs. Where an installer manages the agent, a change is a reconfigure (12.7), which records the change, naming MODEL_KEY by the credential's name only. Where the owner runs the agent (12.7.1), the owner changes the values on their own side, and the side that starts the agent records the change. The word install in install settings says who sets the values and which record names them. It does not mean that the values are fixed when the agent is installed, and this holds for every install setting, the model's and every other.

A change to MODEL_ENDPOINT changes the derived set of 12.4, so a reconfigure that makes one derives the egress again, as every act does (12.7). Where the host enforces an allowlist, a new endpoint can be reached once that act has provided it.

The model setting of a run config. Which model is called is either chosen for each job or set by whoever runs the agent, and never both. Where the Descriptor declares a run-config setting named model (Section 6.2), the model is that declared setting: MODEL_NAME is then not an install setting, the instruction does not supply it, and the host sets it for each job's run to the job's resolved value of model (Section 5.8). Where the Descriptor declares no model setting, MODEL_NAME is an install setting like the other three. Either way a script reads one variable, and the model a job ran with is the value it read. MODEL_ENDPOINT, MODEL_KEY and MODEL_PROTOCOL are install settings in both cases, and a job whose model the endpoint does not serve is refused with the reason cannot_use before any work starts (Section 5.8).

No sign-in from the surroundings. The credential a script signs in to the model with is MODEL_KEY and nothing else. A script MUST NOT obtain a model credential from anything around it: not from a cloud machine's metadata server, not from a credential file or a command-line tool's stored sign-in on the host, and not from an environment variable that the runtime requirements do not declare, such as a provider's own variable for its key that happens to be set on the host. The one exception is the two former names below, while they are accepted. A credential taken from the surroundings is a credential nobody placed for this agent. No instruction named it and no record lists it, and it changes with the machine the agent is moved to, so the same package does something different on every host and its records cannot say why.

Where a provider signs requests in with a short-lived token rather than a standing key, the host supplies an endpoint that handles the token: a gateway on the host's side that obtains and renews the token, at which MODEL_ENDPOINT points. MODEL_KEY is then empty, or a key the gateway issues for this agent alone. The agent calls the gateway in one of the three formats, and the token never reaches the agent. A gateway is a facility the host supplies, so a ceiling over a model reached through one MAY say platform (12.4, section 4), while a ceiling over a model the scripts reach directly with MODEL_KEY says runtime. The deployment record's bindings names the product bound to the model system and its address, as it does for any other system (8.3).

The names used before 0.39.0. Before this version a model had no settings with fixed names, and agents read names of their own. In 0.39.0 and 0.40.0, a script MAY read TEXT_MODEL where MODEL_NAME is not set, and TEXT_API_KEY where MODEL_KEY is not set, as aliases of those two settings, and a host MAY set either former name beside the current one. The aliases are removed in 0.41.0. There is no alias for MODEL_ENDPOINT or for MODEL_PROTOCOL, because no earlier name was ever declared for where a model is called or in what format. A script that called a model at an address it carried had gone around its declaration, and the fix is to read the two settings.

12.5 Skills and the generated views#

One skill per job, offering or step, named by the job's slug, and no skill without a job. A skill folder is an Agent Skill and MAY carry scripts/ and references/; its instructions are the place for the long-form judgment an agent needs to do the job well, and this section places no limit on their length. A skill MAY ship an acceptance check, a script that reads the skill's declared outputs and answers pass or fail on their form; it judges form, never quality.

NOT.md, RECORDS.md, and SYSTEMS.md exist so that a harness which reads markdown has them, and for no other reason. They are projections of the two authored files, generated by the builder, MUST NOT be edited by hand, and a checker regenerates them and compares bytes.

12.6 The rules#

  1. One authored spelling. A caller-facing fact appears in the draft Descriptor and nowhere else in the package; a host-facing fact appears in the runtime requirements and nowhere else. The manifest points, the markdown projects, and neither restates.

  2. The inside matches the outside. Every offering has exactly one skill and every skill an offering; every system name in the Descriptor has exactly one entry in the runtime requirements and every entry a name; every mcp.json server is a declared system name. A script reaches a system under its declared name, through the credential and the variable the runtime requirements name for it (12.4 section 3), or, for the model system, through the four settings of 12.4.1. A script carrying its own endpoint has gone around its own declaration: the system it reaches is in no systems[] entry, nobody bound it at install, no ceiling covers what it spends, and a caller reading the Descriptor cannot see that the work leaves. That is this rule's fault and not rule 3's, and the difference is the fix: rule 3's is deleting an address from a declaration, and this one's is declaring the system a script was already using. A script that reaches the resource an external input names, through the caller's grant, has not gone around its declaration, because the input declares it (Section 6.2). The same holds for an address a standing asset hands it. Where an entry of can_use names in its reads a member that holds an address, such as a brand profile's logo.mark.href, the address in the version a job is handed is a handed address: the entry declares that the agent reads it (Section 6.14.4), and a person approved it with that version (Section 6.14.2). A script that reaches it has not gone around its declaration. The entry's schema is still a name and is never fetched (rule 3), and an address the script writes down itself is still this rule's fault. A checker finds a script that carries its own endpoint by its address literals, as the address check of 12.10 says, and a depot warns about one, naming each file and address, where the publisher and every reader of the package will see it.

  3. Shapes in the Descriptor, names in the runtime requirements, values nowhere. No file in a package contains a credential value, whatever kind of file it is: a secret inside a package is a secret published, and rule 7 has the credentials placed at install and nowhere else. Addresses, endpoints, and account identifiers bind the three authored declarations absolutely: the manifest, the draft Descriptor, and the runtime requirements MUST NOT contain one, and a depot MUST refuse to publish a package whose declarations do. Those three are where the package says what it is and what it needs, read by a caller deciding and an installer binding, and an address in one of them ties the package to a deployment, which is the one thing a package is not (12.9).

    The addresses excepted are excepted by member and by file, and every one of them is in the manifest: its own $schema, naming the version of the Agent Plugins schema the manifest is written against; homepage and repository, the Agent Plugins members that say where a reader goes to read about this agent and where its source is kept; and the repository of each from entry in the net.agentdoc.package namespace, which says where an ancestor of this package was copied from (13.5). The test they pass is the one $schema passes: each names where a reader goes, and nothing at install or at run fetches any of them. An installer MUST NOT fetch from one, and a harness MUST NOT give one to a script. The runtime requirements carry no address of any kind, excepted or not, because they are read while an agent is being bound and run, where an address becomes a place. The Descriptor carries one exception and carries no other: the schema of each can_use entry, which names a published shape a caller may send with a job. It passes the same test the manifest's exceptions pass. A shape identifier is read the way a page reads an itemtype, as a name that is spelled as an address so that anybody may publish a shape without a registry agreeing to it first, and nothing at install or at run fetches it. An agent MUST NOT fetch it and a harness MUST NOT give it to a script: what a job hands an agent is the profile, never the address the profile was shaped by. A checker reads this member structurally and holds every other part of the Descriptor to the rule, because an exception tested by looking for an address anywhere in the file is not an exception but a hole.

    0.16.0-draft and earlier forbade homepage and repository too, on the reasoning that a package with an address in it is tied to a deployment. That reasoning holds for an endpoint and does not hold for a link to the source: the reference client already writes both members from its own spec, and a rule that forbids members of the format this section builds on is a rule against the wrong thing. What a link like that cannot do is prove anything, since anybody may type one; the build record's source (8.2) is where a repository is attested rather than claimed, and a reader who needs to know where bytes came from reads it there.

    A lockfile is exempt, and the exemption is not a hole. 12.4 section 2 requires a lockfile with integrity hashes, and every lockfile names where each dependency's bytes came from, so a rule that forbade addresses everywhere would forbid the thing another rule requires. The addresses in a lockfile are the provenance of bytes a hash already fixes: they say where a byte sequence came from, never where the agent talks, and striking them would delete the record of what was fetched while changing nothing the agent reaches. That is the test, and it is about direction rather than about file type: an address in a declaration is read at install or at run and becomes a place; an address in a lockfile is the history of bytes that are already pinned. An address anywhere the harness reads or a script calls is rule 2's business and never this exemption's, and a checker reports it there rather than passing it as provenance.

  4. Nothing commercial. A package carries no price for what it offers, no handling terms, and no claim about who may call the agent, whom it acts for, or whether a person attends it. Those attach at listing and at install, by whoever makes those decisions.

  5. One digest. A package is published and installed as an archive, and its SHA-256 over the archive bytes is the package's digest. Every record that mentions the package names that digest. This includes a record made before the package is published, such as a security review made before the step that builds the archive for publishing. Whoever makes such a record is handed an archive packed from the package's files, and the record names that archive's digest. Packing is deterministic, so the same files pack to the same bytes on any machine at any time: the entries are in the byte order of their paths, every entry has one fixed modification time, no entry names an owner or a group, an entry's permission bits say only whether the file is executable, and the compression setting is fixed. The archive published MUST be the same bytes as the archive the earlier record names. Where the digest of the published archive differs from the digest an earlier record names, that record does not apply to the published package, and the review it records is made again on the archive that will be published. There is no second kind of digest. A record names the archive's digest and never a digest over the files before they are packed, because two digests for one package would let a record name one while a depot serves the other.

  6. The bound Descriptor is the draft plus a subject. The Descriptor a running agent serves MUST differ from the draft in its package only by the presence of subject and signatures and by the members the install decides: acts_for and organization_name, interaction, fleet, agent_version when the draft leaves it empty (rule 4 keeps those out of the package), and an offering's ceilings, which the install MAY lower and MUST NOT raise. The deployment record names which members the binding added or changed. Any other difference means the agent is not the package that was built, and a verifier reports it.

  7. Nobody runs a package's code but the agent. The depot executes nothing. The installer executes nothing from the package. The agent's harness runs the skills' scripts, in the agent's own home, with the credentials placed for it and no others, and, for one caller's task, that caller's grant to an external input (Section 6.2).

  8. No hidden characters. A depot MUST scan every text file for zero-width characters, bidirectional controls, and the tag block before publishing, and refuse a package carrying one. Agent configuration has no gap between install and execution the way code does, so the check belongs at the door.

The one commercial member a package may carry. An offered job's revisions policy (Section 6.2) travels in the package, including the price of redoing each step, because the builder is the one who knows which steps stand on their own and roughly what each costs to run again; it is a proposal, not a listing. The operator MAY change any of it before the Descriptor is bound at install, and the bound Descriptor, not the package, is what the agent's node applies. Rule 4 is otherwise unchanged: the offering's own price, the handling terms and the door stay outside the package.

12.7 Publish, install, update, remove#

Publish. A package is published to a depot by name and version, signed by its builder. A publish MUST carry the build record (8.2) whose package.sha256 equals the digest of the bytes being published, and a depot MUST refuse a publish without one or with a digest that does not match. A published version is immutable; a version can be withdrawn, which marks it and stops new installs, and is never deleted, because deploy records point at it. A depot serves bytes by digest and indexes the draft Descriptor and the runtime requirements, so a search can answer what a package does, refuses, needs, and spends; a package whose runtime requirements declare nothing is indexed as "not stated", never as needing nothing. A depot MUST check every named run config in the draft Descriptor against the settings the same block declares, and MUST refuse a publish where a named run config repeats another's name, sets a setting the block does not declare, gives a value outside its setting's allowed or above a numeric rule's ceiling, or carries a digest that does not match its entry. A depot SHOULD expose list-versions, download, and publish over the registry HTTP API that Agent Package Manager clients speak, so the skills in its packages reach any client that installs plugins.

Install, on instruction from an owner and under the deployment manager's contract, in order: fetch by name and version and verify the digest against the build record and the manifest against the pinned schema; check every runtime and binary; create the agent's home and the declared directories; install the dependencies from each lockfile, executing nothing from the package; bind each system, a directory to a path under the home, an mcp entry to the address the instruction supplies, a service to the credential the instruction names, fetched from the owner's store and placed in the agent's environment, and refuse a request that contains a credential value before the value is used; set each required ceiling to the number the instruction gives, and stop when a spending system has none; provide the agent's egress, as the paragraph below says; translate the skills, views, and instructions into the form the target harness reads; mint the subject and bind the draft into the bound Descriptor by adding subject, acts_for and the operator's signature, so that it holds the minimal Descriptor (Section 6.2), placed where the agent serves it; start the agent and check it with the grade stated, smoke or conformance; produce the deployment record (8.3), whose act is "deploy", with the package digest, the bound Descriptor's digest, the credentials placed by name, the ceilings set, the egress provided, and the checks.

Egress. A deployment manager MUST record the egress it actually provided, in the deployment record's egress (8.3), on every deploy, update, rollback, reconfigure, install alongside and retire a version, as it stands after the act. It SHOULD enforce, by whatever the target supports, such as a cloud firewall, a security group, a cluster network policy or an egress proxy, an allowlist of the derived set of 12.4 (each system's binding, the network, the registrar, the model and the hosts the instruction names for each workspace kind) together with the further destinations the instruction names. A further destination needs the reaches-network authority on one of the agent's offerings (Section 6.11) and MUST be named in the instruction; a deployment manager MUST NOT allow one that the instruction does not name, and MUST refuse, before anything is changed, an instruction that names one for an agent without that authority. Each act derives the allowlist again from every version installed after it, the current one and each installed alongside, so a further destination lapses when no offering of any of them declares reaches-network, and a version installed alongside that declares it widens the agent's egress only as its own instruction names. A workspace host or a further destination that the act's instruction does not restate carries over from the instruction that last named it, as a binding does, and an instruction removes one by saying so. The authority is tested over every version installed after the act, and a further destination is kept while any of them declares reaches-network, whichever version's instruction named it. Where the target cannot restrict outbound traffic, the deployment manager records open with enforced_by of none and says so in its answer to the owner, so the owner learns it before relying on a limit nobody applies. A reconfigure that changes the egress lists it under changed, with what of egress. Where the owner runs the agent (12.7.1), egress is provided on the owner's side, and the side that starts the agent records it.

Update installs a new version under the same subject: agent_version MUST increase and the subject MUST NOT change; the old version's files are retained until the check passes, and a failed check restores them. The deployment record's act is "update": its package names the new version and updated_from the version it replaced, so it names both package digests; its descriptor_digest names the Descriptor bound after the update and updated_from.descriptor_digest the one bound before, so it names both Descriptor digests.

Roll back returns the agent to the version it ran before the current one, under the same subject. It is its own act and not an update, and its record says so. It goes through an update's steps and its check: the subject MUST NOT change, the files of the version being left are retained until the check passes, and a failed check restores them. agent_version decreases, which only a rollback does, and the bound Descriptor is the earlier version's again. The deployment record's act is "rollback": its package names the version the agent returned to and rolled_back_from the version it left, so it names both package digests; its descriptor_digest names the Descriptor bound after the rollback and rolled_back_from.descriptor_digest the one bound before, so it names both Descriptor digests. A rollback leaves every version installed alongside as it was, as an update does, except where the version it returns to was installed alongside: that version becomes the current one and is no longer installed alongside.

Reconfigure changes the settings, credentials or ceilings of a running agent and installs no new version. The settings are the values the install decides rather than the package, such as a system's binding or the four settings of the model system (12.4.1), which the next run reads with no new version. The version and the subject MUST NOT change, and a change that needs either is an update. A credential is named in the instruction and fetched from the owner's store, as in an install, and a request that contains a credential value is refused before the value is used. A reconfigure MAY lower an offering's ceilings and MUST NOT raise them above the draft's (12.6, rule 6), and it sets a system's ceiling (12.4 section 4) to the number the instruction gives, never leaving a spending system without one. A change to a member of the bound Descriptor that the install decides, such as acts_for, interaction or an offering's ceilings, binds a new Descriptor, which keeps the same agent_version and is told apart from the old one by its digest (6.5). The deployment record's act is "reconfigure": its changed lists each change with the value before and after, and its checks[] are the checks run after it. Its descriptor_digest names the Descriptor bound after the change and reconfigured_from.descriptor_digest the one bound before, so it names both Descriptor digests, which are equal where the change bound no new Descriptor.

Install alongside installs another version of an installed package under the same subject without replacing the current one, so a job whose run config names that version can be done by it (5.8). The subject MUST NOT change, and no new subject, key or handle is minted. The version MUST differ from the current one and from every version already installed alongside, and MAY be lower or higher. The bound Descriptor stays the current version's, so what the agent declares to the world does not change. The install binds each system as an install does, from the instruction, so each version keeps its own install settings. A version installed alongside is reached only by a job that names it; a job that names no version, or the current one, is done by the current version. An update installs a new current version and leaves every version installed alongside as it was. The deployment record's act is "alongside", and it names the package digest and how the version is reached.

Retire a version removes one version installed alongside and never the current one, which only an update or a removal changes. The deployment record's act is "retire-version", and it lists what was removed and what remains, as a removal does. An installer SHOULD keep a version installed alongside while any run config it knows of names it, and SHOULD tell the owner before it retires one on its own.

Remove takes the agent down. The deployment record's act is "remove", and it lists what was removed and what remains, under remaining, which is empty only when the removal was complete; placed credentials are removed and named. The subject's Descriptor history at the registry is not removed (6.7).

The ledger. An installer MUST record every file it placed and each file's digest, in the deployment record or in a ledger it names, and answer "what is deployed" by rehashing those files and reporting every difference, so a hand edit to a running agent's instructions is detectable rather than invisible.

12.7.1 When the owner runs the agent#

The install above assumes the installer reaches the machine: it places files there, and it can rehash them afterwards. An owner MAY instead run the agent on compute the installer never touches. The procedure does not become optional when that happens. It splits in two, and each side MUST record the half it performed and MUST NOT record the other. The two halves are two kinds of record, not two deployment records: building an image deploys nothing, so the builder's account is a build record naming the image digest (8.2), and the side that starts the agent produces the one deployment record for the deploy.

What the installer still does. Everything that happens before a running machine is involved, in the order above and with the same refusals: fetch by name and version and verify the digest against the build record and the manifest against the pinned schema; satisfy each runtime and binary the runtime requirements name by putting it in rather than probing for it, and stop and escalate where one cannot be satisfied; install the dependencies from each lockfile; create the home and the declared directories; translate the skills, views, and instructions into the form the target harness reads. What those steps produce is an image, and the installer records its digest in a build record (8.2). Rule 7 of 12.6 is easiest to break here, because running one of the package's own scripts during a build is a single line and looks like part of building: an image build MUST execute nothing from the package, and an image whose contents were produced by the code under review is an image no digest usefully describes.

What the owner now does. Supply the compute and start the image. Place each credential the runtime requirements name, from their own store, under the variable it names; the installer MUST NOT hold a credential for an agent it does not run, and an owner MUST NOT hand one back to it. Bind each directory system to storage that outlives a single run, each service system to its variable, each mcp system to its address, and the model system to its four settings (12.4.1), which the owner may change at any time. Set every required ceiling to a number, and cap each job at job_seconds. Both of those are now applied on the owner's side and by nothing else, by the runtime or, where a ceiling's entry says platform, by whatever the owner put in the path, so a reader MUST NOT take a ceiling named in a record as one a depot, a builder, or a network applies: the number was set on the side that spends. Provide the agent's egress as the paragraph on egress in 12.7 says, by whatever the owner's compute supports, or run it open. What the owner does not do is any part of the install. An image the owner rebuilt is a different image, and a deployment record names the digest of the image it started and never one it was handed for an image it did not start, so a rebuild shows up as a digest no build record matches.

Who mints the subject, and who holds the key. Section 4.1 allows a key generated on the host and a key provisioned to it, and running on the owner's compute settles neither, so the record MUST. Where the key is generated inside the owner's runtime at first start, the installer never holds it, and the bound Descriptor cannot exist before then, because the signature 6.6 requires is made with the subject's own key: the binding happens on the owner's side, and the deployment record that names the bound Descriptor's digest is produced after the agent has first answered rather than before it starts. Where the key is minted by the installer and provisioned into the image or its environment, two parties have held it, and everything the subject ever signs is a signature more than one party could have made. A deployment record MUST state which of the two happened and who holds the key now. A record that names the subject's key and stops leaves a reader unable to count the parties who can speak as it. The handle is unaffected either way: it is bound to the key at a registrar (8.6), and where the key was made does not enter.

Who produces the deployment record, and what it can honestly claim. A record carries what its producer observed and nothing else. An installer that built an image and handed it over produces no deployment record: it deployed nothing, and what it built is stated in its build record, which names the package digest, the image digest, each file's digest as built, and the checks it ran against the image. The side that starts the agent produces the one deployment record, and it is the only side that can: it names the image digest it started, the target, the credentials it placed, the ceilings it set and who applies them, the egress it provided and what enforces it, the subject and the custody of its key, and the checks it ran after start. What it did not observe is absent (8.3), because a record carrying a ceiling nobody watched anyone set has said the ceiling was set. Where the producer is also the subject, the record is the subject's account of itself. It is a record under 8.1, verified and carried as one, and it moves nothing in an assembled view that the subject's own declaration could not have moved. A check the subject ran on itself is the subject's word, and signing it with the subject's key adds a signature, not a witness.

The ledger, when the files are layers. The ledger answers "what is deployed" by rehashing what was placed. In an image the files are layers, and the answer is the digest the runtime reports for the image it started, which the deployment record names, compared against the image digest in the build record of whoever built it. That is the stronger half of the exchange: one digest covers every file at once, and no file inside can differ from the file that was built without the digest differing. It is also the narrower half, because it covers nothing the runtime laid over the image at start. A mounted directory, a replaced instruction file, a variable holding a prompt: each changes what the agent does while the digest still matches. So every file the harness reads as instruction, meaning the skills, the generated views, and the draft Descriptor, MUST be inside the image, and a deployment that mounts one over the image does not conform. The directories bound at start are for what the agent writes, never for what it is told. An installer MUST still record each file's digest as built, in the build record beside the image digest, so that a reader can ask what is inside a layer without starting it.

12.7.2 The workspace contract#

Some runtimes describe a run rather than a machine: what is mounted, what is in the environment, which directories exist when the process starts. Part of the runtime requirements maps onto such a description and part of it cannot, and the split is the reason a package compiles to an image rather than to a workspace description.

What maps. directories[] maps directly, with the standing requirement that the one records land in outlives the run, which an image's own filesystem does not. In systems[], a directory system maps to a mount, a service system to an environment entry under the variable name the runtime requirements give, a model system to the four environment entries of 12.4.1, and an mcp system to whatever the run hands the harness as that server's address. The entries holding credentials are exactly the ones a run MUST NOT leave behind when it ends. What does not survive the mapping is the part of systems[] that is a statement rather than a binding: that a system spends, in what unit, and what the access is for. A workspace description carries the value and drops the reason, so an implementation MUST NOT treat one as a place those facts live.

What cannot map. dependencies[] needs a resolution that happens once, from a lockfile, before the agent answers, and 12.4 forbids satisfying it by executing the package. A description of a starting state has nowhere to put that work, and resolving it at each start is worse than not conforming: two starts produce two insides, and no digest in any record describes either. runtimes[] and binaries[] are a check that stops a deploy, and a starting state cannot stop anything. ceilings[] and job_seconds need a party that can refuse while the work runs, which is the opposite of a starting state: one is applied to spending as it happens, and the other is a clock watched to the end of a job.

Therefore the image. A package declares things that must be made true before the agent answers and things that must be enforced while it does. A workspace description states what a run begins with, and it neither makes nor enforces. So the package compiles to an image, where the resolution happens once and is fixed as bytes a record can name, and the workspace description is what the owner supplies around that image. An implementation MUST NOT present a workspace description as an install: it carries no dependency resolution, no runtime check, and no ceiling, and an agent started from one alone is an agent whose inside nobody established and whose spending nobody capped.

12.8 Provenance#

Three records join by digest. The build record names the package digest, the draft Descriptor's digest, each lockfile's digest, and the checks the builder ran with their grade, unrun or acceptance, with draft always true; where its producer built an image from the package it names that image's digest too, and a package built once and compiled into an image later has two build records, one per thing made. The deployment record names what its producer observed, out of the package digest, the image digest it started, the bound Descriptor's digest, the subject and how its key was minted, the credentials placed by name, the ceilings and who applies them, and the graded checks; a member it does not name is one it did not observe (8.3), so a record of a deploy whose image somebody else built joins on the digests it does carry and is weaker rather than invalid. Where both image digests exist, comparing them is how a reader learns whether the agent was started from what was built, and the answer is the starter's word. The evaluation record (8.4) names the bound Descriptor's digest and the verdict.

A verifier fetches the package by the deployment record's digest and confirms the bytes hash to it; confirms the build record names the same digest and its signature verifies against the builder's key; fetches the draft from the package and the bound Descriptor from the agent and confirms they differ only by subject and signatures; confirms the bound Descriptor's signature verifies against the subject's key; and confirms the evaluation record names that digest. A verifier that completes all five knows what is running and who vouched for each step. It does not know that the work is good, which no document about an agent can say. The evaluation record is optional. A verifier without one knows what is running and who vouched for the build and the deploy, and nothing about whether the work is done; an AgentDoc prints that nothing has been evaluated rather than hiding it. An agent a person attends is not evaluated by probing, because the person would be answering; the deploy's own graded check is the check it carries.

When the producer is the subject. Where the owner runs the agent (12.7.1), the five checks are not equally affected, and a reader is owed the difference rather than the count.

The first two are untouched. They are about bytes and a builder's signature: fetching the package by the digest the deployment record names and confirming the bytes hash to it, and confirming the build record names that digest and verifies against the builder's key. Neither has ever depended on the machine.

The third still runs and means less. Both documents are still fetchable, so the comparison happens as before. What changed is who chose the package to compare against. The deployment record names it, and where that record's producer is the subject, the subject chose its own comparison target: the check then proves that the Descriptor served matches the draft in the package the subject named, which is consistency. It never proved that the code answering was built from that package. It is weaker now only because the second party who used to name the package is gone.

The fourth is unchanged, and was always narrower than it reads. Section 6.6 requires the Descriptor's signature to be made with the subject's own key, so the check confirms that the document was signed by the key it names as subject. It catches substitution between the agent and the reader. It has never caught a subject describing itself generously, and who runs the machine does not touch it either way.

The fifth is untouched and carries more weight here than anywhere else. An evaluator probes the agent at its address, and where the agent runs does not enter. Where the deploy is self-issued, the evaluation record is the only one of the five whose issuer is neither the builder nor the subject and whose evidence is the running agent's own answers. It remains optional, and its absence costs more in this arrangement than in one where a second party performed the deploy.

What none of the five establishes, before this section and after it, is that the process answering was started from the image a record names. A runtime that reports the digest it started can be asked, and the answer is that runtime's word, weighed as its key is worth. Where the owner runs the agent, that key is the owner's, and a verifier who wants better than the owner's word has only the evaluator's probes.

12.9 What stays out of a package#

The agent's identity, handle, admission list, and attendance, which are the owner's decisions at install. Price and handling terms, which attach at listing, and which the Descriptor points at rather than holds. Evidence: the three records are about a package and never inside one. The runtime: a package declares what a host must have and never carries the harness that runs it. The image: a package is what an image is built from, and an image's digest names bytes that did not exist when the package was published, so a package carrying one would be naming its own successor; the build and deployment records carry it instead. Building one is how the harness the previous line keeps out of the package reaches the agent, which is what an image is for. The compute: nothing in a package says whose machine runs the agent, one package serves both answers, and a deployment record says which for one deploy. What a run begins with: the mounts, the variables, and the numbers of 12.7.2 are supplied per deployment and per run by whoever runs the agent.

12.10 Conformance#

A checker verifies a package mechanically: the layout of 12.2, read through the former names 12.2 accepts and reporting each one it finds; the manifest validates against the pinned schema and carries no address outside the four members 12.6 rule 3 excepts, $schema, homepage, repository, and each from entry's repository; the draft Descriptor conforms to Section 6 and carries no subject; the runtime requirements have their five sections with no values, addresses, or paths outside the package; no file anywhere in the package carries a credential value; a lockfile's addresses are the provenance rule 3 exempts and pass, while every address literal in a script, as the address check below defines it, is reported as a warning against rule 2, naming the file, the line and the literal, because a system a script reaches at an address it carries is a system nothing declared; at most one system has the kind model, its entry meets 12.4.1, and its protocols are drawn only from 12.4.1's list; every ceiling entry names the side that enforces it, and an entry over a system the scripts reach with a credential the runtime requirements name says runtime; one skill per offering and one offering per skill; the system names in the Descriptor and the runtime requirements are the same set, read through the role alias where a package still spells it that way; no job or step declares a how that 12.3 refuses; every offering's scope and the members it requires pass Section 6.11's checks, and the draft carries no acts_for and no shape; every run names a command, sits on a job whose how allows one, and uses only the placeholders 12.3 lists; every mcp.json server is a declared system name with no address; every named run config sets only declared settings, with values each setting allows, under a name used once and a digest that matches its entry; the generated views match a fresh generation byte for byte; the manifest's digests match the files; and no text file carries a hidden character. A depot conforms when it refuses a publish without a matching build record, serves immutable versions by digest, marks rather than deletes on withdraw, indexes the two authored files under their current or former names, checks the named run configs as 12.7 says, refuses a model system entry that 12.4.1 does not allow, publishes a package that carries an address literal in a script with the warning the address check below describes rather than refusing it, and scans for hidden characters. An installer conforms when it follows 12.7 in order, stops on a missing runtime, binary, credential, or ceiling, binds the model system's four settings under their names and refuses a MODEL_PROTOCOL outside 12.4.1's list or outside the entry's protocols, executes nothing from the package, produces a bound Descriptor that differs from the draft only by subject and signatures, keeps the ledger, and states the grade of its check. An installer that produces an image conforms when it executes nothing from the package during the build, resolves each dependency once from its lockfile, places every file the harness reads as instruction inside the image, records the image digest and each file's digest as built in a build record (8.2), and produces no deployment record, because it started nothing. The side that starts the agent produces the one deployment record, and it conforms when it names the image digest it started, states how the subject's key was minted and who holds it in 8.3's key_custody, names each ceiling it set with the side that applies it, and carries nothing its producer did not observe. A deployment record does not conform when it names a target, a placed credential, a ceiling, or a post-start check its producer did not perform, or an image digest for an image it did not start. It conforms with members absent, and a checker that requires a member its producer could not have observed has made the honest record the failing one. An owner-run deployment conforms when every file the harness reads as instruction is the image's rather than mounted over it, when every required ceiling has a number applied by the side its entry in the runtime requirements names, and when each job is capped at job_seconds.

The address check. A checker finds a script that carries its own address by reading text. It reads every package the same way, with no judgment and no knowledge of the language a script is written in, so two checkers given one package report the same literals.

  1. The files it reads are every file under a skill's scripts/ folder, and every file in the package that a job's run names in its command. A lockfile is not one of them, because rule 3 exempts its addresses.
  2. An address literal is either of two things anywhere in such a file, comments included. The first is a scheme of http, https, ws or wss, in any mix of upper and lower case, followed by :// and then a letter, a digit or [. The second is an IPv4 address in the range 169.254.0.0/16, with or without a scheme, because that range is where cloud machines serve their metadata.
  3. The identifiers excepted are the literals that begin with one of these prefixes: http://www.w3.org/, https://www.w3.org/, http://json-schema.org/, https://json-schema.org/, http://purl.org/, http://schemas.openxmlformats.org/ and http://schemas.microsoft.com/. They are names of formats spelled as addresses, as an XML namespace or a schema identifier is, and a script writes them into what it makes without calling them. The list is closed and changes only in a new version of this specification.
  4. Every other literal is a warning. The checker reports each one with the file, the line and the literal, against rule 2 of 12.6, as a warning and not as a failure. A depot MUST NOT refuse a package for an address literal. It MUST publish the package with a plain warning that names each file and each address, and MUST show that warning wherever it shows the package: to the publisher in its answer to the publish, and to a reader in the package's listing and in what its search returns. A warning stays with the version it was found in for as long as that version is served, and nothing a publisher writes, such as a reason for the address, removes it. Only a new version whose scripts carry no literal is published without one.

An address that a script builds while it runs, from MODEL_ENDPOINT, from another declared setting, or from the address an external input carries, is not a literal, and the check passes it. Rule 2's exception is kept and costs the check nothing: the address of the resource an external input names arrives with the request, so a script that reaches it holds no literal for it. A script that holds a literal for that resource's provider, instead of taking the address from the input, is reported like any other. An address on the agent's own host is reported like any other too, because a gateway on the host is reached through MODEL_ENDPOINT or a declared setting and never through a literal. The check is the floor of rule 2 and not the whole of it. A script that assembles an address from pieces so that the check passes it has still gone around its declaration, and a reviewer who finds one reports it under rule 2.

Where an agent is kept before it is packaged, and how somebody comes to run a copy of their own, is Section 13 of the specification, the agent repository.