Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

feat(desktop): connect the window to lodge in lodge mode, with a 30 s ping - #54

Merged
bketelsen merged 4 commits into
mainfrom
irulan/lodge-connection
Nov 5, 2026
Merged

bketelsen merged 4 commits into
mainfrom
irulan/lodge-connection

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Day shift 2026-11-05 line 1 (Brian T909a). Follow-up to the Snowfield rerun in #185 (dev-snow-bootc-lifecycle-v4cgb, FAILED: fsverity_errors on 7.2.15-1-surface).

Finding: same defect as snosi#1130

The fs-verity errors on 7.2.15-1-surface are the known btrfs defect (upstream fix kdave/linux 254e15591ee4, "btrfs: fix the fsverity callback where unexpected range is verified"):

  • Source. Upstream fs/btrfs/extent_io.c at v7.2.15 is byte-identical to v7.2.12 (already listed). It still has return fsverity_verify_folio(vi, folio); in btrfs_verify_folio(), the line the fix replaces with fsverity_verify_blocks(...).
  • Stable. Upstream ChangeLog-7.2.13, -7.2.14 and -7.2.15 have 0 btrfs commits.
  • linux-surface. patches/7.2 (BASE v7.2.15, commit b68aec8440 "Update to v7.2.15", 15 patches) touches no file under fs/ or mm/ and nothing of fsverity (only drivers, arch/x86 boot/ACPI, kernel/power, 2 include/linux headers). The kernel banner in the serial log: Linux version 7.2.15-1-surface ... #1 SMP PREEMPT_DYNAMIC Sun Nov 1 23:56:22 UTC 2026.
  • Signature. All 6 kept lines (fsverity.txt) are device=dm-0 ... level=-1 (data block). The kept serial log (boot-n) shows both errors at 8.4 s and 9.0 s while GNOME starts (gdm.service), with no btrfs checksum, I/O or device error. Same pattern as Snow on Debian 7.2.11/7.2.12 (desktop readahead, snosi#1130 updates 4 and 5). Every phase attested its expected digests; only the fs-verity judge failed.

Changes

  • known_defect_kernels gets exactly 7.2.15-1-surface in the 3 lanes (Firn judge, bootc install judge, lifecycle run.sh), with one comment line. Judge logic unchanged; matching stays exact equality.
  • Tests:
    • test_bootc_install_fsverity.py::test_judge_surface_kernel_exact_match_and_lookalikes and test_firn_install_lane.py::test_judge_surface_kernel_exact_match_and_lookalikes: 7.2.15-1-surface with errors passes with the visible fsverity_known_defect= note; 7.2.15-2-surface, 7.2.16-1-surface, 7.2.14-1-surface, 7.2.15-1-surface-extra, 7.2.15-1, 7.2.15+deb14-amd64, 7.3.1+deb14-amd64 still fail.
    • Lifecycle mock runner: new scenarios fsverity_known_surface (PASS with fsverity_known_defect=7.2.15-1-surface) and fsverity_surface_lookalike (7.2.16-1-surface, FAILED: fsverity_errors).
    • List pins updated (test_known_defect_list_is_identical_in_every_lane and the Firn pin).
  • docs/quality.md and README.md name the 5th entry and the evidence.

No risk paths (the repository has no .github/risk-paths.json).

Checks

  • pytest -q: 1614 passed. policies/check_agent_governance.py: passed.
  • Revert test (scratch worktree at 18913782, the 3 templates checked out from the merge-base 0dc7b716, tests kept; pytest tests/test_bootc_install_fsverity.py tests/test_firn_install_lane.py tests/test_snow_bootc_lifecycle.py -k "surface or known_defect_list"): 5 failed, 15 passed. These fail: both test_judge_surface_kernel_exact_match_and_lookalikes[7.2.15-1-surface-True], test_runner_five_boots_and_post_init_failures_are_offline[fsverity_known_surface], and the 2 list pins. The look-alike cases pass both ways.

Cross-review

  • Reviewer openai/gpt-6.1-sol, coder github-copilot/mai-code-2-flash (docs wording by Claude).
  • Review of 18913782 (base 880eecfe, merge-base 0dc7b716, all 8 files): Ready, Blocking: none, no findings.

Next

A Snowfield dev rerun (trigger=dev, no publish, no tag move) from this branch, once the lab-dev lease is free; the result goes on snosi#1130 and here.

Refs frostyard/snosi#1130

… ping

In lodge mode (app.json names lodge), the shell's bridge stops this
computer's readd and waits for its data lock, then opens
wss://LODGE/app/read/api with lodge's Origin, one text frame per line,
and sends a JSON-RPC notification every 30 s so lodge keeps the
session. It never falls back to the local readd.

remote.rs reads app.json and the XDG paths as internal/config does, from
2 tables of cases the Go and Rust tests share. Plan 0002, Phase 6 part 1.
…pt, refuse duplicate names

The cross-review of 4552dc9 found 4 blocking points:

- a WebSocket write could not be interrupted by the stop signal, so a
  replaced connection could stay open under backpressure;
- a connection attempt that finished after forget, or after a newer
  attempt, was kept for the window;
- app.json with a duplicate name outside lodge parsed in Rust and failed
  in Go's encoding/json/v2;
- no lodge-side test covered the line and WebSocket size bounds.

Each fix has a test that fails without it, and
.memory/corrections.jsonl records the lessons. The local reader and
writer now use the helpers the local tests cover.
Re-review 1 of #54 found that the duplicate-name visitor read every
ignored number as f64, so a valid file with 1e1000 in an unknown member
failed in Rust and parsed in Go. A byte scan over the parsed document now
checks member names in every object and skips values, as Go's
encoding/json/v2 does. The shared table gains large-number, escaped-name,
null and string-document cases.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 5, 2026
@bketelsen
bketelsen merged commit 69cded2 into main Nov 5, 2026
8 checks passed
@bketelsen
bketelsen deleted the irulan/lodge-connection branch November 5, 2026 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants