Skip to content

docs: re-verify every document against the code and retire the historical noise - #853

Merged
huichen merged 10 commits into
mainfrom
docs/docs-reorg-2
Sep 25, 2026
Merged

huichen merged 10 commits into
mainfrom
docs/docs-reorg-2

Conversation

@huichen

@huichen huichen commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

What

Every document under docs/ (plus the repo-root README* / SECURITY* /
THIRD_PARTY_NOTICES* and orchestration/loop/UPSTREAM*) was re-checked against
the current source, in both languages, by seven parallel slices (guides,
architecture, desktop internals, other internals, mobile, wiki, index). Each
claim was re-derived from the code — the previous 2026-09-16 mismatch audit was
used only as a hint and re-verified, never copied.

Fixes fell into the three categories that matter:

  • Contradictions — e.g. docs/guide/channels-providers.md described
    future channel list output that the command never prints; the wiki
    DingTalk.md omitted sender_allowlist (an empty list denies every sender,
    so a user copying the example got a bot that answers nobody).
  • Outdated — status lines still announcing work as "not implemented",
    retired behaviours described as current, CONTEXT_COMPACTION's status, the
    desktop→NATS hop described as "deployment-controlled TLS".
  • Missing — user-visible keys, flags and limits absent from the reference
    pages while the code enforced them.

Historical noise out of the live pages

  • docs/audits/doc-code-mismatches{,.zh-CN}.md (a one-off dated snapshot whose
    findings are fixed) → docs/archives/verification/.
  • The four dated mobile audits and their three de-identified measurement JSONs
    → docs/archives/verification/, each now with an English/Chinese pair.
  • Three further docs/internals/mobile/ pages whose body was a dated audit or
    a superseded measurement → archives; the pages that describe the current
    implementation stayed, with their dead-history paragraphs removed.

docs/archives/** keeps its original text, dates and commit boundaries.

New guard

scripts/docs/check-docs.py now fails when a current document (outside
docs/archives/) references a repo scripts/ path that does not exist,
including globs (must match at least one file) and Windows-style separators.
That check immediately caught two stale references in the generated
docs/wiki/{en,zh}/Models.md headers.
scripts/tests/test-check-docs.py grew six regression cases, including the
negative controls.

Verification

  • python scripts/docs/check-docs.py --strict-pending → exit 0,
    Checked 205 docs … script paths and fences OK (0 pairs pending bilingualization)
  • python scripts/tests/test-check-docs.py → Ran 27 tests … OK
  • 22 spot-checked claims re-derived from source (file:line in the evidence
    file), all consistent — e.g. the 20 slash commands and 17 shortcuts against
    tui/src/app.rs, sender_allowlist against dingtalk/bridge.rs, the loop
    verb sets against console.rs, the desktop approval default against
    app_settings.rs, the 4-image/25-MiB limits against attachments.ts
  • every docs/ .md has both languages (77 pairs + 15 wiki pages per language
    • 3 packaging pairs), verified by enumeration as well as by the gate
  • one stale Rust doc comment found by the audit is corrected
    (channels/src/providers/traits.rs: config_example is not printed by
    future channel list); cargo fmt -p future-channel --check and
    cargo clippy -p future-channel --all-targets -- -D warnings are clean

Notes

The docs gate is deliberately not wired into CI, so this PR carries its own
acceptance evidence (.future/loop/evidence/b8.md and the per-slice files).
Full slice-by-slice method, findings and disagreements are recorded there.

…rchives

Seven parallel slices (guide / architecture / desktop internals / other
internals / mobile / wiki / index) re-derived each documented claim from the
current source, fixed the errors, outdated statements and omissions they found
in both languages, and removed the historical noise from the live pages:

- FOUR dated mobile audits folded into docs/archives/verification/ instead of
  being kept as current documentation and given their missing Chinese pairs
- docs/audits/ (a one-off 2026-09-16 mismatch snapshot) retired into archives
- root README / SECURITY / THIRD_PARTY_NOTICES / UPSTREAM re-checked
Linux uninstall is 'sudo apt remove future-os' (the released .deb control file says Package: future-os, verified against FutureOS_1.2.1_amd64.deb). The Runs panel lists one row per command with the running/finished count in the header, and deleting a workspace on the phone keeps the desktop folder's files.
…ricize the rest

Three EN/ZH pairs whose body is a one-off snapshot (a dated audit with a
'confirmed and fixed' table, two superseded measurement reports) move to
docs/archives/verification/ keeping their names and dates; the pages that
describe the current implementation stay, with their dead-history paragraphs
removed. The module README and the docs index follow the moves.
Add rule 4 to scripts/docs/check-docs.py: every repo-internal scripts/ path named in a current doc (outside docs/archives/) must exist; Windows separators are normalised before the check and a documented glob must match at least one file. Six regression cases cover the rule (missing path, existing path, glob with/without a match, backslash form, sentence punctuation, archives exemption).

Fix the two stale references the new check caught (generated wiki Models.md header now names scripts/docs/generate_models.py, matching the generator), and reconcile docs/README{,.zh-CN}.md with the checker and the archived measurement JSONs.
@huichen
huichen enabled auto-merge (squash) September 25, 2026 19:43
@huichen
huichen merged commit 54da47f into main Sep 25, 2026
12 checks passed
@huichen
huichen deleted the docs/docs-reorg-2 branch September 25, 2026 19:49
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