robisie 0.6.3 → 0.6.4

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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # Historia zmian klienta / Client changelog
2
2
 
3
+ ## [0.6.4](https://github.com/chuppa12/robisie-app/compare/client-v0.6.3...client-v0.6.4) (2026-11-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **client:** most zasiewu stempluje autorów kart z linii „Autorzy:” i dostawcę Siewcy ([ec80e4c](https://github.com/chuppa12/robisie-app/commit/ec80e4cf94ece105bc8ee28e0bcac44d296d663b))
9
+ * **client:** most zasiewu stempluje autorów kart z linii „Autorzy:” i dostawcę Siewcy ([b32a208](https://github.com/chuppa12/robisie-app/commit/b32a20804ba983ab0b3b13b868d344ddd6461e93))
10
+ * **client:** most zasiewu stempluje autorów kart z linii „Autorzy:” i dostawcę Siewcy ([#1084](https://github.com/chuppa12/robisie-app/issues/1084)) ([ec80e4c](https://github.com/chuppa12/robisie-app/commit/ec80e4cf94ece105bc8ee28e0bcac44d296d663b))
11
+ * **client:** zatrzymanie fabryki klienta nazywa kartę, plik i następny ruch ([a081b68](https://github.com/chuppa12/robisie-app/commit/a081b683e6600fa19f8499e3c28a46ddb7e711f4))
12
+ * **client:** zatrzymanie fabryki klienta nazywa kartę, plik i następny ruch ([a081b68](https://github.com/chuppa12/robisie-app/commit/a081b683e6600fa19f8499e3c28a46ddb7e711f4))
13
+
14
+
15
+ ### Factory Cards
16
+
17
+ * praca workera task-mwlmexjn-dqp7zb (auto-commit) ([1db8648](https://github.com/chuppa12/robisie-app/commit/1db864814031231e1e260112209af8ea97d4b4e2))
18
+ * praca workera task-mwlrbilt-qtu968 (auto-commit) ([9506b79](https://github.com/chuppa12/robisie-app/commit/9506b795e68dd5146c7ec4ddda52dc6caf06ffb9))
19
+ * praca workera worker-c4251b56-21e8-4766-84c2-2d5c715a0002 (auto-commit) ([8da2d0e](https://github.com/chuppa12/robisie-app/commit/8da2d0eb0ed15c9b25bf8e3bd9c0cf1871d4035b))
20
+ * Przewodnik klienta mówi, kiedy ręczna aktualizacja jest potrzebna i czego wymaga komenda update: granica ≤0.5.48, Node 24 na PATH, sesja systemd --user, zgoda człowieka ([691b719](https://github.com/chuppa12/robisie-app/commit/691b7191bf5c4477848f8c60482560c487fde83e))
21
+ * Tester rozwija każdy placeholder „npx eslint <zmienione …>” do zmienionych plików kodu, zamiast uruchamiać go dosłownie ([cce32e4](https://github.com/chuppa12/robisie-app/commit/cce32e412b26d853f6ed228b71e7b5921b2f8130))
22
+
3
23
  ## [0.6.3](https://github.com/chuppa12/robisie-app/compare/client-v0.6.2...client-v0.6.3) (2026-11-18)
4
24
 
5
25
 
@@ -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.6.3";
3
+ export declare const PACKAGE_VERSION = "0.6.4";
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.6.3"; // x-release-please-version
3
+ export const PACKAGE_VERSION = "0.6.4"; // 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":"0801c2b8a86d6f45dabfec748c014b4fcc3aa9e0","dirty":false}
1
+ {"schema":1,"sha":"6c3b20e80a8be698452a2c6ccf9ad59d74ff87f8","dirty":false}
@@ -1692,14 +1692,14 @@
1692
1692
  "staticOperations": {
1693
1693
  "beforePreflight": {
1694
1694
  "module": "maszynista/tick.ts",
1695
- "startLine": 10240,
1696
- "endLine": 10353,
1695
+ "startLine": 10258,
1696
+ "endLine": 10371,
1697
1697
  "text": "export async function main(): Promise<number> {\n const start = standaloneStartCheck({ filename: __filename, env: process.env });\n if (start.standalone && !start.ok) {\n console.error(start.message);\n process.exitCode = 78;\n return 78;\n }\n let installation: EngineContext;\n try { installation = createEngineContext(currentEngine(), {\n loadEnvironment: loadEnvFiles, preflight, baseRef: engineBaseRef, refreshBase: fetchMain,\n disk: defaultDiskPressureDependencies, workerContext: loadNorthStar,\n controlEnv: hostEnv, workerEnv: executionEnv, prepareWorktree: prepareHostWorktree, workerArtifacts: createWorkerTmpdir,\n notify: async (card, reason) => { decisionForReksio(card, reason, \"Rozstrzygnij na karcie\", \"\", \"\"); return { outcome: \"recorded\", ref: DECISIONS_REKSIO }; },\n hostOperations: hostOperationsPhase,\n activation: { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto },\n }, git, log); }\n catch (error) {\n if (!engineClient()) throw error;\n console.error(`HOLD kontekst klienta: ${clientTickFailure(error)}`);\n process.exitCode = 78;\n return 78;\n }\n const previousInstallation = tickInstallation;\n const hostErrorText = errorText;\n const client = engineClient();\n const result: { outcome: \"ok\" | \"retry\" | \"stop\"; reason: string; cleanup: boolean } = { outcome: \"ok\", reason: \"\", cleanup: false };\n const stopClient = (reason = clientTickFailure()): void => {\n if (client && result.outcome !== \"stop\") { result.outcome = \"stop\"; result.reason = reason; }\n };\n let code = 2;\n try { code = await q.withPlannerQueries(installation.planner, async () => {\n tickInstallation = installation;\n const seedGateSettings = installationSeedGateSettings();\n const errorText = client ? clientTickFailure : hostErrorText;\n const loadEnvFiles = installation.loadEnvironment;\n const preflight = () => {\n const actor = installation.preflight();\n return { uid: actor.kind === \"db\" ? actor.uid : API_ACTOR };\n };\n const { confirmLoaded, finishHostActivation, readActivationState, recoverTickTimeout, runEnabledAuto } = installation.activation;\n const smokeOnly = DRY && process.env.MASZYNISTA_SMOKE === \"1\";\n if (!DRY) {\n const acquire = (): boolean => tryCreateTickLock(LOCK);\n if (!acquire()) {\n const raw = readFileSync(LOCK, \"utf8\"), pid = Number(raw);\n if (!Number.isSafeInteger(pid) || pid <= 0) { console.log(\"tick lock bez poprawnego PID — HOLD\"); return 0; }\n try { process.kill(pid, 0); console.log(`tick już trwa (pid ${pid})`); return 0; }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ESRCH\") throw error; }\n if (readFileSync(LOCK, \"utf8\") === raw) unlinkSync(LOCK);\n if (!acquire()) { console.log(\"tick już trwa\"); return 0; }\n }\n }\n skippedCardEvents.clear();\n let s = parseState(null).state;\n // Internal smoke handoff: the child cannot outlive the parent's reserved budget.\n const smokeLimit = DRY ? Number(process.env.MASZYNISTA_SMOKE_TIMEOUT_MS) : NaN;\n let stateLoaded = false;\n let tickStarted: string | undefined;\n let outcome: \"ok\" | \"failed\" = \"ok\";\n let runtimeFailed = false;\n let observedLoaded = \"UNKNOWN\";\n let tickPhase = \"startup\";\n const deadlineAlarm = armTickDeadline(() => s, Number.isSafeInteger(smokeLimit) && smokeLimit > 0\n ? Math.min(TICK_LIMIT_MS, smokeLimit) : TICK_LIMIT_MS, () => ({ phase: tickPhase, observedLoaded }));\n let hostReady = false;\n let hostBoard: { uid: string; projectId: string } | undefined;\n let activationCards: CardLike[] = [];\n let activationCardsKnown = false;\n let blockedBefore = 0;\n const clientStopped = (): boolean => {\n if (client && (outcome === \"failed\" || (!DRY && s.blocked > blockedBefore))) stopClient();\n if (client && result.outcome === \"stop\") outcome = \"failed\";\n return client && result.outcome === \"stop\";\n };\n let hostPhaseStarted = false;\n const hostPhase = async (): Promise<boolean> => {\n if (smokeOnly || !hostReady || hostPhaseStarted) return false;\n hostPhaseStarted = true;\n tickPhase = \"host\";\n if (hostBoard) {\n const { uid: boardUid, projectId: boardProject } = hostBoard;\n try {\n await runEnabledAuto({ state: s, loadedSha: observedLoaded, repo: REPO, logPath: LOG, tick: s.tick, stateDir: hostStateDir(),\n now: new Date().toISOString(), activation: readActivationState(hostStateDir()), dryRun: DRY }, {\n listCards: async () => scanTasks(boardUid, boardProject, { full: true, statuses: [\"delivered\"],\n detailsKeys: ENABLED_SCAN_DETAILS_KEYS }),\n getTask: id => q.getTask(boardUid, id),\n appendDetail: async (id, patch) => { await appendBoundedDetail(boardUid, id, patch); },\n saveState: writeState,\n alarm: hostActivationAlarm,\n log,\n });\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL ENABLED auto: ${errorText(error)}`); }\n } else log(\"ENABLED auto: UNKNOWN — brak odczytu projektu; dowód karty czeka na dostęp do tablicy\");\n try {\n const result = await engineRunHostActivation({ repo: REPO, stateDir: hostStateDir(), cards: activationCards, cardsKnown: activationCardsKnown, tick: s.tick, dryRun: DRY }, {\n git, remainingTickMs, alarm: hostActivationAlarm, infrastructureChecks, infrastructurePullRequest, log: line => log(`host-activation: ${line}`),\n });\n log(`host-activation: code=${result.code} target=${result.target ?? \"UNKNOWN\"}${result.detail ? ` reason=${result.detail}` : \"\"}`);\n if (result.code === \"activate\" && result.target) {\n lastTick(s, \"activation\", `aktywacja ${result.target}; ogon odroczony`, outcome === \"ok\");\n return true;\n }\n } catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL aktywacja: ${errorText(error)}`); }\n return false;\n };\n try {\n observedLoaded = loadedSha = readLoadedSha(REPO);\n s = readState((await engineFjConfig()).enabled);\n stateLoaded = true; blockedBefore = s.blocked;\n s.tick++; tickStarted = new Date().toISOString(); s.lastTickAt = tickStarted;\n log(`tick_started tick=${s.tick} at=${tickStarted} duration=UNKNOWN loaded=${loadedSha}`);\n loadEnvFiles();\n const { uid } = preflight();"
1698
1698
  },
1699
1699
  "finalization": {
1700
1700
  "module": "maszynista/tick.ts",
1701
- "startLine": 10644,
1702
- "endLine": 10696,
1701
+ "startLine": 10662,
1702
+ "endLine": 10714,
1703
1703
  "text": " } finally {\n // A persisted terminal FAIL is a card result; every unexpected exception above\n // remains a runtime failure, including DB errors inside card handling.\n if (!DRY && s.blocked > blockedBefore) {\n outcome = \"failed\";\n try { log(`FAIL: licznik blocked wzrósł ${blockedBefore} → ${s.blocked}; outcome=failed`); }\n catch (error) { console.error(`zapis licznika blocked: ${errorText(error)}`); }\n }\n clientStopped();\n // Early board failure still reaches the same host phase, at most once per tick.\n await hostPhase();\n tickPhase = \"finalizing\";\n try { if (!DRY) await finishHostActivation({ stateDir: hostStateDir(), outcome, tick: s.tick, runtimeFailed, observedLoaded }, { alarm: hostActivationAlarm, log }); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; log(`FAIL breaker aktywacji: ${errorText(error)}`); }\n clientStopped();\n try { if (stateLoaded) writeState(s); }\n catch (error) { runtimeFailed = true; outcome = \"failed\"; if (!client) throw error; stopClient(); result.cleanup = true; }\n finally {\n if (!DRY) {\n try { if (readFileSync(LOCK, \"utf8\") === String(process.pid)) unlinkSync(LOCK); }\n catch (error) { if ((error as NodeJS.ErrnoException).code !== \"ENOENT\") { if (!client) throw error; stopClient(); result.cleanup = true; } }\n }\n const at = new Date().toISOString();\n const duration = tickStarted ? `${(Date.parse(at) - Date.parse(tickStarted)) / 1000}s` : \"UNKNOWN\";\n try {\n const { total, ops } = drainEgressCounters();\n const sorted = Object.entries(ops).sort(([, a], [, b]) => b.bytes - a.bytes);\n const summary = sorted.filter(([op]) => !op.includes(\":\")).slice(0, 12)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n const variants = sorted.filter(([op]) => op.includes(\":\")).slice(0, 6)\n .map(([op, counter]) => `${op}:${counter.calls}:${counter.bytes}`).join(\",\");\n log(`egress tick=${s.tick} total=${total} ops=${summary} variants=${variants}`);\n } catch { /* Optional metrics must never interrupt tick cleanup. */ }\n try { refreshTickReport(observedLoaded); log(`tick_finished tick=${s.tick} at=${at} outcome=${client && result.outcome === \"retry\" ? \"retry\" : outcome} duration=${duration} loaded=${loadedSha}`); }\n finally { clearTimeout(deadlineAlarm); tickDeadline = Number.POSITIVE_INFINITY; }\n }\n }\n }); } catch (error) {\n if (!client) throw error;\n stopClient(); result.cleanup = true;\n } finally {\n tickInstallation = previousInstallation;\n try { await installation.close(); }\n catch (error) {\n if (client) { stopClient(); result.cleanup = true; }\n else safeLog(`Zamknięcie instalacji nieudane: ${String(error)}`);\n }\n }\n if (client && result.outcome !== \"ok\") console.error(`Fabryka ${result.outcome === \"stop\" ? \"zatrzymana\" : \"retry\"}: ${result.reason}${result.cleanup ? \"; finalizacja niepotwierdzona — sprawdź stan i blokadę\" : \"\"}`);\n return client && result.outcome === \"stop\" ? 2 : code;\n}\n\nif (require.main === module && !([\"--opencode-runner\", \"--grok-runner\"].includes(process.argv[2] ?? \"\"))) {"
1704
1704
  },
1705
1705
  "refreshTickReport": {
@@ -1725,6 +1725,6 @@
1725
1725
  "status": 0,
1726
1726
  "signal": null,
1727
1727
  "stdout": "v24.3.0\n",
1728
- "stderr": "(node:23169) 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"
1728
+ "stderr": "(node:24341) 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"
1729
1729
  }
1730
1730
  }
@@ -37652,7 +37652,7 @@ var init_constants = __esm({
37652
37652
  "packages/client/src/constants.ts"() {
37653
37653
  "use strict";
37654
37654
  PACKAGE_NAME = "robisie";
37655
- PACKAGE_VERSION = "0.6.3";
37655
+ PACKAGE_VERSION = "0.6.4";
37656
37656
  SUPPORTED_CONTRACT_MAJOR = 1;
37657
37657
  DEFAULT_ORIGIN = "https://robisie.app";
37658
37658
  MCP_SERVER_NAME = "robisie";
@@ -49514,7 +49514,7 @@ function testCommands(details2, changedPaths, exists2 = () => false) {
49514
49514
  const archiveRequired = scopesOverlap([archive.test, archive.runner, ...archive.inputs], [...changedPaths, ...scopePaths({ id: "", title: "", details: details2 })]) || declared.some((c) => isArchiveRunner(c) || vitest.test(c) && parseVitest(c).selectors.includes(archive.test));
49515
49515
  const isolated = [];
49516
49516
  for (const c of commands) {
49517
- if (/^npx eslint <(?:zmienione pliki(?: TS)?|faktycznie zmienione pliki)>$/.test(c.trim())) {
49517
+ if (/^npx eslint <(?:faktycznie |wszystkie )?zmienione [^<>&|;`$()]+>$/.test(c.trim())) {
49518
49518
  const files2 = changedPaths.filter((p) => code.test(p) && exists2(p));
49519
49519
  if (!files2.length) throw new Error("ESLint placeholder: brak istniej\u0105cych plik\xF3w JS/TS w diffie landu");
49520
49520
  isolated.push(`npx eslint ${files2.map(quote).join(" ")}`);
@@ -77172,6 +77172,17 @@ function runLocalUsage(input) {
77172
77172
  `tar: status=${extracted.status}, signal=${extracted.signal}: ${extracted.stderr ?? ""}${extracted.error ? `; error=${failure(extracted.error)}` : ""}`,
77173
77173
  { cause: extracted.error }
77174
77174
  );
77175
+ stage = "widok git";
77176
+ const objects = git2(input.repo, ["rev-parse", "--git-path", "objects"]);
77177
+ if (!objects || /[\r\n\0]/.test(objects)) throw new Error("Niepoprawny katalog obiekt\xF3w git");
77178
+ const objectDir = (0, import_node_fs20.realpathSync)(import_node_path22.default.resolve(input.repo, objects));
77179
+ if (!(0, import_node_fs20.lstatSync)(objectDir).isDirectory()) throw new Error("Niepoprawny katalog obiekt\xF3w git");
77180
+ const gitDir = import_node_path22.default.join(copy, ".git"), privateGit = [`--git-dir=${gitDir}`];
77181
+ git2(copy, [...privateGit, "init", "-q"]);
77182
+ (0, import_node_fs20.writeFileSync)(import_node_path22.default.join(gitDir, "objects/info/alternates"), objectDir + "\n", { flag: "wx", mode: 384 });
77183
+ git2(copy, [...privateGit, "update-ref", "--no-deref", "HEAD", sha5]);
77184
+ git2(copy, [...privateGit, "read-tree", sha5]);
77185
+ git2(copy, [...privateGit, "update-index", "-q", "--refresh"]);
77175
77186
  stage = "drzewo";
77176
77187
  const tree = /* @__PURE__ */ new Map();
77177
77188
  for (const record20 of git2(input.repo, ["ls-tree", "-r", "-z", "--full-tree", sha5]).split("\0").filter(Boolean)) {
@@ -81812,6 +81823,22 @@ var init_done_when_roles = __esm({
81812
81823
  });
81813
81824
 
81814
81825
  // maszynista/seed-bridge.ts
81826
+ function authorsFromIntention(intention) {
81827
+ const authors = {};
81828
+ const line2 = typeof intention === "string" ? /^Autorzy:([^\r\n]*)/m.exec(intention)?.[1] : void 0;
81829
+ if (!line2) return authors;
81830
+ const providers = { by: /* @__PURE__ */ new Set(), proposal_by: /* @__PURE__ */ new Set() };
81831
+ for (const match of line2.matchAll(/(?:^|\s|·)(by|proposal_by)=([^·]*?)(?=\s+(?:by|proposal_by)=|·|$)/g)) {
81832
+ const role3 = match[1];
81833
+ const token = match[2].trim().split(/\s/)[0];
81834
+ for (const value of match[2].toLowerCase().match(/\b[a-z]+\b/g) ?? []) {
81835
+ if (PROVIDERS2.includes(value)) providers[role3].add(value);
81836
+ }
81837
+ if (providers[role3].size > 1) delete authors[role3];
81838
+ else if (PROVIDERS2.includes(token) && providers[role3].size === 1) authors[role3] = token;
81839
+ }
81840
+ return authors;
81841
+ }
81815
81842
  function provenanceObject(value) {
81816
81843
  if (value == null || value === "") return {};
81817
81844
  const parsed = typeof value === "string" ? JSON.parse(value) : value;
@@ -81850,7 +81877,7 @@ function locate(cardsRoot, id2, generation) {
81850
81877
  }
81851
81878
  return { kind: "none" };
81852
81879
  }
81853
- function verify(cardsRoot, card, dir, odbior) {
81880
+ function verify(cardsRoot, card, dir, odbior, log3) {
81854
81881
  const details2 = card.details ?? {};
81855
81882
  const real2 = (0, import_node_fs30.realpathSync)(dir);
81856
81883
  if (!real2.startsWith(`${(0, import_node_fs30.realpathSync)(cardsRoot)}${import_node_path31.default.sep}`)) return "pr\xF3ba poza katalogiem kart";
@@ -81881,13 +81908,26 @@ function verify(cardsRoot, card, dir, odbior) {
81881
81908
  localEffectCheck({ id: card.id, title: card.title, details: { done_when: k.done_when, effect_check: k.effect_check } });
81882
81909
  const effect = JSON.parse(String(k.effect_check));
81883
81910
  if (!record14(effect) || effect.source !== `produkt/${card.id}/usage.jsonl`) throw new Error("effect_check: obcy source");
81884
- const authors = record14(k.seed_provenance) && record14(k.seed_provenance.authoring_providers) ? k.seed_provenance.authoring_providers : {};
81911
+ const authors = { ...record14(k.seed_provenance) && record14(k.seed_provenance.authoring_providers) ? k.seed_provenance.authoring_providers : {} };
81885
81912
  const roles = ["by", "proposal_by", "packager_by"];
81886
- if (roles.some((role3) => typeof authors[role3] !== "string" || !["openai", "anthropic", "xai", "google", "moonshot", "deepseek", "alibaba", "minimax", "zhipu"].includes(authors[role3])))
81913
+ if (roles.some((role3) => typeof authors[role3] !== "string" || !PROVIDERS2.includes(authors[role3])))
81887
81914
  throw new Error("seed_provenance.authoring_providers: trzy kanoniczne role autorstwa");
81888
81915
  provenance = provenanceObject(details2.seed_provenance);
81916
+ const existingAuthors = provenanceObject(provenance.authoring_providers);
81917
+ const sources = { ...authorsFromIntention(details2.intention), packager_by: record14(odbior.packager) ? odbior.packager.provider : void 0 };
81918
+ const missing = [];
81919
+ for (const role3 of roles) {
81920
+ const provider = sources[role3];
81921
+ if (typeof provider !== "string" || !PROVIDERS2.includes(provider)) {
81922
+ missing.push(role3);
81923
+ continue;
81924
+ }
81925
+ if (authors[role3] !== provider) log3(`stempel-autorzy ${card.id}: ${role3} deklaracja=${String(authors[role3])} \u2192 \u017Ar\xF3d\u0142o=${provider}`);
81926
+ authors[role3] = provider;
81927
+ }
81928
+ if (missing.length) log3(`ALARM stempel-autorzy ${card.id}: brak jednoznacznego \u017Ar\xF3d\u0142a ${missing.join(", ")} \u2014 pozostaje deklaracja kontraktu`);
81889
81929
  provenance = { ...provenance, authoring_providers: {
81890
- ...provenanceObject(provenance.authoring_providers),
81930
+ ...existingAuthors,
81891
81931
  ...Object.fromEntries(roles.map((role3) => [role3, authors[role3]]))
81892
81932
  } };
81893
81933
  } catch (error48) {
@@ -81944,7 +81984,7 @@ async function bridgeNextPacket(deps) {
81944
81984
  if (located.kind === "none") continue;
81945
81985
  const fresh = await deps.readCard(candidate.id);
81946
81986
  if (!fresh || !isCandidate(fresh) || generationOf(fresh.details ?? {}) !== generation) continue;
81947
- const embed = verify(deps.cardsRoot, fresh, located.dir, located.odbior);
81987
+ const embed = verify(deps.cardsRoot, fresh, located.dir, located.odbior, deps.log);
81948
81988
  const proba = import_node_path31.default.relative(import_node_path31.default.dirname(import_node_path31.default.dirname(deps.cardsRoot)), located.dir);
81949
81989
  if (typeof embed === "string") {
81950
81990
  deps.log(`most zasiewu: odmowa ${short} g${generation}: ${embed}`);
@@ -82001,7 +82041,7 @@ async function bridgeNextPacket(deps) {
82001
82041
  }
82002
82042
  return failed2 ?? processed ?? stale ?? { kind: "none", detail: "brak gotowego pakietu na dysku" };
82003
82043
  }
82004
- var import_node_crypto19, import_node_fs30, import_node_path31, import_node_util9, BRIDGE_DETAILS_KEYS, PACKET_FILES, sha3, record14, nonempty2, errorText3;
82044
+ var import_node_crypto19, import_node_fs30, import_node_path31, import_node_util9, BRIDGE_DETAILS_KEYS, PACKET_FILES, sha3, record14, nonempty2, errorText3, PROVIDERS2;
82005
82045
  var init_seed_bridge = __esm({
82006
82046
  "maszynista/seed-bridge.ts"() {
82007
82047
  "use strict";
@@ -82018,6 +82058,7 @@ var init_seed_bridge = __esm({
82018
82058
  record14 = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
82019
82059
  nonempty2 = (value) => typeof value === "string" && value.trim().length > 0;
82020
82060
  errorText3 = (error48) => error48 instanceof Error ? error48.message : String(error48);
82061
+ PROVIDERS2 = ["openai", "anthropic", "xai", "google", "moonshot", "deepseek", "alibaba", "minimax", "zhipu"];
82021
82062
  }
82022
82063
  });
82023
82064
 
@@ -323953,6 +323994,7 @@ async function localTesterPhase(s, uid, projectId2, dry, runtime, snapshot2, ins
323953
323994
  return false;
323954
323995
  }
323955
323996
  let jobId;
323997
+ let stopCardId;
323956
323998
  try {
323957
323999
  const job = readLocalTesterJob(DIR);
323958
324000
  if (job.kind === "running") {
@@ -323965,6 +324007,7 @@ async function localTesterPhase(s, uid, projectId2, dry, runtime, snapshot2, ins
323965
324007
  }
323966
324008
  if (job.kind === "complete") {
323967
324009
  jobId = job.completion.id;
324010
+ stopCardId = job.completion.input.card.id;
323968
324011
  return await settleLocalTester(s, uid, job.completion, snapshot2);
323969
324012
  }
323970
324013
  if (localTesterClaimed()) throw new Error("Osierocone dowody lokalnego testera; zachowano pliki, bez startu");
@@ -323972,11 +324015,13 @@ async function localTesterPhase(s, uid, projectId2, dry, runtime, snapshot2, ins
323972
324015
  const rows = snapshot2 ? [...snapshot2.values()] : await localDataList(uid, projectId2, { full: true, statuses: ["in_review", "blocked"], detailsKeys: LOCAL_TESTER_LIST_DETAILS_KEYS });
323973
324016
  for (const listed of rows) {
323974
324017
  if (!["in_review", "blocked"].includes(String(listed.status))) continue;
324018
+ stopCardId = void 0;
323975
324019
  let card = await localDataRead(uid, listed.id);
323976
324020
  if (!card || card.detailsReadError) {
323977
324021
  await localDataHold(uid, listed.id, "tester", "Nie mo\u017Cna odczyta\u0107 pe\u0142nej karty testera");
323978
324022
  continue;
323979
324023
  }
324024
+ stopCardId = card.id;
323980
324025
  const full = card;
323981
324026
  card = localDataCard(card);
323982
324027
  const environmentRetest = card.status === "blocked" && testerEnvironmentGrant(card);
@@ -324014,9 +324059,9 @@ async function localTesterPhase(s, uid, projectId2, dry, runtime, snapshot2, ins
324014
324059
  }
324015
324060
  return false;
324016
324061
  } catch (error48) {
324017
- const reason = `Tester lokalny STOP: ${clientTickFailure(error48)}`;
324062
+ const reason = `Tester lokalny STOP: ${clientTickFailure(error48, stopCardId)}`;
324018
324063
  (0, import_node_fs48.appendFileSync)(import_node_path52.default.join(DIR, "installation-events.jsonl"), JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), jobId, reason }) + "\n", { mode: 384, flush: true });
324019
- throw new Error(reason, { cause: error48 });
324064
+ throw new ClientPhaseStop(reason, stopCardId, error48);
324020
324065
  }
324021
324066
  }
324022
324067
  function localReceiverClaimed() {
@@ -324037,6 +324082,7 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
324037
324082
  return false;
324038
324083
  }
324039
324084
  const dir = import_node_path52.default.join(DIR, "receiver-jobs", "local");
324085
+ let stopCardId;
324040
324086
  try {
324041
324087
  const receiver = (init_local_receiver(), __toCommonJS(local_receiver_exports));
324042
324088
  const job = receiver.readLocalReceiverJob(dir);
@@ -324048,6 +324094,7 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
324048
324094
  const completion2 = job.kind === "complete" ? job.completion : receiver.localReceiverFailure(dir, job);
324049
324095
  const fresh = await getTask2(uid, completion2.input.card.id);
324050
324096
  if (!fresh || fresh.detailsReadError) throw new Error("Brak pe\u0142nej karty receivera; zachowano claim i archiwum");
324097
+ stopCardId = fresh.id;
324051
324098
  const { id: id2, ...patch } = receiver.localReceiverPatch(completion2, fresh);
324052
324099
  let failure3;
324053
324100
  if (!sameLocalTesterCard(fresh, completion2.input.card, patch.status, { ...completion2.input.card.details, ...patch.detailsPatch })) {
@@ -324074,11 +324121,13 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
324074
324121
  const rows = snapshot2 ? [...snapshot2.values()] : await localDataList(uid, projectId2, { full: true, statuses: ["in_review"], detailsKeys: LOCAL_TESTER_LIST_DETAILS_KEYS });
324075
324122
  for (const listed of rows) {
324076
324123
  if (listed.status !== "in_review") continue;
324124
+ stopCardId = void 0;
324077
324125
  let card = await localDataRead(uid, listed.id);
324078
324126
  if (!card || card.detailsReadError) {
324079
324127
  await localDataHold(uid, listed.id, "receiver", "Nie mo\u017Cna odczyta\u0107 pe\u0142nej karty receivera");
324080
324128
  continue;
324081
324129
  }
324130
+ stopCardId = card.id;
324082
324131
  const full = card;
324083
324132
  card = localDataCard(card);
324084
324133
  if (card.status !== "in_review" || card.assignee !== ASSIGNEE) continue;
@@ -324130,9 +324179,9 @@ async function localReceiverPhase(s, uid, projectId2, dry, snapshot2, installati
324130
324179
  }
324131
324180
  return false;
324132
324181
  } catch (error48) {
324133
- const reason = `Receiver lokalny STOP: ${clientTickFailure(error48)}`;
324182
+ const reason = `Receiver lokalny STOP: ${clientTickFailure(error48, stopCardId)}`;
324134
324183
  (0, import_node_fs48.appendFileSync)(import_node_path52.default.join(DIR, "installation-events.jsonl"), JSON.stringify({ at: (/* @__PURE__ */ new Date()).toISOString(), reason }) + "\n", { mode: 384, flush: true });
324135
- throw new Error(reason, { cause: error48 });
324184
+ throw new ClientPhaseStop(reason, stopCardId, error48);
324136
324185
  }
324137
324186
  }
324138
324187
  async function localAcceptancePhase(s, uid, dry, snapshot2, installation) {
@@ -327880,7 +327929,7 @@ async function localCardStopped(uid, id2) {
327880
327929
  const worker = asRecord3(card.details?.maszynista);
327881
327930
  return card.status === "blocked" || worker.outcome === "ACTIONABLE_BLOCKER";
327882
327931
  }
327883
- function clientTickFailure(error48) {
327932
+ function clientTickFailure(error48, cardId) {
327884
327933
  for (const command of ["test", "lint", "build"]) {
327885
327934
  const reason = `Brak komendy klienta: ${command}`;
327886
327935
  if (error48 instanceof Error && error48.message === reason) return reason;
@@ -327893,6 +327942,7 @@ function clientTickFailure(error48) {
327893
327942
  const seen = /* @__PURE__ */ new Set();
327894
327943
  let original = error48;
327895
327944
  while (original instanceof Error && !seen.has(original)) {
327945
+ if (original instanceof ClientPhaseStop) cardId ??= original.cardId;
327896
327946
  if (original instanceof TesterSafetyError || original instanceof ClientPairHold) {
327897
327947
  error48 = original;
327898
327948
  break;
@@ -327902,7 +327952,7 @@ function clientTickFailure(error48) {
327902
327952
  }
327903
327953
  const code = error48 instanceof TesterSafetyError ? error48.code : error48 instanceof ClientPairHold ? "client-pair-hold" : void 0;
327904
327954
  if (code) return `${code}: ${testerReasons[code]}`;
327905
- return error48 instanceof Error && error48.message === "ROBISIE_REVIEW_KEY nieustawione lub niepoprawne; wymagany odr\u0119bny aktor owner_validator tego samego konta i polityka enforced" ? "brak poprawnego klucza odbiorcy B; skonfiguruj ROBISIE_REVIEW_KEY odr\u0119bnego owner_validator tego samego konta i pon\xF3w factory run" : "nierozstrzygni\u0119ty wynik lub odmowa fazy; sprawd\u017A lokalne dowody i stan karty przed wznowieniem factory run";
327955
+ return error48 instanceof Error && error48.message === "ROBISIE_REVIEW_KEY nieustawione lub niepoprawne; wymagany odr\u0119bny aktor owner_validator tego samego konta i polityka enforced" ? "brak poprawnego klucza odbiorcy B; skonfiguruj ROBISIE_REVIEW_KEY odr\u0119bnego owner_validator tego samego konta i pon\xF3w factory run" : `nierozstrzygni\u0119ty wynik lub odmowa fazy; sprawd\u017A lokalne dowody i stan karty przed wznowieniem factory run${typeof cardId === "string" && /^[a-zA-Z0-9_-]+$/.test(cardId) ? `; karta ${cardId.slice(0, 8)}; plik: installation-events.jsonl; nast\u0119pny ruch: otw\xF3rz kart\u0119 i przeczytaj jej HOLD, potem uruchom factory run` : "; plik: installation-events.jsonl i ticks.log; nast\u0119pny ruch: usu\u0144 przyczyn\u0119 wskazan\u0105 w pliku i uruchom factory run"}`;
327906
327956
  }
327907
327957
  async function main2() {
327908
327958
  const start = standaloneStartCheck({ filename: __filename, env: process.env });
@@ -328208,7 +328258,7 @@ async function main2() {
328208
328258
  }
328209
328259
  }
328210
328260
  if (client) {
328211
- for (const card of boardCards2) if (await localCardStopped(uid, card.id)) stopClient();
328261
+ for (const card of boardCards2) if (await localCardStopped(uid, card.id)) stopClient(clientTickFailure(void 0, card.id));
328212
328262
  }
328213
328263
  if (clientStopped()) return 2;
328214
328264
  writeState(s);
@@ -328561,7 +328611,7 @@ async function main2() {
328561
328611
  if (client && result.outcome !== "ok") console.error(`Fabryka ${result.outcome === "stop" ? "zatrzymana" : "retry"}: ${result.reason}${result.cleanup ? "; finalizacja niepotwierdzona \u2014 sprawd\u017A stan i blokad\u0119" : ""}`);
328562
328612
  return client && result.outcome === "stop" ? 2 : code;
328563
328613
  }
328564
- var import_node_fs48, import_gray_matter2, import_node_child_process21, import_node_os14, import_node_sqlite4, import_node_util14, import_node_crypto32, import_node_path52, TASK_REPO, ASSIGNEE, CODEX_HELPER, WORKER_TIMEOUT_MIN, WORKER_MODELS_CONFIG, OPENCODE_LEDGER, MAX_ATTEMPTS, REVIEW_JOB_EXCLUDE, TESTER_DETAILS_KEYS, TESTER_RECOVERY_DETAILS_KEYS, LOCAL_TESTER_LIST_DETAILS_KEYS, CARD_OWNER_DETAILS_KEYS, LANDING_RECOVERY_DETAILS_KEYS, ACTIONABLE_BLOCKER_DETAILS_KEYS, REVIEW_RECOVERY_IDENTITY_KEYS, REVIEW_RECOVERY_DETAILS_KEYS, REVIEW_RECOVERY_FIELDS, REVIEW_SCAN_FIELDS, DECISION_QUEUE_SCAN_FIELDS, DECISION_REFRESH_DETAILS_KEYS, BLOCKED_WORKER_DETAILS_KEYS, ENABLED_SCAN_DETAILS_KEYS, RESERVATION_DETAILS_KEYS, RESERVATION_SCAN_DETAILS_KEYS, OBLIGATION_DETAILS_KEYS, READY_DETAILS_KEYS, RECOVERY_DETAILS_KEYS, PROMOTION_BOARD_DETAILS_KEYS, PROMOTION_DRAFT_DETAILS_KEYS, DRAFT_SUPPLY_DETAILS_KEYS, SCAN_OPTIONS, PROMOTION_BOARD_STATUSES, NORTH_STAR, AUTHORITY, RUNTIME_FILES, STATE2, REVIEW_LAST, HOST_MIN_FREE_GIB, HOST_UNBLOCK_FREE_GIB, DISK_ARTIFACT_MIN_AGE_MS, hostOperationsWakeDb, responseGuardReadErrorLogged, crLivenessIdentityLogged, crBlockerIdentityLogged, tickInstallation, CODEX_LIFECYCLE_HOOK, REQUIRED_CHECKS2, CI_QUEUE_CEILING_MS, reviewText, LAST_TICK, DECISIONS, DECISIONS_REKSIO, BLOCKED_TECH, TEST_LAST, FOR_HERMES, LOCK2, LOG2, configuredTickLimitMs, TICK_LIMIT_MS, START_BUDGET_MS, LAND_BUDGET_MS, TESTER_COMMAND_CEILING_MS, TESTER_FLAKE_RERUN_MS, tickDeadline, DRY2, loadedSha, mainSha, hostStateDir, loadEnvFiles2, CONFLICT_PREPARATION_SUBJECT, SshAuthExhausted, DispatchHold, CODEX_PLUGIN_DATA, EXECUTION_ENV_ALLOWLIST, northStarDeps, skippedCardEvents, LEAD_CLASSES, LEAD_AGENT_WAITING, LEAD_OWNER_WAKE_LIMIT, leadWakeDbMissingLogged, rulingSha, FLAKE_REPAIR_DETAILS_KEYS, flakeKey, ClientReviewBaseChanged, testerRetestRepo, TESTER_RETEST_BACKOFF_BASE_MS, TESTER_RETEST_BACKOFF_MAX_MS, TESTER_RETEST_MAX_ERRORS, TESTER_IDENTITY_RECOVERY_LIMIT, selectorUnavailableTicks, crBlockerIssueLogged, uncertainStarts, processCards;
328614
+ var import_node_fs48, import_gray_matter2, import_node_child_process21, import_node_os14, import_node_sqlite4, import_node_util14, import_node_crypto32, import_node_path52, TASK_REPO, ASSIGNEE, CODEX_HELPER, WORKER_TIMEOUT_MIN, WORKER_MODELS_CONFIG, OPENCODE_LEDGER, MAX_ATTEMPTS, REVIEW_JOB_EXCLUDE, TESTER_DETAILS_KEYS, TESTER_RECOVERY_DETAILS_KEYS, LOCAL_TESTER_LIST_DETAILS_KEYS, CARD_OWNER_DETAILS_KEYS, LANDING_RECOVERY_DETAILS_KEYS, ACTIONABLE_BLOCKER_DETAILS_KEYS, REVIEW_RECOVERY_IDENTITY_KEYS, REVIEW_RECOVERY_DETAILS_KEYS, REVIEW_RECOVERY_FIELDS, REVIEW_SCAN_FIELDS, DECISION_QUEUE_SCAN_FIELDS, DECISION_REFRESH_DETAILS_KEYS, BLOCKED_WORKER_DETAILS_KEYS, ENABLED_SCAN_DETAILS_KEYS, RESERVATION_DETAILS_KEYS, RESERVATION_SCAN_DETAILS_KEYS, OBLIGATION_DETAILS_KEYS, READY_DETAILS_KEYS, RECOVERY_DETAILS_KEYS, PROMOTION_BOARD_DETAILS_KEYS, PROMOTION_DRAFT_DETAILS_KEYS, DRAFT_SUPPLY_DETAILS_KEYS, SCAN_OPTIONS, PROMOTION_BOARD_STATUSES, NORTH_STAR, AUTHORITY, RUNTIME_FILES, STATE2, REVIEW_LAST, HOST_MIN_FREE_GIB, HOST_UNBLOCK_FREE_GIB, DISK_ARTIFACT_MIN_AGE_MS, hostOperationsWakeDb, responseGuardReadErrorLogged, crLivenessIdentityLogged, crBlockerIdentityLogged, tickInstallation, CODEX_LIFECYCLE_HOOK, REQUIRED_CHECKS2, CI_QUEUE_CEILING_MS, reviewText, LAST_TICK, DECISIONS, DECISIONS_REKSIO, BLOCKED_TECH, TEST_LAST, FOR_HERMES, LOCK2, LOG2, configuredTickLimitMs, TICK_LIMIT_MS, START_BUDGET_MS, LAND_BUDGET_MS, TESTER_COMMAND_CEILING_MS, TESTER_FLAKE_RERUN_MS, tickDeadline, DRY2, loadedSha, mainSha, hostStateDir, loadEnvFiles2, CONFLICT_PREPARATION_SUBJECT, SshAuthExhausted, DispatchHold, CODEX_PLUGIN_DATA, EXECUTION_ENV_ALLOWLIST, northStarDeps, skippedCardEvents, LEAD_CLASSES, LEAD_AGENT_WAITING, LEAD_OWNER_WAKE_LIMIT, leadWakeDbMissingLogged, rulingSha, FLAKE_REPAIR_DETAILS_KEYS, flakeKey, ClientReviewBaseChanged, testerRetestRepo, TESTER_RETEST_BACKOFF_BASE_MS, TESTER_RETEST_BACKOFF_MAX_MS, TESTER_RETEST_MAX_ERRORS, TESTER_IDENTITY_RECOVERY_LIMIT, selectorUnavailableTicks, crBlockerIssueLogged, uncertainStarts, processCards, ClientPhaseStop;
328565
328615
  var init_tick = __esm({
328566
328616
  "maszynista/tick.ts"() {
328567
328617
  init_lib();
@@ -328777,6 +328827,12 @@ var init_tick = __esm({
328777
328827
  selectorUnavailableTicks = /* @__PURE__ */ new WeakMap();
328778
328828
  uncertainStarts = /* @__PURE__ */ new WeakMap();
328779
328829
  processCards = /* @__PURE__ */ new WeakMap();
328830
+ ClientPhaseStop = class extends Error {
328831
+ constructor(reason, cardId, cause) {
328832
+ super(reason, { cause });
328833
+ this.cardId = cardId;
328834
+ }
328835
+ };
328780
328836
  if (require.main === module && !["--opencode-runner", "--grok-runner"].includes(process.argv[2] ?? "")) {
328781
328837
  if (process.argv[2] === "--job") {
328782
328838
  const [, , , job, input] = process.argv;
@@ -42,6 +42,7 @@ export declare function within(root: string, ref: string): string;
42
42
  /** The transport already bounds model output to 256 KiB; inputs use the same byte bound. */
43
43
  export declare function bounded(file: string): string;
44
44
  export declare function readLocalUsageEvents(root: string, c: LocalUsageReadInput): LocalUsageEvent[];
45
- /** One synchronous usage; a fixed shell launcher sets the file limit without evaluating card commands. */
45
+ /** One synchronous usage; a fixed shell launcher sets the file limit without evaluating card commands.
46
+ * read-tree/update-index were forbidden on the source index; here they only write the copy's private gitdir. */
46
47
  export declare function runLocalUsage(input: RunLocalUsageInput): UsageEvent;
47
48
  export {};
@@ -152,7 +152,8 @@ async function usageSupervisor() {
152
152
  }
153
153
  });
154
154
  }
155
- /** One synchronous usage; a fixed shell launcher sets the file limit without evaluating card commands. */
155
+ /** One synchronous usage; a fixed shell launcher sets the file limit without evaluating card commands.
156
+ * read-tree/update-index were forbidden on the source index; here they only write the copy's private gitdir. */
156
157
  export function runLocalUsage(input) {
157
158
  let stage = "wejście", published = false, lock, pending;
158
159
  let root, run, result;
@@ -207,6 +208,19 @@ export function runLocalUsage(input) {
207
208
  const extracted = spawnSync("tar", ["-xf", archive, "-C", copy], { cwd: run, env, encoding: "utf8", shell: false });
208
209
  if (!cleanExit(extracted))
209
210
  throw new Error(`tar: status=${extracted.status}, signal=${extracted.signal}: ${extracted.stderr ?? ""}${extracted.error ? `; error=${failure(extracted.error)}` : ""}`, { cause: extracted.error });
211
+ stage = "widok git";
212
+ const objects = git(input.repo, ["rev-parse", "--git-path", "objects"]);
213
+ if (!objects || /[\r\n\0]/.test(objects))
214
+ throw new Error("Niepoprawny katalog obiektów git");
215
+ const objectDir = realpathSync(path.resolve(input.repo, objects));
216
+ if (!lstatSync(objectDir).isDirectory())
217
+ throw new Error("Niepoprawny katalog obiektów git");
218
+ const gitDir = path.join(copy, ".git"), privateGit = [`--git-dir=${gitDir}`];
219
+ git(copy, [...privateGit, "init", "-q"]);
220
+ writeFileSync(path.join(gitDir, "objects/info/alternates"), objectDir + "\n", { flag: "wx", mode: 0o600 });
221
+ git(copy, [...privateGit, "update-ref", "--no-deref", "HEAD", sha]);
222
+ git(copy, [...privateGit, "read-tree", sha]);
223
+ git(copy, [...privateGit, "update-index", "-q", "--refresh"]);
210
224
  stage = "drzewo";
211
225
  const tree = new Map();
212
226
  for (const record of git(input.repo, ["ls-tree", "-r", "-z", "--full-tree", sha]).split("\0").filter(Boolean)) {
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.6.3 \u2014 plik zarz\u0105dzany przez `npx robisie`; `npx robisie uninstall` go usunie -->";
20
+ export declare const MANAGED_LINE = "<!-- robisie:managed 0.6.4 \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.6.3) <!-- x-release-please-version -->
1
+ # robisie — from account to accepted card (package 0.6.4) <!-- 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
 
@@ -594,7 +594,13 @@ Once the tgz and selected copies are ready, update. After login, init and doctor
594
594
 
595
595
  The normal update is `npx robisie update` (host: add `--engine-config /absolute/path/robisie.config.json`). The first interactive invocation visibly asks for consent and saves `update={consentedAt, enabled:true}` while preserving other configuration fields. Without consent or with `enabled:false`, background invocations exit 0 without changes. After consent, launchd `com.robisie.update` or `robisie-update.timer` runs the same command every 120 seconds; factory runs `factory run --once` on its own 120-second timer. The package prepares an exact npm version in a separate directory, verifies its build-id and integrity, then switches its private current pointer. Health requires two distinct fresh OK ticks with the expected loaded build-id within 1200 seconds (polling every 20 seconds). Failure starts a separate 1200-second health window for the previous version; both confirmed and unconfirmed rollback exit nonzero. New work prevents switching or rollback. On the macOS host, the same command updates the package without board or DB access. It preserves the existing `com.robisie.maszynista` label, environment, logs and interval; it does not create a second factory clock. A fresh LAST-TICK with running Workers or an unknown execution count defers the switch. A private byte-for-byte mode backup and its SHA-256 protect the activation HOLD (`off`); the original mode must be restored with a matching hash. Failure restores the old service and package under the tick lock; real new work prevents an unsafe rollback and raises an alarm. After releasing HOLD, update observes the checkout for up to 480 seconds; the existing pinned activator performs the FF. Read the private audit and attempts in `<stateDir>/update/`; a failed preparation also records the version. To retry only after resolving the cause, remove that version’s one line from `attempts.jsonl`. Deferral is not a failed attempt; after 7200 seconds it records one alarm. `AUTO-UPDATE.off` in `HU_HOME` or the canonical host configuration directory stops host updates. The shared `auto-update.lock.d` and legacy `auto-update.state` also exclude the old updater; before a justified retry, reconcile both attempt registries. Host notifications use the existing CEO inbox and CTO surface; missing delivery is recorded in the audit. Keep the private backup and separate archive restore below. Restart the assistant after roles refresh.
596
596
 
597
- For the first upgrade from robisie ≤0.5.45, run `npm install robisie@latest` manually in the installation, then `npx robisie update` (on the host, include its `--engine-config`). Later upgrades use the same update command. Live host activation and retirement of the old updater require separate operator acceptance.
597
+ For the first upgrade from robisie ≤0.5.48, run `npm install robisie@latest` manually in the installation, then `npx robisie update` (on the host, include its `--engine-config`). Later upgrades use the same update command. Live host activation and retirement of the old updater require separate operator acceptance.
598
+
599
+ The update needs Node.js 24 or newer on the PATH of the shell that runs the command and of the service; check `node -v` and `command -v node`, because an older Node on the PATH ends the command with a version message.
600
+
601
+ On Linux the update command needs a working `systemd --user` session; check `systemctl --user show-environment`, and if there is none, the human enables linger with `loginctl enable-linger $USER` and sets `XDG_RUNTIME_DIR=/run/user/$(id -u)`.
602
+
603
+ The human gives consent to updates. An agent without a terminal does not write it on its own; only after the human's explicit instruction does it add exactly `"update":{"consentedAt":"<ISO time with offset>","enabled":true}` to `robisie.config.json`; without that entry the background command exits with code 0 and changes nothing.
598
604
 
599
605
  <!-- update:start -->
600
606
  ```sh
package/docs/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # robisie — od konta do odebranej karty (paczka 0.6.3) <!-- x-release-please-version -->
1
+ # robisie — od konta do odebranej karty (paczka 0.6.4) <!-- 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
 
@@ -642,7 +642,13 @@ Kopia i odtworzenie obejmują oba pliki key i review-key z prywatnymi uprawnieni
642
642
 
643
643
  Zwykła aktualizacja to `npx robisie update` (host: dodaj `--engine-config /absolutna/sciezka/robisie.config.json`). Pierwsze interaktywne wywołanie pyta jawnie o zgodę i zapisuje `update={consentedAt, enabled:true}`, zachowując pozostałe pola konfiguracji. Bez zgody lub przy `enabled:false` wywołanie w tle kończy się kodem 0 bez zmian. Po zgodzie launchd `com.robisie.update` albo `robisie-update.timer` uruchamia tę samą komendę co 120 sekund; fabryka wykonuje `factory run --once` na osobnym cyklu 120 sekund. Paczka przygotowuje dokładną wersję npm w osobnym katalogu, sprawdza build-id i integralność, potem wymienia prywatny wskaźnik current. Zdrowie wymaga dwóch różnych świeżych taktów OK z loaded oczekiwanego build-id w 1200 sekund, odczytywanych co 20 sekund. Przy błędzie powrót ma osobne okno 1200 sekund dla starego wydania; zarówno potwierdzony, jak i niepotwierdzony powrót ma kod niezerowy. Nowa praca blokuje przełączenie lub powrót. Na hoście macOS ta sama komenda aktualizuje paczkę bez dostępu do tablicy i DB. Zachowuje istniejący label `com.robisie.maszynista`, środowisko, logi i interwał; nie tworzy drugiego zegara fabryki. Świeży LAST-TICK z pracującym Workerem albo nieznanym licznikiem wykonań odracza switch. Prywatna kopia bajtów mode i jej SHA-256 chronią HOLD aktywacji (`off`); oryginalny mode musi wrócić ze zgodnym hashem. Awaria odtwarza starą usługę i paczkę pod blokadą taktu; nowa rzeczywista praca powstrzymuje niebezpieczny powrót i wywołuje alarm. Po zdjęciu HOLD update obserwuje checkout do 480 sekund; FF wykonuje istniejący pinned aktywator. Prywatny audyt i próby znajdziesz w `<stateDir>/update/`; błąd przygotowania też zapisuje wersję. Aby ponowić po wyjaśnieniu przyczyny, usuń jedną linię tej wersji z `attempts.jsonl`. Odroczenie nie oznacza nieudanej próby; po 7200 sekund zapisuje jeden alarm. `AUTO-UPDATE.off` w HU_HOME albo katalogu kanonicznego configu hosta zatrzymuje hostowe aktualizacje. Wspólne `auto-update.lock.d` i legacy `auto-update.state` wykluczają też stary aktualizator; przed uzasadnionym ponowieniem rozlicz oba rejestry prób. Powiadomienia hosta korzystają z istniejącej skrzynki CEO i adresu CTO; brak dostawy trafia do audytu. Zachowaj prywatną kopię i osobny awaryjny restore archiwum. Po odświeżeniu ról uruchom ponownie asystenta.
644
644
 
645
- Pierwsze przejście z robisie ≤0.5.45 wykonaj ręcznie: `npm install robisie@latest` w instalacji, potem `npx robisie update` (na hoście z jego `--engine-config`). Kolejne wydania obsługuje ta sama komenda update. Aktywacja żywego hosta i wyłączenie starego aktualizatora wymagają osobnego odbioru operatora.
645
+ Pierwsze przejście z robisie ≤0.5.48 wykonaj ręcznie: `npm install robisie@latest` w instalacji, potem `npx robisie update` (na hoście z jego `--engine-config`). Kolejne wydania obsługuje ta sama komenda update. Aktywacja żywego hosta i wyłączenie starego aktualizatora wymagają osobnego odbioru operatora.
646
+
647
+ Aktualizacja wymaga Node.js 24 lub nowszego na PATH powłoki, w której uruchamiasz komendę, i usługi; sprawdź `node -v` i `command -v node`, bo starszy Node na PATH kończy komendę komunikatem o wersji.
648
+
649
+ Na Linuxie komenda update wymaga działającej sesji `systemd --user`; sprawdź `systemctl --user show-environment`, a gdy sesji nie ma, człowiek włącza linger poleceniem `loginctl enable-linger $USER` i ustawia `XDG_RUNTIME_DIR=/run/user/$(id -u)`.
650
+
651
+ Zgodę na aktualizacje wyraża człowiek. Agent bez terminala nie wpisuje jej sam; dopiero po wyraźnym poleceniu człowieka dopisuje do `robisie.config.json` dosłownie `"update":{"consentedAt":"<czas ISO z przesunięciem strefy>","enabled":true}`; bez takiego wpisu komenda w tle kończy się kodem 0 bez zmian.
646
652
 
647
653
  <!-- update:start -->
648
654
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "robisie",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Instalator klienta robisie: łączy agenta (Claude Code, Codex CLI, OpenCode) z tablicą robisie i instaluje role klienta.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",