@outerlayer/cli 0.40.0-next.20261114141534 → 0.40.0-next.20261114175703

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.
@@ -1 +1 @@
1
- {"id":"2026-11-14T14:38:24.403Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
1
+ {"id":"2026-11-14T18:03:59.486Z","root":"/home/runner/work/outerlayer/outerlayer","pkg":"outerlayer"}
@@ -372,7 +372,7 @@ async function runWorkProofs(opts) {
372
372
  async function runWorkProofsCommand(opts) {
373
373
  try {
374
374
  if (opts.record || opts.check) {
375
- const { runWorkProofsRecord } = await import('./work-proofs-record-PFPGBKXM.js');
375
+ const { runWorkProofsRecord } = await import('./work-proofs-record-RCQCMMKT.js');
376
376
  const result2 = await runWorkProofsRecord(opts);
377
377
  process.exitCode = result2.exitCode;
378
378
  return;
@@ -5250,7 +5250,7 @@ a runner build, no row is failed.
5250
5250
  fail(trackerNumberError("--pr", opts.pr));
5251
5251
  return;
5252
5252
  }
5253
- const { runWorkProofsCommand } = await import('./work-proofs-cmd-DPC5M65G.js');
5253
+ const { runWorkProofsCommand } = await import('./work-proofs-cmd-CVTO6MPT.js');
5254
5254
  await runWorkProofsCommand({ ...opts, ...pr === void 0 ? {} : { pr } });
5255
5255
  });
5256
5256
  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) => {
package/dist/index.js CHANGED
@@ -25,5 +25,5 @@ var { runSubcommand } = await import('./agent-subcommand-FFRNWF6T.js');
25
25
  var launcherCode = await runSubcommand(argv);
26
26
  if (launcherCode !== void 0) process.exit(launcherCode);
27
27
  (await import('./hook-fast-CKQWLT6W.js')).recordLinkExitFailure(argv);
28
- var { runCli } = await import('./cli-EZTI4WK3.js');
28
+ var { runCli } = await import('./cli-VPYCEJZT.js');
29
29
  await runCli(process.argv);
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
- export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-3JJ6JIYS.js';
3
+ export { classifyProofs, classifyProofsAt, otherPullRequestHeads, renderProofRow, resolveProofsItem, runWorkProofs, runWorkProofsCommand } from './chunk-7HCMWGCV.js';
4
4
  import './chunk-BY4SXNUL.js';
5
5
  import './chunk-RIZCV7GX.js';
6
6
  import './chunk-7RDHN455.js';
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire } from 'node:module';
3
3
  import { runWorkComment } from './chunk-4J5KDIHZ.js';
4
- import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-3JJ6JIYS.js';
4
+ import { resolveProofsItem, ownPullRequest, otherPullRequestHeads, testProofMode, classifyProofsAt, runWorkProofs, proofsCommentId, testFilesOf, freshXmlFiles, joinResults, testSelectors, kindProblem, renderProofRow, proofsCommentBody } from './chunk-7HCMWGCV.js';
5
5
  import { runEmitDemo, planScreenshots, chapterPassed, readStill } from './chunk-QNHHD75P.js';
6
6
  import { readNewestDemo } from './chunk-ER6KQCVJ.js';
7
7
  import { runEmitArtifact } from './chunk-GD2LIK6W.js';
@@ -141,6 +141,9 @@ var CONFIG_FILE = ".outerlayer-proofs.yaml";
141
141
  var DEFAULT_TIMEOUT_MS = 10 * 60 * 1e3;
142
142
  var DEMO_PROOFS = /* @__PURE__ */ new Set(["screenshot", "video"]);
143
143
  var NO_TEST = "no test at HEAD names this criterion";
144
+ function noDemoChapter(id, proof) {
145
+ return `the tests that name ${id} ran and recorded no ${proof}: no demo test has a chapter for it. Add the chapter to a demo test, and commit it`;
146
+ }
144
147
  var DemoRefused = class extends Error {
145
148
  };
146
149
  function changedTrackedFiles(root) {
@@ -497,7 +500,7 @@ async function runWorkProofsRecord(opts) {
497
500
  for (const run of runs) {
498
501
  for (const id of run.criteria) {
499
502
  if (emitted.has(id) || reasons.has(id)) continue;
500
- reasons.set(id, run.failure ?? `the tests ran and wrote no ${id}.<ext> file under OUTERLAYER_PROOF_OUT`);
503
+ reasons.set(id, run.failure ?? (DEMO_PROOFS.has(proofOf(id)) ? noDemoChapter(id, proofOf(id)) : `the tests ran and wrote no ${id}.<ext> file under OUTERLAYER_PROOF_OUT`));
501
504
  }
502
505
  }
503
506
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@outerlayer/cli",
3
- "version": "0.40.0-next.20261114141534",
3
+ "version": "0.40.0-next.20261114175703",
4
4
  "description": "OuterLayer CLI — commands: init, claude, opencode, connect, doctor, login, logout, sync, daemon (alias: watch), emit, demo, findings, work, run, 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.",
@@ -134,7 +134,7 @@ repository. Commit and push in each checkout you change, to its own branch only.
134
134
  thread back to a person.
135
135
  9. **Check nothing is left waiting.** Reread threads. Fix or report a thread
136
136
  still waiting on an agent: its reply did not land or was flagged `unchanged`. Run `outerlayer sync` and `outerlayer work proofs`. Fix every
137
- listed row that is not current.
137
+ listed row that is not current: [references/new-proof.md](references/new-proof.md).
138
138
  10. **Report.** Write one line per thread: the criterion (or the general
139
139
  thread), and fixed (with the replacement) or handed off (with the reason).
140
140
  Add a line for a merge conflict (merged with the base sha, or handed off),
@@ -11,3 +11,19 @@ Use this when a person failed a criterion's proof and the thread asks for new pr
11
11
  `outerlayer work comment --item "$OUTERLAYER_WORK" --criterion <criterion> --body "<what changed>" --artifact <uuid> --attach`.
12
12
 
13
13
  A replacement with the current proof's bytes is flagged `unchanged`, and the thread still waits on you.
14
+
15
+ ## A declared proof that no test records
16
+
17
+ Use this when `outerlayer work proofs` lists a proof as missing, and its reason
18
+ says that no test or no demo chapter names the criterion. No job can record
19
+ that proof until a test for it is committed. Do not leave it to a person.
20
+
21
+ 1. Write the test as the Evidence brief says, in
22
+ `~/.agents/skills/outerlayer-build/references/agent-briefs.md`. A screenshot
23
+ or a video needs a chapter of a demo test. A unit test records neither.
24
+ 2. Run the `setup` commands of `.outerlayer-proofs.yaml` in this job before you
25
+ say that the app does not start. Quote the command and its error if one fails.
26
+ 3. Commit the test and push. Then record the proofs again, as step 6 says.
27
+
28
+ Hand a proof off to a person only when it needs something no build has. Examples
29
+ are another operating system, a device and a real third-party account.
@@ -272,6 +272,12 @@ each proof that is not current, and runs them.
272
272
  ```
273
273
  - A proof that no test can make stays without a test. Give the reason in
274
274
  `build-reports/evidence.md`.
275
+ - A setup command that fails is a fault to fix. Examples are a database, an
276
+ app or a browser that does not start. It is not a proof that no test can
277
+ make. Read the error and fix the cause. If you cannot, still write and
278
+ commit the test for each criterion. Then quote the command and its error in
279
+ `build-reports/evidence.md`. Without a committed test, no later job can
280
+ record the proof.
275
281
 
276
282
  Commit the setup file and every test. In a runner build (`OUTERLAYER_JOB_DIR`
277
283
  is set), run `outerlayer work proofs --check` from the committed checkout. In a
@@ -47,6 +47,8 @@ failed, and emits nothing. After the run ends, the host records each proof
47
47
  once, at the pushed head. A proof that fails the check fails there too. Fix
48
48
  its test, commit, and check again. The run ends when the check exits 0, or
49
49
  when `build-reports/evidence.md` names each proof that failed and the reason.
50
+ A screenshot or video criterion with no committed demo test is not ready for
51
+ that file. Write its test first, even when the app does not start here.
50
52
 
51
53
  In a local session, push the last commit, then run
52
54
  `outerlayer work proofs --record` once. It records each proof that is not