RRFZ
d5b4c4bb61
fix(verify): bound concurrent file reads in architecture and limit guards ( #14720 )
...
* fix(verify): bound concurrent file reads in architecture and limit guards
`scripts/verify/architecture-guards.mjs` reads every `.ts`, `.mts`, `.mjs`,
and `.py` file under `src/`, `tests/`, `scripts/`, and `bridge/` (8,203 files
on current `main`) via unbounded `Promise.all(paths.map(readFile))`. On
Windows, queuing all `open()` calls at once exceeds the UCRT 8,192 file
descriptor ceiling and deterministically fails `npm run verify:architecture-guards`,
`npm run check:fast`, and the pre-push hook with `EMFILE: too many open files`.
Add a zero-dependency JSDoc-typed `mapWithConcurrency` helper in
`scripts/verify/bounded-file-reads.mjs` (default cap 64, registered in
`tsconfig.scripts.json` so it runs before `npm ci`), apply it across all four
bulk `readFile` loops in `scripts/verify/architecture-guards.mjs` and the
sibling `src/` scan in `scripts/verify/rea-numeric-limits.mjs`, and add unit
coverage in `tests/evaluation/boundedFileReads.test.ts`.
* test(verify): copy bounded-file-reads helper in numericLimitGuardPermission fixture
`scripts/verify/rea-numeric-limits.mjs` now imports
`./bounded-file-reads.mjs`. Copy both scripts into the temporary checkout
in `tests/boundary/process/numericLimitGuardPermission.test.ts` so the
copied verifier starts cleanly on non-root Linux/macOS runs instead of
failing with `ERR_MODULE_NOT_FOUND`.
2026-11-26 23:25:32 +08:00
..
2026-11-16 21:13:43 -05:00
2026-11-16 21:13:43 -05:00
2026-11-25 18:20:28 +00:00
2026-11-06 01:53:53 +08:00
2026-11-16 01:59:03 +08:00
2026-11-16 01:59:03 +08:00
2026-11-25 21:08:12 +00:00
2026-11-15 23:49:11 +08:00
2026-11-15 20:52:58 +08:00
2026-11-25 08:28:16 -05:00
2026-11-25 08:28:16 -05:00
2026-11-26 19:56:07 +08:00
2026-11-25 08:28:16 -05:00
2026-11-25 08:28:16 -05:00
2026-11-14 05:27:07 +08:00
2026-11-25 03:51:47 +00:00
2026-11-22 01:40:30 +00:00
2026-11-16 03:56:10 +08:00
2026-11-16 04:27:07 +08:00
2026-11-25 18:20:28 +00:00
2026-11-16 10:59:18 +08:00
2026-10-15 16:54:58 +08:00
2026-11-14 13:21:13 +08:00
2026-11-21 17:41:50 +00:00
2026-11-25 18:20:28 +00:00
2026-11-25 18:20:28 +00:00
2026-10-23 10:39:28 +00:00
2026-11-25 18:20:28 +00:00
2026-11-25 18:20:28 +00:00
2026-11-11 17:42:53 -05:00
2026-11-25 18:20:28 +00:00
2026-11-20 17:54:30 +00:00
2026-11-25 18:20:28 +00:00
2026-11-21 18:41:30 -05:00
2026-11-21 18:41:30 -05:00
2026-11-21 00:47:04 -08:00
2026-11-24 09:23:14 +00:00
2026-11-18 14:48:37 -05:00
2026-10-09 12:45:23 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 05:27:07 +08:00
2026-11-23 12:17:44 +00:00
2026-10-12 08:59:14 +08:00
2026-11-14 13:21:13 +08:00
2026-11-02 02:13:32 +08:00
2026-11-16 00:39:50 +08:00
2026-11-22 00:00:18 +00:00
2026-11-14 13:21:13 +08:00
2026-11-16 10:59:18 +08:00
2026-11-15 20:06:47 +08:00
2026-11-14 13:21:13 +08:00
2026-11-14 13:21:13 +08:00
2026-10-24 00:27:57 +08:00
2026-11-14 04:08:37 -05:00
2026-11-25 18:20:28 +00:00
2026-11-10 17:03:59 -05:00
2026-11-25 08:28:16 -05:00
2026-11-25 08:28:16 -05:00
2026-11-15 20:52:58 +08:00
2026-11-25 21:08:12 +00:00
2026-11-17 23:02:01 -05:00
2026-11-14 13:21:13 +08:00
2026-11-14 04:08:37 -05:00
2026-11-23 17:44:41 -05:00
2026-11-14 05:27:07 +08:00
2026-11-23 02:33:17 +00:00
2026-11-16 08:42:11 +08:00
2026-11-14 05:27:07 +08:00
2026-11-25 16:56:05 +00:00
2026-10-25 07:31:42 +08:00
2026-11-25 18:20:28 +00:00
2026-11-14 05:36:39 -05:00
2026-11-03 14:47:49 +08:00
2026-11-11 17:39:19 +08:00
2026-11-14 05:27:07 +08:00
2026-11-14 05:27:07 +08:00
2026-11-26 23:25:32 +08:00
2026-11-23 00:11:31 +00:00
2026-11-11 16:37:48 -05:00
2026-11-15 21:22:13 -05:00
2026-11-23 01:25:34 +00:00
2026-11-16 00:04:05 +08:00
2026-11-18 21:49:15 +08:00
2026-11-18 15:33:46 -05:00
2026-11-18 15:33:46 -05:00
2026-11-14 13:21:13 +08:00
2026-11-20 17:58:27 -05:00
2026-11-14 05:27:07 +08:00
2026-11-17 16:34:22 -05:00
2026-11-14 13:21:13 +08:00
2026-11-17 14:16:24 -05:00
2026-11-20 17:58:27 -05:00
2026-11-07 11:12:43 +08:00
2026-10-27 17:13:17 +00:00
2026-10-20 02:01:00 +08:00
2026-10-24 09:57:15 +08:00
2026-11-15 21:53:53 -05:00
2026-11-17 18:48:24 -05:00
2026-10-08 00:46:21 +08:00
2026-11-17 18:48:24 -05:00
2026-11-19 23:22:53 -05:00
2026-11-14 19:28:38 +08:00
2026-11-15 19:35:03 +08:00
2026-11-15 19:35:03 +08:00
2026-10-19 10:52:55 +08:00
2026-11-25 18:20:28 +00:00
2026-11-22 07:59:17 -05:00
2026-11-15 21:53:53 -05:00
2026-10-24 09:57:15 +08:00
2026-11-21 22:29:33 +01:00
2026-11-14 05:27:07 +08:00
2026-11-18 23:05:54 +08:00
2026-11-16 08:06:35 +08:00
2026-10-23 02:25:04 +08:00
2026-11-11 16:37:48 -05:00
2026-10-23 22:13:12 +08:00
2026-11-15 21:53:53 -05:00
2026-10-19 20:04:00 +08:00
2026-10-19 11:37:41 +08:00
2026-11-25 18:20:28 +00:00
2026-11-15 21:53:53 -05:00
2026-11-24 23:25:08 -05:00
2026-11-16 07:56:52 +08:00
2026-10-26 15:41:03 +08:00
2026-11-22 09:26:24 +00:00
2026-11-23 02:33:17 +00:00
2026-11-15 23:51:20 +08:00
2026-11-21 18:53:53 -05:00
2026-10-20 02:01:00 +08:00
2026-11-23 00:11:55 +00:00
2026-11-18 15:33:46 -05:00
2026-11-14 11:48:19 +08:00
2026-11-18 17:54:40 -05:00
2026-10-19 09:14:00 +08:00
2026-11-25 18:20:28 +00:00
2026-11-19 03:32:08 +00:00
2026-11-14 13:21:13 +08:00
2026-11-24 10:46:14 -05:00
2026-11-12 23:58:18 -08:00
2026-11-16 04:49:19 +08:00
2026-11-16 00:39:50 +08:00
2026-11-17 14:16:24 -05:00
2026-11-26 01:24:43 +08:00
2026-11-15 21:53:53 -05:00
2026-11-18 22:07:57 -05:00
2026-11-16 08:45:01 +08:00
2026-11-16 04:49:19 +08:00
2026-11-14 13:21:13 +08:00
2026-11-16 04:27:07 +08:00
2026-11-24 11:48:23 -05:00
2026-11-14 13:21:13 +08:00
2026-10-15 03:43:29 +08:00