Repository navigation
Description
Summary
The LLC workflow chain is complete and tenant-scoped on the backend, and has no product surface. An operator using the UI cannot create a company-scoped workflow, cannot attach one to a role, and therefore cannot make the org-chart process nodes (#13963) show anything.
The API works. Nothing in the frontend calls it.
The backend chain that exists
| Step | Endpoint | Handler |
|---|---|---|
| Create a company-scoped workflow | POST /llc/workflows/{company_id} |
llc/api/workflows.py:103 → WorkflowService.create |
| Attach it to a role | POST /llc/roles/{company_id}/{role_id}/workflows |
RoleWorkflowService, admin-gated |
| Read the process nodes | GET /llc/companies/{company_id}/process-nodes |
added by #13963 |
All three are registered (llc/api/__init__.py:41,82) and correctly scoped.
The gap
- No frontend view calls
POST /llc/workflows/{company_id}. - No frontend view calls
POST /llc/roles/{company_id}/{role_id}/workflows.RolesView.vue:120-130renders theworkflowsarray read-only —<li v-for="workflow in workflows">— with no attach or create control. - The org-chart canvas therefore renders zero process nodes for every company, through the product, indefinitely.
This is the full-surface-no-sink shape inverted: the sink is built and correct, and there is no producer a user can reach.
Why it reads as working
The endpoint returns 200 {nodes: []} rather than an error, which is the correct response for a company with no attached workflows. There is no way to tell "none attached" from "cannot attach" by looking at the UI, so the feature appears functional and empty rather than unfinished.
Related but distinct
Pre-existing workflows are separately unreachable: services/workflow_redis_backfill.py:159 writes company_id=None for every backfilled row with the comment "unattributable — see module docstring", and _require_workflow rejects null-company rows. That reconciliation is #14210 step 2 and is not this issue. Even once it lands, the missing UI controls below are still required.
What is needed
- A control in the LLC admin UI to create a company-scoped workflow (
POST /llc/workflows/{company_id}). - An attach/detach control on the role detail view (
POST/DELETEon/llc/roles/{company_id}/{role_id}/workflows), gated to company admins to match the backend. - Empty-state copy on the org chart that distinguishes "no workflows attached to this role" from "workflows exist but none are attached", so the difference is visible.
processOpensWorkflowalready exists in all 11 locale files and is referenced by nothing — wire it here rather than adding another key.
Acceptance criteria
- A company admin can create a workflow and attach it to a role entirely from the UI
- The attached workflow appears as a process node on the org chart without an API call
- Controls are hidden or disabled for non-admins, matching the backend gate
- The empty state distinguishes "none attached" from "nothing attachable"
- No new i18n key is added while
processOpensWorkflowremains unused - Owner decision 2026-11-21: per-locale translation dropped; strings are i18n keys in the English locale with English fallback, translatable later.
Re-scoped 2026-11-09
Attach/detach, org-chart gating, processOpensWorkflow and the process-node-opens-builder path already exist on main (see the status comment). Residual acceptance criteria:
- A company admin can create a company workflow from the UI (path-scoped route), then attach it to a role, without typing an id
- The legacy
POST /llc/workflows/{company_id}delegates to the Company OS workflow service and is admin-gated - Attach pickers (role detail view and org chart) offer a list of attachable workflows instead of a free-text id
- The role detail view hides mutation controls when
viewer_can_manageis false, like the org chart - The org chart distinguishes "process nodes failed to load" from "none attached" and from "nothing attachable"
- Owner decision 2026-11-21: per-locale translation dropped; strings are i18n keys in the English locale with English fallback, translatable later.
- Touched controls use kit components
-
RolesView.vueandOrgChart.vuedo not grow
Activity
mrveiss commentedon Oct 18, 2026
Sighting from a code sweep plus seeded live data (2026-10-18).
/api/llc/company-os/*or/api/llc/workflows/*; the only references are intypes/generated/api.ts. Whether theautomationroute (WorkflowBuilderView,llcRoutes.ts~:94) is wired to the Company OS workflows API is not confirmed.GET /api/llc/company-os/processes), 2 workflows owned by that role (GET /api/llc/company-os/workflows), 25 work items and 1 routine.updated_atmissing on the nodes, transitions and role_skills tables), so no graph is stored yet;../gets a 400;Refs #18245 (Refined UI step 5c).
[-]feat(llc): no UI can create or attach a company workflow, so the org-chart process nodes are unreachable through the product[/-][+]feat(company-os): no UI can create or attach a company workflow, so the org-chart process nodes are unreachable through the product[/+]mrveiss commentedon Nov 9, 2026
Status at origin/main (re-verified 2026-11-09)
Already shipped
autobot-frontend/src/views/llc/RolesView.vue:158-168(RoleAttachmentPanel,@add="attachWorkflow",@remove="detachWorkflow"), handlers at:791-803autobot-frontend/src/views/llc/OrgChart.vue:664-706(POST/DELETE/api/llc/roles/{company}/{role}/workflows), formcomponents/llc/OrgProcessAttachForm.vue, detachcomponents/workflow/CanvasDetachButton.vueOrgChart.vue:77(viewerCanManagefromuseCompanyMembers), used at:1211,:1235,:1402(:detachable)processOpensWorkflowwiredcomponents/workflow/WorkflowCanvas.vue:354-355(title and aria-label)OrgChart.vue:555(router.pushtoautomation-sectionwith the workflow query key)Residual gap (3 items)
/api/llc/workflows/or/api/llc/company-os/workflows.OrgProcessAttachForm.vue:61-68), andfetchProcessNodesfolds a failure into[](OrgChart.vue:605-608), so "failed" and "none attached" look the same.RolesViewdoes not mirror the admin gate (header commentRolesView.vue:18-24says controls are intentionally not hidden); the org chart does.Backend side of the same gap: two create implementations for one table. Legacy
POST /llc/workflows/{company_id}(autobot-backend/llc/api/workflows.py:134) is not admin-gated; the Company OS create (autobot-backend/llc/api/company_os.py:164) is.Maintainer decisions, 2026-11-09
RolesViewhides mutation controls fromviewer_can_manage, like the org chart.Known limitation: a table-backed workflow opened from a process node shows "not found" in the runtime builder until #18432.
Children are filed below as native sub-issues; the existing ACs stay unticked, since ticking needs end-to-end code evidence and the create path does not exist yet.
mrveiss commentedon Nov 9, 2026
Child #21239 landed on
main@4b5a1299da(train #21263, carrying #21246): legacyPOST /llc/workflows/{company_id}now delegates toCompanyOsWorkflowService.create, is admin-gated, and carrieskind/owner_role_id(autobot-backend/llc/api/workflows.py, tests inautobot-backend/llc/tests/test_workflows_legacy_create.py,api.tsregenerated). This covers the residual AC "The legacyPOST /llc/workflows/{company_id}delegates to the Company OS workflow service and is admin-gated". #21240 is unblocked. The other residual ACs (UI create, attach pickers, role-detail gating) remain open.mrveiss commentedon Nov 9, 2026
Ticked the residual AC "legacy POST /llc/workflows/{company_id} delegates to the Company OS workflow service and is admin-gated" with evidence on main (landed via #21246 in train #21263):
autobot-backend/llc/api/workflows.py:151— the legacy create calls_company_os().create(...).autobot-backend/llc/services/company_os/workflows.py:57— that create runsrequire_company_admin(session, company_id, actor).autobot-backend/llc/tests/test_workflows_legacy_create.py:109test_non_admin_is_refused_and_admin_creates(403 for a non-admin, 201 for an admin).github-actions commentedon Nov 13, 2026
Landed via the merge train (#21475, merge
1ccdc9655d) via #21458mrveiss commentedon Nov 13, 2026
Landed in #21458 (merge 1ccdc96)
PR keyword:
Refs, so this issue stays open. The re-scoped section's residual criteria were checked againstorigin/main; the six original criteria above it are superseded by that re-scope and left as they were.components/llc/CompanyWorkflowCreateModal.vue(create then attach),RoleWorkflowsPanel.vue:183,OrgProcessAttachForm.vue:106; testsRoleWorkflowsPanel.test.ts:210,OrgChart.processMutation.test.ts:308POST /llc/workflows/{company_id}delegates and is admin-gatedRoleWorkflowsPanel.vue:157,OrgProcessAttachForm.vue:82(BaseSelectMenu)viewer_can_manageis falseRoleWorkflowsPanel.vue:127,154,184; testRoleWorkflowsPanel.test.ts:150components/llc/OrgProcessBanners.vue:34-37,views/llc/OrgChart.vue:633; testsOrgProcessBanners.test.ts:21,29,36RolesView.vue1026 to 1015,OrgChart.vue1442 to 1435) and the new controls use@autobot/uikit components, but onlyen.jsongained keysRemaining
The locale criterion. Children #21241 and #21242 carry the detail.
mrveiss commentedon Nov 21, 2026
Locale criteria amended (owner decision 2026-11-21); original criteria checked against
origin/main@d8cbd91925The 22 new keys (4 under
llc.orgChart,en.json:9152-9155; 18 underllc.workflows,en.json:9508-9527) are all used throught(...)and defined inen.json. The per-key table is on #21241 and #21242.English fallback (verified at
origin/main@d8cbd91925):autobot-frontend/src/i18n/index.ts:43fallbackLocale: 'en';:94-98initI18n()always loadsenalongside the active locale, so a key absent from another locale renders English.autobot-frontend/src/i18n/__tests__/locale-parity.test.tsonly fails on keys present in a locale but absent fromen.json(the missing-key direction was removed in i18n: make locale parity one-directional, and stop the untranslated ratchet going blind when it is #16063);autobot-frontend/package.json:37runscheck-locale-completeness.py --allow-missing(ci(i18n): the locale-completeness gate fails every new English-only key, contradicting the English-only ruling #18922);repo_tests/i18n_untranslated_ratchet_test.pyfails only when an existing translation is lost. Missing keys are counted as untranslated debt, so they stay translatable later.components/llc/CompanyWorkflowCreateModal.vue:6,29(create, then attach when a role is given), mounted atRoleWorkflowsPanel.vue:183andOrgProcessAttachForm.vue:109composables/llc/useOrgProcessAttachment.ts:47reloads after a write; wired toreloadProcessNodesatviews/llc/OrgChart.vue:217,608-611; testviews/llc/__tests__/OrgChart.processMutation.test.ts:240RoleWorkflowsPanel.vue:44,127,154,184(viewerCanManage);OrgChart.vue:82,1120,1155,1322(canManageCompany); backend gaterequire_company_admininautobot-backend/llc/services/company_os/workflows.pycomponents/llc/OrgProcessBanners.vue:30-40, mounted atOrgChart.vue:1140processOpensWorkflowis unusedcomponents/workflow/WorkflowCanvas.vue:354-355RolesView.vue1026 lines before #21458, 1015 on main;OrgChart.vue1442 before, 1362 on maincomponents/llc/RoleWorkflowsPanel.vue:126-136is a raw<button>, not the kitBaseButtonthat the same file imports at:18The compound residual criterion was split into its three parts so each carries its own evidence.
Remaining
Move the detach control in
RoleWorkflowsPanel.vue:126-136to a kit component. Left open for that.