robisie 0.5.12 → 0.5.14
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 +15 -0
- package/README.md +2 -0
- 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 +1 -1
- package/dist/engine/tick.cjs +68 -12
- package/dist/roles.d.ts +1 -1
- package/docs/README.en.md +20 -4
- package/docs/README.md +20 -4
- package/package.json +1 -1
- package/roles/ceo-client.md +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Historia zmian klienta / Client changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.14](https://github.com/chuppa12/robisie-app/compare/client-v0.5.13...client-v0.5.14) (2026-11-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Factory Cards
|
|
7
|
+
|
|
8
|
+
* praca workera task-mwdufw68-r2dcsh (auto-commit) ([e841e06](https://github.com/chuppa12/robisie-app/commit/e841e06e668e85f225aa93e049b9c62ff225050e))
|
|
9
|
+
* praca workera task-mwdvufpr-391pd6 (auto-commit) ([fc233bc](https://github.com/chuppa12/robisie-app/commit/fc233bc66811bb468d56db07dd5f16733adbfcb5))
|
|
10
|
+
|
|
11
|
+
## [0.5.13](https://github.com/chuppa12/robisie-app/compare/client-v0.5.12...client-v0.5.13) (2026-11-12)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Factory Cards
|
|
15
|
+
|
|
16
|
+
* praca workera task-mwdpff5f-n4t36g (auto-commit) ([c83e7ac](https://github.com/chuppa12/robisie-app/commit/c83e7ac3a9c95b1d7633f2b81a5bfd95da39af5e))
|
|
17
|
+
|
|
3
18
|
## [0.5.12](https://github.com/chuppa12/robisie-app/compare/client-v0.5.11...client-v0.5.12) (2026-11-12)
|
|
4
19
|
|
|
5
20
|
|
package/README.md
CHANGED
|
@@ -171,6 +171,8 @@ npm i robisie@latest
|
|
|
171
171
|
|
|
172
172
|
### Aktualizacja po init
|
|
173
173
|
|
|
174
|
+
Przed aktualizacją wymagany jest brak kart `in_progress`, plików `claim.json`/`wynik.json`/`stop.json` w `stateDir/receiver-jobs/local` i `.tester-job.*` w `stateDir`; przy ich obecności poczekaj na rozliczenie. Zachowaj cały stan, dowody i archiwum w prywatnej kopii; nie usuwaj niczego dla pozornej gotowości. Po aktualizacji i `init` uruchom ponownie asystenta, aby odczytał nową rolę.
|
|
175
|
+
|
|
174
176
|
Aktualizuj w katalogu instalacji po prywatnej kopii opisanej w przewodnikach, z tym samym XDG_CONFIG_HOME i CODEX_HOME. `npx robisie init` odświeża zapisanych agentów i mapę ról, używając poprawnego zapisanego klucza bez ponownego wpisywania. W ręcznej instalacji bez login ROBISIE_KEY ma pierwszeństwo; jawny `--key-stdin` zachowuje tor pytania/stdin i umożliwia wymianę klucza. Bez zapisanej instalacji lub przy braku/pustym kluczu init korzysta z dotychczasowego pytania. Wadliwy niepusty klucz, błąd odczytu lub dowiązanie wymagają naprawy lokalnej, bez nadpisywania.
|
|
175
177
|
|
|
176
178
|
Doctor podaje rzeczywiste wersje starych pomocników i markerów ról oraz wersję paczki; wskazane init aktualizuje je przez zwykły zapis z kopiami. Po login doctor używa plików A/B z ostrzeżeniem przy różnym starym ENV; ręczny doctor wymaga obu ENV, a osobni agenci używają źródeł zależnych od dostawcy opisanych wyżej. Poniższy przykład usuwa wcześniejszy ROBISIE_KEY z sesji, aby init użył zapisanego pliku; po init wczytuje ENV dla doctor i agentów, bez xtrace i bez wydruku:
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Package identity and the server contract it speaks. */
|
|
2
2
|
export declare const PACKAGE_NAME = "robisie";
|
|
3
|
-
export declare const PACKAGE_VERSION = "0.5.
|
|
3
|
+
export declare const PACKAGE_VERSION = "0.5.14";
|
|
4
4
|
/**
|
|
5
5
|
* MAJOR of the agent-API contract this package understands.
|
|
6
6
|
* PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Package identity and the server contract it speaks. */
|
|
2
2
|
export const PACKAGE_NAME = "robisie";
|
|
3
|
-
export const PACKAGE_VERSION = "0.5.
|
|
3
|
+
export const PACKAGE_VERSION = "0.5.14"; // x-release-please-version
|
|
4
4
|
/**
|
|
5
5
|
* MAJOR of the agent-API contract this package understands.
|
|
6
6
|
* PARITY: src/lib/mcp/contract-version.ts (AGENT_API_CONTRACT_VERSION) on the server.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schema":1,"sha":"
|
|
1
|
+
{"schema":1,"sha":"51b808253aeb5abcc7c9d6002b3c537f610e90b4","dirty":false}
|
|
@@ -1688,6 +1688,6 @@
|
|
|
1688
1688
|
"status": 0,
|
|
1689
1689
|
"signal": null,
|
|
1690
1690
|
"stdout": "v24.3.0\n",
|
|
1691
|
-
"stderr": "(node:
|
|
1691
|
+
"stderr": "(node:16033) ExperimentalWarning: SQLite is an experimental feature and might change at any time\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
package/dist/engine/tick.cjs
CHANGED
|
@@ -37628,7 +37628,7 @@ var init_constants = __esm({
|
|
|
37628
37628
|
"packages/client/src/constants.ts"() {
|
|
37629
37629
|
"use strict";
|
|
37630
37630
|
PACKAGE_NAME = "robisie";
|
|
37631
|
-
PACKAGE_VERSION = "0.5.
|
|
37631
|
+
PACKAGE_VERSION = "0.5.14";
|
|
37632
37632
|
SUPPORTED_CONTRACT_MAJOR = 1;
|
|
37633
37633
|
DEFAULT_ORIGIN = "https://robisie.app";
|
|
37634
37634
|
MCP_SERVER_NAME = "robisie";
|
|
@@ -77492,7 +77492,9 @@ function localReceiverInput(ctx, card, readAt = (/* @__PURE__ */ new Date()).toI
|
|
|
77492
77492
|
...localUsageEvidence(ctx.evidenceDir, card, contract, readAt),
|
|
77493
77493
|
readAt
|
|
77494
77494
|
};
|
|
77495
|
-
|
|
77495
|
+
const budget = deliveryBudget(card, tester.delivery);
|
|
77496
|
+
const refusal = previousRefusal(import_node_path26.default.join(ctx.tester.delivery.stateDir, "receiver-jobs", "local"), card, tester.delivery);
|
|
77497
|
+
return structuredClone({ card, prepared: { ...prepared, budget, ...refusal ? { refusal } : {} } });
|
|
77496
77498
|
} catch (error48) {
|
|
77497
77499
|
return structuredClone({ card, reason: failure2(error48) });
|
|
77498
77500
|
}
|
|
@@ -77548,10 +77550,31 @@ function localReceiverInvocation(response) {
|
|
|
77548
77550
|
if (invocation.exit !== 0 || !(0, import_node_util6.isDeepStrictEqual)(Object.keys(record10(invocation.modelUsage)), [model]) || !at2.safeParse(invocation.startedAt).success || !at2.safeParse(invocation.finishedAt).success || !Array.isArray(invocation.command)) throw new Error("Brak rzeczywistego wywo\u0142ania Groka");
|
|
77549
77551
|
return invocation;
|
|
77550
77552
|
}
|
|
77553
|
+
function deliveryBudget(card, delivery) {
|
|
77554
|
+
const raw = record10(card.details?.local_receiver).budget;
|
|
77555
|
+
const empty = { delivery: hash6(delivery), count: 0, lastAt: null };
|
|
77556
|
+
if (raw === void 0 || raw === null || raw === "") return empty;
|
|
77557
|
+
const budget = budgetSchema.parse(raw);
|
|
77558
|
+
if (budget.count === 0 !== (budget.lastAt === null)) throw new Error("Nieczytelny bud\u017Cet receivera");
|
|
77559
|
+
return budget.delivery === empty.delivery ? budget : empty;
|
|
77560
|
+
}
|
|
77561
|
+
function previousRefusal(dir, card, delivery) {
|
|
77562
|
+
const previous = record10(card.details?.local_receiver), ref = previous.ref;
|
|
77563
|
+
if (previous.outcome !== "STOP" || typeof ref !== "string" || import_node_path26.default.dirname(ref) !== dir || !external_exports.uuid().safeParse(import_node_path26.default.basename(ref, ".json")).success) return;
|
|
77564
|
+
try {
|
|
77565
|
+
const c = readJson2(ref);
|
|
77566
|
+
if (!c || c.outcome !== "STOP" || c.id !== import_node_path26.default.basename(ref, ".json") || c.archive !== ref || c.input.card.id !== card.id || !("prepared" in c.input) || !(0, import_node_util6.isDeepStrictEqual)(c.input.prepared.tester.delivery, delivery) || c.packetHash !== hash6(c.input) || !(0, import_node_util6.isDeepStrictEqual)(c.patch.local_receiver, previous)) return;
|
|
77567
|
+
localReceiverInvocation(c.response);
|
|
77568
|
+
const results = validateLocalReceiver(record10(c.response).output, c.input);
|
|
77569
|
+
if (results.some((r) => r.verdict !== "PASS")) return failure2(new Error(results.map((r) => `${r.index}: ${r.verdict}: ${r.reason}`).join("; ")));
|
|
77570
|
+
} catch {
|
|
77571
|
+
}
|
|
77572
|
+
}
|
|
77551
77573
|
function completion(dir, claim, response, timestamp3, stop = "") {
|
|
77552
77574
|
const input = claim.input, p = "prepared" in input ? input.prepared : void 0;
|
|
77553
77575
|
const archive = import_node_path26.default.join(dir, `${claim.id}.json`);
|
|
77554
|
-
let
|
|
77576
|
+
let valid = false;
|
|
77577
|
+
let outcome = "STOP", reason = p?.refusal || stop || ("reason" in input ? input.reason : ""), patch = {};
|
|
77555
77578
|
try {
|
|
77556
77579
|
if (!reason && p) {
|
|
77557
77580
|
if (p.events.length < p.contract.min) {
|
|
@@ -77560,6 +77583,7 @@ function completion(dir, claim, response, timestamp3, stop = "") {
|
|
|
77560
77583
|
} else {
|
|
77561
77584
|
const raw = record10(response), invocation = localReceiverInvocation(response), model = text6.parse(invocation.actualModel);
|
|
77562
77585
|
const results = validateLocalReceiver(raw.output, input);
|
|
77586
|
+
valid = true;
|
|
77563
77587
|
if (results.some((r) => r.verdict !== "PASS")) throw new Error(results.map((r) => `${r.index}: ${r.verdict}: ${r.reason}`).join("; "));
|
|
77564
77588
|
const used = new Set(results.flatMap((r) => r.eventIds)), events = p.events.filter((e) => used.has(e.id));
|
|
77565
77589
|
const refs = events.map((e) => `${archive}#/input/prepared/events/${p.events.indexOf(e)}`).join(", ");
|
|
@@ -77600,14 +77624,28 @@ function completion(dir, claim, response, timestamp3, stop = "") {
|
|
|
77600
77624
|
} catch (error48) {
|
|
77601
77625
|
reason = failure2(error48);
|
|
77602
77626
|
}
|
|
77627
|
+
let state = {};
|
|
77628
|
+
const priorBudget = record10(input.card.details?.local_receiver).budget;
|
|
77629
|
+
if (!p && priorBudget !== void 0 && priorBudget !== null && priorBudget !== "") state = { budget: budgetSchema.parse(priorBudget), blocked: true };
|
|
77630
|
+
if (p?.budget) {
|
|
77631
|
+
const attempted = !p.refusal && !record10(response).preparationError && p.events.length >= p.contract.min;
|
|
77632
|
+
const budget = { ...p.budget, count: p.budget.count + Number(attempted), lastAt: attempted ? timestamp3 : p.budget.lastAt };
|
|
77633
|
+
const noVerdict = attempted && outcome === "STOP" && !valid;
|
|
77634
|
+
const blocked = outcome === "STOP" && (!noVerdict || budget.count >= 3);
|
|
77635
|
+
const nextAt = budget.lastAt && new Date(Date.parse(budget.lastAt) + 30 * 6e4).toISOString();
|
|
77636
|
+
if (noVerdict) reason = `${reason}; zadanie ${budget.count}/3; ${blocked ? "sprawdzaj\u0105cy niedost\u0119pny / nie odda\u0142 czytelnej oceny" : `najwcze\u015Bniej ${nextAt}`}`;
|
|
77637
|
+
state = { budget, blocked, ...nextAt ? { nextAt } : {} };
|
|
77638
|
+
}
|
|
77603
77639
|
patch.local_receiver = {
|
|
77604
77640
|
outcome,
|
|
77605
77641
|
reason,
|
|
77606
77642
|
at: timestamp3,
|
|
77607
77643
|
ref: archive,
|
|
77608
77644
|
packet_hash: claim.packetHash,
|
|
77645
|
+
...state,
|
|
77609
77646
|
...p && outcome === "WAIT" ? { count: p.events.length, deadline: p.contract.deadline, trigger: "new-event-or-deadline" } : {}
|
|
77610
77647
|
};
|
|
77648
|
+
if (p?.refusal) patch.local_receiver = input.card.details.local_receiver;
|
|
77611
77649
|
return {
|
|
77612
77650
|
version: 1,
|
|
77613
77651
|
id: claim.id,
|
|
@@ -77618,7 +77656,8 @@ function completion(dir, claim, response, timestamp3, stop = "") {
|
|
|
77618
77656
|
reason,
|
|
77619
77657
|
patch: external_exports.record(external_exports.string(), external_exports.json()).parse(patch),
|
|
77620
77658
|
response: json5(response),
|
|
77621
|
-
archive
|
|
77659
|
+
archive,
|
|
77660
|
+
...p?.budget ? { stop } : {}
|
|
77622
77661
|
};
|
|
77623
77662
|
}
|
|
77624
77663
|
function localReceiverPatch(c, fresh) {
|
|
@@ -77628,7 +77667,7 @@ function localReceiverPatch(c, fresh) {
|
|
|
77628
77667
|
delete d.bench_obligation;
|
|
77629
77668
|
return { ...card, details: d };
|
|
77630
77669
|
};
|
|
77631
|
-
const target = { ...c.input.card, status: c.outcome === "STOP" ? "blocked" : "in_review", details: { ...c.input.card.details, ...c.patch } };
|
|
77670
|
+
const target = { ...c.input.card, status: c.outcome === "STOP" && record10(c.patch.local_receiver).blocked !== false ? "blocked" : "in_review", details: { ...c.input.card.details, ...c.patch } };
|
|
77632
77671
|
const identity = (card, transition2 = false) => {
|
|
77633
77672
|
const v = { ...source(card) };
|
|
77634
77673
|
delete v.updatedAt;
|
|
@@ -77638,7 +77677,7 @@ function localReceiverPatch(c, fresh) {
|
|
|
77638
77677
|
}
|
|
77639
77678
|
return v;
|
|
77640
77679
|
};
|
|
77641
|
-
const transition = target.status
|
|
77680
|
+
const transition = c.outcome === "STOP" && target.status === fresh.status;
|
|
77642
77681
|
if (!(0, import_node_util6.isDeepStrictEqual)(identity(fresh), identity(c.input.card)) && !(0, import_node_util6.isDeepStrictEqual)(identity(fresh, transition), identity(target, transition))) throw new Error("Konflikt zamro\u017Conej karty receivera");
|
|
77643
77682
|
const patch = {
|
|
77644
77683
|
id: fresh.id,
|
|
@@ -77697,6 +77736,8 @@ function claimFor(dir) {
|
|
|
77697
77736
|
if ("prepared" in c.input) {
|
|
77698
77737
|
const p = c.input.prepared;
|
|
77699
77738
|
localTesterContract(c.input.card, p.tester);
|
|
77739
|
+
if (p.budget !== void 0 && !(0, import_node_util6.isDeepStrictEqual)(budgetSchema.parse(p.budget), deliveryBudget(c.input.card, p.tester.delivery)))
|
|
77740
|
+
throw new Error("Zmieniony bud\u017Cet receivera");
|
|
77700
77741
|
if (!(0, import_node_util6.isDeepStrictEqual)(p.contract, localEffectCheck(c.input.card)) || !(0, import_node_util6.isDeepStrictEqual)(p.authors, authors(c.input.card)) || !(0, import_node_util6.isDeepStrictEqual)(p.pair, record10(c.input.card.details?.maszynista).clientPair) || digest4(p.report) !== p.reportSha256 || [new Set(p.events.map((e) => e.id)), new Set(p.events.map((e) => e.operation)), new Set(p.events.map((e) => e.sha256))].some((s) => s.size !== p.events.length) || p.events.some((e) => digest4(e.bytes) !== e.sha256 || e.sha !== p.tester.delivery.sha || Date.parse(at2.parse(e.at)) <= Date.parse(String(record10(c.input.card.details?.landed).at)) || Date.parse(e.at) > Math.min(Date.parse(at2.parse(p.readAt)), Date.parse(p.contract.deadline)))) throw new Error("Zmieniony pakiet dowod\xF3w");
|
|
77701
77742
|
} else text6.parse(c.input.reason);
|
|
77702
77743
|
return c;
|
|
@@ -77733,7 +77774,7 @@ function readLocalReceiverJob(dir) {
|
|
|
77733
77774
|
}
|
|
77734
77775
|
if (raw !== void 0) {
|
|
77735
77776
|
const r = raw;
|
|
77736
|
-
const expected = completion(dir, claim, r.response, at2.parse(r.at), r.outcome === "STOP" ? r.reason : "");
|
|
77777
|
+
const expected = completion(dir, claim, r.response, at2.parse(r.at), r.stop ?? (r.outcome === "STOP" ? r.reason : ""));
|
|
77737
77778
|
if (!(0, import_node_util6.isDeepStrictEqual)(r, expected)) {
|
|
77738
77779
|
atomic2(import_node_path26.default.join(dir, `${claim.id}-invalid.json`), raw);
|
|
77739
77780
|
return failed(dir, "Zmieniony completion receivera");
|
|
@@ -77815,7 +77856,7 @@ async function startLocalReceiverJob(dir, input) {
|
|
|
77815
77856
|
throw error48;
|
|
77816
77857
|
}
|
|
77817
77858
|
try {
|
|
77818
|
-
if ("reason" in input || input.prepared.events.length < input.prepared.contract.min) save3(dir, completion(dir, claim, null, (/* @__PURE__ */ new Date()).toISOString()));
|
|
77859
|
+
if ("reason" in input || input.prepared.refusal || input.prepared.events.length < input.prepared.contract.min) save3(dir, completion(dir, claim, null, (/* @__PURE__ */ new Date()).toISOString()));
|
|
77819
77860
|
else {
|
|
77820
77861
|
const { launchLocalReceiver: launchLocalReceiver2 } = await Promise.resolve().then(() => (init_receiver_job(), receiver_job_exports));
|
|
77821
77862
|
await launchLocalReceiver2(dir);
|
|
@@ -77846,10 +77887,17 @@ function runLocalReceiverJob(dir, run) {
|
|
|
77846
77887
|
let response = null, stop = "";
|
|
77847
77888
|
try {
|
|
77848
77889
|
if ("prepared" in claim.input) {
|
|
77849
|
-
const p = claim.input.prepared
|
|
77850
|
-
|
|
77890
|
+
const p = claim.input.prepared;
|
|
77891
|
+
try {
|
|
77892
|
+
const loaded = loadClientPair(process.env.ROBISIE_ENGINE_CONFIG);
|
|
77893
|
+
if (!(0, import_node_util6.isDeepStrictEqual)(loaded, { selection: p.pair.selection, config: p.pair.config })) throw new Error("Zmieniona konfiguracja pary");
|
|
77894
|
+
} catch (error48) {
|
|
77895
|
+
response = { preparationError: failure2(error48) };
|
|
77896
|
+
throw error48;
|
|
77897
|
+
}
|
|
77851
77898
|
if (p.events.length >= p.contract.min) {
|
|
77852
|
-
|
|
77899
|
+
const slot = [p.tester.delivery, p.budget?.count ?? 0];
|
|
77900
|
+
exclusive(import_node_path26.default.join(dir, `${hash6(slot)}.job.json`), { id: claim.id, packetHash: claim.packetHash });
|
|
77853
77901
|
response = run(claim.input, dir);
|
|
77854
77902
|
localReceiverInvocation(response);
|
|
77855
77903
|
let repair;
|
|
@@ -77891,6 +77939,9 @@ function localUsageEvidence(root, card, c, readAt) {
|
|
|
77891
77939
|
}
|
|
77892
77940
|
function localReceiverWaitUnchanged(ctx, card, readAt = (/* @__PURE__ */ new Date()).toISOString()) {
|
|
77893
77941
|
const previous = record10(card.details?.local_receiver);
|
|
77942
|
+
const tester = localTesterInput(ctx.tester, card), budget = deliveryBudget(card, tester.delivery);
|
|
77943
|
+
if (previous.budget && record10(previous.budget).delivery !== budget.delivery) return false;
|
|
77944
|
+
if (previous.budget && budget.delivery === hash6(tester.delivery) && previous.outcome === "STOP" && previous.blocked === false && budget.lastAt && Date.parse(at2.parse(readAt)) < Date.parse(budget.lastAt) + 30 * 6e4) return true;
|
|
77894
77945
|
if (previous.outcome !== "WAIT") return false;
|
|
77895
77946
|
try {
|
|
77896
77947
|
if (Date.parse(at2.parse(readAt)) >= Date.parse(at2.parse(previous.deadline))) return false;
|
|
@@ -77899,7 +77950,7 @@ function localReceiverWaitUnchanged(ctx, card, readAt = (/* @__PURE__ */ new Dat
|
|
|
77899
77950
|
return false;
|
|
77900
77951
|
}
|
|
77901
77952
|
}
|
|
77902
|
-
var import_node_crypto14, import_node_fs23, import_node_path26, import_node_util6, text6, at2, contractSchema, record10, digest4, json5, hash6, failure2, receiverPrograms, receiverEfforts, answerSchema, repairInstruction;
|
|
77953
|
+
var import_node_crypto14, import_node_fs23, import_node_path26, import_node_util6, text6, at2, contractSchema, budgetSchema, record10, digest4, json5, hash6, failure2, receiverPrograms, receiverEfforts, answerSchema, repairInstruction;
|
|
77903
77954
|
var init_local_receiver = __esm({
|
|
77904
77955
|
"maszynista/local-receiver.ts"() {
|
|
77905
77956
|
"use strict";
|
|
@@ -77920,6 +77971,11 @@ var init_local_receiver = __esm({
|
|
|
77920
77971
|
min: external_exports.number().int().min(3),
|
|
77921
77972
|
deadline: at2
|
|
77922
77973
|
});
|
|
77974
|
+
budgetSchema = external_exports.strictObject({
|
|
77975
|
+
delivery: external_exports.string().regex(/^[a-f0-9]{64}$/),
|
|
77976
|
+
count: external_exports.number().int().nonnegative(),
|
|
77977
|
+
lastAt: at2.nullable()
|
|
77978
|
+
});
|
|
77923
77979
|
record10 = (v) => v !== null && typeof v === "object" && !Array.isArray(v) ? v : {};
|
|
77924
77980
|
digest4 = (v) => (0, import_node_crypto14.createHash)("sha256").update(v).digest("hex");
|
|
77925
77981
|
json5 = (v) => external_exports.json().parse(v);
|
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.14 \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.14) <!-- 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
|
|
|
@@ -247,6 +247,8 @@ Doctor runs the helper file via node, the agent via npx. `ROBISIE_PROJECT_CONTEX
|
|
|
247
247
|
|
|
248
248
|
After the npm installation above, prepare the repo in that same previously empty directory with this block. `Robisie Demo <demo@example.invalid>` is an explicit identity local to this exercise; use your own for a real project. Writes use `wx`: if a file exists or a write fails, preserve data, resolve the cause and stop subsequent steps. `.gitignore` excludes the local npm installation, configuration and usage input from this small repo; its product is `greet.cjs`.
|
|
249
249
|
|
|
250
|
+
Already have an installation or repository? Work in its directory: skip “Installation” (directory and manifest creation and `npm i robisie`) if the package is already installed, and use “Update after init” if you need the newer role. In an existing repository skip the entire preparation block below: `git init`, writing `.gitignore` and `greet.cjs`, `git add` and the demo commit; preserve manifests, configuration and existing files. Do not overwrite `robisie.config.json`: inspect and complete your own configuration using the guidance below. The commit author is set with `git config --local`, never globally; preserve your own author in your repository. Use the `greet.cjs` example in a separate empty repository if you do not already have that file.
|
|
251
|
+
|
|
250
252
|
<!-- local-repo-setup:start -->
|
|
251
253
|
```sh
|
|
252
254
|
git init --initial-branch=main &&
|
|
@@ -333,7 +335,9 @@ Choose a project with policy `enforced` and `engine.delivery: "local"` using the
|
|
|
333
335
|
|
|
334
336
|
Before creating the card, replace the example `deadline` with a future ISO 8601 timestamp including a timezone and enough time for execution, the tester and three uses. In `seed_provenance.authoring_providers`, record the actual providers of the seed author (`by`), proposal author (`proposal_by`) and package author (`packager_by`); copying example providers does not establish independence. The engine supplies transport, delivery and tester results; do not manufacture these records.
|
|
335
337
|
|
|
336
|
-
After authorization, the CEO prepares the card
|
|
338
|
+
After authorization, the CEO prepares the content and may promote the card to `ready`; the local engine can also promote a complete draft (`draft`) automatically after the required gates, so do not repeat promotion or duplicate the card. Run `npx robisie factory run --engine-config ./robisie.config.json --once` and observe the card until a real tester PASS on the landed SHA and settlement (ACK): no `.tester-job.lock`, `.tester-job.input.json` or `.tester-job.result.json` in `stateDir`. PASS without ACK is insufficient. A fresh `get_task({id, include:[], fullDetails:true})` (the created card’s id) must show `details.test.verdict=PASS` and `details.test.sha=details.landed.sha`; process transport alone is not tester PASS.
|
|
339
|
+
|
|
340
|
+
A full read is `get_task({id, include:[], fullDetails:true})`: it already includes `test`, `landed` and `local_receiver`, without adding them to `include`. A `list_tasks` list needs explicit `detailsKeys` for the required details and omits `done` by default; check the result and completion by the known ID, not by disappearance from the list. Review is asynchronous and takes minutes; “Recenzja … trwa” means progress. STOP is a nonzero tick exit code, not a count of repeated messages. One format repair within the same acceptance job is normal and does not consume another budget position: `response.repair` and `repair.error` are in the archive referenced by `local_receiver.ref`.
|
|
337
341
|
|
|
338
342
|
Save the complete input below as `usage.json` in the current directory. Take `repo` from `engine.repo` and `stateDir` from engine configuration (resolve relative configuration paths against its directory; use absolute paths here). Copy `landed.sha` and `landed.at` from a fresh read of this card's `details.landed`; the values below are fictitious. Copy `source` and `deadline` from the JSON text in `details.effect_check`; `source` is relative to `stateDir/evidence`.
|
|
339
343
|
|
|
@@ -357,7 +361,9 @@ npx robisie usage --input ./usage.json
|
|
|
357
361
|
|
|
358
362
|
Success prints one JSON `UsageEvent` with exit 0. Change `operation` to `powitanie:Bartek` and `program.args` to `["Bartek"]`, run the same command, then repeat with `powitanie:Celina` and `["Celina"]`. The equivalent `--input=./usage.json` form is supported. Three distinct operations and distinct artifact bytes are required; three identical operations do not count as three. Do not append events manually. The CLI executes the landed SHA in a separate worktree; it does not judge the result or set `done`.
|
|
359
363
|
|
|
360
|
-
Refusal or IO failure returns exit 1 and a next step. An entry may already exist: inspect `stateDir/evidence/<source>` and the referenced artifacts before retrying, preserve evidence and resolve the cause. Never retry the program automatically. After three accepted uses, another `factory run --once` tick starts/settles independent acceptance; only a fresh `get_task({id, include:[
|
|
364
|
+
Refusal or IO failure returns exit 1 and a next step. An entry may already exist: inspect `stateDir/evidence/<source>` and the referenced artifacts before retrying, preserve evidence and resolve the cause. Never retry the program automatically. After three accepted uses, another `factory run --once` tick starts/settles independent acceptance; only a fresh `get_task({id, include:[], fullDetails:true})` confirms `details.local_receiver.outcome=PASS` and `status=done`. The package fixture does not prove actual customer use.
|
|
365
|
+
|
|
366
|
+
Acceptance has three outcomes: PASS proceeds through independent acceptance recorded with key B to `done`; waiting keeps the card in “Awaiting acceptance” (“Do odbioru”); a blocking STOP moves it to “Blocked” (“Zablokowane”). Every job reaching the model consumes a budget position, including a job with a valid assessment. Without a valid assessment and with `n<3`, the card waits 30 minutes with `local_receiver.reason` containing the literal `zadanie n/3; najwcześniej <czas UTC>` (job n/3; not before <UTC time>); the tick has exit 0, and checking resumes on the first subsequent tick after that time. With `n>=3`, no valid assessment blocks the card. Returning does not reset the counter. `--once` needs another tick, including to settle the result; `factory run` without `--once` repeats ticks itself.
|
|
361
367
|
|
|
362
368
|
### Manual Builder card
|
|
363
369
|
|
|
@@ -397,7 +403,13 @@ The project owner can use Dashboard → Planer → card → Etap → “Zrobione
|
|
|
397
403
|
|
|
398
404
|
A card in the “Blocked” stage waits for the owner's decision. The scope protection is intentional: the worker key A cannot close the card — setting `done` with key A is refused with 403. `done` is reserved for accepting a result with evidence, not for releasing scope. Do not broaden key A or change roles to bypass the refusal.
|
|
399
405
|
|
|
400
|
-
|
|
406
|
+
**Return the same delivery to acceptance:** first the assistant reads the full card by ID with `get_task({id, include:[], fullDetails:true})` and identifies an acceptance block from `details.local_receiver.reason`. A criterion number with FAIL/BRAK-DOWODU, e.g. `Error: 0: FAIL: …`, is a valid refusal; returning alone does not change the assessment or obtain a new model assessment. Another readable acceptance-block reason means no valid assessment: after resolving its named cause, a full read and the owner's request, assistant A calls `update_task({id, status: "in_review"})` — only `blocked → in_review` — then reads the same full ID again, verifying status and unchanged details. The next tick checks immediately, without `ready` or a new Worker. This also applies to readable historical reasons: `…; zadanie 3/3; sprawdzający niedostępny / nie oddał czytelnej oceny`, `Cytat nie odpowiada dowodowi/ID`, `Niepoprawny kontrakt JSON`, `Niepełna ocena/tożsamość`, `Niepewny terminal receivera; bez ponowienia modelu`.
|
|
407
|
+
|
|
408
|
+
Missing/null/empty/unreadable `local_receiver.reason` or failure to identify an acceptance block: preserve state and tell the owner what is missing, without guessing. Do not change `details`, or change, reset or delete `details.local_receiver` or files in `stateDir/receiver-jobs`, including claims, results and the archive; “zadanie n/3” is not a defect to fix, and the budget remains consumed after return.
|
|
409
|
+
|
|
410
|
+
The assistant returns using key A (a key used for B cannot later record independent acceptance), a restricted account cannot leave `blocked`, a full active-card limit requires freeing a slot, and clicking the panel under `enforced` does not replace the assistant; on any tool refusal state stays unchanged and the owner receives the literal reason.
|
|
411
|
+
|
|
412
|
+
- **Retry work (not acceptance of the same delivery):** open the Planner in the Dashboard (`https://robisie.app/dashboard/plugins/planer`) (“Projects” section), choose a project and card, then select “Ready” (`ready`) under “Stage”. The card returns to the agent's queue.
|
|
401
413
|
- **Abandon:** in the same card window, click “Delete”; at “Are you sure you want to delete this?” choose “Yes, delete”. **Deletion is irreversible — it cannot be undone.** The `masz-<first 8 characters of the card id>` branch with the agent's work remains in the repository.
|
|
402
414
|
|
|
403
415
|
<!-- sekcja: aktualizacja -->
|
|
@@ -415,6 +427,8 @@ npm i robisie@latest
|
|
|
415
427
|
|
|
416
428
|
### Update after init
|
|
417
429
|
|
|
430
|
+
Before updating, require no `in_progress` cards, no `claim.json`/`wynik.json`/`stop.json` files in `stateDir/receiver-jobs/local` and no `.tester-job.*` in `stateDir`; if present, wait for settlement. Preserve all state, evidence and archives in the private backup. Do not delete files to appear ready. After updating and `init`, restart the assistant so it reads the new role.
|
|
431
|
+
|
|
418
432
|
Work in the installation directory. First prepare the backup below. Explicitly choose the previous release compatible with the server contract MAJOR; inspect the installed version with `node -p 'require("./node_modules/robisie/package.json").version'`. Replace the example `previous_version='0.1.1'` with that chosen version. `npm pack robisie@<wersja>` means pack the explicitly selected release, not an arbitrary tgz. Retain its filename and the backup directory. Disable xtrace; never print or paste secrets.
|
|
419
433
|
|
|
420
434
|
```sh
|
|
@@ -584,6 +598,8 @@ Retained backups, including private update copies, may still contain the key aft
|
|
|
584
598
|
<!-- sekcja: diagnoza -->
|
|
585
599
|
## Diagnosis
|
|
586
600
|
|
|
601
|
+
Temporarily: lines control-room, straż CR, WYDAWCA and the “dosiej karty” alarm are diagnostics and are not client instructions.
|
|
602
|
+
|
|
587
603
|
Without an installation, begin with the account and Connect → init; repeating doctor does not create an account. With an existing installation, doctor reads the record and key first (after login: installation files; manual installation: ENV-first), then checks the network. Resolve record/key-read problems first while preserving data; a network failure on an existing installation does not call for a new account. Check connectivity and server access.
|
|
588
604
|
|
|
589
605
|
CLI messages remain in Polish. Match the message, then follow the English explanation:
|
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.14) <!-- 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
|
|
|
@@ -292,6 +292,8 @@ Doctor uruchamia plik pomocnika przez node, agent przez npx. `ROBISIE_PROJECT_CO
|
|
|
292
292
|
|
|
293
293
|
Po instalacji npm z sekcji powyżej, w tym samym pustym dotąd katalogu przygotuj repo poniższym blokiem. Tożsamość `Robisie Demo <demo@example.invalid>` jest jawna i lokalna dla tego ćwiczenia; dla własnego projektu ustaw własną. Zapis używa `wx`: przy istniejącym pliku lub błędzie zachowaj dane, wyjaśnij przyczynę i nie wykonuj dalszych kroków. `.gitignore` wyłącza lokalną instalację npm, konfigurację i input użycia z tego małego repo; produktem jest `greet.cjs`.
|
|
294
294
|
|
|
295
|
+
Masz już instalację lub repo? Pracuj w jego katalogu: pomiń „Instalacja” (tworzenie katalogu i manifestu oraz `npm i robisie`), jeśli paczka już jest zainstalowana, i wybierz „Aktualizacja po init”, jeśli potrzebujesz nowszej roli. W istniejącym repo pomiń cały blok przygotowania poniżej: `git init`, zapis `.gitignore` i `greet.cjs`, `git add` i demonstracyjny commit; zachowaj manifesty, konfigurację oraz istniejące pliki. Nie nadpisuj też `robisie.config.json`: sprawdź i uzupełnij własną konfigurację zgodnie z opisem. Autor commita jest ustawiany przez `git config --local`, nigdy globalnie; w swoim repo zachowaj własnego autora. Przykład `greet.cjs` uruchamiaj tylko w osobnym pustym repo, jeśli takiego pliku jeszcze nie masz.
|
|
296
|
+
|
|
295
297
|
<!-- local-repo-setup:start -->
|
|
296
298
|
```sh
|
|
297
299
|
git init --initial-branch=main &&
|
|
@@ -380,7 +382,9 @@ Wybierz projekt z polityką `enforced` i konfiguracją `engine.delivery: "local"
|
|
|
380
382
|
|
|
381
383
|
Przed utworzeniem karty zastąp przykładowy `deadline` przyszłym terminem ISO 8601 ze strefą czasową, obejmującym wykonanie, testera i trzy użycia. W `seed_provenance.authoring_providers` wpisz prawdziwych dostawców autorów: `by` autora zasiewu, `proposal_by` autora propozycji, `packager_by` autora pakietu; nie kopiuj przykładowych nazw dla pozorowania niezależności. Silnik dopisuje transport, dostawę i wynik testera — nie twórz tych dowodów ręcznie.
|
|
382
384
|
|
|
383
|
-
Po autoryzacji CEO przygotowuje kartę do `ready
|
|
385
|
+
Po autoryzacji CEO przygotowuje treść i może promować kartę do `ready`; lokalny silnik potrafi też automatycznie promować kompletny `draft` po przejściu wymaganych bramek, więc nie ponawiaj promocji ani nie twórz kopii karty. Uruchamiaj `npx robisie factory run --engine-config ./robisie.config.json --once` i obserwuj kartę aż do rzeczywistego PASS testera na landed SHA oraz jego rozliczenia (ACK): brak `.tester-job.lock`, `.tester-job.input.json` i `.tester-job.result.json` w `stateDir`. Sam PASS bez ACK nie wystarcza. Świeży odczyt `get_task({id, include:[], fullDetails:true})` (id utworzonej karty) musi pokazać `details.test.verdict=PASS` oraz `details.test.sha=details.landed.sha`; sam transport procesu nie jest PASS testera.
|
|
386
|
+
|
|
387
|
+
Pełny odczyt to `get_task({id, include:[], fullDetails:true})`: zawiera już `test`, `landed` i `local_receiver`, bez dopisywania ich do `include`. Lista `list_tasks` wymaga jawnego `detailsKeys` dla potrzebnych szczegółów i domyślnie pomija `done`; wynik i zakończenie sprawdzaj po znanym ID, nie przez zniknięcie z listy. Recenzja jest asynchroniczna, trwa rzędu minut; „Recenzja … trwa” oznacza ruch. STOP rozpoznasz po niezerowym kodzie taktu, nie po liczbie powtórzeń komunikatu. Jedna naprawa formy w tym samym zadaniu odbioru jest normalna i nie jest kolejną pozycją budżetu: `response.repair` i `repair.error` znajdziesz w archiwum wskazanym przez `local_receiver.ref`.
|
|
384
388
|
|
|
385
389
|
Zapisz poniższy pełny input jako `usage.json` w bieżącym katalogu. `repo` weź z `engine.repo`, a `stateDir` z konfiguracji silnika (ścieżki względne konfiguracji rozwiąż względem jej katalogu; tu użyj absolutnych). `landed.sha` i `landed.at` przepisz ze świeżego odczytu `details.landed` tej karty — poniższe wartości są fikcyjne. `source` i `deadline` przepisz z JSON w `details.effect_check`; `source` jest względem `stateDir/evidence`.
|
|
386
390
|
|
|
@@ -404,7 +408,9 @@ npx robisie usage --input ./usage.json
|
|
|
404
408
|
|
|
405
409
|
Po sukcesie otrzymasz jeden `UsageEvent` JSON i exit 0. Zmień `operation` na `powitanie:Bartek` oraz `program.args` na `["Bartek"]` i wykonaj to samo polecenie, potem analogicznie `powitanie:Celina` i `["Celina"]`. Możesz użyć równoważnego `--input=./usage.json`. Potrzebne są trzy różne operacje i różne bajty artefaktów; trzy identyczne operacje nie liczą się jako trzy. Nie dopisuj zdarzeń ręcznie. CLI wykonuje program na landed SHA w osobnym worktree, nie ocenia wyniku i nie ustawia `done`.
|
|
406
410
|
|
|
407
|
-
Przy odmowie lub błędzie IO polecenie zwraca exit 1 z następnym krokiem. Wpis może już istnieć: przed ponowieniem sprawdź `stateDir/evidence/<source>` oraz wskazane artefakty, zachowaj dowody i wyjaśnij przyczynę. Nie ponawiaj programu automatycznie. Po trzech przyjętych użyciach kolejny takt `factory run --once` uruchamia/rozlicza niezależny odbiór; dopiero świeży `get_task({id, include:[
|
|
411
|
+
Przy odmowie lub błędzie IO polecenie zwraca exit 1 z następnym krokiem. Wpis może już istnieć: przed ponowieniem sprawdź `stateDir/evidence/<source>` oraz wskazane artefakty, zachowaj dowody i wyjaśnij przyczynę. Nie ponawiaj programu automatycznie. Po trzech przyjętych użyciach kolejny takt `factory run --once` uruchamia/rozlicza niezależny odbiór; dopiero świeży `get_task({id, include:[], fullDetails:true})` potwierdza `details.local_receiver.outcome=PASS` i `status=done`. Lokalny przykład w testach paczki nie dowodzi użycia u klienta.
|
|
412
|
+
|
|
413
|
+
Odbiór ma trzy wyniki: PASS prowadzi przez niezależny zapis odbioru kluczem B do `done`; oczekiwanie pozostawia kartę w „Do odbioru”; STOP blokujący przenosi ją do „Zablokowane”. Każde zadanie dochodzące do modelu zużywa pozycję budżetu, także zadanie z ważną oceną. Przy braku ważnej oceny i `n<3` karta czeka 30 minut, z `local_receiver.reason` zawierającym `zadanie n/3; najwcześniej <czas UTC>`; takt ma exit 0, a pierwsze sprawdzenie następuje w pierwszym kolejnym takcie po tym czasie. Przy `n>=3` brak ważnej oceny blokuje kartę. Powrót nie zeruje licznika. `--once` wymaga uruchomienia kolejnego taktu także do rozliczenia wyniku; `factory run` bez `--once` ponawia takty samo.
|
|
408
414
|
|
|
409
415
|
### Ręczna karta Buildera
|
|
410
416
|
|
|
@@ -444,7 +450,13 @@ Właściciel projektu może w panelu: Dashboard → Planer → karta → Etap wy
|
|
|
444
450
|
|
|
445
451
|
Karta w etapie „Zablokowane” czeka na decyzję właściciela. Ochrona zakresu jest celowa: klucz roboczy A (worker) nie zamknie karty — próba ustawienia `done` kluczem A kończy się odmową 403. `done` jest zarezerwowane dla odbioru wyniku z dowodem, nie do zwalniania zakresu. Nie rozszerzaj klucza A ani nie zmieniaj ról, żeby obejść odmowę.
|
|
446
452
|
|
|
447
|
-
|
|
453
|
+
**Powrót tej samej dostawy do odbioru:** najpierw asystent odczytuje całą kartę po jej ID przez `get_task({id, include:[], fullDetails:true})` i rozpoznaje blokadę odbioru z `details.local_receiver.reason`. Numer kryterium i FAIL/BRAK-DOWODU, np. `Error: 0: FAIL: …`, to ważna odmowa; sam powrót nie zmienia oceny i nie daje nowej oceny modelu. Inny czytelny powód blokady odbioru oznacza brak ważnej oceny: po usunięciu nazwanej przyczyny, pełnym odczycie i na prośbę właściciela asystent A wykonuje `update_task({id, status: "in_review"})` — wyłącznie `blocked → in_review` — a następnie ponownie odczytuje całe to samo ID, sprawdzając status i niezmienione szczegóły. Następny takt sprawdza od razu, bez `ready` i nowego Workera. Dotyczy to także czytelnych historycznych powodów: `…; zadanie 3/3; sprawdzający niedostępny / nie oddał czytelnej oceny`, `Cytat nie odpowiada dowodowi/ID`, `Niepoprawny kontrakt JSON`, `Niepełna ocena/tożsamość`, `Niepewny terminal receivera; bez ponowienia modelu`.
|
|
454
|
+
|
|
455
|
+
Brak/null/pusty/nieczytelny `local_receiver.reason` albo brak rozpoznania blokady odbioru: zachowaj stan i zgłoś brak właścicielowi, bez zgadywania. Nie zmieniaj `details`, nie zmieniaj, nie zeruj ani nie usuwaj `details.local_receiver` i plików `stateDir/receiver-jobs`, w tym claimów, wyników i archiwum; „zadanie n/3” nie jest usterką do naprawienia, a budżet po powrocie pozostaje wykorzystany.
|
|
456
|
+
|
|
457
|
+
Powrót wykonuje asystent z kluczem A (klucz użyty do wejścia B nie zapisze później niezależnego odbioru), konto ograniczone nie wyjdzie z `blocked`, pełny limit aktywnych kart wymaga zwolnienia miejsca, kliknięcie w panelu przy `enforced` nie zastępuje asystenta; przy każdej odmowie narzędzia stan zostaje, a właściciel dostaje dosłowny powód.
|
|
458
|
+
|
|
459
|
+
- **Ponów pracę (nie odbiór tej samej dostawy):** otwórz Planer w panelu Dashboard (`https://robisie.app/dashboard/plugins/planer`) (sekcja „Projekty”), wybierz projekt i kartę. W sekcji „Etap” wybierz „Do wzięcia” (`ready`), a karta wróci do kolejki agenta.
|
|
448
460
|
- **Porzuć:** w tym samym oknie karty kliknij „Usuń”; na pytanie „Na pewno usunąć?” wybierz „Tak, usuń”. **Usunięcie jest nieodwracalne — nie da się go cofnąć.** Gałąź `masz-<pierwsze 8 znaków id karty>` z pracą agenta zostaje w repozytorium.
|
|
449
461
|
|
|
450
462
|
<!-- sekcja: aktualizacja -->
|
|
@@ -462,6 +474,8 @@ npm i robisie@latest
|
|
|
462
474
|
|
|
463
475
|
### Aktualizacja po init
|
|
464
476
|
|
|
477
|
+
Przed aktualizacją wymagany jest brak kart `in_progress`, plików `claim.json`/`wynik.json`/`stop.json` w `stateDir/receiver-jobs/local` oraz `.tester-job.*` w `stateDir`; przy ich obecności poczekaj na rozliczenie pracy. Zachowaj cały stan, dowody i archiwum w prywatnej kopii. Nie usuwaj plików dla pozornej gotowości. Po aktualizacji i `init` uruchom ponownie asystenta, aby odczytał nową rolę.
|
|
478
|
+
|
|
465
479
|
Pracuj w katalogu instalacji. Najpierw przygotuj kopię poniżej. Wybierz jawnie poprzednią, zgodną z MAJOR kontraktu serwera wersję; sprawdź zainstalowaną przez `node -p 'require("./node_modules/robisie/package.json").version'`. Przykład `previous_version='0.1.1'` zastąp tą wybraną wersją. `npm pack robisie@<wersja>` pobiera właśnie to wydanie, nie przypadkowy plik tgz; zachowaj jego nazwę i katalog kopii. Nie wykonuj przepisu z włączonym xtrace, nie drukuj ani nie wklejaj sekretów.
|
|
466
480
|
|
|
467
481
|
```sh
|
|
@@ -631,6 +645,8 @@ Zachowane backupy, także prywatne kopie aktualizacji, mogą nadal zawierać klu
|
|
|
631
645
|
<!-- sekcja: diagnoza -->
|
|
632
646
|
## Diagnoza
|
|
633
647
|
|
|
648
|
+
Tymczasowo: linie control-room, straż CR, WYDAWCA i alarm „dosiej karty” są diagnostyką i nie są poleceniami klienta.
|
|
649
|
+
|
|
634
650
|
Bez instalacji zacznij od konta i Connect → init; samo ponawianie doctor nie zakłada konta. Przy istniejącej instalacji doctor najpierw odczytuje ewidencję i klucz (po login: pliki instalacji; ręcznie: ENV-first), a potem sprawdza sieć. Najpierw rozwiąż wskazany problem ewidencji/odczytu klucza, zachowując dane; błąd sieci przy istniejącej instalacji nie oznacza potrzeby nowego konta. Sprawdź połączenie i dostęp do serwera.
|
|
635
651
|
|
|
636
652
|
Komunikaty CLI pozostają po polsku. Dopasuj komunikat, a potem wykonaj wskazaną czynność:
|
package/package.json
CHANGED
package/roles/ceo-client.md
CHANGED
|
@@ -87,7 +87,7 @@ Before every `create_task`, call `get_board` for the selected project. Then call
|
|
|
87
87
|
|
|
88
88
|
- If an open card already covers the same outcome, extend the existing card instead of creating a duplicate only when it is `draft` or `ready`. Read its full details first, preserve every unrelated field, update the complete details deliberately, and use `move_task` only when the plan order must change.
|
|
89
89
|
- If the matching card is `in_progress`, `in_review`, or `delivered`, do not mutate its scope or evidence. Tell the operator that the outcome is already active. If the request adds genuinely separate value, wait until the operator agrees, then create a separate `draft` follow-up; otherwise keep the existing card and create nothing.
|
|
90
|
-
- If the matching card is `blocked`, do not mutate it and do not duplicate its outcome. Report the concrete obstacle and coordinate its resolution with the operator. Only if the operator confirms genuinely distinct work may you create a separate `draft` follow-up.
|
|
90
|
+
- If the matching card is `blocked`, do not mutate it and do not duplicate its outcome, except for the status-only local receiver return below. Report the concrete obstacle and coordinate its resolution with the operator. Only if the operator confirms genuinely distinct work may you create a separate `draft` follow-up.
|
|
91
91
|
- Reuse a suitable existing track. An existing broad work track is suitable for a single outcome; never create a new track merely to repeat the card title. If the operator identifies a suitable existing place, use it. Use `create_track` only when no existing track can hold the plan.
|
|
92
92
|
- Create new work as `draft`. Re-read each created card before promotion.
|
|
93
93
|
- Inspect any `similarOpenCards` warning. If it may identify a duplicate, stop, compare both cards, and do not promote the new card until the overlap is resolved.
|
|
@@ -95,6 +95,16 @@ Before every `create_task`, call `get_board` for the selected project. Then call
|
|
|
95
95
|
- After every `create_task`, require the returned id, title, status, and track to match the request; then call `get_task` and require the exact project, track, title, status, and `run4Harness` marker when the operator supplied one.
|
|
96
96
|
- After `move_task`, require the exact moved card and target track in the result. Then call `get_board` and require the requested card precedes the referenced card on the exact track before any transition to `ready` or call to `spawn_builder`.
|
|
97
97
|
|
|
98
|
+
## Return the same local delivery to acceptance
|
|
99
|
+
|
|
100
|
+
This is the only exception for a `blocked` card: after a full read with `get_task({id, include:[], fullDetails:true})`, and only on the owner's explicit request, return the same delivery through `update_task({id, status: "in_review"})` (`blocked → in_review`, no other fields), then perform a full read-back of the same id to verify status and unchanged details; the next engine tick checks immediately without `ready` or a new Worker.
|
|
101
|
+
|
|
102
|
+
First identify a local acceptance block from the full card and `details.local_receiver.reason`: if the reason is missing, null, empty, or unreadable, or the block cannot be identified as local acceptance, leave the card unchanged and report what is missing; never guess or repair the data. A criterion number with FAIL/BRAK-DOWODU (for example `Error: 0: FAIL: …`) is a valid refusal: returning status alone does not obtain a new assessment, so report it instead of promising another review. Another readable local acceptance block means no valid assessment: return only after resolving its named cause, including readable historical reasons on the same terms as current ones: `…; zadanie 3/3; sprawdzający niedostępny / nie oddał czytelnej oceny`, `Cytat nie odpowiada dowodowi/ID`, `Niepoprawny kontrakt JSON`, `Niepełna ocena/tożsamość`, `Niepewny terminal receivera; bez ponowienia modelu`.
|
|
103
|
+
|
|
104
|
+
Never change `details`, or change, reset, or delete `details.local_receiver` or any files in `stateDir/receiver-jobs`; preserve claims, results, archives and the budget, since `zadanie n/3` is not a defect to fix. Never duplicate the delivery, mutate active scope, review or accept it yourself; independent acceptance still belongs to B after receiver PASS.
|
|
105
|
+
|
|
106
|
+
Return using key A (a key used for B cannot later record independent acceptance), a restricted account cannot leave `blocked`, a full active-card limit requires freeing a slot, and clicking the panel under `enforced` does not replace the assistant; on any tool refusal leave the state unchanged and give the owner the literal reason.
|
|
107
|
+
|
|
98
108
|
## Lightweight card — four inline fields
|
|
99
109
|
|
|
100
110
|
Every card carries its complete handoff inline in `details`:
|