Skip to content

docs: sync to v0.5.0 reality#12

Merged
vxcozy merged 1 commit into
mainfrom
chore/v0.5.0-doc-sync
Apr 11, 2026
Merged

docs: sync to v0.5.0 reality#12
vxcozy merged 1 commit into
mainfrom
chore/v0.5.0-doc-sync

Conversation

@vxcozy
Copy link
Copy Markdown
Collaborator

@vxcozy vxcozy commented Apr 11, 2026

Summary

Three-part audit of all documentation in this repo and our ch4p-docs site, applying every fix here. The companion docs-site PR is ch4p-labs/ch4p-docs#1.

What was wrong (grouped by root cause)

1. The new `ch4p gui` desktop app was undocumented

`apps/gui` shipped in v0.5.0 but never made it into the README, the docs index, or the architecture explanation.

  • `README.md` "Three modes" table → now four modes, adds the `ch4p gui` row
  • `docs/index.md` → adds a "Prefer a desktop app?" Where-to-Start blurb
  • `docs/explanation/architecture.md` → updates the six-layer ASCII diagram and adds a paragraph explaining how the GUI app sits alongside Channels and Canvas (React client + tsup server, boots the gateway in-process, port 4810)

2. Stale version strings (0.1.x era)

  • `docs/reference/cli.md:225` — `Version 0.1.0` → `0.5.0` in the example status output
  • `docs/tutorials/getting-started.md:32, :105` — `ch4p v0.1.3` → `v0.5.0` in two example outputs

3. Stale channel counts (14 → 16)

  • `docs/reference/cli.md:63` — "14 messaging channels"
  • `docs/tutorials/getting-started.md:84` — "14 messaging channels (...)" — also enumerated only 14, missing Zalo Personal, macOS Native, and the local CLI; now lists all 16
  • `docs/explanation/concurrency.md:9` — "14+"
  • `docs/explanation/security-model.md:13, :95` — "14+ messaging channels" / "14+ input surfaces" in two places

4. Internal inconsistencies

  • `README.md:194` said `91 test files, 2642 tests` but the badge directly above said `tests-2711`. Both now say `102 test files, 2711 tests` (the file count was also stale — actual is 102).
  • `CONTRIBUTING.md:7` required `Node.js ≥ 22` but `package.json` engines say `>=20.0.0`. Lowered to 20 to match.
  • `CONTRIBUTING.md:29` test command comment said `(2 449+)`; now `(2711+)`.
  • `SECURITY.md:7` Supported versions table only listed `0.1.x`. Now lists `0.5.x` as supported, marks `< 0.5` as unsupported, and adds one sentence describing the "latest minor only" policy.

Audit false positives (verified, left as-is)

  • `docs/how-to/use-routing.md:94` — `claude-sonnet-4-6` is the correct current model id (`packages/providers/src/anthropic.ts:49`), not a typo.
  • 21 of 22 `how-to/` files came back clean.
  • `docs/reference/configuration.md`, `docs/reference/interfaces.md`, `docs/reference/security.md`, `docs/explanation/memory.md`, and `CLAUDE.md` were all clean.

Test plan

  • No code changes — build/test/lint not affected
  • `grep` confirms no remaining `v0.[0-4]` or `14 channels` / `14+ messaging` strings in `docs/`, `README.md`, `SECURITY.md`, or `CONTRIBUTING.md`
  • All Markdown links verified by inspection (no path changes were made)
  • Visual review of the four added paragraphs after merge

The docs were lagging the code. Most issues fall into three groups:

1. The new ch4p gui desktop app (apps/gui, shipped in v0.5.0) was
   undocumented. Added a row to the README "Three modes" table
   (now four), a Where-to-Start blurb in docs/index.md, and a new
   "GUI app" paragraph in docs/explanation/architecture.md so the
   six-layer stack reflects all three surfaces.

2. Stale version strings from when the project was on 0.1.x:
   - docs/reference/cli.md had "Version 0.1.0" in the status output
     example.
   - docs/tutorials/getting-started.md had "ch4p v0.1.3" in two
     example outputs.

3. Stale channel counts from when there were 14 channels:
   - docs/reference/cli.md, docs/tutorials/getting-started.md, and
     both explanation docs (concurrency.md, security-model.md) all
     said "14" or "14+" -- now 16. The getting-started enumeration
     was also missing Zalo Personal, macOS Native, and the local
     CLI; it now lists all 16.

Plus a few internal-consistency fixes:

- README.md test count line said "91 test files, 2642 tests"; the
  badge directly above already said 2711. Both now say
  "102 test files, 2711 tests" (the file count was also stale).
- CONTRIBUTING.md required Node >= 22 but package.json engines say
  >= 20.0.0. Lowered to 20 to match.
- CONTRIBUTING.md test command comment said "(2 449+)"; now (2711+).
- SECURITY.md "Supported versions" table only listed 0.1.x.
  Now lists 0.5.x as supported and explicitly marks <0.5 as not
  supported, with a sentence explaining the policy (latest minor
  only).

False positives caught during the audit (left as-is):

- "claude-sonnet-4-6" in docs/how-to/use-routing.md is the correct
  current model id (see packages/providers/src/anthropic.ts:49),
  not a typo.
@vxcozy vxcozy merged commit dde0329 into main Apr 11, 2026
5 checks passed
vxcozy added a commit that referenced this pull request Apr 11, 2026
When a CLI subprocess exits before the parent finishes writing the prompt
(e.g. argument validation fails on launch), Node emits an EPIPE error event
on child.stdin. Without a listener, that error bubbles as an uncaught
exception and crashes whatever process owns the engine — Vitest in CI, the
gateway in production, or the agent loop interactively.

The exit code path that already runs after the subprocess closes is the
source of truth for failure reporting, so silently dropping EPIPE on the
stdin stream is safe. Other error codes are surfaced as a text_delta so
they don't disappear silently.

Surfaced as an uncaught error in the subprocess.test.ts run on PR #12 CI:
all 2711 tests passed but the runner exited 1.
vxcozy added a commit that referenced this pull request Apr 11, 2026
…#13)

When a CLI subprocess exits before the parent finishes writing the prompt
(e.g. argument validation fails on launch), Node emits an EPIPE error event
on child.stdin. Without a listener, that error bubbles as an uncaught
exception and crashes whatever process owns the engine — Vitest in CI, the
gateway in production, or the agent loop interactively.

The exit code path that already runs after the subprocess closes is the
source of truth for failure reporting, so silently dropping EPIPE on the
stdin stream is safe. Other error codes are surfaced as a text_delta so
they don't disappear silently.

Surfaced as an uncaught error in the subprocess.test.ts run on PR #12 CI:
all 2711 tests passed but the runner exited 1.
@vxcozy vxcozy deleted the chore/v0.5.0-doc-sync branch April 11, 2026 13: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