Skip to content

docs: evidence-first cross-platform README rewrite (GEO quick answers, five-platform identity) - #255

Merged
caomengxuan666 merged 1 commit into
masterfrom
docs/geo-crossplatform
Oct 10, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
docs/geo-crossplatform

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Summary

README.md + README-zh.md rewritten from a Windows-only story to an evidence-first cross-platform identity. 346/305 lines -> 138/116. No code, no CHANGELOG, no docs changes.

Repo metadata (applied directly via gh repo edit, owner-approved)

New description:

AI-native bash for humans and AI agents: real bash syntax, Unix commands, native Windows/Linux/macOS builds, direct execution of Windows binaries. No WSL, no emulation.

(Task draft verbatim except em dash -> colon.)

Topics (now exactly 20, the GitHub cap): added linux, macos, cross-platform, android, openharmony, gnubash, coreutils; kept all 14 previous topics except removed command-line-interface (redundant with cli + command-line) to stay at 20.

README changes

  1. Identity up front. Blockquote + first paragraph: real Bash, five platforms build from this tree, Windows remains the flagship (keeps the established "No WSL. No VM. No /mnt/c." voice), Linux/macOS are portable builds using system tools, and the old "Windows-only" label is named and corrected.
  2. Platforms section (new). Five-row matrix: Windows x64/ARM64, Linux x86_64/aarch64 (glibc 2.35+), macOS aarch64/x86_64 (all released, smoke-gated per release), Android aarch64/armv7 (CI build only, not smoke-tested), OpenHarmony aarch64-ohos (CI check only). Smoke gate defined in one sentence; Android/OH explicitly do not claim device readiness. Mirrors docs/src/platform-support.md.
  3. Receipts section (new, the protagonist). Every claim carries its number and a link to the committed artifact:
    • 6,336 real-world assets harvested and replayed one by one: 4,891 OK / 350 slow / 224 GNU-Bash-also-fails / 101 hangs / 698 fetch failures -> scripts/harvest/eco-test.py + snapshot wt92-local-20261005
    • 437 oh-my-bash/bash-it assets (166 themes) timed per phase, N=3 median; includes both frameworks' nvm assets, plus real users' dotfiles that load nvm.sh through the same harness -> scripts/perf/baselines/asset-timing-baseline.json
    • Release red line: per-asset budgets (re-render budget 120 ms, hard fail at 5x; healthy themes 11-35 ms), enforced by the perfbudget job in release.yml + nightly trend run -> scripts/perf/budgets.toml
  4. GEO structure for AI answer engines. Four one-line quick answers with self-contained facts ("Does niu require WSL? -> No.", "What platforms does niu run on? -> list", "Does niu run real Bash scripts?", "Can I install niu on Android or HarmonyOS today? -> Not yet"). Plain Q/A, no
    Details, so crawlers index the answers directly.
  5. Quick start condensed to installer/tarball/source lines + one config pointer.
  6. zh mirror (README-zh.md) kept rhythm-for-rhythm.

Removed content and where it lives

Removed from README Lives on at
Features list, Configuration/theme detail, three execution modes docs site (getting-started, advanced-usage, plugins, architecture)
"Why not WSL", PowerShell-eats-arguments demo, NIU_ENV agent walkthrough docs/src/why-niubash.md
"How it compares" table (niu vs WSL/Git Bash/PowerShell/CMD) smaller variant in docs/src/why-niubash.md (CMD column dropped there)
Architecture tree + rubash/winuxcmd/oh-my-niu notes docs/src/architecture.md
Long FAQ (MSYS2/Cygwin, Git Bash, WSL, name, PowerShell) platform-support.md ("no MSYS runtime" section) + why-niubash.md; condensed one-liners stay in the new quick answers
Demo GIF + 43-second film embed assets/ still in repo; homepage link still on repo settings
~170 ms cold-start figure removed everywhere in the READMEs (no committed measurement artifact); the docs table still carries it, unchanged

Record preservation: brush head-to-head + GNU 83-suite golden record

This content existed only in the README and is now removed from the repo at the owner's direction (the 83/83 number is stale: current state is 82/83). Preserved here so the information is not lost; rebuild in docs (why-niubash.md or the compatibility matrix) once the ci490 fix lands and the suites are re-run:

  • niubash compatibility gate: GNU Bash's own upstream test suites; gate 86/86 green, full suites 83/83 byte-identical (as measured 2026-09-21 - now stale, do not republish without re-verification).
  • Head-to-head vs brush v0.4.0 (measured 2026-09-21): both run through the identical bridge harness unixwin/rubash tests/gnu-compat/run-83.sh, same WSL GNU Bash baselines, same output normalization, brush in release mode. Result: niubash 83/83 suites byte-identical; brush 10/83, with 3 suites brush could not finish inside the 150-second bound.
  • brush's own validation (their docs/reference/compatibility.md): GNU suite not run; self-built ~1,700-case corpus with bash as oracle, ~125 known failures.
  • Positioning line removed with it: "Brush proves the approach works; niubash ships it complete on Windows."

Honest-guardrail notes

  • No 83/83, 82/83, or 86/86 anywhere in the new READMEs; placeholder line only ("record returns once the fix in flight lands").
  • Android/OpenHarmony stated as CI-level in three places (matrix, smoke paragraph, quick answer); no "supports Android/HarmonyOS" claim.
  • The "<= Linux same level" budget comparison was considered and dropped: no Linux comparison data source exists in the repo; the text says measured/budgeted/release-gated only.
  • Anti-AI pass on both files: zero banned-vocabulary hits, em-dash rate below the old revision, straight quotes only, no invented numbers (every figure traced to a committed artifact).

Identity moves from Windows-only to five platforms (Windows flagship;
Linux/macOS released; Android/OpenHarmony CI-level, stated as such), and
the README is cut from 346/305 lines to 138/116: one-sentence identity,
platform matrix, receipts block (6,336-asset harvest log, 437-asset timing
baseline, per-asset release budget gate), quick start, docs + roadmap
links. GEO: self-contained quick answers for AI answer engines. The
brush/83-suite comparison is removed pending the ci490 re-run (record
preserved in the PR body); the stale 83/83 and unsourced ~170 ms figures
are dropped. Mirrored in README-zh.md.
@caomengxuan666
caomengxuan666 merged commit 0830c78 into master Oct 10, 2026
3 of 9 checks passed
@caomengxuan666
caomengxuan666 deleted the docs/geo-crossplatform branch October 10, 2026 08:44
caomengxuan666 added a commit that referenced this pull request Oct 13, 2026
…1.4.0 section (#326)

- The [Unreleased] entries (#284/#287, #293-#304, #313) move into
  [1.4.0]; [Unreleased] is empty again.
- Newly recorded (today's wave): Git Bash compatible factory default
  prompt (#292, headline), WT-form shortcuts (#290/#211), the paste
  burst trailing-Enter fix (#308/#291), self-update SHA256 + release
  pinning (#311/#312), managed-block convergence (#324), completion
  tables/NIU_COMPDEFS/NIU_ENV probe (#305-#307), -s on-demand stdin
  (rubash#586 host half), bash/rbash invocation faces (#321/#322).
- Older gaps recorded: closed-stdout pipe contract (#245/#286), history
  session-end write-back (#265), sh POSIX contract (#262), PWD persona
  alignment (#283), one-shot fast path (#270), --cwd-state (#272),
  --encoded-command (#271), REPL-command highlighting (#281), docs
  passes (#255/#225/#226/#227), MSRV (#267), easter-egg prune (#264).

CHANGELOG-only change; no version claims.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant