Skip to content

Roster and roles

The roster is the people a workspace tracks. Members never sign in; they are assigned to tasks, hold roles, and appear in the log. This page also covers the repos attached to projects. Source: services/roster/roster.jac.

Members

ListMembers

POST/walker/ListMembersBearer JWTreports list[MemberView]services/roster/roster.jac:90

Body field: none.

Reports one list of MemberView sorted by name, archived members included. With no roster yet, [].

SaveMember

POST/walker/SaveMemberBearer JWTreports MemberViewservices/roster/roster.jac:119

Empty member_id creates in the box; otherwise updates the addressed Member. The first name is required, the last optional. roles are names; each becomes a HasRole edge (and a Role node if new).

Body field Type Default
member_id str ""
first_name str ""
last_name str ""
roles list[str] []
email str ""
github_username str ""
tags list[str] []
color str ""

An empty member_id creates a member; otherwise it replaces the member's fields.

Reports the saved MemberView. No-op when first_name is blank after trimming, or member_id is set but unknown or foreign.

Send the whole member

roles replaces every role the member holds, so omitting it clears them. A role name that does not exist yet is created as a Role. Saving never changes active.

curl -X POST $BASE/walker/SaveMember -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"first_name": "Priya", "last_name": "Raman", "roles": ["Model Pilot Engineer"],
       "github_username": "priyar", "tags": ["backend"], "color": "amber"}'

github_username is how the GitHub sync assigns imported issues: an issue assigned to priyar on GitHub is assigned to this member on the card.

SetMemberRoles

POST/walker/SetMemberRolesBearer JWTextends find_memberreports MemberViewservices/roster/roster.jac:182

Overwrite ONLY the member's roles. The Roles tab toggles one role at a time; routing that through SaveMember would overwrite email, github_username and tags with whatever the caller happened to send.

Body field Type Default Description
member_id str "" from find_member
roles list[str] []

Changes only a member's roles. The Workspace calls it from a person's roles menu under People (the picks save when the menu closes) and from a role's holders under Roles (one call per person whose roles change).

Reports the updated MemberView. Side effects replaces every HasRole edge; an empty list clears them; new names become Role nodes.

ArchiveMember

POST/walker/ArchiveMemberBearer JWTextends find_memberservices/roster/roster.jac:196

active=False, never delete, history edges must survive. Open (non-Done) tasks lose their AssignedTo edge so live work returns to Unassigned; Done-task edges stay for history.

Body field Type Default Description
member_id str "" from find_member

Reports {"archived": "<member id>"}. Side effects sets active = false; members are never deleted, so history keeps its names. Every task the member is assigned to that is not Done has its assignees cleared, so live work returns to Unassigned. Done tasks keep their assignees.

Roles

ListRoles

POST/walker/ListRolesBearer JWTreports list[RoleView]services/roster/roster.jac:236

Body field: none.

Reports one list of RoleView sorted by sort_order. With no roles yet, [].

SaveRole

POST/walker/SaveRoleBearer JWTreports dict[str, any]services/roster/roster.jac:250

Create or update the role named name (get-or-create). new_name renames; members follow through their edge, step owners are rewritten; renaming onto an existing role is refused. Blurb overwrite is opt-in via touch_blurb so assignment can't blank it.

Body field Type Default
name str ""
new_name str ""
blurb str ""
color str ""
touch_blurb bool False

Gets or creates the role called name, then optionally renames it or sets its blurb and colour.

Reports {"ok": true, "role": RoleView}, or {"ok": false, "error": "name_taken"} when new_name belongs to another role (nothing is written). Side effects a rename rewrites every flow line step whose owner was the old name. blurb is written only when touch_blurb is true (so it can be cleared); color is written only when non-empty. No-op when name is blank.

DeleteRole

POST/walker/DeleteRoleBearer JWTreports dict[str, any]services/roster/roster.jac:315

Deletes by name: the Role node (its HasRole edges go with it), its AI responsibilities, and any flow line step owner naming it.

Body field Type Default
name str ""

Reports {"ok": true, "deleted": "<name>"}, also when no role had that name. Side effects deletes the role (members lose it through the removed edge) and its AI responsibilities, and clears owner on every step that named it.

Repos

ListRepos

POST/walker/ListReposBearer JWTreports list[RepoView]services/roster/roster.jac:367

Body field: none.

Reports one list of RepoView sorted by full_name.

AddRepo

POST/walker/AddRepoBearer JWTreports RepoViewservices/roster/roster.jac:375

Creates (or reuses) the repo node under root and points the given project at it. A project is required: the sync files every issue it finds under the repo's project, and a task always has one. Re-adding with another project moves the repo there.

Body field Type Default
full_name str required
project_id str ""

Attaches owner/repo to a project. The GitHub sync files that repo's issues under this project.

Reports the RepoView. No-op when full_name is not exactly owner/repo (alphanumerics and -_., each part at most 100 characters), or the project is missing, foreign or archived. Side effects reuses an existing repo with the same name; adding it with a different project moves it there. Existing tasks do not move.

RemoveRepo

POST/walker/RemoveRepoBearer JWTservices/roster/roster.jac:412
Body field Type Default
repo_id str required

Reports {"deleted": "<repo id>"}. Side effects deletes the repo and its project link. Tasks keep their GitHub fields, and the GitHub installation is untouched.

Lookup base

The base the jid-addressed walkers above extend: it resolves the id, checks ownership and only then visits. It is not an HTTP endpoint.

find_member

Lookup base: resolve the jid once, verify org parentage, then visit. Resolution is NOT authorization.

Field Type Default
member_id str ""