Repository navigation
docs(plugins): clarify hook runtime activation - #77629
vincentkoc merged 6 commits into
Conversation
This comment was marked as low quality.
This comment was marked as low quality.
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 12:13 PM ET / 16:13 UTC. ClawSweeper reviewWhat this changesThis PR adds canonical plugin and CLI troubleshooting guidance explaining how hook-only plugins signal Gateway startup intent and how to verify their live registration. Merge readinessKeep open for normal maintainer review. The current main documentation still explains general plugin enablement and runtime inspection but not the hook-only Gateway startup-selection rule this PR adds; the latest head is a small docs-only clarification with no supported patch defect. Likely related people: vincentkoc (high confidence) carried the current-head documentation rewrite and is assigned to this PR. Priority: P3 Review scores
Verification
How this fits togetherGateway startup plans which configured plugins to load from manifest metadata and plugin policy. A hook-only plugin that is enabled but not selected never registers in the running Gateway, so the docs direct operators to declare startup intent, restart the Gateway, and inspect the live runtime. flowchart LR
A[Plugin manifest and config] --> B[Gateway startup planning]
B --> C{Hook startup intent present?}
C -->|Yes| D[Plugin loads in Gateway]
C -->|No| E[Plugin absent from runtime]
D --> F[Runtime hook registration]
F --> G[Runtime inspection output]
E --> H[Plugin troubleshooting guidance]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +14. Total +14 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the docs-only patch onto current main, keep the two concise startup-intent diagnostics in the canonical plugin guides, and land it if the assigned reviewer confirms the wording still matches the activation planner. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes documentation only. The underlying operator path is concretely described through Gateway restart and Is this the best way to solve the issue? Yes. Adding the explanation to the consolidated plugin guide and CLI troubleshooting page is narrower and more maintainable than duplicating guidance in older hook-specific pages; a final wording refresh against current main is still needed. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against b4d14d784806. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
5c224eb to
060f3c1
Compare
|
Thanks @byungskers! The current revision already adds a concrete manifest snippet right below that note in |
|
Heads up: this PR needs to be updated against current |
|
This pull request has been automatically marked as stale due to inactivity. |
Preserve the contributor branch while replacing the stale example with the reviewed current-runtime documentation.
Preserve contributor branch ancestry while moving the guidance to canonical plugin docs.
Co-authored-by: Brandon Zarnitz <[email protected]>
|
Merged via squash.
|
* docs(plugins): clarify hook runtime activation * docs(plugins): correct hook startup activation guidance * docs(plugins): clarify hook runtime activation * docs(plugins): clarify hook runtime startup Co-authored-by: Brandon Zarnitz <[email protected]> --------- Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Hook-only plugins can be installed and enabled yet remain absent from the live Gateway when their manifest and config do not signal startup intent. The canonical plugin docs did not explain that selection path or how to diagnose it, which led authors to rely on channel metadata that does not activate a hook-only runtime.
Maintainer Rewrite
The earlier draft duplicated activation guidance in older plugin pages. This exact head moves the verified explanation to the consolidated public docs only:
docs/tools/plugin.mddocs/cli/plugins.mdIt documents manifest
activation.onCapabilities: ["hook"], explicit hook-policy startup intent, and the precedence of global disable, deny, allowlists, and per-plugin enablement. No runtime behavior changes.Closes #77435
Evidence
Exact head:
9b4b6965a33104c5048b4f49a5f200dfe240193esrc/plugins/gateway-startup-plugin-activation.tsplugins.entries.<id>.hooks.allowConversationAccessgit diff --checkpassedThe docs were not deployed from this branch.
Public docs: