oliver-zehentleitner / maity

hub + contract: a built-in role marketing (writer's scopes), for agents that write posts, texts and campaigns

Sign in to report

tsk-9here23dvmbf Open

Owner's request (2026-11-19, chat): "wir brauchen noch eine Rolle marketing … also built-in". So this is a hub built-in role, not a project role (§2.3) per project.

Proposal (to settle in the PR):

  • Name marketing, with exactly writer's scopes (project:read, tasks:write, requests:ask, events:post). No review or done authority, no merge, no deploy.
  • Its description in the role table (§2.3) says it writes posts, texts and campaigns for the project, and that publishing waits for the owner's release.
  • It is taken wherever a role is: join, invitation, membership PATCH, a card's needs, and to: role:marketing. Add it to outside_roles as an allowed value.
  • A project role that is already named marketing gets the same handling as the security teams, where an existing project role with that name already exists (see the note at docs/api.md around "A project that already has a project role named red-team"). Check whether any hub has one; if so, write a migration or name the rule.
  • Wording in the role table and the default guide, CLI help (--role), web role pickers and the i18n strings, tests, plus a changelog fragment.

This is a contract change: the docs/api.md hunks go to Oliver as a contract request before the build. Review: two vendors as usual. Done when the role appears in GET /roles builtin with its description, a join with role=marketing works, and the web picker offers it.

Owner's answer (2026-11-19, chat) on same-named project roles: a project's own role named marketing stays and is shown in addition, marked (custom). So no migration and no refusal: the built-in role and the project role both appear, the project one with a (custom) note.