Repository navigation
Description
Problem
After #16646 a record declares what each command needs, and a check whose prerequisite is missing reads not run. Nothing installs those prerequisites: an agent or a person does it by hand each time a worktree is created or a host is new, and an unattended run can only report and stop.
Seen on 2026-11-16: the worktree skill's create script already runs npm ci on its own when it makes a worktree (reported by three workers; not yet read in the script by the filing session), which is an install outside any declared list.
Decision
Owner, 2026-11-16, typed in the GitHub Work session, verbatim: "I think being upfront with what the requirements are makes it easy for the agent to know: 'Okay, do I have the capability to install this stuff?' It should advocate and say, 'Hey, if it's something that repeatedly has to be installed, if it's in worktrees, there has to be some automated process.' Whether it's caching or something that just repeats or eliminates repeated friction, whether it's local or in unattended runs, CI workflows, making sure that we're caching things, all of that." He then accepted the recommendation that provisioning be its own issue, outside #16646. Posted by an agent session.
Open design (the owner's, by interview before any build)
- Where a provisioning step runs (worktree creation, a lane's setup, CI) and what it may install: only what the records'
requiresentries name, from a lockfile, with install scripts off? - How it squares with "unattended lanes install nothing" (Resolve ecosystem specifics from the consumer repository and align the enforcement ladder with the talk's pyramid #15703 AC5): provisioning as a separate, declared step outside the check, or an exception.
- What is cached, where, and for how long.
- What happens to the worktree create script's existing
npm ci. - How the ci-workflows TypeScript test runs once its record no longer installs its package, and who removes the subpackage's
node_modulesafterwards (deferred here from the fix(toolchain): a check whose tool or runtime is missing runs anyway and reads FAIL #16646 interview).
Done when
- The owner's answers to the design questions are recorded here.
- A declared prerequisite missing in a fresh worktree is installed by the provisioning step with no manual command, and an unattended run that cannot install still reports the not-run cell.
- Toolchain's not-run report points at this mechanism by name.
Related
session: GitHub Work
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 17, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: the ecosystem-commands contract schema, README and changelog, the provisioning step and its tests, .claude/ecosystems/typescript.yaml, the source-control worktree-create.sh and its create.md, and Toolchain's not-run report. Everyone who creates worktrees or runs the checks sees the change.
Reversible: yes; revert the change. Worktrees would then get root node_modules from the old npm ci call again.
Open questions: none
The newest recorded decision settles the last open design question: an undeclared root lockfile still installs with scripts off and a printed notice, until the contract's next major version. The earlier decision amendments stand, so I found no open question left. The work is to add the install object to the schema, add the provisioning step, fold the worktree script's npm ci into it, declare the TypeScript record's lockfile, and make the not-run report name the step. The change needs a path the issue lane could not push, so it is already on the host-run route.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 17, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.melodic-automation-lanes commentedon Nov 17, 2026
Not admitted to the issue lane: it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 17, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: A declared provisioning step, run at worktree creation and in CI setup, installs only what records' requires entries name from a lockfile, with caching, outside the check itself, and the worktree create script's npm ci folds into it.
Dependencies
Related work
Open questions
RECOMMENDED: A separate declared step at worktree creation and in CI setup, installing only requires-named items from a lockfile with install scripts off. Basis: judgment
RECOMMENDED: Provisioning is a separate declared step outside the check, so the check installs nothing; a lane that cannot run the step still reports the not-run cell. Basis: judgment
RECOMMENDED: The package manager's download cache, keyed on the lockfile hash, in CI cache storage and the local user cache, with default expiry. Basis: judgment
RECOMMENDED: Fold it into the provisioning step so there is one install path. Today it runs npm ci non-fatally when package-lock.json exists. Basis: plugins/source-control/skills/worktree/context/create.md:55
RECOMMENDED: The provisioning step installs it and the same step cleans up, keeping the check read-only. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 17, 2026
Decision recorded. The owner chose that a separate provisioning step installs declared prerequisites from the lockfile with install scripts off, while the check itself still installs nothing.
Question as put to the owner (Q51): provision a record's prerequisites automatically.
Owner's answer, 2026-11-17, typed in an agent session, verbatim: "Go with recommendations."
This records the owner's answer to the open design, so the done-when's first item ("The owner's answers to the design questions are recorded here") is met by this comment. Option A is the package of triage's five RECOMMENDED answers:
requiresentries name, from a lockfile, with install scripts off.npm cifolds into the provisioning step, so there is one install path.node_modules.This stays host work: the CI-setup part needs a step in
.github/workflows/, a path the issue lane refuses (.github/scripts/apply-patch/deny-rules.mjs, thegithub-workflowsrule/.github/workflows/**).Acceptance criteria
requiresentries name, from the lockfile, with install scripts off.npm ciis folded into that step, andplugins/source-control/skills/worktree/context/create.mddescribes the one install path.node_modulesafterwards.Posted by an agent session.
27 remaining items
melodic-automation-lanes commentedon Nov 21, 2026
The work-resolve-issue lane stopped on this issue (
patch-protected-path): the change needs a path the issue lane may not push, which a maintainer session builds by hand.It added
host-runand set Work status to confirmed: an agent run on a host builds it, and it waits on no decision from a person.In the run's words:
What the run says it did not do:
Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44944963587
To hand it back to the lane, remove
host-runand set Work status to agent-ready again.feat(source-control): provision a record's declared prerequisites
chore(source-control): mark the prerequisite lister executable
docs(ecosystem-commands): list the provisioning step as a record reader
docs(source-control): say in the helper's help when the step installs…
feat(source-control): install an undeclared root lockfile until the c…
test(toolchain): keep the not-run test inside its plugin and record it
kyle-sexton commentedon Nov 22, 2026
Decision recorded. Owner, 2026-11-22, chosen in the GitHub Work session (verbatim): "Fallback with end date (Recommended)".
Question: the provisioning step folds the worktree helper's
npm ciinto one install path that installs only lockfiles an ecosystem record declares. A repository whose records declare no lockfile would stop getting rootnode_modulesin new worktrees. Should an undeclared root lockfile still install, and for how long?Option chosen: "An undeclared root package-lock.json still installs (scripts off), with a printed notice telling the repo to declare it in its record. It's removed at the same contract major as 18187's legacy read, once the cross-repo sweep has given each repo a record."
This replaces the 2026-11-21 amendment's reading that an undeclared lockfile is never installed. The rest of that amendment, and decision amendments (2) and (3), stand.
Basis
.claude/ecosystems/read as ending "in the next major version of this contract, released once that sweep is complete" (docs/contracts/ecosystem-commands/README.md, "Legacy location", in that PR). Tying the fallback to the same major gives repositories one migration and one end date. feat(ecosystems): move ecosystem records to docs/conventions/ecosystems #18187npm ci --ignore-scripts --no-audit --no-fundthe declared path runs, so the 2026-11-17 decision "install scripts off" holds for it too.installentry, a skipped or unreadable one included, so a repository that has started declaring gets only what it declares.Done when
docs/contracts/ecosystem-commands/ecosystem.schema.jsondefines an optionalinstallobject on a prerequisite, withmanagerlimited tonpmand a required repo-relativelockfile, and a schema test rejects aninstallobject holding any other key.npm ci --ignore-scripts --no-audit --no-fundin the directory of eachinstallentry's lockfile and runs nothing for an entry withoutinstall, shown by a test with one entry of each kind.installentry and a rootnpm-shrinkwrap.jsonorpackage-lock.jsonexists, the provisioning step installs it with the same command and prints one stderr notice naming the lockfile and how to declare it underrequires; when any record declares aninstallentry, no undeclared lockfile is installed and no notice is printed; shown by tests of both cases.docs/contracts/ecosystem-commands/README.md("Provisioning") and the contract changelog state that this fallback ends in the contract's next major version, together with the legacy-location read..claude/ecosystems/typescript.yamldeclares the rootpackage-lock.jsonas arequiresentry with aninstallobject.plugins/source-control/scripts/worktree-create.shholds nonpm cicall of its own and calls the provisioning step, andplugins/source-control/skills/worktree/context/create.mddescribes that one install path with scripts off and the root-lockfile fallback.Posted by an agent session.