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-26 07:27:09 +00:00
2026-11-25 10:01:22 +00:00
2026-11-26 14:03:36 +08:00
2026-11-25 15:53:43 +00:00
2026-11-26 23:25:32 +08:00
2026-11-24 21:26:48 +08:00
2026-11-19 17:56:20 +00:00
2026-11-11 17:28:10 +08:00
2026-11-18 16:06:51 -05:00
2026-11-24 11:48:23 -05:00
2026-10-12 09:25:27 +08:00
2026-11-14 20:25:11 +08:00
2026-11-14 04:08:37 -05:00
2026-11-17 14:57:30 -05:00
2026-10-09 20:11:17 +08:00
2026-10-15 20:11:26 +08:00
2026-11-11 17:20:22 +08:00
2026-11-15 20:35:48 +08:00
2026-11-24 10:26:59 +00:00
2026-11-11 00:16:44 -05:00
2026-11-22 16:42:37 +00:00
2026-10-13 18:23:17 +08:00
2026-11-26 12:29:29 +08:00
2026-10-08 22:43:51 +08:00
2026-11-24 10:26:59 +00:00
2026-11-25 14:53:18 +00:00
2026-10-30 18:29:18 +08:00
2026-11-09 20:48:08 +08:00
2026-10-27 17:13:17 +00:00
2026-11-26 01:24:24 +08:00
2026-10-14 04:47:34 +08:00
2026-11-21 16:54:56 -05:00
2026-10-24 09:24:43 +00:00
2026-07-17 00:16:46 +00:00
2026-10-13 22:03:16 +08:00
2026-11-26 01:24:24 +08:00
2026-11-19 03:58:03 +00:00
2026-11-17 19:58:40 +08:00
2026-11-16 18:57:12 +08:00
2026-11-23 13:40:29 -05:00
2026-11-19 14:46:31 +00:00
2026-10-24 11:41:34 +08:00
2026-11-12 05:08:27 -05:00
2026-11-12 20:29:42 -08:00
2026-11-25 08:28:02 -05:00
2026-11-01 00:15:28 +08:00
2026-10-24 15:57:23 +00:00
2026-10-31 16:43:04 +08:00
2026-10-21 19:47:52 +08:00
2026-10-21 19:47:52 +08:00
2026-11-17 08:28:59 -05:00
2026-11-23 12:06:28 -05:00
2026-11-18 17:54:40 -05:00
2026-11-19 03:58:03 +00:00
2026-11-21 22:06:51 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 20:55:29 -05:00
2026-11-26 01:24:16 +08:00
2026-11-15 22:01:49 +08:00
2026-11-26 03:50:41 +00:00
2026-11-26 01:24:16 +08:00
2026-11-16 00:06:34 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 03:56:10 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:55:09 +08:00
2026-10-24 21:51:41 +08:00
2026-10-07 21:45:07 +08:00
2026-10-14 09:55:09 +08:00
2026-10-14 09:47:57 +08:00
2026-11-16 00:04:05 +08:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-18 15:08:58 -05:00
2026-11-26 01:24:37 +08:00
2026-11-17 10:47:29 +00:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-20 09:47:41 -05:00
2026-11-17 10:04:46 +00:00
2026-11-22 20:41:11 -05:00
2026-11-19 00:12:50 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:39:50 +08:00
2026-11-26 01:24:37 +08:00
2026-11-18 16:06:51 -05:00
2026-11-26 01:24:43 +08:00
2026-11-19 01:55:13 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-23 02:33:17 +00:00
2026-11-15 22:01:49 +08:00
2026-08-05 19:07:46 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:37 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 00:06:34 +08:00
2026-11-16 04:27:07 +08:00
2026-11-16 00:06:34 +08:00
2026-11-26 01:24:37 +08:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-10-24 22:28:39 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-11-14 04:08:37 -05:00
2026-11-25 08:29:31 -05:00
2026-11-16 08:04:12 +08:00
2026-11-25 08:29:31 -05:00
2026-11-17 08:28:59 -05:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:24 +08:00
2026-10-24 16:58:18 +08:00
2026-10-24 22:28:39 +08:00
2026-10-12 18:44:02 +08:00
2026-10-20 00:05:22 +08:00
2026-10-20 00:05:22 +08:00
2026-10-24 17:54:18 +08:00
2026-11-13 10:11:06 -05:00
2026-10-24 22:28:39 +08:00
2026-11-01 18:36:21 +08:00
2026-11-25 08:29:31 -05:00
2026-11-15 22:01:49 +08:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:04:05 +08:00
2026-10-24 16:58:18 +08:00
2026-11-20 17:58:27 -05:00
2026-11-26 03:50:41 +00:00
2026-11-25 11:25:18 -05:00
2026-11-16 00:06:34 +08:00
2026-11-25 08:29:31 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:37 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 03:08:49 +00:00
2026-11-25 16:56:05 +00:00
2026-11-25 16:56:05 +00:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:23:52 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-15 19:52:38 +08:00
2026-11-15 19:52:38 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-18 16:06:51 -05:00
2026-11-18 16:06:51 -05:00
2026-11-23 23:24:46 +00:00
2026-11-25 16:56:05 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 09:23:14 +00:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:43 +08:00
2026-11-25 11:25:18 -05:00
2026-10-05 22:54:17 +08:00
2026-11-19 23:29:09 -05:00
2026-11-26 01:24:43 +08:00
2026-11-26 19:01:13 +08:00
2026-11-26 01:24:43 +08:00
2026-11-26 01:24:16 +08:00
2026-11-16 03:56:10 +08:00
2026-11-26 01:24:16 +08:00
2026-11-20 04:35:35 +00:00
2026-11-25 11:25:18 -05:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-25 11:25:18 -05:00
2026-11-24 21:54:08 -05:00
2026-11-22 01:35:33 +00:00
2026-10-08 10:13:05 +00:00
2026-11-24 03:29:27 +00:00
2026-11-17 08:28:59 -05:00
2026-11-26 03:50:41 +00:00
2026-10-13 21:55:30 +08:00
2026-11-16 00:04:05 +08:00
2026-11-16 03:57:03 +08:00
2026-11-26 03:50:41 +00:00
2026-11-25 11:25:18 -05:00
2026-11-26 01:24:16 +08:00
2026-11-21 22:06:51 -05:00
2026-10-26 16:04:44 +08:00
2026-11-15 21:50:00 +08:00
2026-11-26 01:24:16 +08:00
2026-11-25 08:29:31 -05:00
2026-11-19 03:58:03 +00:00
2026-11-21 09:17:40 -05:00
2026-11-21 10:11:39 -05:00
2026-11-21 22:06:51 -05:00
2026-11-21 10:11:39 -05:00
2026-10-26 14:46:23 +08:00