Concepts

Job profiles

A job profile sets what Dus may touch when it works on its own: tools, apps, secrets, websites, mode, budget and your live systems. Duscode enforces it.

When Dus works without you watching, it works under a job profile. This applies to a scheduled job, an engineering job, a Lead specialist and the always-on runner that looks after your live systems. The profile says what it may touch.

Duscode itself enforces the profile on every step. It doesn't depend on what Dus is told: if Dus tries to use something outside the profile, the step is refused before it runs, and the refusal is recorded.

What a profile sets

  • Tools. Only the tools in the profile are available; any others are refused.
  • Connected apps. Only the apps and MCP servers you list can be used. Others are hidden and refused.
  • Secrets. Only the vault secrets you name are visible. To Dus, any other secret doesn't exist: it isn't listed, can't be used in a command, and can't be overwritten.
  • Internet. Only the websites you list can be reached, plus this computer. A command, a page fetch or a browser visit to any other site is refused.
  • How much Dus may do without asking. This is the most permissive mode the profile allows, such as Plan (read-only) or Auto. You can't switch the task above it.
  • Budget. The most one task may spend. Dus never raises its budget past this on its own; you still can.
  • Your live systems. For each system in Watch: Observe (only watch and tell you), Maintain (restart or roll back under your standing orders) or Develop (also prepare fixes and put them live when you say yes).

A profile only narrows

Apart from the one exception below (Unattended jobs), a profile can only take things away from what the rest of Settings allows. It can never give Dus more than that. For example:

  • A profile set to Full Auto doesn't take a task out of Ask.
  • A profile with a $50 budget doesn't raise your $2 budget per task.
  • A website listed in the profile still asks first if your settings would ask.
  • An app you turned off stays off.
  • Pushes, deploys and anything that can't be undone still ask you, as always.

Duscode's own profiles

Profile What it lets Dus do
Triage Reads the code, the issue and the logs, works out what's wrong and reports back. Changes nothing, uses no secrets, and only looks at your live systems.
Develop Changes code in its own copy, runs the checks, pushes a branch and opens a pull request. Can prepare fixes for live systems, but asks before anything goes live.
Maintain Small fixes and updates through pull requests, and restarts or roll-backs under your standing orders. No new features.
Unattended job For work nobody is watching. Everything inside the job's own copy of the project goes ahead without a question, and each step is recorded. Secrets, other machines, going live, money, merging into main, deleting outside its folder and other websites still stop as one question for you each. Engineering jobs started in their own task use it unless you choose another profile.
Operate Runs your live systems: watches them, restarts or rolls back under your standing orders, and puts a finished fix live when you say yes. Never changes code itself. The always-on runner uses Operate unless you choose another profile.

You can't change Duscode's own profiles, but you can copy one and change the copy.

Unattended jobs

A job that runs while you're away (an engineering job, a Board card Dus builds, queued work, Dus's parallel workers) can't stop every few minutes to ask "Run command?". The Unattended job profile lets it get on with its own work without asking, inside its own copy of the project:

  • reading and changing the files in its own folder;
  • installing the dependencies the project's lockfile already lists;
  • running the project's own tests, builds and linters;
  • starting dev servers on this computer and reaching them;
  • committing, and pushing to its own branch (never to main, never a force push);
  • opening and updating its own pull request;
  • running Local CI and the project's checks on its branch.

Each of these steps is still recorded: the task's audit log shows it as Pre-approved for the unattended job, with the step that allowed it.

These always stay your call. Each one stops the job with one question in plain words, in the chat and in the bell:

  • passwords, keys and other secrets;
  • other machines and servers;
  • putting anything live;
  • spending money;
  • merging into the main branch without passing Local CI;
  • deleting anything outside the job's own folder;
  • reaching a website that isn't on the profile's list (package registries and your code host are on it).

Anything else is decided by the task's mode and your rules, exactly as without the profile. Things Duscode never allows stay blocked.

To change it, Copy the Unattended job profile, turn off any steps you'd rather be asked about and edit its list of websites under Unattended jobs, then choose your copy under Who works under which → Jobs in their own task.

Making your own

Open Settings → Permissions → Job profiles. Choose New profile, or Copy on one of Duscode's own. Give it a name, describe what it's for in your own words, and set what it may touch. Leave a limit off to keep whatever your settings already allow.

On the same page, under Who works under which, choose the profile for:

  • the always-on runner (Watch);
  • jobs that run in their own task (Unattended job unless you choose another);
  • each kind of Lead specialist.

A specialist works under both its own profile and its task's, so it can only do what both allow.

Choose a scheduled job's profile when you create the job. Choose an engineering job's profile when you start it. A job started from inside a task works under that task's profile.

From the terminal, duscode -p "task" --profile triage runs one task under a profile. If the profile doesn't exist, the run stops before it starts and doesn't go ahead without one.

Where you see it

  • The task's mode in Settings → Permissions shows the profile it works under.
  • Each engineering job and each scheduled job shows its profile on its card.
  • The task's Proof of Work names the profile. The audit log says when a step was refused because of the profile.
  • A restart or roll-back that Watch makes records the profile it worked under.

Limits

  • Internet hosts are checked for each website Dus names: commands, page fetches and the in-app browser. Inside the sandbox, its network proxy also blocks any host a command didn't name. Without the sandbox, a command that reaches a site without naming it isn't stopped by the profile.
  • A profile is saved on this computer, in your Duscode folder. It never goes in a project, so a repository can't add or widen one.

Something missing or wrong? Email support@duscode.com.