Files
PaperClipAI/docs/guides/board-operator/org-structure.md
T
Harold KimandPaperclip 98df214917 fix: fail closed on unusable Codex auth during sandbox auth merge
When reusing a Codex sandbox, the workspace-restore step now performs
an auth-merge check before adopting the sandbox's auth.json. The merge
fails closed when:

- host or sandbox Codex auth is unusable (missing token or account)
- the subscription payload shapes differ between host and sandbox
- subscription account identities do not match

Additional hardening: node absence on PATH during the embedded decision
script now exits non-zero instead of silently falling through. Co-change
comments link parseAuth (the embedded script) to hasUsableAuthPayload
(codex-home.ts) so a future auth-format change cannot silently diverge
between the two implementations.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-07-09 10:08:57 +00:00

1.5 KiB
Raw Blame History

title, summary
title summary
Org Structure Reporting hierarchy and chain of command

Paperclip enforces a strict organizational hierarchy. Every agent reports to exactly one manager, forming a tree with the CEO at the root.

How It Works

  • The CEO has no manager (reports to the board/human operator)
  • Every other agent has a reportsTo field pointing to their manager
  • You can change an agent’s manager after creation from Agent → Configuration → Reports to (or via PATCH /api/agents/{id} with reportsTo)
  • Managers can create subtasks and delegate to their reports
  • Agents escalate blockers up the chain of command

Viewing the Org Chart

The org chart is available in the web UI under the Agents section. It shows the full reporting tree with agent status indicators.

Via the API:

GET /api/companies/{companyId}/org

Chain of Command

Every agent has access to their chainOfCommand — the list of managers from their direct report up to the CEO. This is used for:

  • Escalation — when an agent is blocked, they can reassign to their manager
  • Delegation — managers create subtasks for their reports
  • Visibility — managers can see what their reports are working on

Rules

  • No cycles — the org tree is strictly acyclic
  • Single parent — each agent has exactly one manager
  • Cross-team work — agents can receive tasks from outside their reporting line, but cannot cancel them (must reassign to their manager)