Skip to content

perf(plugin-profiles): read install records from disk in status - #17665

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17656-44768936970-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-17656-44768936970-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17656

Summary

Opened by the work-resolve-issue lane. The run's own summary:

profiles.mjs status and status --json now read the installed plugins with recordsFromDisk (plugins/installed_plugins.json), the same source the --session-start path already used. They no longer start a nested claude plugin list --json, which the issue measured at 1.3 to 3.8 s on its own. Both status paths read from disk now, so statusOf and recordedStatus stop taking a records callback and recordedStatus calls recordsFromDisk(where.configDir) directly. apply, launch/session plans and the install paths still use recordsFromCli. Field note for the PR body: status uses only the inventory ids from these records, which depend on id, scope and projectPath. The disk file supplies all three (recordsFromDisk adds the id), so no field status reports is lost. The CLI-only enabled field is not read by status.

Not verified

  • node --test for plugins/plugin-profiles (profiles.test.mjs, inventory.test.mjs) was not executed: this lane's Bash runs only the named wrappers, so no test runner could start. Left to the PR's CI.
  • The under-2-second figure is not a recorded measurement from this run. It is an assertion in the new test, which the PR's CI runs.
  • check-affected skipped: typos (not installed), comment-hygiene (network fetch denied), size-check (audit-size.sh missing from the lane checks tree), three validate-plugins sub-checks that run code from the checked tree. Left to the PR's CI.
  • tidy pass 5 (ai-slop:audit fix): detect.sh could not run in this lane. The 7-line changelog fragment got a manual rubric read only, with nothing found. Tidy passes 1-3 found nothing to change in the code lines. Pass 4 (write-for-humans) tightened one sentence of the fragment.
  • Untracked dotfiles at the checkout root (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) are sandbox artifacts, not part of this change. They were left untouched and not counted in the tidy measurement.

Fix

  • plugins/plugin-profiles/scripts/profiles.mjs: recordedStatus reads install records with recordsFromDisk(where.configDir); statusOf and recordedStatus drop the records-callback parameter; both status paths call statusOf(opts, where, env); the header line for status now says it reads…
  • plugins/plugin-profiles/lib/inventory.mjs: the API line for recordsFromDisk names status as its caller instead of only a session-start run.
  • plugins/plugin-profiles/scripts/profiles.test.mjs: the AC12 test writes its installed-since plugin to installed_plugins.json through installOnDisk instead of the stub claude plugin list file. A new #17656 test applies a profile, then runs status and status --json. It asserts both read…
  • .changes/plugin-profiles/work-resolve-issue-issue-17656-44768936970-1-991e25a9.md: patch changelog fragment describing the change.

Verification

The runner ran each check from the base copy against 5e2d276:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 8 fragments valid (run before and after tidy)
  • check-changed-skills: no changed skills, nothing to gate (run before and after tidy)
  • check-affected: 14 passed, 9 skipped over 4 changed files (run before and after tidy)
  • fresh-context review subagent over the whole diff: no correctness bugs found. It confirmed that no remaining caller uses the old arity and that no status code path starts claude. It confirmed that where.configDir in tests is HOME/.claude, where installOnDisk writes. It found no other status test…
  • Grep over plugins/plugin-profiles for recordsFromCli/recordsFromDisk call sites: recordsFromCli remains at the apply (603), session plan (693) and install (1629, 1676) paths
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44768936970

Left out: the items under Not verified.

Related

#17656

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed dc3343b40d838688068d7fb4de6003642dcf9ff7: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17665 (incremental, head dc3343b, blocking only)

I found no security issues in this push.

What changed since 5e2d276. One file changed, plugins/plugin-profiles/lib/inventory.mjs. The push deletes one comment line from the module's API header: the continuation that said recordsFromDisk was "for status, which must not start a nested claude". No code changed.

What I checked.

  • Executable code. The diff touches only a // comment. No logic, file path, command execution or input handling changed. The earlier review of 5e2d276 covers the code paths it describes.
  • Instruction surface. This is a code comment, not a standing instruction (CLAUDE.md, a skill or agent body, a rules file, or a hook list). Deleting it removes no guardrail.
  • Trusted paths and controls. The file matches no trusted-path glob. The push touches no manifest, userConfig key, workflow, token, kill switch or merge hold.
  • PR context. It contains no directives aimed at the review lane.

The lane had already reviewed an earlier head, so this review reported only CRITICAL and IMPORTANT findings. There were none of either.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed dc3343b40d838688068d7fb4de6003642dcf9ff7: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): no findings

This review covers only the push since 5e2d276886d36e86bd80d1e02dfb51341019baf4, which is one hunk in plugins/plugin-profiles/lib/inventory.mjs. It is blocking only because this lane already reviewed an earlier head.

What changed: the push deletes a single comment line from the API list at the top of the file (for status, which must not start a nested claude). No code changed, so behaviour is the same as at the head reviewed last time. That review found nothing, and its checks of the closing-issue criteria still hold.

Nothing in this push blocks the merge. I dropped two advisory points because the review is blocking only:

  • The recordsFromDisk line in the header now ends in a trailing comma.
  • The PR body's Fix line says the header now names status as the caller of recordsFromDisk, but after this push it names no caller.

Notes

  • Loosened checks would be marked: fail, the default, because the prompt has no loosened_check_verdict: or loosened_check_patterns: lines (patterns: 0). A deleted comment loosens nothing. The prompt has no loosened_check_decision_record: line, so the citation requirement was not checked.
  • The changed file matches no trusted-path glob, and no plugin manifest changed.
  • I found no embedded instructions in the PR context or the prior-findings file.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 44773875088

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed dc3343b
Run 44773875088

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head dc3343b40d838688068d7fb4de6003642dcf9ff7, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=dc3343b40d838688068d7fb4de6003642dcf9ff7 rubric=10.4.3 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 78bd07c Nov 20, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17656-44768936970-1 branch November 20, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

perf(plugin-profiles): have status read install records from disk instead of starting claude plugin list

0 participants