Repository navigation
Description
Problem
Configuring the fleet on a new or changed machine means running each plugin's setup skill, and each one re-derives the same host facts: which binaries are on PATH, core count, which identity domains exist and where their tree boundaries fall, which gh config belongs to which tree, where worktrees and reports already live. None of that discovery is plugin-specific and none of it is stored, so every machine and every re-run repeats it, and nothing records whether a kept default was examined or just never looked at.
Main has 57 plugin-level setup skills (plugins/*/skills/setup/SKILL.md). All 57 set disable-model-invocation: true and all declare user-invocable. No skill, agent, or orchestrator can invoke them: docs/conventions/invocation-mode/README.md:69 states the invocation-reach invariant (a disable-model-invocation: true skill cannot be invoked by any other skill). So an orchestrator that "drives the setup skills" is impossible in its naive form.
Evidence
Verified this pass (origin/main at 946caf1):
- 57 setup skills, 57 with
disable-model-invocation: true, 0 missinguser-invocable(grep overplugins/*/skills/setup/SKILL.md). The item's counts (47 skills, one missinguser-invocableingithub) are stale; thegithubgap no longer exists. - The gate's rationale is now recorded, which the item said it was not:
docs/plugin-philosophy.md:500-503(setup matches upstream's rule for the flag, "workflows with side effects that you want to trigger manually") anddocs/conventions/invocation-mode/README.md:59(setup skills are exception class (ii)). plugins/claude-ops/skills/hassetup,plugins,inventory,audit-install-state; none stores host facts for reuse. Nomachine-profileexists anywhere inplugins/ordocs/.- Related open issue hooks: missing external tools are not surfaced to the user; add a model-invocable fleet-wide prerequisites check (no auto-install) #4240 asks for the same unblock from the prerequisites angle: its second ask is that setup skills drop
disable-model-invocationforcheckonly and keep it forapply, and its third is a model-invocable fleet-wide prerequisites check underclaude-ops:plugins.
Carried from the item (measured by its author on one machine, not re-measured): a full pass over 140 userConfig options across 33 plugins left 108 at default, 3 already set, 3 blocked, and needed about five genuine operator answers. Nearly all the effort was host discovery. The concrete failure it records: an option holding a profile name was recorded "keep the default" with a written rationale while a profile of that name existed on disk in the repo, and a claim that the fleet had "no per-repo config layer" was made without reading docs/conventions/config-cascade/README.md, which defines exactly that layer.
Not verified: whether 140/33 still holds on main.
Proposed approach
A driver, not a replacement. Each plugin's setup keeps its own prerequisite logic (it ships and versions with the plugin). The new surface discovers the host once, stores it, and hands each setup the answers.
Decide the unblock first; pick one:
- Orchestrate by instruction. The profile emits an ordered list of
/<plugin>:setup checkinvocations with the answers each needs; the operator types them. Respects the gate; costly for the operator. - Split read from write (recommended, and the same as hooks: missing external tools are not surfaced to the user; add a model-invocable fleet-wide prerequisites check (no auto-install) #4240's second ask):
checkbecomes model-invocable, through either a separate model-invocable read-only skill or a documented script under each plugin'sscripts/, whileapplystays operator-gated. Requires a new invocation-mode class or an amendment to class (ii) indocs/conventions/invocation-mode/README.md, since that doc says the class list is the unit of extension. - Relax the gate on
checkonly. Same effect as 2 with less structure; needs the class (ii) rationale revisited.
Design rules the item established, which the implementation must enforce structurally:
- An unset option whose value is a path, profile, identity, root, or name is a question: discovery must look on disk before a verdict, and the verdict cites what it found or states that it looked and found nothing.
- Verdicts are
default-verified(looked, here is what was seen) ordefault-unexamined, never a barekeep. Do not write a value equal to its default just to mark it decided. - Resolve each value through the layer and channel its owning surface declares (
docs/conventions/config-cascade/README.md,docs/conventions/hook-config-delivery/README.md) and record which supplied it. - Detect identity domains per tree (conditional git includes, per-tree
GH_CONFIG_DIR):pluginConfigshas one slot, and a profile that misses the split writes one domain's identity machine-wide. - Detect local guards that will block an apply (for example immutable git-config include files) and emit the command for the operator instead.
- Degrade without hard dependencies: use
discovery/planningskills when installed, native agents otherwise, and say which mode ran. - Read-only until an explicit confirm gate.
- Where an option cannot express what discovery found, offer to file a gap with the topology attached.
- Results produced by reproducing a setup skill's probes (rather than running it) are labeled reproduced.
Placement to decide: a skill in claude-ops (owns fleet state and has a setup) versus a new plugin. Main risk is overlap with machine-health (host facts, a declared-configuration drift category), claude-config, and claude-memory; the profile should feed machine-health's drift check rather than compete with it. Name suggestion: machine-profile, with actions profile, apply, diff, explain.
Open questions: where the profile lives (plugin data dir, ~/.claude, or a repo); one document or per-domain documents with a shared machine section; what happens when the operator hand-changed a value the profile set (warn, never silently re-assert).
Acceptance criteria
- A recorded decision on the unblock (option 1, 2, or 3), with the invocation-mode doc updated if option 2 or 3 is chosen, coordinated with hooks: missing external tools are not surfaced to the user; add a model-invocable fleet-wide prerequisites check (no auto-install) #4240.
- A recorded placement decision (claude-ops skill or new plugin) that names how it avoids duplicating
machine-health. - A design doc covering storage location, per-domain shape, verdict vocabulary (
default-verified/default-unexamined), and the manual-change policy. - Re-running discovery on an unchanged machine reports no change and asks nothing.
- Every recorded option state carries the command or path that produced it; a verdict with no observation cannot be emitted (tested).
- Discovery is read-only; apply is behind an explicit confirm.
Constraints and gotchas
- Do not absorb the setup skills' logic; they own their prerequisites.
- Any change to the setup contract touches 57 skills and the
validate-plugin-contracts.mjssetup-contract check; each touched plugin needs a version bump and CHANGELOG entry. - The source item describes a private multi-identity machine; keep host specifics out of the design doc and tests (use fixture trees under a scratch HOME).
Context
Source: local handoff item 20260817-215914-machine-profile-setup-orchestrator-skill-proposal.md (retired into this issue). Related: #4240 (prerequisites check, same gate), docs/conventions/config-cascade/, docs/conventions/hook-config-delivery/, docs/conventions/invocation-mode/.
Activity
docs(machine-health): park machine-profile orchestrator (#4666) (#4924)
docs(out-of-scope): state the ledger as rejections only and fix false…
docs(out-of-scope): drop stale #4240 closure sentence from machine-pr…
kyle-sexton commentedon Sep 29, 2026
Reopened for an owner decision. This comes from the 2026-09-29 audit of the Cursor agent run. No option is implemented; nothing here is a decision.
Question
What happens to the machine-profile idea now that #5096 (closing #4240) shipped a model-invocable read-only surface without a class (ii) amendment?
Facts
docs/out-of-scope/machine-profile.md(docs(machine-health): park machine-profile orchestrator (#4666) #4924). That is a fourth outcome the issue did not offer, and it went against the issue's recommended option 2./<plugin>:check, andclaude-ops:prerequisitesreadsprerequisites.json. The 58 setup skills stay model-hidden, and the context7 and playwright rows still name model-hidden setup checks.Options
/<plugin>:setupcheck lines.checkonly.Recommendation (a recommendation, not a decision)
Option 2, narrowed to a design doc first: storage location, per-domain shape, default-verified and default-unexamined vocabulary, manual-change policy. It reuses the #5096 check-skill mechanism and feeds machine-health instead of competing with it.
Basis: the #4666 body (recommends option 2), the #5096 diff (read-only check skills exist),
docs/out-of-scope/machine-profile.md(placement overlap with machine-health). The placement half is judgment and stays an open question for the owner.What the decision unblocks
Options 2 and 3 open a fleet contract change (setup contract plus invocation-mode class (ii)) and version bumps in every touched plugin. Option 4 lets the owner close it as not planned.
docs/out-of-scope/machine-profile.mdis an unratified agent proposal: a Cursor run wrote it, and the owner has not ruled on it. It stays on main with its "Park. Do not build." decision until the owner rules; the decisions-docs fix group then deletes or rewrites the file to match the ruling, and corrects its false facts now ("#4240 is open", the count of model-invocable check skills). The park doc and its 0.62.17 changelog entry are left as they are here. The setup-skill count is 58 on main as of 2026-09-29, all withdisable-model-invocation: true; the issue body's 57 predates one more setup skill. Labelsstatus: needs-decisionandneeds-humanare kept on this issue.docs(out-of-scope): make the machine-profile recheck trigger observable
docs(out-of-scope): name #4240 question 2 as the open owner ruling in…
fix(claude-ops): correct doctor claims, changelog, lanes and prerequi…
docs(out-of-scope): mark machine-profile unratified; correct the chec…
3 remaining items
docs: design a re-runnable machine profile and place it in claude-ops (…
docs: remove agent-encoded decisions and correct decision records (#5288
kyle-sexton commentedon Oct 1, 2026
Owner decision (2026-10-01): approved the recommendation ("go with recommended", the owner's reply to the batch decision page that listed this question and its recommendation).
Question: ratify docs/specs/machine-profile-design.md and its three open-question recommendations, and does the claude-ops machine-profile build start now?
Chosen option A: ratify the design as written. Leave class (ii) and the setup skills hidden (no fleet contract change), ratify per-domain machine sections keyed by tree, and defer the machine-health config check until the profile exists. Authorize the build of the claude-ops machine-profile skill, scripts, tests and its own version bump only, meeting the design doc's three build acceptance criteria.
Next: an agent comments the ratification, records the rulings in the spec's Open questions and Out of scope sections, and builds the claude-ops machine-profile skill in a draft PR (read-only discovery, apply needs a confirm, tests against a fixture HOME). Only claude-ops gets a version bump and CHANGELOG entry; no setup contract or class (ii) change.
feat(claude-ops): add the machine-profile skill
fix(claude-ops): read git identity domains from a neutral directory
feat(claude-ops): wire machine-profile into the manifest, README and …
fix(claude-ops): keep the machine-profile ledger entry to declined op…
fix(claude-ops): keep include paths out of machine-profile fact keys
fix(claude-ops): bracket credential words in every machine-profile ke…
feat(claude-ops): add the machine-profile skill (#5690)
kyle-sexton commentedon Oct 1, 2026
Owner decision (2026-10-01): accepted the recommendation ("accept all recommendations" and "I want you to do all of this for me", the owner's reply to the list that named this item).
#5690 merged the
/claude-ops:machine-profileskill. Criterion 1 asked for an invocation-mode doc under option 2, which the owner ruled out, so nothing remains.