i3 serves node-display-session.open (design 08 sign-in-page, issue 935) #754

Merged
mesh-tools merged 5 commits from feat/sign-in-page-i3 into main 2026-11-25 00:20:11 +00:00
5 Commits
Author SHA1 Message Date
jochen 9a3149df88 i3: test the opener's no-kill run with pipes, never a real sleep
Code review round 2 (C-5 follow-up). openerRun's core is now runWithoutKilling(ctx,
*exec.Cmd), callable directly by a test with a command of its own. The test's child
blocks reading its stdin (a pipe held open past the bound); after confirming
TimedOut, the test closes the pipe to unblock it, then waits on the child's own
end (a byte written to an extra file just before it exits, read with a plain
blocking read) instead of sleeping and polling for a marker file. A kill at the
bound now leaves that read empty, which the test checked by reintroducing the old
signal and watching it fail.

Builds: design 08 sign-in-page §3, §29
2026-11-25 01:13:18 +01:00
jochen a94f9f14aa i3: open's own non-killing opener run, the generated answer type, a hand-act on every call
Code review round 1 (C-5, C-6, note (b)):
- open's opener now runs through its own openerRun, which stops waiting at its bound
  without sending any signal, instead of internal/desktop's Exec, which kills the
  command's process group at its deadline; a browser started under the account's
  service manager is never torn down by open's own 10 s bound (DMC-8).
- open imports mesh-contracts' generated nodedisplaysession package at the zero
  version and answers with its OpenAnswer type and Started constants; main.go names
  the tool from its Seat and VerbOpen constants.
- Every call to open, refused or not, writes one act to the log of acts done by hand
  (DQ-7 says "each call"), not only one that reaches the opener.

Builds: design 08 sign-in-page §3, §29
2026-11-24 21:53:45 +01:00
jochen c12d0027e8 retired-words: add captive portal (the glossary's sign-in page, issue 935)
Builds: design 08 sign-in-page §32
2026-11-24 21:17:51 +01:00
jochen 2b0b234db2 i3: README for open (issue 935)
Documents the verb, its refusals, the percent-encoding and that each call that is
acted on is written to the log of acts done by hand; names the package xdg-utils and
that i3 hears nothing of the uplink.

Builds: design 08 sign-in-page §31
2026-11-24 21:16:57 +01:00
jochen f7b918faea i3: serve node-display-session.open, percent-encoded and recorded as an act (issue 935)
node-display-session gains the verb open: an http or https address opened in the
session's default browser through xdg-mime and systemd-run --user, never i3's IPC
(which hands a shell a command line). The address is percent-encoded per RFC 3986's
unreserved set plus the separators a URL needs, as one argument; a refusal names the
reason (scheme, host, length, session, default program, the opener's own failure).
Each call that is acted on is written to the log of acts done by hand
(seat:mesh-hand-acts.hand-act), with its caller and why.

Builds: design 08 sign-in-page §3, §29
2026-11-24 21:16:22 +01:00