Skip to content

feat(lifecycle): report-only first-login probe mode (T843 t2) - #182

Merged
bketelsen merged 5 commits into
mainfrom
feat/first-login-probe
Nov 5, 2026
Merged

bketelsen merged 5 commits into
mainfrom
feat/first-login-probe

Conversation

@frostyard-machines

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

Copy link
Copy Markdown
Contributor

Plan T843 task t2 (approved, rev 234c6d8): a first-login check in the bootc lifecycle lane.

What

  • New optional manifest key first_login_probe (session_wait 60–900, app_wait 30–600). With it the lane installs N and boots it as login-1 and login-2 (Floe: login-1 only). No installed-n attestation, no N+1 stage (version_distinct, as for sysext_probe).
  • login-1 injects a test-only setup unit (login-setup.sh, before the display manager) that creates the snowqa account and writes the autologin config into the installed /etc (GDM daemon.conf or /etc/sddm.conf.d/zz-snow-qa-autologin.conf). Nothing goes into an image, so snosi test/gdm-autologin-scope-test.sh still holds.
  • The guest probe (qa.py login) waits for the user's graphical session and records which first-login app started: first-setup (a process seen in 2 consecutive polls) or the chairlift first run (first-run: window presented in the user journal, or its process). In login-1 it marks a started app done (chairlift-first-run --mark-done, or first-setup's real complete-setup). login-2 shows whether it runs again. Floe records the first-run autostart entries (expected none).
  • The host validates every SNOW_LOGIN_V1 record (identity, nonce, boot id, booted digest = N) and writes one summary: first-setup-once, chairlift-once, none, repeated-*, headless-no-entry, …, in first-login.txt, checks.txt, the first-login output and the reason.
  • Report-only (ADR-0016): the summary never fails the run; unproven-* (no display manager, no autologin, no session) is BLOCKED (ADR-0003). The five-boot and sysext paths are unchanged; no lane gate changes. t3 promotes it.

Evidence

  • Tests: .venv/bin/python -m pytest -q tests/ → 1477 passed (138 new in tests/test_first_login_probe.py).
  • Dev runs (lab-dev lease T843, trigger=dev, no publish, no tag move), today's images:
    • Snow dev-snow-bootc-lifecycle-n7f7s: PASS: verified_first_login_probe;first_login=first-setup-once (login-1 gdm/wayland started first-setup, complete-setup rc 0; login-2 none)
    • Snowfield dev-snow-bootc-lifecycle-72cjn: PASS …first_login=first-setup-once
    • Sundog dev-snow-bootc-lifecycle-cb9qj: PASS …first_login=none (sddm/wayland, both boots)
    • Floe dev-snow-bootc-lifecycle-w5n6r: PASS …first_login=headless-no-entry
    • First runs at 46a0565 found FAILED: unit_size (guest unit over the SMBIOS bound, every lane mode): fixed in 56d2422 with a guard test. Run record: docs(plans): first-login probe dev runs on today's images (T843 t2) #183.
  • Revert test: a scratch worktree at the head with argo/ restored to the base 9d290ad, pytest tests/test_first_login_probe.py → 138 failed, 15 passed (e.g. test_login_phase_rejects_*: assert 'qa_failed:usage' == 'qa_failed:record_session'; test_first_login_probe_normalizes_for_every_product: GateError: manifest_fields). Worktree removed.
  • Cross-review: coder deepseek/deepseek-flash, reviewer openai/gpt-6.1-sol. Initial review (2 batches, base 9d290ad, head 46a0565): 4 blockers (chairlift evidence needs the journal line, full app window, host session validation, SDDM /etc/sddm.conf precedence), fixed in fae11e8. Re-review 1 (56d2422): 1 blocker (whitespace around =), fixed in 10f6c90. Re-review 2: 1 blocker (residual Session/Relogin), fixed in 25dab84. Re-review 3 at 25dab84: Ready, Blocking: none. Each blocker has a guard test and a line in .memory/corrections.jsonl.

No .github/risk-paths.json in this repository.

The optional manifest key first_login_probe makes the bootc lifecycle lane
install N and boot it once (Floe) or twice with a test-only autologin
configuration written into the installed /etc by a login-1 setup unit. The
guest records which first-login app started (first-setup or the chairlift
first run), marks it done in login-1, and the host reports one summary line.
The five-boot and sysext paths are unchanged; the mode never gates on which
app started (ADR-0016).
@frostyard-machines
frostyard-machines marked this pull request as ready for review November 4, 2026 22:38
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 4, 2026
@bketelsen
bketelsen merged commit 900981c into main Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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