Skip to content

fix(server): stop syncing the SQLite WAL on every commit - #1722

Merged
donjor merged 1 commit into
hyprwsfrom
t3/sqlite-synchronous-normal
Oct 12, 2026
Merged

donjor merged 1 commit into
hyprwsfrom
t3/sqlite-synchronous-normal

Conversation

@donjor-agent

@donjor-agent donjor-agent Bot commented Oct 12, 2026

Copy link
Copy Markdown

🤖 claude/anthropic claude-opus-5-5 (high)

Problem

SQLite runs at its default synchronous = FULL, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On ugrindtime, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as pingdotgg/t3code#15707, with no fix pull request yet.

Change

  • Setting: PRAGMA synchronous = NORMAL
  • New file: SqliteSynchronous.fork.ts
  • Hook: one line in Sqlite.ts
  • WAL sync: at checkpoints, not per commit

Durability

  • Power loss: can drop the last commits
  • Consistency: the database stays intact
  • App crash: loses nothing

Live measurements

  • Commits: about 7.7 per second
  • Syncs per commit: 1 before, 0 after
  • Checkpoints: about 1 every 6 s

Not changed

A larger wal_autocheckpoint saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

Verification

  • New test: WAL mode with synchronous 1
  • Mutation check: fails with 2 without the hook
  • Persistence tests: 4 of 4 pass
  • Typecheck: apps/server, exit 0
  • Fork CI: vp run fork:ci, exit 0
  • Not checked: a live server on this build

Claude Code, claude-opus-5-5.

Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
@rsi-software-agent rsi-software-agent Bot added the size:S 10-29 effective changed lines (test files excluded in mixed PRs). label Oct 12, 2026
@donjor
donjor merged commit 080a225 into hyprws Oct 12, 2026
@donjor
donjor deleted the t3/sqlite-synchronous-normal branch October 12, 2026 06:49
donjor added a commit that referenced this pull request Oct 13, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 13, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 15, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 15, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 16, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 16, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 16, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 16, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 18, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 18, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 19, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 20, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 20, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 21, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 22, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 22, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 22, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 22, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 23, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 23, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 24, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 24, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 27, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
donjor added a commit that referenced this pull request Oct 27, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
rsi-software-agent Bot pushed a commit that referenced this pull request Oct 27, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
rsi-software-agent Bot pushed a commit that referenced this pull request Oct 27, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
rsi-software-agent Bot pushed a commit that referenced this pull request Oct 28, 2026
## Problem

SQLite runs at its default `synchronous = FULL`, so every commit waits for an fsync.
The one connection commits on the main thread, so a slow disk freezes the whole server.
On `ugrindtime`, disk writes waited about 224 ms each, and clients dropped for 2 minutes.

Upstream tracks the same stall as `pingdotgg#15707`, with no fix pull request yet.

## Change

- **Setting:** `PRAGMA synchronous = NORMAL`
- **New file:** `SqliteSynchronous.fork.ts`
- **Hook:** one line in `Sqlite.ts`
- **WAL sync:** at checkpoints, not per commit

### Durability

- **Power loss:** can drop the last commits
- **Consistency:** the database stays intact
- **App crash:** loses nothing

### Live measurements

- **Commits:** about 7.7 per second
- **Syncs per commit:** 1 before, 0 after
- **Checkpoints:** about 1 every 6 s

### Not changed

A larger `wal_autocheckpoint` saved only 11% of bytes in a 3-minute replay of live WAL pages.
It was left out.

## Scope and approval

Refs #1720.
The maintainer chose this fix after the stall analysis.

## Verification

- **New test:** WAL mode with `synchronous` 1
- **Mutation check:** fails with 2 without the hook
- **Persistence tests:** 4 of 4 pass
- **Typecheck:** `apps/server`, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a live server on this build

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: upstream-fixes
Fork-Tier: bugfix
Fork-Upstreamable: yes
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
rsi-software-agent Bot pushed a commit that referenced this pull request Oct 28, 2026
…ses (#1724)

## Problem

No fork release has published since 2026-10-11 22:26 UTC.
Upstream re-pointed its moving `android-nightly` tag, and plain `git fetch --tags` refuses to overwrite a tag:

```text
! [rejected] android-nightly -> android-nightly  (would clobber existing tag)
```

That fetch fails in release preflight and in the upstream sync mirror, so neither has run since.
#1721, #1722, and #1723 have no build.

## Change

- **Release preflight:** `git fetch --tags --force`
- **Sync mirror fetch:** `git fetch --tags --force`
- **Sync mirror push:** `push --tags --force`
- **Local `fork:sync`:** same fetch flag
- **Doc:** `fork-sync.md` fetch row

Fork tags never share a name with an upstream tag, so forcing only moves upstream-owned tags.
The `main` push stays unforced.

## Scope and approval

The maintainer asked to land #1723 and stage its nightly; this unblocks that release.

## Verification

- **Repro:** plain fetch rejected, exit 1
- **Fix:** forced fetch updates the tag, exit 0
- **Fork CI:** `vp run fork:ci`, exit 0
- **Not checked:** a release run on this head

Claude Code, claude-opus-5-5.

## Fork trailers

Fork-Domain: fork-meta
Fork-Tier: bugfix
Fork-Upstreamable: no
Co-authored-by: donjor <38745786+donjor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 effective changed lines (test files excluded in mixed PRs).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant