Repository navigation
fix(aem-cloud-service): correct replication contracts - #520
abhishekgarg18 wants to merge 16 commits into
Conversation
Preserve supported CQ publishing and correct agent, listener, queue, and delivery guidance against public Cloud and LTS APIs. Restrict flush clients to trusted sources and require approval for queue mutations. Refs #518 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Tessl Plugin Lint
|
Drop guardrail notes, link rewrites, docs/compile test scripts and example rewrites. Keep detector, validator, listener, bulk-limit, preview-status, queue-monitoring and LTS API corrections, verified against aem-sdk-api 2026.10 and uber-jar 6.6.3 apis. Refs #518 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Name publish, unpublish, queue, and runtime-specific requests in skill descriptions. Refs #518 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore code-assessment and migration files; retain only AEM replication and content-distribution skill changes. Refs #518 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
aem-replication description: this branch's rewrite stays. main had added a "Use when" sentence to the old text; the rewrite already says when to use the skill. Signed-off-by: Lars Trieloff <lars@trieloff.net>
|
Merged |
…r520-cloud-update
|
claude: approved on 51ba648 Since the last review (67a1494), head 51ba648 answers both earlier findings in the aem/cloud-service content-distribution skill:
The author replied to every earlier line comment. The rest of the merge from main touches no file of this plugin. Checks:
I ran no new eval. This round only removes an example and adds citation links, and the earlier round's eval already covered the Preview behaviour. Redundant lines: none. The three lines that earlier review named ( |
| - An unfiltered Replicator call uses the enabled-by-default **publish** agent only. Preview requires an explicit `AgentFilter`. | ||
| - A preview-only activation can leave aggregate `ReplicationStatus.isActivated()` false; check `getStatusForAgent("preview")` for Preview and `getStatusForAgent("publish")` for live Publish status. | ||
| - Prefer fewer than 100 paths per custom call and use Tree Activation for large hierarchies; do not promise automatic splitting. | ||
| - In **Tools > Deployment > Distribution**, distinguish the `persisted` queue from `fully published`; a queued or accepted request does not prove content is live. The latter indicates publication across Publish pods and Dispatcher invalidation. |
There was a problem hiding this comment.
claude: What's the source for the persisted and fully published queue names and what they mean (durable on Publish, versus live across Publish pods with Dispatcher invalidation done)? The Cloud Service replication operations guide (help/operations/replication.md in AdobeDocs) only describes the publish card, the queue status, the connection test, the Logs tab and a red main queue on failure. It doesn't mention these two queues. If they come from release notes or another page, please add it under Sources. Agents will tell users to wait for fully published, so the claim needs a citable source. The same applies to references/replication.md:584 and references/sling-distribution.md:595.
There was a problem hiding this comment.
Fixed in 51ba648. The queue names and meanings come from the Cloud Service Replication Queues section (help/operations/replication.md, #replication-queues): persisted = durably stored on the publish tier; fully published = live on all publish pods and Dispatcher cache cleared. The link is now inline here and at references/replication.md and references/sling-distribution.md.
| ## Publishing to Preview Tier | ||
|
|
||
| The Preview tier requires explicit agent filtering. | ||
| Without an `AgentFilter`, `Replicator` targets the enabled-by-default **publish** agent only. Preview requires an explicit filter and the Preview agent must be available in the target environment. |
There was a problem hiding this comment.
claude: Partly known already. I asked the baseline twice ("if I call Replicator.replicate with no ReplicationOptions, which tiers does the content go to?" and "do I need to do anything special for the page to appear on Preview?"). Both times it said an unfiltered call uses publish only and Preview needs an AgentFilter. It did not know that the Preview agent may be unavailable or inactive by default. The line stays. The eval run without the plugin also got the publish-only part wrong, so keeping it here and in SKILL.md:23 is justified.
There was a problem hiding this comment.
Acknowledged; no change — the line stays as you noted.
|
codex: approved on 51ba648 The previous blocking logging setup is removed, and Adobe’s replication documentation confirms the newly cited queue semantics. Base and head checks pass; all eight local links resolve, the changed skill meets its token budget, and all four clients load eight of eight skills. No new blocking defects found. No fresh eval was needed for this revision’s removals and citations; earlier Claude Preview evaluations are recorded in the review history. Redundant lines: none remaining. This round: 0 lines probed, 0 redundant, 0 unable to probe; previously reviewed unchanged guidance was excluded. |
| ```java | ||
| import com.day.cq.replication.ReplicationStatus; | ||
| import org.apache.sling.api.resource.Resource; | ||
| import org.slf4j.Logger; |
There was a problem hiding this comment.
codex: Redundant logging setup. Asked: “How should an AEM OSGi Java service emit diagnostic replication status messages in production? Show the logger setup and an example.” Then: “Write a Java snippet for an AEM service called StatusChecker that logs the activation, deactivation, last-published date, publisher, last replication action, and pending state of a com.day.cq.replication.ReplicationStatus. Include its logger declaration and imports.” Both independently supplied this SLF4J import. Remove the generic diagnostic example/setup, retaining the AEM-specific per-agent correction, to satisfy the repository’s redundancy rule.
There was a problem hiding this comment.
Fixed in 51ba648: removed the generic status-printing example with its SLF4J imports and logger; the per-agent getStatusForAgent("preview") note on isPublished stays.
| import com.day.cq.replication.ReplicationStatus; | ||
| import org.apache.sling.api.resource.Resource; | ||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; |
There was a problem hiding this comment.
codex: Redundant logging setup. Questions: (1) “How should an AEM OSGi Java service emit diagnostic replication status messages in production? Show the logger setup and an example.” (2) “Write a Java snippet for an AEM service called StatusChecker that logs the activation, deactivation, last-published date, publisher, last replication action, and pending state of a com.day.cq.replication.ReplicationStatus. Include its logger declaration and imports.” Both answers supplied this LoggerFactory import. Remove it with the generic diagnostic example/setup.
There was a problem hiding this comment.
Fixed in 51ba648: removed the generic status-printing example with its SLF4J imports and logger; the per-agent getStatusForAgent("preview") note on isPublished stays.
| public class StatusChecker { | ||
|
|
||
|
|
||
| private static final Logger LOG = LoggerFactory.getLogger(StatusChecker.class); |
There was a problem hiding this comment.
codex: Redundant logger declaration. Questions: (1) “How should an AEM OSGi Java service emit diagnostic replication status messages in production? Show the logger setup and an example.” (2) “Write a Java snippet for an AEM service called StatusChecker that logs the activation, deactivation, last-published date, publisher, last replication action, and pending state of a com.day.cq.replication.ReplicationStatus. Include its logger declaration and imports.” Both answers independently declared a private static final Logger using LoggerFactory.getLogger(the service class). Remove the generic diagnostic example/setup while preserving the per-agent status guidance.
There was a problem hiding this comment.
Fixed in 51ba648: removed the generic status-printing example with its SLF4J imports and logger; the per-agent getStatusForAgent("preview") note on isPublished stays.
|
Closed: the AI review raised findings more than 24 hours ago that nobody has answered.
Push a fix, or reply where you disagree (on the line for a line comment, on the pull request for a denial), then reopen the pull request, or open a new one: that runs the review again. A pull request written by a person rather than an agent gets the |
51ba648 to
67a1494
Compare
Refs #518
What and why
Correct AEM as a Cloud Service content-distribution guidance for publish/Preview targeting and per-agent status, ReplicationListener signatures, bulk-call limits, and Distribution UI queue semantics (
persistedvsfully published, sourced from the Cloud Service Replication Queues docs). The nestedreplicationandsling-distributionguides move underreferences/so the top-levelcontent-distributionskill is a concise router within the 1,000-token budget. The generic status-logging example is removed.How I checked it
npm run validatenode scripts/check-release-configs.mjs(44 configs, 0 broken)node scripts/check-skills.mjs --tokens plugins/aem/cloud-service:content-distribution/SKILL.md970 of 1000ReplicationStatus#getStatusForAgentandReplicationStatusProvider#getBatchReplicationStatusagainst the public AEM SDK API JAR (2026.11) and queue semantics against the public Cloud Service replication docs.Checklist
npm run validatepasseshumanlabel is set, if a person and not an agent wrote this