@outerlayer/cli 0.38.0-next.20261109134838 → 0.38.0-next.20261109143949

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.
Files changed (32) hide show
  1. package/README.md +3 -1
  2. package/dist/build-info.json +1 -1
  3. package/dist/{check-Z25NGNZY.js → check-YUKNUSAS.js} +6 -6
  4. package/dist/{chunk-MLM4BYK2.js → chunk-5TZCV6JB.js} +1 -1
  5. package/dist/{chunk-KF4IV2ET.js → chunk-6JW2L7UV.js} +3 -3
  6. package/dist/{chunk-2WQG2WLR.js → chunk-G7HNRAXN.js} +1 -1
  7. package/dist/{chunk-ELTELKNV.js → chunk-HUP2CGX4.js} +1 -1
  8. package/dist/{chunk-ZK552E7A.js → chunk-HW7QPCOP.js} +52 -11
  9. package/dist/{chunk-YEE42T22.js → chunk-NR3FDUWS.js} +1 -1
  10. package/dist/{chunk-CKN6NS7D.js → chunk-O4Q7GPKU.js} +1 -1
  11. package/dist/{chunk-UIPZEJSC.js → chunk-RVDXHF2M.js} +6 -6
  12. package/dist/{chunk-2OHSKVZG.js → chunk-TFR6S7ZB.js} +1 -1
  13. package/dist/{cli-WSTTVQYE.js → cli-7VKJRQWW.js} +25 -25
  14. package/dist/{command-YTVFIEDS.js → command-3WAJBJWX.js} +2 -2
  15. package/dist/{container-start-B4GC6QH4.js → container-start-T4GH4WLX.js} +3 -3
  16. package/dist/{doctor-32ODPZE2.js → doctor-KHAB6YWH.js} +3 -3
  17. package/dist/{host-checks-JVFVCWIF.js → host-checks-HZLHQ6WH.js} +1 -1
  18. package/dist/index.js +1 -1
  19. package/dist/{init-WRA2KJKD.js → init-7F2KP6XU.js} +1 -1
  20. package/dist/{init-JR2KKJZ2.js → init-XTTWPX6J.js} +1 -1
  21. package/dist/{init-agent-UBGGM5K6.js → init-agent-RJSMNEWD.js} +1 -1
  22. package/dist/{init-cmd-OIWNFYIA.js → init-cmd-F72BWVFC.js} +1 -1
  23. package/dist/{loop-Q33AQ2UD.js → loop-O5JBFZXP.js} +6 -6
  24. package/dist/{machine-LANNWRZS.js → machine-LGJSYGQS.js} +1 -1
  25. package/dist/{runner-key-LYEB7RTM.js → runner-key-TFFPQCGE.js} +1 -1
  26. package/dist/{status-XTL6X4EU.js → status-KGZWBU26.js} +1 -1
  27. package/dist/{update-steps-G2XJ43PU.js → update-steps-3LU3NZQL.js} +2 -2
  28. package/dist/{work-claim-cmd-ANXDKSAU.js → work-claim-cmd-FNE2ZMVG.js} +1 -1
  29. package/dist/{work-proofs-cmd-7JOEX2VA.js → work-proofs-cmd-2XWS5N2R.js} +1 -1
  30. package/dist/{work-proofs-record-6BM436H2.js → work-proofs-record-KEZ6Z4QH.js} +1 -1
  31. package/package.json +1 -1
  32. package/skill-pack/maintained/outerlayer-build/references/code-review-judge.md +7 -0
package/README.md CHANGED
@@ -340,7 +340,9 @@ content:
340
340
  and whether its commits were authored by the GitHub App's bot account and
341
341
  credited the member who asked for the build. The runner sets that author in
342
342
  the build's environment and adds the `Co-authored-by` line with git hooks it
343
- writes into the build's own directory.
343
+ writes into the build's own directory. When the built-in code review ends,
344
+ `runner/code-review-report.ts` sends its result to your gateway with
345
+ `POST /v1/work-items/{id}/claim/code-review`.
344
346
  - **`outerlayer runner start` with `builtin:sandbox` hooks** runs each build
345
347
  in a sandbox, a microVM that a sandbox provider hosts. The runner calls
346
348
  the provider's API at `SANDBOX_API_URL` with the provider's API key
@@ -1 +1 @@
1
- {"id":"2026-11-09T13:55:52.744Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-09T14:46:58.671Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { probeCredentials } from './chunk-UIPZEJSC.js';
3
+ import { probeCredentials } from './chunk-RVDXHF2M.js';
4
4
  import './chunk-3JVYMD4G.js';
5
- import './chunk-YEE42T22.js';
5
+ import './chunk-NR3FDUWS.js';
6
6
  import './chunk-E7R2GIAW.js';
7
7
  import './chunk-DX27B42J.js';
8
8
  import './chunk-4EQQS3VJ.js';
9
- import './chunk-CKN6NS7D.js';
9
+ import './chunk-O4Q7GPKU.js';
10
10
  import './chunk-MMSFADKC.js';
11
- import './chunk-MLM4BYK2.js';
12
- import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-2OHSKVZG.js';
11
+ import './chunk-5TZCV6JB.js';
12
+ import { fleetConfigProblem, managedProblems, managedFactsOf, askFleetMachine } from './chunk-TFR6S7ZB.js';
13
13
  import './chunk-X45WDWSV.js';
14
14
  import { findServiceUnit } from './chunk-LYWLBZ37.js';
15
- import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-ZK552E7A.js';
15
+ import { placeholderQueues, placeholderProblem, permissionModeProblems, permissionModeProblem, HELPER_ENV, helperSocketPath, probeHelper, needsAgentCredential, agentCredentialCheck, claimPermissionProblem, formerSkillQueues, modellessQueues, formerSkillProblem, modellessProblem } from './chunk-HW7QPCOP.js';
16
16
  import './chunk-LIH6CIVB.js';
17
17
  import './chunk-2PGI6RDE.js';
18
18
  import './chunk-I3LTIAOR.js';
@@ -4,6 +4,6 @@ import { createRequire } from 'node:module';
4
4
  createRequire(import.meta.url);
5
5
 
6
6
  // src/runner/protocol.ts
7
- var RUNNER_PROTOCOL = 46;
7
+ var RUNNER_PROTOCOL = 47;
8
8
 
9
9
  export { RUNNER_PROTOCOL };
@@ -129,14 +129,14 @@ function governingDir(cwd) {
129
129
  async function testProofMode(cwd) {
130
130
  const dir = governingDir(cwd);
131
131
  if (dir === void 0) return "any";
132
- const { testProofIn } = await import('./host-checks-JVFVCWIF.js');
132
+ const { testProofIn } = await import('./host-checks-HZLHQ6WH.js');
133
133
  return testProofIn(dir);
134
134
  }
135
135
  async function judgeCheckName(cwd) {
136
136
  const dir = governingDir(cwd);
137
137
  if (dir === void 0) return {};
138
138
  if (!existsSync(dir)) return { note: `the governed context at ${dir} is not readable` };
139
- const { checksIn, isJudgeCheck } = await import('./host-checks-JVFVCWIF.js');
139
+ const { checksIn, isJudgeCheck } = await import('./host-checks-HZLHQ6WH.js');
140
140
  const quiet = { line: () => void 0, error: () => void 0 };
141
141
  const check = checksIn(dir, quiet, "").checks.find((c) => isJudgeCheck(c) && c.judge.subjects === "criteria");
142
142
  return check === void 0 ? {} : { name: check.name };
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-6BM436H2.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-KEZ6Z4QH.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -1080,7 +1080,7 @@ async function gatherDoctorChecks(options = {}) {
1080
1080
  const { runnerVmCheck } = await import('./doctor-53F2PYY7.js');
1081
1081
  checks.push(runnerVmCheck(configPath, { lima: realLima(), home: homeFromEnv(), instance: runnerVm.instance }));
1082
1082
  } else if (hasRunnerBlock(configPath)) {
1083
- const { runnerHostChecks } = await import('./doctor-32ODPZE2.js');
1083
+ const { runnerHostChecks } = await import('./doctor-KHAB6YWH.js');
1084
1084
  const gateway = (() => {
1085
1085
  try {
1086
1086
  const loaded = loadRunnerConfig(configPath);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperSocketPath } from './chunk-ZK552E7A.js';
3
+ import { helperSocketPath } from './chunk-HW7QPCOP.js';
4
4
  import { UNIT_MARKER } from './chunk-4K2EMRJP.js';
5
5
  import { runnerDir } from './chunk-LO3PSFNT.js';
6
6
  import { createHash } from 'crypto';
@@ -7823,7 +7823,8 @@ function mergeAnswers(answers) {
7823
7823
  const lists = answers.flatMap((answer) => answer.reviewed === void 0 ? [] : [answer.reviewed]);
7824
7824
  const reviewed = lists.length === 0 ? void 0 : [...new Set(lists.flat())];
7825
7825
  const failed = answers.some((answer) => answer.result === "fail") || items.some((entry) => entry.result === "fail");
7826
- const result = failed ? "fail" : answers.every((answer) => answer.result === "pass") ? "pass" : void 0;
7826
+ const said2 = answers.filter((answer) => answer.result !== void 0);
7827
+ const result = failed ? "fail" : said2.length > 0 && said2.every((answer) => answer.result === "pass") ? "pass" : void 0;
7827
7828
  return { ...result === void 0 ? {} : { result }, items, ...reviewed === void 0 ? {} : { reviewed } };
7828
7829
  }
7829
7830
  function unreviewedItem(changed, reviewed, commit) {
@@ -7845,6 +7846,28 @@ function unreviewedItem(changed, reviewed, commit) {
7845
7846
  return { id: UNREVIEWED_FILES_ITEM_ID, result: "skipped", commit, reason: `${reason}.` };
7846
7847
  }
7847
7848
 
7849
+ // src/runner/code-review-report.ts
7850
+ var REPORT_RETRY_WINDOW_MS = 2e4;
7851
+ var MAX_REASON_LENGTH = 2e3;
7852
+ async function reportCodeReview(config, job, report, deps) {
7853
+ if (job.codeReview !== true) return;
7854
+ const tag = itemTag(job);
7855
+ try {
7856
+ const calls = claimCalls(config, job);
7857
+ const item = claimItem(config, job);
7858
+ const body = report.result === "failed" ? { ...report, runnerReason: report.runnerReason.slice(0, MAX_REASON_LENGTH) } : report;
7859
+ const signer = await signerFor(calls.configPath);
7860
+ const sent = await retrySend(() => postJson(calls.url, `/v1/work-items/${item}/claim/code-review`, calls.apiKey, calls.appId, body, deps.fetchImpl, void 0, signer), {
7861
+ now: deps.now,
7862
+ sleep: deps.sleep,
7863
+ windowMs: REPORT_RETRY_WINDOW_MS
7864
+ });
7865
+ if (!sent.ok) deps.log.line(`${tag} the code review's report was not recorded: ${sent.reason}`);
7866
+ } catch (err) {
7867
+ deps.log.line(`${tag} the code review's report was not sent: ${describeCallFailure(err)}`);
7868
+ }
7869
+ }
7870
+
7848
7871
  // src/runner/judge.ts
7849
7872
  var LIMIT_KEY_TAIL = " (runner.checks.timeLimitMinutes)";
7850
7873
  var MAX_DIFF_BYTES = 4 * 1024 * 1024;
@@ -7996,9 +8019,11 @@ async function runJudge(input) {
7996
8019
  log.line(`${tag} judge started (${checks.map((check) => check.name).join(", ")})`);
7997
8020
  const startedMs = now().getTime();
7998
8021
  const record = makeRecorder({ config, job, jobDir, deps });
7999
- const fail = (check, reason) => {
8022
+ const reportReview = (check, what) => check.builtIn === true ? reportCodeReview(config, job, what, deps) : Promise.resolve();
8023
+ const fail = async (check, reason) => {
8000
8024
  log.error(`${tag} judge failed: ${reason}`);
8001
- return record(check.name, "fail", reason, check.judge.subjects === "none" ? { items: notRunItems(reason) } : {});
8025
+ await record(check.name, "fail", reason, check.judge.subjects === "none" ? { items: notRunItems(reason) } : {});
8026
+ await reportReview(check, { result: "failed", reason: "review_not_run", runnerReason: oneLineReason(cleanReason(reason)) ?? "the code review did not run" });
8002
8027
  };
8003
8028
  try {
8004
8029
  for (const check of checks) {
@@ -8014,17 +8039,19 @@ async function runJudge(input) {
8014
8039
  }
8015
8040
  async function noReview() {
8016
8041
  const started = job.container ?? job.microvm;
8017
- if (started === void 0) return "this build ran under a provision hook of the host's own";
8042
+ if (started === void 0) return { text: "this build ran under a provision hook of the host's own", report: { result: "skipped", reason: "own_provision_hook" } };
8018
8043
  const workItem = await readItem();
8019
8044
  const open = openPullRequests(workItem);
8020
- if (open.length > 1) return "the item has more than one open pull request";
8021
- if (open.length === 1 && open[0].toLowerCase() !== repo.toLowerCase()) return "the item's open pull request is in another repository";
8045
+ if (open.length > 1) return { text: "the item has more than one open pull request", report: { result: "skipped", reason: "several_pull_requests" } };
8046
+ if (open.length === 1 && open[0].toLowerCase() !== repo.toLowerCase()) {
8047
+ return { text: "the item's open pull request is in another repository", report: { result: "skipped", reason: "other_repository" } };
8048
+ }
8022
8049
  if (job.branch === void 0) return void 0;
8023
8050
  const read = await (deps.readBranch ?? readBranchHead)({ remote: remoteOf(), dir: scratch, branch: job.branch, token: readToken });
8024
8051
  if (read.kind === "unreadable") return void 0;
8025
- if (read.kind === "absent" || read.sha === started.startCommit) return "the branch holds nothing to review";
8052
+ if (read.kind === "absent" || read.sha === started.startCommit) return { text: "the branch holds nothing to review", report: { result: "skipped", reason: "nothing_new" } };
8026
8053
  try {
8027
- return await hostReviewed(itemCalls(config, job), workItem, read.sha, deps.fetchImpl) ? "a host result already covers the branch head" : void 0;
8054
+ return await hostReviewed(itemCalls(config, job), workItem, read.sha, deps.fetchImpl) ? { text: "a host result already covers the branch head", report: { result: "skipped", reason: "already_reviewed", commit: read.sha } } : void 0;
8028
8055
  } catch (err) {
8029
8056
  log.line(`${tag} the item's results could not be read, so the head is reviewed: ${describeCallFailure(err)}`);
8030
8057
  return void 0;
@@ -8039,7 +8066,8 @@ async function runJudge(input) {
8039
8066
  return await fail(check, `the item could not be read: ${describeCallFailure(err)}`);
8040
8067
  }
8041
8068
  if (skipped !== void 0) {
8042
- log.line(`${tag} no code review: ${skipped}`);
8069
+ log.line(`${tag} no code review: ${skipped.text}`);
8070
+ await reportReview(check, skipped.report);
8043
8071
  return;
8044
8072
  }
8045
8073
  }
@@ -8228,7 +8256,10 @@ async function runJudge(input) {
8228
8256
  if (!reviewed.ok) return await fail(check, reviewed.reason);
8229
8257
  const answers = [];
8230
8258
  for (const { territory, reply, answer } of reviewed.runs) {
8231
- if (answer?.ok === true) answers.push(answer.answer);
8259
+ if (answer?.ok === true && reply.kind === "none") {
8260
+ answers.push({ items: answer.answer.items, ...answer.answer.reviewed === void 0 ? {} : { reviewed: answer.answer.reviewed } });
8261
+ log.line(`${tag} the ${territory.name} review stopped before it ended, so only what it found is kept: ${reply.reason}`);
8262
+ } else if (answer?.ok === true) answers.push(answer.answer);
8232
8263
  else log.line(`${tag} the ${territory.name} review gave no answer: ${answer?.ok === false ? answer.reason : reply.kind === "none" ? reply.reason : "it wrote no answer file"}`);
8233
8264
  }
8234
8265
  const first = reviewed.runs[0];
@@ -8334,6 +8365,12 @@ async function runJudge(input) {
8334
8365
  const complete = at.result === "fail" ? named.some((item) => item.result === "fail") : named.some((item) => item.commit !== void 0);
8335
8366
  const items = check.builtIn === true && !notRun && !complete ? [...named, { id: REVIEWED_COMMIT_ITEM_ID, result: at.result, commit: at.head, ...at.reason === void 0 ? {} : { reason: at.reason } }] : at.items;
8336
8367
  await record(check.name, at.result, at.reason, { keyTail: at.limitKey === true ? LIMIT_KEY_TAIL : "", link, items: sendable(items) });
8368
+ if (notRun) {
8369
+ await reportReview(check, { result: "failed", reason: "review_not_run", runnerReason: oneLineReason(cleanReason(at.reason ?? "")) ?? "the judge did not run" });
8370
+ } else {
8371
+ const failing = named.filter((item) => item.result === "fail").length;
8372
+ await reportReview(check, { result: "reviewed", reason: "reviewed", commit: at.head, problems: at.result === "fail" ? Math.max(failing, 1) : failing });
8373
+ }
8337
8374
  }
8338
8375
  function sendable(items) {
8339
8376
  if (items === void 0) return void 0;
@@ -9095,10 +9132,14 @@ async function finishJob(job, jobDirPath, outcome, config, deps, ending) {
9095
9132
  log.error(`${tag} the host's proof recording stopped: ${describeCallFailure(err)} \xB7 continuing`);
9096
9133
  }
9097
9134
  }
9098
- if (valuesNotHeld && outcome === "ok" && !job.cleanupRan) log.error(`${tag} the host's judge and checks skipped: ${VALUES_NOT_HELD}`);
9135
+ if (valuesNotHeld && outcome === "ok" && !job.cleanupRan) {
9136
+ log.error(`${tag} the host's judge and checks skipped: ${VALUES_NOT_HELD}`);
9137
+ await reportCodeReview(config, job, { result: "skipped", reason: "variables_lost" }, { fetchImpl: deps.fetchImpl, log, now: deps.now, sleep: deps.sleep });
9138
+ }
9099
9139
  if (outcome === "ok" && !job.cleanupRan && job.sandbox !== void 0 && job.judgeRan !== true) {
9100
9140
  job.judgeNotRun = "the host's judge and checks do not run for a build in a sandbox";
9101
9141
  log.line(`${tag} the host's judge and checks are not run for a build in a sandbox`);
9142
+ await reportCodeReview(config, job, { result: "skipped", reason: "sandbox" }, { fetchImpl: deps.fetchImpl, log, now: deps.now, sleep: deps.sleep });
9102
9143
  }
9103
9144
  if (outcome === "ok" && !job.cleanupRan && job.judgeRan !== true && !valuesNotHeld && job.sandbox === void 0) {
9104
9145
  setStage(job, jobDirPath, "judge");
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { scrubReason, stripTerminalControls } from './chunk-ZK552E7A.js';
3
+ import { scrubReason, stripTerminalControls } from './chunk-HW7QPCOP.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4K2EMRJP.js';
5
5
  import { RunnerAlreadyRunningError, readPidFile } from './chunk-DEWD22FA.js';
6
6
  import { isSameProcess } from './chunk-JBJTC3UU.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { stripTerminalControls } from './chunk-ZK552E7A.js';
3
+ import { stripTerminalControls } from './chunk-HW7QPCOP.js';
4
4
  import { tagToPull, imageTag, pullInstruction, readUpdateStatus, runnerImageVersion } from './chunk-6EN72I2O.js';
5
5
  import { readFileSync } from 'fs';
6
6
 
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { decideInstalledSwitch } from './chunk-3JVYMD4G.js';
4
- import { reportFailedStart, fitImageBuildMemory } from './chunk-YEE42T22.js';
4
+ import { reportFailedStart, fitImageBuildMemory } from './chunk-NR3FDUWS.js';
5
5
  import { fetchVersionMeta, npmVersion, npmSupportsProvenance, fetchTarballDigest, fetchProvenance, installVersion, auditSignatures } from './chunk-E7R2GIAW.js';
6
6
  import { writeFleetState } from './chunk-DX27B42J.js';
7
7
  import { writePendingUpdate } from './chunk-4EQQS3VJ.js';
8
- import { renderUpdateSteps } from './chunk-CKN6NS7D.js';
8
+ import { renderUpdateSteps } from './chunk-O4Q7GPKU.js';
9
9
  import { readHousekeepingRecord, writeHousekeepingRecord } from './chunk-MMSFADKC.js';
10
- import { RUNNER_PROTOCOL } from './chunk-MLM4BYK2.js';
11
- import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-2OHSKVZG.js';
10
+ import { RUNNER_PROTOCOL } from './chunk-5TZCV6JB.js';
11
+ import { fleetConfigProblem, realBlockedProbes, sliceMemoryOf, checkBlockedWithSlots, largeBuildMemoryBytes, LARGE_BUILD_DISK_BYTES, checkManagedRoom, askFleetMachine } from './chunk-TFR6S7ZB.js';
12
12
  import { writeMarker, readMarker, currentVersion, removeMarker, isInLayout, startedThroughCurrent, entryIn, versionDir, switchCurrent, cleanVersions, stagingDir } from './chunk-X45WDWSV.js';
13
- import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-ZK552E7A.js';
13
+ import { leaseTimeLeftMs, createContainerRuntime, withTunnelLog, releaseLease, LEASE_SECONDS, itemTag, isUnfinished, prepareResume, restoreSessionIntoMicroVm, restoreSessionIntoContainer, recordsProofsOnly, itemScope, attemptNote, fetchManagedClaudeKey, holdManagedClaudeKey, fetchManagedBuildSettings, holdManagedBuildSettings, setStage, jobEnv, runHook, describeHookEnd, needsBuildSkill, provisionContainer, leaseExpiresAtMs, deliverContainerHooks, provisionSandbox, deliverSandboxHooks, provisionMicroVm, deliverCommitHooks, provisionEnvironment, readProvisionOut, resolveHostBuild, workdirProblem, listenOnBroker, hostEnvironment, deliverExecMaven, runWithSpawn, hostCommandEnvironment, lifecycleSteps, execArgv, lifecycleFailureReason, decideHostBuildSkill, prepareBranch, keptCommitsLine, currentSkillCommand, formerSkillProblem, commandLogOffset, startSandboxCommand, MICROVM_COMMAND_DIR, startMicroVmCommand, microVmCommandLine, runCommand, containerCommandExec, execCommandLine, startSender, startHostServices, finishJob, sampleGuest, foldSample, isSandboxTracked, isContainerTracked, isMicroVmTracked, probeSandboxCommand, probeMicroVmCommand, probeCommand, appendCommandLog, judgeProbe, SandboxGoneError, EXIT_CODE_FILE, isTracked, isGroupAlive, outcomeFromExitCode, isIsolatedJob, isTimedOut, readCpuUsec, isIdle, HELPER_ENV, setUpRunnerCgroup, stopOrphanedMicroVms, unfinishedJobs, sweepImageBuilders, listUnreadableJobs, listAdoptableJobs, retryFailedReleases, recoverLostJobs, GUEST_USAGE_INTERVAL_MS, listItemDisks, usableCpus, hookLimitsFor, AttemptLogBook, microVmOomKills, needsRenew, renewLease, RENEW_INTERVAL_SECONDS, stoppedHelperReason, measureDisk, listTrackedJobs, sweepSandboxes, parseCpuList, ensureTunnel, keepGhConfigCurrent, filesAreCopied, restartSender, createHousekeepingDocker, housekeepingDockerIfReachable, runHousekeeping, jobRecordsClaim, freeItemDisksUntil, savedStatesDir, readRecords, removeOldestUntil, ensureNetworkReady, managedBuildSettingsFor, ADOPTED_FETCH_RETRY_WINDOW_MS, gitRemoteFor, startServicesFor, installTrust, createLeaseChannel, serveLease, vmAlive, writeGuestGhConfig, shellQuote, deliverJobFiles, inTeardown } from './chunk-HW7QPCOP.js';
14
14
  import { RUNNER_RESERVE_BYTES } from './chunk-4K2EMRJP.js';
15
15
  import { RepoFilter } from './chunk-4LUHKCDO.js';
16
16
  import { JOB_STATE_FORMAT, readsJobState, jobStateFormatOf } from './chunk-ZVB57WI6.js';
@@ -3772,7 +3772,7 @@ async function startRunner(configPath, deps, startup) {
3772
3772
  check: update.check ? () => update.check(configPath) : async () => {
3773
3773
  const held = runnerAgents(deps.agents).flatMap((agent) => heldAgentCredential(agent.descriptor.id) ?? []);
3774
3774
  const env = { ...process.env, ...Object.fromEntries(held.map((credential) => [credential.variable, credential.value])) };
3775
- return (await import('./check-Z25NGNZY.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3775
+ return (await import('./check-YUKNUSAS.js')).runRunnerCheck(configPath, { fetchImpl: deps.fetchImpl, env });
3776
3776
  },
3777
3777
  now: () => (deps.now ?? (() => /* @__PURE__ */ new Date()))().getTime(),
3778
3778
  log
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { placeholderQueues, placeholderProblem } from './chunk-ZK552E7A.js';
3
+ import { placeholderQueues, placeholderProblem } from './chunk-HW7QPCOP.js';
4
4
  import { checkFit, RUNNER_RESERVE_BYTES } from './chunk-4K2EMRJP.js';
5
5
  import { getJson, WorkCommandError } from './chunk-7TM2E4RI.js';
6
6
  import { isBuiltinVm, builtinKind, EGRESS_SWITCHABLE_KEYS, imageBuildOf, keepsHostBuilder } from './chunk-KX4JKW4Z.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-2WQG2WLR.js';
3
+ import { gatherDoctorChecks, doctorExitCode, summarizeChecks, renderDoctorText, recordWrapped, recordUnwrapped, recordRemoval, readManifest, recordInstall, recordStatusline } from './chunk-G7HNRAXN.js';
4
4
  import './chunk-LIMJRKIU.js';
5
5
  import { verifiedTrackerNames, TRACKERS } from './chunk-7TM2E4RI.js';
6
6
  import './chunk-KIYP5TML.js';
@@ -3944,13 +3944,13 @@ what CLIs older than ${FIRST_VERSION_READING_AGENTS_SKILLS} do. \`` + cliInvocat
3944
3944
  if (changed.length > 0 && !opts.json) process.stdout.write(`Removed the claude function from ${changed.join(", ")}.
3945
3945
  `);
3946
3946
  }
3947
- const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-OIWNFYIA.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3947
+ const shell = !opts.remove && opts.shellFunction !== void 0 ? (await import('./init-cmd-F72BWVFC.js')).applyShellFunctionFlag(opts.shellFunction, { home: homeFromEnv(), shellPath: process.env.SHELL }) : void 0;
3948
3948
  if (opts.json) writeJson(shell === void 0 ? outcome.result : { ...outcome.result, shellFunction: { outcome: shell.outcome, reason: shell.reason } });
3949
3949
  else process.stdout.write(outcome.text + skillsLine + (shell?.text ?? ""));
3950
3950
  return;
3951
3951
  }
3952
3952
  await installMachineSkillsForSetup();
3953
- const { runInitCommand } = await import('./init-cmd-OIWNFYIA.js');
3953
+ const { runInitCommand } = await import('./init-cmd-F72BWVFC.js');
3954
3954
  const code = await runInitCommand(
3955
3955
  { json: opts.json, factory: opts.factory, shellFunction: opts.shellFunction },
3956
3956
  {
@@ -5057,7 +5057,7 @@ stops at once if a tracked file differs from HEAD.
5057
5057
  fail(trackerNumberError("--pr", opts.pr));
5058
5058
  return;
5059
5059
  }
5060
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-7JOEX2VA.js');
5060
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-2XWS5N2R.js');
5061
5061
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5062
5062
  });
5063
5063
  workCmd.command("list").description("List live work items for this factory").option("--stage <spec|build|review>", "filter by stage").option("--section <attention|waiting|flowing>", "filter by Queue section").option("--repo <owner/name>", "repository (default: the current checkout's remote)").option("--unclaimed", "only items with no live lease").option("--claimed", "only items with a live lease, held by a host or a local session").option("--startable", "only items a host can start: a build request, no open PR, no live lease").option("--needs <amend>", "only items with a thread waiting on an agent").option("--json", "machine-readable JSON output").option("--url <url>", "cloud base URL (or OUTERLAYER_URL / config)").addOption(apiKeyOption()).option("--app-id <id>", "factory id the key is bound to (or OUTERLAYER_APP_ID / config)").action(async (opts) => {
@@ -5082,7 +5082,7 @@ by a different key is refused; claiming again with the same key extends
5082
5082
  it. --host is a label only.
5083
5083
  `
5084
5084
  ).action(async (opts) => {
5085
- const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-ANXDKSAU.js');
5085
+ const { runWorkClaim, WorkCommandError } = await import('./work-claim-cmd-FNE2ZMVG.js');
5086
5086
  try {
5087
5087
  await runWorkClaim(opts);
5088
5088
  } catch (err) {
@@ -5102,7 +5102,7 @@ Extends the live lease this API key holds. Refused with a 410 if the
5102
5102
  lease has expired, or a 403 if a different key holds it.
5103
5103
  `
5104
5104
  ).action(async (opts) => {
5105
- const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-ANXDKSAU.js');
5105
+ const { runWorkRenew, WorkCommandError } = await import('./work-claim-cmd-FNE2ZMVG.js');
5106
5106
  try {
5107
5107
  await runWorkRenew(opts);
5108
5108
  } catch (err) {
@@ -5134,7 +5134,7 @@ applies to a host's lease only. A later tool call in the session
5134
5134
  takes the lease again.
5135
5135
  `
5136
5136
  ).action(async (opts) => {
5137
- const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-ANXDKSAU.js');
5137
+ const { runWorkRelease, WorkCommandError } = await import('./work-claim-cmd-FNE2ZMVG.js');
5138
5138
  try {
5139
5139
  await runWorkRelease(opts);
5140
5140
  } catch (err) {
@@ -5280,7 +5280,7 @@ function registerRunnerCommands(program2) {
5280
5280
  const configOption = "the cloud config file to run against (default: ~/.outerlayer/config.json)";
5281
5281
  runnerCmd.command("start").description("Run the loop: claim work, run it, report, clean up, repeat").option("--config <path>", configOption).action(async (opts) => {
5282
5282
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-O2LJAZJZ.js');
5283
- const { start, RunnerStartError } = await import('./loop-Q33AQ2UD.js');
5283
+ const { start, RunnerStartError } = await import('./loop-O5JBFZXP.js');
5284
5284
  const { RunnerAlreadyRunningError } = await import('./pidfile-TTIUEDXW.js');
5285
5285
  const configPath = opts.config ?? defaultRunnerConfigPath();
5286
5286
  try {
@@ -5304,8 +5304,8 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5304
5304
  `
5305
5305
  ).action(async () => {
5306
5306
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-O2LJAZJZ.js');
5307
- const { containerStart, containerStartExit } = await import('./container-start-B4GC6QH4.js');
5308
- const { start, RunnerStartError } = await import('./loop-Q33AQ2UD.js');
5307
+ const { containerStart, containerStartExit } = await import('./container-start-T4GH4WLX.js');
5308
+ const { start, RunnerStartError } = await import('./loop-O5JBFZXP.js');
5309
5309
  const { RunnerAlreadyRunningError } = await import('./pidfile-TTIUEDXW.js');
5310
5310
  try {
5311
5311
  const outcome = containerStartExit(await containerStart({
@@ -5329,14 +5329,14 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5329
5329
  ).action(async (opts) => {
5330
5330
  const { defaultRunnerConfigPath } = await import('./config-O2LJAZJZ.js');
5331
5331
  const { runnerDir } = await import('./paths-CSZZQK3X.js');
5332
- const { runUpdateSteps } = await import('./update-steps-G2XJ43PU.js');
5332
+ const { runUpdateSteps } = await import('./update-steps-3LU3NZQL.js');
5333
5333
  const text = await runUpdateSteps({ runnerDirPath: runnerDir(opts.config ?? defaultRunnerConfigPath()) });
5334
5334
  process.stdout.write(`${text}
5335
5335
  `);
5336
5336
  });
5337
5337
  runnerCmd.command("check").description("Validate the config, the hooks and the key, and print the effective settings").option("--config <path>", configOption).action(async (opts) => {
5338
5338
  const { defaultRunnerConfigPath } = await import('./config-O2LJAZJZ.js');
5339
- const { runRunnerCheck } = await import('./check-Z25NGNZY.js');
5339
+ const { runRunnerCheck } = await import('./check-YUKNUSAS.js');
5340
5340
  const configPath = opts.config ?? defaultRunnerConfigPath();
5341
5341
  const result = await runRunnerCheck(configPath);
5342
5342
  if (!result.ok) {
@@ -5370,13 +5370,13 @@ The image sets OUTERLAYER_RUNNER_IMAGE; outside the image, use \`runner start\`.
5370
5370
  }
5371
5371
  }
5372
5372
  const buildCpusMax = opts.buildCpusMax === void 0 ? void 0 : Number(opts.buildCpusMax);
5373
- if (buildCpusMax !== void 0 && !(await import('./command-YTVFIEDS.js')).cpusAreValid(buildCpusMax)) {
5373
+ if (buildCpusMax !== void 0 && !(await import('./command-3WAJBJWX.js')).cpusAreValid(buildCpusMax)) {
5374
5374
  fail(`--build-cpus-max ${opts.buildCpusMax} is not a number of CPUs from 0.01 to 1024.`);
5375
5375
  return;
5376
5376
  }
5377
5377
  try {
5378
5378
  if (opts.service === true) {
5379
- const { installServiceCommand, serviceSuccessText } = await import('./command-YTVFIEDS.js');
5379
+ const { installServiceCommand, serviceSuccessText } = await import('./command-3WAJBJWX.js');
5380
5380
  const result2 = await installServiceCommand({
5381
5381
  configPath,
5382
5382
  print: opts.print,
@@ -5431,7 +5431,7 @@ To keep it running, run ${C.yellow}${cliInvocation()} runner install --service${
5431
5431
  return;
5432
5432
  }
5433
5433
  const { defaultRunnerConfigPath } = await import('./config-O2LJAZJZ.js');
5434
- const { uninstallServiceCommand } = await import('./command-YTVFIEDS.js');
5434
+ const { uninstallServiceCommand } = await import('./command-3WAJBJWX.js');
5435
5435
  const result = await uninstallServiceCommand({ configPath: opts.config ?? defaultRunnerConfigPath(), unitName: opts.unitName, home: homeFromEnv() });
5436
5436
  if (result.ok) for (const line of result.lines) process.stdout.write(`${C.green}\u2713${C.reset} ${line}
5437
5437
  `);
@@ -5462,10 +5462,10 @@ already in ${words().envFile} is used.
5462
5462
  `
5463
5463
  ).action(async (opts) => {
5464
5464
  const { defaultRunnerConfigPath, RunnerConfigError } = await import('./config-O2LJAZJZ.js');
5465
- const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-JR2KKJZ2.js');
5466
- const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-LYEB7RTM.js');
5467
- const { detectMachine } = await import('./machine-LANNWRZS.js');
5468
- const { chooseVm, runVmInit, VmInitError } = await import('./init-WRA2KJKD.js');
5465
+ const { prepareRunnerInit, runRunnerInit, RunnerInitError, writeRunnerInit } = await import('./init-XTTWPX6J.js');
5466
+ const { obtainRunnerKey, runnerKeyLogin } = await import('./runner-key-TFFPQCGE.js');
5467
+ const { detectMachine } = await import('./machine-LGJSYGQS.js');
5468
+ const { chooseVm, runVmInit, VmInitError } = await import('./init-7F2KP6XU.js');
5469
5469
  const { credentialFromStdin, isAgentName, restartForCredential, RunnerEnvError } = await import('./runner-env-RGYTHURZ.js');
5470
5470
  const { headlessNames: headlessNames2 } = await import('./runner-agents-32J743FJ.js');
5471
5471
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5479,7 +5479,7 @@ already in ${words().envFile} is used.
5479
5479
  return;
5480
5480
  }
5481
5481
  try {
5482
- const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-UBGGM5K6.js');
5482
+ const { agentCredentialText, credentialQuestion, initAgent, terminalQuestion } = await import('./init-agent-RJSMNEWD.js');
5483
5483
  agent = await initAgent({
5484
5484
  flag: agent,
5485
5485
  handOff: opts.configStdin === true,
@@ -5619,7 +5619,7 @@ ${C.yellow}The runner will not update itself: ${installErr.message}${C.reset}
5619
5619
  let serviceUp = false;
5620
5620
  let restart;
5621
5621
  if (installedLayout) {
5622
- const { installServiceCommand } = await import('./command-YTVFIEDS.js');
5622
+ const { installServiceCommand } = await import('./command-3WAJBJWX.js');
5623
5623
  const service = await installServiceCommand({
5624
5624
  configPath,
5625
5625
  entryPath: process.argv[1] ?? "",
@@ -5757,7 +5757,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5757
5757
  });
5758
5758
  runnerCmd.command("stop").description("Take no more work; finish running jobs, then exit").option("--config <path>", "the cloud config file naming the runner to stop").option("--now", "end running jobs immediately, with outcome stopped").action(async (opts) => {
5759
5759
  const { defaultRunnerConfigPath } = await import('./config-O2LJAZJZ.js');
5760
- const { requestStop } = await import('./loop-Q33AQ2UD.js');
5760
+ const { requestStop } = await import('./loop-O5JBFZXP.js');
5761
5761
  const configPath = opts.config ?? defaultRunnerConfigPath();
5762
5762
  const { runnerImageVersion } = await import('./image-tag-EX2R462S.js');
5763
5763
  await requestStop(configPath, Boolean(opts.now), void 0, { image: runnerImageVersion() !== void 0 });
@@ -5765,8 +5765,8 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5765
5765
  runnerCmd.command("status").description("List running jobs; with --recent, finished ones too").option("--config <path>", "the cloud config file naming the runner to inspect").option("--recent", "also list finished jobs, newest first, capped at 20").option("--json", "machine-readable JSON output").action(async (opts) => {
5766
5766
  const { defaultRunnerConfigPath, loadRunnerConfig } = await import('./config-O2LJAZJZ.js');
5767
5767
  const { jobsDir, runnerDir } = await import('./paths-CSZZQK3X.js');
5768
- const { listJobFiles, runnerProcessState } = await import('./loop-Q33AQ2UD.js');
5769
- const { renderStatus } = await import('./status-XTL6X4EU.js');
5768
+ const { listJobFiles, runnerProcessState } = await import('./loop-O5JBFZXP.js');
5769
+ const { renderStatus } = await import('./status-KGZWBU26.js');
5770
5770
  const { readHousekeepingRecord } = await import('./record-U7DU6IVT.js');
5771
5771
  const path2 = await import('path');
5772
5772
  const configPath = opts.config ?? defaultRunnerConfigPath();
@@ -5832,7 +5832,7 @@ A repository with no devcontainer file builds on the universal image the CLI pin
5832
5832
  });
5833
5833
  runnerCmd.command("logs").argument("<item>", "the work item's number in the factory, or a build's claim id").description("Print the newest attempt's log for one item or claim id").option("--config <path>", "the cloud config file naming the runner to inspect").option("-f, --follow", "keep printing as the log grows").action(async (itemArg, opts) => {
5834
5834
  const { defaultRunnerConfigPath } = await import('./config-O2LJAZJZ.js');
5835
- const { listJobFiles } = await import('./loop-Q33AQ2UD.js');
5835
+ const { listJobFiles } = await import('./loop-O5JBFZXP.js');
5836
5836
  const { describeAmbiguous, logPathFor, selectAttempt, tail, RunnerLogsError } = await import('./logs-BWGJ2BVT.js');
5837
5837
  const configPath = opts.config ?? defaultRunnerConfigPath();
5838
5838
  const jobs = listJobFiles(configPath);
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { realOwnership, accountNamed, handOver, runRunnerInstall, launcherSummary, restartNote, accountIdentity } from './chunk-IG5ZZG7R.js';
4
- import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-ELTELKNV.js';
4
+ import { installHelper, helperUnitFor, helperSocketFor, uninstallHelper } from './chunk-HUP2CGX4.js';
5
5
  import './chunk-RMXRQ3OC.js';
6
6
  import { currentLink, execStartCommand } from './chunk-X45WDWSV.js';
7
- import { detectMachine, ensureFirecrackerAndJailer } from './chunk-ZK552E7A.js';
7
+ import { detectMachine, ensureFirecrackerAndJailer } from './chunk-HW7QPCOP.js';
8
8
  import './chunk-LIH6CIVB.js';
9
9
  import './chunk-2PGI6RDE.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-YEE42T22.js';
4
- import { readOwnContainer } from './chunk-CKN6NS7D.js';
5
- import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-ZK552E7A.js';
3
+ import { reportFailedStart, BUILD_MEMORY_VARIABLE } from './chunk-NR3FDUWS.js';
4
+ import { readOwnContainer } from './chunk-O4Q7GPKU.js';
5
+ import { detectMachine, supportsContainerBuilds, MIN_ENGINE_MAJOR, describeMachineDocker, RunnerInitError, prepareRunnerInit, writeRunnerInit } from './chunk-HW7QPCOP.js';
6
6
  import './chunk-LIH6CIVB.js';
7
7
  import './chunk-2PGI6RDE.js';
8
8
  import './chunk-I3LTIAOR.js';
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { helperBinaryFor } from './chunk-ELTELKNV.js';
3
+ import { helperBinaryFor } from './chunk-HUP2CGX4.js';
4
4
  import { launcherCheck } from './chunk-RMXRQ3OC.js';
5
- import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-2OHSKVZG.js';
5
+ import { managedProblems, fleetConfigProblem, askFleetMachine } from './chunk-TFR6S7ZB.js';
6
6
  import './chunk-X45WDWSV.js';
7
- import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-ZK552E7A.js';
7
+ import { needsAgentCredential, agentCredentialCheck, detectMachine, supportsContainerBuilds, describeMachineDocker, MIN_ENGINE_MAJOR, reachDockerStep, supportsMicroVmBuilds, microVmArchSupported, microVmAssetsPinned, helperFirecrackerNote, probeHelper, helperSocketPath, KIND_LABEL, missingPermissionOf, missingPermissionFix } from './chunk-HW7QPCOP.js';
8
8
  import './chunk-LIH6CIVB.js';
9
9
  import './chunk-2PGI6RDE.js';
10
10
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-ZK552E7A.js';
3
+ export { CRITERIA_CHECK, MAX_CHECK_ITEMS_BYTES, checksIn, commandItems, isJudgeCheck, makeRecorder, readDefinitions, runHostChecks, testProofIn, timeoutAfter } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-DCOPM2NX.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-2ENS5AKU.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-WSTTVQYE.js');
28
+ var { runCli } = await import('./cli-7VKJRQWW.js');
29
29
  await runCli(process.argv);
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { npmSupportsProvenance } from './chunk-E7R2GIAW.js';
4
- import { RunnerInitError, readConfigObject } from './chunk-ZK552E7A.js';
4
+ import { RunnerInitError, readConfigObject } from './chunk-HW7QPCOP.js';
5
5
  import './chunk-LIH6CIVB.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-ZK552E7A.js';
3
+ export { PLACEHOLDER_MARKER, RunnerInitError, isPlaceholderCommand, prepareRunnerInit, readConfigObject, runRunnerInit, writeRunnerInit } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RunnerInitError } from './chunk-ZK552E7A.js';
3
+ import { RunnerInitError } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { summarizeChecks, summaryText, renderDoctorText } from './chunk-2WQG2WLR.js';
3
+ import { summarizeChecks, summaryText, renderDoctorText } from './chunk-G7HNRAXN.js';
4
4
  import { shellFunctionInstalled, removeShellFunction, installShellFunction, SHELL_FUNCTION_LINE } from './chunk-IRFN2ZHJ.js';
5
5
  import './chunk-LIMJRKIU.js';
6
6
  import './chunk-7TM2E4RI.js';
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-UIPZEJSC.js';
3
+ export { LAPSED_REASON, RunnerStartError, fleetKeepalive, leaseTimeLeftFor, listJobFiles, logUnusableHelper, prepareSession, probeBuild, probeCredentials, requestStop, runnerProcessState, runtimeOf, sampleUsage, start, tick, watchTick } from './chunk-RVDXHF2M.js';
4
4
  import './chunk-3JVYMD4G.js';
5
- import './chunk-YEE42T22.js';
5
+ import './chunk-NR3FDUWS.js';
6
6
  import './chunk-E7R2GIAW.js';
7
7
  import './chunk-DX27B42J.js';
8
8
  import './chunk-4EQQS3VJ.js';
9
- import './chunk-CKN6NS7D.js';
9
+ import './chunk-O4Q7GPKU.js';
10
10
  import './chunk-MMSFADKC.js';
11
- import './chunk-MLM4BYK2.js';
12
- import './chunk-2OHSKVZG.js';
11
+ import './chunk-5TZCV6JB.js';
12
+ import './chunk-TFR6S7ZB.js';
13
13
  import './chunk-X45WDWSV.js';
14
- import './chunk-ZK552E7A.js';
14
+ import './chunk-HW7QPCOP.js';
15
15
  import './chunk-LIH6CIVB.js';
16
16
  import './chunk-2PGI6RDE.js';
17
17
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-ZK552E7A.js';
3
+ export { describeMachineDocker, detectMachine, microVmArchSupported, microVmAssetsPinned, reachDockerStep, supportsContainerBuilds, supportsMicroVmBuilds } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { readConfigObject, RunnerInitError } from './chunk-ZK552E7A.js';
3
+ import { readConfigObject, RunnerInitError } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-ZK552E7A.js';
3
+ import { isReadable, LEASE_SECONDS, ALREADY_RELEASED, RENEW_INTERVAL_SECONDS } from './chunk-HW7QPCOP.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-2PGI6RDE.js';
6
6
  import './chunk-I3LTIAOR.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-CKN6NS7D.js';
4
- import './chunk-ZK552E7A.js';
3
+ export { readOwnContainer, renderUpdateSteps, runUpdateSteps } from './chunk-O4Q7GPKU.js';
4
+ import './chunk-HW7QPCOP.js';
5
5
  import './chunk-LIH6CIVB.js';
6
6
  import './chunk-2PGI6RDE.js';
7
7
  import './chunk-I3LTIAOR.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { RUNNER_PROTOCOL } from './chunk-MLM4BYK2.js';
3
+ import { RUNNER_PROTOCOL } from './chunk-5TZCV6JB.js';
4
4
  import { resolveCredentials, WorkCommandError, parsePositiveInt, postJson, environmentFacts, findLiveItemForIssue } from './chunk-7TM2E4RI.js';
5
5
  export { WorkCommandError } from './chunk-7TM2E4RI.js';
6
6
  import './chunk-KIYP5TML.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-KF4IV2ET.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-6JW2L7UV.js';
4
4
  import './chunk-LIH6CIVB.js';
5
5
  import './chunk-7TM2E4RI.js';
6
6
  import './chunk-KIYP5TML.js';
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-KF4IV2ET.js';
3
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, proofsCommentBody } from './chunk-6JW2L7UV.js';
4
4
  import { runEmitDemo } from './chunk-OYBBYENC.js';
5
5
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
6
6
  import { runWorkComment } from './chunk-UNA4YIHE.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.38.0-next.20261109134838",
3
+ "version": "0.38.0-next.20261109143949",
4
4
  "description": "OuterLayer CLI — commands: init, claude, opencode, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, spec, runner, hooks, mcp, context. Capture and sync coding-agent sessions, and record proof of factory work.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Magu Studios, Inc.",
@@ -114,5 +114,12 @@ reviewed.
114
114
 
115
115
  When you find no defect, pass the change with no check items.
116
116
 
117
+ Write your answer file as you go, not only at the end. Write it first once you
118
+ have read `files.md`, and write it again after each file you finish and each
119
+ defect you confirm. Each time, give every defect so far and every file read so
120
+ far. A review can run out of turns or time before it ends, and the host then
121
+ keeps what the file holds. A result it holds counts only from a review that
122
+ ended, so a pass written early cannot clear the change.
123
+
117
124
  The host adds a section named "How to answer" after this brief. Answer as it
118
125
  says.