Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 8fdc0cf4047448a5aa4aca0fb254b3a4f55815ec
parent 7725475feca61d4c1b67e8e2cf91c6b743687478
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Wed, 18 Nov 2026 22:25:36 -0500

x-trending: review 2 R-a -- the watch's refusal asks the report for a job that does not count, and the cap does not hold it (test)

Co-Authored-By: Claude <noreply@anthropic.com>

Diffstat:
Mcommon/controller/xTrendingWatch.test.ts | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/common/controller/xTrendingWatch.test.ts b/common/controller/xTrendingWatch.test.ts @@ -400,6 +400,17 @@ test("M1: the watch asks a jar under its limit whatever the source, the setting // Added scope R2: X's job cap is reached — a pause like a cooldown's (the tick is skipped, no strike, it goes on by itself), not the jar's. const cap = "X's job cap is reached on this machine: 12 X jobs started in the last 60 minutes (the cap is 12). The next X job may start at 13:00 UTC (in 4 min); …"; assert.deepEqual(await ask({ allowed: false, reason: cap, cap: { lastHour: 12, perHour: 12, lastDay: 12, perDay: 150, reached: true } } as never), { reason: "cooldown", sentence: cap }); + // Review 2, ruling R-a: a job that does not count (a library's media-only capture) is not held by the cap — + // the report it is asked with says so (`counts: false` reaches xSessionReport), and the cap clause stands aside. + let asked: unknown; + const notCounted = await watchRefusal({} as Paths, "lib", now, { + report: (async (o: unknown) => ((asked = o), report({ cap: { lastHour: 12, perHour: 12, lastDay: 12, perDay: 150, reached: true } } as never)())) as never, + settingsReadable: () => true, + held: async () => null, + counts: false, + }); + assert.equal(notCounted, null); + assert.equal((asked as { counts?: boolean }).counts, false); assert.deepEqual(await ask({ allowed: false, reason: "X's job count cannot be read (f): no X job starts while it is unreadable", cap: { lastHour: 0, perHour: 12, lastDay: 0, perDay: 150, reached: true, unreadable: true } } as never), { reason: "cooldown", sentence: "X's job count cannot be read (f): no X job starts while it is unreadable",