From 6402fc8c0276b80f7cda18a1898ebcacbb7a09cf Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 23:21:03 -0600 Subject: [PATCH 1/2] test(claimant): compare the installer's no-write listing without regard to directory order The scheduled pm-stack tests have failed every night since at least 2026-11-20 in "Test claimant install bun suite": three tests in test/install.test.mjs compare readdir() with a list in a fixed order, and the runner's filesystem lists the two entries the other way round (received ["explicit-store.json", ".config"]). A directory has no order to rely on. What the assertion means is which entries exist, so both sides are sorted. Because the step failed, every later step of that job was skipped each night: the external-comms, usage-export, cloudflare-export, meta-exporter, watchdog-state and decision-events-worker suites have not run on schedule since. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF --- pm-stack/opencode-claimant/test/install.test.mjs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pm-stack/opencode-claimant/test/install.test.mjs b/pm-stack/opencode-claimant/test/install.test.mjs index 9e6df17724..5fb723f8ce 100644 --- a/pm-stack/opencode-claimant/test/install.test.mjs +++ b/pm-stack/opencode-claimant/test/install.test.mjs @@ -59,12 +59,14 @@ async function expectNoWrites(stores) { // runs the installer (observed on CI runners where bun is installed under // ~/.bun); that is a runtime artifact, not an installer write, so it is // excluded from the no-write assertion. See developing-today/code#9532. - const homeEntries = (await readdir(stores.home)).filter( - (name) => name !== ".bun", - ); - expect(homeEntries).toEqual([ - ".config", "explicit-store.json", - ]); + // A directory is listed in whatever order the filesystem keeps it: on + // the CI runner that is not the order the entries were made in, which + // failed this assertion on every scheduled run. What is asserted is + // which entries exist, so both sides are put in one order. + const homeEntries = (await readdir(stores.home)) + .filter((name) => name !== ".bun") + .sort(); + expect(homeEntries).toEqual([".config", "explicit-store.json"].sort()); expect(await readdir(stores.defaultDir)).toEqual([ "path_L2hvbWUvdXNlci9naXQvY29kZQ.json", ]); From d60e343eb56e9d5b4f87202499a0b5439d85adf5 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 22 Nov 2026 23:30:46 -0600 Subject: [PATCH 2/2] test(pm-aggregator): record the Reports page's tier in the #1497 decision table #12491 added the Reports page to the manifest at dropdown tier without its row in the decision table that the curation test checks the manifest against, so "every manifest page carries its recorded tier" has failed on main since (seen on the run of this branch, where the aggregator suite now fails before the claimant suite is reached). The page entered at dropdown tier, as new pages do without a ruling that promotes them; the row says so. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF --- pm-stack/aggregator/test/curation-1497.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pm-stack/aggregator/test/curation-1497.test.ts b/pm-stack/aggregator/test/curation-1497.test.ts index 2fd1daf8d4..d52741b804 100644 --- a/pm-stack/aggregator/test/curation-1497.test.ts +++ b/pm-stack/aggregator/test/curation-1497.test.ts @@ -68,6 +68,10 @@ const DECISIONS: Record = { // find the question stack) promotes it to primary — a curation // ruling recorded here like the others. decisions: "primary", + // Post-#1497 addition (#12491, 2026-11-22): the report-conflict + // review page enters at dropdown tier — no curation ruling promotes + // it, and new pages do not take primary slots without one. + reports: "dropdown", }; describe("the #1497 decision table is applied to the manifest", () => {