oficina / base Public

Clone
git clone https://amadan.net/oficina/base

Plain git — no account needed to clone.

Download

Download this file

Base: first slice

Status: draft for Paul's review, 2026-11-06. Mockup: https://base-first-slice.docs-t1.dev.platform.tito.io (source: .superpowers/mockups/index.html).

1. What Base is, and why

Base is the front door to a small business's CARLOS apps. A team signs in once, sees all its apps on one Home screen, adds more from a Store, and in later slices asks a built-in assistant (Equipo, with Memoria for search) to find, set up and run things for them.

The people it serves are a small business or team, not developers. They're about to stop doing a pile of busywork by hand: invoices, inbox triage, month-end, chasing people. Base is where that handover happens. Oficina (office suite), Keymail (email), Sporran (accounting) and the rest each have their own domain today and can each be self-hosted. Base gathers them into one place running on one CARLOS Platform account.

CARLOS Platform can itself be self-hosted, so Base must work the same on the flagship (carloku.com) and on a business's own Platform.

2. What this slice proves

That Base can be the one place a team signs in, invites people, and installs and uninstalls real apps onto the Platform account Base itself runs on, with those apps knowing who the person is.

In order, someone can:

  1. Sign in to Base.
  2. Invite a teammate, who then signs in. Signing in to Base gives a person an identity in every app installed in that Base.
  3. Open a default app from Home. This is not one of the existing apps (Oficina, Keymail, Sporran), because the slice has to exercise installing.
  4. Use a basic Store to install and uninstall apps.
  5. Install one throwaway app from the Store, open it, see that it knows who they are, then uninstall it.

After that comes "joining the dots" between the existing apps. That's out of scope here.

3. Goals, non-goals, anti-goals

Goals

  • Installing creates a real running instance on Platform, in Base's own account, not a bookmark or an iframe.
  • Identity flows from Base into installed apps without each app running its own sign-in.
  • The look in the approved mockup (section 6) holds in the real build.

Non-goals for this slice

  • Equipo chat and Memoria search. The "Ask Base anything" field is drawn but does nothing.
  • Installing Oficina, Keymail or Sporran. Those apps run one instance per team today and have their own sign-in. Bringing them in is a later slice.
  • Payments, a public catalogue, third-party publishers, app reviews or ratings.
  • Permissions inside apps beyond "this person is a member of this Base". Each app decides what a person can do (CARLOS app spec 1.7).

Anti-goals: failure even if it technically works

  • A cartoony or gimmicky look. Paul rejected two directions for that reason (section 6).
  • Faking an operating system: draggable windows, title bars, window controls (CARLOS app spec 18.2). Home is a page of app tiles; opening an app is a normal navigation.
  • Working around Platform. If Platform lacks something Base needs, Base asks Platform for it (section 9). carloku.com is for general use, so Base never patches over what it provides.
  • Onboarding that feels like admin chores. The person is arriving to get rid of busywork; the first minutes must not add more.

4. Constraints

  • Base is a CARLOS app and follows the CARLOS app spec (carlos/spec/spec.md). Relevant rules: - 1.5: a credential that can create or delete instances must not be given to tenant instances. - 1.7: a central app holds identity, never tenant content. - 10.2: cross-app identity must be signed, addressed to one app, single-use and short-lived. - 12.5: pages work with scripts off. - 16.1: destroying data and retiring an instance are different, and the interface must say which is happening. - 18.2: a web app must not pretend to be a native app.
  • Family conventions (from the Oficina and Sporran repos): Go, a single CGO_ENABLED=0 binary, SQLite, the rastrillo framework. Base follows them unless the builder finds a reason not to.
  • What Platform provides today (checked in carlos/platform/internal/console/authcli.go): - A service credential (carlos services create --role ...) can create apps (publish), ship and promote releases (publish), create and delete instances (instance), set config (operate), and move an app to the Trash and restore it (publish). - GET /api/cli/apps lists the apps in the account. - Two steps are person-only: enabling instances for an app (PUT .../instances-manifest) and minting credentials. The docs say this split is deliberate: declaring the policy is a signed-in person's act; spending it is an ordinary credential's. - Deleting an instance leaves its database parked; nothing is torn down automatically.
  • Platform gives apps no identity. There's no SSO between apps and no user header from the edge. Base must supply identity itself.
  • Timeless font licence: it may be embedded in the app, but the font files must never be committed to a public repository. Use a fetch step with a pinned checksum, as ppl does (~/amadan.net/ppl/ppl/docs/superpowers/specs/2026-10-17-ppl-design.md §7.2).

5. How it works (decided so far)

5.1 Base and its account

Base runs as a CARLOS app in one Platform account. That account is the business's own ("Acme"). Apps installed from the Store become apps in that same account.

My call: setup starts after an operator has deployed Base, the same way Equipo is deployed today. The operator does four things:

  • Deploys Base into the account.
  • Stores Base's Platform service credential with carlos secrets set.
  • Enables email with carlos email enable.
  • Names the owner's address in a BASE_OWNER setting.

Base seeds that person as owner on first boot, only while it has no members, as EQUIPO_OWNERS does. A guided setup that does all this for the business is a later slice.

5.2 Built in versus installed

Home, Store, People and Settings are parts of Base itself. Everything else on Home is an installed app, including the default Welcome app. My call: Welcome is installed on first boot through the same install path the Store uses, so the first thing anyone sees already proves installing works.

5.3 Signing in

Sign-in offers a passkey, Sign in with Keymail, or an email link. These are the options the mockup shows and the family already uses: Keymail is an OAuth 2.1 provider, and Sporran and the Platform console use it. Who may sign in is set out in 5.1 and 5.4.

5.4 People and invites

The owner invites by email. An invited person shows as "Invited, hasn't signed in yet" until their first sign-in. Nobody can sign in without being the seeded owner or an invited member. My call: every member is equal in this slice except the owner, who alone can install and uninstall.

5.5 Identity in installed apps

Base issues its own assertions using the pattern and the same format designed for Oficina's home (oficina/home/docs/superpowers/specs/2026-08-30-home-design.md §5.3). That way Base and home can merge later without installed apps changing. Nothing in Base waits on home (decided by Paul).

  • When a member opens an app, Base hands it a short-lived, single-use, signed assertion (rastrillo/assertion, ECDSA P-256: home's implemented format) addressed to that app. It says who the person is and which Base they belong to.
  • The app verifies it against Base's public key, which it receives at install time, and starts its own session.
  • The assertion carries identity only. The app decides what the person can do.
  • If Base is down, people already signed in to an app stay signed in.

5.6 Installing and uninstalling

  • Install, as seen by the person: they press Install, see progress, then the app's tile arrives on Home for everyone in that Base.
  • Approved once per app (decided by Paul): enabling instances for an app is person-only on Platform, by design. So each catalogue app is prepared once, when Base is set up: 1. The operator creates the app in the account. 2. The operator ships and promotes its release. 3. The operator runs carlos instances enable for it.

This covers Welcome and Scratchpad. The operator steps are scripted, so setting up Base runs one command. Until Platform offers a self-serve path, adding a new catalogue app means repeating these steps (section 9).

  • Install, underneath: 1. Base sets the app's config: Base's public key, Base's address and the instance's address. 2. Base creates the app's instance using its instance-role credential. 3. Base waits until the instance answers before showing the tile.
  • Uninstall, as seen by the person: Uninstall asks for confirmation first, and the confirmation says plainly what happens to the app's data (spec 16.1).
  • Uninstall, underneath: Base deletes the instance. The app stays prepared in the account, so it can be installed again.
  • My call: the copy says the app is removed and its data is kept. It never says the data is deleted, because Platform parks it. A real "delete the data" action waits for a later slice.
  • My call: installing an uninstalled app again brings it back with its old data, by recreating its instance on the same host. The builder must check that recreating the instance picks up the parked database. If Platform can't do that, it goes on the requests list in section 9, not into a workaround.

5.7 The Store and its catalogue

The slice's catalogue is one app, Scratchpad, listed in a catalogue that ships with Base. Left to the builder: the catalogue's format and where release artifacts come from, as long as nothing in it is specific to Scratchpad.

5.8 Scratchpad, the throwaway app

Scratchpad is a tiny CARLOS app. It accepts Base's assertion, shows "Signed in as <name>, <Base name>", and keeps a shared notepad so there's some data to retire on uninstall. It exists only to prove install, identity and uninstall from start to finish.

5.9 Home on first visit

Home greets the person by name and shows a three-step getting-started list: Signed in, Invite your team, Install your first app. Below the list sits a row of app tiles. The steps tick off as they happen.

6. Look and feel (approved by Paul, 2026-11-06)

The mockup is the reference. Paul explicitly approved it ("this is the right direction"). The key points:

  • Atmosphere: a deep indigo background with coloured fog drifting across it: teal #2FC6C0, violet #8B5CF6, rose #F472B6 and pale mist. A warm amber beam of light from above sways and slowly brightens and dims.
  • Motion: it must be visible, not glacial. Fog loops take 10 to 17 seconds and travel widely. Everything stops when the person's device asks for reduced motion.
  • Glass: every panel is frosted glass with backdrop blur and a thin bright top edge. - Panels that carry text get a dark tint (about rgba(14,17,42,.40)), so text keeps its contrast whatever colour the fog is behind it. - Secondary text is #DDE3F0 or brighter. - Text contrast must pass WCAG AA at every point in the animation.
  • Tiles: each app tile is glass tinted with that app's colour.
  • Accent: teal #6EE7DC, used only for finished steps and install progress.
  • Buttons: primary buttons are solid frost white with dark text. Buttons and fields share one control height (44px).
  • Type: Timeless Sans only. The Sans cut (STYL 100) is for everything, and the Grotesk cut (STYL 0) only for headings and the wordmark. The font is preloaded with font-display: block so text never paints first in a fallback face. Add a metric-matched fallback as ppl does.
  • Rejected directions: a pastel sunrise with glass pebbles ("cartoony"), and heavy wide type on flat cobalt ("not professional").
  • Scripts off: with scripts off, the pages still work as plain forms and links; only the motion goes. The fog and light are CSS only.

7. Left to the builder

  • The catalogue format and where Scratchpad's release comes from (5.7).
  • Base's internal data model, routes and how it stores its Platform credential.
  • How Welcome looks beyond being a simple first app.
  • How install progress is reported while waiting for the instance to answer.
  • Hostnames for installed apps within the account's platform domain.

8. Decisions taken with Paul

  • Installing: each catalogue app is approved once, at setup (5.6). Self-serve comes from a Platform request (section 9).
  • Oficina home: same pattern and format, Base's own code (5.5).
  • Look: the approved mockup (section 6).

9. What Base asks of other projects

Requests, not workarounds:

  • Platform: a self-serve way to add catalogue apps. Today a person must enable instances for each new app. Platform's docs make that step person-only on purpose, so this is a design conversation with Platform, not a quick change. It doesn't block this slice.
  • Platform, only if needed: recreating a deleted instance on the same host should pick its parked database back up (5.6).