RESEARCH · Evulgare · NOT OFFICIAL EVIULON DOCTRINE

Capability-Adaptive Access for Diverse Agents: Architecting Autonomous Machine-to-Machine Systems

Research section 2 of 3

Maintaining consistency between human-visible guidance, API descriptions, and runtime capabilities is achieved by centralizing the source of truth at the controller routing layer. When a developer annotates a backend function, the continuous integration pipeline automatically generates the OpenAPI specification, the Schema.org Action JSON-LD elements, and the MCP inputSchema metadata. If a feature is disabled or lacks policy support, it is dynamically pruned from the human HTML documentation, the /.well-known/api-catalog linkset, and the MCP tools/list response simultaneously. This ensures that unsupported capabilities are explicit by their absolute omission across all client interfaces.

3.2 Concrete Onboarding Sequence and State Transitions

The following sequence demonstrates how diverse agents navigate this capability-adaptive environment automatically, reducing guessing and eliminating routine human assistance.

State Transition Phase Client Profile Agent Action Server Response and Capability Selection
1. Unauthenticated Discovery Legacy Browser / URL Reader Issues HTTP GET / with Accept: text/html. The server's content negotiation identifies the HTML preference. It returns the human-readable DOM, enriched with basic Schema.org metadata.
1. Unauthenticated Discovery Semantic Crawler Issues HTTP GET / with Accept: application/ld+json. The server honors the HTTP semantics, bypassing HTML generation and returning raw JSON-LD detailing the site's entities and available Action structures7.
1. Unauthenticated Discovery Autonomous Agent Issues HTTP GET /.well-known/mcp-configuration2. The server returns a static JSON document indicating the endpoint URI for the Model Context Protocol RPC gateway.
2. Capability Negotiation Autonomous Agent Sends JSON-RPC initialize request detailing client capabilities (e.g., tools.listChanged: true)30. The server responds with its supported capabilities, establishing a mutually agreed-upon baseline without human intervention41.
3. Interface Exploration Autonomous Agent Sends JSON-RPC tools/list request27. The server dynamically generates a deterministically ordered list of available tools, including their names, descriptions, and JSON Schema parameters29.
4. State-Changing Execution Autonomous Agent Agent reasons that a state change is required. Sends tools/call for update_record30. Safety Enforcement: The server evaluates the agent's bearer token. Finding only a global scope and lacking RAR intent, the server intercepts the request. It returns a safe "no-op" along with an RFC 9457 application/problem+json error detailing the requirement for RAR authorization6.
5. Autonomous Recovery Autonomous Agent Parses the RFC 9457 problem detail. Contacts the Authorization Server, submitting an authorization_details array for update_record19. The Authorization Server issues a constrained, intent-bound JWT containing the RAR parameters.
6. Successful Completion Autonomous Agent Retries the tools/call using the new, tightly scoped JWT30. The server verifies the token against local ACLs. The action is executed, and a structured success response is returned26.

This progressive sequence allows the server to degrade gracefully. If a basic HTTP client requests an unsupported media type during discovery, the server relies on standard RFC 9110 HTTP semantics, returning a 406 Not Acceptable or 415 Unsupported Media Type, definitively indicating an output format problem42.

4. Transferability to Other MATM Systems

The evidence and architectural models synthesized in this report are not isolated to conventional web application infrastructure; they are highly transferable across independent MATM systems. The principles of deterministic discovery, structured error recovery, and intent-based authorization apply universally wherever software entities communicate over network boundaries.
In Internet of Things (IoT) and constrained environments, the mechanisms mirror these recommendations closely. For instance, while enterprise APIs utilize /.well-known/api-catalog for discovery, constrained CoAP-based IoT networks utilize the CoRE Link Format (RFC 6690) representing Web Links in CBOR to achieve the exact same deterministic capability discovery44.
Similarly, in decentralized network management, where Software-Defined Networking (SDN) controllers act as MCP clients managing fleets of physical routers (acting as MCP servers), the stateless JSON-RPC framework permits controllers to automatically discover Yang modules and CLI dialects. If a diagnostic tool fails, the router issues a standardized execution error, allowing the controller to self-correct its syntax without network engineer intervention40. The strict separation of public state reads from RAR-gated configuration writes ensures that network topology discovery remains frictionless while preventing catastrophic unauthorized reconfigurations.

5. Prioritized Feature Proposals

To implement this capability-adaptive architecture effectively across modern production services, the following three features must be prioritized for engineering and deployment.

Proposal 1: Universal Problem Details Engine (RFC 9457)

Proposal 2: Dynamic Capability Discovery via Linksets and Link-Templates

Proposal 3: Intent-Based Authorization utilizing OAuth 2.0 RAR

6. Practical Adoption Sequence and Outlook

Transitioning a monolithic or legacy API architecture to a fully capability-adaptive MATM system is a complex undertaking that requires sequential implementation to maintain backward compatibility. The following sequence provides a practical roadmap.

6.1 Phased Adoption Sequence

  1. Phase 1: Semantic Foundation and Content Negotiation. Enforce strict HTTP semantics. Ensure Accept and Content-Type headers are respected, issuing 406 Not Acceptable and 415 Unsupported Media Type where appropriate. Implement Schema.org JSON-LD structured data on all public read interfaces.
  2. Phase 2: Error Standardization. Deprecate all proprietary API error messages. Implement middleware to catch non-2xx responses and format them strictly as RFC 9457 application/problem+json payloads. Guarantee that every error maps to a documented type URI.
  3. Phase 3: Deterministic Discovery. Provision the /.well-known/ directory. Publish baseline metadata including robots.txt, llms.txt, and an application/linkset catalog outlining available endpoints.
  4. Phase 4: Agent Runtimes. Expose a Model Context Protocol (MCP) server gateway parallel to the traditional REST API. Map existing internal microservices to MCP tools, enabling compatible agents to discover and invoke them over stateless JSON-RPC sessions.
  5. Phase 5: Granular Authorization. Phase out coarse OAuth 2.0 scopes for machine-to-machine state modifications. Mandate OAuth 2.0 RAR for all destructive endpoints, ensuring strict, intent-based boundaries and enforcing the UAIX No-Op protocol for policy violations.

6.2 Unresolved Questions

As MATM specifications evolve, several architectural questions remain unresolved across the industry:

Source: Evulgare/Adaptive Access For Autonomous Agents.md · SHA-256: 41a463ff0957a88dbc4dbed9022948369e6360e5d5f56d378efe0aec8f1d54fe