* 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>
* Stop retrying a shared data process that cannot start, and log why
When the agent database host did not report ready, or exited first, every
waiting call got "Try the call again" and the next call started a new host.
Where the start keeps failing, agents retried without end, and the log had
no reason for the failure.
Keep the host's exit code and the end of its stderr, and log them with each
failed start. After a second failed start in a row, calls fail at once with a
message that tells the agent not to retry, until a delay ends (30 s, doubling
to 5 min). A host that reports ready clears the count. One failed start keeps
today's behavior.
Fixes#10463
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the stderr tail inside the length that the logger keeps
The logger keeps the first 2,000 characters of one value. With its prefix, a
2,000-character tail lost its newest text, which is the end of the error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Let agents create SQLite triggers in the shared database
execute_data rejected each CREATE TRIGGER with "Send one SQL statement
per call", because the statement check read any word after a ";" as a
second statement. A trigger body must have a ";" before its END.
The check now finds the end of a statement with the state machine of
SQLite's own sqlite3_complete (public domain), so "; END" inside
CREATE [TEMP] TRIGGER does not end the statement. A real second
statement after the trigger is still refused.
The host authorizer now applies the table ownership rule of DROP and
ALTER to CREATE/DROP [TEMP] TRIGGER. An agent cannot add a trigger to
a table that another agent created, or to the owner record, whose own
writes run with provisioning set.
Fixes#9540
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep triggers out of the owner record and refuse TEMP triggers
A trigger that a foreign-key cascade fires inside OpenBot's own
DROP TABLE ran with provisioning set, so it could write the owner
record and take another agent's table. Writes to the owner record are
now trusted only when no trigger or view is between them and
OpenBot's own statement.
CREATE TEMP TRIGGER is refused: the trigger would live only on the one
shared connection and stop with no notice when it closes.
The statement scanner names all tokens and reads characters above
ASCII as identifier characters, as SQLite does.
The agent database host E2E now covers triggers through the real
AgentTables and host: the issue's trigger, a statement after a
trigger, another agent's table, the owner record, TEMP triggers, and
the foreign-key cascade.
Refs #9540
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the execute_data description in its byte budget
The longer trigger sentence in the execute_data description went 18
bytes over the agent context budget. Use the original text. The
refusal text already tells an agent the trigger rule.
Refs #9540
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Do not count the agent database host start against the first statement
The supervisor sent the first statement as soon as it started the host
process, so process start and module load counted in that statement's
time and in its 5 s deadline. On slow Windows computers this ended the
first statement after app start with the "ran longer than allowed"
message, and it set the db_request_ms p95 and max values.
- The host sends a ready message after it loads. The supervisor sends no
statement before it, so the statement deadline and the reported time
start at the send.
- A host start has its own 15 s deadline. A host that does not report
ready in time, or exits first, fails the waiting requests with a start
message and is ended. It is not started again in a loop.
- After the first window loads, OpenBot starts the host early when the
shared database file exists.
- Add the agent-database-host-start E2E test to the provider fakes job.
Host start time is not reported to analytics: that needs a schema change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Harden the agent database host start review items
- Drop a prewarm start that throws as a failure, not as a defect.
- Give the host start E2E test wider deadlines for a loaded CI runner.
- Name the changelog file after the branch.
- Say in the CI job comment that it runs the host start test.
- Make the start deadline comment exact about a request that waited.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>