{"success":true,"name":"s3a-projects","description":"The life of a member's project under S3A — folder layout, the dev → production rule, ports, publishing at <name>.offer.brimind.pro, and the 50 GB / 500 MB limits. Use when creating, building, running or debugging a member's project, and before telling an agent how to make a project runnable.","category":"unitary","path":"unitary/s3a-projects/SKILL.md","file":"SKILL.md","content":"---\nname: s3a-projects\ndescription: The life of a member's project under S3A — folder layout, the dev → production rule, ports, publishing at <name>.offer.brimind.pro, and the 50 GB / 500 MB limits. Use when creating, building, running or debugging a member's project, and before telling an agent how to make a project runnable.\n---\n> Imported from [PRIVATE_HOST] `~/unitary/agents/s3a/skills/s3a-projects`. Paths are relative to `[PRIVATE_HOST]:[PATH]`; run commands there via `ssh [PRIVATE_HOST] 'cd ~/unitary && ...'`. Owner send rules from skill i7-remote-ops still apply.\n\n\n# A member's project\n\n## Layout\n\n```\n<his folder>/                 ~/BRIMIND/workspaces/<his email>/ — his, across chats and days\n  memory/persona.json         his S3A chat assistant's identity: {agentName, gender, callMe}\n  memory/business.md, profile.md, conversations.jsonl\n  shop-ali/                   one project = one folder = one public name\n    .brimind/project.json     slug, url, task, lastActiveAt (written by the machine)\n    .brimind/dev.log          output of `npm run dev`\n    .brimind/prod.log         output of `npm run start`\n    .brimind/build.log        output of `npm run build`\n    package.json ...\n  inbox/                      files he sent in the group\n  content/ads/, content/*/     prior generated art/posts for him (real logos, real copy)\n```\n\nWhen a task references \"his own\"/\"real\" logos, branding, or prior art for a specific member\n(e.g. redo an image but with the logos he actually shared), find his workspace\n(`find ~/BRIMIND/workspaces -maxdepth 2 -iname '<slug-or-email-fragment>*'`), then read\n`inbox/` and `content/ads/` before generating anything — a storefront photo or a prior poster\nin there is the ground truth for what partners/brands to show, not a generic/plausible guess.\n\n## Sharing a project with another member (share-by-link)\n\n- A project can be handed to another member by link (`s3a/lib/projects.mjs#shareLink`/`#joinByToken`): the\n  recipient's folder gains `<his home>/<slug>` as a **symlink** into the owner's real project dir, not a\n  copy. `canUse(email, slug)` is the authorization check (owner, or listed in that project's `sharedWith`).\n- Filesystem access is a SEPARATE gate from that authorization check, and it can disagree with it:\n  `agent-service/lib/workspace.js` denies every other member's whole home folder for isolation, and a\n  naive version of that rule re-blocks the very symlinked project a member was just granted, surfacing as\n  \"your folder is linked to a location outside your own space\" / \"I can't open your project folder\" from\n  the member's own agent (Dali, etc.). If a member reports that on a project he was told is shared with\n  him, this is the first thing to check — see `i7-remote-ops` (`references/unitary-code-changes.md`) for\n  the fix pattern (carve the deny list down to the specific shared path, never remove the sibling-isolation\n  rule itself).\n\n## Member identity (the assistant's name/persona)\n\n- Members are keyed by **email**, not phone (`homeFor(email)` in `s3a/lib/projects.mjs` →\n  `agent-service/lib/workspace.js`, root `~/BRIMIND/workspaces/`). `clients/users/<phone>` is\n  an unrelated tree (leads/WhatsApp), not where S3A member projects or personas live — don't\n  look there for a member's workspace.\n- To find a member's workspace from a visible project slug only (a URL segment, a browser tab\n  title, a dashboard chip — e.g. `dentiste-brinis`), go straight to\n  `find ~/BRIMIND/workspaces -maxdepth 2 -iname '<slug>*'` instead of grepping the whole\n  `~/unitary` tree for the slug text: that tree times out on node_modules/videos/worktrees and\n  the slug usually isn't literal text anywhere in the codebase (it only lives as a folder name\n  under workspaces).\n- The chat UI's assistant display name/voice ( \"Nova\", or whatever a member chose) is **not** a\n  code default — grepping `~/unitary/s3a` for it only turns up test fixtures. It is the\n  member's own `memory/persona.json` (`{agentName, gender, callMe}`), read fresh via\n  `readFileSync` in `personaFromFolder()` (`s3a/lib/director.mjs`) — edit that file directly to\n  rename or regender the assistant, no restart needed.\n\n\n## Making it runnable — tell every builder this\n\n- `package.json` has `dev`, `build` and `start` scripts.\n- The server listens on `process.env.PORT` and host `127.0.0.1`. Never a fixed\n  port. Next.js: `next dev -p $PORT`, `next start -p $PORT`. Vite: `vite --port $PORT --host 127.0.0.1`.\n- Static site with no server: no `package.json` at all. An `index.html` in the\n  project folder (or in `public/`, `dist/`, `out/`, `build/`) is served as it\n  is, in `static` mode (`s3a/bin/static.mjs`): no install, no build, a few MB of\n  RAM, edits live on reload. `[[RUN <slug> dev]]` or `prod` both do it. This is\n  the default for games, single pages and small tools.\n- Anything he can look at goes live here, at `<slug>.offer.brimind.pro` — never\n  pasted as code for him to save, never sent to Netlify, Vercel or any outside host.\n- No secrets in the repo; a `.env` stays in the project folder and never in an answer.\n\n## The machine's rule\n\n- While he talks about the project → `npm run dev` (hot reload, he sees changes).\n- 30 minutes without a word about it → `npm run build`, then `npm run start`.\n  A failed build puts it back in dev and S3A tells him why (`.brimind/build.log`).\n- He mentions it again → back to dev.\n- A static project runs in `static` mode and stays that way: nothing to build.\n- Published at `https://<name>.offer.brimind.pro` while it runs.\n\n## The default: online\n\nWhen he asks for something that opens in a browser and does not ask for the\ncode, a file, or to run it on his own computer, it goes online and he gets\nthe link — never the whole page pasted in the chat (owner, 2026-10-07). The\nmachine holds back an answer that pastes a page and asks for this instead.\n\n## Limits\n\n- **RAM: 500 MB for all his running projects together.** Past it, his least\n  recently used project is stopped. Keep projects lean: no headless browsers\n  kept alive, no in-memory databases that grow.\n- **Disk: 50 GB for his whole folder.** When it is full, `node_modules` and\n  build folders of stopped projects are deleted first (they come back with\n  `npm install`); sources are never deleted by the machine. If still full,\n  no new installs until he chooses what to remove.\n\n## The owner's ChatGPT skills (owner, 2026-10-07)\n\nYour prompts in his 120: **1-120** — the member asks for anything in the list (posts, scripts, visuals, plans, reports, proposals…). `node agents/method/ask-library.mjs list --agent <your id>` shows them with their [fields]; run one with `node agents/method/ask-library.mjs <n> --set field=\"…\" --brief \"<the facts>\"` (ChatGPT first, Codex when ChatGPT is closed). Facts only from the brief or the data, never invented. Skill `brimind-chatgpt-skills`.\n\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}