* Remove code comments and add the no-comments rule
Remove the comments from first-party code and configuration files:
TS/JS, JSX, CSS, SQL migrations, Swift, Kotlin, Gradle, shell,
Docker, systemd, Nix, YAML, TOML, JSONC and GritQL.
Keep only what a tool reads: license headers, shebangs, compiler
and lint directives, JSDoc types in plain .js files, generated file
headers, GritQL scope lines, the install-server.sh help text and the
openbot-boat-pre-stop marker. Vendored code, fixtures and released
schemas keep their comments.
Add the rule to AGENTS.md, and change the docs that asked for
comments. Add two i18n keys that only comments named to
RELEASED_SOURCE_KEYS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep comments that are data in strings
The benchmark task files in opencode-free-models-bench.ts tell the
model what each function must do. The sample file and HTML page in
the two stories are display content. Put their comments back.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep released migrations and mobile native inputs unchanged
check:migrations compares each released migration with v0.73.0 byte
for byte, so restore src/backend/migrations. A change to a native
build input of apps/mobile makes a new runtime version, so restore
those files and the extra fingerprint sources.
List these files and the comment markers that a tool reads in
AGENTS.md. Remove the last requests for comments in
src/renderer/AGENTS.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Remove unit tests and keep E2E and protected tests
Delete 591 vitest unit test files and their test-only harnesses. Keep
E2E and smoke scripts under scripts/, and keep vitest files only for
migrations, schema parity, the renderer-to-main trust boundary, secret
redaction, and check-rule fixtures.
Remove the test runners that have no tests now (site-router, remote/api,
contracts, brand, auth-api client), their CI jobs, and the transfer
budget report. Remove code and dependencies that only the deleted tests
used.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Set the E2E-only test policy and remove references to deleted tests
AGENTS.md now permits vitest files only for migrations, the trust
boundary, secret redaction and check-rule fixtures. All other behaviour
gets an E2E script under scripts/.
Remove references to deleted tests, harnesses and commands from docs,
AGENTS.md files and skills. The release-upgrade-safety gates that ran a
deleted test now use a manual check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep migration tests and fix CI checks after the test removal
Move the migration cases out of the deleted mixed test files into
three migration test files: the v15 agent usage upgrade and rollback,
the read-state baseline from schema v2, and the remote control plane
and permanent invitation D1 migrations.
Keep error.agent.noStartingModel for the text that older hosts send,
and let i18n-check accept it. Lower two type baseline entries. Correct
comments and docs that named removed tests or test commands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove the empty test patterns from the knip configuration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add E2E checks for Signal secrets, IPC input decoding and analytics redaction
- scripts/signal-security-e2e.ts starts the real Signal service with
throwaway secrets. It checks the Telegram secret header, the Slack
signature, signed account events, remote and route tickets, webhook
headers, and that no frame or log line holds the bot token. CI runs
it in the new Signal E2E job.
- scripts/ipc-input-e2e.ts sends malformed requests from a running dev
app and checks that the main process decoders refuse them.
- scripts/analytics-redaction-e2e.ts checks that no captured analytics
or failure report request holds a seeded secret. For this,
OPENBOT_ANALYTICS_CAPTURE_URL sends analytics to a loopback capture
server. Only an unpackaged build reads it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Check the renderer analytics path and path traversal in the E2E scripts
The analytics E2E now loads the window again and waits for the renderer event, so the renderer send path cannot pass with no request. The IPC input E2E now sends an attachment id and a shared file path that try to leave their folder.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove an unused optional parameter from the read-state migration test
The parameter gave one exactOptionalPropertyTypes error, which the type ratchet refuses for a new file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>