Skip to content

INV-03: An agent plans and submits a namespace through MCP #439

Open

Description

@ephico2real2

Part of #436

Story

As an AI agent onboarding a team, I want MCP tools to plan a namespace (dry run), submit only the plan I saw, and follow the request to synced, so that I can create namespaces the way the portal does, safely.

Business value

Self-service onboarding from agents, with no shortcut around plans, approvals or idempotency.

Context

The portal's New namespace tab plans first and submits only the plan the person saw; writes take Idempotency-Key and, on changes, If-Match (docs/04, "Rules for each call"). The required labels and annotations come from each instance's metadata config (/api/v1/metadata-keys, #368).

Acceptance criteria

  • submit refuses a form that was not planned, or changed since its plan, shown by a test.
  • Each submit sends an Idempotency-Key; a retry after a lost answer creates no second request, shown by a test.
  • The request is recorded as automated with the agent's client (and the person, when on behalf), shown by a test and on CRC.
  • Approvals gate as for a person; an auto-approval rule can match automated, shown by a test.

Tasks

  • Plan, submit and follow tools; the required fields from the instance's contract.

Out of scope

  • Deletes and protection changes (INV-05 decides).

Definition of done

  • Mockup approved, or the work has no screen and no API shape
  • Draft pull request open
  • Build: tests fail before the change and pass after it
  • Documented where a reader looks for it
  • Review ruled
  • Merged with its proof
  • Released on the default branch

Class

INV

Activity

  1. added
    story
    class:INV
    status:open
    Backlog
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backlogclass:INVstatus:openstory

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions