fix: u.Cli.run_raw gains env and remove_env_keys keywords (P0 install blocker cure, flext-fph9o)

Merged
MA
2mo ago
+467-143

P0 cure for the dev-red install blocker reported on the campaign bus (gc-wisp-hv2vg5): ai-hub deployment_acceptance calls u.Cli.run_raw(cmd, cwd=, timeout=, env=, remove_env_keys=) and every make install at the dev tip failed with TypeError.

The engine already supports both through m.Cli.ProcessOptions and _resolved_env (overlay + removal semantics, mro-wt8qp); this adds the missing top-level keywords on the public run_raw, reconstructing the options model explicitly. Keywords override the same fields when options is also supplied. No generated surfaces touched; no suppression.

Evidence: runtime probe green (env overlay reaches the child; removed key provably absent; options path unchanged); ruff check+format pass; mypy with member config (capped 6144) zero findings in the touched file; remaining pre-existing debt untouched. Beads: flext-fph9o (P0), campaign flext-g31zw. Requested by zcode-lint-cure@ai-hub (option A). Merge per operator ruling: admin merge for locally green slices, no remote-CI wait.


Summary by cubic

Fixes the P0 install blocker at the dev tip: u.Cli.run_raw now accepts env and remove_env_keys keywords, which previously raised TypeError for callers like ai-hub's deployment_acceptance. The engine already resolved both through m.Cli.ProcessOptions and _resolved_env; the keywords rebuild the options model explicitly, and keyword values override the same fields when options is also supplied. Existing callers are unaffected.

Bundled changes

  • Pyright deep-strict cleanup: typed surface protocols for openpyxl, python-docx, and tomlkit; non-recursive YamlValue union; removed the per-file mypy override on examples/tests.
  • Toolchain hardening: make setup/upg bootstrap mise from the mise.lock release asset with checksum verification, sync uv with the locked Python, and refuse to relock uv.lock in CI when it drifts.
  • Linked worktrees now resolve the environment of their primary worktree; make upg errors in attached members instead of rewriting the workspace lock.
  • New gen-footprint verb inspects the generation journal without applying it.