Commit Graph
9 Commits
Author SHA1 Message Date
benandClaude Opus 5.5 6be7896231 fix: pi OpenRouter models; resync fake-private verbatim copies
- dot_pi/agent/models.json: carry the openrouter provider block from the
  MacBook (DeepSeek V4 Pro/Flash, Kimi K3.1 Pro, Qwen4 Max). Key by env
  reference only. A models entry adds to pi's built-in openrouter catalog
  rather than replacing it.
- .tests/lab/fake-private: 1344c64's private-tier counterpart edited
  .chezmoiignore and dotsecrets, and check-verbatim.sh caught both copies
  drifting. Copied across again; all three match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRXBucM8DAwLARhA6
2026-11-18 23:01:31 -05:00
benandClaude Opus 5.5 1344c64819 feat: glm settings, wakeonlan, MacBook vault path; drop OpenAI key
- dot_claude/settings-glm.json: the model map glm() passes to claude,
  carried from ben-pc; no other machine had it, so glm() failed everywhere
- core/wakeonlan in the dotup manifest, for the private tier's wakeup_tv
- sysjournal and the vault symlink now find the MacBook's personal vault,
  which Obsidian Sync named "Personal" rather than "Obsidian-Personal";
  candidates must contain .obsidian, so a plain ~/Documents/Personal folder
  or the stale Obsidian2 can no longer win
- zshrc: remove the zsh-ai openai provider case; OPENAI_API_KEY is gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRXBucM8DAwLARhA6
2026-11-18 22:43:58 -05:00
bcherb2 28bcea9850 test: lab 30 checks that each tier has its own chezmoi state
The private init's --persistent-state (chezmoistate-private.boltdb) and its
unit assertion landed in 06b03c9. chezmoi keeps its state next to the config
file, so the tiers used to share chezmoistate.boltdb and each wrote its
config-template hash over the other's: after the private init every public
command warned "config file template has changed".

Lab 30 now asserts the private state file exists, private.toml names it, and
neither tier warns and both statuses are clean after both inits. The fake
private tier is resynced with the real template and cmp alias.
2026-11-18 03:03:24 -05:00
bcherb2 e7bc5fdaff chore: lab verbatim check defaults to $HOME, and the fake private tier is resynced
The default named a real home path in the public tier (SEC-1), and two of
the three verbatim copies had drifted from the private repo.
2026-11-18 02:45:19 -05:00
bcherb2 607745ecfd test: lab asserts GitHub reads stay https after the private tier applies 2026-08-22 22:33:32 -04:00
bcherb2 e682ed8a1d test: lab fixture mirrors the pushInsteadOf fix 2026-08-22 22:28:43 -04:00
bcherb2 4043787a58 fix: close the four known installer bugs (DU-H1, DU-H2, BUG-1, BUG-2)
- DU-H1: flags are parsed wherever they sit, so `install --unattended`
  and `--unattended install` are the same run; any unknown flag, word,
  or subcommand exits 2 to stderr before a package manager is touched.
- DU-H2: every download lands in one private mktemp -d (mode 700)
  workdir per run, is checked non-empty before sudo tar sees it, and an
  EXIT/INT/TERM trap cleans up. No fixed /tmp paths remain.
- BUG-1: ^t is now toggle-shown — it ticks only the rows the active
  filter is showing, and @needs expansion stops at the first invasive
  row, so an invasive package can never be ticked off-screen.
- BUG-2: ^t journals what it added, so a second ^t over the same shown
  set unticks exactly that set; the bind no longer clears the query.
- lab: the type verb polls fzf's reported query to a deadline instead
  of a fixed sleep; marks_settled retries within its deadline.

Suite 256/0 host, 214/0 docker (ubuntu:24.04), mutations 24/24 killed
(six new mutants re-introduce each bug and all die), lab 6/6 green.
2026-08-22 13:25:21 -04:00
bcherb2 7b28415cc6 test: refresh three picker assertions against the fixed behaviour
1ea6b49 changed what the picker does on purpose. Three assertions here were
still holding the old behaviour and failing for it; none of them were finding
a bug. The product is untouched.

- hostile 3 stacked two faults, no terminal AND no fetchable fzf, and asserted
  the fzf message. The /dev/tty probe was deliberately moved ahead of
  ensure_fzf (a run in a pipe used to print fzf's raw error having already
  overwritten the selection with the defaults preset), so with no tty the fzf
  message is now unreachable. Split in two: the no-tty arm asserts the ORDER,
  and a second arm runs the same missing fzf under a pty, via `script -e`,
  which is the only way to reach ensure_fzf's error at all now. Both arms
  still exit 2, and the fallback it names is still resolved for real.

- hostile 4's hand-edited state file was not being read: seeding the defaults
  preset is now decided by $STATE/picked ("a pick has completed") rather than
  by "$SEL is empty", so the fixture's junk was overwritten with 43 default
  rows before anything drew, and the session was testing the preset. core/tree
  is a default, so the space under test unticked it and the assertion read
  "space stopped working". The fixture now records a completed pick, as every
  machine that has pressed enter does. The CRLF row consequently reports its
  real result — silently ignored — where before it falsely read as tolerated,
  and the pass that followed the failure is no longer printed unconditionally.

- the `perm` session drove a picker that no longer draws. $SEL being readable
  and writable is now a precondition of drawing, because every bind is
  execute-silent and throws its child's status away (that was BUG-7). There is
  no session left to drive: the assertion is that nothing draws, that it exits
  2, and that the refusal names the file and a way out. Through a pty again,
  since the tty probe would otherwise answer first.

Deferred, and still failing: BUG-1/BUG-2 in `promise 3`, three assertions. ^t
over an --exact filter widens along @needs and ticks invasive rows that are
not on screen, and ^t ^t is not its own undo. There is no expected-fail
mechanism in this harness and none was invented, so the scenario exits 3 and
the header says why.

Verified: two consecutive runs of `run.sh scenarios/20-picker.sh` at exit 3
with exactly those three failures, and `scenarios/00-smoke.sh` still at 0.
2026-08-21 23:13:40 -04:00
bcherb2 a001406a33 test: container lab for the two-tier apply
A disposable ubuntu container, a fake private tier and a fake bootstrap
endpoint, so the whole documented path — chezmoi init --apply, dotup pick,
dotup private, cmp apply, dotsecrets — can run end to end without touching a
real machine or a real credential. The fake tier mirrors the real one's
structure (seven secrets and one alias) because dotsecrets is copied verbatim
and the "8 exports, not 7" assertion depends on that cardinality; its ids are
sequential and obviously synthetic.

check-verbatim.sh keeps the fake tier's copies of shipped files honest, and
snapshot.sh records file modes so a 644 where a 600 belongs is a diff.
2026-08-21 22:34:53 -04:00