robisie 0.5.37 → 0.5.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +47 -2
- package/dist/cli.js +1 -1
- package/dist/commands.js +36 -27
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/engine/build-id.json +1 -1
- package/dist/engine/bundle-report.json +48 -41
- package/dist/engine/tick.cjs +2641 -1493
- package/dist/role-registry.d.ts +2 -1
- package/dist/role-registry.js +13 -4
- package/dist/roles.d.ts +1 -1
- package/docs/README.en.md +49 -4
- package/docs/README.md +49 -4
- package/package.json +1 -1
package/dist/role-registry.d.ts
CHANGED
|
@@ -15,7 +15,8 @@ export type EngineRoleRegistry = Record<Exclude<typeof ROLES[number], "receiver-
|
|
|
15
15
|
/** Separate from K2 roles (names/inflections) and K7's resource RoleRegistry. */
|
|
16
16
|
export declare function parseRoleRegistry(raw: unknown, configPath: string): EngineRoleRegistry;
|
|
17
17
|
/** Shared client execution contract; host registries retain their existing choices. */
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function validateClientWorkerRoles(worker: EngineRoleEntry, reviewer: EngineRoleEntry, platform?: NodeJS.Platform): void;
|
|
19
|
+
export declare function validateClientRoles(worker: EngineRoleEntry, reviewer: EngineRoleEntry, receiver?: EngineRoleEntry, platform?: NodeJS.Platform): void;
|
|
19
20
|
/** Select CLI/model/effort from the parsed registry; manufacturer and profile metadata belong to the caller. */
|
|
20
21
|
export declare function resolveRoleExecution(registry: EngineRoleRegistry, role: string): {
|
|
21
22
|
provider: typeof PROVIDERS[number];
|
package/dist/role-registry.js
CHANGED
|
@@ -55,16 +55,25 @@ export function parseRoleRegistry(raw, configPath) {
|
|
|
55
55
|
return result;
|
|
56
56
|
}
|
|
57
57
|
/** Shared client execution contract; host registries retain their existing choices. */
|
|
58
|
-
export function
|
|
59
|
-
if (worker.provider
|
|
60
|
-
throw new RobisieError("Worker klienta wymaga Codex; recenzent klienta: Codex, Claude albo Grok.", "Wybierz obsługiwanego dostawcę w rejestrze.");
|
|
58
|
+
export function validateClientWorkerRoles(worker, reviewer, platform = process.platform) {
|
|
59
|
+
if (!["codex", "grok"].includes(worker.provider) || !["codex", "claude", "grok"].includes(reviewer.provider))
|
|
60
|
+
throw new RobisieError("Worker klienta wymaga Codex albo Grok; recenzent klienta: Codex, Claude albo Grok.", "Wybierz obsługiwanego dostawcę w rejestrze.");
|
|
61
|
+
if (worker.provider === "grok" && platform !== "linux")
|
|
62
|
+
throw new RobisieError("Worker Grok wymaga Linuksa: na tej platformie brak blokady sieci potomnych. Wybierz Codex.", "Wybierz Codex albo uruchom klienta na Linuksie z bubblewrap.");
|
|
63
|
+
if (worker.provider === "grok" && (!/^grok-[a-z0-9][a-z0-9._-]*$/.test(worker.model) || worker.effort !== "none"))
|
|
64
|
+
throw new RobisieError("Worker Grok wymaga grok-cli albo konkretnego grok-* oraz effort none.", "Popraw model i effort Workera.");
|
|
61
65
|
if (Object.hasOwn(reviewer, "requireIndependentProvider") && typeof reviewer.requireIndependentProvider !== "boolean")
|
|
62
66
|
throw new RobisieError("requireIndependentProvider wymaga boolean true albo false.", "Popraw konfigurację recenzenta.");
|
|
63
67
|
if (reviewer.provider === "grok" && (reviewer.model !== "grok-cli" || reviewer.effort !== "none"))
|
|
64
68
|
throw new RobisieError("Recenzent Grok wymaga grok-cli/none.", "Popraw model i effort recenzenta.");
|
|
65
69
|
if (reviewer.provider === worker.provider && reviewer.requireIndependentProvider !== false)
|
|
66
70
|
throw new RobisieError("Wymagana niezależność: wybierz innego dostawcę lub jawnie wyłącz wymóg przez requireIndependentProvider=false.", "Wybierz innego dostawcę lub jawne false.");
|
|
67
|
-
|
|
71
|
+
}
|
|
72
|
+
export function validateClientRoles(worker, reviewer, receiver, platform = process.platform) {
|
|
73
|
+
validateClientWorkerRoles(worker, reviewer, platform);
|
|
74
|
+
if (receiver && Object.hasOwn(receiver, "requireIndependentProvider") && typeof receiver.requireIndependentProvider !== "boolean")
|
|
75
|
+
throw new RobisieError("requireIndependentProvider odbiorcy wymaga boolean true albo false.", "Popraw konfigurację odbiorcy.");
|
|
76
|
+
if ((!receiver && worker.provider === "grok") || receiver && receiver.provider === worker.provider && receiver.requireIndependentProvider !== false)
|
|
68
77
|
throw new RobisieError("Niezależność odbiorcy: wybierz innego dostawcę albo świadome requireIndependentProvider=false.", "Wybierz innego dostawcę albo świadome false.");
|
|
69
78
|
}
|
|
70
79
|
/** Select CLI/model/effort from the parsed registry; manufacturer and profile metadata belong to the caller. */
|
package/dist/roles.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface Role {
|
|
|
17
17
|
export declare function rolesDir(): string;
|
|
18
18
|
export declare function parseRole(file: Role["file"], text: string): Role;
|
|
19
19
|
export declare function loadRoles(dir?: string): Role[];
|
|
20
|
-
export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.
|
|
20
|
+
export declare const MANAGED_LINE = "<!-- robisie:managed 0.5.38 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
|
|
21
21
|
export type AgentFlavor = "claude" | "codex" | "opencode";
|
|
22
22
|
/** How the operator starts the Builder for one card in its own session (the card id is not a secret). */
|
|
23
23
|
export declare function builderStartCommand(flavor: AgentFlavor, codexRolePath?: string): string;
|
package/docs/README.en.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — from account to accepted card (package 0.5.
|
|
1
|
+
# robisie — from account to accepted card (package 0.5.38) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
In the project directory with its engine configuration, run `npx robisie init`, then `npx robisie doctor`: init prepares the project goal and tester protection list, and doctor checks both inputs.
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ Polski: [README.md](README.md).
|
|
|
7
7
|
<!-- sekcja: dostepnosc -->
|
|
8
8
|
## Availability
|
|
9
9
|
|
|
10
|
-
An account and key are needed for init and the roles. `npx robisie doctor --engine-config ./robisie.config.json` with explicit `engine.mode:host` checks structure and local installation inputs offline, without CLI checks. With `engine.mode:client` or a missing `engine.mode` field, after input validation and when the program is available, it also checks CLI presence and login: `codex login status` and `grok models` (`grok models` requires a network; Grok confirms login only probably), plus `claude auth status` when `reviewer-client.provider: claude` or `receiver-client.provider: claude`. A missing program does not check login. Neither mode runs a real AI task or engine commands, and neither confirms project UUID, repo or models. The guides shipped in this package are local at `node_modules/robisie/docs/README.md` and `node_modules/robisie/docs/README.en.md`; no website fetch is needed.
|
|
10
|
+
An account and key are needed for init and the roles. `npx robisie doctor --engine-config ./robisie.config.json` with explicit `engine.mode:host` checks structure and local installation inputs offline, without CLI checks. With `engine.mode:client` or a missing `engine.mode` field, after input validation and when the program is available, it also checks CLI presence and login only for selected providers: `codex login status` for Codex and `grok models` for Grok (`grok models` requires a network; Grok confirms login only probably), plus `claude auth status` when `reviewer-client.provider: claude` or `receiver-client.provider: claude`. A missing program does not check login. Neither mode runs a real AI task or engine commands, and neither confirms project UUID, repo or models. The guides shipped in this package are local at `node_modules/robisie/docs/README.md` and `node_modules/robisie/docs/README.en.md`; no website fetch is needed.
|
|
11
11
|
|
|
12
12
|
Install robisie from npm in the prepared directory; run subsequent commands and agent sessions there. [Preparation](#wymagania) → [account](#konto) → [key](#klucz) → [installation](#instalacja) → [acceptance](#recenzja-i-odbior).
|
|
13
13
|
|
|
@@ -282,7 +282,52 @@ git commit -m "Przygotuj lokalne powitanie"
|
|
|
282
282
|
```
|
|
283
283
|
<!-- local-repo-setup:end -->
|
|
284
284
|
|
|
285
|
-
Save the entire JSON below as `robisie.config.json` in the repo directory, without overwriting existing configuration. **Replace** fictitious `project` with the UUID from authenticated `list_projects`, and the `tracks` UUID and name with a real track from that project’s board. Replace `engine.repo` with the absolute current repo path and `stateDir` with a separate directory **outside the repo**. Complete all four `roleRegistry` entries. In the local flow, `worker-client`
|
|
285
|
+
Save the entire JSON below as `robisie.config.json` in the repo directory, without overwriting existing configuration. **Replace** fictitious `project` with the UUID from authenticated `list_projects`, and the `tracks` UUID and name with a real track from that project’s board. Replace `engine.repo` with the absolute current repo path and `stateDir` with a separate directory **outside the repo**. Complete all four `roleRegistry` entries. In the local flow, `worker-client` can select Codex or Grok, and `reviewer-client` can select Codex, Claude or Grok. The Grok reviewer requires `provider: grok`, `model: grok-cli`, `effort: none`. The reviewer supports optional boolean `requireIndependentProvider`: absent or `true` requires another provider; a reviewer sharing the Worker provider requires explicit `false`. Every reviewer `false`, including Claude or Grok, marks review and acceptance as `partial` with the note “częściowa: bez niezależnego sprawdzenia”. Review always runs in a separate process. An unsupported pair or a configuration change during the card causes `HOLD clientPair`. For Codex roles, choose a real model available on your account and supported effort; this example uses `gpt-6.1-sol` / `high`, not fixture models. Set the Codex or Claude reviewer model and effort in the registry; the installed Grok CLI selects its model (`grok-cli` / `none`). The local flow requires CLI availability and login only for the providers selected for the Worker, reviewer and receiver; an omitted receiver means Grok. `doctor --engine-config` with explicit `engine.mode:host` checks structure offline, without CLI checks. With `engine.mode:client` or a missing `engine.mode` field, after input validation and when the program is available, it checks login only for selected providers: `codex login status` for Codex and `grok models` for Grok (`grok models` requires a network; Grok confirms login only probably), plus `claude auth status` when `reviewer-client.provider: claude` or `receiver-client.provider: claude`. A missing program does not check login, and a missing CLI or unconfirmed login prevents readiness. Neither mode runs a real AI task. Parsing and this doctor do not prove model or provider availability. This execution registry is separate from the installer’s CEO/Builder/Quality Officer map.
|
|
286
|
+
|
|
287
|
+
The Grok Worker runs only on Linux with working bubblewrap (`bwrap`). On macOS the client refuses before startup because child-process network blocking is unavailable; select Codex. Install Grok CLI and sign in with `grok login --device-auth`; preserve HOME and optional GROK_HOME (default `~/.grok`) without relocating login. Codex still needs Codex CLI and `codex login --device-auth`. `doctor --engine-config` checks bubblewrap availability, but does not prove kernel enforcement.
|
|
288
|
+
|
|
289
|
+
Before startup the engine creates project `.grok/sandbox.toml`: profile `robisie-<unique attempt identifier>`, `extends = "workspace"`, `restrict_network = true`, `read_write = ["<absolute stateDir>/worker-tmp/<attempt>"]`, `deny = ["/tmp", "/var/tmp"]`. Startup requests it through `--sandbox robisie-…`; built-in GROK_SANDBOX does not replace this selection. The realpath of the worktree, TMPDIR and Grok home must be outside deny. The engine preserves HOME/GROK_HOME, reuses the attempt TMPDIR and excludes exactly this file through local git info/exclude (including worktrees whose `.git` is a file). It never overwrites foreign configuration, follows profile symlinks or writes global TOML; an identical owned file is idempotent. A retry in the same worktree appends a separate profile only after matching the existing file against its copy in the engine artifacts; earlier profiles and copies remain available for evidence verification. A missing, modified or symlinked copy causes refusal. A different global profile with the same name wins in Grok, so the client refuses a conflict. Trust the worktree in Grok CLI beforehand. Missing bubblewrap, folder trust, an available/valid profile or evidence of enforcement causes refusal; the client has no automatic Codex fallback. Results require `sandbox-events.jsonl` with `enforced=true` for this attempt and the actual process model `grok-*`/xAI. `grok-cli` selects the CLI family, while a concrete registry model must match exactly; UNKNOWN is only a waiting state.
|
|
290
|
+
|
|
291
|
+
Limits: Landlock has a metadata protection gap and, before Linux kernel 6.2, a truncate gap. Network blocking covers only child processes on Linux; API/HTTP inside Grok remain open. Offline mock tests check the startup contract; only a kernel probe after installation establishes actual enforcement. Each role runs in a separate process without resuming Worker or reviewer sessions.
|
|
292
|
+
|
|
293
|
+
Replace the entire `roleRegistry` with this Grok Worker example (keep the other installation settings from the Codex example). Reviewer and receiver use another provider. An absent `receiver-client` preserves historical Grok and refuses a Grok Worker. A shared provider requires separate explicit `requireIndependentProvider: false` for the relevant role: partial and the note “częściowa: bez niezależnego sprawdzenia” remain; the receiver exception requires protected `review_receipt.receiverIndependenceWaived=true` recorded by `accept_review`. Reviewer false does not waive receiver independence.
|
|
294
|
+
|
|
295
|
+
<!-- grok-worker-example:start -->
|
|
296
|
+
```json
|
|
297
|
+
{
|
|
298
|
+
"worker-client": {
|
|
299
|
+
"name": "Worker",
|
|
300
|
+
"provider": "grok",
|
|
301
|
+
"model": "grok-cli",
|
|
302
|
+
"effort": "none"
|
|
303
|
+
},
|
|
304
|
+
"lead-client": {
|
|
305
|
+
"name": "Lead",
|
|
306
|
+
"provider": "codex",
|
|
307
|
+
"model": "gpt-6.1-sol",
|
|
308
|
+
"effort": "high"
|
|
309
|
+
},
|
|
310
|
+
"reviewer-client": {
|
|
311
|
+
"name": "Reviewer",
|
|
312
|
+
"provider": "codex",
|
|
313
|
+
"model": "gpt-6.1-sol",
|
|
314
|
+
"effort": "high"
|
|
315
|
+
},
|
|
316
|
+
"tester-client": {
|
|
317
|
+
"name": "Tester",
|
|
318
|
+
"provider": "codex",
|
|
319
|
+
"model": "gpt-6.1-sol",
|
|
320
|
+
"effort": "high"
|
|
321
|
+
},
|
|
322
|
+
"receiver-client": {
|
|
323
|
+
"name": "Receiver",
|
|
324
|
+
"provider": "codex",
|
|
325
|
+
"model": "gpt-6.1-sol",
|
|
326
|
+
"effort": "high"
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
```
|
|
330
|
+
<!-- grok-worker-example:end -->
|
|
286
331
|
|
|
287
332
|
<!-- local-engine-config:start -->
|
|
288
333
|
```json
|
|
@@ -638,6 +683,6 @@ After repair with an existing record, load the saved key as shown in Update befo
|
|
|
638
683
|
|
|
639
684
|
The installer does not start background services or the Builder on its own; after operator approval, the CEO can start the Builder through `spawn_builder`. Helpers run during agent sessions using the project directory (or `ROBISIE_PROJECT_CONTEXT`) as context. The installer contacts robisie to check the contract and key; the package file does not provide an account or AI provider access. One shared key identity does not provide three different permission levels. Acceptance requires independent review, evidence and the operator's approval.
|
|
640
685
|
|
|
641
|
-
Windows/WSL are unverified. `doctor --engine-config` with explicit `engine.mode:host` checks structure and local installation inputs offline, without CLI checks. With `engine.mode:client` or a missing `engine.mode` field, after input validation and when the program is available, it checks CLI presence and login: `codex login status` and `grok models` (`grok models` requires a network; Grok confirms login only probably), plus `claude auth status` when `reviewer-client.provider: claude` or `receiver-client.provider: claude`. A missing program does not check login. Neither mode runs a real AI task or engine commands, and neither confirms project UUID, repo existence or model availability.
|
|
686
|
+
Windows/WSL are unverified. `doctor --engine-config` with explicit `engine.mode:host` checks structure and local installation inputs offline, without CLI checks. With `engine.mode:client` or a missing `engine.mode` field, after input validation and when the program is available, it checks CLI presence and login only for selected providers: `codex login status` for Codex and `grok models` for Grok (`grok models` requires a network; Grok confirms login only probably), plus `claude auth status` when `reviewer-client.provider: claude` or `receiver-client.provider: claude`. A missing program does not check login. Neither mode runs a real AI task or engine commands, and neither confirms project UUID, repo existence or model availability.
|
|
642
687
|
|
|
643
688
|
The package engine (`dist/engine/tick.cjs`) is separate from the installer: it is started by `npx robisie factory run --engine-config ./robisie.config.json` on Linux or macOS for the client (`local`) or an explicit Robisie host (`mode: "host"`, `pr|delivered`). Other systems receive code 2 and a message. The `--once` option runs one tick without a pause and excludes an explicit `--interval`. Every nonzero tick result stops the supervisor („Fabryka zatrzymana: …”) with one diagnostic line on stderr; code 2 means an escalation (e.g. missing B key after receiver PASS, tester refusal, acceptance STOP) that must be resolved before retrying, and code 78 points to configuration repair. Real customer use on Linux will be proven in the D9 acceptance; a live macOS host switch and return require separate operator acceptance. Automatic FJ plans for customers are announced (“soon”) but are not in this release; the selector returns the true result.
|
package/docs/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# robisie — od konta do odebranej karty (paczka 0.5.
|
|
1
|
+
# robisie — od konta do odebranej karty (paczka 0.5.38) <!-- x-release-please-version -->
|
|
2
2
|
|
|
3
3
|
W katalogu projektu z konfiguracją silnika uruchom `npx robisie init`, potem `npx robisie doctor`: init przygotuje cel projektu i listę ochrony testera, a doctor sprawdzi oba wejścia.
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ English: [README.en.md](README.en.md).
|
|
|
9
9
|
<!-- sekcja: dostepnosc -->
|
|
10
10
|
## Dostępność
|
|
11
11
|
|
|
12
|
-
Konto i klucz są potrzebne do init i pracy ról. `npx robisie doctor --engine-config ./robisie.config.json` przy jawnym `engine.mode:host` sprawdza offline strukturę konfiguracji i wejścia instalacji lokalnej, bez kontroli CLI. Przy `engine.mode:client` albo braku pola `engine.mode`, po walidacji wejść i przy dostępnym programie, sprawdza obecność CLI oraz logowanie: `codex login status` i `grok models` (`grok models` wymaga sieci; Grok potwierdza logowanie tylko prawdopodobnie), a `claude auth status` przy `reviewer-client.provider: claude` lub `receiver-client.provider: claude`. Brak programu nie pozwala sprawdzić logowania. Żaden tryb nie wykonuje prawdziwego zadania AI ani komend silnika i nie potwierdza UUID projektu, repo ani modeli. Przewodniki z tej paczki znajdziesz lokalnie w `node_modules/robisie/docs/README.md` i `node_modules/robisie/docs/README.en.md`; nie trzeba pobierać ich ze strony.
|
|
12
|
+
Konto i klucz są potrzebne do init i pracy ról. `npx robisie doctor --engine-config ./robisie.config.json` przy jawnym `engine.mode:host` sprawdza offline strukturę konfiguracji i wejścia instalacji lokalnej, bez kontroli CLI. Przy `engine.mode:client` albo braku pola `engine.mode`, po walidacji wejść i przy dostępnym programie, sprawdza obecność CLI oraz logowanie tylko wybranych dostawców: `codex login status` dla Codexa i `grok models` dla Groka (`grok models` wymaga sieci; Grok potwierdza logowanie tylko prawdopodobnie), a `claude auth status` przy `reviewer-client.provider: claude` lub `receiver-client.provider: claude`. Brak programu nie pozwala sprawdzić logowania. Żaden tryb nie wykonuje prawdziwego zadania AI ani komend silnika i nie potwierdza UUID projektu, repo ani modeli. Przewodniki z tej paczki znajdziesz lokalnie w `node_modules/robisie/docs/README.md` i `node_modules/robisie/docs/README.en.md`; nie trzeba pobierać ich ze strony.
|
|
13
13
|
|
|
14
14
|
Zainstaluj robisie z npm w przygotowanym katalogu; w nim uruchamiaj dalsze polecenia i sesje agentów. [Przygotowanie](#wymagania) → [konto](#konto) → [klucz](#klucz) → [instalacja](#instalacja) → [odbiór](#recenzja-i-odbior).
|
|
15
15
|
|
|
@@ -327,10 +327,55 @@ git commit -m "Przygotuj lokalne powitanie"
|
|
|
327
327
|
```
|
|
328
328
|
<!-- local-repo-setup:end -->
|
|
329
329
|
|
|
330
|
-
Zapisz cały poniższy JSON jako `robisie.config.json` w katalogu repo, bez nadpisywania istniejącej konfiguracji. **Podmień** fikcyjne `project` na UUID z uwierzytelnionego `list_projects`, a UUID i nazwę `tracks` na rzeczywisty tor z tablicy tego projektu. Podmień `engine.repo` na absolutną ścieżkę bieżącego repo, a `stateDir` na osobny katalog **poza repo**. Uzupełnij wszystkie cztery wpisy `roleRegistry`. W lokalnym przebiegu `worker-client`
|
|
330
|
+
Zapisz cały poniższy JSON jako `robisie.config.json` w katalogu repo, bez nadpisywania istniejącej konfiguracji. **Podmień** fikcyjne `project` na UUID z uwierzytelnionego `list_projects`, a UUID i nazwę `tracks` na rzeczywisty tor z tablicy tego projektu. Podmień `engine.repo` na absolutną ścieżkę bieżącego repo, a `stateDir` na osobny katalog **poza repo**. Uzupełnij wszystkie cztery wpisy `roleRegistry`. W lokalnym przebiegu `worker-client` może wybrać Codex albo Grok, a `reviewer-client` może wybrać Codex, Claude albo Grok. Recenzent Grok wymaga `provider: grok`, `model: grok-cli`, `effort: none`. Recenzent ma opcjonalne boolean `requireIndependentProvider`: brak lub `true` wymaga innego dostawcy; recenzent współdzielący dostawcę z Workerem wymaga jawnego `false`. Każde `false` recenzenta, także przy Claude lub Groku, zapisuje review i acceptance jako `partial` z notą „częściowa: bez niezależnego sprawdzenia”. Recenzja zawsze działa w osobnym procesie. Niedozwolona para lub zmiana konfiguracji w trakcie karty daje `HOLD clientPair`. Dla ról Codex wybierz rzeczywisty model dostępny na swoim koncie i obsługiwany effort; przykład używa `gpt-6.1-sol` / `high`, nie modeli fixture. Dla Codex i Claude ustaw model oraz effort recenzenta w rejestrze; model Groka wybiera zainstalowany Grok CLI (`grok-cli` / `none`). Lokalny przebieg wymaga CLI i logowania dostawców wybranych dla Workera, recenzenta i odbiorcy; brak wpisu odbiorcy oznacza Groka. `doctor --engine-config` przy jawnym `engine.mode:host` sprawdza strukturę offline, bez kontroli CLI. Przy `engine.mode:client` albo braku pola `engine.mode` sprawdza logowanie tylko wybranych dostawców po walidacji wejść i przy dostępnym programie: `codex login status` dla Codexa i `grok models` dla Groka (`grok models` wymaga sieci; Grok potwierdza logowanie tylko prawdopodobnie), a `claude auth status` przy `reviewer-client.provider: claude` lub `receiver-client.provider: claude`. Brak programu nie pozwala sprawdzić logowania; brak CLI lub potwierdzenia logowania nie daje gotowości. Żaden tryb nie wykonuje prawdziwego zadania AI. Same parsowanie i ten doctor nie dowodzą dostępności modeli ani dostawców. Rejestr wykonania jest odrębny od mapy instalatora CEO/Builder/Quality Officer.
|
|
331
331
|
|
|
332
332
|
Worker Codex na Linuksie może uruchamiać testy tworzące procesy, ale proxy deny-all blokuje dostęp do internetu: komenda próbująca ruchu sieciowego zostanie PRZERWANA (exit −1), zamiast zwrócić zwykły błąd. Zależności przygotuj poza Workerem. Runner dopisuje `127.0.0.1,localhost` osobno do `NO_PROXY` i `no_proxy`, zachowując istniejące listy użytkownika i dostęp HTTP do localhost. Pomiar dotyczy Codex 0.166.0 na Linux aarch64; nie potwierdza rzeczywistego użycia u Dota na Linux x64 po wydaniu.
|
|
333
333
|
|
|
334
|
+
Worker Grok działa wyłącznie na Linux z działającym bubblewrap (`bwrap`). Na macOS klient odmawia przed startem: brak blokady sieci potomnych; wybierz Codex. Zainstaluj Grok CLI i zaloguj `grok login --device-auth`; zachowaj HOME i opcjonalne GROK_HOME (domyślnie `~/.grok`), bez kopiowania logowania. Codex nadal wymaga Codex CLI i `codex login --device-auth`. `doctor --engine-config` sprawdza obecność bubblewrap, ale nie dowodzi ochrony jądra.
|
|
335
|
+
|
|
336
|
+
Przed startem silnik tworzy projektowy `.grok/sandbox.toml`: profil `robisie-<unikalny identyfikator próby>`, `extends = "workspace"`, `restrict_network = true`, `read_write = ["<absolutny stateDir>/worker-tmp/<próba>"]`, `deny = ["/tmp", "/var/tmp"]`. Start zamawia go przez `--sandbox robisie-…`; wbudowany GROK_SANDBOX nie zastępuje tego wyboru. Worktree, TMPDIR i dom Groka po realpath muszą leżeć poza deny. Silnik zachowuje HOME/GROK_HOME, reużywa TMPDIR próby i wyklucza dokładnie ten plik przez lokalny git info/exclude (także gdy `.git` worktree jest plikiem). Nie nadpisuje obcej konfiguracji, nie podąża za dowiązaniem profilu ani nie zapisuje globalnego TOML; identyczny własny plik jest idempotentny. Ponowna próba w tym samym worktree dopisuje osobny profil tylko po sprawdzeniu zgodności dotychczasowego pliku z kopią w artefaktach silnika; zachowuje wcześniejsze profile i ich kopie do weryfikacji dowodów. Brak kopii, jej zmiana lub dowiązanie oznacza odmowę. Różny globalny profil o tej samej nazwie wygrywa w Groku, dlatego klient odmawia przy konflikcie. Wcześniej zaufaj worktree w Grok CLI. Brak bubblewrap, zaufania, dostępnego/poprawnego profilu lub dowodu jego nałożenia odmawia; klient nie wraca automatycznie do Codexa. Wynik wymaga `sandbox-events.jsonl` z `enforced=true` dla tej próby oraz rzeczywistego modelu `grok-*`/xAI z procesu. `grok-cli` oznacza rodzinę CLI, a konkretny model w rejestrze wymaga równości; UNKNOWN służy tylko oczekiwaniu.
|
|
337
|
+
|
|
338
|
+
Granice: Landlock ma lukę ochrony metadanych; przed jądrem Linux 6.2 ma też lukę truncate. Blokada sieci obejmuje tylko procesy potomne na Linuksie; API/HTTP w procesie Groka pozostają otwarte. Testy na atrapach sprawdzają kontrakt startu, a rzeczywistą ochronę potwierdza dopiero sonda jądra po instalacji. Każda rola działa w osobnym procesie bez wznawiania sesji Workera lub recenzenta.
|
|
339
|
+
|
|
340
|
+
Przykład zastępujący cały `roleRegistry` dla Workera Grok (pozostałe ustawienia instalacji pozostają jak w przykładzie Codexa). Recenzent i odbiorca mają innego dostawcę. Brak `receiver-client` zachowuje historycznego Groka i przy Workerze Grok oznacza odmowę. Wspólny dostawca wymaga osobnego jawnego `requireIndependentProvider: false` odpowiedniej roli: pozostaje partial i znak „częściowa: bez niezależnego sprawdzenia”; wyjątek odbiorcy wymaga chronionego `review_receipt.receiverIndependenceWaived=true` zapisanego przez `accept_review`. Recenzenckie false nie zwalnia niezależności odbiorcy.
|
|
341
|
+
|
|
342
|
+
<!-- grok-worker-example:start -->
|
|
343
|
+
```json
|
|
344
|
+
{
|
|
345
|
+
"worker-client": {
|
|
346
|
+
"name": "Worker",
|
|
347
|
+
"provider": "grok",
|
|
348
|
+
"model": "grok-cli",
|
|
349
|
+
"effort": "none"
|
|
350
|
+
},
|
|
351
|
+
"lead-client": {
|
|
352
|
+
"name": "Lead",
|
|
353
|
+
"provider": "codex",
|
|
354
|
+
"model": "gpt-6.1-sol",
|
|
355
|
+
"effort": "high"
|
|
356
|
+
},
|
|
357
|
+
"reviewer-client": {
|
|
358
|
+
"name": "Reviewer",
|
|
359
|
+
"provider": "codex",
|
|
360
|
+
"model": "gpt-6.1-sol",
|
|
361
|
+
"effort": "high"
|
|
362
|
+
},
|
|
363
|
+
"tester-client": {
|
|
364
|
+
"name": "Tester",
|
|
365
|
+
"provider": "codex",
|
|
366
|
+
"model": "gpt-6.1-sol",
|
|
367
|
+
"effort": "high"
|
|
368
|
+
},
|
|
369
|
+
"receiver-client": {
|
|
370
|
+
"name": "Receiver",
|
|
371
|
+
"provider": "codex",
|
|
372
|
+
"model": "gpt-6.1-sol",
|
|
373
|
+
"effort": "high"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
```
|
|
377
|
+
<!-- grok-worker-example:end -->
|
|
378
|
+
|
|
334
379
|
<!-- local-engine-config:start -->
|
|
335
380
|
```json
|
|
336
381
|
{
|
|
@@ -685,6 +730,6 @@ Po naprawie przy istniejącej ewidencji wczytaj zapisany klucz według Aktualiza
|
|
|
685
730
|
|
|
686
731
|
Instalator nie uruchamia sam usług w tle ani Buildera; po zgodzie operatora CEO może uruchomić Buildera przez `spawn_builder`. Pomocniki działają podczas sesji agenta, z kontekstem katalogu projektu (lub `ROBISIE_PROJECT_CONTEXT`). Instalator łączy się z robisie w celu sprawdzenia kontraktu i klucza; plik paczki nie zapewnia konta ani dostępu do dostawcy AI. Jedna wspólna tożsamość klucza nie daje trzech różnych poziomów uprawnień. Odbiór wymaga niezależnej recenzji, dowodów i zgody operatora.
|
|
687
732
|
|
|
688
|
-
Windows/WSL są niezweryfikowane. `doctor --engine-config` przy jawnym `engine.mode:host` sprawdza offline strukturę konfiguracji i wejścia, bez kontroli CLI; przy `engine.mode:client` albo braku pola `engine.mode`, po walidacji wejść i przy dostępnym programie, sprawdza CLI: `codex login status
|
|
733
|
+
Windows/WSL są niezweryfikowane. `doctor --engine-config` przy jawnym `engine.mode:host` sprawdza offline strukturę konfiguracji i wejścia, bez kontroli CLI; przy `engine.mode:client` albo braku pola `engine.mode`, po walidacji wejść i przy dostępnym programie, sprawdza CLI tylko wybranych dostawców: `codex login status` dla Codexa, `grok models` dla Groka (`grok models` wymaga sieci; Grok potwierdza logowanie tylko prawdopodobnie) i `claude auth status` przy `reviewer-client.provider: claude` lub `receiver-client.provider: claude`. Brak programu nie pozwala sprawdzić logowania. Żaden tryb nie wykonuje prawdziwego zadania AI ani komend silnika i nie potwierdza UUID projektu, istnienia repo ani dostępności modeli.
|
|
689
734
|
|
|
690
735
|
Silnik paczki (`dist/engine/tick.cjs`) jest odrębny od instalatora: uruchamia go `npx robisie factory run --engine-config ./robisie.config.json` na Linuxie lub macOS dla klienta (`local`) oraz jawnego hosta Robisie (`mode: "host"`, `pr|delivered`). Pozostałe systemy otrzymują kod 2 i komunikat. Opcja `--once` uruchamia jeden takt bez przerwy i wyklucza jawne `--interval`. Każdy niezerowy wynik taktu zatrzymuje nadzorcę („Fabryka zatrzymana: …”) z jedną linią diagnozy na stderr; kod 2 to eskalacja (np. brak klucza B po receiver PASS, odmowa testera, STOP odbioru) wymagająca rozstrzygnięcia przed ponowieniem, a kod 78 wskazuje konfigurację do poprawy. Realne użycie u klienta na Linuxie zostanie udowodnione w odbiorze D9; próba żywego hosta na macOS i jego powrotu wymaga osobnego odbioru operatora. Automatyczne plany FJ u klienta są zapowiedziane („wkrótce”), ale nie ma ich w tym wydaniu; selektor zwraca prawdziwy wynik.
|
package/package.json
CHANGED