0.1.1: the reviewer has no built-in name

- Board text, timelines, the sign-in page and notifications use the name in
  reviewer.json; nothing says Pandu any more.
- Examples and docs use the brand: reviewer "Labuh", bot "labuh-bot",
  mentions "@labuh".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:52:49 +07:00
parent 112923640d
commit b8986003c9
14 changed files with 45 additions and 44 deletions

View File

@@ -2,7 +2,7 @@
**Every deploy request in one harbour. An agent checks it, a person gives the Gas.**
Labuh turns merge and deploy requests on GitLab into boats in a harbour. Label an MR `labuh` and a reviewer agent (Pandu, by default) reads it, says GO or NO-GO with evidence you can open, and answers questions in the MR thread. The approver sees every request on one board, on a laptop or a phone, and taps **Gas**: Labuh merges, follows the deploy pipeline, and tells the team when it docked.
Labuh turns merge and deploy requests on GitLab into boats in a harbour. Label an MR `labuh` and a reviewer agent (named in `reviewer.json`; the examples call it Labuh) reads it, says GO or NO-GO with evidence you can open, and answers questions in the MR thread. The approver sees every request on one board, on a laptop or a phone, and taps **Gas**: Labuh merges, follows the deploy pipeline, and tells the team when it docked.
- **Nothing gets lost.** Every request has a place and a state, instead of a message somewhere in a chat.
- **Evidence before Gas.** Each finding points at a file and line, a pipeline job or a rubric rule, checked by Labuh before anyone sees it.
@@ -24,7 +24,7 @@ Labuh adds nothing GitLab has to enforce: merge permission stays the gate, so if
| | |
|---|---|
| **Agent review** | Each labelled MR is reviewed against your rubric, the repository and (optionally) your team's notes. A new commit updates the same verdict comment; `@pandu why?` in the thread gets an answer. |
| **Agent review** | Each labelled MR is reviewed against your rubric, the repository and (optionally) your team's notes. A new commit updates the same verdict comment; `@labuh why?` in the thread gets an answer. |
| **Checked evidence** | The reviewer answers in a fixed shape. Labuh checks every reference (the line exists at that commit, the job belongs to that pipeline, the rule is in the rubric) and applies hard rules the model can't override: a red pipeline or a moved head is never GO. A malformed answer is retried once, then shown as "needs a manual check". |
| **The harbour** | One lane per environment (Prod, Staging), three zones: **Dicek**, **Siap gas**, **Beres**. Boats glide between them; the oldest finished boats sail out when the berth is full. |
| **Gas, Tunda, Tolak** | Gas merges the exact commit that was reviewed, after 15 seconds to change your mind. Tunda (hold) and Tolak (reject) take a note the MR thread sees; a rejected MR can be closed from the board. |
@@ -58,7 +58,7 @@ The board speaks Indonesian (ajuan = request, dermaga = environment, berlabuh =
- A GitLab project on gitlab.com and three accounts for Labuh (service accounts work on the Free tier):
- **a reader** (Reporter) for polling;
- **the reviewer's bot** (Reporter), named like the reviewer so `@pandu` mentions reach it;
- **the reviewer's bot** (Reporter), named like the reviewer so `@labuh` mentions reach it;
- **a merge account** that may merge into your target branches (Maintainer for protected ones). It is used only after an approver's action.
- A **GitLab OAuth application** for the board: scope `read_api`, redirect `https://<your board>/auth/callback`.
- **Codex** access for the reviewer (an API key for a server).
@@ -102,11 +102,11 @@ docker compose run --rm hub node src/hub-cli.ts check-bot
docker compose up -d
```
Three containers start: the **hub**, the **reviewer** (Pandu) and the **board**. The board listens on port 4810; put it behind your TLS proxy at the `publicUrl` you configured. The reviewer has no published port. `data/` holds the store (`.work/hub/labuh.db`) and the checkouts, the `reviewer-codex` volume holds Pandu's Codex login and threads: back both up, and run only one Hub per store.
Three containers start: the **hub**, the **reviewer** and the **board**. The board listens on port 4810; put it behind your TLS proxy at the `publicUrl` you configured. The reviewer has no published port. `data/` holds the store (`.work/hub/labuh.db`) and the checkouts, the `reviewer-codex` volume holds the reviewer's Codex login and threads: back both up, and run only one Hub per store.
Team notes for the reviewer (`knowledge` in `reviewer.json`) are mounted read-only into the hub and the reviewer at the same path; see the commented lines in `compose.yaml`.
Start with `"mode": "shadow"` and `"gas": {"mode": "dry"}`: Pandu's comments go to `data/.work/hub/outbox/` and Gas only rehearses. Switch to `live` when the reviews look right.
Start with `"mode": "shadow"` and `"gas": {"mode": "dry"}`: the reviewer's comments go to `data/.work/hub/outbox/` and Gas only rehearses. Switch to `live` when the reviews look right.
### Run it on a laptop
@@ -122,7 +122,7 @@ On macOS the tokens can live in the Keychain instead of the environment: `labuh-
## Using Labuh
**Developers** label their MR `labuh`, read Pandu's comment, push fixes, and ask `@pandu` in the thread. The board shows them the same harbour, without the buttons.
**Developers** label their MR `labuh`, read the reviewer's comment, push fixes, and ask it in the thread (`@labuh` in the examples). The board shows them the same harbour, without the buttons.
**Approvers** open the board (or tap the link in a notification), read the verdict and findings, and choose:
@@ -198,7 +198,7 @@ In Docker, prefix with `docker compose run --rm hub node src/hub-cli.ts …` (or
- gitlab.com only; one reviewer per hub; polling, no webhooks yet.
- Linked MRs (a frontend that needs its backend first) are not tracked yet.
- Labuh does not run post-deploy commands; Pandu lists them for a person.
- Labuh does not run post-deploy commands; the reviewer lists them for a person.
## Developing