Skip to content

Record Engine plugin authoring as a deliberate SDK audit exclusion - #296

Merged
GavinLucas merged 2 commits into
mainfrom
docs/exclude-plugin-authoring
Oct 26, 2026
Merged

GavinLucas merged 2 commits into
mainfrom
docs/exclude-plugin-authoring

Conversation

@GavinLucas

Copy link
Copy Markdown
Collaborator

Why

plugin_create and plugin_push came in from an SDK audit (#172) and were removed in 2.2.8 (#262) with no replacement: building and publishing an Engine plugin is a build-pipeline job for the docker plugin CLI, and docker-py's Plugin.push() posts to the pull route. The removal was never added to the "SDK audit exclusions" list in architecture/docker-sdk.md, which is what the audit reads to avoid re-proposing rejected candidates. The 2026-10-26 audit therefore saw POST /plugins/create as uncovered and proposed plugin_create again (#292, closed as declined).

What

One entry in the exclusions list covering POST /plugins/create and POST /plugins/{name}/push, with the reasons. Install, configure and upgrade stay covered.

Testing

Docs only. pre-commit is clean on the file. Whether the audit routine honours the entry can only be seen on its next run; it is the same mechanism every other entry on the list relies on.

plugin_create and plugin_push came in from an SDK audit and were removed in 2.2.8 with no
replacement, but the removal was never added to the exclusions list the audit reads.  The
next audit therefore saw POST /plugins/create as uncovered surface and proposed plugin_create
again.  The entry records the decision and its reasons so the audit stops re-deriving it.
@github-actions

Copy link
Copy Markdown

Claude review: approve

Scope

The range changes one file: architecture/docker-sdk.md. It adds six lines, a new entry in "SDK audit exclusions (deliberate non-candidates)" for POST /plugins/create and POST /plugins/{name}/push. I read the whole file, AGENTS.md, CLAUDE.md and .agents/policy/review-context.md. I reviewed the entry against those rules.

What I checked

  • History in the entry.
    • The tools were "added from an audit": confirmed by 963e49b, "Add image_prune_builds, plugin_create and plugin_push from the SDK audit", first tagged in v2.2.3.
    • They were "removed in 2.2.8 with no replacement": confirmed by 979d7f1 (Remove seven tools whose jobs other tools can do, and fix plugin_upgrade #262), first tagged in v2.2.8. Its message says: "plugin_create and plugin_push go with no replacement: plugin authoring is a build-pipeline job for the CLI".
    • The reasons given in the entry match that commit.
  • The commit message's motivation. It says an audit proposed plugin_create again. Commits 13a34fb and 6f36d41 on another ref ("Cover docker plugin create with plugin_create...") back this up. So the exclusion fills a real gap, and the file's own rule ("Anything deliberately not wrapped ... belongs here") calls for it.
  • "see above". This points at line 20, which is the single place recording that docker-py's Plugin.push()/push_plugin() posts to /plugins/{name}/pull. The new entry refers back to it and does not restate it.
    • I could not check this against docker-py's source myself: there is no virtualenv in the checkout, and installing docker-py 7.2.0 needed approval I did not have. I relied on line 20 and 979d7f1.
  • Remaining plugin tools. docker_mcp/tools/plugins.py still has plugin_install, plugin_configure and plugin_upgrade, and has no create or push tool. Nothing else in the repository mentions plugin_create or /plugins/create, so no other document is out of date.
  • Style and format.
    • Every line is within the 120-character limit.
    • The text is plain ASCII and British English.
    • It uses two spaces after a full stop, as DK.10.5 requires. The entries around it use one space, but the new text follows the house rule, so I am not raising it.
  • Placement. Docker SDK coverage decisions belong in this list. AGENTS.md sends readers here, and its "Deliberate - do not flag" list only copies some of these entries, so it does not need this one.

Findings

  1. Maintainability: the entry records what was done (architecture/docker-sdk.md:121-122). "were added from an audit and removed in 2.2.8 with no replacement" is a history of past changes. It will stay true, but git already holds it: 963e49b for the addition and 979d7f1 (Remove seven tools whose jobs other tools can do, and fix plugin_upgrade #262) for the removal, and this PR's commit message repeats it.

    • What the audit needs is the decision and its reasons, which the rest of the entry gives.
    • Suggestion: something like "plugin_create and plugin_push are not to be re-added: building and publishing...". If you want a pointer to the removal, give the commit or PR rather than the history.
    • Not blocking.
  2. Maintainability: the entry describes what the code covers (architecture/docker-sdk.md:125). "Installing, configuring and upgrading plugins stay covered." describes what the code provides. docker_mcp/tools/plugins.py (plugin_install, plugin_configure, plugin_upgrade) and the registered tool list already answer that. The sentence would become untrue if those tools were renamed or folded together, with nothing to flag it.

    • The useful part is the limit on the exclusion. Say it as a rule, e.g. "The exclusion covers authoring only; it says nothing about the plugin lifecycle tools."
    • Not blocking.

Nothing in the change is wrong, and nothing should block a merge.


full review of ea33a113a3f6..05e18cbe1c90. Run.

The entry narrated the tools' history, which git already holds, and listed which plugin tools
remain, which the code already answers and which would go stale on a rename.  It now says what
the audit must not do, points at the removal, and bounds the exclusion to authoring.
@GavinLucas

Copy link
Copy Markdown
Collaborator Author

Both points taken in ce7b3fe. The entry now states the decision ("do not re-add plugin_create or plugin_push") with a pointer to #262 instead of the history, and bounds the exclusion as a rule ("covers authoring only, not the tools that manage an installed plugin") instead of listing which tools remain.

@github-actions

Copy link
Copy Markdown

Claude review: approve

Resolved

  • Finding 1 (maintainability, entry recorded history): fixed. architecture/docker-sdk.md:121 now states the decision, "do not re-add plugin_create or plugin_push", and points to Remove seven tools whose jobs other tools can do, and fix plugin_upgrade #262. The earlier add/remove narrative is gone.
  • Finding 2 (maintainability, entry described what the code covers): fixed. The last sentence is now a rule, "The exclusion covers authoring only, not the tools that manage an installed plugin". It no longer lists which tools remain.

Still open
None.

Declined
None.

New
None. The range changes only architecture/docker-sdk.md, and I read the whole diff.

  • The "(removed in Remove seven tools whose jobs other tools can do, and fix plugin_upgrade #262)" pointer is a reference to where the removal is recorded. It is not a claim about current state, so I am not raising it.
  • The "would cost every eager session its description" wording is a reason for the rule, and it reads correctly in the conditional.
  • Line lengths stay within 120 characters, the text is ASCII, and two spaces follow full stops as the house rule requires.
  • I did not re-check docker-py's Plugin.push() source. That claim is unchanged from the earlier round and still rests on line 20.

delta review of 05e18cbe1c90..ce7b3fea4b49. Run.

@GavinLucas
GavinLucas merged commit b4e4890 into main Oct 26, 2026
19 checks passed
@GavinLucas
GavinLucas deleted the docs/exclude-plugin-authoring branch October 26, 2026 10:54
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.

1 participant