Personal dashboard release boundary
Initial boundary (2026-11-21). The first public release serves one owner with Docker already available locally or on a server. The browser is the dashboard. It works on localhost, through the owner’s proxy, or at a domain with HTTPS. Its AI capability is an external agent acting through the gateway with a separate identity and explicit app-scoped roles the owner manages in the web UI. One useful action in a real connected app, with attribution, denial, and revocation, is the finish for journey 005. That requires a small working app integration. Team administration, general-purpose SDKs, desktop distribution and automated lifecycle management can each ship independently after this personal workflow works. Preserve their journey numbers and the detailed decisions below as future direction. This boundary supersedes earlier release timing and the eight-journey pre-public sequence throughout this record. The roadmap defines current sequencing. Owner update (2026-11-21). The first public release also requires a downloadable macOS Electron app. On first launch the owner chooses between setting up a local workspace and connecting to an existing server by URL. Local setup detects a Docker engine, lets the owner override that choice, guides them through installation or startup if needed, and drives the existing Your Space CLI and owner setup. Connecting to a server works on a Mac without Docker. Both paths open the selected server’s dashboard, where the owner can review and apply installation kits. The headless Docker and browser paths still ship. Journey 008 owns desktop entry and packaging. Journey 005 still owns agent identity, grants and approvals. Windows and Linux desktop downloads, a bundled engine or VM, and the remaining desktop lifecycle features follow publication. Source preview (2026-11-21). Prepare a quiet source preview with a Docker quickstart before the first tagged product release. The owner reviews exposure before changing repository visibility. The Mac download, clean-install checks and marketing launch follow separately. Public pull requests use ordinary CI without the maintainer’s subscription-backed reviewer.Portable workspace appearance
The owner chooses from three starters, customizes colors and local font families, and imports or exports versioned theme files. The dashboard uses its selected server’s appearance. The disconnected Mac launcher stores its own device preference and reads the same file format. Theme data controls visual presentation. The server keeps roles, approvals, installed apps and their permissions independent of theme selection. Journey 010Kit-defined roles, server-held credentials and approvals
Owner decision, 2026-11-21. Extend installation kits to define app roles as sets of allowed HTTP method/route pairs. An agent may hold any number of roles per installation. The delegable subset is drawn from kit roles the owner enables in Your Space for that installation. The bound credential’s native app scope is an independent ceiling. Your Space checks the union of current grants and injects the bound app credential server-side. The agent uses only its Your Space key. Owners choose when to approve requests, with route-level controls, an all-writes setting and recommended defaults from vetted community kits. This settles the gateway’s route-level responsibility left open below. Native app authorization still applies. Journey 005 specifies the exact-request approval flow. The owner confirmed that Ask for all writes overrides any per-route Allow. Creator workflow (2026-11-21). The first release includes host-authorized agent setup, portable app scaffolding and a selectable Home with owner-chosen app read roles. GitHub is the first source provider for managed public and private repos, agent forks and edits, and the kit directory. The server retains the GitHub credential. A workspace agent can edit only explicitly delegated sources or its own authorized creations. Only the owner confirms a replacement of a running installation at a specific commit with compatible storage. This brings the kit directory, private installs and compatible manual replacement ahead of the broader publishing, SDK and lifecycle work. Journey 011Purpose and Scope
This is the canonical project-wide record of accepted architecture and product direction, including decisions for future work. It remains relevant across feature specifications and must not be archived or replaced when an individual feature is completed. The constitution establishes governing principles; this record captures shared decisions and open choices; individual specifications define delivery scope and acceptance criteria. Open proposals remain candidates, even when they have been discussed in detail. The architecture overview diagrams the resulting system layer by layer. The first feature establishes manual Docker Compose installation, owner setup, authentication, an empty workspace, persistence, and recovery. It does not install independent apps or implement app roles, agents, a marketplace, or an agent execution runtime. Later specifications must turn those directions into concrete contracts and acceptance criteria. Recording an accepted future direction here does not add it to the first feature or claim that it has been implemented.How to Use and Maintain This Record
- Consult this record and the constitution before creating or changing specifications, technical plans, or public integration contracts.
- Keep cross-feature decisions here and link to them from feature documents rather than creating competing copies of project direction.
- Update this record in the relevant pull request when a shared decision is agreed or changed. Keep accepted decisions, open proposals, and superseded decisions distinguishable.
- When replacing an accepted decision, record the date, rationale, and what it supersedes; retain its rationale or link to the change that preserves that history.
- Reflect changes to agreed direction and sequencing in the roadmap in the same PR. The roadmap is a derived delivery view, not a competing source of decisions or acceptance criteria.
- Resolve conflicts with the constitution explicitly through its governance process. A feature plan must not silently override shared decisions.
Accepted Foundation Decisions
Installation and Hosting
Current scope (2026-11-21). The headless install uses existing Docker on a personal machine or server. The macOS desktop can set up a local workspace on an owner-selected engine or connect to an existing server without local Docker. A bundled engine follows publication. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Begin with a documented, manual Docker Compose installation. The owner is created with a server command and sets their password in the browser.
- Initially support macOS and Linux server hosts. Users on other operating systems can access a supported server through the web client.
- The desktop app can also run a local workspace on the same machine on macOS, Windows, and Linux, through the Your Space CLI. The CLI therefore runs on all three.
- On Windows, people can use the desktop app and run a local workspace through Docker Desktop. Windows is not a supported server host. (Docker Desktop superseded 2026-11-14: Your Space needs a Docker-compatible engine and provides one itself; see below.)
- Begin with a web client in the owner-access feature. Web, desktop, and PWA clients are part of the first public-release target; the desktop app uses Electron.
- Keep client and server as independent components that can run on the same machine or different machines.
- Store authoritative account and workspace state on the server, rather than relying on a particular browser.
- Use persistent storage so supported restarts retain identity, ownership, and workspace state.
- Document prerequisites, setup, storage, restart, remote client access, and owner recovery.
- Keep Kubernetes and kind outside the initial installation requirements.
- Your Space publishes its images for both ARM (including Apple Silicon) and Intel/AMD machines.
- Remote access uses HTTPS. The Compose stack includes a reverse proxy that obtains and renews a certificate automatically when the owner provides a domain during installation; this needs the domain and inbound ports 80 and 443.
- Owners who already run their own reverse proxy or tunnel can turn off the built-in proxy and terminate HTTPS themselves.
- Owners without a domain get documented guidance for a private tunnel such as Tailscale. Plain HTTP is supported only on the same machine (localhost), because browsers require HTTPS for PWA installation and secure session cookies. (Since 2026-11-14 this machine’s address is
space.localhost; see below.)
http://localhost, published on 127.0.0.1. YS_DOMAIN=<name> publishes
ports 80 and 443 to the network and turns on automatic HTTPS. YS_PROXY_URL=https://<address>
publishes plain HTTP on 127.0.0.1:8080 for the owner’s own proxy or Tailscale, and offers a
Docker network for proxies that run in containers. With YS_PROXY_URL the built-in proxy is not
removed: it still serves the web client and forwards /api behind the owner’s proxy, which
terminates HTTPS, so only Caddy’s certificate handling is off. This refines the bullet above about
turning off the built-in proxy. YS_PORT moves the local port when another program has it. Compose
selects one file per setup by which key is set, so every port address is written out in a file
rather than computed or left to Docker’s defaults, and the server refuses a wrong value or a
misspelled setting before any port opens. The alternative most projects use, one address setting
with ports open on every interface, was rejected because a fresh local install on a Linux server
would put its sign-in page on the network. The research and the designs
considered are summarized in research R9.
The CLI (spec 003) writes the same lines.
Decision update (2026-11-08): Your Space generates its own platform secrets. A secret the owner
sets in .env is used as given and never copied, so owners can supply secrets from their own
store. Otherwise each secret is generated once, as random bytes, into a dedicated ys-secrets
volume kept apart from the database, and never regenerated on its own: if the database exists but
a secret is missing, start-up stops with recovery steps. The owner can replace a generated secret
on request with the secrets step’s --new option. No sample or default secret ever runs. A
dedicated secret manager was rejected for now, because on one machine its unseal key sits on the
same disk and it adds a container and bootstrap secrets of its own; OpenBao (MPL-2.0) is the
upgrade path.
The research and alternatives are summarized in
research R16.
Decision update (2026-11-14): Your Space needs a Docker-compatible engine, not Docker Desktop.
On Linux servers the host’s Docker Engine is the default. On macOS, and later Windows, Your Space
provides its own virtual machine with Docker Engine by default, and an engine the owner already runs
is an advanced option. How Your Space provides the engine is settled in journey 003 or 008 (settled on 2026-11-17: journey 008, with the desktop app). Docker
Engine and Compose are open source (Apache-2.0); Docker Desktop is a separately licensed app, free
only for personal use, education, non-commercial open source and small businesses, and open-source
tools such as Colima and Lima run the same engine in a VM on macOS. This supersedes the statements
that the local audience installs Docker Desktop and that a Windows local workspace runs through
Docker Desktop. See the
002 research.
Decision update (2026-11-14): On this machine Your Space’s address is http://space.localhost,
and http://localhost redirects to it. This supersedes http://localhost in the 2026-11-08 update
above. Apps are at <app>.<Your Space's address> (see UI integration), and
browsers treat localhost and sure.localhost as different sites, so an app in a pane under bare
localhost can’t keep its own session. space.localhost and sure.space.localhost are one site in
Chromium and Firefox, and every *.localhost name reaches the machine itself with no setup
(RFC 6761). Plain HTTP is still supported only on this machine. See
research R2.
CLI Delivery Sequence
Current scope (2026-11-21). The install and operator commands in 003 serve the personal release. Guided updates, backup, restore and uninstall move to 006. The first 008 macOS download must be able to drive the supported CLI on the Mac. Since 2026-11-22 each release offers the CLI as the npm package@your-space-ai/cli, published by the your-space-ai npm organization so the name stays with the project rather than a personal account (the command it installs is still your-space), and as standalone Linux executables for ARM and Intel; on macOS the CLI comes from npm or inside the signed desktop app. .deb and .rpm packages, standalone macOS downloads and Homebrew are not part of a release, which keeps the set of files to build, sign and support small; they can be added later without changing existing download names. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.
Decision update (2026-10-29): Establish and verify the Compose deployment with the owner-access feature first.
A separate specification and implementation PR will add a Your Space CLI for installation and management of that deployment (sequence updated 2026-11-02 below: the app UI and sign-in specification comes first, and is now part of journey 002; the CLI is journey 003, and since 2026-11-08 it is delivered, like every journey, as a stack of pull requests; see journey-based specifications).
This replaces the earlier proposed CLI-first ordering: the CLI needs a working deployment to manage.
- The first feature must be installable and operable through documented manual Compose procedures without a standalone Your Space CLI.
- Owner creation and owner recovery remain part of the first feature, with documented operator commands available through the deployment.
- The CLI drives Docker Compose on the user’s behalf for both local and server installations, so installation and management are a managed experience rather than users running Compose themselves.
- The desktop app’s local mode drives the CLI for the user. People can also run the CLI themselves to set up a local workspace.
- There is one installation and setup behavior. The CLI behaves the same for local and server installations, and wrappers such as the desktop app simplify the experience without changing the CLI or setup behavior.
- The manual Compose procedures stay documented as an advanced alternative; the CLI is the supported way to install.
- Before publication the CLI provides at least these operations: install, start, stop, status, logs, update Your Space, owner password recovery, backup, restore, and uninstall.
- Uninstall removes Your Space and every app container it manages, not only the main Compose stack. It keeps data by default; deleting data requires explicit confirmation and offers a backup first. The desktop app uses the same command for local workspaces.
- Updating Your Space through the CLI rolls back automatically if the update fails; see Your Space updates, backup, and restore.
- The CLI also gives agents their first-release way to use apps: agent commands call app actions through Your Space with the agent’s own credential. See Agent access through Your Space.
- CLI command names, packaging, prerequisite automation, and the rest of its management scope belong in its separate specification.
docker compose down alone would leave app containers and data behind; only Your Space knows what it started.
Decision update (2026-11-17): Journey 003 specifies the CLI
(spec 003). At the owner’s request it follows the
Supabase CLI’s shape: the your-space command comes from package managers (an npm package, .deb
and .rpm packages built with the distributions’ own tools, and standalone executables built with
Node’s own single-executable feature), works on the installation in the current folder, and
installs with init then start, which prints a summary of what is running. It writes the same
release files and .env lines as the manual install and runs the same Compose and server commands,
so a space can be managed either way, and it keeps no state of its own. It is written in TypeScript
with Commander and Clack. The name is your-space with no short alias, since ys is YAMLScript’s
command. This replaces “install” in the minimum operations above with init and start.
Decision update (2026-11-17): People sign in only through the client (web, then desktop). The
CLI runs the installation on its own machine, through the engine and the server’s operator commands,
never the HTTP API, with the authority of access to that machine, as create-owner and reset-link
already have. Agents (journey 005) will use the CLI with a credential a person issued in the client;
identity never comes from the CLI, which stores no credential and has no sign-in. How a credential
reaches an agent is left to journey 005, which must keep it manageable for people who aren’t
technical. The desktop app drives the CLI only for a space on the same computer; managing one on
another machine is possible later but not planned. This replaces “remote CLI authentication” for
backup and restore: journey 006 chooses between the client and an issued credential.
Decision update (2026-11-17): Your Space contains no code for a particular proxy or tunnel. It
knows its own address and, behind a proxy or tunnel, the names to forward, which your-space status
lists. Tailscale’s names can’t hold a name under a machine’s name, so apps can’t get their
<app>.<Your Space's address> names over Tailscale; that stays unsupported until the release gate’s
hosting review settles a way. (Superseded for apps 2026-11-19: an app is published on a port of
this machine and reached at the owner’s link; see
running apps and reaching them.)
Decision update (2026-11-17): Functionality is built and tested on Linux first, in every
journey. Packaging and checks for macOS and Windows (macOS executables, a Homebrew formula with its
your-space-ai/homebrew-tap repository, checks on a real Mac, and Windows) are gathered into one
pass before release, after the journeys, so they aren’t repeated after each one.
Decision update (2026-11-17): Your Space encrypts the secrets it stores, today installed apps’
settings, with a data key of its own: a third platform secret generated into ys-secrets, or set in
.env as YS_DATA_KEY (spec 009). It replaces the key
derived from the auth secret, which tied the two together, and existing installations move onto it
when the server starts. Standard PostgreSQL doesn’t encrypt what it stores, and the only
whole-database option, Percona’s pg_tde, needs Percona’s own PostgreSQL build rather than the
official image, so encrypting the whole database or its disk stays the owner’s responsibility for
now, with the guide recommending disk encryption on the host. Session tokens stay as Better Auth keeps
them: encrypting them would break sign-in, and the cookie signature already protects them.
Server and Database
- Use Node.js and Express for the platform server.
- Use PostgreSQL as the initially supported platform database.
- Use Drizzle for database access and schema tooling.
- Do not require a second platform database implementation for local installations.
pg, and applies Drizzle Kit migrations at server startup. Recovery from a failed migration belongs with update rollback in spec 006.
Web Client
- Use React, TypeScript, and Vite for the initial web client.
- Router, query/state tooling, styling, and component library remain implementation planning choices.
/api to the Express server, so the client and API share one origin. A server-rendered frontend was considered and deferred until a spec needs public, logged-out pages.
Owner and Workspace Model
Current scope (2026-11-21). The personal release has one owner. Invitations, additional human members and their roles follow in 004. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Support one human owner and one workspace in the first feature.
- Keep account identity, workspace identity, membership, and ownership as distinct concepts.
- Establish those relationships explicitly so later membership support does not require replacing existing identities.
- Do not expose invitations, additional human accounts, role administration, or ownership transfer in this feature.
Authentication and Initial Claim
- Your Space defines and operates one server-managed authentication system across deployment modes.
- Use Better Auth as the authentication library within that system.
- Authentication must not depend on an external identity provider.
- Initial account creation collects a name and a username, and optionally an email address; the owner then sets a password.
- The username is the login identifier. An email address never signs in, and is not treated as verified without mailbox verification.
- Initial self-hosted setup does not require SMTP or another email-delivery service.
- A server command run by the operator creates the owner account and workspace and prints a short-lived, single-use set-password link. Access to the server is the authority to create the owner.
- Network access alone can never create an account or the owner: before an owner exists there is no setup page, and sign-up is always off.
- After setup, sign-up stays closed: new people join only when the owner invites them. Open sign-up may be offered later as an optional feature.
- Concurrent runs or reruns of the owner command must not create duplicate owners or replace an existing owner.
@users.invalid address (RFC 2606), which can’t receive mail and is never shown. Usernames are 3 to 30 letters, digits, _ or . (each . between other characters), compared without case. Whether invited members (spec 004) sign in the same way is settled in the members specification.
Sessions, Persistence, and Recovery
- The owner can sign in, reach the empty workspace, and sign out.
- Protected server operations enforce authentication independently of what the UI displays.
- Expired or invalidated sessions cannot continue accessing protected resources.
- Restarts preserve account identity, workspace identity, and ownership.
- Storage unavailability must not make a claimed installation appear unclaimed.
- An operator recovery command on the server issues a short-lived, single-use password-reset link for the existing owner.
- Completing recovery changes the password, revokes old sessions, and requires normal sign-in.
- Recovery preserves existing identities and ownership; it does not reopen setup or create a replacement owner.
- A member receives a recovery code at signup and can use it to reset their own password.
- As a fallback, the owner can reset a member’s password and give them a temporary password. The member must replace it the next time they sign in.
- Like owner recovery, a member password reset preserves identity and revokes existing sessions.
Your Space Updates, Backup, and Restore
Current scope (2026-11-21). Guided updates, rollback, backup, restore and migration move to 006. The personal release documents storage and the recovery paths it verifies. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Updating Your Space has the same safety net as app updates. Before an update, Your Space records its current versions and takes a snapshot of its data. If the update fails, it rolls back automatically to those versions and restores the snapshot.
- Releases are not expected to break on update; automatic rollback is protection, not a substitute for release testing.
- One pre-update snapshot mechanism serves both app updates and Your Space updates, and is built before publication.
- Backup and restore are built before publication, with a single implementation for every installation. The CLI asks a Your Space server to produce a backup, and the server returns it through its API, so the behavior is the same whether the server runs locally or remotely. Wrappers such as the desktop app use the same operation.
- Backup and restore build on the pre-update snapshot mechanism rather than a separate implementation.
- A backup contains everything in the workspace, including credentials and app data, so producing or restoring one requires owner authority.
- Moving a workspace between installations, such as from a local machine to a server, is a backup from one and a restore into the other rather than a separate feature.
- The data model and storage layout are designed from the start so that the whole workspace can be captured and restored consistently, keeping backup a small addition rather than a retrofit.
Reuse Before Building
Governed by constitution principle VII.- Prefer established open-source libraries and tools over custom code. Before building something, check whether a selected library already provides it.
- Use selected libraries’ native features as intended rather than wrapping or reimplementing them. Custom code fills only the gaps they leave.
- Use each library only for the purpose it was built for. Don’t stretch an available feature into a general system for the app; pick a library made for that job.
- Keep dependencies few and trusted. Not every small need gets a dependency: add one only when it replaces substantial custom code, and prefer one library that covers several needs over several narrow ones. Keep integrations thin.
- Technical plans name the library feature each requirement relies on and justify each new dependency and any custom code.
Concepts and Adapters
Governed by constitution principle VIII.- Your Space implements against concepts, such as an engine connection, an app endpoint or a secret store, that different technologies can sit behind. It never implements against one specific tool.
- Only an adapter knows its technology. Swapping a technology means adding an adapter, not changing Your Space.
- A technical plan names the concept and its first adapter.
Accepted Product and Repository Direction
Platform and Independent Apps
Current scope (2026-11-21). One app must support the owner’s agent in 005. Public SDKs and the general developer contract move to 007. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- The platform is self-hostable first, with a managed offering planned later.
- Guided installation remains part of the product direction.
- This repository contains the platform server, web client, CLI, desktop app, SDKs, and public integration contracts.
- Installable apps, including first-party apps, live in separate repositories with their own builds and releases.
- Apps run independently and integrate through documented, versioned public contracts.
- Installing a compatible app does not require rebuilding the platform or including app source in its build.
- The SDKs are developed in this repository and published for use by independent app projects.
- First-party apps use the same public integration surface as other apps.
- The first public release publishes TypeScript and Python SDKs. SDKs for other languages are post-open-source work.
- An app can be managed or external. Your Space deploys and runs a managed app from its deployment file. An external app is hosted anywhere; the owner adds it to the workspace by pointing Your Space at the running instance. (2026-11-14: a managed app is installed from its own Compose file, and an external app is added through a connector; see below.) Both use the same public integration contract, so the contract must not assume Your Space runs the app.
- External apps are outside Your Space’s container isolation, outbound network limits, resource limits, and backups; whoever hosts them is responsible for those. They still integrate through Your Space identity and the gateway, and accept only requests that carry identity verified by Your Space.
Journey 002 delivers level 0. Level 1 matters most once there are members (journey 004); level 2
is for developers’ own apps (journey 007) and for agents (journey 005). Where each lands is settled
with those journeys. Requiring integration before install would leave almost no existing app
installable, while level 0 lets any app with a published image and a Compose file run unchanged.
This refines the intended developer experience below: adapting an app is needed only for levels 1
and 2. The TypeScript SDK, app roles and verified identity for apps move out of journey 002; both
SDKs remain required before publication. See
later: deeper integration.
Decision update (2026-11-14): An app someone already runs elsewhere is added through a connector
that runs next to it and connects out to Your Space, so the app needs no open port and its authors
change nothing. Your Space gives it routing, the access gate and panes through an app endpoint,
the same concept that reaches a container on Your Space’s own engine, and doesn’t manage or police
the rest of its setup. This replaces pointing Your Space at the running instance as the way an
external app is added. It is later work; journey 002 builds the app endpoint it plugs into. Whether
an external app must still accept only requests that carry identity verified by Your Space, as the
bullet above says, or whether the connector’s gate is enough until the app opts into level 1 or 2,
is open.
The intended developer experience is to adapt an existing app for installation and platform identity integration.
An app should remain independently runnable rather than requiring a replacement frontend networking layer.
Existing app authorization should be reusable where it has a suitable integration boundary.
First Public-Release Audience and Clients
Current scope (2026-11-21). Launch clients are the web dashboard and the downloadable macOS Electron app. The Mac build is signed with an Apple Developer ID and notarized. Local setup and remote connection use the same workspace dashboard and kit installation flow. The rest of desktop 008, including other operating systems, self-update, a bundled engine and the installable PWA, follows publication. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- The first public release targets two groups: people who can install Docker Desktop and the Your Space desktop app to run a local workspace, and people who can install Docker and follow a guided CLI to deploy a server or a local workspace, both without one-on-one assistance. (Docker Desktop superseded 2026-11-14: the local group installs the desktop app, and Your Space provides the engine; see below.)
- The web, desktop, and PWA clients provide the same core workspace and installed-app experience while connected to a Your Space server; a local network connection is sufficient.
- The desktop app uses Electron and ships for macOS, Windows, and Linux.
- The desktop app is the intended primary way people use Your Space. The web client and PWA stay full clients with the same core experience, so the workspace also works in a browser and on phones.
- Desktop releases are signed before publication. macOS builds are signed with an Apple Developer ID and notarized, so people see the standard “downloaded from the Internet” prompt rather than a block, and the app can update itself. Windows builds are signed through the SignPath Foundation’s free open-source program, with Microsoft Artifact Signing as the fallback. Linux builds need no signing.
- Signing runs in CI with keys held as CI secrets, never on a personal machine.
- When setting up the desktop app, the user either connects to an existing server by URL or runs Your Space locally. In local mode, the desktop app uses the Your Space CLI to set up and run the Docker Compose stack on that machine, then connects to it.
- The CLI is part of the first public release for setting up Your Space on a server or locally; desktop, web, and PWA clients can connect to a server it sets up.
- Before publication, local mode detects Docker and links to the Docker Desktop download when it is missing, sets up the Your Space stack, starts it when the desktop app opens, and updates Your Space when the owner chooses. (Detection with a Docker Desktop link superseded 2026-11-14: local mode provides Your Space’s own engine by default; see below.)
- Every installation, local or server, uses one setup flow: the owner command. In local mode the desktop app runs it through the CLI and sets the password for the user, so the user only fills in one form. Streamlined local setup in the desktop app gets its own specification and implementation PR, separate from the owner-access feature (superseded: part of journey 008 since 2026-11-02, and since 2026-11-08 delivered, like every journey, as a stack of pull requests; see journey-based specifications).
- Before publication, the owner can back up and restore local and server installations alike, and move a local workspace to a server, through the CLI; the desktop app uses the same operation in local mode. (Moving superseded 2026-11-14: it is a backup and a restore the person does themselves; see Your Space updates, backup, and restore.) Owner-triggered Your Space updates in local mode go through the CLI and roll back automatically if they fail.
- A local workspace is unavailable to other people and remote agents while its machine is asleep or off. Install documentation must state this and the Docker Desktop license terms. (2026-11-14: Docker Desktop is no longer required, so its license terms matter only to owners who choose it as their engine.)
- PWA offline support remains open. The first owner-access feature remains web-only.
- The desktop app updates itself. Its update check goes to GitHub, consistent with the no-telemetry rule.
- Your Space defines which desktop app, CLI, and server versions work together. On a mismatch, clients show a clear message saying whether to update the app or the server.
- Windows support (the desktop app, the CLI, local workspaces, and Windows signing) and PWA installation are low priority: built last, and the first work to move to post-open-source if the timeline slips. The roadmap assigns a priority to every pre-public item.
Deployment Boundaries and Licensing
- Keep core behavior independent of a particular cloud provider.
- Provide platform-specific installation guides and deployment adapters for supported environments.
- Keep provider-specific storage, networking, and provisioning details within those deployment boundaries.
- Preserve compatible, versioned app contracts between self-hosted and managed installations.
- Dependencies must permit the intended commercial distribution and managed hosting, and be compatible with the project licenses below. Prefer permissive open-source licenses.
Project License and Business Model
- The business maintains the open-source core and offers a managed service for people who don’t want to self-host.
- Your Space itself (server, web client, CLI, and desktop app) is licensed under AGPL-3.0 (
AGPL-3.0-only). Anyone may self-host and modify it; anyone who runs a modified version as a network service must publish their changes. - The SDKs are licensed under MIT, so apps can use any license. Apps are separate programs that integrate through APIs and are not covered by the core’s license. (Apache-2.0 superseded 2026-11-16; see below.)
- SDK code never imports or copies code from the AGPL parts of the repository; SDKs reach Your Space only through its public APIs and contracts. Each SDK package states its own MIT license.
- The project uses the name Your Space and the domain getyourspace.ai. Trademark filing and a policy for forks remain open.
- Outside contributions are accepted under the Developer Certificate of Origin (DCO): contributors sign off each commit and keep their copyright, and the code they contribute is licensed under the license of the part it changes. (Contributor license agreement superseded 2026-11-16; see below.)
- Code specific to the managed service, such as billing, provisioning, and multi-tenant operations, lives in a separate private repository and integrates with the core through its APIs.
- The license, trademark, and contributor agreement are in place before publication, after review by a lawyer.
- SDKs: MIT, replacing Apache-2.0. Apps that use an SDK can have any license, including GPLv2-only, which Apache-2.0 can’t be combined with. Installing existing open-source apps is the first release’s focus, so compatibility outweighs Apache-2.0’s explicit patent grant; the project holds no patents.
- Contributions: DCO, replacing the contributor license agreement. Revenue comes from the managed service, not from selling licenses, and self-hosters trust a project more when no single party can relicense it. The accepted consequence: once outside contributions land, the core can’t be relicensed or offered under commercial terms, and the managed service must publish any changes it makes to the core. Keeping managed-service code in a separate private repository that integrates through the core’s APIs, as decided above, keeps that workable.
AGPL-3.0-only, not “or later”. The project decides on any future license version itself; under the DCO this can’t easily be changed later.- Copyright holder. Code is published under the owner’s name; the owner assigns it to the company when it is incorporated. Incorporation isn’t required for publication.
- Trademark: open. A 2026-11-16 screening found no live US registration for YOUR SPACE in software classes, but the name is descriptive and may be hard to register, and MYSPACE registrations exist in related classes. Whether and when to file, and the trademark policy for forks, are open.
- Lawyer review before publication remains as stated above and now covers the DCO in place of a contributor agreement.
Product Experience Principles
- Simple by default. Show people only what they need to see, and avoid filling the interface with settings and configuration that can overwhelm beginners.
- Deeper controls are available for power users, but they stay out of the default experience.
- Configuration works like editor settings: the defaults live in Your Space, the owner’s file starts empty, and each line in it overrides one default. Every setting needs a safe default that suits most installations; a value that follows from other settings is derived, not asked for; secrets are generated when the owner doesn’t supply them.
Telemetry and Outbound Connections
- Your Space collects no telemetry. Neither the server, the CLI, nor the desktop app reports usage, errors, or any other data to the project.
- The only automatic outbound requests are update checks that ask GitHub for the latest release. The owner can turn them off. Actions the owner starts, such as installing or updating an app, contact the sources they name.
- Opt-in reporting, off until the owner turns it on, is the only acceptable future extension. Opt-out telemetry is prohibited.
Documentation
Decision (2026-11-23). The repository maintains a reference set of documents: installation and operation guides, app-building guides, maintainer guides, this decision record, the roadmap, the architecture overview, the glossary and the specifications. In-depth explanations of how the code works come from the generated DeepWiki, steered by its page plan and notes in.devin/wiki.json, instead of hand-written walkthroughs. Generated pages can lag the code or paraphrase it, so the reference set stays authoritative wherever exact steps, versions or commitments matter, and DeepWiki is told to cite it. The reference set is the only written source: it lives in docs/ and is published as a website with Mintlify (free plan) from docs/docs.json; DeepWiki is a generated view of the repository, not a second source.
Accepted Future App Distribution Direction
Current scope (2026-11-21). Journey 011 includes direct kit URLs, an optional operator-selected GitHub kit directory, private GitHub sources, and owner-confirmed compatible replacements. Journey 006 covers broader updates and backup-based data rollback after publication. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- For the first public release, an owner installs a compatible app by pasting the GitHub URL of the app’s deployment file in a public repository into Your Space. (Since 2026-11-14 that file is the app’s own Compose file; see below.)
- The owner can connect GitHub to install authorized private repositories in 011.
- Curated app listings provide discovery and use the same installation contract as direct repository installation.
- The official curated listing is optional, rather than a prerequisite for installing compatible apps.
- Preserve each installation’s app identity, exact source version, provenance, and approved update policy or source.
- Changing or disconnecting a discovery source must not silently redirect updates, replace an app, uninstall it, or delete its data.
- App updates must not silently expand granted access.
- The first public release supports owner-triggered updates of installed apps, preserving app data and requiring explicit approval for any additional access.
- Automatic app updates are post-open-source work.
- Before each app update, Your Space records the app’s current image versions and backs up its data.
- If an update fails, Your Space automatically rolls the app back to the recorded image versions and restores the pre-update data backup.
- Keep failed-update rollback minimal: only the backup needed to restore the pre-update state is required. Backup history and owner-initiated rollback of a successful update are post-open-source work.
Accepted Future App Deployment Direction
- Independent apps run in their own container or containers and integrate with Your Space through APIs. They do not run inside a Your Space-specific application environment.
- Your Space starts and manages installed app containers. For the first public release, it supports Docker on the same machine as the Your Space server. Other machines and deployment backends are future work. (Refined 2026-11-14: one Docker-compatible engine, shared by Your Space and its apps wherever it runs, reached only by the runtime manager; see below.)
- An app can declare and use its own database service, which Your Space runs alongside it; apps are not required to use the platform’s database.
- Apps have isolated environments and app-specific durable storage. They do not receive direct access to host folders, devices, or Docker controls. The enforcement mechanism and precise isolation guarantees require design and verification.
- Uninstalling an app retains its data by default. The owner can explicitly delete retained app data from an administration UI.
- The app developer supplies a separate deployment file in the app’s existing repository. The owner installs the app by pasting that file’s GitHub URL; Your Space reads the file at that URL and records the exact commit used. Updates re-read the file from the same URL. (Separate deployment file superseded 2026-11-14: the app’s own Compose file, with an optional installation kit; see below.)
- The first public release installs published container images only. The app’s integration files must declare the exact image and version to install for each container, including any declared database service. (Refined 2026-11-14: Your Space pins each image to its digest itself, since apps’ own files often name moving tags; see below.)
- Building apps from source during installation is post-open-source work.
- The deployment file is a Docker Compose file. Your Space accepts only Compose settings on an approved list and rejects all others, including settings that would break app isolation, such as host folder mounts, devices, privileged mode, or host networking.
- The approved list is not defined in advance. It starts with the settings the first app needs when that app is implemented, and grows as later apps need more. (Refined 2026-11-14: the 002 plan sets it for every app; see below.)
- The app describes itself to Your Space, such as its name and the access it needs, in a dedicated
x-your-spacesection of the same Compose file. (Superseded 2026-11-14 by installation kits; see below.) - Alternative deployment-file formats are post-open-source work, explored only if a real need surfaces, such as app details the Compose file cannot express.
- The owner provides app settings and secrets, such as API keys, at installation and can change them later. A component in the Your Space Compose stack stores and supplies them; the mechanism is decided in the app specification. (Decided 2026-11-14: the server stores them encrypted; see below.)
- App images must be published for both ARM and Intel/AMD machines. Installation fails with a clear message if no image matches the machine. (Superseded 2026-11-14: an app installs if its images run on the engine’s processor type; see below.)
- Apps have no outbound network access by default. Each app declares the outbound access it needs in its
x-your-spacesection, and the owner approves it at installation; an update that asks for more needs new approval. (Declaring inx-your-spacesuperseded 2026-11-14: starter hosts from the installation kit, then access requests; see below.) - Each managed app runs with memory and CPU limits so one app cannot take down the host. The owner can see each app’s status and logs.
x-your-space section of the Compose file. Compose permits extension sections and ignores them, so installation stays one file and one URL. A separate details file would need a second URL or file-finding logic. If the Compose section proves too limited, a custom format can be explored later. (Superseded 2026-11-14 by installation kits; see below.)
Decision update (2026-10-31): Your Space accepts only Compose settings on an approved list rather than blocking known-dangerous ones. An approved list fails safe: an unlisted setting is rejected until it is reviewed and added, while a blocked list lets through any setting nobody thought to block. The list is derived from what the first app needs during its implementation instead of being guessed up front.
The deployment file is intended to describe how Your Space launches the app without coupling deployment configuration to application code. It uses Docker Compose. The initial approved list of Compose settings, set when the first app (Tasks) is implemented, the contents of the x-your-space section, supported operations, and backend interpretation remain open. (2026-11-14: the app’s own Compose file replaces the deployment file, the 002 plan sets the approved list, installation kits replace the x-your-space section, and Sure replaces Tasks; see below.) The app contract must define how exact image identity is validated and retained alongside the repository commit. Trust verification, owner-triggered update mechanics, and how a failed update is detected still need decisions.
App role authorization controls what users and agents may do within an app. Host isolation is a separate boundary and must not rely on those roles or the SDK alone. The runtime manager’s privileges and deployment-file processing must be designed so app-provided configuration cannot bypass the agreed host-access boundary.
Decision update (2026-11-14): Apps install from their own files, with optional installation
kits. Your Space reads an app’s own Compose file and applies rules that hold for every app, instead
of requiring a Your Space-specific deployment file with an x-your-space section. This supersedes
the 2026-10-31 decision to put app details in an x-your-space section and the bullets above that
the developer supplies a separate deployment file. Help a particular app needs comes from an
installation kit supplied by the owner or discovered in their optional YS_KITS_REPOSITORY
GitHub directory. Each fresh installation starts without a directory. Kits declare which service
is the interface, which values to generate rather than
take from published defaults, values Your Space works out itself such as the app’s own address,
which outbound hosts it needs, its limits, and whether it can run in a pane. A kit refers to the
app’s files by link and exact commit and never copies them, so the app’s license is untouched. Your
Space contains no logic for a particular app, and an app with no kit installs if its own files are
enough. App authors can’t be expected to add a section for Your Space, and requiring one would leave
almost no existing app installable. The format is in the
kit contract.
Decision update (2026-11-14): The 002 plan
sets the approved list of Compose settings for every app, checked against Sure’s and Twenty’s
files, refining the plan to grow it from the first app alone. It is checked against the fully
resolved file (docker compose config, after include, extends, anchors and placeholders), never
the raw text, and an unknown key is refused so a new Compose feature can’t slip through. Rules that
apply to every app adapt a few settings and report each change: published ports are replaced by Your
Space’s routing, networks are assigned, images are pinned by digest, services behind profiles are
left out, and Your Space sets DNS, logging and limits. Host folders, devices, privileged mode, host
namespaces and engine access are refused with the reason.
Decision update (2026-11-14): An app installs if its images run on the engine’s processor type
(ARM or Intel/AMD); nothing more is required. This supersedes the requirement that app images be
published for both. Requiring both would refuse apps that run on the owner’s machine, and the
install still stops with a clear message when no image matches. Your Space’s own images still ship
for both.
Decision update (2026-11-14): A runtime manager in Your Space’s stack is the only part that holds
the engine connection. It is the Docker adapter: a service with no network (network_mode: none)
that mounts the engine socket and serves its API on a Unix socket in the ys-runtime volume, which
the server mounts. The server talks to it in Your Space’s terms (apps, services, endpoints, outbound
hosts) and never holds the engine connection, since engine access controls the host. The runtime
manager runs docker compose to resolve, pull, start, stop and log apps, as their authors tested
them, and calls the engine API for image platforms and digests, engine details, network connections
and use. The engine is any Docker-compatible engine of version 28 or newer, found without
configuration and overridable with one setting (YS_ENGINE_SOCKET). Kubernetes (k3s) was
considered and not chosen as the default: on macOS it runs inside the same kind of VM, adds about 1
to 1.5 GB of memory, and loses Compose features apps rely on; it stays possible later as another
adapter. Socket proxies, Docker-in-Docker, gVisor, Kata and Docker Desktop’s Enhanced Container
Isolation were also considered; optional hardening for servers (Sysbox, rootless Docker) is later
work. Engines reached over ssh:// or tcp:// wait until an engine on another machine is in scope.
See research R1.
Decision update (2026-11-14): Each app is one Compose project with its own named volumes and its
own sealed network: internal, in Docker 28’s isolated gateway mode, so it has no route to the host
or out. Each app also gets its own egress proxy, Squid (ubuntu/squid, maintained by Canonical and
run unmodified), which is on the app network and an egress network. App services reach the internet
only through it: it allows the approved host names, denies private and link-local addresses and
everything else, and its log of denials becomes access requests. An app that ignores proxy settings
has no route out at all. Smokescreen was rejected because it publishes no image and identifies
clients by TLS certificate, and a custom proxy because it is security code to maintain. Squid uses
about 16 MB of memory per app. See research R3.
Decision update (2026-11-14): An app reaches only the internet hosts approved for it. Its
installation kit names starter hosts, the ones it needs to work at all; the install review lists
them, and confirming the install approves exactly those. An app without a kit starts with none. Any
other host an app tries is blocked and shown to the owner as an access request naming the app and
the host and when and how often it was tried; the owner approves or dismisses it, and can remove an
approval later. There is no “all internet” option yet. This supersedes declaring outbound access in
an x-your-space section for approval at installation. Sure has 103 provider integrations, so a
fixed list at install would either expose everything or break features; owners widen access as they
use more of an app. App updates still must not widen access silently; how a kit’s new starter hosts
are approved on update is settled in journey 006.
Decision update (2026-11-14): Settings are the variables an app’s file reads. The server stores
them in its database, encrypted with AES-256-GCM under a key derived from the auth secret, and hands
them only to the runtime manager over its local socket. This decides the mechanism the bullet above
left to the app specification. Published defaults for secrets are never used: an installation kit
says which values to generate, and without a kit a variable whose name suggests a secret and has a
published default is generated. Generated values never appear in output, logs or the review. What
the owner sees and sets for them in the review is still open and is designed with the review screen.
Decision update (2026-11-14): Each app service runs with a fixed default memory and CPU limit,
which an installation kit can override and the owner can change behind an advanced control; the
numbers are in the 002 plan. Your Space’s own containers are the last the kernel stops when memory
runs out. Resources belong to the whole space: whatever the engine’s machine provides, so a server,
a laptop, a local VM and a managed tier’s VM are the same to Your Space. Limits that scale with those
resources are left to explore.
Decision update (2026-11-14): Stopping Your Space on purpose stops the apps it manages, as one
unit. Restarting or updating it, or a crash, leaves them running, and when it returns it takes them
back over without restarting them and corrects recorded state, so updates don’t take apps down.
Clients never change app state. Containers on the engine that Your Space doesn’t manage are never
touched. Removing an app keeps its named volumes, its record and its settings as retained data, so
installing it again gets back the same data and database password; deleting retained data is a
separate, confirmed step.
Accepted Future App UI and Authorization Direction
UI Integration
Current scope (2026-11-21). Web panes serve the personal release. Native views and installable PWA support follow in 008. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Users open installed apps inside the Your Space interface while platform navigation remains available.
- Existing app frontends should continue calling their normal app backend operations.
- UI integration must not require replacing every frontend request with a Your Space-specific SDK call.
- UI and programmatic access must reach equivalent backend authorization checks.
- The platform session stays confined to the platform’s own host (host-only cookies), so it is never sent to app origins. The owner-access implementation follows this so it does not need rework once app origins are decided. (Since 2026-11-14 a
__Host-cookie over HTTPS; see below.) - Apps open in panes inside the Your Space interface. Several apps can be open side by side in one layout on larger screens; phones show one app at a time.
- Each app’s interface runs on its own origin, separate from Your Space and from other apps, so the browser isolates them from each other. A subdomain per app is the default; a port per app is the fallback where wildcard DNS is unavailable. Spec 002 settles the mechanism. (Port fallback superseded 2026-11-14: every app is at
<app>.<Your Space's address>; see below.) - In the web client and PWA, each pane is a cross-origin iframe. In the desktop app, each pane is a native view (for example, Electron’s
WebContentsView), not an iframe. - Any app can also open in its own browser tab or window, for apps that cannot run in a pane.
- The app UI and sign-in specification comes right after the owner-access feature and before the CLI specification; see the CLI delivery sequence. It is part of journey 002; see journey-based specifications.
- Only cross-origin panes run existing apps from any stack unchanged while keeping them isolated from Your Space and from each other. That keeps apps stack-agnostic.
- Serving apps under paths on the Your Space origin was rejected. App code would share the origin, so it could call the Your Space API as the user, read platform storage, and reach other panes. Many frameworks also assume they own the root path.
- Micro-frontends (apps shipping components that load into the Your Space page) were rejected. They run app code with the user’s Your Space session and require apps to be built as JavaScript components.
- Declarative UI (apps describe their interface and Your Space draws it) was rejected for full apps, because every app would have to rewrite its interface. Server-side composition of app HTML was rejected because it breaks most apps’ scripts and routing.
- The desktop app uses native views instead of iframes because it is the intended primary client and native views give each app its own process.
ts.net names. Small native pieces drawn by Your Space from app-provided descriptions (such as dashboard cards) were discussed as a possible later developer-kit contract and are not decided. (2026-11-14: spec 002 settles framing, sign-in inside a pane and Tailscale below; the optional messages are not part of it and remain open.)
Decision update (2026-11-14): Every app is at <app>.<Your Space's address> in every setup:
sure.space.localhost on this machine with no setup, sure.space.example.com on the owner’s own
domain after one wildcard DNS record (with certificates obtained on demand, only for installed
apps’ names), a Tailscale Service per app on Tailscale, and the forwarded wildcard name behind the
owner’s own proxy. Ports and paths are not used, because browsers don’t keep cookies apart by
either: an app on another port of Your Space’s host receives the platform session, as Umbrel,
CasaOS and Runtipi show, while a host name per app is what Codespaces, Gitpod, Coder, OrbStack and
JupyterHub use. This supersedes the port-per-app fallback for hosts without wildcard DNS. The owner
creates Tailscale Services for now; whether Your Space can create them is left for journey 003. See
research R2.
(2026-11-19: Tailscale names can’t hold <app>.<Your Space's address>; on Tailscale an app is
published on a port and gets a Tailscale Service of its own; see
running apps and reaching them.)
Decision update (2026-11-14): Only people signed in to Your Space reach an app’s origin. Caddy’s
app site (*.space.localhost, or *.<domain>) asks the server’s gate with forward_auth before
each request. The gate is a second server listener, on port 3001, that only Caddy reaches. Without a
pass, the gate sends the browser to Your Space, which checks the session and the owner and redirects
back with a one-time code valid for 60 seconds; the gate exchanges the code for a pass cookie on the
app’s own host (HttpOnly, SameSite=Lax, no Domain), valid for 12 hours, signed with the auth
secret and naming the app and the session. The gate checks that the session still exists, so
signing out of Your Space closes every app. Caddy removes the pass and Your Space’s cookies from
requests to the app, removes any Domain attribute from cookies the app sets, and replaces the
app’s framing headers so only Your Space can frame it, then proxies to the upstream the gate names
on the app’s network. It changes nothing else: an app’s own cookies and sign-in are left alone.
Rewriting apps’ cookies to SameSite=None; Partitioned was tested and rejected, because it splits
the pane’s session from the app’s own tab and weakens the app’s CSRF protection. Caddy’s built-ins
do the gating and rewriting, so the custom code is the gate’s checks.
Decision update (2026-11-14): Over HTTPS, Your Space’s session cookie is a __Host- cookie,
which no app on a subdomain can set or overwrite. On the plain-HTTP local setup it stays a host-only
cookie without the prefix, because WebKit refuses __Host- cookies over HTTP even on *.localhost
(Chromium and Firefox accept them). There an app’s script could set a cookie with the same name for
Your Space’s host; it holds no valid session to set, so the worst it can do is sign the owner out.
This refines the host-only cookie bullet above. Spec 002 first planned __Host- on every setup;
building the journey showed WebKit’s refusal.
Decision update (2026-11-14): On the plain-HTTP local setup, WebKit treats each *.localhost
name as its own site and blocks cookies in a pane from another site, so an app in a pane never keeps
its pass and the gate’s redirects loop. Your Space detects the loop and offers the app in its own
tab, behind the same gate. Chromium and Firefox run apps in panes on that setup, and with HTTPS on a
real domain, Your Space and its apps are one site in WebKit too. Safari on macOS uses a different
cookie stack and is still to check. See
research R3.
Running Apps and Reaching Them
Decision update (2026-11-19): Your Space runs apps; the owner’s network setup reaches them. Your Space installs, runs and manages apps (settings, logs, limits, sealed networks) and later the agent gateway. How people reach an app belongs to whatever network setup the owner uses:tailscale serve, a tunnel, a reverse proxy, or the managed platform’s edge. The built-in addressing above
(<app>.<Your Space's address>, the access gate, the handoff and panes) stays the default and is
unchanged: on this machine it works with no setup through *.localhost, and on the owner’s own
domain with one wildcard DNS record. Where it can’t work, as on Tailscale, the owner publishes the
app:
- Publishing is opt-in per app. Your Space publishes only the app’s interface, on a port of this
machine: by default the port the app’s own Compose file publishes for it, else the interface’s
own port, listening on
127.0.0.1unless the owner chooses another address. A port in use is refused when the owner saves: another published app’s with that app’s name, a container’s with the container’s name, and anything else’s as another program’s, found by a short-lived container that tries to publish the port as the app’s Caddy would. Something that takes the port after that makes the app’s start fail with the port named. The owner then chooses another port; Your Space never looks for or suggests one. - The app’s own services stay on its sealed network, where Docker publishes no port. A Caddy of
Your Space’s,
ys-publish, joins that network and one of its own, listens on the port, and proxies every request to the interface. It passes on the originalHost, WebSockets, uploads of any size and streamed responses, and passes the app’s responses back as the app sent them, its framing headers included: a published app is proxied, never re-framed. (2026-11-20: unless the owner shows it inside Your Space, the default; then only its framing headers change. See below.) The owner’s proxy’sX-Forwarded-*headers reach the app as that proxy sent them when it connects from this machine, a private network or Tailscale’s addresses (Caddy adds the connecting address toX-Forwarded-For, and the others only when the proxy sent none); from any other address, Caddy sets them itself. - The owner gives the link they reach the app at. The settings a kit derives from the app’s address
(
app_origin,app_host) use the link instead of<app>.<Your Space's address>, and follow a changed link when the app next starts. The owner can’t set those settings by hand, so nothing they set changes. Your Space opens a published app at its link, in its own tab. (Superseded 2026-11-20: Your Space shows it at its link in its pane, unless the owner turns that off; see below.) - A published port is outside Your Space’s access gate: whoever reaches it reaches the app, and only the app’s own sign-in protects it. That is why it listens on this machine only by default.
- On Tailscale, each published app needs its own Tailscale Service (
svc:planeforhttps://plane.<tailnet>.ts.net), because each app needs its own origin and Tailscale gives one-level names only. The owner creates them; Your Space has no Tailscale code. - An app already running elsewhere, such as a self-hosted instance on another machine, will be an app with a link that Your Space didn’t install: the same record, without running it. The agent gateway will treat both alike. This is later work.
- Each published app gets a Caddy of its own rather than a port on Your Space’s Caddy. Docker can’t add a port to a running container, so the shared Caddy would be recreated, interrupting Your Space and every app, each time an app’s publishing changed, and its ports would have to be written into Your Space’s own Compose setup.
- The app’s Caddy runs Your Space’s own web image, which the runtime manager takes from Your Space’s Caddy, so nothing new is downloaded. It is hardened: user 65534, a read-only root, no capabilities, no new privileges, and its own memory and CPU limits.
- It changes nothing in the app’s responses. Your Space’s own Caddy replaces an app’s framing headers only at the app’s built-in address, behind the access gate. Replacing an app’s protection against being framed on a port outside the gate is too much to do for every published app, so a published app still opens at its link, in its own tab. Letting the owner choose, per app, that Your Space frames a published app is possible later work. (Superseded 2026-11-20: the owner chooses it per app, on by default; see the next update.)
- It trusts forwarded headers only from loopback and private addresses (
127.0.0.0/8,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,fc00::/7) and from Tailscale’s (100.64.0.0/10, the shared address space). A proxy on this machine reaches the port through Docker’s bridge, so from a private address; one on the local network or the tailnet connects from its own. A visitor who reaches the port from anywhere else can’t choose the address and scheme the app sees. A proxy that connects from a public address isn’t trusted either: the app then sees the proxy’s address andhttp. - When Your Space is updated, and for an app the forwarder published, the server recreates the
app’s
ys-publishonce, and only that container. The port check, the start-time error and the owner’s choice of port stay as they were.
X-Frame-Options: DENY. Each published app therefore has a setting,
“Show inside Your Space”, on by default, for new and already published apps alike:
- On, for an app with a link whose kit lets it run in a pane, the app’s
ys-publishapplies the rule Your Space’s own Caddy applies at an app’s built-in address: it removesX-Frame-Options, and sets theframe-ancestorsof the app’sContent-Security-Policy, or of a policy of its own when the app sends none, to Your Space’s origin alone, as Your Space’s Caddy has it (YS_ORIGIN). Not'self', and not*: no other site, and not the app itself, can frame it. Everything else passes through unchanged: the rest of the app’s policy, its cookies, its other headers and its bodies. - Off,
ys-publishpasses the app’s responses on untouched, and the pane offers the app at its link, in its own tab, as before. So it does for an app without a link, which the pane shows at its built-in address, and for one whose kit says it can’t run in a pane. - The pane frames the link only when the setting is on, the app’s kit doesn’t say it can’t run in a
pane, and the browser can show the link inside Your Space’s page: a plain-HTTP link inside an HTTPS
Your Space opens in its own tab, apart from one on this machine. The server decides this once, for
both the pane and
ys-publish, soys-publishreplaces the framing rules exactly where the pane frames the app. - The pane frames the link only once
ys-publishactually lets Your Space frame the app, and at an address that names thatys-publish, so a refusal the browser cached before, as while the change was being applied, is never shown.ys-publishkeeps passing the app’s caching headers on unchanged. - Changing the setting applies the app again, which recreates only its
ys-publish, like any other change to how it is published. When Your Space moves to another address, the server renews everyys-publishthat lets the old origin frame its app, as it does after an update. Like the port and the link, the setting goes back to its default when publishing stops. - The app’s cookies are its own: in a pane at a link on another site than Your Space’s, a browser that blocks third-party cookies may not keep the owner signed in to the app there. The pane’s “Open in its own tab” always works, and turning the setting off makes that the default.
Identity and App-Owned Roles
Current scope (2026-11-21). 005 delivers verified identity and agent grants for one owner and an integrated app. Human member assignment and team single sign-on move to 004. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Your Space manages identities and app role assignments.
- Apps expose a supported role catalog with stable role identifiers and retain their existing role semantics and domain-specific authorization rules.
- In the first public release, the owner assigns app roles to human members. Workspace roles, such as an administrator, may be added later.
- Both humans and agents can hold multiple roles for an app installation.
- Role assignments are scoped to the specific app installation and workspace.
- Apps receive verified identity and role information through an integration with their authentication and authorization boundary.
- Human access resembles “Sign in with Your Space”; agents use non-interactive credentials from the same platform identity model.
- Agents have their own identities, remain distinguishable from humans, and retain their delegating-user relationship.
- App activity identifies the actual actor rather than making an agent appear to be its human owner.
Delegation by Exact Role Subsets
A user may assign an agent any subset of the roles currently assigned to that user for the same app installation and workspace. Your Space compares role identifiers, not inferred permission equivalence or an ordering of “higher” and “lower” roles. Multiple roles are supported for both the delegating user and the agent. For example, a user assignedviewer and contributor can delegate either role, both roles, or neither.
That user cannot delegate administrator unless that exact role is assigned to the user.
No role hierarchy is required or implied.
- Removing a role from a user also removes that role from agents receiving delegated access through that user.
- Removing access must affect existing app sessions and credentials, not only future sign-ins.
- Giving a user an additional role does not automatically grant that role to the user’s agents.
- Restoring a user’s removed role does not define a restoration policy for prior agent grants in this record.
- Restoration, regrant behavior, propagation guarantees, and credential refresh mechanics require a later specification.
Member and Agent Removal
Current scope (2026-11-21). Agent revocation is part of 005. Member removal and its effects on their agents are deferred to 004 under the personal dashboard decision.- Removing a member signs them out everywhere and revokes their app roles, including existing app sessions and credentials.
- Removing a member also revokes access for agents that act on their behalf.
- The member’s agents are disabled, not deleted. The owner can delete them later.
- Deleting an agent never makes past app activity untraceable. Your Space keeps a minimal record of the deleted agent, including its name and the member it acted for, and never reuses its identifier.
- A removed member’s data in apps stays with the app. Your Space keeps the member’s identity as a former member so history still shows who did what; apps decide what happens to their own records.
Responsibility and Trust Boundary
Your Space supplies verified identities, role assignments, delegation rules, and revocation state. The app enforces its role and domain rules for protected operations, regardless of whether a human UI or an agent initiated the request. The SDK connects those responsibilities without imposing a replacement permission system on every application. A gateway can support deployment and access control, but mandatory endpoint-to-permission manifests are not the selected integration model. Installing an app still trusts its implementation with data under that app’s control. Platform isolation must protect platform services and other apps; SDK checks alone do not constrain malicious app code.- Security and flexibility are the two cornerstones of the app foundation.
- The first public release states plainly, in the documentation and when an owner installs an app, that installing an app trusts it with its own data. Your Space protects itself and other apps from an installed app, but is not a sandbox for hostile code.
- Before publication, a security hardening pass reviews the boundaries between apps and the workspace, enforces them, and protects users as far as Your Space reasonably can.
Agent Access Through Your Space
- Agents never call apps directly. Your Space is the API gateway between agents and apps, so every agent request passes its permission checks.
- App containers are reachable only through Your Space and do not publish their own network ports. External apps keep the same guarantee by accepting only requests that carry identity verified by Your Space. (2026-11-19: an app the owner publishes on a port is also reachable through the owner’s own network setup; see running apps and reaching them. How agents reach a published app is settled with the gateway in journey 005.)
- People create, view, revoke, and rotate their agents’ credentials in the app. Revoking one leaked credential does not change the agent’s roles.
- For each agent request, Your Space verifies the agent’s credential, confirms the agent holds an active delegation for that app installation, applies revocation immediately, and forwards the request with the verified identity and delegated roles. The app still enforces its own role and domain rules.
- In the first public release, agents use apps through the Your Space CLI with their own credentials. The CLI talks to the gateway, wherever the server runs.
- A workspace MCP endpoint is post-open-source work. It uses the same gateway and permission checks, so off-the-shelf agents can connect with a URL and sign-in.
Activity Log
Current scope (2026-11-21). The owner can review agent requests and attribution in 005. Team and lifecycle events follow with the corresponding journeys. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision.- Your Space records workspace activity: app installs, removals, and updates; role changes and delegations; member changes; and every agent request through the gateway, with the actual actor.
- The owner can review the log. It stays available but out of the way, following the simple-by-default principle.
Later Candidate Journeys
After the owner-access feature and an agreed app contract, a small Tasks app is the first app and the end-to-end integration slice. That journey would install the independent app, create and view a task, retain it after restart, and expose permitted operations to an agent. Verification would cover identity attribution, denied operations, and revocation across UI and programmatic access. It follows the app UI and sign-in specification, the CLI, and an agreed app contract, and is not an app implementation included in the current feature. Decision update (2026-10-31): The small Tasks app is selected as the first app, replacing its candidate status. It is small, needs a database, and exercises roles (viewing and editing tasks) and agent access (an agent creating tasks), covering each part of the first-release app journey. Its needs set the initial approved list of Compose settings. (Superseded 2026-11-14 by Sure; see below.) Decision update (2026-11-14): The first app is Sure, an existing open-source personal finance app, installed unchanged from its owncompose.example.yml.
This supersedes the Tasks app written for Your Space as the first app. Real apps’ Compose files are
written for people, not for Your Space, and running one unchanged is the point of journey 002. Sure
has web, worker, database and Redis services and plain-text secret defaults, so it exercises start
order, volumes and generated secrets. The second app is Twenty,
a CRM, whose Compose file uses the same service names as Sure’s, so the two show apps kept apart.
The Tasks app moves out of journey 002 with app roles and the TypeScript SDK; whether a later
journey still builds it, for example to show roles and agent access in journey 005, is open.
External agents come before platform-hosted agent execution.
Later hosted agents could run workflows such as daily triage through the same identity and authorization contracts.
Identity and permissions remain independent of any model provider or execution runtime.
No hosted workflow engine or model-provider integration is selected here.
First Public-Release Direction
Current scope (2026-11-21). The release includes the browser dashboard, the two macOS desktop entry paths, an independent app installed from a kit and a real external agent completing authorized work. The older audience and scope below are historical. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision. Decision update (2026-10-29): Plan the roadmap in pre-public and post-public sections. The pre-public section covers the core experience and a working first version; post-public covers capabilities that are not crucial to that release. The owner prefers an installable, usable product before making the repository public rather than publishing only plans. The intended pre-public experience includes owner setup; additional members signing up through invitation links created and shared by the owner; the installation CLI for servers and local workspaces; a desktop app that can also run a local workspace; web, desktop, and PWA workspace clients; at least one installed independent app; a way for developers to create, integrate, and install more apps; and access for external agents through the Your Space gateway and CLI. It also includes built-in backup, restore, and moving a workspace between installations (since 2026-11-14 a backup and restore the person does themselves); owner-triggered Your Space and app updates that roll back automatically if they fail; app roles; member removal; an activity log; built-in HTTPS; uninstall; and signed desktop releases. Only the owner installs or removes apps in the first public release. The first release targets users who can install Docker Desktop and the Your Space desktop app for a local workspace, or install Docker and follow a guided CLI for a server or a local workspace. (Since 2026-11-14 the local group needs no Docker Desktop; see installation and hosting.) This is a developing release roadmap, not a complete acceptance specification or a claim of implementation. Additional requirements may emerge during specification. These future capabilities do not expand the owner-only first feature. The agreed sequence is manual Compose and owner access (spec 001) first, then the app UI and sign-in specification, then the CLI specification and implementation; the remaining pre-public items have no set order beyond their priorities.Journey-Based Specifications
Current scope (2026-11-21). 001–003 supply the foundation. Both 005 agent access and 008 macOS desktop entry must pass before release. Journeys 004, 006, 007 and the rest of 008 follow publication. Earlier release dates and requirements below are superseded where they differ from the personal dashboard decision. Decision update (2026-11-02): Pre-public work is specified as eight user journeys rather than one specification per roadmap capability. Each journey follows a person from where they start to a result they can see, so one specification covers many roadmap items and is tested the way people will use it. The spec map lists the journeys, what each covers, and the build order.- The build order is 001 set up my space (spec), 002 install an app and use it, 003 install and run with the CLI, 004 invite my team, 005 let my agent work for me, 006 keep my space safe over time, then 007 build my own app and 008 use Your Space as an app on my computer in parallel.
- The app UI and sign-in specification becomes part of 002, which ends with the Tasks app working inside Your Space. It still comes before the CLI, so app origins are settled before the CLI sets up HTTPS. If 002 proves too large, it can split into opening an app inside Your Space and installing an app from a URL. (2026-11-14: 002 ends with Sure working inside Your Space, and is delivered in slices instead of split; see below.)
- The app contract defines app roles in 002, although only the owner exists then, so 004 adds role assignment without changing the contract. (Superseded 2026-11-14: app roles come with level 2 integration in a later journey; see identity and app-owned roles.)
- The activity log arrives with agents in 005, since reviewing what agents did is its main purpose. App installs and member changes are logged from then on.
- The app database moves from Medium to High, because the Tasks app in 002 needs one. (2026-11-14: Sure, which replaces Tasks, needs one too, so it stays High.)
- Maintainers review security, privacy and legal requirements across the finished journeys using the packaged release guide.
- Every specification follows shared rules from the start: simple by default, no telemetry, ARM and Intel images, all durable state in the database or named volumes, the actual actor credited from the first schema, and its own docs and security tests. (2026-11-14: ARM and Intel applies to Your Space’s own images; apps need only the engine’s processor type.)
main. The first carries the specification and its supporting documents (plan, research, contracts, and the task list) with no task checked. Each later one adds one layer that passes its own checks, checks only the tasks it verifies, and checks roadmap items only for what it delivers. A spec on main describes agreed design; only checked tasks, checked roadmap items, and the verification record claim delivered work, so a spec never claims work that doesn’t exist yet. This supersedes the earlier wording that the CLI or streamlined local setup gets its own implementation PR; each is specified in its journey (2026-11-02) and delivered the same way.
Decision update (2026-11-10): In a stack, code lands with its first use: each file, top-level function or component, script, and configuration entry arrives in the first pull request where something runs it (code that runs, a test, CI, or the deployment) or where a developer first needs it to run, develop, or test the app. Code inside a function is not split across pull requests, so error paths and event handlers land with their function. Anything that would land earlier moves up. Code that lands before it runs can’t be checked by its own pull request, and reviewers end up judging it without seeing it work. Added to the constitution’s Development Workflow (version 1.3.0).
Decision update (2026-11-10): Claude reviews each pull request through the Claude Code GitHub Action when it is opened or marked ready, and again when someone with write access comments @claude review, such as after a fix round. It reports bugs, security and data-integrity problems, and breaks of the project’s rules, checked against the constitution, this record, and the journey’s spec and plan, and skips style; its guide is .github/code-review.md. Its findings are review comments, resolved before the pull request merges, and it changes no code. While the repository is private it runs on the owner’s Claude subscription, so reviews add no cost and draw on that subscription’s usage limits. The alternatives cost more for how often this project pushes: Greptile charges a credit per review beyond a small free allowance, Copilot code review spends credits on each review, and CodeRabbit adds a monthly seat price with hourly limits. Claude also writes much of this code, so its review is a weaker second opinion than an independent reviewer’s, and GitHub doesn’t give the subscription token to workflows for pull requests from forks. Before the repository is public, review therefore moves to the free open-source plan of Greptile or CodeRabbit, which reviews contributors’ pull requests too.
Decision update (2026-11-18): Claude’s review runs when a pull request is opened, drafts included, and no longer again when a draft is marked ready. A draft runs only the GitHub Actions checks; CircleCI’s browser tests, Arm checks and Argos screenshots start when it is marked ready, through CircleCI’s “PR marked ready for review” trigger. Reviewing the draft lets its findings be fixed before those runs, which cost CircleCI credits and Argos’s screenshot allowance. A pull request stays a draft until its reviewer is ready for it, and @claude review asks for another review after a fix round.
Decision update (2026-11-10): Pull request descriptions follow one template (.github/pull_request_template.md) that shows a reviewer only what they need first: a summary, where to look, and the decisions they must make; the results of CI, code review and visual evidence stay in the pull request’s checks rather than being copied into the text. Everything else, such as the stack, spec links, file-by-file contents, task ticks, check commands and review fixes, sits in collapsed sections. Journey 001’s stack descriptions grew past 20,000 characters each, so the few decisions a reviewer had to make were buried in detail; the detail stays available but collapsed. The template and AGENTS.md guide this; no check enforces it.
Decision update (2026-11-10): CircleCI runs the checks on Linux on Arm (aarch64), the second architecture Your Space ships images for, while GitHub Actions covers x86_64: the server’s checks from the first code layer, and the whole Compose stack with the browser journeys in Chromium once the stack exists. Its macOS and Windows machines are left for the desktop app, since they can’t run the Docker stack. CircleCI’s free plan covers this while the repository is private (30,000 credits a month); it builds pull requests from forks without the project’s secrets, and the jobs need none.
Decision update (2026-11-10): CI produces the visual evidence for every pull request, so neither contributors nor maintainers take screenshots or keep evidence branches. The browser tests screenshot each user-story step, and CI uploads the screenshots to Argos, a hosted visual-testing service whose code is open source (MIT). Argos compares them with the screenshots from main and posts a check and a comment on the pull request, where a person approves or rejects each visual change. Uploads authenticate with GitHub’s OIDC token, and pull requests from forks, which get no token or secrets, fall back to Argos’s tokenless check of the running workflow, so contributors’ pull requests get the same evidence and no secret is exposed. Each run also keeps the Playwright report with a video of every journey as a CI artifact for 7 days. Argos takes uploads from GitHub Actions only, so every screenshot it compares comes from the same x86_64 runners; the Arm journeys on CircleCI check behaviour, not looks. Screenshots hold only test data. Workflows never use pull_request_target, and the Argos check is not required to merge at first, so an Argos outage blocks nothing. Argos’s hosted service is used rather than self-hosting it, which needs AWS, PostgreSQL, RabbitMQ, Redis, S3, and DynamoDB; self-hosting stays the fallback because the code is open. Alternatives considered: Playwright’s own screenshot comparison with baselines committed to the repository (no service, but images in history and no review step); Percy and Happo (no fork-safe upload without a secret); and Chromatic (its free open-source plan covers only UI libraries and design systems).
Decision update (2026-11-10): While the repository is private, CI spends its limited GitHub Actions minutes once per stack of pull requests instead of once per pull request. Only the pull request based on main runs the browser tests and the Compose setups checks; the ones above it run the typecheck, server tests and build, and get the browser tests when they reach main. Pushes to main run only the check job, since the pull request they merge has just run the rest on the same code. Every job has a time limit, so a stuck run can’t use up minutes, and the browser tests’ reports are kept 7 days, which covers a review and stays within the plan’s artifact storage. A newer push to a pull request cancels its running CI, and pull requests that change only docs or specs skip CI, except the installation guide, which a browser test checks. Restacking a journey’s stack reran the full suite on every pull request in it and used a month’s minutes in a day; the browser tests are most of each run. Contributors run the checks locally before pushing. Once the repository is public, Actions minutes are free and every pull request runs the browser tests again.
Decision update (2026-11-10): The image workflow builds and publishes the server and web images on a release, or when started by hand, not on every push to main. Building the ARM image through emulation is slow, and every merge would rebuild both images while Actions minutes are limited. So there are no edge images from main between releases; nothing uses them, since the installation guide downloads releases.
Decision update (2026-11-11): Pushes to main run the browser tests again, superseding the part of the 2026-11-10 decision that ran only the check job there. Argos compares a pull request’s screenshots with the closest approved build in main’s history, and builds on main are approved automatically. Pull requests are squash-merged, so a pull request’s own build is not in that history, and with no build on main every pull request showed all its screenshots as new instead of only the ones it changed. Pushes to main still skip the Compose setups checks, which the merged pull request has just run on the same code.
Decision update (2026-11-11): The browser tests run on CircleCI instead of GitHub Actions, superseding where they ran in the decisions above. CircleCI’s plan allows far more build time than the private repository’s Actions minutes, and the browser tests were most of each GitHub run; as journeys add tests, they would have used up the minutes after a few more journeys. The stack rule stays: the job runs on pushes to main and on the pull request based on main, and stops after its first step on the ones above it, so a restack runs the browser tests once. GitHub’s webhook names main as the base of every pull request in a stack, so the job reads the pull request’s own base from GitHub’s API with a read-only token kept in CircleCI’s settings (GITHUB_PR_READ_TOKEN), and CircleCI’s “auto-cancel redundant workflows” stops a run when a newer push replaces it. The job runs on CircleCI’s x86_64 Linux machine, the only job that uploads to Argos (YS_ARGOS_UPLOAD), authenticated with a project ARGOS_TOKEN kept in CircleCI’s settings, so Argos still compares one environment’s renderings. CircleCI keeps the Playwright report and videos as job artifacts. The browser install step stops after 10 minutes, after an unreachable package mirror held it for 25 minutes on GitHub. GitHub Actions keeps the typecheck, server tests and build on every pull request, and the Compose setups checks on the pull request based on main. CircleCI doesn’t pass secrets to pull requests from forks. At the time of this decision, visual comparison for forks remained open.
Public source preview (2026-11-21). GitHub Actions reports one required contribution check for
all pull requests, including documentation. Code changes run the workspace checks and Compose
checks. In a public repository they also exercise owner setup, kit grants and approvals in
Chromium on a GitHub-hosted runner. This gives forks a browser check without CircleCI or Argos
credentials. CircleCI retains the broader browser matrix for first-party development. Hosted
checks report test results in job logs. CircleCI omits automatic HTML reports, raw test-result
artifacts and videos. Its configured Argos project receives the selected synthetic screenshots.
Decision update (2026-11-19): CircleCI’s browser tests take less time on pull requests, superseding the stack rule of the decision above for them. A pull request runs the journeys, and installs the browser, in Chromium only, whose screenshots Argos compares; pushes to main run them in Chromium, Firefox and WebKit, so a bug only Firefox or WebKit shows can surface after the merge, which is accepted for quicker pull request runs. Every pull request in a stack runs the browser tests once it is ready for review, not only the one based on main, so its results come before the ones below it merge; drafts still skip them. A pull request whose commit has the same git tree as an earlier passing run of the job in the same browsers doesn’t run them again: a passing run leaves a marker in CircleCI’s cache, keyed by the tree, and a later run that finds it stops successfully after checkout. So a pull request rebased onto main after the one below it merged unchanged, or given a new sign-off, doesn’t rerun them, while a change to any file does; main always runs them in full. A skipped run uploads nothing to Argos, so its commit gets no Argos check rather than a failed one: the Argos check isn’t required to merge, and the earlier run’s build has the same screenshots, though compared with main as it was then, so after the pull request below merges, the skipped one has no build compared with the new main. Argos’s skip command, which marks a commit’s check as passed, isn’t used, since it would show a pass while that earlier build may still wait for a decision. CircleCI’s free plan stays: the job keeps its machine size and runs without parallelism. GitHub Actions keeps the Compose setups checks on the pull request based on main.
Decision update (2026-11-14): Journeys are delivered in slices: one specification for the
journey, then one pull request per slice in a stack, each ending with something the owner can see
working, tested end to end in the browser, and later slices build on it without reworking it. The
spec orders its slices by what each needs. This refines the 2026-11-08 stack rule, whose later pull
requests each added a layer that passed its own checks, so that a reviewer sees each piece
working. Journey 002’s ten slices are listed in its
spec.
Decision update (2026-11-14): At the owner’s request on 2026-11-14, a journey is built end to end
on one branch first, then split into its stack of pull requests in slice order. This refines the
slices decision above for how the stack is produced; each pull request in the stack still follows
the slice and code-lands-with-first-use rules. The request gave no further rationale; journey 002
is the first built this way.
Decision update (2026-11-14): Journey 002 ends with Sure working inside Your Space: installed
from its own Compose file, opened in a pane on its own origin behind the access gate, with Twenty
beside it. It covers running apps’ containers, installing from a GitHub link with installation
kits, settings and secrets, outbound access requests, isolation, limits, status and logs, removal
with retained data, and an Engine page showing the engine connection and its resources. App roles,
verified identity for apps and the TypeScript SDK move to the journeys that bring levels 1 and 2
(004, 005 and 007). This supersedes the bullets above that 002 ends with the Tasks app and defines
app roles. The spec map and roadmap follow it.
Choices Still Open
These open choices do not erase the accepted requirements above.
Resolve implementation-critical choices in the relevant technical plan and future app-contract decisions in their own specifications.