Skip to content

0026 - Org Chart v2: Roles With Mandates, Ownership Routing and a Decision Gate

Status

Accepted by the owner on 2026-11-11 (platform PR #1395). Proposed the same day from the owner's request in the Claude Code session (the owner's words: "delegate responsibility and define how that role should work and how it should escalate tasks if it gets stuck, this will bring down the need of my opinion over time").

This ADR extends ADR-0024. It keeps its roster, reports_to, may_assign, pause and triage climb, and lifts its option B1 (one role per persona) to B2 (several roles may share a persona). It also replaces ADR-0024's per-role repo_read with one fixed rule. It does not supersede ADR-0005, 0007 or 0008.

Date

2026-11-11

Context

ADR-0024 v1 is live (Team tab, reports_to, may_assign, active, organization pause, triage up the reporting line). The owner now wants a company-like hierarchy per organization: for example a CEO and CTO, a security team, an IAM team and a frontend team. Each role should be easy to create and edit, should define how it works and when it escalates, should own an area so that tasks reach the right team as they unfold, and should keep the owner out of decisions that a role can answer. Paperclip (Skatzi/taskbase docs/paperclip-research.md) models the same idea with an org chart, reports_to, delegation to your subtree and escalation to your manager.

Gaps in ADR-0024 v1 that block this:

  1. One role per persona (B1). A CTO and a security lead can't both build on senior-developer, so the chart is limited to the built-in personas.
  2. No per-role instructions. A role's behaviour comes only from its persona file in Git (Skatzi/skatzi-agents). title is display text, not part of the run's brief.
  3. No ownership. Nothing says that user-related work belongs to IAM or frontend work to the frontend team. Agents can't find the owner of a follow-up.
  4. Decisions always reach the owner. decision_needed and the other people-only reasons never go to an agent role.
  5. No visual org chart. The Team tab is an indented list, and depth is capped at 3.
  6. Only project-manager claims carry the roster. Other runs don't know their manager, their reports or whom to delegate to.
  7. repo_read per role blocked multi-repository work (eloro #2226, #2242, #2395, #2665).

Decision

1. Roles are their own thing; personas are skill templates

A role row (per organization) has:

Field Meaning
slug The role's own name, unique in the organization (e.g. iam-lead, frontend-dev). Tasks are assigned to role slugs.
title Display name (e.g. "IAM lead")
persona_slug The base persona (skill template from skatzi-agents: developer, senior-developer, operator, analyst, project-manager, technical-writer…). Several roles may share one.
reports_to The manager role; empty means the people (unchanged)
mandate Plain text, per organization: what the role does, how it works, its bias and its escalation habits. Added to the run's brief after the persona text.
owns Plain text: the area the role is responsible for (see 2)
decides Plain text: what the role may decide on its own (see 3)
may_assign As in ADR-0024; the default changes to "my own subtree plus any team lead"
active As in ADR-0024

Compatibility: every existing persona slug stays a valid default role, so today's assignees (developer, operator, reviewer…) keep working unchanged. A team is just a role with reports; its lead is that role.

All fields are runtime-independent text and references. Model choice, tools and runtime flags stay in the runner adapters (ADR-0005).

2. Ownership and routing

  • owns text per role, edited in the org chart, e.g. IAM: "users, login, Keycloak, roles and permissions, sessions, MFA, customer accounts". Frontend: "storefront and starter, Astro, pages, CSS, accessibility, consent banner UI".
  • Optional exact rules per role: a repository, path globs or a label (eloro/webshop-shop-template → frontend; internal/identity/** → IAM; area:iam → IAM). Rules win over text.
  • Every run's brief carries the directory: each role and team lead with its owns text. A run that finds work for another area creates the follow-up for the owning team's lead. A task that drifts is reassigned or split to the owning lead, with a comment.
  • Unassigned new tasks (from people, Renovate, incidents, follow-ups) go to the router: exact rules first, otherwise the organization's dispatcher role (a role marked as dispatcher, typically a project-manager node) picks the owner from the owns texts.

3. The decision gate

  • An organization names one decision gate role (setting decision_role). Its base persona is usually project-manager or analyst, and its mandate is the owner's decision policy.
  • Every decision_needed from any run goes to the gate first. A run that wants a decision doesn't ask the owner; it asks the gate.
  • The gate returns one of:
  • decided: it answers within its policy. The answer is recorded on the task (who, what, why, which policy line), and the waiting task continues;
  • forward: the item goes to the owner with a brief: the question, the options, the gate's recommendation, and why the policy didn't cover it.
  • Hard limits always reach the owner directly and are never answered by the gate: credentials, payment, physical access, destructive actions, legal matters (needs_person kinds in ADR-0024), and anything the owner marks owner-only.
  • Learning loop: when the owner answers a forwarded item, the answer is shown next to the gate's recommendation, and the owner can add a line to the gate's mandate ("from now on, decide X like this") in one click. Over time fewer items are forwarded.
  • Other roles' decides text lets a team lead settle routine choices in its own area, before anything reaches the gate.

4. Escalation for work

Unchanged from ADR-0024 (the triage climb up reports_to with its limits), with two changes: the brief includes the role's mandate, and a run may escalate explicitly (hand the task to its manager with a comment) as a first-class action, not only by leaving it unresolved.

5. The visual org chart

The Team tab becomes a chart: boxes and lines, the people at the top, live status per node (running, queued, stuck, cost). Click a node to edit it (all fields above, plus routing rules). Use "Add role under…" to add one, and drag to change reports_to. Depth limit raised from 3 to 6; cycles are still refused.

6. Repository reads

Per-role repo_read is replaced by one rule: a run reads every repository of its task's organization. The operator reads every organization its runner serves.

Rollout: dev first, without disturbing the current agents

  • A per-organization switch org_chart_v2 (default off). With it off, an organization behaves exactly as today. All migrations are expand-only, so prod can run the new code with the switch off. Taskbase's normal release flow (dev, then automatic promotion) keeps working for all other changes.
  • Rehearsal on dev (https://taskbase.dev.skatzi.com): a test organization with a small chart (gate, dispatcher, two teams), one agent runner registered to dev, and scripted scenarios: routing of an unassigned task, a cross-team follow-up, a drifted task, a decision decided by the gate, a decision forwarded with a brief, a hard limit going straight to the owner, and a work escalation up the chart.
  • Enable on prod per organization when the owner is satisfied, eloro first. Turning the switch off reverts that organization to today's behaviour.

Deferred, with triggers

Concept Trigger to add it
Budgets per role or subtree (Paperclip rank 2) A role's spend surprises the owner once, or tokens get tight again
Organization templates ("classic company") A second organization wants the same chart
Review routing per role (reviewer_role) A team wants its own reviewer (e.g. security reviews IAM changes)
Planning cascade with depth and fan-out limits Roles start creating chains of sub-tasks the owner can't follow
Leads checking on their subtree on a schedule Stuck tasks sit unnoticed under a lead for more than a day
Weekly digest of the gate's and leads' decisions The owner wants to audit decisions without opening tasks
Per-role model and runner labels A role needs a different model than its persona's default
Learning ownership from history The dispatcher misroutes noticeably (more than 1 in 10 tasks reassigned)
Co-owners per area Two teams keep bouncing the same kind of task

Considered and rejected

  • Named agent "employees" and agents hiring agents (Paperclip): roles are slots that runners fill, and only people create roles.
  • A fixed CEO/CTO role list: titles are free text per organization.
  • A board approval workflow: the owner stays the board through the hard limits and the gate's forwards.
  • Holding Taskbase releases until the epic is done: it would also stop every other fix; the per-organization switch gives the same safety.

Implementation tasks (Taskbase project, created on acceptance)

  1. Data model and API: roles with their own slug, base persona, mandate, owns, decides; routing rules; decision_role, dispatcher flag and the org_chart_v2 switch; expand-only migrations; assignment by role slug with persona slugs as default roles.
  2. Run brief: mandate plus directory (roles, leads, owns) and manager for every run when the switch is on; explicit "escalate to my manager" action.
  3. Routing: the router for unassigned tasks (rules, then dispatcher); may_assign default "subtree plus team leads".
  4. Decision gate: route decision_needed to the gate; the decided and forward verdicts; hard limits; the decision record; the owner's "add to policy" action.
  5. UI: the visual org chart with node editing, add, drag to reparent, routing rules, and choosing the gate and dispatcher.
  6. Repository reads: the fixed rule replaces repo_read.
  7. Dev rehearsal (Platform project, operator): a test organization on dev, one runner registered to dev, the scenarios above, and a report.
  8. Person step: the owner enables org_chart_v2 on prod for eloro, then for others.