Skip to content

Gate optional plugin calls on enabled skills and record the profile in handoffs #16430

Description

@kyle-sexton

Parent

Refs #16428: Ship the plugin-profiles plugin and remove the core bundle (sibling effort; this item ships as its own pull request and merges before the container's)

Depends on

  • none: on the frontier now

Outcome

Optional cross-plugin calls across the marketplace check whether the other plugin's skill is available (enabled), not merely installed, so a plugin a profile switched off takes its documented fallback. /session-flow:handoff writes the plugin profile's restore entry into its save-point when the profile skill is available, and nothing about profiles otherwise. The ADR for the plugin profiles effort is recorded.

Demo: in a session with a plugin installed but disabled, a gated call takes its fallback (the fallback eval passes); a handoff written with plugin-profiles absent contains no profile entry.

Decisions

  • Q63: the handoff names one skill and action, /plugin-profiles:profile status, behind an availability gate, and writes the entry it prints as given; no output format is parsed.
  • Scan Q6 / C4: the seam-phrasing gate reads "among the available skills (enabled)" instead of "installed", with an eval for the installed-but-disabled case.
  • Hook-unit rule (owner): a hook unit never depends on a skill, an agent or any file of another plugin; skill plugins may read what a hook unit records through a documented path and fall back when it is off. Recorded in the review rules and the ADR; no CI check (Q70).
  • One ADR records the one-way doors: profile file format and keys, profile homes (a departure from ADR 0075 fix 9 for authored user data), the marketplace governance rule, the extend rule, the hook-unit rule and the two hook plugin names, and the removal of core.

Key interfaces

The seam-phrasing contract (gate, fallback, ownership framing). The handoff save-point's "Environment to re-establish" section gains one gated sentence. Gate sites are classified first: fixtures and plugin-sync wording are not gates and stay unchanged. Conventions followed: the seam-phrasing contract, the review rules for skills and hooks, ADR template via /architecture:record-decision.

Review criterion (owner): "Make sure we're applying solid principles: Single Responsibility Principle, DRY, Single Source of Truth principle, so no duplication. Make sure we're adhering to general good practice, best practice, and software engineering principles: low coupling, high cohesion; things that change together live together; feature vertical slice architecture."

Done when

  • AC14: the handoff structure reference contains exactly one gated sentence naming /plugin-profiles:profile status, and a handoff without the plugin writes no profile entry.
  • The seam-phrasing contract no longer contains "if that plugin is installed"; every classified gate site uses the enabled wording; non-gate sites are unchanged.
  • The edits the lifecycle scan found in the session-flow continuation and orient skills, the planning plan skill, and the knowledge course-digest skill are made after re-reading each site.
  • The ADR is merged and the hook-unit rule is in the hook review rules.

Checked outside the pull request

Out of scope

  • The plugin-profiles plugin itself and the hook moves.

Activity

  1. added
    agent-ready
    on Nov 15, 2026
  2. self-assigned this
    on Nov 15, 2026
  3. added
    needs-triage
    on Nov 15, 2026
  4. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: make optional cross-plugin calls check that the other plugin's skill is enabled (not just installed), have /session-flow:handoff write one gated /plugin-profiles:profile status entry, and record the plugin-profiles ADR with the hook-unit rule in the hook review rules. The body already records the decisions (Q63, Scan Q6/C4, hook-unit rule) and an exact done-when list, so nothing is missing. The fallback eval item is reported as passed in a comment (4 of 4 runs). The comments say #16450 closes this issue on merge with the ADR and gate-site sweep. This is a sibling of #16428 (refs only, not a duplicate). I found no other open issue asking for the same thing and no merged pull request that already fixes it.

    Automated triage. A maintainer reviews it.

  5. removed
    needs-triage
    on Nov 15, 2026
  6. melodic-automation-lanes commented on Nov 15, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"d64fed3397fe221b55ea8affed185f85fc1946bd92dcefbb8a216b60575cfbf9","body_sha256":"792761791491f6065ab00dddfc15061114a4af6ef71e533b9fc19a7a1cf6b7ac"}

  7. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor
    No description provided.
  8. github-actions commented on Nov 15, 2026

    @github-actions
    Contributor
    No description provided.
  9. melodic-automation-lanes commented on Nov 15, 2026

    @melodic-automation-lanes
    Contributor

    Pull request #16446 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  10. added
    host-run
    on Nov 16, 2026
  11. kyle-sexton commented on Nov 16, 2026

    @kyle-sexton
    MemberAuthor

    Fallback eval done: plugins/session-flow/evals/ho-disabled-profile-plugin-no-entry (from #16446) passed 4 of 4 runs within its 4-run budget, on Claude Code 2.1.325 with claude-opus-5-5, from a clone of main at a42f369.

    Run Arms Score Graders (no plugin-profiles Skill call / no profile entry / save-point written) Validity
    1 with + without 1.00 (without 1.00) pass / pass / pass VALID
    2 with only 1.00 pass / pass / pass from the 3-run pass
    3 with only 1.00 pass / pass / pass from the 3-run pass
    4 with only 1.00 pass / pass / pass VALID

    Run 4 first failed to start: the CLI refused it because Docker Desktop had put links back into ~/.docker. It was rerun through the eval skill's link swap. Runs 2-4 used --ablation none because the without-plugin arm scores 1.00 by construction and cannot show a difference. Total cost about 4.3 USD (list-price estimate), about 1 USD per with-plugin run.

    This was the one Done-when item #16446 and #16450 had both left open. #16450 now closes this issue on merge, together with the ADR and the gate-site sweep it carries.

  12. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  13. melodic-automation-lanes commented on Nov 16, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: it carries host-run; merged pull request #16446 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  14. kyle-sexton commented on Nov 16, 2026

    @kyle-sexton
    MemberAuthor

    The done-when edit asked for by the pr-verify fail note on PR #16450 is already made in this body: four done-when items, with the fallback eval (4 of 4 runs) and AC7 under "Checked outside the pull request". #16428 needs no edit; its Brief already lists AC7. Please do not edit either body again without asking the control-hub session "Plugin Presets" first: a second edit can undo the layout the verifier reads.

  15. removed
    host-run
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Fields

Work status

confirmed

Priority

medium

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions