Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.
Rust agent-skillsclaude-codeclicode-migrationcodexffigolangjavajavascriptmcpmigrationnapiperformanceportingpyo3pythonrewriterubyrusttypescript
docs(website): list all gate checks on Gate page (#1359)
isodevd3ebd0cbca32
diff --git a/tests/cli_help.rs b/tests/cli_help.rsindex 72d7840a..72d85b47 100644--- a/tests/cli_help.rs+++ b/tests/cli_help.rs@@ -112,3 +112,26 @@ fn website_cli_help_matches_the_binary() {stale.join("; "));}++#[test]+fn website_gate_page_names_all_checks() {+ let path = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))+ .join("website/pages/en/docs/concepts/gate.md");+ let text = std::fs::read_to_string(&path).unwrap();+ for check in [+ "held-out",+ "literals",+ "spawns",+ "runtime",+ "tests",+ "lockfile",+ "advisories",+ ] {+ let needle = format!("`{check}`");+ assert!(+ text.contains(&needle),+ "{} is missing {needle}",+ path.display()+ );+ }+}diff --git a/website/pages/en/docs/concepts/gate.md b/website/pages/en/docs/concepts/gate.mdindex 72bd148a..56b1926d 100644--- a/website/pages/en/docs/concepts/gate.md+++ b/website/pages/en/docs/concepts/gate.md@@ -18,7 +18,12 @@ Done means `gate` passes. It checks:- the port at most 3x the original's lines (plus 50 lines for imports and signatures), unless the user allowed the unit more with a `[[size]]` decision and its ADR;- the module builds, and every export is present;- every recorded case matches, [known diffs](/docs/concepts/diff#known-diffs) included, and the recording is not [stale](/docs/concepts/diff#stale-recordings);-- a recorded case for every export, or a waiver ([coverage](/docs/concepts/coverage)); the line count next to it is information only.+- `held-out`: fresh inputs from a new seed, and recorded ones with one change, must match the original (TS/JS napi and Python PyO3 ports; `--held-out-cases 0` turns it off);+- `literals`: no recorded values hard-coded in the port;+- `spawns` and `runtime`: the port does not run the original, start another program, or read the recording;+- `tests`: no tests or assertions removed since the last passing gate;+- a recorded case for every export, or a waiver ([coverage](/docs/concepts/coverage)); the line count next to it is information only;+- `lockfile` and `advisories` (warnings only): reported in gate output without failing the gate.Each failed check carries a `fix`: run that first.