Repository navigation
Observability runbooks, replication and storefront skills, clearer job log failures - #834
Merged
Merged
Conversation
- performance and integration triage runbooks with a metrics signals catalog - fix Metrics API tags realm_environment prefix (TS and Python SDKs) - metrics_get summarize option, compact output and per-category notes - routing evals plus an opt-in live eval tier (read-only)
…lures - b2c-replication: automate code/data replication with custom jobs on the ExecuteCodeReplication / ExecuteDataReplication steps, task reference, first-replication ordering - b2c-storefronts: create vs import Storefront Next storefronts, moving a storefront to another instance in the same MRT project - job commands: re-check for a not-yet-written log, print [DATAERROR] lines, and report why a log download failed with a webdav --user-auth hint
clavery
requested review from
patricksullivansf,
wei-liu-sf and
yhsieh1
as code owners
October 29, 2026 21:20
clavery
had a problem deploying
to
b2c-docs-preview
October 29, 2026 21:20 — with
GitHub Actions
Failure
Contributor
📘 Docs preview🧹 The preview for this PR has been removed (PR closed). |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agents and users get more guidance for production triage and for moving work between instances, and failed job commands now say why they failed more often.
Observability
b2c-performance-triageandb2c-integration-triagerunbooks, plus a metrics signals catalog. Together they map slow, erroring, or silent storefront and external-service symptoms to Metrics API categories and dimensions. The checkout, edge-traffic, and production triage runbooks now point to these signals.metrics_get(MCP) acceptssummarize: true, which returns per-series statistics instead of every data point, so an agent can scan a whole category without hitting output limits. Its output is now compact JSON.apiFamily,controller,host,ocapiCategory,statusClass) no longer include the<realm>_<environment>prefix. This is fixed in both the TypeScript and Python SDKs.Skills
b2c-replication: automate code and data replication from staging with a custom job built on theExecuteCodeReplication/ExecuteDataReplicationsteps. Includes the task-group reference and the global-then-site order needed the first time a site is replicated.b2c-storefronts: choosing between creating and importing a Storefront Next storefront. Covers moving a storefront to another instance in the same MRT project (export, thenjob import --wait-for-storefront) and the import requirements. Cross-linked fromb2c-jobandb2c-custom-job-steps.Job log diagnostics (shared by
job run,job wait,job import,job export,job import-set,cap install,cap uninstall)[DATAERROR]lines from the log are printed next to the final error. The genericInternal fatal errorsummary usually hides the real cause, which those lines carry.401 Unauthorized) and ab2c webdav get --root logs ... --user-authcommand that can read it. Before, it only saidCould not retrieve job log.Everything is best-effort: if any of these lookups fails, the output is the same as before.
Platform dependencies
metrics_getand the metrics steps in the runbooks return an authorization error.ExecuteCodeReplicationrequires B2C Commerce 26.11. The skill documents the preconfigured-process step for earlier releases.--wait-for-storefrontrequires 26.10 on both instances.Testing
Manual testing:
b2c job wait sfcc-site-archive-import <id> --show-logon a failed site import, using client credentials whose API client has no WebDAV access toLogs. The warning should include the 401 and thewebdav get --user-authcommand, and that command should download the log.Data errors:block.b2c-replicationon a staging instance: import the job definitions, then run the code, global, and site jobs in order.b2c-storefrontsto export a storefront from staging and import it on production. Production should get a new environment in the same MRT project.metrics_getwithsummarize: trueand confirm the tags have no realm prefix.