Skip to content

docs: install, server deployment and current crate layers in the README - #194

Merged
fylorn merged 3 commits into
mainfrom
docs/seo2-readme
Sep 25, 2026
Merged

fylorn merged 3 commits into
mainfrom
docs/seo2-readme

Conversation

@fylorn

@fylorn fylorn commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

The README still introduced core as "not an application you install", showed a macOS-only badge, and called ThinkWatch Enterprise "the server edition", which now collides with running twcore on a server. This brings README.md, README.zh-CN.md and CONTRIBUTING.md in line with v0.48.0 and the code on main.

README (English and Chinese)

  • Badges: every platform a release ships twcore for (macOS arm64, Windows x64 and arm64, Linux x86_64 and aarch64) in place of the macOS-only badge; all badges gain alt text.
  • Opening: what core is and where it runs (inside ThinkWatch Lite, or as a standalone gateway on a Linux server), and which three crates ThinkWatch Enterprise uses.
  • Install (new): the prebuilt binaries per platform with their .sha256 files and how to check them, the Linux install script, and building from source.
  • Server deployment (new): what scripts/install.sh sets up, including the twcore init it runs; twcore remote enable --allow, systemctl enable --now twcore, twcore control-key, twcore upgrade; links to docs/server.md and docs/config.md. The Chinese opening of this section is the wording approved for it.
    • Versions: the app connects only to a core with its control-plane protocol version (tw-link handshake), so the server runs the core version the app includes, which can be older than the latest release (v0.48.0 is protocol 21; ThinkWatch Lite 2026.9.16 includes v0.47.0, protocol 20). The section leads with twcore upgrade --version <version> --restart, which installs the named release up or down (upgrade::plan), instead of "the server and the app are upgraded together" next to a plain --restart. Install commands use <version> rather than a fixed number.
  • Features, checked against the code:
    • redaction applies to every upstream (it used to say "before they reach a relay"; tw-gateway/src/guard.rs);
    • all five protections, their off/observe/enforce modes and defaults (tw-config/src/security.rs);
    • failover before the first byte and the error event after it (pipeline/hop.rs, pipeline/relay.rs), and the breaker policy (tw-gateway/src/health.rs);
    • format conversion, cost accounting, request history, and config reload with fifty versions of history.
  • Crate layers: all sixteen crates (tw-api was missing), in five groups ordered so that no crate depends on a group below its own (checked against every Cargo.toml on main, dev-dependencies included): shared with ThinkWatch Enterprise, domain logic, control-plane contract (tw-api, tw-link; tw-config, tw-store and tw-observe depend on tw-api), assembly, and data plane and control plane (tw-gateway, tw-control). The explanation above the table is the one on the website's Core page: the three crates ThinkWatch Enterprise depends on, and the gateway's crates grouped by role. ThinkWatch Enterprise depends on exactly tw-dialect, tw-guard and tw-breaker. The paragraph on the single-machine implementation names the last two groups and describes one twcore process reached over a local channel or the remote control port.
  • Control plane: the local channel per OS plus the remote control port, all behind the same Noise handshake; the remote port's limits (loopback is not admitted automatically, 32 connections at most).
  • twcore init writes plain YAML, not "a commented config.yaml".

In the Chinese README, paragraphs are single lines so browsers show no stray spaces between Chinese characters, and each bold label ends before the full stop (**标签**。); with the full stop inside, CommonMark does not close the bold.

CONTRIBUTING.md

  • "Both editions ... and the server edition" becomes ThinkWatch Lite and ThinkWatch Enterprise, stating that Enterprise depends on exactly three crates and that CI checks it against changes to them.
  • "Apple Silicon" becomes "Apple silicon"; init writes "an initial config.yaml".

Checked

  • twcore init, check, remote enable --allow, remote, control-key and upgrade --check run as documented, from a build of this branch in a scratch THINKWATCH_HOME.
  • Release assets of v0.48.0 match the table; ThinkWatch Enterprise's Cargo.toml on dev depends on tw-breaker, tw-dialect, tw-guard only; ThinkWatch Lite's pins (tw-api, tw-types, tw-yaml, tw-guard, tw-watch, tw-link, now at v0.48.0 on dev) match the crate list.
  • Every relative link resolves; both READMEs rendered through the GitHub Markdown API (tables and bold labels render).
  • Rebased onto main at v0.48.0; cargo fmt --all -- --check passes (documentation only).

🤖 Generated with Claude Code

fylorn and others added 2 commits September 25, 2026 13:38
The README still described core as "not an application you install",
showed a macOS-only badge, and called ThinkWatch Enterprise "the server
edition" -- a name that now collides with running twcore on a server.

- Badges list every platform a release ships twcore for: macOS arm64,
  Windows x64 and arm64, Linux x86_64 and aarch64.
- New Install section: the prebuilt binaries and their .sha256 files,
  the Linux install script, and building from source.
- New Server deployment section: what scripts/install.sh sets up
  (including the twcore init it runs), twcore remote enable,
  systemctl enable --now, twcore control-key and twcore upgrade, with
  links to docs/server.md and docs/config.md.
- The features list follows the code: redaction applies to every
  upstream (it used to say "before they reach a relay"), all five
  protections and their modes, failover before the first byte, format
  conversion, request history, and config reload with rollback.
- The crate table lists all sixteen crates (tw-api was missing) and says
  ThinkWatch Enterprise depends on exactly tw-dialect, tw-guard and
  tw-breaker. The "single-machine (SQLite, unix socket)" paragraph now
  describes one twcore process reached over a local channel or the
  remote control port.
- `twcore init` writes plain YAML, not "a commented config.yaml".

CONTRIBUTING.md drops "both editions" and "the server edition" in favour
of ThinkWatch Lite and ThinkWatch Enterprise, and spells Apple silicon.

The Chinese README carries the same content; its paragraphs are single
lines so no stray spaces appear between Chinese characters, and bold
labels end before the full stop so they render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The price a request records is the public table with its date, the table
scaled by a price sheet's multiplier (with the table's date), or a price
sheet's own price for that model, which carries no date
(tw-api PriceSourceView). "The source and date of the price" was true
for only two of the three.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p's core version

Crate layers. tw-api and tw-link were listed with the data plane and
control plane, below the assembly crates, although tw-config, tw-store
and tw-observe depend on tw-api. They now form their own group, the
control-plane contract, between domain logic and assembly, so that no
crate depends on a group below its own (checked against every
Cargo.toml on main, dev-dependencies included). The "two layers"
sentence becomes the grouping the website's Core page uses: the three
crates ThinkWatch Enterprise depends on, and the gateway's crates
grouped by role. The paragraph on the single-machine implementation now
names the last two groups.

Server deployment. The app connects only to a core with its
control-plane protocol version, so the server runs the core version the
app includes, which can be older than the latest release (v0.48.0 is
protocol 21; ThinkWatch Lite 2026.9.16 includes v0.47.0, protocol 20).
"The server and the app are upgraded together" next to a plain
`twcore upgrade --restart` could break the connection. The section now
leads with `twcore upgrade --version <version> --restart`, says that it
moves the server forward or back, and uses `<version>` in place of a
fixed 0.47.0.

The Chinese README carries the same changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 467d25c into main Sep 25, 2026
4 checks passed
@fylorn
fylorn deleted the docs/seo2-readme branch September 25, 2026 07:00
@fylorn fylorn mentioned this pull request Sep 25, 2026
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