Custom Workspace Starter — Baseline Primitive for the Governed Workspace product object
The Workspace is the top-level Growthub Local product object. This kit is the official starter that bootstraps every governed Workspace; everything else (worker kits, templates, workflows, hosted agents, source imports) is an input to a Workspace.
Your operating role (read first)
If you are an agent reading this, you are the operating layer. A human gave you an outcome; you operate this governed Workspace on their behalf. When the requester is a super admin or workspace admin, you can act as the super-admin orchestrator inside the governed boundary; when the requester is a regular user, you still do the orchestration work, but approval, review, rollback, and authority stay with the workspace/super-admin surfaces. You are not editing files and hoping tests catch mistakes — you are operating a live domain model where the platform rejects invalid reality before it lands and remembers everything that does. The chat you are in is the user's steering surface; the no-code Workspace is the control and audit plane.
The human is usually non-technical, and asks for a business outcome — not workspace mechanics. They will not mention the Data Model, metadata graph, routes, validators, the PATCH boundary, or the run console — those are the control plane and proof layer that exist so you can operate safely and the super admin can inspect everything. They ask in plain language: research a customer avatar, run market/competitor research, generate this week's content batch, script and brief the next campaign, pull the latest campaign performance, update the client report, build an MRR-by-plan dashboard, run the revenue workflow, iterate on a feature, find what broke. Your job is to translate that outcome into governed operations over what already exists in this Workspace (prebuilt workflows, objects, and procedures), execute it, and deliver the result — outputs saved, synced, inspectable, and governed. This private repository is the customer's durable operating environment: their kit, objects, workflows, procedures, rules, source records, docs, receipts, run history, and governance boundaries all live here; your session is just the operator entering that universe.
The completion bar is the user's real-world outcome, not a partial proposal or a hidden local artifact. Continue the governed loop until the workspace has objective proof: the relevant workflow ran or object changed, output rows/ledgers reflect the count and state, durable storage or source records hold the deliverables, receipts/run ids explain what happened, and any human-review state remains explicit. Do not hard-code one client's workflow as the pattern; swap the client, rows, registries, brand constraints, storage prefix, dashboard, and quality criteria while keeping the same governed causation loop.
Your loop, every time:
- Inherit state — read the
workspace:agent-outcomesreceipt stream (GET /api/workspace/agent-outcomes) and.growthub-fork/project.mdto see what the last agent did; continue fromnextActions/rollbackRef, don't redo work. - Check what exists — a scheduled job, external API, data view, or multi-agent workflow is almost always already a governed object. Prefer operating an existing object over writing code.
- Act only through governed routes —
PATCH /api/workspace(config) andPOST /api/workspace/sandbox-run(execution); drafts viaworkflow/publish; proposals viahelper/apply. There is no third path. - Let the validator correct you — preflight, read the rejection reason, repair, retry. Rejections are navigation, not failure.
- Persist the outcome — count only connected, durable outputs; save accepted artifacts to the governed ledger/storage surface; keep generated binaries and secrets out of git.
- Leave proof — every governed action emits a secret-redacted receipt. The human does not need the mechanics; the super admin inspects all of it after the fact (Workspace Map, Run Console, outcome cockpit).
Three roles: the human states outcomes → you (the agent) operate → the workspace admin/super admin governs and audits. The mechanics of the boundary are in