Explain

The topics behind metro docs explain.

View .md

Topics for metro docs explain <topic> --markdown: decision trees for agents, plus lookups for commands, shapes, rules, gotchas and scopes.

Source

Generated from metro docs explain --list --markdown in metrocli/metro @146bf3e. Source schemaVersion: metro.docs.explain.index.v1.

  • schemaVersion: metro.docs.explain.index.v1
  • apiAccess: none
  • nextSafeStep: Run metro docs explain <topic> --json for a single topic, or use explicit prefixes such as command:, shape:, gotcha:, rule:, scope:, policy:, and example: to avoid ambiguous IDs. This index does not authorize live reads or writes.

Summary

{
  "operatingTopicCount": 14,
  "lookupKindCount": 8,
  "genericExplainableCount": 425,
  "liveApiAccess": "none"
}

Operating topics (agent decision trees)

idstatusapiAccesssummaryexplain
first-safe-previewlocal-install-backednoneGive a new authorized teammate or internal agent one terminal-native path to prove installability, command discovery, profile shape, local validation, and sandbox-labeled preview without live API access.metro docs explain first-safe-preview --json
install.troubleshootinglocal-install-backednoneUse this topic when npm packaging, global installation, or the installed metro binary fails: prove the package manifest, runtime file allowlist, executable bin, temporary-prefix install, and local-only smoke command before moving to setup profiles or safe preview work.metro docs explain install.troubleshooting --json
package.publish-readinessblocked-open-questionsnoneUse this topic before treating the local tarball install path as an internal npm release: current proof covers npm pack contents and a temporary-prefix metro install, while registry publishing, release provenance, approval ownership, and signing or equivalent integrity evidence remain explicit blockers.metro docs explain package.publish-readiness --json
ci.local-checkslocal-proof-backednoneUse this topic when wiring metro into CI or agent automation: run package, install, unit, golden, site, syntax, and secret-scan checks that need no API keys, then parse metro JSON contracts instead of scraping prose.metro docs explain ci.local-checks --json
setup.troubleshootinglocal-proof-backednoneUse this topic when the first safe preview path, local profile doctor, or profile resolution fails: keep setup local-only, inspect schemaVersion and findings, fix the profile file or non-secret fingerprint, then rerun setup doctor and setup resolve before using profile evidence in read-gate or preflight manifests.metro docs explain setup.troubleshooting --json
input.normalizelocal-proof-backednoneUse metro input normalize to turn local JSON/YAML workflow shape inputs and reviewed expert API request envelopes into stable canonical JSON, validation findings, and deterministic hashes before preview, proof, or future apply work.metro docs explain input.normalize --json
output.anatomylocal-proof-backednoneUse this topic to read metro JSON output consistently: identify the schema version first, check live-execution flags and API access, inspect status/refusal fields, then follow generatedFrom, sourceIds, sources, payload hashes, and nextSafeStep before using the output as local evidence.metro docs explain output.anatomy --json
refusal.troubleshootinglocal-proof-backednoneUse this topic when metro refuses a live read, live apply, unsupported workflow apply, or unsafe input: keep the refusal as a safety signal, identify the schema and blocked command, then gather the local preview, preflight, gate, audit, read-back, and approval evidence named by nextSafeStep before retrying any narrower local command.metro docs explain refusal.troubleshooting --json
billing-provider.attachmentlocal-preview-backednoneUse the local Stripe billing-provider attachment shape to validate delivery method scope, existing configuration policy, Stripe draft behavior, and read-back evidence before any future customer billing-provider write is considered.metro docs explain billing-provider.attachment --json
customer.setuplocal-preview-backednoneUse the local customer-setup shape to validate customer identity, ingest alias collision review, optional Stripe billing-provider configuration, customer configuration, read-back checks, and rollback planning before any customer create workflow is considered.metro docs explain customer.setup --json
credits.product.decisionlocal-preview-backednoneWhen someone says "add a credits product", stop and classify before creating Metronome objects. Most asks are (A) a new pricing dimension on an existing USAGE product, (B) a credit grant on an existing contract, (C) credits inside a package commit schedule, or rarely (D) a greenfield USAGE product + billable metric. Do not create products or billable metrics for new action codes.metro docs explain credits.product.decision --json
workspace.routinglocal-preview-backednoneUse metro workspace explain, metro plan <intent>, and metro route --goal to pick optimal shapes, refuse suboptimal API paths (e.g. products.create for a new action code), and bind sandbox/production via tenant profiles. For ambiguous "credits product" asks start with metro docs explain credits.product.decision --markdown.metro docs explain workspace.routing --json
contract-overrides.inspectionlocal-proof-backednoneUse contracts.getRateSchedule for customer-specific contract prices that must include contract-level overrides; use rateCards.getRates for rate-card source prices before customer contract overrides.metro docs explain contract-overrides.inspection --json
product-rate-retirement.readbacklocal-proof-backednoneUse rateCards.addRates only as a reviewed future write for closing rates; verify product retirement with rateCards.getRates, rateCards.getRateSchedule, products.get, and invoice-impact evidence before any product archive is considered.metro docs explain product-rate-retirement.readback --json

Lookup kinds

kindcountdescriptionexamples
api-endpoint69Reviewed Metronome endpoint IDs from the local expert API catalog.usage.ingest, usage.groups, usage.batch, events.search
api-family14Endpoint-family summaries derived from the reviewed API catalog.billable-metrics, billing-provider, contracts, credits
command166Supported local command metadata from the command catalog.command:input.normalize, command:docs.explain, command:api.read-plan
shape16Workflow shape summaries and validator links from the shape catalog.shape:customer-setup, shape:pro-annual, shape:pro-annual-self-serve-v2, shape:free-credit-trial
validator-rule68Validator rules, severities, and remediation guidance.MTR-TENANT-001, MTR-TENANT-002, MTR-TENANT-003, MTR-TENANT-004
gotcha59Known failure modes from the gotcha register.gotcha:tenant-selected-by-key, gotcha:env-file-not-authorization, gotcha:never-infer-production-from-key-presence, gotcha:fingerprints-not-key-values
permission-scope25Permission scopes and owner/approval policy requirements.metronome:billable-metrics:read, metronome:billable-metrics:write, metronome:billing-provider:read, metronome:billing-provider:write
example-fixture8Checked command/output fixtures used as local proof examples.example:api.catalog.contracts, example:api.explain.contracts-create, example:api.search.contract-create, example:api.diff.contracts-create-vs-update-end-date

sourceIds

  • credits-product-decision
  • danger-zone
  • endpoint-matrix
  • example:api.catalog.contracts
  • example:api.explain.contracts-create
  • example:api.preflight.contracts-create
  • example:api.preview.contracts-create
  • example:api.readiness
  • local-probe-prod-all-rates
  • metro-api-preview-golden
  • metro-api-read-audit-products-get-fixture
  • metro-api-read-audit-products-get-golden
  • metro-api-read-audit-rate-cards-get-rates-fixture
  • metro-api-read-audit-rate-cards-get-rates-golden
  • metro-api-read-mock-contracts-rate-schedule-golden
  • metro-api-read-mock-rate-cards-get-rates-golden
  • metro-api-read-pipeline-contracts-rate-schedule-golden
  • metro-api-read-pipeline-golden
  • metro-api-read-pipeline-products-get-golden
  • metro-api-read-pipeline-rate-card-schedule-golden
  • metro-api-read-pipeline-rate-cards-get-rates-golden
  • metro-api-read-plan-golden-contracts-rate-schedule
  • metro-api-read-plan-golden-products-get
  • metro-api-read-plan-golden-rate-card-schedule
  • metro-api-read-plan-golden-rate-cards-get-rates
  • metro-api-read-refusal-golden
  • metro-api-readiness-golden
  • metro-api-readiness-summary-golden
  • metro-billing-provider-attach-fixture
  • metro-billing-provider-inspect-plan-golden
  • metro-billing-provider-preview-golden
  • metro-command-catalog
  • metro-command-reference-golden
  • metro-customer-setup-fixtures
  • metro-customer-setup-preview-golden
  • metro-docs-explain-billing-provider-attachment-golden
  • metro-docs-explain-ci-local-checks-golden
  • metro-docs-explain-customer-setup-golden
  • metro-docs-explain-first-safe-preview-golden
  • metro-docs-explain-input-normalize-golden
  • metro-docs-explain-install-troubleshooting-golden
  • metro-docs-explain-output-anatomy-golden
  • metro-docs-explain-package-publish-readiness-golden
  • metro-docs-explain-product-rate-retirement-readback-golden
  • metro-docs-explain-refusal-troubleshooting-golden
  • metro-docs-explain-setup-troubleshooting-golden
  • metro-docs-explain-topic-index-golden
  • metro-input-files
  • metro-input-normalize
  • metro-input-normalize-api-golden
  • metro-input-normalize-shape-golden
  • metro-input-reference
  • metro-input-reference-golden
  • metro-install-test
  • metro-package-test
  • metro-product-retirement-preview-golden
  • metro-release-artifact-manifest-golden
  • metro-release-evidence-check-golden
  • metro-release-evidence-plan-golden
  • metro-release-readiness-golden
  • metro-release-retention-policy-golden
  • metro-safe-preview-quickstart
  • metro-setup-fixtures
  • metro-setup-profiles
  • metro-setup-quickstart
  • metro-setup-resolve-golden
  • metro-workspace-routing
  • metronome-customers-hierarchies
  • metronome-stripe-delivery
  • packages-contracts
  • rate-cards-dimensional
  • shape-complimentary-credit-grant
  • shape-dimensional-rate-card

sources

  • docs/SAFETY.md
  • docs/metronome-cli/CLI_ARCHITECTURE.md
  • docs/metronome-cli/COOKBOOK.md
  • docs/metronome-cli/GOTCHAS.md
  • docs/metronome-cli/QUICKSTART.md
  • docs/metronome-cli/README.md
  • docs/metronome-cli/SHAPE_CATALOG.md
  • docs/metronome-cli/SHAPE_CATALOG.md#product-or-rate-retirement
  • docs/metronome-cli/VALIDATION_AND_GUARDRAILS.md
  • docs/metronome-cli/VALIDATION_AND_GUARDRAILS.md#rate-card-rules
  • docs/metronome-cli/one-goal.md
  • docs/metronome-cli/site/agents.md
  • docs/metronome-cli/site/install.html
  • docs/metronome-cli/site/install.html#first-safe-preview
  • docs/metronome-cli/site/integration.html
  • docs/metronome-cli/site/verify-site.js
  • https://docs.metronome.com/api-reference/billable-metrics/create-a-billable-metric.md
  • https://docs.metronome.com/api-reference/contracts/get-the-rate-schedule-for-a-contract.md
  • https://docs.metronome.com/api-reference/customers/create-a-customer.md
  • https://docs.metronome.com/api-reference/customers/fetch-billing-provider-configurations-for-a-customer.md
  • https://docs.metronome.com/api-reference/customers/get-a-customer.md
  • https://docs.metronome.com/api-reference/customers/list-customers.md
  • https://docs.metronome.com/api-reference/customers/set-billing-provider-configurations-for-a-customer.md
  • https://docs.metronome.com/api-reference/customers/update-a-customer-configuration.md
  • https://docs.metronome.com/api-reference/invoices/list-invoices.md
  • https://docs.metronome.com/api-reference/products/archive-a-product.md
  • https://docs.metronome.com/api-reference/products/create-a-product.md
  • https://docs.metronome.com/api-reference/products/get-a-product.md
  • https://docs.metronome.com/api-reference/rate-cards/add-rates.md
  • https://docs.metronome.com/api-reference/rate-cards/get-a-rate-schedule.md
  • https://docs.metronome.com/api-reference/rate-cards/get-rates.md
  • https://docs.metronome.com/api-reference/settings/list-account-level-billing-providers.md
  • package.json
  • packages/metro-core/src/api-catalog/preview.js
  • packages/metro-core/src/api-catalog/read-pipeline.js
  • packages/metro-core/src/api-catalog/read-refusal.js
  • packages/metro-core/src/api-catalog/readiness.js
  • packages/metro-core/src/api-catalog/validation.js
  • packages/metro-core/src/apply-gate/index.js
  • packages/metro-core/src/audit/index.js
  • packages/metro-core/src/commands/catalog.js
  • packages/metro-core/src/docs/explain.js
  • packages/metro-core/src/docs/input-reference.js
  • packages/metro-core/src/input/files.js
  • packages/metro-core/src/input/normalize.js
  • packages/metro-core/src/inspect/index.js
  • packages/metro-core/src/preflight/index.js
  • packages/metro-core/src/preview/index.js
  • packages/metro-core/src/proof/sandbox-manifest.js
  • packages/metro-core/src/release/readiness.js
  • packages/metro-core/src/setup/profiles.js
  • packages/metro-core/src/shapes/index.js
  • packages/metro-core/src/validators/index.js
  • skills/metronome-customers-hierarchies/SKILL.md
  • skills/metronome-danger-zone/SKILL.md
  • skills/metronome-danger-zone/references/endpoint-matrix.md
  • skills/metronome-danger-zone/references/endpoint-matrix.md#11-invoices
  • skills/metronome-danger-zone/references/endpoint-matrix.md#15-settings--security
  • skills/metronome-danger-zone/references/endpoint-matrix.md#3-products
  • skills/metronome-danger-zone/references/endpoint-matrix.md#4-rate-cards
  • skills/metronome-danger-zone/references/endpoint-matrix.md#6-customers
  • skills/metronome-danger-zone/references/endpoint-matrix.md#7-billing-provider-configs-stripe
  • skills/metronome-danger-zone/references/endpoint-matrix.md#9-contracts
  • skills/metronome-packages-contracts/SKILL.md
  • skills/metronome-stripe-delivery/SKILL.md

Agent notes

  • Prefer --json when scripting parsers; use --markdown when loading context into an agent.
  • Never treat HTML as the source of truth, regenerate from metro docs <ref> --markdown.
  • Live reads/writes still require tenant flags + confirmation tokens.

Plus 14 source-document topics, one per Metronome docs page metro cites. List them with metro docs explain --list.

On this page