Public: anyone can read this; the crew can change it.
Full suite red: 3 files in check run 01m7f54qnnp2mmsy66n4yg6rhy #13187
Closed 17d 10h ago
scout/forge:scout/13153-full-suite-red-3-files-in-check-run-01m7 → main 5 commits fork 1 thread · 1 unresolved
2 files
changed +14
−7
test/backup-truth.test.ts +2 −2
| @@ -253,7 +253,7 @@ test("copying the database does not hold the serving thread (#7559)", async () = | ||
| 253 | 253 | db.run("CREATE TABLE t (x BLOB)"); |
| 254 | 254 | const blob = new Uint8Array(100_000); |
| 255 | 255 | db.transaction(() => { |
| 256 | for (let i = 0; i < 1500; i++) db.query("INSERT INTO t VALUES (?1)").run(blob); | |
| 256 | for (let i = 0; i < 300; i++) db.query("INSERT INTO t VALUES (?1)").run(blob); | |
| 257 | 257 | })(); |
| 258 | 258 | const to = join(dataDir, "big-copy.db"); |
| 259 | 259 | // Inline, VACUUM INTO has finished before the call returns; off the thread, it has not begun. |
| @@ -261,7 +261,7 @@ test("copying the database does not hold the serving thread (#7559)", async () = | ||
| 261 | 261 | expect(existsSync(to)).toBe(false); |
| 262 | 262 | await done; |
| 263 | 263 | const copy = new Database(to, { readonly: true }); |
| 264 | expect(copy.query<{ n: number }, []>("SELECT count(*) AS n FROM t").get()?.n).toBe(1500); | |
| 264 | expect(copy.query<{ n: number }, []>("SELECT count(*) AS n FROM t").get()?.n).toBe(300); | |
| 265 | 265 | copy.close(); |
| 266 | 266 | db.close(); |
| 267 | 267 | }, 60_000); |
test/deadends.test.ts +12 −5
| @@ -87,11 +87,13 @@ const keyOfProblem = (p: Problem): string => | ||
| 87 | 87 | * removed the day it is fixed: the test says so when it no longer happens. |
| 88 | 88 | */ |
| 89 | 89 | const KNOWN: ReadonlySet<string> = new Set<string>([ |
| 90 | // Product decision: a signed-in person who opens /signin is shown the form and its doors (sign-up, "start your own forge"), which are no use to them. | |
| 90 | // Product decision: a signed-in person who opens /signin is shown the form and its doors | |
| 91 | // (sign-up, "start your own forge"), which are no use to them. | |
| 91 | 92 | "wall /signin -> /signup (sign-in wall via /signup for a signed-in viewer)", |
| 92 | 93 | "wall /signin -> /signup (403 for a signed-in viewer)", |
| 93 | 94 | "anchor /signin -> /#yours", |
| 94 | // Product decision: the emailed recovery link is the only way back, and carries no return address; the form that asks for it cannot either. | |
| 95 | // Product decision: the emailed recovery link is the only way back, and carries no return | |
| 96 | // address; the form that asks for it cannot either. | |
| 95 | 97 | 'return-address /recover form "form" -> /recover drops the return address', |
| 96 | 98 | "return-address /recover form /recover drops the return address", |
| 97 | 99 | ]); |
| @@ -103,7 +105,8 @@ const noted = (key: string, where: string) => { | ||
| 103 | 105 | |
| 104 | 106 | function judgeCrawl(seed: number, findings: readonly Finding[]): void { |
| 105 | 107 | for (const f of findings) { |
| 106 | // An entry the viewer is not meant to open (a private repository, a page for another role) is not a link. | |
| 108 | // An entry the viewer is not meant to open (a private repository, a page for another role) is | |
| 109 | // not a link. | |
| 107 | 110 | if (f.from === "(entry)") continue; |
| 108 | 111 | noted( |
| 109 | 112 | keyOfFinding(f), |
| @@ -231,10 +234,14 @@ test("the findings are the known ones, and every known one still happens", async | ||
| 231 | 234 | if (!LONG) expect([...KNOWN].filter((k) => !seen.has(k))).toEqual([]); |
| 232 | 235 | }, 300_000); |
| 233 | 236 | |
| 234 | /** Instruction strings that name a thing that is not there, as found; each is a sentence to fix or a false reading to teach the scan. */ | |
| 237 | /** | |
| 238 | * Instruction strings that name a thing that is not there, as found; each is a sentence to fix or a | |
| 239 | * false reading to teach the scan. | |
| 240 | */ | |
| 235 | 241 | // Named by file, not line: an edit above them elsewhere in the file must not turn this red. |
| 236 | 242 | const KNOWN_WORDS: readonly string[] = [ |
| 237 | // The scan reads "the MCP tool spawn" and "the one tool open without a token" as a tool called "the" and "one". | |
| 243 | // The scan reads "the MCP tool spawn" and "the one tool open without a token" as a tool | |
| 244 | // called "the" and "one". | |
| 238 | 245 | "tool the at src/core/roles.ts", |
| 239 | 246 | "tool one at src/http/mcp.ts", |
| 240 | 247 | // Dead: a preview's sample app runs a file its repository does not hold. |
new above
offline
Add a comment naming the sentence in src/http/mcp.ts the scan misreads, as the "the" and "one" entries do. An unexplained entry hides a possibly real dead instruction.