{"version":101,"agent":"rename","message":"Pipeline trigger: on: [push] replaces on: [publish] (abso 427)\n\nA pipeline file writes on: [push] (abso.yml, abso.yaml, avcs.json). The word publish is no longer accepted, with no alias. The check messages, \"doesn't run on push\", `abso pipeline check --on push` and its --json say push. The stored event kind stays \"publish\" underneath.","time":1791672702051,"timeIso":"2026-10-10T22:51:42.051Z","changes":8,"change":1189,"files":["client/README.md","client/src/main.ts","client/src/pipeline-commands.ts","client/test/pipeline-commands.test.ts","src/pipeline/pipeline.ts","src/pipeline/plan.ts","src/pipeline/test/pipeline.test.ts","src/pipeline/test/plan.test.ts"],"draft":null,"diff":[{"path":"client/README.md","added":1,"removed":1,"diff":"--- a/client/README.md\n+++ b/client/README.md\n@@ -115,7 +115,7 @@\n | `abso label <name> [--version n] [--remove]` / `abso labels` | Puts a label on a version of shared (the newest by default) or takes it off, like a git tag; `labels` lists them all. |\n | `abso follow <label>` / `abso follow --none` | Makes this folder follow a label: every pull takes it to the newest version of shared with that label. `--none` goes back to shared's newest. Saved in `.abso/config.json`. |\n | `abso check-ignore <path...>` | Whether abso leaves each path out, and which line of which ignore file decided (see \"What is left out\"). |\n-| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on publish|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |\n+| `abso pipeline check [file] [--on <event>]` | Reads the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and lists each problem as `<path>: <message>`: a cycle in needs, a job or pipeline that doesn't exist, secrets in a pipeline a draft can start, keys it doesn't know. Exits 1 on problems; otherwise lists each pipeline's jobs in the order they run. With `--on push|draft|green|land|hand|schedule` (and `--space`, `--pipeline` or `--every`), says which pipelines that event starts, with their jobs in waves that can run side by side, and why the others don't. Reads only the file. The shape is still a draft. |\n | `abso issues [--open] [--status <s>] [--agent <a>] [--parent <N>] [--label <l,l>]` | The project's issues, most recently updated first. Statuses come from the work: `abso start --issue N` puts an issue In progress, an open ask makes it Blocked (In review for a review), and `push --done` closes it. `--label friction` keeps the issues with every label named: a ready list of work to pick up. `abso issues --labels` lists the labels in use, with how many issues are open under each. |\n | `abso issue new \"<title>\" --label <l,l>` / `abso issue <N> --label <l,l> --unlabel <l,l>` | Labels an issue, or changes its labels. A label is 1-40 lower-case letters, digits and `- _ . :` (`friction`, `area:client`); what you type is lower-cased. An edit that only changes labels tells nobody unless `--notify` names people. Tool friction goes in its own issue, labeled `friction`. |\n | `abso issue draft \"<title>\"` / `abso issues --drafts` | A draft of an issue: yours alone, with no number and no news. Takes the same fields as `issue new`. `abso issue draft <D> [fields]` changes one, `--open` opens it as an issue (with any fields given over the draft's), `--delete` deletes it. |"},{"path":"client/src/main.ts","added":1,"removed":1,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -771,7 +771,7 @@\n \tpipeline: {\n \t\tflags: { on: \"string\", space: \"string\", pipeline: \"string\", every: \"string\", log: \"string\" },\n \t\tusage:\n-\t\t\t\"abso pipeline check [file] [--on publish|draft|green|land|hand|schedule [--space <name>] [--pipeline <name>] [--every <when>]] | abso pipeline runs [<run>] [--log <pipeline.job>]\",\n+\t\t\t\"abso pipeline check [file] [--on push|draft|green|land|hand|schedule [--space <name>] [--pipeline <name>] [--every <when>]] | abso pipeline runs [<run>] [--log <pipeline.job>]\",\n \t\tabout:\n \t\t\t\"Read the folder's pipeline file (abso.yml, abso.yaml or avcs.json, or the file named) and say what's wrong with it, place by place: a cycle in needs, a job that doesn't exist, secrets a draft could reach, a key it doesn't know. Exits 1 when it has problems. With --on, it says which pipelines that event starts (in shared, or --space), with their jobs in waves that can run side by side, and why each other pipeline doesn't start. It reads only the file. abso pipeline runs asks the server what the project's pipelines did: the runs, newest first; with a run's number, its jobs (state, why, exit, time, an npm or deploy job's phase); with --log <pipeline.job>, that job's output.\",\n \t\t// Loaded only here, so the yaml package it needs can't stop every other command"},{"path":"client/src/pipeline-commands.ts","added":10,"removed":7,"diff":"--- a/client/src/pipeline-commands.ts\n+++ b/client/src/pipeline-commands.ts\n@@ -5,7 +5,7 @@\n \n import { existsSync, readFileSync } from \"node:fs\";\n import { basename, join, resolve } from \"node:path\";\n-import { readPipelineFile } from \"../../src/pipeline/pipeline.ts\";\n+import { readPipelineFile, triggerWord } from \"../../src/pipeline/pipeline.ts\";\n import { type PipelineEvent, plan } from \"../../src/pipeline/plan.ts\";\n import { type Parsed, str, UsageError } from \"./args.ts\";\n import { type Env, EXIT, type Output, open } from \"./command-env.ts\";\n@@ -47,7 +47,7 @@\n \t\tconst said =\n \t\t\tevent.kind === \"schedule\"\n \t\t\t\t? `On the schedule \"${event.every}\"`\n-\t\t\t\t: `On ${event.kind}${event.kind === \"hand\" ? ` of ${event.pipeline}` : \"\"} in ${event.space}`;\n+\t\t\t\t: `On ${triggerWord(event.kind)}${event.kind === \"hand\" ? ` of ${event.pipeline}` : \"\"} in ${event.space}`;\n \t\tconst lines = [\n \t\t\t...planned.start.flatMap((p) => [\n \t\t\t\t`  ${p.name} starts:`,\n@@ -59,11 +59,11 @@\n \t\t];\n \t\treturn {\n \t\t\ttext: `${said}, ${planned.start.length === 0 ? \"nothing in\" : `${planned.start.length === 1 ? \"1 pipeline\" : `${planned.start.length} pipelines`} from`} ${name} starts; jobs on one line can run side by side.\\n${lines.join(\"\\n\")}\\n`,\n-\t\t\tjson: { file: name, event, ...planned },\n+\t\t\tjson: { file: name, event: { ...event, kind: triggerWord(event.kind) }, ...planned },\n \t\t};\n \t}\n \tconst lines = pipelines.flatMap((p) => [\n-\t\t`  ${p.name}, on ${p.on.map((t) => (typeof t === \"string\" ? t : `every ${t.every}`)).join(\", \")}${p.only ? `, only ${p.only.join(\", \")}` : \"\"}:`,\n+\t\t`  ${p.name}, on ${p.on.map((t) => (typeof t === \"string\" ? triggerWord(t) : `every ${t.every}`)).join(\", \")}${p.only ? `, only ${p.only.join(\", \")}` : \"\"}:`,\n \t\t...p.jobs.map(\n \t\t\t(j) =>\n \t\t\t\t`    ${j.name}${p.required.includes(j.name) ? \" (required)\" : \"\"}: ${j.uses ? `uses ${j.uses}` : j.run}${j.needs.length ? `, after ${j.needs.join(\", \")}` : \"\"}`,\n@@ -71,11 +71,14 @@\n \t]);\n \treturn {\n \t\ttext: `${name} is fine: ${pipelines.length === 1 ? \"1 pipeline\" : `${pipelines.length} pipelines`}, jobs in the order they run.\\n${lines.join(\"\\n\")}\\n`,\n-\t\tjson: { file: name, pipelines },\n+\t\tjson: {\n+\t\t\tfile: name,\n+\t\t\tpipelines: pipelines.map((p) => ({ ...p, on: p.on.map((t) => (typeof t === \"string\" ? triggerWord(t) : t)) })),\n+\t\t},\n \t};\n }\n \n-const KINDS = [\"publish\", \"draft\", \"green\", \"land\", \"hand\", \"schedule\"] as const;\n+const KINDS = [\"push\", \"draft\", \"green\", \"land\", \"hand\", \"schedule\"] as const;\n \n /** --on, with --space, --pipeline (by hand) and --every (a schedule), as an event. */\n function eventFrom(on: string, args: Parsed): PipelineEvent {\n@@ -91,7 +94,7 @@\n \t\tif (!pipeline) throw new UsageError(\"--on hand takes --pipeline <name>\");\n \t\treturn { kind: \"hand\", pipeline, space };\n \t}\n-\treturn { kind: on as \"publish\" | \"draft\" | \"green\" | \"land\", space };\n+\treturn { kind: on === \"push\" ? \"publish\" : (on as \"draft\" | \"green\" | \"land\"), space };\n }\n \n /** A run as the server's list gives it. */"},{"path":"client/test/pipeline-commands.test.ts","added":5,"removed":5,"diff":"--- a/client/test/pipeline-commands.test.ts\n+++ b/client/test/pipeline-commands.test.ts\n@@ -24,7 +24,7 @@\n \n const GOOD = `pipelines:\n   ci:\n-    on: [publish, draft]\n+    on: [push, draft]\n     jobs:\n       test: { needs: [setup], run: npm test }\n       setup: { run: npm ci }\n@@ -37,7 +37,7 @@\n \t\tassert.equal(r.exit, 0, r.stderr);\n \t\tassert.equal(\n \t\t\tr.stdout,\n-\t\t\t\"abso.yml is fine: 1 pipeline, jobs in the order they run.\\n  ci, on publish, draft:\\n    setup: npm ci\\n    test (required): npm test, after setup\\n\",\n+\t\t\t\"abso.yml is fine: 1 pipeline, jobs in the order they run.\\n  ci, on push, draft:\\n    setup: npm ci\\n    test (required): npm test, after setup\\n\",\n \t\t);\n \t});\n \n@@ -78,7 +78,7 @@\n \t\tassert.equal(only.exit, 0, only.stderr);\n \t\tassert.match(\n \t\t\tonly.stdout,\n-\t\t\t/^avcs\\.json is fine: 1 pipeline.*\\n {2}ci, on publish:\\n {4}setup \\(required\\): npm ci\\n {4}check \\(required\\): npm test, after setup\\n$/s,\n+\t\t\t/^avcs\\.json is fine: 1 pipeline.*\\n {2}ci, on push:\\n {4}setup \\(required\\): npm ci\\n {4}check \\(required\\): npm test, after setup\\n$/s,\n \t\t);\n \t});\n \n@@ -116,7 +116,7 @@\n describe(\"abso pipeline check --on (abso issue 176)\", () => {\n \tconst FILE = `pipelines:\n   ci:\n-    on: [publish, draft]\n+    on: [push, draft]\n     jobs:\n       setup: { run: npm ci }\n       lint: { needs: [setup], run: lint }\n@@ -153,7 +153,7 @@\n \t\tconst dir = folder({ \"abso.yml\": FILE });\n \t\tassert.match(\n \t\t\t(await run(dir, \"check\", \"--on\", \"merge\")).stderr,\n-\t\t\t/--on is one of publish, draft, green, land, hand, schedule/,\n+\t\t\t/--on is one of push, draft, green, land, hand, schedule/,\n \t\t);\n \t\tassert.match((await run(dir, \"check\", \"--on\", \"hand\")).stderr, /--on hand takes --pipeline <name>/);\n \t\tassert.match((await run(dir, \"check\", \"--on\", \"schedule\")).stderr, /--on schedule takes --every/);"},{"path":"src/pipeline/pipeline.ts","added":10,"removed":3,"diff":"--- a/src/pipeline/pipeline.ts\n+++ b/src/pipeline/pipeline.ts\n@@ -89,7 +89,13 @@\n /** An npm package name: lower case, URL-safe, optionally under a @scope/. */\n const NPM_NAME = /^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$/;\n \n-const TRIGGERS = [\"publish\", \"draft\", \"green\", \"land\", \"hand\"] as const;\n+/** The words a pipeline file writes. The word `push` is the stored event \"publish\" (a log entry kind that stays). */\n+const TRIGGERS = [\"push\", \"draft\", \"green\", \"land\", \"hand\"] as const;\n+\n+/** A trigger as a file and a person say it: the stored \"publish\" event is written `push`. */\n+export function triggerWord(t: string): string {\n+\treturn t === \"publish\" ? \"push\" : t;\n+}\n const SIZES: readonly Size[] = [\"small\", \"standard\", \"large\"];\n const MACHINE_KEYS = [\"image\", \"dockerfile\", \"size\"] as const;\n const JOB_KEYS = [\"needs\", \"run\", \"uses\", \"from\", \"keep\", \"cache\", \"secrets\", \"abso\", ...MACHINE_KEYS] as const;\n@@ -196,7 +202,7 @@\n \t\tjobs[name] = { run, ...(last ? { needs: [last] } : {}), ...(name === \"build\" ? { keep: [`${out}/**`] } : {}) };\n \t\tlast = name;\n \t}\n-\treturn { on: [\"publish\"], jobs, required: Object.keys(jobs) };\n+\treturn { on: [\"push\"], jobs, required: Object.keys(jobs) };\n }\n \n function pipeline(name: string, p: unknown, at: string, say: Say): Pipeline | undefined {\n@@ -364,7 +370,8 @@\n \tconst out: Trigger[] = [];\n \tall.forEach((t, i) => {\n \t\tconst here = Array.isArray(on) ? `${at}[${i}]` : at;\n-\t\tif (typeof t === \"string\" && (TRIGGERS as readonly string[]).includes(t)) out.push(t as Trigger);\n+\t\tif (typeof t === \"string\" && (TRIGGERS as readonly string[]).includes(t))\n+\t\t\tout.push((t === \"push\" ? \"publish\" : t) as Trigger);\n \t\telse if (isRecord(t) && Object.keys(t).length === 1 && typeof t.every === \"string\" && t.every.trim())\n \t\t\tout.push({ every: t.every });\n \t\telse say(here, `must be one of ${TRIGGERS.join(\", \")}, or { every: \"<when>\" }, not ${q(t)}`);"},{"path":"src/pipeline/plan.ts","added":3,"removed":2,"diff":"--- a/src/pipeline/plan.ts\n+++ b/src/pipeline/plan.ts\n@@ -4,7 +4,7 @@\n // waves, so the jobs of one wave can run side by side. `abso pipeline check\n // --on <event>` shows it, and a runner reads the same plan.\n \n-import type { Job, Pipeline, PipelineFile } from \"./pipeline.ts\";\n+import { type Job, type Pipeline, type PipelineFile, triggerWord } from \"./pipeline.ts\";\n \n /** What happened, and in which space (shared, or a named draft). */\n export type PipelineEvent =\n@@ -46,7 +46,8 @@\n \t\tevent.kind === \"schedule\"\n \t\t\t? p.on.some((t) => typeof t !== \"string\" && t.every === event.every)\n \t\t\t: p.on.includes(event.kind);\n-\tif (!on) return event.kind === \"schedule\" ? `has no schedule \"${event.every}\"` : `doesn't run on ${event.kind}`;\n+\tif (!on)\n+\t\treturn event.kind === \"schedule\" ? `has no schedule \"${event.every}\"` : `doesn't run on ${triggerWord(event.kind)}`;\n \tif (p.only && !p.only.includes(space)) return `runs only for ${p.only.join(\", \")}, not ${space}`;\n \t// The file check refuses this already; the plan holds the line too.\n \tif (event.kind === \"draft\" && p.jobs.some((j) => j.secrets.length > 0))"},{"path":"src/pipeline/test/pipeline.test.ts","added":10,"removed":10,"diff":"--- a/src/pipeline/test/pipeline.test.ts\n+++ b/src/pipeline/test/pipeline.test.ts\n@@ -11,7 +11,7 @@\n const DRAFT = `defaults: { image: node, size: standard }   # image: a menu or \\`dockerfile: path\\`\n pipelines:\n   ci:\n-    on: [publish, draft]          # every version of shared, and an agent's draft before it pushes\n+    on: [push, draft]          # every version of shared, and an agent's draft before it pushes\n     jobs:\n       setup:  { run: npm ci, cache: [package-lock.json] }\n       lint:   { needs: [setup], run: npx biome ci . }\n@@ -54,7 +54,7 @@\n \n /** A file with one pipeline `p` of the given jobs. */\n const one = (jobs: Record<string, unknown>, rest: Record<string, unknown> = {}) => ({\n-\tpipelines: { p: { on: [\"publish\"], jobs, ...rest } },\n+\tpipelines: { p: { on: [\"push\"], jobs, ...rest } },\n });\n \n describe(\"reading the file\", () => {\n@@ -106,7 +106,7 @@\n \t});\n \n \tit(\"reads on as a key in YAML, not as true\", () => {\n-\t\tok(readPipelineFile(\"pipelines:\\n  p:\\n    on: publish\\n    jobs:\\n      a: { run: x }\\n\", \"abso.yaml\"));\n+\t\tok(readPipelineFile(\"pipelines:\\n  p:\\n    on: push\\n    jobs:\\n      a: { run: x }\\n\", \"abso.yaml\"));\n \t});\n \n \tit(\"says where YAML or JSON breaks, and refuses a name it can't tell the format of\", () => {\n@@ -122,7 +122,7 @@\n \tit(\"refuses a key given twice in YAML\", () => {\n \t\thas(\n \t\t\tproblems(\n-\t\t\t\treadPipelineFile(\"pipelines:\\n  p:\\n    on: publish\\n    on: draft\\n    jobs: { a: { run: x } }\\n\", \"abso.yml\"),\n+\t\t\t\treadPipelineFile(\"pipelines:\\n  p:\\n    on: push\\n    on: draft\\n    jobs: { a: { run: x } }\\n\", \"abso.yml\"),\n \t\t\t),\n \t\t\t\"file\",\n \t\t\t/isn't valid YAML/,\n@@ -166,7 +166,7 @@\n \t\t\tcheckPipelines({\n \t\t\t\tpipelines: {\n \t\t\t\t\tp: {\n-\t\t\t\t\t\ton: [\"publish\"],\n+\t\t\t\t\t\ton: [\"push\"],\n \t\t\t\t\t\tjobs: { a: { needs: [\"nope\"], run: \"a\" }, b: { needs: [\"q.c\"], run: \"b\" } },\n \t\t\t\t\t\trequired: [\"a\", \"missing\"],\n \t\t\t\t\t},\n@@ -198,7 +198,7 @@\n \n \tit(\"secrets in a pipeline a draft can start\", () => {\n \t\tconst deploy = { uses: \"deploy\", worker: \"w\", secrets: [\"CLOUDFLARE_API_TOKEN\"] };\n-\t\tconst ps = problems(checkPipelines(one({ ship: deploy }, { on: [\"publish\", \"draft\"], only: \"shared\" })));\n+\t\tconst ps = problems(checkPipelines(one({ ship: deploy }, { on: [\"push\", \"draft\"], only: \"shared\" })));\n \t\thas(ps, \"pipelines.p.on\", /includes draft, but ship holds secrets/);\n \t\tassert.equal(ps.length, 1, JSON.stringify(ps));\n \t});\n@@ -300,7 +300,7 @@\n \t\tconst ps = problems(\n \t\t\tcheckPipelines({\n \t\t\t\tdefaults: { image: \"node\", colour: \"blue\" },\n-\t\t\t\tpipelines: { p: { on: [\"publish\"], when: \"always\", jobs: { a: { run: \"x\", timeout: 5, worker: \"w\" } } } },\n+\t\t\t\tpipelines: { p: { on: [\"push\"], when: \"always\", jobs: { a: { run: \"x\", timeout: 5, worker: \"w\" } } } },\n \t\t\t\textra: 1,\n \t\t\t}),\n \t\t);\n@@ -336,7 +336,7 @@\n \t\t\tcheckPipelines({\n \t\t\t\tdefaults: { image: \"node\", dockerfile: \"Dockerfile\" },\n \t\t\t\tpipelines: {\n-\t\t\t\t\tp: { on: [\"publish\", \"sometimes\", { every: \"\" }], jobs: { a: { run: \"x\", size: \"huge\" } } },\n+\t\t\t\t\tp: { on: [\"push\", \"sometimes\", { every: \"\" }], jobs: { a: { run: \"x\", size: \"huge\" } } },\n \t\t\t\t\tBad: { on: [], jobs: {} },\n \t\t\t\t\ts: { on: \"green\", only: \"shared\", jobs: { \"x y\": { uses: \"deploy\", worker: \"w\", secrets: [\"token\"] } } },\n \t\t\t\t\tt: { jobs: { a: { run: \"x\" } } },\n@@ -344,7 +344,7 @@\n \t\t\t}),\n \t\t);\n \t\thas(ps, \"defaults\", /both image and dockerfile/);\n-\t\thas(ps, \"pipelines.p.on[1]\", /must be one of publish, draft, green, land, hand/);\n+\t\thas(ps, \"pipelines.p.on[1]\", /must be one of push, draft, green, land, hand/);\n \t\thas(ps, \"pipelines.p.on[2]\", /every/);\n \t\thas(ps, \"pipelines.p.jobs.a.size\", /must be one of small, standard, large, not \"huge\"/);\n \t\thas(ps, \"pipelines.Bad\", /isn't a usable name/);\n@@ -364,7 +364,7 @@\n });\n \n describe(\"abso.json's shorthand for a ci pipeline\", () => {\n-\tit(\"reads the project's own abso.json as ci: setup, then check, both required, on publish\", async () => {\n+\tit(\"reads the project's own abso.json as ci: setup, then check, both required, on push\", async () => {\n \t\tconst { readFileSync } = await import(\"node:fs\");\n \t\tconst text = readFileSync(new URL(\"../../../abso.json\", import.meta.url), \"utf8\");\n \t\tconst own = JSON.parse(text);"},{"path":"src/pipeline/test/plan.test.ts","added":3,"removed":3,"diff":"--- a/src/pipeline/test/plan.test.ts\n+++ b/src/pipeline/test/plan.test.ts\n@@ -7,7 +7,7 @@\n \n const FILE = `pipelines:\n   ci:\n-    on: [publish, draft]\n+    on: [push, draft]\n     jobs:\n       setup:  { run: npm ci }\n       lint:   { needs: [setup], run: npx biome ci . }\n@@ -40,8 +40,8 @@\n \t\tassert.deepEqual(p.start[0]!.waves, [[\"setup\"], [\"lint\", \"test\"], [\"bundle\"]]);\n \t\tassert.deepEqual(p.start[0]!.required, [\"lint\", \"test\"]);\n \t\tassert.deepEqual(p.skip, [\n-\t\t\t{ name: \"release\", why: \"doesn't run on publish\" },\n-\t\t\t{ name: \"nightly\", why: \"doesn't run on publish\" },\n+\t\t\t{ name: \"release\", why: \"doesn't run on push\" },\n+\t\t\t{ name: \"nightly\", why: \"doesn't run on push\" },\n \t\t]);\n \t});\n "}],"ci":null}