Using the workspace
The landing steward: from pull request to live
The landing steward takes every pull request Dus opened to merged, deployed and healthy, keeps going after a restart, and asks you once when it needs you.
Opening a pull request is not the end of the job. The landing steward is the part of Duscode that finishes it: it watches every pull request Dus opened in your project and takes each one to merged, or to one clear question for you. If your project deploys on merge, it doesn't stop at merged either: the job ends when the change is live and healthy.
Note
The landing steward is in beta. It is proven with tests that use real repositories and real checks, and it is still being proven on real projects.
Turning it on
Open Settings → Duties. Under Ship you'll find the Landing steward with its switch and four choices:
- Fix budget per pull request: the most Dus may spend fixing one pull request's failing checks, across every try. "No fixes: ask me" means he never fixes; he tells you instead.
- Test ready pull requests together: several pull requests that are ready are merged together and checked once, which is faster. If that combined check fails, Dus splits the group until he finds the one that breaks it; the others still land.
- Which pull requests: only the ones Dus opened, or also ones you label
duscode-landon your Git host. - Deploy after a merge: after each merge, deploy the main branch to your production server and let Watch check it.
When to merge is still your merge rule (Ship's level in Duties): Drafts only means Dus gets each pull request ready and you merge it; Within limits means he asks you before each merge; On its own means he merges once every check passes on the exact commit, then tells you.
What it does for each pull request
- Keeps it up to date. When the main branch moved on, Dus merges it into the pull request's branch (never a rewrite of history) and pushes.
- Checks it. Your checks run on the pull request and on what main would look like with it merged, with Local CI or the CI you already use.
- Re-runs a flaky check once. A failure that looks like a timeout or a busy machine is run again once, without touching the code.
- Fixes a real failure. Dus reads the failure, fixes the cause and pushes, within the fix budget. He never weakens, skips or deletes a test to make it pass; a change that would is thrown away and you're told.
- Merges under your rule, only when the checks passed on exactly that commit and its merge.
- Checks main again at the merge, so a merge is never mistaken for a working main.
- Cleans up: the finished branch and its working folders are removed. A folder with unsaved work is never removed; it is kept and listed.
- Deploys and checks health, when you turned that on.
Every step leaves a receipt. The Work Ledger shows each pull request as one entry that ends at "live and healthy" (or "landed", when the project doesn't deploy on merge).
It never depends on the task that opened the pull request
A pull request whose task ended, or whose helper stopped, is not left behind: the steward adopts it and says so in its receipts. If Duscode stops in the middle of a merge, it checks with your Git host when it starts again: a merge that went through is recorded, never sent twice; one that didn't is checked again first.
With the always-on runner installed, the steward runs there, so your laptop can be closed. Otherwise it runs in Duscode on your computer.
When it needs you
Some things are yours to decide: a conflict where which side wins needs judgement, a review someone asked for, a fix budget that's spent, a pull request from someone else's fork. For each, Dus asks one question in plain words with your options, on the Agents board and in your notifications, and then waits. He doesn't ask the same thing twice. Answer it, and he carries on.