Skip to content

main-broken: id-0.1.0 fails to compile — mismatched closing delimiter in pkgs/id/crates/id-worlds/src/world_ssh.rs (blocks amd toplevel) #10758

Closed

Description

@dezren39

main-broken: id-0.1.0 fails to compile — mismatched closing delimiter in pkgs/id/crates/id-worlds/src/world_ssh.rs

Found by the 2026-11-16 nixpkgs-update run (branch chore/nixpkgs-update-2026-11-16) while acceptance-building the amd toplevel. This failure is pre-existing on main and is not caused by the nixpkgs update — proof below.

Failing step

nix build .#nixosConfigurations.amd.config.system.build.toplevel fails at exactly one root derivation:

error: Cannot build '/nix/store/0a18cs3qqfn3v83iqc306gsslcxyhcz0-id-0.1.0.drv'.
       Reason: builder failed with exit code 101.
       >    Compiling id-worlds v0.1.0 (/build/id/crates/id-worlds)
       > error: mismatched closing delimiter: `}`
       >     --> crates/id-worlds/src/world_ssh.rs:3813:24
       >      |
       > 3760 |     fn terminal_shell_frames_conform_to_the_shell_contract() {
       >      |                                                              - closing delimiter possibly meant for this
       > 3813 |         sent.push(check(
       >      |                        ^ unclosed delimiter
       > 3858 |     }
       >      |     ^ mismatched closing delimiter
       > error: could not compile `id-worlds` (lib) due to 1 previous error

In the source, the sent.push(check(&serde_json::json!({…}).to_string(), call in terminal_shell_frames_conform_to_the_shell_contract is never closed (the closing )); is missing before the following let more_documents = … statement).

Dependents that consequently cannot build: unit-id-primary.service → system-units → etc → the amd toplevel.

Proof it predates / is independent of the nixpkgs update

  • The update branch changes only flake.lock (nixpkgs-25 1d060086d60c → d5cc68339997). git diff origin/main -- pkgs/id/crates/id-worlds/src/world_ssh.rs is empty, and git show origin/main:pkgs/id/crates/id-worlds/src/world_ssh.rs shows the identical unclosed call at line 3813.
  • nix-store -q --requisites of the failing id-0.1.0 derivation contains zero references to the updated nixpkgs-25 source and none of its packages (misfortune / activitywatch / regex-pcre) — the id package builds from the main pkgs set, which the update does not move.
  • Last commits touching the file on main: 2f78741 / 2f76243 (id(session): implement the documents/document frame pair (D1-040, from #535) #3762, id session documents frames).

What was tried

  • Full amd toplevel build on the laptop from the update branch: this was the only root builder failure (all other Cannot build entries are its dependents).
  • The nixpkgs-25 segment itself (regex-pcre / misfortune / activitywatch at d5cc68339997) is being realised solo and store-validity-checked separately; results are reported on the update PR.

Impact

Any amd toplevel build from current main fails until this delimiter is fixed, including the nixpkgs-update acceptance build. The 2026-11-16 nixpkgs update PR is therefore opened unmerged under the #2696 exception (update's own breakage: none; remaining red: this issue only), to be merged once id builds on main again.

Fix is presumably the missing )); — left to the id lanes, who are actively committing in this file, rather than folded into the deps-update PR.

Activity

  1. developing-today commented on Nov 16, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Run update (2026-11-16 nixpkgs-update run, branch chore/nixpkgs-update-2026-11-16 @ 30a86cc, verified on GitHub):

    • Segment solo realise (regex-pcre / misfortune / activitywatch at nixpkgs-25 d5cc68339997) was launched on the laptop as systemd unit segment-realise-20261116 at 06:47 CST and was progressing (log 68 KB at 06:58 CST, fetching the activitywatch closure from cache.nixos.org).
    • At ~07:03 CST the laptop broker/tunnel went down fleet-wide (laptop-agent HTTP 503 busy, later 502 proxy-closed; another lane parked task 3275 for the same outage) and had not recovered after ~2 h of retries. The unit runs laptop-side and is unaffected, but its result could not be read back this run.
    • Therefore the update PR has not been opened yet: the mcpx: conformance TestMessagesClient fails in the Nix build — toplevel amd build is red on main #2696-exception path requires the updated segment to be verified realised + store-valid first, and that verification is still outstanding. Once the tunnel recovers, the next run (or any lane) should: check systemctl --user is-active segment-realise-20261116 + the store validity of the three segment outputs, then open the PR unmerged referencing this issue, and remove the laptop worktree ~/git/fleet/nixpkgs-update-2026-11-16 after the PR is up (branch stays pushed either way).
    • The laptop worktree was intentionally left in place (cleanup needs the tunnel); the branch is fully pushed, so nothing is lost if the worktree is cleaned by another lane.
  3. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    Verified fixed on current origin/main (2f727c9): the unclosed call the issue cites at world_ssh.rs:3813 now closes correctly ()); present, confirmed via git show origin/main), cargo check -p id-worlds --tests succeeds, and the exact test in the affected function passes: world_ssh::tests::terminal_shell_frames_conform_to_the_shell_contract ok (with --features ssh). No code change needed; closing.

  4. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: pickup progress — pin rebased onto current main and pushed; segment verification still outstanding
    task: 17502
    lane: any-c
    worker: repo-worker-code

    Resumed the 2026-11-16 nixpkgs-update under queue task 17502 (the darwin-nix#1913 left-on-the-ground checker). Progress this shift (2026-11-16 ~14:30–16:00Z):

    • The original segment realise wedged: unit segment-realise-20261116's client (PID 841125) was alive 1h43m with 14s CPU, no nixbld builders existed, and its log was static from 07:59 CST — the stale-client wedge from the skill's taxonomy. Stopped the unit and relaunched as segment-realise-20261116b against the same three drvs. Unit b is still marked active with a static log (2,750 bytes since 08:29 CST) and the outputs are not yet store-valid, so treat it as wedged-or-crawling too: whoever picks this up should double-sample builder CPU before trusting it, and relaunch if wedged (completed paths persist).
    • Main moved underneath the pin: PR chore(deps): nixpkgs update 2026-11-13 #9548 (the 2026-11-13 update) merged at 13:51Z, moving main's nixpkgs-25 to d4f25a3e5620 (Hydra eval 1831300). The 2026-11-16 pin d5cc68339997 (eval 1831373) is newer, not superseded — but the original branch is based on the pre-chore(deps): nixpkgs update 2026-11-13 #9548 lock, so I re-applied the pin onto current main in a fresh worktree: branch chore/nixpkgs-update-2026-11-16b @ 97de6c851a (verified on GitHub), worktree ~/git/fleet/nixpkgs-update-2026-11-16b. The lock diff is only the nixpkgs-25 node (3 lines), same shape as chore(deps): nixpkgs update 2026-11-13 #9548.
    • The segment drvs are identical on the new base: the new worktree's toplevel eval passes (drv v2ab3qd8kmvn9ywlpcw28dy59qpbp553), and its graph contains the same three segment drvs the realise is verifying — 0h1xzq65…-regex-pcre-0.95.0.1.drv, 2gziwy2d…-misfortune-0.1.2.1.drv, vbkcslag…-activitywatch-0.13.2.drv — so the in-flight verification carries over to the rebased branch.

    Remaining, in order: (1) finish the segment realise and confirm nix-store -q --hash validity on every output of the three drvs; (2) open the PR from chore/nixpkgs-update-2026-11-16b UNMERGED under the #2696 exception (this issue — the id-worlds compile break — still blocks the amd toplevel build on main, pre-existing and unrelated to the segment); (3) once this issue is fixed, run the full amd toplevel build on the PR branch and merge; (4) record the merged proof on dezren39/darwin-nix#1913 and close it — that closes queue task 17502, which I have released back to queued with this state.

  5. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: correction + updated pickup state
    task: 17502
    lane: any-c
    worker: repo-worker-code

    Correction to my earlier note on this issue: the segment realise is not client-wedged. A solo foreground nix-store --realise of the regex-pcre drv (230s window) showed the daemon actively working the whole time — it is bottlenecked on substituting /nix/store/8zbgqd6n5b16d4vidizm3idc7qzz3nar-ghc-9.10.3 from cache.nixos.org at very low throughput over the laptop's degraded network path (the same degradation behind today's laptop-agent 502/503 outages). All three attempts (units a, b, and the solo run) stalled on that same path copy; the clients' near-zero CPU is expected for a network-bound substitution, which is why the wedge heuristic misfired. My apologies for the noise in the earlier diagnosis.

    Current state (2026-11-16 ~15:45Z): relaunched the three-drv realise as unit segment-realise-20261116c (log /tmp/segment-realise-20261116c.log); it will keep grinding after this shift. Everything else in the earlier note stands: branch chore/nixpkgs-update-2026-11-16b @ 97de6c851a is pushed with the pin re-applied on current main, the segment drvs are identical in its graph, and the remaining steps are (1) this realise completes + hash-validity confirmed, (2) PR opens unmerged under the #2696 exception while this issue blocks the toplevel, (3) toplevel build + merge after this issue is fixed, (4) proof recorded on dezren39/darwin-nix#1913. Task 17502 released to queued again with this state.

  6. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    state: segment verified; update PR #10817 opened unmerged under the pre-existing-failure exception
    task: 17502
    lane: any-c
    worker: repo-worker-code

    Update (2026-11-16 ~15:40Z): unit segment-realise-20261116c completed, and all outputs of the three segment drvs are store-valid (nix-store -q --hash on every output): regex-pcre-0.95.0.1, misfortune-0.1.2.1 (+data/+doc), activitywatch-0.13.2. The bottleneck was the ghc-9.10.3 cache substitution over the degraded laptop network, as corrected earlier.

    The nixpkgs update PR is now open: #10817 from chore/nixpkgs-update-2026-11-16b, opened UNMERGED per the skill's pre-existing-failure exception — the amd toplevel build remains blocked by this issue (#10758, id-worlds delimiter), which is unrelated to the update. Remaining: fix #10758 on main → run the full amd toplevel build on the PR branch → merge → record merged proof on dezren39/darwin-nix#1913 and close it → complete queue task 17502 (released to queued with this state). The laptop worktree ~/git/fleet/nixpkgs-update-2026-11-16b is left in place for the merge step; the original run's worktree ~/git/fleet/nixpkgs-update-2026-11-16 can be cleaned up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions