Use this prompt as a lightweight assessment router: classify the target, recommend the next workflow, and stop before implementation. Do not edit files, create commits, run mutating commands, or post GitHub changes.
Start with the provided target only and use the smallest authoritative artifact that can support the next decision. For a GitHub issue or PR URL, read that target first. Do not read issue comments, linked artifacts, README.md, AGENTS.md, CONTEXT.md, or broad code areas by default. Do not load another workflow skill merely because /pac-llat may recommend that workflow.
Operational invariant for GitHub targets: after a successful structured target read containing the requested body and metadata, classify directly from that result and do not re-fetch issue or PR fields already returned. Before any second read of the same target, identify the specific materially missing fact that the first result did not contain. Never re-read the same content through another command or API shape, including to obtain a less escaped or more raw representation. In particular, never follow gh issue view ... --json ...body... with gh api ... --jq .body for the same issue. Additional targeted follow-up reads remain allowed only for a concrete missing fact, a fact that may have changed, or post-transition verification.
Process:
Resolve the target from the provided argument or current conversation. If it is unclear, ask one concise clarifying question.
Summarize the goal, assumptions, and known constraints from the authoritative target.
Decide whether the work is:
simple and ready for implementation,
ambiguous and needs exploration,
issue-backed and needs grilling/documented decisions,
large enough for a PRD,
ready to break into implementation issues,
out of scope or not worth doing.
Route to existing workflows instead of duplicating them:
/pac-explore for open-ended discovery,
/pac-grill-me for conversational design stress-testing,
/pac-grill-with-docs for issue-backed refinement with durable notes,
/pac-to-prd for larger product/design artifacts,
/pac-to-issues for decomposing agreed plans,
/pac-lwot when the user wants implementation.
If the work is ready, produce a short implementation-ready brief: goal, likely files only when known from the target, risks, verification, and open questions. Do not explore the codebase merely to populate speculative details.
Stop before implementation and ask what the user wants next.
Keep the response concise. A well-specified target should be classified after its initial read.
Provided arguments:
https://github.com/ladislas/mypac
Reassess the host/bootstrap dependency boundary after #352, using the fresh-machine experience and the existing Worktrunk-backed workflow from #85 as concrete evidence.
The goal is to minimize undocumented host prerequisites and make version-sensitive CLI dependencies reproducible through mise wherever appropriate.
Audit the actual current requirements across bootstrap, sync, Pi packages, issue-backed workflows, Worktrunk integration and development tooling. Classify each dependency into:
unavoidable host/bootstrap substrate,
global mise-managed runtime/CLI,
global Pi package,
checkout-local mise tool,
checkout npm dependency,
optional/system dependency.
Pay particular attention to Git, mise, Pi, Node/npm, gh, Worktrunk/wt, uv, Headroom, agent-browser and its browser payload.
Challenge the current bootstrap ordering where npm ci runs before mise install, and determine whether Node/npm should remain a host prerequisite or become mise-managed. Keep Pi as a host prerequisite unless there is a compelling architectural reason to change that.
For Worktrunk, determine the best pinned mise backend on macOS arm64, preferring a prebuilt GitHub/Aqua-style release over a Cargo source build that would introduce Rust as another prerequisite. Include the required wt shell integration and an idempotent verification strategy.
Also define a clear policy for when mypac should prefer mise versus Homebrew. Preserve #352's thin-orchestration philosophy: use native managers, no ownership database, no generic lifecycle framework.
Produce a concise refreshed design and the smallest implementation decomposition. Do not implement yet.
Assistant
Assessment
Classification: ambiguous, cross-cutting dependency-boundary work requiring exploration before design. It is not implementation-ready.
Goal
Refresh the post-#352 bootstrap design by auditing actual dependencies, then classify each into the requested installation/ownership categories. Resolve:
Node/npm host prerequisite vs mise-managed runtime
Correct bootstrap ordering
Reproducible Worktrunk installation on macOS arm64
wt shell integration and idempotent verification
mise-versus-Homebrew policy
Smallest implementation decomposition
Known constraints
Preserve #352’s thin orchestration: native managers, no ownership database or generic lifecycle framework.
Keep Pi as host substrate unless strong evidence says otherwise.
#352 currently treats mise and Pi as prerequisites, global CLIs through mise, Pi packages through Pi, Python tools through uv, and checkout dependencies through npm.
#85 delegates worktree lifecycle to Worktrunk and requires blocking mise trust, mise install, and npm ci hooks.
Prefer a pinned prebuilt Worktrunk release; avoid introducing Rust/Cargo.
No implementation yet.
Materially missing evidence
The specific fresh-machine failures or friction.
Current dependency declarations and scripts after #352.
Current Worktrunk, Pi-package, development-tooling, and browser-payload requirements.
Backend/platform availability for the desired pinned wt release.
Recommended route
Run /pac-explore first to perform the evidence-based dependency audit and compare viable Worktrunk mise backends. Then:
/pac-grill-with-docs — stress-test decisions and preserve the refreshed design on an issue.
/pac-to-issues — create the smallest agreed implementation decomposition.
/pac-lwot — implement only after approval.
Would you like to proceed with /pac-explore using this scope?
User
Enter exploration mode.
Explore mode is for open-ended thinking, codebase investigation, option comparison, and problem clarification. It is not an implementation workflow.
Read and follow skills/pac-explore/SKILL.md.
Use the optional argument after /pac-explore as the thing to explore. It may be:
a vague idea
a concrete problem
a code area or file path
a GitHub issue or PR URL
a design option to compare
nothing, in which case infer the topic from conversation and ask only if unclear
Do not edit files, create commits, or publish GitHub changes while in explore mode. If the user becomes ready to act, summarize the current understanding and suggest the appropriate next workflow.
Perform the evidence-based dependency-boundary audit proposed by the preceding LLAT assessment.
Use current main and durable GitHub history as the source of truth. In particular inspect #352, #85, #423 / PR #427, current bootstrap/sync scripts, mise declarations, Worktrunk integration, Pi packages, browser tooling, and development documentation.
Fresh-machine evidence from a second Mac:
Worktrunk / wt was missing even though mypac relies on it for parallel issue work.
Bootstrap recently exposed an implicit dependency-ordering problem where pipx-backed tooling could be installed before uv was available. PR #427 fixed this by making the uv dependency explicit. Treat this as evidence that hidden host/tool ordering assumptions should be identified rather than patched individually.
Audit every actual executable/runtime dependency required to bootstrap mypac and use its normal workflows across unrelated repositories. Classify each as:
unavoidable host/bootstrap substrate
global mise-managed runtime/CLI
global Pi package
checkout-local mise tool
checkout npm dependency
optional/system dependency
Explicitly investigate Git, mise, Pi, Node/npm, gh, Worktrunk/wt, uv, Headroom, agent-browser, browser payloads, and any other dependency discovered from current code.
Resolve these questions with evidence:
What is the smallest host prerequisite set?
Should Node/npm remain host-provided or be pinned globally through mise?
Is the current bootstrap ordering correct? Identify any remaining chicken-and-egg dependencies.
Should gh be part of the declared global environment given issue-backed workflows?
Assistant
I’ll trace declared tools, executable invocations, and workflow docs from current main, then validate version-sensitive backend choices against live mise/Worktrunk sources. No mutations.
Assistant
Dependency-boundary audit
Audited origin/main at b3be57e, plus #352, #85’s PRD, #423, merged PR #427, current upstream mise/Pi/Worktrunk metadata, and relevant code/docs.
1. Observed dependency inventory
Bootstrap and sync
Current flow:
text
./scripts/install.sh
→ mise run bootstrap
→ require mise + Pi
→ npm ci
→ mise install
→ mise run hooks
→ mise run sync
Evidence:
scripts/install.sh
.mise/tasks/bootstrap.sh
.mise/tasks/sync.sh
Current global declaration:
text
mise uv@0.12.6
mise pipx:headroom-ai[extras=all]@0.36.5
mise npm:agent-browser@0.34.0
pi npm:pi-agent-browser-native@0.5.0
pi npm:pi-codex-search@0.1.6
Confirmed dependency edges
text
Git ────────────────► clone, most repository workflows, Worktrunk
mise ───────────────► all managed CLI/runtime declarations
Node/npm ───────────► npm ci, tests, agent-browser runtime,
npm exec doctor, Pi package installation
uv ─────────────────► Headroom pipx backend, Python interception
gh ─────────────────► /worktree issue, issue creation/triage/review workflows
wt ─────────────────► /worktree list/status/branch/issue
agent-browser ──────► Chrome-for-Testing payload
Pi ─────────────────► mypac package + global Pi packages
Notable evidence:
agent-browser@0.34.0 requires Node >=24.
User
Read and follow skills/pac-grill-with-docs/SKILL.md.
Treat this as a successor dependency-boundary decision to the completed #352 design, informed by the fresh-machine audit after #423/#427 and the Worktrunk workflow from #85. Do not reopen or reinterpret #352's completed scope; use it as durable architectural context.
The exploration has established strong evidence for:
checkout-local mise tools and npm dependencies remaining local
Worktrunk through an explicit pinned Aqua backend rather than Cargo
no automatic Worktrunk shell integration for the existing /worktree extension
Homebrew/OS for machine substrate and system software, mise for version-sensitive mypac runtime CLIs
a foundation phase must exist before npm ci and other Node-dependent operations
Focus the grill on the remaining architectural decisions, not on re-auditing the dependency inventory.
Pi installation boundary
Decide whether fresh-machine documentation should recommend Pi's standalone installer so Pi remains bootstrap substrate without requiring host Node. Existing npm-installed Pi installations must remain valid. Challenge any design where mypac or mise becomes responsible for installing Pi and creates a bootstrap cycle.
Foundation/application representation
Find the smallest explicit design that allows Node/npm and uv to exist before checkout setup and before dependent global tools, while preserving #352's thin orchestration philosophy.
Avoid:
a generic dependency graph
arbitrary lifecycle hooks
duplicated desired-state pins
a home-grown package manager
Compare simple phase-oriented representations and choose one.
The desired conceptual order is approximately:
host substrate
→ mise-managed foundation
→ checkout npm/local tools/hooks
→ remaining global CLI environment
→ Pi packages
→ package-specific setup/verification
Challenge that ordering where necessary.
mise shell availability
Determine the correct ownership model for ensuring globally declared mise tools are available in fresh shells and unrelated repositories.
Prefer not to silently edit shell startup files.
Decide what bootstrap should verify, what installation documentation should require, and what actionable failure should look like.
Assistant
1/5 — Pi installation boundary
Recommendation: fresh-machine docs should prefer Pi’s standalone installer/binary. Existing npm-installed Pi remains supported. mypac bootstrap should only require and verify pi; it must not install Pi through mise or npm.
This preserves:
text
host: Git + mise + Pi
↓
mypac provisions Node/npm
It avoids the cycle where installing prerequisite Pi first requires the Node runtime that bootstrap is meant to provision.
Question: Should “standalone Pi preferred, npm-installed Pi supported” become the accepted installation policy?
A. Yes — recommended.
B. Keep installation method neutral in docs.
C. Let mise install Pi, accepting a changed bootstrap boundary.
User
A
Assistant
2/5 — Foundation/application representation
Three viable shapes:
A. One phase-tagged desired-state file — recommended
text
foundation mise node@24.20.0
foundation mise uv@0.12.6
application mise aqua:cli/cli@…
application mise aqua:max-sixty/worktrunk@0.75.0
application mise pipx:headroom-ai[…]@…
application mise npm:agent-browser@0.34.0
package pi npm:pi-agent-browser-native@0.5.0
Bootstrap reconciles each fixed phase at the appropriate point. Pins remain single-source. This adds phases—not dependencies, hooks, or package-manager abstraction.
B. Separate foundation and environment files
Simpler parsing, but fragments desired state and weakens #352’s single configuration surface.
C. Hard-code foundation tool names in bootstrap
Keeps the file unchanged but duplicates ownership knowledge between configuration and scripts.
Recommended order:
text
host checks
→ foundation
→ verify Pi
→ npm ci
→ checkout-local mise tools/hooks
→ application CLIs
→ Pi packages/mypac registration
→ browser setup and final verification
Question: Accept A, with a closed set of three phases (foundation, application, package) in the existing line-oriented desired-state file?
User
Accept A, with one naming refinement.
Use one phase-tagged .mise/global-environment as the single desired-state source, with a strictly closed phase set. The phase expresses orchestration timing only; it must not evolve into dependency metadata, hooks, priorities, or a generic lifecycle system.
I would rename the proposed package phase to pi (or pi-package) because package is too generic: the other mise-managed entries are also packages in a broad sense, while this phase specifically means “reconcile through Pi after the global CLI environment is available.”
Preferred shape:
text
foundation mise node@24.20.0
foundation mise uv@0.12.6
application mise aqua:cli/cli@…
application mise aqua:max-sixty/worktrunk@0.75.0
application mise pipx:headroom-ai[…]@…
application mise npm:agent-browser@0.34.0
pi pi npm:pi-agent-browser-native@0.5.0
pi pi npm:pi-codex-search@0.1.6
The exact syntax can be refined for readability, but preserve these constraints:
no hard-coded list of foundation tool names outside the declaration.
Recommended order is accepted:
host checks
→ foundation
→ verify Pi
→ npm ci
→ checkout-local mise tools/hooks
→ application
→ Pi phase / mypac registration
→ package-specific setup and final verification
Assistant
3/5 — mise availability across shells
Recommendation: shell configuration belongs to the user/mise installation boundary, not mypac.
Policy:
Documentation requires one supported persistent mode before bootstrap:
normal mise activate <shell> setup, preferred; or
mise’s shims directory on PATH.
mypac never edits shell startup files.
scripts/install.sh preflights the inherited environment before mutation.
If neither activation nor shims is detectable, stop with shell-specific official setup guidance, ask the user to open/reload the shell, and rerun.
During bootstrap, use mise env/mise exec for deterministic phase-local availability.
Final verification proves declared versions through mise; fresh-shell acceptance remains documented as:
sh
command -v node uv gh wt headroom agent-browser
A child bootstrap process cannot honestly prove what a future parent shell will load, so it should not claim that.
Question: Accept this as a hard bootstrap precondition, rather than merely warning when persistent mise availability is not detected?
User
Accept as a hard bootstrap precondition.
A warning is insufficient because persistent mise availability is part of the contract we are trying to establish: after bootstrap, opening a normal shell in an unrelated repository must expose the globally declared mypac runtime tools. Allowing bootstrap to succeed without that prerequisite would preserve a hidden machine-specific dependency.
Keep these boundaries:
persistent shell configuration belongs to the user/mise installation boundary;
mypac never edits .zshrc, .bashrc, or equivalent startup files;
either supported persistent mode is valid:
normal mise activate <shell> integration; or
mise shims on PATH;
do not privilege activation over shims if both satisfy the runtime contract;
preflight this before bootstrap mutates machine/repository state;
on failure, stop with official shell-specific mise guidance and instruct the user to reload/open a shell and rerun;
inside bootstrap, continue using mise exec / mise env where needed so phase-local ordering does not depend on parent-shell refresh;
do not claim that a child process verified future-shell behavior.
The important distinction is:
text
bootstrap preflight
→ prove this inherited shell has a persistently configured mise integration
bootstrap execution
→ use mise explicitly for deterministic local availability
fresh-shell acceptance
→ user-visible verification that normal future shells resolve the declared tools
The documented fresh-shell acceptance can remain:
sh
command -v node uv gh wt headroom agent-browser
Implementation should use the smallest supported/public mise-facing check available and avoid depending on incidental shell internals or parsing startup files itself.
Assistant
4/5 — Pi version policy
Recommendation: use behavioral compatibility verification, not exact parity or an invented semver range.
Policy:
package.json’s aligned Pi dependency pins remain the version against which mypac is developed and tested.
Bootstrap records both the installed pi --version and the tested pin.
A mismatch is visible but does not fail by itself.
Bootstrap fails only when installed Pi cannot perform focused required behavior: package reconciliation/listing, loading the registered mypac package, or another small stable smoke check.
Do not declare “same minor,” “greater than,” or another compatibility range without evidence that Pi guarantees it.
Exact parity remains appropriate for CI’s development dependency graph, not for independently installed host Pi.
This permits standalone and existing npm-installed Pi while detecting actual incompatibility.
Question: Accept behavioral verification with an explicit non-fatal version comparison, rather than any semver gate?
User
Accept behavioral compatibility verification with an explicit non-fatal version comparison.
Do not introduce a semver gate without an upstream compatibility guarantee. The installed host Pi and mypac's pinned Pi development libraries have different ownership and lifecycle boundaries, so exact version equality should not be a bootstrap requirement by default.
Keep this policy:
package.json's aligned @earendil-works/* pins define the Pi version against which mypac is developed, tested, and validated in CI;
bootstrap records and displays:
installed pi --version;
mypac's tested Pi pin;
a mismatch is visible but non-fatal by itself;
do not infer compatibility from >=, same minor, same major, or another locally invented semver rule;
fail only when the installed Pi cannot satisfy a focused runtime contract required by mypac.
Keep the behavioral gate deliberately small. It should prove only stable capabilities that bootstrap actually depends on, for example:
Pi package reconciliation works;
pi list can observe the declared Pi packages and registered mypac checkout;
the registered mypac package can be loaded sufficiently to prove Pi accepts it.
Avoid turning bootstrap into a duplicate of npm run check:pi-compatibility, running broad workflow/E2E tests, or coupling it to incidental UI/model behavior.
The distinction should remain:
text
CI / development
→ exact pinned Pi dependency graph
→ broad compatibility and regression verification
host bootstrap
→ independently installed Pi CLI
→ report version difference
→ verify only the required runtime contract
If future evidence establishes that a specific Pi version is incompatible, capture that concrete incompatibility rather than generalizing it into an unsupported semver compatibility policy.
Assistant
5/5 — Headroom scope
Recommendation: defer Headroom optionality.
#352 deliberately placed Headroom in the default reconciled environment. The current successor decision concerns dependency ownership, reproducibility, and ordering; it has produced no new evidence about whether Headroom should be optional.
Therefore:
retain Headroom as a default application entry;
preserve mise’s pinned pipx: backend;
make its uv ordering explicit through the foundation phase;
do not add profiles, optional groups, flags, or conditional declarations;
evaluate optionality only in a separate product-scope decision with usage/cost evidence.
Question: Accept “unchanged and explicitly out of scope” for Headroom optionality?
User
Accept Headroom optionality as unchanged and explicitly out of scope.
Preserve the existing #352 decision:
Headroom remains part of the default reconciled application environment;
keep the pinned mise pipx: declaration;
make its dependency on uv structurally correct by placing uv in the foundation phase;
do not add optional profiles, feature groups, flags, conditional declarations, or alternate bootstrap paths as part of this work.
This successor decision is about dependency ownership, reproducibility, and bootstrap ordering. There is no new evidence here that Headroom's product-level optionality should change.
If Headroom should later become optional, treat that as a separate product-scope decision based on actual usage, cost, friction, and value rather than coupling it to this bootstrap refactor.
Assistant
Accepted ADR draft
Suitable for a new successor issue; it should not be posted to or modify completed #352.
md
<!-- pac:adr -->
# Phase mypac’s reproducible runtime environment around a minimal host substrate
**Status:** accepted
Following the fresh-machine findings from #423/#427 and the Worktrunk workflow from #85, mypac retains #352’s thin-orchestration model while refining its dependency boundary. Git, mise, and Pi form the host substrate; version-sensitive runtime CLIs required by mypac are pinned through mise and reconciled in fixed phases so Node/npm and uv exist before their consumers.
## Decision
Fresh-machine documentation will prefer Pi’s standalone installer, avoiding a pre-bootstrap Node dependency. Existing npm-installed Pi installations remain valid. mypac and mise do not install Pi.
`.mise/global-environment` remains the single desired-state source. Every entry has exactly one pin, an explicit native manager, and one orchestration phase from the closed set:
```text
foundation
application
pi
The phases express timing only:
text
host substrate
→ foundation
→ verify Pi
→ checkout npm dependencies, local mise tools, and hooks
→ application
→ Pi packages and mypac registration
→ package-specific setup and final verification
They must not acquire dependency edges, priorities, hooks, conditions, or generalized lifecycle metadata.
no dependency graph, generic lifecycle hooks, optional profiles, or duplicated desired-state pins;
no automatic Worktrunk shell integration;
no Cargo/Rust;
no semver Pi gate;
Headroom optionality remains explicitly out of scope.
Create the successor ADR issue and the two implementation issues with appropriate links/dependencies and mypac planning labels/state. Do not implement code.
Assistant
The two accepted slices are both AFK: decisions are settled, and Issue 2 is blocked by Issue 1. I’ll create a successor ADR parent, then the two implementation sub-issues in dependency order and wire the blocker relationship.
Worktrunk should be reproducible if practical. Compare current mise-compatible installation backends for macOS arm64 and prefer a pinned prebuilt binary over Cargo/Rust.
Determine whether wt shell integration is required by mypac workflows, who should own it, and how setup/verification can remain idempotent.
Define a simple mise-versus-Homebrew policy. The intended direction is roughly: Homebrew/OS for machine substrate and system software; mise for version-sensitive developer/Pi CLI runtimes owned by mypac. Challenge this if current evidence suggests a better boundary.
Preserve #352's thin-orchestration model: native managers, no ownership database, no generalized lifecycle-hook/package-manager framework.
Do not implement and do not create issues yet.
Return:
observed dependency inventory with evidence
classification table
remaining hidden/implicit dependencies
recommended host minimum
recommended mise/Homebrew ownership policy
Worktrunk backend recommendation
bootstrap ordering recommendation
decisions that still need grilling versus conclusions already supported strongly enough by evidence
Pi 0.84.3 and its managed Pi packages default to invoking external npm.
PR #427 proved the yamllint → uv pipx dependency must be explicit under parallel mise installation.
gh and wt are direct runtime calls in extensions/worktrunk/index.ts, but neither is currently declared globally.
Worktrunk hooks call mise, npm, and repository tests from .config/wt.toml.
2. Classification
Dependency
Current state
Recommended classification
macOS shell/basic utilities
Implicit
Unavoidable host/bootstrap substrate
Git
Documented prerequisite; extensively invoked
Unavoidable host/bootstrap substrate
mise
Required before entrypoint
Unavoidable host/bootstrap substrate
Pi CLI
Required before bootstrap
Unavoidable host/bootstrap substrate
Node/npm
Undeclared host prerequisite
Global mise-managed runtime/CLI
gh
Documented only inside individual workflows
Global mise-managed runtime/CLI
Worktrunk/wt
Required by extension but undeclared
Global mise-managed runtime/CLI
uv@0.12.6
Global plus duplicate checkout declaration
Global mise-managed runtime/CLI
Headroom
Global mise pipx: declaration
Global mise-managed runtime/CLI
agent-browser
Global mise npm: declaration
Global mise-managed runtime/CLI
Chrome-for-Testing payload
Installed by agent-browser install
Package-specific payload owned by the global agent-browser installation
pi-agent-browser-native
Declared
Global Pi package
pi-codex-search
Declared
Global Pi package
Current mypac checkout
Registered by path
Global Pi package
hk
Local mise
Checkout-local mise tool
pkl
Local mise
Checkout-local mise tool
markdownlint-cli2
Local mise npm backend
Checkout-local mise tool
yamllint
Local mise pipx backend
Checkout-local mise tool
Local duplicate uv
Added by #427 to fix ordering
Prefer removing after global-foundation ordering is proven
diff, yaml
Root runtime dependencies
Checkout npm dependency
Pi libraries, TypeBox, TypeScript, Node types
Root development dependencies
Checkout npm dependency
Python runtime
Resolved/downloaded through uv
Not a host prerequisite
Homebrew
Recommended for mise installation
Optional/system dependency
Xcode Command Line Tools
Common source of Git/build substrate
Optional/system dependency, except insofar as needed to provide Git
ffmpeg
Explicitly excluded
Optional/system dependency
open, qlmanage
macOS file actions
Optional/system dependency
VS Code code, $EDITOR/$VISUAL
Optional file actions
Optional/system dependency
Notification sound command
User-configured hook
Optional/system dependency
Rust/Cargo
Not currently needed
Do not introduce
standalone Aqua CLI
Not needed by mise’s Aqua backend
Do not introduce
system Python/pipx/pnpm
Not required
Do not introduce
3. Remaining hidden or implicit dependencies
Node/npm is the largest remaining hidden prerequisite.
npm ci runs before mise installs anything.
agent-browser requires Node 24.
npm exec runs the browser doctor.
Pi’s package manager invokes external npm by default.
Current sync order only partially expresses dependencies.
uv precedes Headroom, but only by file ordering.
Nothing provisions Node before Node-based tools or Pi package operations.
#427 fixed the local yamllint → uv edge, not the broader phase boundary.
mise shell activation is undocumented.
Global tools must resolve in fresh shells and unrelated repositories. eval "$(mise env ...)" inside sync only affects that process; it does not configure future shells.
gh authentication is configuration, not installation.gh should be installed reproducibly, but gh auth status remains user/machine state.
Pi version compatibility is not enforced.
Checkout Pi libraries are pinned, but bootstrap merely checks that some pi exists. #423 already calls this out.
Browser payload is required runtime state outside mise’s tool directory.
It remains appropriately handled by the explicit agent-browser install seam.
Worktrunk hook approval is part of runtime behavior.
The extension intentionally passes --yes; this is already explicit and should remain Worktrunk-owned.
4. Recommended host minimum
text
Git
mise
Pi
macOS shell/basic command substrate
network access and required credentials
Node/npm should leave the host prerequisite set.
This is practical because Pi now publishes standalone macOS arm64 binaries. Fresh-machine guidance should prefer standalone Pi installation so Pi does not itself depend on a pre-bootstrap Node installation.
Existing npm-installed Pi installations can continue working, but they retain a transitional Node dependency until mise-managed Node is active.
Homebrew is a recommended way to obtain machine substrate, not a logical prerequisite for mypac.
npm participates in bootstrap, Pi package installation, browser verification, development, and Worktrunk hooks.
Treating it as a machine-provided prerequisite conflicts with #352’s reproducible, version-sensitive CLI policy.
Use an exact Node 24 pin, matching CI; currently node@24.20.0 is available. npm should remain the npm bundled with that Node release unless evidence demands a separate npm pin.
6. Worktrunk recommendation
Backend
Use:
text
aqua:max-sixty/worktrunk@0.75.0
Evidence:
mise’s worktrunk shorthand currently resolves first to aqua:max-sixty/worktrunk, with Cargo only as fallback.
Aqua registry metadata selects worktrunk-aarch64-apple-darwin.tar.xz and verifies its SHA-256 sidecar.
Worktrunk v0.75.0 publishes a native macOS arm64 archive.
mise’s Aqua backend requires neither Cargo/Rust nor a standalone Aqua installation.
Prefer the explicit Aqua specification over the shorthand so backend choice cannot silently drift.
Shell integration
It is not required by mypac’s current extension:
creation uses wt switch --no-cd;
list/status use the binary directly;
the extension prints an explicit cd ... && pi command.
Shell integration is required only when users expect raw wt switch to change the parent shell’s directory.
Therefore:
do not silently mutate shell startup files during normal sync;
document wt config shell install as optional Worktrunk-native setup;
if interactive Worktrunk becomes a supported primary workflow, treat it as one explicit package-specific setup seam, not a lifecycle framework.
Verification:
sh
mise which wt
wt --version
wt list --format=json
For optional shell integration, after opening a fresh shell:
sh
wt config show
type wt
type wt should report a shell function. Upstream installation behavior is designed to converge safely when rerun.
7. mise versus Homebrew policy
Homebrew/OS owns
tools required before a repository can run mise;
system integration and GUI/system software;
Git/mise installation where macOS does not provide the desired substrate;
optional system capabilities such as ffmpeg.
mise owns
A CLI/runtime when all are true:
mypac’s normal workflows invoke it;
it must work outside the mypac checkout;
version/backend choice affects compatibility or reproducibility;
mise has a suitable prebuilt/native backend.
This includes Node/npm, uv, gh, Worktrunk, Headroom, and agent-browser.
Other native managers retain their boundaries
text
Pi → Pi packages and mypac registration
npm → checkout dependency graph
uv → Python runtimes/environments underneath mise’s pipx backend
tool → package-specific payloads such as agent-browser’s browser
mypac → declarations, ordering and focused verification only
Avoid installing the same version-sensitive CLI through both Homebrew and mise.
8. Recommended bootstrap ordering
Current ordering is incorrect once Node stops being a host prerequisite.
Recommended conceptual phases:
text
1. Require host substrate
Git already used for clone
require mise
2. Install global foundation through mise
Node/npm
uv
gh
Worktrunk
activate resulting mise environment
3. Require and verify Pi
preferably standalone host installation
4. Prepare checkout
npm ci
install checkout-local mise tools
install Git hooks
5. Install global application tools
Headroom
agent-browser
6. Reconcile Pi state
browser package
Codex Search package
current mypac checkout
7. Package-specific setup and verification
agent-browser install
exact versions and executable paths
Pi package list
browser doctor
gh/wt availability
This removes the broad chicken-and-egg assumptions rather than adding another depends patch.
The exact representation of “foundation” versus “application” should remain small and explicit. Do not introduce a dependency graph or generalized backend framework.
9. Strong conclusions versus grilling topics
Strongly supported
Node/npm should be globally pinned through mise.
Node must be available before npm ci, agent-browser execution, Pi package installation, and browser doctor.
gh is a normal global mypac dependency.
Worktrunk is a normal global mypac dependency.
Worktrunk should use pinned aqua:max-sixty/worktrunk, not Cargo.
The current host minimum can exclude Node when standalone Pi is used.
Bootstrap needs an explicit foundation phase before checkout setup.
Worktrunk shell integration is unnecessary for the existing /worktree extension.
mise shell activation must be documented and verified in a fresh shell.
Needs grilling/documented decisions
Whether fresh-machine guidance should actively prefer standalone Pi over npm-installed Pi.
Whether bootstrap should enforce exact Pi/check-out-library version parity or only a compatible range.
How to represent the two sync phases without duplicating pins or growing a generic orchestration framework.
Whether optional raw Worktrunk directory-switching is important enough to offer wt config shell install during interactive onboarding.
Whether Headroom remains part of the default global environment or should become an explicitly optional integration.
Smallest likely implementation decomposition
Dependency boundary and ordering: add Node, gh and pinned Aqua Worktrunk; establish foundation-first bootstrap; remove redundant uv ownership only if proven safe; add focused ordering/idempotence tests.
Verification and documentation: fresh-shell mise activation, Pi installation/version policy, Worktrunk verification and optional shell integration, refreshed ownership table.
Recommended next workflow: /pac-grill-with-docs to settle the five remaining decisions before drafting implementation issues.
Pi version policy
Determine whether bootstrap needs exact parity between the installed Pi CLI and mypac's pinned @earendil-works Pi libraries, a compatibility rule, or only explicit verification/documentation.
Do not introduce strict parity without concrete behavioral justification.
Headroom
Decide whether Headroom being part of the default reconciled environment is actually part of this dependency-boundary work. If changing its optionality is orthogonal, explicitly defer it rather than expanding scope.
Preserve the already-supported decisions unless the grill finds contradictory evidence:
Node/npm becomes globally pinned through mise
gh and wt become declared global dependencies
Worktrunk uses pinned aqua:max-sixty/worktrunk
no Rust/Cargo dependency
no automatic wt shell integration
browser payload remains an explicit agent-browser-owned setup seam
Produce one durable refreshed Decision/ADR suitable for the successor work. End with the smallest implementation shape that /pac-to-issues should decompose.
Do not implement.
Pi:
Checkout: repository-local mise tools and npm dependencies.
Homebrew/OS: machine substrate, system software, and optional system capabilities.
Persistent mise availability is a hard bootstrap precondition. The inherited shell must use either normal mise activation or mise shims on PATH. mypac verifies this before mutation, provides official actionable guidance on failure, and never edits shell startup files. Bootstrap still invokes mise explicitly for deterministic phase-local availability; fresh-shell resolution remains a user-visible acceptance check.
The installed Pi version is reported alongside mypac’s pinned development/test version, but a mismatch is not itself fatal. Bootstrap verifies only the small runtime contract it needs: Pi package reconciliation and listing, mypac registration, and sufficient package loading to prove the installed Pi accepts mypac. No locally invented semver compatibility rule is imposed.
Worktrunk uses an explicitly pinned Aqua backend with a prebuilt macOS arm64 release, not Cargo. mypac’s /worktree commands do not require parent-shell directory switching, so bootstrap does not install Worktrunk shell integration. Browser payload provisioning remains the explicit agent-browser-owned setup seam.
Headroom remains in the default reconciled application environment. Its product-level optionality is unchanged and outside this decision.
Rejected alternatives
Host-provided Node/npm: leaves a version-sensitive prerequisite undocumented and unreproducible.
Installing Pi through mise or mypac: changes the accepted bootstrap boundary and risks a cycle.
Separate desired-state files: fragments #352’s single configuration surface.
Hard-coded foundation tool names: duplicates ownership outside the declaration.
Generic dependency graphs or lifecycle hooks: unnecessary replacement machinery for three fixed phases.
Exact or invented-range Pi version gating: unsupported by an upstream compatibility guarantee.
Cargo-installed Worktrunk: introduces Rust solely to build an available precompiled CLI.
Automatic shell-file edits: crosses into user-owned machine configuration.
code
## Smallest implementation decomposition
### 1. Phase bootstrap around foundation tools
- Add the closed phase field to `.mise/global-environment`.
- Move Node/npm and uv into `foundation`.
- Reorder bootstrap around the accepted phase sequence.
- Add the persistent-mise preflight.
- Add non-fatal Pi version reporting and the focused runtime gate.
- Cover phase validation, ordering, single-pin behavior, idempotence, and pre-mutation failure.
### 2. Complete and document the global environment
- Declare pinned `gh` and pinned Aqua Worktrunk in `application`.
- Preserve Headroom, agent-browser, Pi packages, and browser payload ownership.
- Verify effective tool versions/paths and `wt` operation.
- Document standalone Pi preference, mise activation-or-shims contract, Homebrew/mise policy, optional Worktrunk shell integration, and fresh-shell acceptance.
Issue 2 should depend on Issue 1. No files or GitHub state were changed.