Skip to content

fix(aem-6-5-lts): guard Dispatcher runtime checks - #802

Open
abhishekgarg18 wants to merge 10 commits into
mainfrom
fix/aem-6-5-lts-dispatcher-correctness
Open

abhishekgarg18 wants to merge 10 commits into
mainfrom
fix/aem-6-5-lts-dispatcher-correctness

Conversation

@abhishekgarg18

@abhishekgarg18 abhishekgarg18 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #519, #495, and #497

What and why

Centralize 6.5 LTS/AMS Dispatcher runtime selection in the main entrypoint. State that this plugin does not provide an AMS Dispatcher MCP; confirm an approved tool before runtime checks, otherwise limit work to static review and mark tool-dependent checks NOT VERIFIED. Any approved Dispatcher tool checks the publish layer only, not Author-tier operations. The compatibility metadata and the plugin README no longer claim an AMS Dispatcher MCP exists.

The skill moves from skills/dispatcher to skills/aem-6-5-lts-dispatcher and the specialist guides from nested SKILL.md files to references/<specialist>/GUIDE.md: clients only load skills directly under skills/, and the name dispatcher is also used by the Cloud Service plugin (skill names are global). The README links follow the move. The description is reworded as a "Use when" trigger for the Tessl review; it covers the same scope.

How I checked it

  • npm run validate
  • node scripts/check-release-configs.mjs (44 configs, 0 broken)
  • node scripts/check-skills.mjs --list <rule>: no changed file on any list; aem-6-5-lts-dispatcher/SKILL.md 748 of 1000 tokens
  • tessl plugin lint plugins/aem/6.5-lts: valid
  • Relative links in changed Markdown files resolve; no file in the repository still links to 6.5-lts/skills/dispatcher/.
  • No live Dispatcher checks were claimed.

Checklist

  • The change is to one plugin, or to repository tooling
  • npm run validate passes
  • Paths, commands and skills that the change names exist
  • New scripts, hooks, MCP servers or network endpoints are called out above
  • The human label is set, if a person and not an agent wrote this

@abhishekgarg18
abhishekgarg18 marked this pull request as ready for review December 1, 2026 15:37
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

claude: approved on 89b7aa0

This round changes one sentence since the last review (1b82b2d → 89b7aa0). In the MCP Tool Contract of aem-6-5-lts-dispatcher/SKILL.md, "Dispatcher tool checks cover the publish layer only; do not use them as Author-tier operations" now reads "Dispatcher MCP checks report publish-layer evidence only; do not present them as Author-tier verification." That answers the last review's comment: the sentence now limits what may be claimed from the checks instead of forbidding author-farm validate and lint, so it no longer conflicts with the conditional author-tier trace in mcp-tool-orchestration.md:102.

Checks. npm run validate and the release config check pass on both trees (exit code 0, 44 configs, 0 broken). The plugin installs in all four clients, and each loads 5 of 5 skills. No new security, reference or drift problem.

Test drive. No eval this round. The change rewords one sentence that gates a tool the plugin says it doesn't provide, and earlier rounds' runs are on the record.

Redundant lines. None. I probed the changed sentence twice:

  • The baseline already knew the second clause: a passing Dispatcher check doesn't verify Author.
  • It hedged on the first clause. It said "primarily publish", but that a check run against an author dispatcher would tell you about Author.

So the line stays; see the line comment. Lines probed: 1. Redundant: 0. Could not probe: 0.


## Runtime Selection

Before runtime-specific edits, confirm project evidence identifies AEM 6.5 LTS or AMS. If the runtime evidence is missing or conflicting, ask the user; do not silently use Cloud Service instructions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude: This line is redundant. I asked the baseline (a small model with no tools that has not seen this skill) two ways:

  1. "I need to edit Dispatcher config files in an AEM project but I can't tell whether it targets AEM as a Cloud Service or AEM 6.5 on Adobe Managed Services. What should I do before making the edit?" Answer: "Figure out which platform you're on before you touch anything." It listed checks on the evidence (the pom.xml dependencies, status-productinfo, the Cloud Manager configuration) and said to ask the release or DevOps owner.
  2. "An AEM repo has a dispatcher folder, but nothing in it shows whether it runs on AEM Cloud Service or on AEM 6.5 under Adobe Managed Services, and the hints conflict. Should I just go with Cloud Service conventions?" Answer: "Don't silently default to Cloud Service. Resolve the ambiguity first…" It said to check aem-sdk-api against uber-jar 6.5.x and .cloudmanager/, and "ask instead of guessing".

Both answers give this guidance without the skill. Remove the ## Runtime Selection section to get the approval.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the ## Runtime Selection section.


# Dispatcher Technical Advisory (AMS)

Use for conceptual Dispatcher questions about rewrite behavior and security headers; cite official docs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude: The baseline already knew the "cite official docs" part. Asked "What sources should your answer rely on when explaining AEM Dispatcher rewrite rules and security headers?" and "Where should the claims in an explanation of AEM Dispatcher configuration come from?", it named Adobe's Experience League Dispatcher docs both times. Line 30 of this guide also says "cite official docs" already. The scope part of the line can stay; consider dropping the trailing "; cite official docs".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that line from the technical-advisory guide.

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

codex: approved on 89b7aa0

The revised guard clarifies that Dispatcher MCP evidence does not verify Author-tier health. Prior redundancy findings are resolved. Base and head validation and release checks pass; all 117 relative links resolve, and all four clients load 5/5 direct skills. A Claude comparison asking whether a successful publish-page check proves Author login/editing health loaded the renamed skill; both runs correctly answered no. No blocking regression confirmed.

Redundant lines
None. Lines probed this round: 0; redundant: 0; unable to probe: 0. The changed action guard is exempt; previously reviewed unchanged instructions were not probed again.


# Dispatcher Technical Advisory (AMS)

Use for conceptual Dispatcher questions about rewrite behavior and security headers; cite official docs.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex: The baseline already recommended official Adobe and Apache documentation when asked which local guide handles conceptual Dispatcher rewrite/header questions and which sources it should cite. It did not identify this specialist guide, so the routing portion earns its place; only the citation advice was already known.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that line from the technical-advisory guide.


## MCP Tool Contract

This plugin does not provide an AMS Dispatcher MCP. For 6.5 LTS/AMS, limit work to explanation and static review unless an approved tool is explicitly configured; report each unavailable tool-dependent check as NOT VERIFIED and never fabricate tool output. This entrypoint's runtime and MCP gates govern every linked specialist; do not follow a specialist guide to invoke an unavailable tool or claim runtime verification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex: The Claude comparison loaded this skill and correctly marked unavailable checks NOT VERIFIED. The run without the plugin also declined to assess runtime health and requested configuration/log evidence, so both were equally sound for this task. This run confirms no regression but does not demonstrate an improvement in the health assessment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, no change needed.


## MCP Tool Contract

This plugin does not provide an AMS Dispatcher MCP. Dispatcher tool checks cover the publish layer only; do not use them as Author-tier operations. For 6.5 LTS/AMS, limit work to explanation and static review unless an approved tool is explicitly configured; report each unavailable tool-dependent check as NOT VERIFIED and never fabricate tool output. This entrypoint's MCP gates govern every linked specialist; do not follow a specialist guide to invoke an unavailable tool or claim runtime verification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude: "Dispatcher tool checks cover the publish layer only; do not use them as Author-tier operations." This conflicts with references the skill still ships:

  • references/config-authoring/references/config-authoring/mcp-tool-orchestration.md:102 says to run trace_request on a publish URL "and (when available) one author-tier URL trace".
  • ams-6-5-guardrails.md lists an author-tier farm (000_ams_author_farm.any) with its own AUTHOR_* variables.

This line says the entrypoint's gates override every specialist guide, so an agent will skip the author-tier trace. It may also refuse to validate or lint the author farm.

On AMS the Dispatcher also sits in front of Author. When I asked the baseline, it said to point validate and lint at both tiers. The publish-only scope fits the Cloud Service Dispatcher MCP, but this plugin approves no tool.

Either:

  • name the tool this scope applies to, or
  • drop the author-tier step from mcp-tool-orchestration.md:102 too.

Also say whether "Author-tier operations" means AEM Author content operations or the author-farm Dispatcher config. The sentence can be read either way.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scoped the sentence to what the checks report: "Dispatcher MCP checks report publish-layer evidence only; do not present them as Author-tier verification." This keeps the #519 requirement without forbidding static validate/lint of the author farm, so the guide's "(when available) one author-tier URL trace" stays as a conditional for a tool that can actually trace that tier.


## MCP Tool Contract

This plugin does not provide an AMS Dispatcher MCP. Dispatcher MCP checks report publish-layer evidence only; do not present them as Author-tier verification. For 6.5 LTS/AMS, limit work to explanation and static review unless an approved tool is explicitly configured; report each unavailable tool-dependent check as NOT VERIFIED and never fabricate tool output. This entrypoint's MCP gates govern every linked specialist; do not follow a specialist guide to invoke an unavailable tool or claim runtime verification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude: Not blocking. The baseline already knew part of this sentence. I asked "I ran an automated Dispatcher check against an AEM 6.5 AMS setup and it passed. Can I tell my team the AEM Author tier is verified as working too?" It answered "No. A passing Dispatcher check doesn't verify the Author tier" and suggested saying "Author-tier verification is still pending." So "do not present them as Author-tier verification" is known without the skill.

It was less sure of the first clause. Asked which tier a Dispatcher MCP tool's results describe on AMS, it said "primarily publish", but added that a check run against an author dispatcher host would tell you about Author. "Report publish-layer evidence only" is the part that earns its place. If you trim the sentence, keep that part.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted — keeping the sentence; the "report publish-layer evidence only" clause stays as the load-bearing part.


## MCP Tool Contract

This plugin does not provide an AMS Dispatcher MCP. Dispatcher MCP checks report publish-layer evidence only; do not present them as Author-tier verification. For 6.5 LTS/AMS, limit work to explanation and static review unless an approved tool is explicitly configured; report each unavailable tool-dependent check as NOT VERIFIED and never fabricate tool output. This entrypoint's MCP gates govern every linked specialist; do not follow a specialist guide to invoke an unavailable tool or claim runtime verification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

codex: The Claude comparison loaded this skill and correctly reported Author login/editing as NOT VERIFIED after a successful publish-page check. The run without the plugin reached the same conclusion. Both answers were sound, so this task confirms no regression but does not demonstrate an improvement from the skill.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted.

This branch has not been deployed

No deployments
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