Skip to content

Tower-to-Tower messaging, stage 3: another owner's Tower, by invitation #1968

Backlog

Description

@waleedkadous

Stage 3 of the Tower-to-Tower messaging design: an agent on my Tower sends to an agent on a Tower owned by someone else, after both owners have connected through an invitation.

Design: the approved spec for issue #1940, codev/specs/1940-tower-to-tower-messaging-proto.md (on main once PR #1957 merges). Read Decision 8 (the invitation walkthrough), Decision 9 (grants and held-for-release) and the security model before planning.

Depends on: stage 2 (issue #1967, between my own Towers), and Codev Cloud giving accounts a handle and the invitation pages.

Acceptance criteria (inherited from the spec as written)

  • Two owners can be connected only through an invitation that both act on in a signed-in
    Codev Cloud session. A Tower credential alone cannot create or accept one. One invitation
    connects the two owners, whatever number of Towers each has. The walkthrough in Decision 8
    can be followed by two people as written.
  • A Tower is shown to a connected owner only while its remote messaging is on.
  • An invitation can be accepted only by the account it was addressed to, and before it is
    accepted nothing about it appears on any Tower of the invitee.
  • Another owner's Tower is always written with its owner, afx://sam@mbp/…. When Sam and I
    each have a Tower called mbp, each address reaches the right one from either side, and
    every header, listing and reply command prints the owner when the Tower is not the reader's
    own.
  • After connecting, nothing is deliverable until the receiving owner grants a specific
    recipient on a specific Tower. Builders cannot be granted to another owner's Tower, and a
    builder's send to another owner's Tower is refused by its own Tower.
  • A message from another owner is held for release unless the grant says otherwise. Nothing in
    Tower releases or dismisses it automatically.
  • The header states that the message is from another owner and shows their verified email.
  • An ungranted sender cannot distinguish "no such agent" from "not allowed", and learns nothing
    about why a message is held.
  • Discovery shows another owner exactly the recipients they have been granted and nothing else.
  • Either owner can end the connection from any of their Towers or from Codev Cloud. Relaying
    stops at once in both directions between all their Towers, and the grants to the other
    owner's Towers are removed.
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

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions