Skip to content

docs(channels): stop the provider reference contradicting the code - #780

Merged
huichen merged 1 commit into
mainfrom
docs/chan-provider-maturity
Sep 22, 2026
Merged

huichen merged 1 commit into
mainfrom
docs/chan-provider-maturity

Conversation

@huichen

@huichen huichen commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

The problem

docs/guide/channels-providers.md is the page a reader scans to decide what a channel can do, and every value in its matrix is declared by a provider's ChannelDefinition. Three providers landed after that page was written and the page was never revisited, so it says:

  • the matrix lists QQ, iMessage and Email as planned;
  • the per-channel sections are headed ### QQ (planned) etc. and say "Not implemented in this build";
  • Known limitations states "QQ, iMessage and Email are not implemented."

All three are in fact Maturity::Preview with test suites (qq_tests.rs, imessage_tests.rs, email_tests.rs). future channel list reads the code, so the CLI and the page disagreed — and this is the "docs must match code" class the repo cares about.

Two more values had drifted the same way:

  • Email's row claimed no threading, but the provider advertises threads (replies carry In-Reply-To/References);
  • the live legend said "Only the terminal channel qualifies today" while the same page says Feishu and DingTalk are live.

The change

  1. The three rows and their sections describe what the implementations do — QQ's gateway handshake (op 10 hello / op 2 identify / re-identify on op 7/op 9) and its msg_id+msg_seq replies; iMessage's AppleScript send and read-only database poll with the Apple-epoch conversion; Email's two protocol subsets, its MIME handling, its security/timeout_seconds fields and the fact that it polls rather than idles.
  2. Known limitations now says what is genuinely unverified about those three (QQ text-only and sandbox-vs-production, iMessage's macOS/Full-Disk-Access and headless-send constraint, Email's poll latency and listed-but-not-fetched attachments) instead of claiming they do not exist.
  3. scripts/check-channel-matrix.py compares the capability columns, the message limit (value and unit) and the maturity of every row against the provider sources, and is wired into make check-docs. The table cannot drift from the definitions again without failing a command someone runs before touching the docs.

Verification

$ python3 scripts/check-channel-matrix.py
provider matrix matches the code (12 rows)

$ python3 scripts/check-docs.py      # only the 4 pre-existing mobile/docs findings, unchanged

Before the fix the checker reported, on the same file:

MISMATCH qq maturity: page=planned code=preview
MISMATCH imessage maturity: page=planned code=preview
MISMATCH email maturity: page=planned code=preview
MISMATCH email capabilities: page=['yes','no',...] code=['no','yes',...]

Docs-only plus one checker script; no crate code changes.

…age was written

QQ, iMessage and Email are implemented (`Maturity::Preview`, with tests) but the
provider reference still listed them as `planned` and stated outright that they
are "not implemented". `future channel list` reads the code, so the CLI and the
page contradicted each other, and the page is the thing a reader scans first.

Also fixes two values that drifted the same way: Email advertises `threads`
(replies carry In-Reply-To/References) and so does its row now, and the `live`
legend claimed only the terminal channel qualifies while Feishu and DingTalk are
declared live elsewhere on the same page.

The capability columns, the message limit and the maturity of every row are now
checked against the provider sources by `scripts/check-channel-matrix.py`, wired
into `make check-docs`, so the table cannot drift from the definitions again
without failing a command someone runs before touching the docs. The three
per-channel sections describe what the implementations actually do (QQ's gateway
handshake and token refresh, iMessage's AppleScript send plus database poll,
Email's two protocol subsets) and what a reader must still verify themselves.
@huichen
huichen enabled auto-merge (squash) September 22, 2026 15:07
@huichen
huichen merged commit 9ad00e4 into main Sep 22, 2026
12 checks passed
@huichen
huichen deleted the docs/chan-provider-maturity branch September 22, 2026 15:08
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