Repository policy: the per-file size cap at 768 KiB

The GPU host and the translator's lowering have grown to about 700 KiB of source each, past the 640 KiB
cap, so the policy test failed on main. The cap stays well under a game file's size; the extension and
encoded-run checks are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
readmet3xt-lab
2026-12-02 15:46:58 +05:30
parent 297b05be21
commit a29a48adf5

View File

@ -10,8 +10,9 @@ use std::process::Command;
use anyhow::{Context, Result, bail};
// (The translator's one file is 570 KiB of source.)
const MAX_FILE_SIZE: usize = 640 * 1024;
// (The largest sources, the GPU host and the translator's lowering, are about 700 KiB each; the cap stays
// well under what a game file would be, and the encoded-run and extension checks below still apply.)
const MAX_FILE_SIZE: usize = 768 * 1024;
const MAX_ENCODED_RUN: usize = 512;
const ALLOWED_EXTENSIONS: &[&str] = &[