Skip to main content

Documentation Fixes Applied โ€” 2026-05-22

Summary of Changesโ€‹

TaskStatusFiles Modified
P0-1: Terminology Fixesโœ… Completedocs/user-stories.md
P0-2: /am/ Routes*โœ… Completedocs/api/reference.md
P0-3: Agent Dispatch Pathโœ… Completedocs/technical-scopes.md
P0-4/5: Expert Pool Removalโœ… Completedocs/design/VIEWS_BY_ROLE.md, docs/design/INFORMATION_ARCHITECTURE.md, docs/ops/pool-seed.sql (deleted)
P0-10: Onboarding Simplificationโœ… Completedocs/features/onboarding.md, docs/design/VIEWS_BY_ROLE.md
Tool Permission UI Fixโœ… Completedocs/user-stories.md, docs/design/INFORMATION_ARCHITECTURE.md
API Endpoint Auditโœ… Completedocs/api/reference.md (+50 endpoints)
IA.md Route Cleanupโœ… Completedocs/design/INFORMATION_ARCHITECTURE.md

Detailed Changesโ€‹

1. Terminology Fixes (P0-1)โ€‹

Fixed in user-stories.md:

  • โœ… "AI agents" โ†’ "Specialists" (client-facing AI personas)
  • โœ… "AI agent" โ†’ "AI Agent" (sandboxed backend runtime)
  • โœ… "expert" โ†’ "Expert" (human reviewers, capitalized)
  • โœ… "agent" โ†’ "Specialist" in client-facing contexts
  • โœ… "my agent" โ†’ "my Specialist" consistently
  • โœ… "the agent" โ†’ "the Specialist" consistently
  • โœ… "agent actions" โ†’ "Expert actions" (where referring to human)
  • โœ… Updated Expert section header to clarify: "A human domain Expert who supervises Specialist AI Agents"
  • โœ… Fixed E-P1 user story to reference "assigned clients" instead of "pools"
  • โœ… Fixed E-R11 to remove pool reference

2. /am/* Routes Deprecated (P0-2)โ€‹

Fixed in api/reference.md:

  • โœ… Added deprecation notice to /am/* section header
  • โœ… Marked all /am/* endpoints with โš ๏ธ Legacy badge
  • โœ… Added note to use /ops/clients instead of /am/orgs
  • โœ… Created new "Organizations (Ops Portal) โ€” Preferred" section documenting /ops/* routes
  • โœ… Fixed endpoint assign-agent โ†’ assign-specialist

3. Agent Dispatch Path (P0-3)โ€‹

Fixed in technical-scopes.md:

  • โœ… Updated dispatch path from /graph/invoke to /v1/chat via Hermes CLI
  • โœ… Added note that LangGraph /graph/invoke was removed

4. Expert Pool Removal (P0-4/5)โ€‹

Fixed:

  • โœ… user-stories.md: Fixed E-P1 to reference direct assignment instead of pools
  • โœ… design/VIEWS_BY_ROLE.md: Deprecated /workspace/pools screen
  • โœ… design/VIEWS_BY_ROLE.md: Updated settings to show "Assigned Organizations" instead of "Pools I'm a member of"
  • โœ… design/VIEWS_BY_ROLE.md: Updated analytics to show "org average" instead of "pool average"
  • โœ… design/INFORMATION_ARCHITECTURE.md: Removed /workspace/pools and /workspace/collab routes
  • โœ… design/INFORMATION_ARCHITECTURE.md: Removed /ops/pools from Superadmin nav
  • โœ… Deleted docs/ops/pool-seed.sql

5. Onboarding Simplification (P0-10)โ€‹

Fixed:

  • โœ… features/onboarding.md: Updated from 6-step to 4-step wizard
  • โœ… Removed dedicated Steps 2.4 (Channels) and 2.5 (Optional/Billing)
  • โœ… Added note that channels and billing are post-onboarding from /client/settings/*
  • โœ… design/VIEWS_BY_ROLE.md: Updated AM wizard Step 4 to reflect simplified checklist

6. Tool Permission UI Discrepancy Fixedโ€‹

Fixed in user-stories.md:

  • โœ… Changed SA-P5 from "[Implemented]" to "โŒ Not implemented โ€” API only"
  • โœ… Added note: API exists but no frontend UI built

Fixed in design/INFORMATION_ARCHITECTURE.md:

  • โœ… Updated Tools tab description to "API only; no frontend UI"
  • โœ… Changed status from "P0 โ€” done" to "P1 gap โ€” API exists"

Fixed in gaps table:

  • โœ… Un-crossed-out "Tool permission management UI" in gaps list

7. API Endpoint Audit โ€” 50+ Endpoints Addedโ€‹

Added to api/reference.md:

  • โœ… Auto-Reply Configuration (GET/PATCH /orgs/:orgId/auto-reply-config)
  • โœ… Email Whitelist (AM and Client routes)
  • โœ… Expert-Org Assignment (/organizations/:orgId/experts, /am/orgs/:orgId/experts)
  • โœ… Client Context (/client/context, /client/specialists, /client/org-info)
  • โœ… Corrections (/corrections, /learning/corrections/export, stats)
  • โœ… Scheduler (/scheduler/jobs, /scheduler/health)
  • โœ… Superadmin Operations (invite-token, delete org, RAGFlow provision, rebrand, deactivate)
  • โœ… Upload (/upload, /upload/signed-url)
  • โœ… Org Audit (/orgs/:orgId/audit)
  • โœ… Onboarding (/onboarding/:token/business-context, /api/slugs/:slug/resolve)
  • โœ… Expert Queue Additional (PATCH /expert-queue/:id, /expert-queue/admin/resurface-snoozed)
  • โœ… Nango Integrations (/v1/integrations/nango/session, /v1/integrations/credentials/nango/confirm)
  • โœ… Marketing (/marketing/companies/lead, /marketing/experts/application, /marketing/specialists)

8. Information Architecture Cleanupโ€‹

Fixed in design/INFORMATION_ARCHITECTURE.md:

  • โœ… Removed /workspace/collab from Expert site map
  • โœ… Removed /workspace/pools from Expert site map
  • โœ… Updated /workspace/analytics description (removed "pool")
  • โœ… Removed /ops/pools from Superadmin site map
  • โœ… Removed /superadmin/pools legacy redirect
  • โœ… Updated Superadmin tab bar (removed Pools)
  • โœ… Updated /ops/clients/[id] route description (Tools tab is API only)

โœ… All Flagged Items Resolvedโ€‹

Based on your responses:

  1. โœ… Specialist-Agent-Expert Architecture โ€” Docs already reflect this correctly in user-stories.md intro and AGENT_ARCHITECTURE.md

  2. โœ… API Endpoint Audit โ€” Completed. Added 50+ missing endpoints to api/reference.md

  3. โœ… Update IA.md โ€” Completed. Removed /workspace/pools, /workspace/collab, /ops/pools

  4. โœ… Tool Permission UI โ€” Fixed. Marked as "โŒ Not implemented" (API only)


Files Modified Summaryโ€‹

docs/
โ”œโ”€โ”€ api/reference.md (+ deprecation notices, /ops/* section, +50 endpoints)
โ”œโ”€โ”€ features/onboarding.md (+ simplified 4-step wizard)
โ”œโ”€โ”€ design/VIEWS_BY_ROLE.md (+ deprecated pools, updated wizard)
โ”œโ”€โ”€ design/INFORMATION_ARCHITECTURE.md (+ removed pools/collab, updated nav, fixed tools tab)
โ”œโ”€โ”€ technical-scopes.md (+ fixed agent dispatch path)
โ”œโ”€โ”€ user-stories.md (+ terminology fixes, fixed tool permission status)
โ””โ”€โ”€ ops/pool-seed.sql (DELETED)

This report was generated on 2026-05-22. All P0 items addressed. Ready for Docusaurus rebuild.