UpSquad -- Complete Product Requirements Document (PRD)
AI Workforce Platform | Version 1.9
Authors: Vaisakh, Ashik Date: 2026-04-16 Status: Restructured 2026-04-16 — see PRD Registry. Detailed component specs now live in sub-PRD issues; this document retains historical context + master-level narrative.
SUB-PRDs
This document is the markdown mirror of the Master PRD (GitHub issue #1). Detailed component-level requirements live in their own sub-PRDs. See PRD_REGISTRY.md for the canonical index.
Delivered sub-PRDs: Context Engine (#2), Client Portal MVP (#79), Agent Runtime Core (#93), BYOA & AI Governance (#231), SCM Credentials (#348), Agent Runtime Optimisation (#380), Onboarding APIs (#425).
Draft sub-PRDs (2026-04-16 restructure):
- Org Model v2.3 (#549) — flexible hierarchy, RBAC, cascading guardrails, SCIM import
- Agent Lifecycle & Upgrade (#550) — formerly P8
- Workspace Persistence (#551) — formerly P10
- Pricing & Packaging (#552) — formerly sections 33 + 34
- Dashboard Intelligence (#553) — formerly P6.3
- Competency Catalogue (#554) — formerly Appendix C
Note on embedded content: Sections below still contain the historical detailed requirements. These are preserved for context but are now superseded by the relevant sub-PRD — edits should go to the sub-PRD issue, not here. When a sub-PRD evolves, this document is updated with a brief summary + link, not re-written in full.
CHANGELOG
Version 1.9 -- 2026-04-16 -- MAJOR RESTRUCTURE
Triggered by: Consolidation of duplicate master-like PRDs (this document + PRD #1) into a single Master PRD + component sub-PRDs hierarchy. The goal: every requirement lives in exactly one owning PRD, with clear version and status.
Changes:
- Renamed PRD #1 to "Master PRD: UpsQuad — AI Workforce Platform" (version 2.3). Master PRD now contains only master-level content (vision, goals, architecture overview, NFRs, sub-PRD registry, release milestones).
- Extracted six component PRDs from prior PRD #1 scope-creep:
- Org Model v2.3 (#549) — NEW detailed requirements: flexible OrgUnits, RBAC, 4-level cascade, conflict resolution, SCIM 2.0, inline edit UX
- Agent Lifecycle & Upgrade (#550) — formerly P8
- Workspace Persistence (#551) — formerly P10
- Pricing & Packaging (#552) — formerly Pricing Model + Tier Feature Mapping sections
- Dashboard Intelligence & Copilot UX (#553) — formerly P6.3
- Competency Catalogue (#554) — formerly Appendix C
- P11 BYOA content deduped — owned by PRD #231.
- Added canonical
PRD_REGISTRY.mdas the single source of truth for which PRD owns which scope at which version. - Added SUB-PRDs section near the top of this document linking to all child PRDs.
- This document (v1.9) retains the historical priority sections (P0–P9, cross-cutting concerns, appendices) as archive. Future edits should go to the owning sub-PRD, not here.
Version 1.8 -- 2026-04-15
Triggered by: Delivery of PRD #380 "Agent Runtime Optimisation & Security Hardening" (8 items across 5 waves). Captures the new P4.8 section + cumulative delivery status + security moat enumeration.
Changes:
- Added new section P4.8 Agent Runtime Optimisation & Security Hardening covering 8 items shipped across Waves 1–5.
- Added P4.8.1 Agent-to-agent delegation primitive (Wave 3, DELIVERED). Runtime
delegate_to_agenttool; role-based target selection; child sessions inherit clamped clearance; per-session cycle detection; fan-out/depth quotas. - Added P4.8.2 Sub-agent session propagation (Wave 3, DELIVERED). Parent-child session state +
subagent_invocationsbridge with dual-hash anchors; RTD/retention quotas; cascade termination DFS-post-order; compliance sweeper. - Added P4.8.3 Approval Chain Engine (Wave 2, DELIVERED). Policy-driven approval routing with 10s scheduler tick; first-write-wins CAS; advisory-lock singleton; 4-channel dispatch (dashboard + email shipped, Slack + SCM deferred to 2.1).
- Added P4.8.4 Pause/Resume API (Wave 2, DELIVERED). Message-boundary pause; system-role operator input injection; keepalive during operator pause; rendezvous-and-deliver on resume.
- Added P4.8.5 Named Hook Points SDK (Wave 4A, DELIVERED). 4 named points (on_session_start / pre_llm_call / post_tool_call / on_error); strict-disjoint annotations; 3-panic auto-disable per session; Python→Go gRPC bridge with <3ms p95 RTT.
- Added P4.8.6 Agent Isolation (Wave 1, DELIVERED). Tool parameter schema validation; per-tenant egress allow-list with private-IP block; JWT replay protection via jti cache; audit log hash-chaining with epoch semantics.
- Added P4.8.7 Enterprise Compliance (Wave 4B, DELIVERED). Data-class registry (55 scopes) + CI coverage lint; RTD engine 4-phase state machine with strict dual-control + 72h window; retention policy with clamp model; SIEM export (OCSF v1.2, HMAC, at-least-once + idempotency, circuit breaker); SBOM generation (CycloneDX + SPDX) via Syft.
- Added P4.8.8 ML-Layer Detection (Wave 5, DELIVERED). Jailbreak classifier (Python sidecar, Prompt-Guard-86M, shadow→warn→enforce rollout); OpenAI Moderation with 13 categories + 3 pipeline surfaces + circuit breaker; tool execution sandboxing (AppArmor + seccomp deny-list).
- Updated P4.2 to mark P4.2.12–P4.2.19 as DELIVERED (SCM credentials work originally captured in v1.7; see item 17 below).
- Added delivery ledger to the P4.8 section: 24 LLDs, 301 pen-test scenarios passing under
-race, 71 milestone-9 issues closed. - Added process gates note: shelfware gate introduced after Wave 3 retro (0 shelfware incidents in Waves 4–5 vs 6 in Waves 1–3); proto-sync CI gate prevents missing-generated-file regressions.
- Updated summary counts to reflect P4.2 + P4.8 additions across v1.7 + v1.8: Grand total MVP ~314 → ~329 (+15: 7 from P4.2 + 8 from P4.8), V1.1 ~145 → ~146 (+1 deferred — P4.2.19 GitLab), Total ~483 → ~499.
Version 1.7 -- 2026-04-13 (delivered; PRD doc update retroactive)
Triggered by: Gap analysis of SCM credential management in agent runtime. Tenant users need to provide their own SCM credentials (PAT or user-owned GitHub App) for agent tool use.
Changes:
- Added P4.2.12 SCM credential vault — per-member storage with encrypted payload;
patandgithub_appcredential types. - Added P4.2.13 PAT credential mode with expiry tracking + GitHub
/uservalidation on save. - Added P4.2.14 GitHub App credential mode with on-demand ~1hr installation tokens.
- Added P4.2.15 Credential resolution chain: member → team → org fallback.
- Added P4.2.16 Credential health monitor with expiry alerts + 401 auto-revocation.
- Added P4.2.17 Client portal credential management page (reference impl delivered; portal integration tracked in client repo).
- Added P4.2.18 Credential access audit logging via Wave 1 audit chain.
- Added P4.2.19 GitLab SCM credential support (V1.1 — PAT mode only).
- Added functional requirements 101–103 (SCM credential modes, resolution chain, expiry detection).
- All items DELIVERED via PRs #362–#368 (2026-04-13).
Version 1.6 -- 2026-04-06
Triggered by: Product refinement -- agent team adoption should be optional not mandatory, HRIS import user story, offboarding SOP user story, copilot-to-copilot collaboration moved to v1, and removal of ownership divisions from PRD.
Changes:
- Updated Goals & Success Metrics (section 4): Changed "Agent team adoption" goal language from mandatory ("Engineering leaders deploy at least one agent team") to optional/available ("Eligible users have the option to deploy agent teams and are aware of the capability"). Target updated to reflect awareness rather than forced adoption.
- Added US-12: Org Admin Imports Org Chart from HR Systems -- new user story for importing org hierarchy from HRIS providers (Workday, BambooHR, etc.) with preview, conflict resolution, ongoing automated sync, and audit logging.
- Added US-13: Manager and Employee Offboarding (Resignation SOP) -- new user story covering the offboarding workflow for departing employees and managers, including access revocation, copilot deprovisioning, reporting line reassignment, agent team ownership transfer, and HRIS-triggered automated offboarding.
- Moved Copilot-to-copilot collaboration from Out of Scope (v2) to In Scope (v1). Cross-user personal copilot communication is now a v1 capability with appropriate permission and privacy controls.
- Added HRIS import/sync and offboarding SOP to In Scope (v1) list.
- Removed all ownership division labels (V/A/Both) from every item table throughout the entire PRD. Ownership assignments are an operational concern, not a product requirement. Removed the "Founder Work Assignment Model" section entirely. Removed the "Owner" column from all ~67 tables (~520 row-level owner annotations removed).
- Renumbered all sections from 13 onward (former section 13 "Founder Work Assignment Model" removed; former sections 14-38 are now 13-37).
- Updated Table of Contents to reflect removed section and renumbering.
- Version bumped from 1.5 to 1.6.
Version 1.5 -- 2026-04-05
Triggered by: Sync of 3 missing sections from GitHub issue #1 PRD that were not carried over in previous merges: Pricing Rationale, Pricing Tier Feature Mapping, and Competency Catalogue Appendix.
Changes:
- Added Pricing Rationale subsection under Pricing Model (section 34) -- competitive positioning paragraph explaining $29/seat benchmarking, hourly pricing rationale, and Free tier PLG funnel strategy.
- Added Pricing Tier Feature Mapping section (now section 35) -- detailed 27-row feature-by-tier matrix covering Free/Pro/Enterprise feature gating for org hierarchy limits, copilot seats, agent teams, competency profiles, delegated enablement, SSO, audit log, integration marketplace, approval workflows, SLA tiers, support tiers, and more.
- Added Appendix C: Competency Catalogue (Default v1) -- full reference table defining all 12 default competency profiles (swe, em, sre, qa, pm, mktg, sales, hr, design, data, exec, general) with designation patterns, seniority modifier effects, and descriptions. Referenced by FR-20 through FR-27.
- Updated Table of Contents with new sections (Pricing Tier Feature Mapping as section 35, renumbered subsequent sections, added Appendix C).
- Version bumped from 1.4 to 1.5.
Version 1.4 -- 2026-04-03
Triggered by: MCP security hardening and defense-in-depth requirements for agent tool infrastructure. Adds transport-layer guardrail enforcement, context-aware MCP sandboxing, centralized MCP security gateway, and declarative output validation.
Changes:
- Added P2.4.16: Context-mode MCP sandboxing -- agent runtime dynamically loads/unloads MCP server definitions based on current task step, reducing idle tool context consumption. Configurable per agent role. [BOOTSTRAP]
- Added P2.4.17: MCP security gateway -- centralized gateway for all agent-to-MCP-server communication, enforcing authentication, authorization, rate limiting, payload inspection, and emergency tool revocation. [BOOTSTRAP]
- Added P3.3.12: Runtime guardrail enforcement at MCP transport layer -- policy enforcement point for all tool calls and results, evaluating guardrail rules (P3.3.7) against actual tool invocation parameters. Defense-in-depth independent of LLM compliance. [BOOTSTRAP]
- Added SEC.1.7: Declarative output validation specification -- structured schema language for agent output validation rules with field-level validators, corrective actions, severity levels, and tenant-customizable rules.
- Updated Appendix B: Gap Coverage Matrix with 4 new entries
- Updated summary counts: Grand total MVP ~311 to ~314, V1.1 ~144 to ~145, Total ~479 to ~483
Version 1.3 -- 2026-04-05
Triggered by: Merge of GitHub issue #1 PRD content (Org Hierarchy, User Enablement, Personal Copilots & Agent Teams) and technology bias removal across entire document.
Changes:
- Added new section: Problem Statement (from issue #1 PRD)
- Added new section: Two-Mode Product Model -- Personal Copilots and Agent Teams (from issue #1 PRD)
- Added new section: Goals & Success Metrics with measurable targets (from issue #1 PRD)
- Added new section: User Stories (US-1 through US-11) with full acceptance criteria (from issue #1 PRD)
- Added new section: Functional Requirements -- 82 numbered requirements covering Human Employee Registry, Org Hierarchy, User Enablement, Personal Copilot Assignment, Copilot Personalisation, Agent Teams, Approval Workflows, Chat Interface, Integration Marketplace, Auth, Platform Owner Console, Billing, and Advanced Analytics (from issue #1 PRD)
- Added new section: Non-Functional Requirements table (from issue #1 PRD)
- Added new section: Scope (In Scope / Out of Scope with rationale) (from issue #1 PRD)
- Added new section: Dependencies table (from issue #1 PRD)
- Added new section: Edge Cases & Failure Modes table (from issue #1 PRD)
- Added new section: Decisions (Resolved from Open Questions) -- 7 resolved decisions (from issue #1 PRD)
- Updated Pricing Model section with dual billing model and Free/Pro/Enterprise tier table (from issue #1 PRD)
- Removed technology-specific references throughout the entire document -- replaced all mentions of specific programming languages, frameworks, databases, cloud providers, infrastructure tools, and implementation details with technology-agnostic requirement descriptions. The PRD now describes WHAT the system must do, not HOW. Technology decisions belong in Architecture Decision Records (ADRs) and High-Level Design (HLD) documents.
- Version bumped to 1.3
Version 1.2 -- 2026-04-04
Triggered by: Founder requirement -- Stateless Agent Runtime with External Context, Memory, Immutable Sessions, Hierarchical Context Editing, and Per-Agent Metering
Changes:
- Added P0.3.11: ADR -- Stateless Agent Runtime (all agent state externalized, no local persistence)
- Added P0.3.12: ADR -- Immutable Session Runtime (frozen config snapshot per session, explicit refresh only)
- Added P2.1.15: Stateless agent contract enforcement (read-only FS, no writable volumes, liveness validation)
- Added P2.1.16: Agent session initialization protocol (5-step fetch, validate, immutable snapshot)
- Added P2.1.17: Per-action authorization check (RBAC verification before every agent action, blacklist model)
- Added P2.1.18: Agent metrics interface (standard metrics endpoint)
- Added P2.1.19: Billable metrics per agent (LLM tokens, tool invocations, API calls, compute time, storage)
- Added P2.1.20: Performance metrics per agent (latency, completion time, error/success rate)
- Added P2.1.21: Metrics attribution dimensions (tenant_id, agent_id, session_id, action_type)
- Added P3.1.11: Context refresh mechanism (poll for latest, create new immutable snapshot)
- Added P3.1.12: Context push operation (/push-context -- save session knowledge to external DB)
- Added P3.1.13: Context pull operation (/pull-context -- fetch latest context, new immutable snapshot)
- Added P3.1.14: Context push/pull authorization model
- Added P3.3.6: Blacklist-based action model (default allow, guardrails define prohibitions)
- Added P3.3.7: Guardrail definition format (structured rules: scope, condition, prohibition, violation response)
- Added P3.3.8: Self-context immutability (agents cannot modify own role definition, guardrails, or system prompt)
- Added P3.3.9: Hierarchical context editing (only parent agent or human can edit an agent's scope -- downward only)
- Added P3.3.10: Agent hierarchy definition (tree: Human, PM, Architect, SMEs/QA/DevOps, configurable per tenant)
- Added P3.3.11: Chain of trust enforcement (no self-edits, no lateral edits, no upward edits, full audit trail)
- Added P6.1.10: Slash commands /push-context and /pull-context with version confirmation
- Modified P2.2.5: "hot-reloadable" changed to "applied on next session start per immutable session runtime policy"
- Modified P2.3.2: "tool whitelist" changed to "tool access list"; distinguished from action guardrails
- Modified P4.6.5: Running sessions stay frozen; new sessions get updated config; critical-update signal triggers graceful restart
- Updated Appendix B: Gap Coverage Matrix with 21 new entries
- Updated summary counts: Grand total MVP ~290 to ~311, Total ~458 to ~479
Version 1.1 (2026-04-03)
Trigger: Customer inquiry -- overseas recruitment company with 5 non-technical staff. Revealed that the entire platform assumed engineering/software teams as the only customer. Platform must be industry-agnostic from day one.
Changes:
- P2.3 Agent Type System -- Replaced hardcoded engineering types with a dynamic Role Builder. Agent types are now templates; any agent can assume any role defined by the tenant. Added Industry Template Library (IND section) with pre-built role packs for recruitment, sales, legal, marketing, finance, HR, customer support, and more.
- P2.4 Tool Registry & MCP -- Added industry-agnostic tool packs: email, calendar, CRM, job boards, document generation, spreadsheet, communication, and generic HTTP/webhook tools.
- P4.1 Workflow Engine -- Decoupled from SCM. Workflows can now use web dashboard, email, Slack, or SCM as their substrate. SCM is one option, not the default.
- P4.2 SCM Integration -- Made optional. Renamed to "External Integration Adapters." Added non-SCM adapters: email, Slack, web portal.
- P4.3 Approval Chain Engine -- Approvals no longer require SCM. Added multi-channel approval: web dashboard, email link, Slack button, mobile push.
- P4.4 Change Guard -- Generalized from code-specific to domain-agnostic conflict detection.
- P6.3 Onboarding Flow -- Replaced tech-specific questionnaire with industry-aware onboarding. System detects industry, suggests agent team templates, and provisions with zero technical knowledge required.
- P3.5 RAG Knowledge Bases -- Generalized from engineering-specific to domain-agnostic knowledge bases. Added tenant-uploaded knowledge base support.
- P7.1 Cost Engine -- Generalized per-agent pricing from engineering-specific to domain-agnostic metrics.
- New Section: IND (Industry Template Library) -- Pre-built agent team templates for 8+ industries with role definitions, tool mappings, workflow templates, and onboarding guides.
- Appendix A -- Updated MVP definition to be industry-agnostic.
- Appendix B -- Added new gap coverage entries for industry-agnostic items.
- Executive Summary -- Updated to reflect industry-agnostic positioning.
- DOC.2 User Documentation -- Added industry-specific getting started guides.
TABLE OF CONTENTS
- Executive Summary
- Problem Statement
- Two-Mode Product Model
- Goals & Success Metrics
- User Stories
- Functional Requirements
- Non-Functional Requirements
- Scope
- Dependencies
- Edge Cases & Failure Modes
- Decisions (Resolved from Open Questions)
- Platform Architecture Overview
- Priority 0 -- Pre-Development (Legal, Compliance, Design)
- Priority 1 -- Foundation
- Priority 2 -- Agent Runtime
- Priority 3 -- Context & Memory
- Priority 4 -- Workflow & Governance
- Priority 5 -- Agent Collaboration
- Priority 6 -- User Experience
- Priority 7 -- Cost & Measurement
- Priority 8 -- Intelligence & Optimization
- Priority 9 -- Business & Monetization
- Cross-Cutting Concern: Platform Console
- Cross-Cutting Concern: Security Hardening
- Cross-Cutting Concern: Notification System
- Cross-Cutting Concern: Testing Infrastructure
- Cross-Cutting Concern: Documentation
- Cross-Cutting Concern: Error Handling & Resilience
- Cross-Cutting Concern: Disaster Recovery
- Cross-Cutting Concern: Data Export & Portability
- Cross-Cutting Concern: Customer-Facing Operations
- Industry Template Library (IND)
- Pricing Model
- Pricing Tier Feature Mapping
- Appendix A: Release Classification Definitions
- Appendix B: Gap Coverage Matrix
- Appendix C: Competency Catalogue (Default v1)
1. EXECUTIVE SUMMARY
UpSquad is a multi-tenant SaaS/PaaS platform that replaces traditional human teams with governed AI agent teams across any industry. Each organization deploys AI agents structured like a real company -- departments, sub-teams, and specialist roles -- all under human supervision with full audit trails. Whether it's an engineering firm, recruitment agency, law practice, marketing team, or finance department, UpSquad provides industry-specific agent templates while allowing fully custom role definitions.
UpsQuad provides two distinct modes of AI assistance: Personal Copilots (1:1 AI assistants matched to each employee's role) and Agent Teams (autonomous or supervised multi-agent teams that perform organisational work). Both modes coexist within the same platform, share the org hierarchy, and are governed by the same clearance and audit systems.
This PRD encompasses all 9 existing implementation priorities, fills 18 identified critical gaps, adds a Priority 0 for pre-development work, introduces the Platform Console as a cross-cutting concern, defines the Industry Template Library for out-of-the-box support across multiple verticals, establishes stateless agent runtime, immutable session, and hierarchical context editing as foundational architectural constraints, and defines the org hierarchy, user enablement, and dual-mode product model.
Release classifications:
- MVP -- Must ship for first paying customer. No revenue without this.
- V1.1 -- Ship within 4-8 weeks of MVP. Required for enterprise credibility.
- V2 -- Ship within 3-6 months post-MVP. Competitive differentiation and scale.
Authors: Vaisakh, Ashik
2. PROBLEM STATEMENT
Organisations adopting UpsQuad need a structured way to onboard their company, define their organisational hierarchy, selectively enable the platform for employees, and have each enabled employee receive an AI copilot agent whose competency matches the employee's role/designation. Beyond personal copilots, organisations also need the ability to deploy Agent Teams -- one or more AI agents that operate as headless team members, performing work autonomously or under human oversight, mirroring the structure of real engineering and cross-functional teams.
Today there is no mechanism for an org admin to model their company structure, control who gets access, ensure the AI copilot assigned to an employee is contextually relevant to that person's job function, or deploy governed agent teams with appropriate approval gates.
Additionally, UpsQuad as a platform needs a Platform Owner Console -- a super-admin view that provides visibility into all onboarded organisations, their usage, and their expenses. Without this, the UpsQuad team cannot manage operations, billing, or support effectively.
Who it solves for:
- Org Admins who need to onboard their company, control platform rollout, and approve agent team deployments.
- Engineering Leaders (and equivalent senior roles) who need to deploy agent teams to augment or replace team capacity.
- Team Leads / Managers who need to enable the platform for their direct reports.
- Individual Contributors who need an AI copilot that understands their role and helps with role-specific tasks.
- Single-person companies who need a full agent team (including an agent acting as engineering leader) to build out their product.
- UpsQuad Platform Owners who need operational visibility across all tenants for billing, support, and business intelligence.
3. TWO-MODE PRODUCT MODEL
UpsQuad provides two distinct but complementary modes of AI assistance:
Mode 1: Personal Copilot
Every enabled user in an organisation receives a Personal Copilot -- a one-to-one AI assistant whose competency is matched to the user's designation and seniority level. Personal copilots help users with role-specific tasks (e.g., an SWE copilot helps with code, an EM copilot helps with sprint planning).
- Eligibility: Every enabled user.
- Provisioning: Automatic on enablement (see US-4).
- Billing: Seat-based (per user per month).
Mode 2: Agent Team
Users on the engineering leadership ladder (Engineering Manager, Tech Lead, Director of Engineering, VP Engineering, CTO, or equivalent) OR org admins have the option to deploy an Agent Team. An agent team is a group of one or more AI agents that operate as headless team members within the organisation.
- Eligibility: Users with engineering leadership designations OR org admin role.
- Composition: A single agent or a multi-agent team. May or may not be autonomous (configurable autonomy level).
- Approval required: Agent team deployments MUST be approved by (1) the deploying user's skip-level manager AND (2) the org admin before going live. For org admins deploying their own teams, only a confirmation step is required (no skip-level needed since they are the top authority).
- Single-person company use case: A single-person company where the sole user is both org admin and engineering leader can deploy a full agent team -- including an agent designated as an engineering leader. In this case, the org admin self-approves the deployment.
- Billing: Hourly pricing (agents accrue cost by the hour they are active/running).
Agent Team Agents as Headless Users
Agents in an agent team are registered as headless users in the org hierarchy:
- Each agent has a name, designation/title, department, clearance level, and reports-to relationship -- just like a human employee.
- Agents appear in the org chart but are visually distinguished as AI agents (e.g., a badge, icon, or label indicating "AI Agent" vs "Human").
- Agents have specific clearance levels assigned that govern what data, systems, and actions they can access. Clearance levels are assigned by the deploying user and approved as part of the deployment approval flow.
- Headless agent users do NOT consume a seat for personal copilot billing -- they are billed under the agent team hourly model.
4. GOALS & SUCCESS METRICS
| Goal | Metric | Target |
|---|---|---|
| Seamless org onboarding | Time from admin signup to first copilot interaction | < 15 minutes |
| Flexible hierarchy modelling | Support org structures from 1 person to 10,000+ employees | 100% of common structures supported |
| Controlled rollout | Admins and managers can selectively enable users | Granular: per-user and bulk enablement |
| Role-accurate copilot assignment | Copilot competency matches employee designation | 100% automatic match on enablement |
| Delegated enablement | Managers can enable their reportees without admin intervention | Delegation adoption rate > 60% within 90 days |
| Platform stickiness | Enabled users return to the copilot daily | DAU/MAU ratio > 40% after 30 days |
| Agent team availability & adoption | Eligible users have the option to deploy agent teams and are aware of the capability | > 30% awareness among eligible users within 90 days; adoption is optional |
| Agent team governance | All agent team deployments go through approval flow | 100% compliance |
| Platform operational visibility | Platform owners can view all orgs and expenses in real time | 100% of tenants visible within 1 minute of onboarding |
| Dual billing accuracy | Personal copilot and agent team costs are tracked and billed separately | 100% attribution accuracy |
5. USER STORIES
US-1: Org Admin Defines Org Hierarchy
As an org admin, I want to define my company's organisational hierarchy (from CEO down to individual contributors), so that the platform understands my company's reporting structure and departments.
Acceptance Criteria:
- Admin can create an org chart as a tree with reporting-line (reports-to) relationships and arbitrary depth (single person, single team, or full corporate hierarchy).
- Each node in the hierarchy represents either a human employee or a headless agent user.
- Human employee nodes store: name, email, job title, designation, department, seniority level (Junior, Mid, Senior, Staff, Principal, or equivalent), manager relationship (parent node), and optional external_id for HRIS sync.
- Headless agent nodes store: agent name, designation/title, department, clearance level, manager relationship, and a flag indicating the node is an AI agent.
- Admin can assign departments to teams/verticals (e.g., SRE, Marketing, Dev, Platform, QA). Departments are a taxonomy applied to each node.
- The hierarchy supports reporting-line relationships: each node has exactly one parent (except the root).
- Admin can add, edit, remove, and re-organise nodes after initial creation.
- The hierarchy is visually rendered as an org chart, with human employees and AI agents visually distinguished.
- Hierarchy data is scoped to the tenant -- no cross-tenant visibility.
US-2: Org Admin Enables Platform for Specific Users
As an org admin, I want to selectively enable the UpsQuad platform for specific employees or for everyone in the org, so that I can control the rollout pace and cost.
Acceptance Criteria:
- Admin can enable the platform for individual users by selecting them from the org hierarchy.
- Admin can enable the platform for all users in the org with a single action.
- Admin can disable (revoke) platform access for any user at any time.
- Enabling a user triggers provisioning of their personal copilot agent (see US-4).
- The admin dashboard shows a clear count and list of enabled vs. not-enabled users.
- Billing reflects only enabled users for seat-based charges (personal copilots).
US-3: Manager Enables Platform for Reportees (Delegated Enablement)
As a manager with platform access, I want to enable the platform for my direct reports, so that they can start using their copilot without waiting for the org admin.
Acceptance Criteria:
- A manager can only enable users who are their direct reports in the org hierarchy.
- A manager cannot enable users outside their reporting line.
- The enablement follows the same flow as admin enablement (copilot provisioning, access grant).
- The org admin retains an audit log and override capability for all delegated enablements.
- The org admin can disable delegated enablement as a policy setting.
- Delegation follows the hierarchy recursively: a manager's reportee who is also a manager can further delegate enablement to their own reports, provided the org-level delegation policy is enabled.
US-4: Enabled User Gets a Personal Copilot Agent
As an enabled user, I want to be automatically assigned a personal AI copilot agent whose competency matches my job designation, so that the copilot can help me with tasks relevant to my role.
Acceptance Criteria:
- Upon enablement, the system automatically determines the user's competency from their designation and department.
- A copilot agent is provisioned with the matching competency profile (e.g., Engineering Manager, Software Engineer, Marketing Specialist, SRE).
- The competency profile governs the copilot's behaviour: what it knows, how it responds, what tools/integrations it can access.
- If a user's designation changes, the copilot competency is updated accordingly.
- The platform ships with a default competency catalogue covering common roles. Org admins can also create custom competency profiles for roles not covered by defaults.
- Seniority (Junior, Mid, Senior, Staff, Principal) is treated as a modifier on the base competency profile, not a separate competency. The copilot adapts its depth of guidance and assumed context based on seniority level.
- The copilot personalises its responses over time based on the user's interaction history, preferences, and working patterns.
US-5: Enabled User Interacts with Copilot via Chat Interface
As an enabled user, I want to log in and immediately see a chat prompt where I can give tasks to my copilot, so that I can start getting value from the platform instantly.
Acceptance Criteria:
- The landing page after login shows a centred chat prompt ready for input.
- A sidebar provides navigation: org chart view, settings, activity history, agent team management (if eligible).
- The copilot responds with role-appropriate context (e.g., an EM copilot understands sprint planning, team management; an SWE copilot understands code, tickets).
- Conversation history is persisted per user per session and across sessions.
- The copilot identifies itself and its competency to the user on first interaction.
- The copilot supports multiple languages for interaction (multi-language support).
US-6: Org Admin Views Platform Adoption Dashboard
As an org admin, I want to see a dashboard showing which users are enabled, active, and how they are using the platform, so that I can measure ROI and decide on further rollout.
Acceptance Criteria:
- Dashboard shows: total employees in org, enabled users, active users (last 7/30 days).
- Dashboard shows per-department breakdown.
- Dashboard shows copilot interaction counts (aggregate, not content) per user.
- Dashboard shows agent team status: deployed teams, active agents, agent-hours consumed.
- Dashboard shows separate billing views for personal copilots (seat-based) and agent teams (hourly).
- Dashboard includes copilot effectiveness scoring: task completion rates, user satisfaction signals.
- Data is scoped to the admin's tenant only.
US-7: Platform Owner Views All Onboarded Organisations
As a UpsQuad platform owner, I want to see a console listing all onboarded organisations with key health metrics, so that I can manage platform operations and support effectively.
Acceptance Criteria:
- The Platform Owner Console is a separate, dedicated interface accessible only to users with the
platform_ownerrole. - The console displays a searchable, sortable table of all onboarded organisations.
- For each organisation, the console shows: org name, onboarding date, plan/tier, total employees in hierarchy, enabled (seat) count, active users (last 7/30 days), agent teams deployed, agent-hours consumed, and current billing status.
- The console supports filtering by: plan tier, onboarding date range, active/inactive status.
- The console provides a drill-down view into any organisation's summary (not individual user data -- respects tenant privacy).
- The console is completely isolated from tenant-facing interfaces -- org admins never see it.
US-8: Platform Owner Views Organisation Expenses (Dual Billing Streams)
As a UpsQuad platform owner, I want to see the expense breakdown for each onboarded organisation across both billing streams (personal copilots and agent teams), so that I can track revenue, monitor LLM costs, and identify accounts that may need attention.
Acceptance Criteria:
- The expense view shows per-organisation: personal copilot revenue (seat-based), agent team revenue (hourly), total revenue, total LLM token cost, gross margin, and month-over-month trend.
- The console shows an aggregate expense summary across all organisations: total platform revenue (broken down by copilot seats and agent-hours), total LLM cost, total gross margin.
- Expenses are broken down by month with the ability to select custom date ranges.
- The console highlights cost anomalies: organisations where LLM cost exceeds a configurable threshold percentage of revenue.
- The console shows per-organisation seat utilisation: enabled seats vs. active seats (to identify underutilised accounts for customer success outreach).
- The console shows per-organisation agent team utilisation: agent-hours consumed vs. allocated.
- Export capability: platform owners can export expense data as CSV.
US-9: Engineering Leader Deploys an Agent Team
As an engineering leader (or org admin), I want to deploy an agent team to augment my team's capacity, so that I can scale output without hiring additional headcount.
Acceptance Criteria:
- Users with engineering leadership designations or org admin role see an "Agent Teams" section in their dashboard.
- The user can create a new agent team, specifying: team name, team purpose, number of agents, each agent's designation/role, clearance level, and autonomy level (fully autonomous, semi-autonomous with checkpoints, or fully supervised with approval gates).
- Agent team deployment triggers an approval workflow: the deploying user's skip-level manager AND the org admin must both approve before the team goes live.
- For org admins deploying their own teams (or single-person companies), only a confirmation step is required.
- Once approved, agent team agents are registered as headless users in the org hierarchy.
- Agent teams accrue cost by the hour they are active. The deploying user can set a monthly budget cap.
- Agent teams can be paused, resumed, or decommissioned at any time by the deploying user or org admin.
US-10: Agent Team Operates with Configurable Autonomy
As an engineering leader, I want to configure the autonomy level of my agent team, so that I can balance speed with oversight based on the task criticality.
Acceptance Criteria:
- Each agent team has a configurable autonomy level: fully autonomous, semi-autonomous (checkpoints at defined stages), or fully supervised (human approval required before each action).
- Approval gates can be configured per action type (e.g., code commits require approval, documentation does not).
- All agent actions are recorded on the organisation's existing source control platform as an audit trail.
- The deploying user receives notifications at each checkpoint or approval gate.
- Autonomy level can be changed after deployment without redeploying the team.
US-12: Org Admin Imports Org Chart from HR Systems
As an org admin, I want to import my company's organisational chart directly from our HR system (e.g., Workday, BambooHR, or other HRIS), so that I do not have to manually recreate the org hierarchy and can keep it automatically synchronised.
Acceptance Criteria:
- Admin can connect to supported HR systems (Workday, BambooHR, and other major HRIS providers) via OAuth or API key authentication.
- The import maps HRIS fields to UpsQuad hierarchy fields: employee name, email, job title, designation, department, seniority level, and reporting relationship.
- Admin can preview the imported org chart before confirming the import.
- The import handles conflicts gracefully: if an employee already exists in UpsQuad (matched by email or external_id), the system offers merge, skip, or overwrite options.
- After initial import, the system supports ongoing automated sync from the HRIS at a configurable interval (e.g., daily, weekly) to keep the org hierarchy up to date.
- Changes detected during sync (new hires, departures, title changes, reporting line changes) are applied automatically or queued for admin review, based on a configurable policy.
- The system maintains an audit log of all HRIS sync operations (imports, updates, deletions).
- Import and sync operations are scoped to the tenant -- no cross-tenant data leakage.
- If the HRIS connection fails or credentials expire, the system notifies the admin and gracefully falls back to manual management until reconnected.
US-13: Manager and Employee Offboarding (Resignation SOP)
As an org admin or manager, I want the platform to handle offboarding when a manager or employee resigns, so that access is revoked, data is preserved for audit, copilots are deprovisioned, and reporting lines are gracefully reassigned.
Acceptance Criteria:
- Admin or authorised manager can initiate an offboarding workflow for a departing employee by marking them as "offboarding" in the org hierarchy.
- Offboarding an individual contributor: (a) their personal copilot is suspended, (b) platform access is revoked, (c) conversation history and work artifacts are retained for audit per the tenant's data retention policy, (d) their seat is released from billing at the end of the current billing period (or immediately, per admin preference).
- Offboarding a manager: (a) all of the above, plus (b) the system prompts the admin to reassign the manager's direct reports to a new manager before finalising offboarding, (c) if the departing manager had delegated enablement rights, those are transferred to the new manager, (d) any agent teams deployed by the departing manager are flagged for review -- the admin or new manager must confirm continuation, transfer ownership, or decommission them.
- If the departing user was the sole approver in any active approval workflow, the system escalates to the next person in the hierarchy or to the org admin.
- If the HRIS sync is active and detects a departure (employee marked inactive in HRIS), the offboarding workflow is triggered automatically (or queued for admin review, per policy).
- The system generates an offboarding summary: what was revoked, what was reassigned, what data was retained, and any pending actions requiring admin attention.
- All offboarding actions are recorded in the audit trail.
US-11: Copilot Actions with Human-in-the-Loop Approval
As an org admin, I want to configure approval workflows for certain copilot actions, so that high-impact actions require human sign-off before execution.
Acceptance Criteria:
- Org admins can define approval policies: which actions require human approval (e.g., sending emails, creating tickets, modifying code).
- When a copilot or agent encounters an action requiring approval, it pauses and notifies the relevant approver.
- Approvers can approve, reject, or modify the proposed action.
- All approval decisions are logged in the audit trail.
- Approval workflows apply to both personal copilots and agent team agents.
6. FUNCTIONAL REQUIREMENTS
Human Employee Registry
- The system MUST maintain a human employee registry as part of the org hierarchy. Each human employee record MUST store: full name, email, job title, designation, department, seniority level (Junior, Mid, Senior, Staff, Principal, or equivalent), manager relationship (reports-to), and optional
external_idfor HRIS sync. - The system MUST support linking employee records to an external HRIS (e.g., Workday, BambooHR) via
external_idandsourcefields. The system MUST support automated sync from external HR systems to keep the employee registry up to date. - Employee records MUST be unique per tenant (email uniqueness scoped to tenant).
Org Hierarchy Management
- The system MUST model the org hierarchy as a tree structure with reporting-line (reports-to) relationships supporting arbitrary depth. Each node has exactly one parent (except the root node).
- Departments MUST be modelled as a taxonomy applied to each node in the hierarchy (not as a separate structural layer). Departments are a configurable taxonomy (e.g., Engineering, Marketing, SRE, QA, Platform, Sales, HR). Admins MUST be able to add custom departments.
- The hierarchy MUST include both human employees and headless agent users. Each node MUST have a type indicator (
humanoragent) that is stored in the data model and visually distinguished in the org chart UI. - Each human employee node MUST store: name, email, job title, designation, department, seniority level, reporting relationship (parent node), and optional
external_idandsourcefields. - Each headless agent node MUST store: agent name, designation/title, department, clearance level, reporting relationship (parent node), deploying user reference, and agent team reference.
- The system MUST provide CRUD operations on all hierarchy nodes.
- The system MUST render the hierarchy visually as an org chart with human employees and AI agents visually distinguished (e.g., badges, icons, or colour coding).
- The system MUST support bulk import of hierarchy data (CSV upload at minimum).
- The system MUST enforce tenant isolation -- hierarchy data is never visible across tenants.
User Enablement
- The system MUST allow org admins to enable/disable platform access for any user in the hierarchy.
- The system MUST allow org admins to enable all users in one action ("enable all").
- The system MUST allow managers to enable/disable their direct reports (delegated enablement), governed by an org-level policy toggle.
- Delegated enablement MUST follow the hierarchy recursively: if manager A's reportee B is also a manager, B can delegate enablement to B's reports, provided the org-level delegation policy is enabled.
- The system MUST maintain an audit log of all enablement/disablement actions (who, whom, when, by what authority).
- Enabling a user MUST trigger automatic personal copilot agent provisioning.
- Disabling a user MUST suspend (not delete) their copilot agent and conversation history.
Personal Copilot Assignment
- The system MUST maintain a competency catalogue: a mapping of designation patterns to copilot competency profiles.
- Seniority (Junior, Mid, Senior, Staff, Principal) MUST be treated as a modifier on the base competency, not a separate competency entry. The copilot MUST adapt its depth of guidance, assumed expertise, and communication style based on the seniority modifier.
- The system MUST ship with a default competency catalogue covering at least: Software Engineer, Engineering Manager, SRE, QA Engineer, Product Manager, Marketing Specialist, Sales Representative, HR Specialist, Designer, Data Analyst, Executive/C-Suite.
- Org admins MUST be able to create, edit, and manage custom competency profiles for roles not covered by the default catalogue. Custom profiles follow the same structure as default profiles (system prompt/persona, tools, knowledge domains, behavioural guidelines, seniority adjustments).
- On user enablement, the system MUST automatically match the user's designation to the closest competency profile and provision a copilot with that profile.
- If no exact match is found, the system MUST fall back to a "General Assistant" competency and flag it for admin review.
- The competency profile MUST define: system prompt/persona, available tools/integrations, knowledge domains, behavioural guidelines, and seniority-based adjustments.
- The system MUST allow org admins to override a user's auto-assigned competency.
Copilot Personalisation
- The system MUST personalise copilot responses over time based on the user's interaction history, preferences, and working patterns.
- Users MUST be able to view and reset their personalisation data.
- Personalisation data MUST be scoped per-user, per-tenant and MUST NOT leak across users or tenants.