no-mistakes(document): Clarify rebuild updates and check guidance
This commit is contained in:
1 parent
022967e277
commit
ad55229df8
4 files changed
+73
-22
No files matched your search
@@ -54,7 +54,7 @@ The captain confirmed the split on 2026-11-15. Leave it unchanged:
|
||||
./tests/fm-launcher.sh --live # installed zshrc; fails while it still launches Pi
|
||||
./tests/fm-launcher.sh # generated zshrc; must pass
|
||||
./tests/crew-dispatch.sh # routing via firstmate, model IDs via opencode models
|
||||
./tests/rebuild-update-steps.sh # static audit of rebuild.sh update steps
|
||||
./tests/rebuild-update-steps.sh # isolated updater execution and activation checks
|
||||
./tests/run.sh # all checks
|
||||
```
|
||||
|
||||
@@ -78,13 +78,13 @@ This follows the NIST SP 800-128 Rev. 1 (2019) Section 3.3 "Controlling Configur
|
||||
|
||||
## What `rebuild.sh` updates
|
||||
|
||||
One `./rebuild.sh` run brings every installed component to its latest supported version. Each step is idempotent: a current copy is left alone, and a re-run repeats no install. When a tool or the network is absent, the step prints a warning and the rebuild continues.
|
||||
`./rebuild.sh` updates the components below. The npm updater skips packages already at the registry version. Other tools use their own update commands on each run. Optional updater failures print warnings and allow the rebuild to continue. A failed switch stops the script before the post-switch updates.
|
||||
|
||||
Before the switch:
|
||||
|
||||
- Installed npm globals through `/opt/homebrew/bin/npm`, never Nix's npm: `@steipete/bird`, `chrome-devtools-axi`, `defuddle`, `forgejo-axi`, `gh-axi`, `lavish-axi`, `quota-axi`, and `tasks-axi`. The script skips absent packages and compares each installed package with the registry before an update. `tasks-axi` keeps its firstmate floor of 0.2.6 in `home.activation.axiTools`, which now installs only a missing or older copy, so the latest release survives the switch.
|
||||
- Installed npm globals listed in `rebuild.sh`'s `npm_globals` array, through `/opt/homebrew/bin/npm`, never Nix's npm. The script skips absent packages and compares each installed package with the registry before an update. `home.activation.axiTools` enforces the `tasks-axi` minimum without downgrades, so newer releases survive the switch.
|
||||
- Retired npm OpenCode packages `@opencode-ai/cli` and `opencode-ai` are removed so their shims cannot conflict with the Homebrew formula.
|
||||
- `no-mistakes update`, using the binary at `~/.no-mistakes/bin/no-mistakes`.
|
||||
- `no-mistakes update`, using `~/.no-mistakes/bin/no-mistakes`, or the command on `PATH` if that binary is absent.
|
||||
- `hermes update --yes`, which pulls the configured channel and restarts the services that run its new code.
|
||||
- `nix flake update`, so the switch builds from the newest locked inputs. Commit the resulting `flake.lock` change.
|
||||
|
||||
@@ -92,15 +92,13 @@ During the switch:
|
||||
|
||||
- nix-darwin updates Homebrew formulae and casks through `configuration.nix`'s `onActivation.autoUpdate` and `onActivation.upgrade` settings.
|
||||
- `home.activation.backpass` updates `acpx` and `backpass`. Other activation steps install their declared npm packages when absent.
|
||||
- Home Manager replaces the standalone `~/.local/bin/actionlint` and `~/.local/bin/shellcheck` binaries with links to the packages selected by the updated flake. Later rebuilds update those links automatically.
|
||||
- Home Manager replaces the standalone `~/.local/bin/actionlint` and `~/.local/bin/shellcheck` binaries with links to the selected nixpkgs packages. Later rebuilds update those links automatically, rather than downloading separate releases.
|
||||
|
||||
After the switch:
|
||||
|
||||
- The Skills CLI updates every skill tracked in `~/.agents/.skill-lock.json`. The pinned pstack skills are not in that lock, so they stay on the `home.nix` revision (see [pstack skills](#pstack-skills-pinned-on-every-rebuild)). `security-audit` is excluded on purpose, because `home.nix` freezes it so a rebuild never pulls a new skill mid-session; renew it by hand with the command in [security-audit skill](#security-audit-skill-agent-security-reviews).
|
||||
- The Skills CLI updates skills tracked in `~/.agents/.skill-lock.json`, except `security-audit`. See [security-audit skill](#security-audit-skill-agent-security-reviews) for its freeze policy and manual update command. Untracked skills receive no update here. See [pstack skills](#pstack-skills-pinned-on-every-rebuild) for the pinned skills and their update procedure.
|
||||
- `pi update --extensions --no-approve`, run after the switch because the Homebrew bundle may have upgraded the `pi` binary.
|
||||
|
||||
`actionlint` and `shellcheck` follow the versions available in the selected nixpkgs revision, rather than separate release downloads. The pinned pstack tree stays put; see its section for how to move it.
|
||||
|
||||
## security-audit skill (agent security reviews)
|
||||
|
||||
`home.activation.securityAuditSkill` installs Cloudflare's `security-audit` skill from `https://github.com/cloudflare/security-audit-skill` so the coding agents can run a structured vulnerability audit. The exact command:
|
||||
|
||||
Reference in new issue
Block a user