Skip to content

A bare node can give a node code but not take one: add-from-code is agent-only #694

Description

@emooreatx

POST /v1/system/peers/add-from-code exists only on the agent (ciris_engine/logic/adapters/api/routes/system/peers.py). The node serves GET /v1/federation/node-code (its own code) but has no route that accepts another node's code, so on a node-only install the Peers card (CIRISClient CSD-033) can show this node's code and can never add a peer from one.

Ask: POST /v1/federation/peers/add-from-code {node_code} on the node, owner-session gated, doing what the agent's route does (decode the v3 code, admit the key, record the transport hint), so the agent's copy can become a forward.

Found by CIRISClient's network-group CSD review, read against origin/main.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions