Skip to article
PSC-06 · Contents
Persistent Semantic Agency · System ContractPSC-06 / 18

Extensions as Governed Contributions

An Extension becomes a participant through explicit definition, binding, applicability, Authority, selection, state ownership, reliability, and assurance—not through installation alone.

Author
Lukman Nuriakhmetov
Version
1.0
Published
Research cutoff
Reading time
10 min

Extension begins where universal law ends

A universal system must accept new domains, providers, Procedures, interfaces, and execution environments without requiring a Core fork. That requirement makes Extension a first-class architectural concern rather than an afterthought around a tool registry.

The PSA contract uses Extension for a governed contribution that adds semantics or functionality while remaining subject to Core identity, Authority, Admission, effect, Assurance, and lifecycle law. A Plugin package, a skill folder, an MCP server, an A2A provider, a WIT component, a human organization, or a remote service can all participate. None is automatically an Extension merely because it can be installed or contacted. It becomes one through an internal canonical contract.

Seven lifecycle facts must remain separate

The minimum lifecycle is:

External Package
    ↓
ExtensionDefinition
    ↓
Installation
    ↓
Binding / Instance
    ↓
Contribution Availability
    ↓
Applicability
    ↓
Authorization
    ↓
Selection / Use

The states answer different questions.

  • External Package: What distributable artifact or source was obtained?
  • ExtensionDefinition: What identity, semantics, imports, exports, contributions, state, requirements, and assurance claims does the Agent System recognize?
  • Installation: Which package and definition revision are present in a particular environment?
  • Binding / Instance: Which concrete provider, credentials, endpoint, Principal context, and configuration are associated with the definition?
  • Contribution Availability: What types, Procedures, Capabilities, views, hooks, or providers are currently exposed?
  • Applicability: Does a contribution fit the current Work, domain, schema, context, and policy?
  • Authorization: May it be used for this purpose under this Principal and Authority lineage?
  • Selection / Use: Has the system chosen it for one responsibility or interaction?

The following collapse is invalid:

installed = active = applicable = authorized = selected

Installation is an environmental fact. Selection is a governed decision.

A gated sequence starts with an external package and proceeds through Extension definition, installation, binding, contribution availability, applicability, authorization, and selected use. Assurance and health checks feed the later gates.
PSA-SC-F06 — An Extension moves from external package to selected contribution through definition, installation, binding, availability, applicability, and authorization. Open full-size SVG

ExtensionDefinition is the canonical internal contract

An ExtensionDefinition gives the external contribution a stable semantic identity inside the Agent System. At minimum, it records:

extension identity and namespace
package/source identity and version
schema and compatibility claims
contribution declarations
imports, exports, and requirements
state ownership classes
interaction contracts
failure and retry semantics
Authority and isolation requirements
lifecycle and migration contracts
provenance and supply-chain evidence

Definition validity means that the system can interpret the declaration and that required structural checks passed. It does not mean that the Extension is trusted, applicable, authorized, healthy, selected, or behaviorally correct.

valid definition ≠ semantic Authority

This distinction protects the system from a common supply-chain error: treating a signed or well-formed manifest as permission to act.

ExtensionWorld makes dependencies explicit

An ExtensionWorld declares what the Extension imports and exports. WebAssembly Interface Types provides a strong precedent for interface worlds. PSA adds semantic obligations around them.

Imports may include:

  • type and relation definitions;
  • Core services or projections;
  • data classes and Sources;
  • Capabilities and environments;
  • policy profiles;
  • identity, revision, and provenance services;
  • interaction and observation contracts.

Exports may include:

  • domain types and relations;
  • Procedures or Skills;
  • Resources and Capabilities;
  • observers and effect providers;
  • UI or interaction contributions;
  • verification or assessment functions;
  • mappings and compilers.

The world is explicit so that a dependency cannot smuggle hidden Authority or secrets. An Extension depending on another Extension does not inherit the dependency’s credentials, grants, Principal relationships, or data access.

Extension dependency ≠ Authority delegation

Contribution classes

Phase 5 recognizes several contribution classes without turning them into one generic “tool”:

ContributionTypical roleRequired boundary
Type/relation contributionadds domain vocabularynamespace, schema, ownership, compatibility
Procedure/Skillreusable know-howapplicability, required capabilities, evidence, evaluation
Resource/providerperforms cognition, observation, or effectprofile, capability semantics, environment, health, Authority
Observerproduces qualified observationssource authority, freshness, uncertainty, provenance
Effect providerattempts external mutationeffect identity, precondition enforcement, reconciliation
Verifier/assessorevaluates Evidence or qualityindependence, method, scope, confidence
Projection/viewderives a useful representationsource revisions, determinism/policy, rebuildability
Interaction/UI contributionsupports human or agent interactionpurpose, disclosure, state promotion boundary
Domain compiler/mappinglowers semantic definitions or converts representationsdeterminism claims, versioning, validation, provenance
Policy/profile contributionspecializes allowed behaviorauthority to define/apply policy; cannot weaken Core invariant

A declarative contribution may be safer and easier to inspect than executable code. It is not automatically trustworthy. An executable contribution may be isolated. It is not automatically semantically valid.

Providers can be static, dynamic, or interactive

An Extension may declare static contributions at installation or advertise providers at runtime. Runtime advertisements are observations with time, source, and freshness. They can expire or be contradicted.

A provider may also be interactive or agentic. It may request missing information, negotiate a plan, stream partial Results, propose new Work, or delegate remotely. The contract does not forbid such behavior. It prevents private provider cognition from becoming canonical by accident.

Material contributions cross a promotion boundary:

provider interaction
    ↓
Result / Observation / Proposal / Artifact
    ↓
Core contract and owning authority
    ↓
accepted semantic state, attributable rejection, or unresolved state

Ephemeral stream tokens, private plans, hidden memory, or provider-internal task state remain private unless a defined contribution is promoted.

No ambient Authority requires enforcement

A manifest can declare that an Extension uses only selected capabilities. That declaration is not enforcement.

WASI and capability systems provide direct precedent for starting with no ambient authority and receiving explicit host grants. Capsicum shows practical compartmentalization. RFC 9334 separates attestation Evidence, verifier appraisal, and relying-party decision.

The PSA IsolationAssuranceProfile records two dimensions.

Enforcement mode:
HOST_CAPABILITY_ENFORCED
SANDBOX_ENFORCED
REMOTE_PROVIDER_CONTROLLED
NONE_DECLARED
Assurance basis:
DIRECT_HOST_EVIDENCE
VERIFIED_ATTESTATION
CONTRACT_ONLY

The profile is not a quality score. It tells the selector what kind of claim is being made and how strongly it is supported. A remote provider may be useful under CONTRACT_ONLY assurance. It must not be described as host-enforced.

declaration ≠ enforcement
provenance ≠ behavior trust
A matrix compares four isolation enforcement modes with three assurance bases. Host capability enforcement with direct evidence is distinct from remote provider control supported only by contract.
PSA-SC-F07 — Isolation claims combine an enforcement location with an assurance basis; declaration and provenance never substitute for enforcement evidence. Open full-size SVG

Supply-chain identity is necessary and insufficient

OCI, SLSA provenance, TUF, and SPDX provide important pieces of artifact identity, production provenance, signed metadata, delegated update roles, rollback/freeze protection, and package/component information.

These sources help answer:

  • Which artifact was installed?
  • Where and how was it built?
  • Which signing role authorized an update?
  • Which dependencies and licenses were declared?
  • Is a rollback or freeze attack detectable?

They do not answer:

  • Is the contribution applicable to this Work?
  • Does it behave as claimed at runtime?
  • Is the current provider healthy?
  • May it access this data for this purpose?
  • May it produce this effect under this Principal?
  • Should its output be admitted or accepted?

The Extension contract composes supply-chain evidence with runtime assurance and semantic Authority instead of substituting one for another.

State ownership and promotion

Phase 5 distinguishes five state classes:

  1. Canonical Agent semantic state — owned by scoped semantic authorities.
  2. Extension configuration state — endpoint, mapping, selected profile, local settings.
  3. Extension private operational state — caches, provider-internal plans, local indexes, private memory.
  4. Provider/remote execution state — remote task, job, session, or stream state.
  5. Derived/cache state — rebuildable projections and indexes.

Promotion is explicit. A remote task’s completed status may support a Result. It does not import the provider’s entire state or close local Work. A private index may support retrieval. It does not become canonical Knowledge. A configuration update may change which binding is used. It does not rewrite Work or Authority.

Failure, retry, and logical effect identity

Extensions fail in different ways: unavailable, incompatible, unhealthy, timed out, semantically invalid, unauthorized, partially completed, ambiguously completed, or unable to reconcile. A generic exception is not enough.

A RetryContract states:

  • which failure classes are retryable;
  • who owns retry decisions;
  • budget and backoff;
  • whether the operation has a stable idempotency/effect identity;
  • how provider status is recovered;
  • what evidence is required before another attempt;
  • how retry amplification across dependency chains is bounded.

A retry creates a new Attempt under existing Work and logical effect identity unless semantics require new Work. An ambiguous effect is not retried blindly. The system first observes or reconciles the provider/external state.

Version, migration, quiescence, and removal

Extension lifecycle continues after installation.

  • Historical pinning preserves the definition, schema, Procedure, or provider semantics assumed by active Work.
  • Side-by-side versions may be needed while old Work remains active.
  • Upgrade Authority determines who may replace a definition or binding.
  • Quiescence asks whether in-flight calls, streams, delegated tasks, callbacks, and effects have reached a safe boundary.
  • Removal mode may disable new selection, retire a provider, detach a binding, or uninstall a package.
  • Orphaned Work remains visible if no compatible provider survives.

Uninstalling an Extension does not delete the semantic objects, provenance, Artifacts, Evidence, or historical references created while it was active. Those records may become unreadable only if the system failed to preserve their schema and identity, which is itself a conformance failure.

Modules compose Extensions under policy

A Module is a governed composition of types, Procedures, Resources, policies, profiles, bindings, and interfaces for a domain or operating purpose. It may provide role templates and configuration defaults. It does not receive blanket Authority over the domain.

Hooks and callbacks remain contributions. They cannot bypass Core mutation or effect law. Cross-module ontology collisions, policy conflicts, and incompatible capability labels are resolved through namespaces, semantic identity, explicit mappings, and attributable conflict—not last-writer-wins configuration.

E1–E10: the Extension contract families

The Phase 5 contract is organized into ten families:

E1  Extension Identity & Supply Chain
E2  Contribution & Semantic Interface
E3  Requirements / Imports / Exports / Dependencies
E4  Installation / Binding / Instance / Discovery
E5  Interaction / Channel / Streaming / UI
E6  Authority / Isolation / Trust
E7  Reliability / Failure / Retry / Health
E8  State Ownership / Version / Migration / Removal
E9  Module Composition / Configuration / Policy
E10 Conformance / Evaluation / Evolution

These families do not add a second Core. They constrain how Tier C participates without breaking Tier A and Tier B.

Mapping current ecosystems

The Agent Plugins Specification v1.0.0 is Published as of the research cutoff and contributes a portable package and manifest model, including Skills and MCP components. It explicitly distinguishes path containment from subprocess sandboxing. Agent Skills provides a practical package for instructions, scripts, references, and assets. MCP provides protocol resources, tools, prompts, Tasks, Skills, and Apps. A2A is at release v1.0.1 with protocol compatibility 1.0 and provides remote agent discovery and task interaction. WIT/WASI provide interface and capability boundaries.

PSA does not replace these specifications. It maps them into the Extension contract and adds the missing semantic questions: what is contributed, who owns it, when it applies, what Authority exists, how it is isolated, what state it may promote, and how local Closure is derived.

Conformance test for an Extension

An Extension is conforming only if the system can answer:

  1. What exact definition and package/source revision is present?
  2. Which semantic contributions are declared, and who owns their admitted state?
  3. What imports, exports, and dependencies exist?
  4. Which binding and provider are active now?
  5. Is the contribution available, applicable, authorized, and selected—separately?
  6. What enforcement and assurance support the isolation claim?
  7. What private, configuration, remote, derived, and canonical state exists?
  8. What retry, ambiguity, and reconciliation semantics apply?
  9. How are version, migration, quiescence, and removal handled?
  10. Can the Extension fail or disappear without erasing accepted responsibility and history?

Conformance requires that the answer remain available outside the Extension’s private process and outside any model’s current context.