2 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 d469218621 Unblock loki main: refresh the fleet brief snapshot; plain-shell made hermetic (#1773)
* chore(fleet-brief): refresh the fallback snapshot; kit plan uses the scoped package names

fleet-brief-snapshot-fresh fails every verify from 2026-11-28: the snapshot
reached its 45-day limit. Regenerated with `pnpm run generate:fleet-brief
--from` a copy of bitbaum/fleet main (b91715cc7, 2026-11-26) read from the
Gitea mirror, because raw.githubusercontent.com answers 404 for bitbaum/fleet.

The fresh register exposes drift the old snapshot hid:
- listkit, threadkit, limitkit, ai-forms and bip-kit are now published as
  @bitbaum/*. The kit plan matched none of them, so a bakery brief no longer
  planned a list. Config keys and test expectations now use the scoped names.
- 18 packages instead of 16: the rendered brief is 4 570 chars. The test's
  bound moves from 4 500 to 4 800, still below the renderer's 5 000 cut.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

* test(plain-shell): hermetic — an empty home and the default shell switches

plain-shell failed on the laptop verify runner for every PR from 2026-11-26
while passing elsewhere. The shell is a bash login shell, so it reads the
host user's ~/.bash_profile, and the runner reads LOKI_SHELL / LOKI_EXECUTOR
from the environment. Reproduced: on main, LOKI_SHELL=off fails it with the
'sealed builds only' refusal, and a ~/.bash_profile that exits fails the
echo round-trip. With this change both pass. waitFor also allows 20 s on a
loaded runner (it returns as soon as the text arrives).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz
(cherry picked from commit b7ab9487ba)

* fix(widget-advise): a site on a package's bare name still reads what it does

The kit plan now keys on @bitbaum/ai-forms (and the other four renamed
packages), but a site installed before the rename depends on "ai-forms".
build-facts looked the description up by the exact name, so it lost it and
counted a planned package as missing. kitKey() maps the bare name to its key.
Found by the laptop verify of this PR (widget-advise).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-28 20:10:19 +01:00
CatoandClaude Sonnet 5.5 59cd3e7b10 feat(terminal): a plain shell on the builder, operator-only behind the PIN (#1449)
* feat(terminal): a plain shell on the builder, operator-only behind the PIN

Sessions -> Plain shell opens a real bash login shell in a PTY the builder
owns: no project, no agent, no inject wrapper. It is one more kind of session
on the existing transport (open_shell command, peek-stream, the rawkey lane,
tab-memory), not a second terminal.

Security: operator account only (browser session, never a bearer token); a PIN
must be set and the shell's own unlock (10 min idle, 60 max) entered; opens
rate-limited and capped at 3 per builder; no queued command except
open/close/peek may name a shell tab (queue, validator and injectPty); tenant
and sealed builders never offer one; shell environment carries no engine keys.
Every open/close/denied/unlock is on an append-only audit trail with no
content. Threat model: docs/architecture/plain-shell.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* test(terminal): keep the repo's gates true for the plain shell

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* docs(plain-shell): name where provision-service.py lives

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-27 20:14:13 +01:00