Files
coredesktop/PLAN.md
T
davidandClaude Opus 5.5 456bf09655
shellcheck / shellcheck (push) Successful in 22s
PLAN.md: siblings' configure items in lowercase, and keep siblings off CoreDesktop's commands
As MiniServer's bb8729d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 14:56:38 -07:00

111 lines
6.4 KiB
Markdown

# Plan
What's left to do in CoreDesktop. Bigger pieces of work keep their full plan
in a project skill under `.claude/skills/`; this file lists their open items
and links to them. Small tasks that don't need a skill go under "Other".
Delete an item once it's done; git history keeps the record.
Pop!_OS support isn't merged into `configure`: decided on 2026-11-28,
[connector-popos](https://gitea.federated.computer/Federated_Computer/connector-popos)
stays a separate project that keeps roughly in step with `configure`. Its
own PLAN.md records which CoreDesktop commit it last compared with.
## Tailnet discovery
Full plan: `.claude/skills/coredesktop-tailnet-discovery/SKILL.md`. Built in
16e5a9c. Still to check against a real headscale:
- [ ] MagicDNS names (`box.tail.example`) resolve; if not, use the peer's
`TailscaleIPs` address and show `HostName`
- [ ] headscale fills in `Online`; if not, drop `select(.Online)` and let the
probes time out offline peers
- [ ] An agent run through `sandbox/agent` reaches `box.tail.example:11434`
once it's in `allowedDomains`; if not, allow the `100.x` address
- [ ] How long `find_storage` takes with ten or more peers
## Security checks
Full plan: `.claude/skills/coredesktop-security-checks/SKILL.md`. All six
steps are done. Follow-ups:
- [ ] Try Caddy's `request_buffers` for slow report uploads
- [ ] Check how Gitea serves attached `.log` files
- [ ] Review the daily report limit (ask before changing it)
- [ ] Test the `tailscale0` allow rule (needs a Tailscale login)
- [ ] On a real machine, check which ports WinBoat's Windows container
publishes, and on which addresses
- Ongoing: keep `ROOT_FILES` and `PAM_FILES` in
`smoketest/scenarios/60-security.sh` up to date when CoreDesktop installs
something new that root runs
## Other
- [ ] Let a sibling add its own item to `configure`, as MiniServer does
since its commits 0d4582a and bb8729d (copy from there: `configure`,
`tests/configure.bats`, and the `configure.sh` section of
`skills/sibling-project-format.md`). A sibling with a `configure.sh`
at the top of its repo, in the same format as `configure.d`'s items,
gets an item named after the sibling, in lowercase. Steps:
1. `configure`: add `SIBLINGS="$HOME/.local/share/siblings"`. Have
`item_name` give the sibling folder's name, in lowercase, for
`$SIBLINGS/<name>/configure.sh` (`HamPackServer` →
`hampackserver`), and have `configure <item>` compare it with
`${1,,}`, so any case finds it. Add an `item_files` function that
prints `configure.d/*.sh`, then `$SIBLINGS/*/configure.sh`, skipping
any name seen already, so CoreDesktop's item wins a clash. Use it in
`load_items` and in the `configure <item>` lookup. Read it into an
array with `mapfile` first, not a `while read … < <(…)` loop, or
`run_configure`'s prompts read the loop's input instead of the
terminal. Mention siblings in the comment at the top.
2. `skills/sibling-project-format.md`: add `configure.sh` to the file
table. Add a `### configure.sh` section: an example whose
`run_configure` calls the project's own `configure` command, and
these rules: only define things (it's sourced on every redraw);
`is_configured` and `is_installed` are quick, quiet and don't use
`sudo`; `run_configure` may prompt, is safe to re-run and returns
non-zero on failure; `$COREDESKTOP`, `confirm` and `confirm_yes`
are there, since it's sourced rather than run with `bash`; and don't
take a name `configure --list` already shows. Add a checklist line.
Also add a rule, with its own checklist line, under `install.sh`'s
"Install commands into `~/.local/bin`": don't use the name of one
of CoreDesktop's commands (`configure`, `update`, `refresh`,
`sibling`, `version`, `audit`, `report`, `webapp`), which are in
`~/.local/bin` too. HamPackServer did, and its `configure`
replaced MiniServer's on every `update`.
3. `README.md`: one sentence where `configure --list` is described
(around line 304) saying sibling projects can add an item, named
after the project.
4. `tests/configure.bats` (there are no `configure` tests yet): a
temporary `HOME` holding a copy of `configure`, made-up items in
its `configure.d` and made-up siblings. Test the order in `--list`
with each item's state; leaving out siblings without `configure.sh`
and ones whose `is_installed` fails; `configure <sibling>`; a
sibling's prompt reading the terminal and using `confirm` and
`$COREDESKTOP`; a failure reported as "was not set up"; the name
clash; the menu's "a" running siblings' items; an unknown name.
- [ ] Restart Federated Calendar after an update installs a new version. Like
GNOME Calendar, it keeps running in the background after its window
closes, so it goes on running the old version until the next login.
Seen on 2026-11-28: the Jitsi conference button was missing after an
update, until `pkill -f federated-calendar`. A new step in `updates.d/`
after `10-pacman.sh` could compare the version from
`pacman -Q federated-calendar` before and after, and if it changed,
quit the running app (`pkill -f /usr/bin/federated-calendar`) so it
starts fresh next time it opens. If its window was open, reopen it with
`gtk-launch computer.federated.FederatedCalendar`. Check that unsaved
edits in an open event editor aren't lost without warning; if they
would be, only restart when no window is open, or tell the person to
reopen it. Other apps from the federated repo may need the same.
- [ ] Boot logo: an Arch logo shows at boot on some machine(s), and should be
the CoreDesktop logo (the login screen's is done:
`system/login-logo.sh`). Not seen on the NUC8i7HNK: no Plymouth, no
`splash` on the kernel command line, only the firmware's Intel NUC
logo. On a machine that shows it, run
`pacman -Q plymouth; cat /proc/cmdline` to find what draws it. If it's
Plymouth, use the `bgrt` or `spinner` theme with a CoreDesktop
`watermark.png` and rebuild the initramfs. Adding Plymouth to every
install would also mean its mkinitcpio hook and `quiet splash` in the
boot entries, so test that in the smoketest VM