Repository navigation
#1488 wave6 - #1583
Merged
Merged
#1488 wave6#1583
Conversation
caomengxuan666
force-pushed
the
rust2/wave6
branch
from
November 12, 2026 11:09
266323d to
592cf99
Compare
…ree-way gate (#1488 wave6)
…ree-way gate (#1488 wave6)
util-linux rev semantics (the WSL oracle is rev 2.39.3, not coreutils; probed 2026-11-12): -0/--zero accepted though undocumented in its --help, options permute (-V extra still prints the version), - is NOT stdin, records reverse characterwise with UTF-8 units under a UTF-8 locale and bytes under C/POSIX — the locale read follows setlocale precedence (LC_ALL > LC_CTYPE > LANG, default C) through the injected env. Documented GNU-hang subset (probed rc 124 under timeout): invalid byte sequences and directory operands make GNU rev 2.39.3 hang; this implementation reverses byte-wise / reports the open error instead, and no gate row can cover those honestly — the fallback is pinned by unit tests. File operands go through the shell-namespace resolve. UTF-8 gate rows pin LC_ALL (the Windows side has no inherited locale).
GNU coreutils 9.4 factor: operand grammar from the probed source rules (leading spaces only, one '+', all digits, no trailing chars; 010 is decimal 10), stdin lines trimmed of spaces/tabs with blank lines skipped and CR invalid (all probed), invalid operands continue processing with rc 1, -h/--exponents p^e grouping. Number theory is std-only u64 exact: trial division by primes < 1000, deterministic Miller-Rabin (the proven 12-base witness set), Pollard-Brent rho with u128 modmul — probed GNU worst cases (2^64-1, 4295109041) match byte-for-byte. Documented subset: GNU links GMP and factors arbitrary-precision operands (2^64 probed); beyond u64::MAX this implementation rejects with rc 1, so that row is note-classified (record-only), never gating. Multi-line stdin cannot pass the case harness (stdin column is one printf %s token); those rules are pinned by unit tests and the operand rows gate the rest.
GNU coreutils 9.4 arch (uname -m variant): getopt_long with ONLY long help/version options — short -h/-V are invalid in GNU (arch: invalid option -- 'h'; the shared argopt lone--h->help deviation is note- classified like hostid), long abbreviations work (--ver probed), options permute past operands (arch foo --help prints help), any remaining operand is 'arch: extra operand <x>' rc 1 (#1215 parity with the C++ applet). Output is GetNativeSystemInfo native arch (WOW64-safe, same as the C++ arch.cpp), platform-inherent so value rows gate win and grammar rows gate exit; help/version text is strict vs WSL coreutils 9.4.
GNU coreutils 9.4 groups output shape with the C++ applet's Windows value model (src/commands/groups.cpp): self form prints bare group names; named form prints '<user> : <groups>' per user, processing continues past failures with rc 1; unknown user is GNU's 'groups: <user>: no such user' wording (exit-gated). Membership comes from NetUserGetGroups (level 0) — the same source as the C++ pipeline — added to winsys.rs alongside LookupAccountNameW (both std-only raw FFI); the well-known None group prints its SID-derived numeric id like an unresolvable gid (#1024). Value rows gate win (Rust rc vs C++ rc); help/version are strict GNU text. argopt's lone -h->help deviation is note-classified (GNU groups has no shorts).
…1488) md5sum/sha1sum/sha256sum/sha512sum/echo/rev/factor/arch/groups: 278 new gate cases, all GREEN against WSL coreutils 9.4 (util-linux 2.39.3 for rev). Full 64-command run: GNU-gated 1676 PASS / 0 FAIL, win-gated 153 PASS / 0 FAIL. cargo test 493/493 green; cargo fmt clean.
…o its TSV - emit list: factor/groups ride the wave4b entries (one definition per name; duplicates would double-count the coverage total) - groups_rows: keep the wave6 gr01-self 22-row table (the validated 3-way-gated set) instead of the wave4b comment-style block the merge had kept by mistake; regenerated groups.tsv now matches the committed wave6 TSV byte-for-byte
caomengxuan666
force-pushed
the
rust2/wave6
branch
from
November 13, 2026 01:49
592cf99 to
8e22da9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WinuxCmd 2.0 wave6 — rust2 library-form batch (#1488)
9 commands: md5sum sha1sum sha256sum sha512sum echo rev factor arch groups (parallel to the wave5 lane; no overlap — wave5 takes du/chcon/runcon/chgrp/link/mkfifo/mknod/date/tty/cksum).
Completion table
Wave6: 278 cases, GNU-gated 270 PASS / 0 FAIL, win-gated 8 PASS / 0 FAIL.
Full 64-command regression: GNU-gated 1676 PASS / 0 FAIL, win 153 PASS / 0 FAIL.
cargo test 493/493 green, cargo fmt clean, every commit builds green.
Highlights
digest.rs; the round-constant table is generated from the RFC formula (a hand-typed table had two wrong entries — generation caught them). digestsum.rs extends the wave2--checkmachinery with the four algorithms; help bodies/texinfo nodes probed verbatim. Two unit-test sha1 vectors that came from memory were caught wrong by the WSL probe and corrected before landing.src/echo.c(C source, not output matrices): allow_options =!POSIXLY_CORRECT || argv[1] == "-n"exactly,\c= mid-output EXIT_SUCCESS, measured octal rules (\0777→ one 0xFF byte).-0/--zeroaccepted though undocumented,-is not stdin, locale (LC_ALL > LC_CTYPE > LANG) decides byte vs UTF-8 unit reversal via the injected env; path operands go through the shell-namespace resolve.NetUserGetGroupsFFI with the [gap] groups/id/stat: unresolvable group name prints literal 'None' #1024 None-group rule.Documented subsets (GNU comparison evidence in module docs + commit bodies)
factor> u64::MAX: GNU factors via GMP (probed 2^64 = 64 twos rc 0); rust2 rejects rc 1 — note-classified row, never gating.rev: GNU rev 2.39.3 hangs (probed rc 124 under timeout) on invalid byte sequences and directory operands; rust2 reverses byte-wise / reports the open error instead — no gate row can cover those honestly, fallback pinned by unit tests. UTF-8 rows pin LC_ALL (Windows side has no inherited locale).arch -h/groups -h: argopt's lone-h→ help is a documented deviation from GNU (both reject-h), note-classified (hostid precedent).Commits (一事一 commit)
4c3fd2damd5sum sha1sum sha256sum sha512sum + md5/sha1 primitives (4x33-case gate)81fc9568echo (40-case gate)5f6a5f92rev (25-case gate)a4a3db72factor (37-case gate)ab9f1415arch (22-case gate)44b1034egroups + winsys netapi32 (22-case gate)266323d5gate: wave6 report section + coverage regenerationDo not merge — review only (per lane discipline).