Skip to content

Org Chart v2: the Dev Rehearsal

Kind: runbook

The rehearsal that ADR-0026's rollout asks for before the owner turns Org Chart v2 on in production: a test organization on https://taskbase.dev.skatzi.com with a small chart, one agent runner that works only for it, and scripted scenarios, each with its evidence. Platform task #2844; the production step after it is task #2845.

Status

Date State
2026-11-12 Not run. The operator's run has no login to Taskbase dev (its API answers 401), and the runner needs accounts and a model login that only a person can create; see What a person sets up. Dev ran v1.261.1 (migration 92, without the decision gate); v1.262.0 with the gate was deploying

Before you start

  • Dev runs a release with all of tasks #2838–#2843: v1.262.0 or later (curl -s https://taskbase.dev.skatzi.com/api/version), so the decision gate is there (Shipped in).
  • Dev's database is not production's: nothing below touches taskbase.skatzi.com.

What a person sets up

These need credentials or accounts, so a person does them; never put a secret in a task, comment or Git.

  1. A login for the rehearsal on dev. A personal API key on dev (Settings → API keys, signed in as a dev administrator) for whoever runs the scenarios, kept in that person's or runner's environment, not in a task. The scenarios that create the chart are "people only" routes, so an agent run cannot do them with its run identity.
  2. The test organization "Org Chart v2 rehearsal" on dev, with one project linked to a scratch Gitea repository (for example Skatzi/orgchart-rehearsal, empty), and a grant for the person.
  3. One runner for dev, following Run a runner in the cluster with these differences: it points at https://taskbase.dev.skatzi.com instead of production (our manifests do not set the Taskbase URL, so the chart's default applies; set the chart's value for it, named in agent-runner's Kubernetes guide); the runner is created in dev's control room and scoped to the test organization only; its Keycloak user has no runner on production. Name it orgchart-rehearsal-agent. It cannot take production work, because it only ever claims from dev's API. Its model login is the person's (Claude token or Codex), stored in OpenBao as the guide says. Remove it after the rehearsal, or keep it and list it as the dev rehearsal runner in Run a runner in the cluster.

The chart

Create it in the test organization's Team tab (or save_role, set_routing_rules, update_org_chart), following Set up a chart:

Slug Base persona Reports to owns Exact rule
decision-gate analyst the people Decisions the owner delegates —
dispatcher project-manager the people Unassigned work no rule matches —
frontend-lead senior-developer the people Storefront, pages, CSS, accessibility, consent banner UI repository = the scratch repository
frontend-dev developer frontend-lead Frontend changes the lead hands down —
iam-lead senior-developer the people Users, login, Keycloak, roles and permissions, sessions, MFA label = area:iam

The decision-gate mandate (its policy), one line each:

Library choice between two maintained open-source options: pick the one already used in the organization.
Spending: forward everything.

Then turn org_chart_v2 on, with decision-gate as the gate and dispatcher as the dispatcher.

Scenarios

Record each one's task IDs, verdicts and the field or comment that proves it in Results.

# Scenario Steps Pass when
1a Routing by rule Create an unassigned task in the scratch repository's project It is assigned to frontend-lead, routed = rule 1 (repository …)
1b Routing by dispatcher Remove the repository rule, create an unassigned task "Add MFA to the admin login" It is assigned to dispatcher with routed = dispatcher; the dispatcher's run reassigns it to iam-lead with a comment. Restore the rule after
2 Cross-team follow-up Give frontend-dev a task whose description says the login form also needs a Keycloak role change Its run creates a follow-up for iam-lead, follow_up_of the task
3 Drifted task Give frontend-lead a task that is purely Keycloak work Its run reassigns or splits it to iam-lead, with a comment
4a Gate decides Create a decision for the owner: "Which date library: the one we use, or a new one?" A gate task "Decide on #n" appears within a minute; verdict decided with the policy line; the decision is answered
4b Gate forwards Create a decision: "Buy a paid icon set for 30 EUR?" Verdict forward; the item shows the brief; Add to the gate's policy adds a line once
5 Hard limit A frontend-dev run that ends with needs_person: credentials No gate task; the item goes to the owner at once, notice not held
6 Work escalation A frontend-dev task it cannot finish; its run calls escalate_task Comment signed "… via Taskbase escalation"; task assigned to frontend-lead and queued
7 Switch-off parity In another dev organization with the switch off, create an unassigned task and a decision No routed, no gate task; the decision goes to the owner as before; PUT …/routing-rules answers 409

Results

# Task IDs Verdict or field Result
1a–7 — — Not run yet (2026-11-12)

Afterwards

  • Report the results to the owner on task #2844, with anything to fix before production.
  • Remove the runner, or keep it documented (see above).
  • The owner then enables the switch for eloro on production (task #2845).