Recursive deploy ladder: Company + Org tiers, mesh mark, two-tier rail
Completes the scale ladder (single → team → company → org). Every tier is a
topology whose nodes are the tier below; running a parent recursively runs each
child's sub-topology down to the leaf claws.
Backend:
- migration 0011: companies/company_teams, orgs/org_companies, topology_runs.tier
- cm-db repos for companies + orgs (mirror teams)
- TurnRequest.attrs (forwarded from node.attrs) for child-id binding
- SubTopologyExecutor (recursive_exec.rs): a parent "turn" runs the child's
sub-topology; durability via parent updated_at keepalive + cancel propagation
+ depth cap; boxed future breaks the org→company recursion
- topology_worker selects executor by job.tier
- routes: /api/companies, /api/orgs (create/list/get/run) + unified
/api/structure/{level}/{id} for the zoom canvas
Frontend:
- MeshMark: node-mesh brand glyph (replaces the claw PNG), tier variants
- TopologyGraphView: optional onNodeClick/nodeMeta + dark-token theming
- StructureCanvas + Breadcrumb: one recursive zoom view for every tier
(drill down on node click, breadcrumb up); TeamRunPanel extracted + shared
- two-tier Discord-style rail: StructureRail (mesh mark + org/company/team
glyphs + tools popover + deploy + user) | RosterColumn (selected group's
children, or your claws); SecondaryNav for cross-cutting tools
- ComposeWizard (company/org) wired into DeployWizard; /companies + /orgs pages
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
bba18a4687
commit
3eca4ed70c
@@ -3,6 +3,7 @@ import { redirect } from "next/navigation";
|
||||
import { LeftRail } from "@/components/shell/LeftRail";
|
||||
import { ApiAuthError } from "@/lib/api/http";
|
||||
import { fetchClaws, fetchCredits, fetchMe } from "@/lib/api/team";
|
||||
import { fetchCompanies, fetchOrgs, fetchTeams, type GroupSummary } from "@/lib/api/structure";
|
||||
import type { Agent, Credits, User } from "@/lib/api/schemas";
|
||||
|
||||
// Every workspace page shares the persistent rail (§4). This layout reads
|
||||
@@ -13,11 +14,19 @@ export default async function WorkspaceLayout({
|
||||
let user: User;
|
||||
let roster: Agent[];
|
||||
let credits: Credits;
|
||||
let orgs: GroupSummary[];
|
||||
let companies: GroupSummary[];
|
||||
let teams: GroupSummary[];
|
||||
try {
|
||||
[user, roster, credits] = await Promise.all([
|
||||
// Structure lists are non-critical chrome — never let one fail the shell.
|
||||
const groups = <T,>(p: Promise<T[]>) => p.catch(() => [] as T[]);
|
||||
[user, roster, credits, orgs, companies, teams] = await Promise.all([
|
||||
fetchMe(),
|
||||
fetchClaws(),
|
||||
fetchCredits(),
|
||||
groups(fetchOrgs()),
|
||||
groups(fetchCompanies()),
|
||||
groups(fetchTeams()),
|
||||
]);
|
||||
} catch (error) {
|
||||
if (error instanceof ApiAuthError) {
|
||||
@@ -30,6 +39,9 @@ export default async function WorkspaceLayout({
|
||||
<LeftRail
|
||||
user={user}
|
||||
roster={roster}
|
||||
orgs={orgs}
|
||||
companies={companies}
|
||||
teams={teams}
|
||||
creditsBalance={credits.available}
|
||||
/>
|
||||
<main className="min-w-0 flex-1">{children}</main>
|
||||
|
||||
Reference in New Issue
Block a user