/vivreal-knowledge:vivreal-client-stack-knowledgefrom vivreal-knowledge
Use when working in the Vivreal public content-delivery stack: VR_Client_API (the public backend customer sites call for content and Stripe/Square checkout) and VR_Client_Auth (the Lambda authorizer validating per-group API keys), the ONLY backend pair on API-key auth, not Cognito. Covers the TWO CloudFront distributions (media.vivreal.io signed media vs the client.vivreal.io API edge cache), the /tenant/* + /sites/:siteId routes, payments-provider resolution, tier→database mapping, signed srcset derivatives, frozenCheck (a paused group is read only, not dark), the Site MCP allowlist, and the publishDate gate. Triggers on: VR_Client_API, VR_Client_Auth, client authorizer, signed URL, CloudFront, edge cache, client.vivreal.io, CDN cache, frozenCheck, API key auth, tier database mapping, frozen group, publishDate gate, Square checkout, site MCP, stale or missing content on live site. Source of truth: `VR_Client_API` and `VR_Client_Auth` `CLAUDE.md` (and the docs it links) at `origin/stable`.
Trending skills
7-day visitors to each skill page
Ships in vivreal-knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Cross-repo flows, decisions and maps: the vivreal-hq dev docs under ${VIVREAL_REPOS}/vivreal-hq/docs/dev-docs/, starting at 03-use-cases/U16-serving-a-live-customer-site.md, 05-reference/edge-and-rate-limiting.md; npm run docs:route -- "client read path" from vivreal-hq names the rest. This skill and the repo's CLAUDE.md own the repo's internals.
Using this skill. It is loaded into the caller's own context; there is no expert agent to dispatch. Cite file:line at the deploy line's SHA for anything you act on, and re-derive any count or roster from source before you rely on it.
Source of truth: VR_Client_API and VR_Client_Auth CLAUDE.md (and the docs it links) at origin/stable.
Last synced: 2026-10-28 against VR_Client_API origin/stable at 221675b (tag v2.17.6; read the tag; per-skill baseline in vivreal-skills scripts/skill-sources.json)
The public content-delivery stack: deployed customer sites (Vivreal_Templates) call VR_Client_API to fetch content + run Stripe/Square checkout + send emails, and every request first passes VR_Client_Auth, a tiny custom Lambda authorizer that validates the group's API key and injects tenant context. This pair is the only Vivreal backend using API-key auth (not Cognito). Read ${VIVREAL_REPOS}/VR_Client_API/CLAUDE.md and ${VIVREAL_REPOS}/VR_Client_Auth/CLAUDE.md for depth, VR_Client_API's CLAUDE.md was refreshed 2026-10-03 and documents both CloudFront distributions, the frozen allowlist and the delivery-quote route.
media.vivreal.io (existing). Serves signed media URLs for S3 media (images/video). Everything in the "Media" section below. CDN_BASE_URL env unchanged.client.vivreal.io (NEW, W10). An AWS::CloudFront::Distribution in sam-template.yaml in front of the API itself (regional API Gateway origin), caching the deterministic published-content GETs for 60s. It caches API responses; it signs nothing."CDN behavior" questions must first establish WHICH distribution: blurry/missing/403 media → media CDN; stale-after-publish content, cache-hit-rate, or edge-TTL questions → API edge cache.
client.vivreal.io) in detailgetCollectionObjects, getIntegrationObjects, getSiteDetails, plus /sites/*/feeds/schedule.ics. The default behavior is Managed-CachingDisabled, so /tenant/preview, all POSTs (checkout, coupons, emails), and the MCP descriptors always reach origin.ContentCachePolicy: cache key = Authorization + Origin headers (the per-tenant API key in the key prevents cross-tenant bleed), ALL query strings, no cookies; TTL Min 0 / Default 60 / Max 60; gzip + brotli.ContentOriginRequestPolicy: forwards Authorization + Origin + the two CORS-preflight headers + all query strings. Host is deliberately NOT forwarded, CloudFront must send the execute-api hostname; tenancy resolves from Authorization, not Host.Cache-Control: public, s-maxage=60, max-age=0 (was private, max-age=60) so the shared cache may store responses while browsers still revalidate.CustomErrorResponses set error-caching min TTL 0 for 4xx/5xx, transient errors are never cached-and-replayed; 402 is not a CloudFront-cacheable status anyway.client.vivreal.io alias + us-east-1 ACM cert, gated by the optional AcmCertificateArn param (HasCustomDomain condition). Prod passes the *.vivreal.io wildcard ARN; DEV stays on *.cloudfront.net. Route53 cutover DONE 2026-07-21, client.vivreal.io's A-alias points at the distribution and live traffic serves through CloudFront (verify with Via/X-Cache headers).ClientApiCloudFrontLogsBucket (locked-down, SSE, 90-day expiry), a MonitoringSubscription (CacheHitRate), a CloudWatch dashboard, and Throttles / ConcurrentExecutions (135) / Duration-p95 alarms behind the optional AlarmNotificationArn param.group.cdnUsage.totalBytes) is a W11 TODO.A tiny, focused custom Lambda authorizer in front of VR_Client_API. Its only job: validate the incoming API key and return an IAM Allow/Deny policy + tenant context.
event.authorizationToken (raw API key from the Authorization header, no Bearer prefix) + event.methodArn.Vivreal, groups.findOne({ apiKey: token }). Found → Allow + context. Not found / any exception → Deny (fail closed).req.apiGateway.event.requestContext.authorizer): { database, bucketName, groupID, groupName, frozen }.The authorizer calls resolvePlacement(foundGroup) and fails closed when the group carries no routable placement. There are no tier branches and no fallback: a missing placement is a denial, not a guess.
| What the authorizer reads | What it injects as database |
|---|---|
| any tier | the STORED group.dbKey |
| there is no second row | The authorizer calls resolvePlacement(foundGroup) and fails closed when the group carries no routable placement. It does not map a tier to a database. The ladder it replaced was dangerous rather than untidy: a tier change silently re-pointed a live group at a different database, and it carried a casing defect on an unconstrained tier string |
The ladder that preceded it had a divergence between its own branches, which is the argument for having exactly one implementation rather than a tidier ladder. VR_Client_API derives nothing and takes the database it is handed, so a wrong value upstream becomes a wrong tenant downstream with nothing in between to catch it.
serverless.yml. (See vivreal-lambda for the deploy-outlier list.)serverless.yml:33), like every other backend. The pinned Serverless Framework version's runtime enum predates 22 and prints a warning; do not "fix" it by reverting the runtime (the comment above that line records why).Identity.ReauthorizeEvery in VR_Client_API's sam-template.yaml (about :248-262). The old "1 second" was written with API Gateway property spellings the SAM transform ignored, so the live authorizer ran API Gateway's 300 s default until 2026-08-18. 60, not 300, because the authorizer Denies on any exception and API Gateway caches the Deny too.readyState === 1 check). All logic in index.js; groupSchema.js mirrors the group doc; scripts/db.js is the pooled singleton.@hillbombcreations/schemas bumped to ^1.27.0; secrets moved to <secret-prefix>/client-auth (Secrets Manager + SSM). NOT housekeeping-only, the sticky-dbKey authorizer change above shipped this cycle.frozen: false reaches VR_Client_API as the string "false" (truthy!). Any consumer of context booleans must compare === true || === 'true' (see frozenCheck below).The public content-delivery API. Single monolith Lambda, Express + serverless-express (Node 22 since v2.13.0, 2026-10-03; arm64), SAM, with @hillbombcreations/schemas (read the pin from package.json). API-key auth (not Cognito) via VR_Client_Auth above. Reads tenant context from req.apiGateway.event.requestContext.authorizer, database / groupID / groupName / bucketName / frozen. Reserved concurrency 100 (sam-template.yaml:398; dropped from 150 in #81 on 2026-09-21 to size against the 500-connection Atlas cap of the M0 tier it ran on then (history: the cluster has been on M10, 1,500 per node, since 2026-10-17), with the concurrency alarm recalibrated at :1144); API GW throttle 50 rps / 100 burst. Secrets Phase 2: env resolves from <secret-prefix>/client-api + <secret-prefix>/core + SSM. (X-Ray is retired, Sentry only.)
/tenant/* + 5 /sites/:siteId/*: all behind frozenCheckTenant: GET collectionObjects (published only), GET integrationObjects, GET siteDetails, GET preview (bypasses publishDate), POST createCheckoutSession (dispatches Stripe or Square, see below), POST validateCoupon, POST definedCollectionObject, POST sendContactEmail, POST sendOrderPlacedEmail. Sites: the Site MCP (descriptor + llms.txt + MCP RPC, DynamoDB rate-limited via SITE_MCP_RATE_LIMIT_TABLE; its purchase tools such as initiate_purchase are wired, not pending) + feeds/schedule.ics + POST /sites/:siteId/delivery-quote. The Site MCP read tools return an ALLOWLIST of public fields (v2.14.1, #110, 2026-10-04): before it, list_content/get_content/list_products/get_product handed any caller each item's author name and email, groupID and approval fields. v2.15.0 (#111) made initiate_purchase resolve the real Stripe price id and the real site origin (vivreal-hq docs/projects/shipped-ledger.md, 2026-10-04 00:21Z and 05:10Z).
sendContactEmail's contactEmail is OPTIONAL since v2.15.0 (#112): Vivreal_Templates now resolves the recipient from the site and omits it when the site has none, and a required field had turned those submissions into 400s that were never stored. Every content GET also returns a richTextImageUrls {key: signedUrl} map (always present, {} when empty) so inline rich-text images resolve on a live site.
Resolved:
/tenant/validateCouponnow has its API Gateway event (sam-template.yaml:615-643, whose comment records the live 403 it fixed), andtest/gatewayRouteParity.test.jskeeps Express and the gateway in step.validateCouponis also PROVIDER-GATED (H29): it refuses any non-Stripe provider first, because a Square storefront was shown a valid discount and then charged full price (Client CLAUDE.md:340). (The template does carry an OPTIONS-only/{proxy+}event for CORS preflight; it does NOT rescue missing per-route events.)
POST /tenant/createCheckoutSession → checkoutDispatch.js → resolvePaymentsProvider(groupID) (reads mainDb groups $elemMatch {type ∈ [stripe,square], active:true}) → 'stripe'/null delegates byte-untouched to the Stripe path (customer's OWN key); 'square' → resolveSquareKey(groupID) → per-line resolveSquareVariant (matches objectValue.variationId on square integrationObjects; out-of-stock → 409 fail-closed) → createSquareCheckoutSession() via Square CreatePaymentLink, order-level FIXED_AMOUNT/LINE_ITEM discounts (exact integer subtraction, never per-unit rounding), deriveIdempotencyKey = SHA-256 over sorted priced lines.
resolveSquareKey gates (fail-closed → null): (1) token ONLY from an accounts[] entry with scope:'group' && status:'active' (never root fields, disconnected-root orphan trap); (2) token decrypted via decryptSecret/ENCRYPTION_KEY. The Square kill switch is RETIRED: the featureFlags.squareStorefront gate was removed from resolveSquareKey and featureFlags dropped from its projection; .lean() stays as a perf choice, no longer load-bearing. WARNING preserved: the flag's polarity was INVERTED (absent = ON; only an explicit false disabled checkout), verified no prod group sat at false before removal. squareTokenGuard: >2 days to expiry → no-op; ≤2 days → fire-and-forget refresh; expired → sync RequestResponse invoke (4s abort) of VR_Secure_API's squareRefreshOne Lambda via SQUARE_REFRESH_ONE_FUNCTION_ARN (scoped lambda:InvokeFunction IAM).
GET /tenant/collectionObjects returns only publishDate <= now && !archived. So missing content = publishDate is null (draft), in the future (scheduled), or stored as a string instead of a Date (silently dropped by the $lte: new Date() filter, type bracketing). Check publishDate type + value first. preview bypasses this gate. (Full rules: vivreal-db; the site-product/authoring angle: vivreal-sites.)
Media served via media.vivreal.io with signed URLs (unsigned → 403), this is the media distribution, not the client.vivreal.io API edge cache. buildMediaUrl.js builds the URL, signCloudFrontUrl.js signs with the CloudFront key pair (CLOUDFRONT_SIGNING_KEY_PAIR_ID from SSM; CLOUDFRONT_SIGNING_PRIVATE_KEY from Secrets Manager <secret-prefix>/client-api, must be an RSA private key; public key → falls back to unsigned). SignedUrlTtlSeconds now defaults to 86400 (~24h), matching the live CI override, the old 300s default silently made non-CI deploys inert; wired to CLOUDFRONT_SIGNED_URL_TTL_SECONDS, decoupling signed-link TTL from cache length. The signed URL lands in currentFile.source on each media field, templates use it directly. Never build CDN URLs manually. Signed srcset: resolveMediaUrl.js returns {name, source, srcset?}, buildSrcset signs ${key}.${w}.${ext} for widths [320, 640, 1280] (must match VR_CMS_API's generateImageDerivatives.js, which also writes a clamped source-resolution top rung for sources between ladder widths), emitted on collectionObjects/integrationObjects/preview/siteDetails read paths; files without derivatives degrade to source only. Descriptor signing extended (2026-07): processSiteDetails.js now signs previously-unsigned slots, cta.{backgroundImage,backgroundVideo}, media descriptors nested anywhere in blocks[].config (depth-bounded, cycle-safe walk), navigation menuItems + footer chrome media, hero.background.slides[].{image,video,poster} (carousel masthead, slide images stored as bare {key,name,type} descriptors never got currentFile.source, so live mastheads rendered words-only while local preview looked fine), and the top-level emailPopup image (its own pass, deliberately BEFORE the mediaFields early-return, writing src as well as currentFile); the earlier slots rendered as "no media" before because renderer consumers read only the inlined currentFile.source. (Infra view: vivreal-media-cdn.)
getSiteDetails is the hottest read in the fleet (one origin read per live site per CloudFront window), and on the shared Atlas tier every byte counts against the data-out quota. It is an aggregate with an EXCLUSION list, SITE_READ_EXCLUDED_FIELDS (the stale siteDetails.values.favicon mirror, instantiation, deployment, campaignSender), plus pages[].collections blanked to [] on every page that HAS blocks (the legacy binding mirror is read only for a block-less page). It shipped together with Vivreal_Templates #192, whose subscribe fallback became block-gated. An exclusion on purpose, so a field added later is served rather than dropped: before adding a key, prove no consumer of GET /tenant/siteDetails reads it.
errorHandler NEVER calls next(), unlike the other backends' (src/scripts/errorHandler.js, 2026-09-23). It only serializes the error onto req.resData for handleTenantRoutes to write. Its old trailing next() raced Express's deferred 404 on every 4xx (the trackApiUsage() await yields the loop), so callers got Cannot GET /tenant/... or a 502 from a double-send. A middleware that must continue the chain calls next() itself (only frozenCheck's malformed-context pass-through does). Before that, frozenCheck calling the old handler from router position served frozen accounts a 200 (#69). Do not port another backend's errorHandler here, and test any gate by the status on the wire.AWS/Lambda Errors never moves. Alarm on a log literal the code emits on every failure exit, paired with an API Gateway 5xx alarm for throttled requests that never ran.frozenCheck middleware reads frozen from authorizer context. A paused group is READ ONLY, not dark (H127, 2026-09-23): the allowlist in src/scripts/frozenPolicy.js keeps serving the three content GETs, preview, mcp.json, llms.txt, schedule.ics, delivery-quote and POST /sites/:siteId/mcp (write tools refused inside mcpRpc.js), and refuses only createCheckoutSession, validateCoupon, definedCollectionObject, sendContactEmail and sendOrderPlacedEmail with 400 GroupFrozen. It used to refuse every route, which made Vivreal_Templates replace every page with a 503 interstitial. Consumers gate on the envelope's code: 'GroupFrozen', never on the sentence (Client CLAUDE.md:198-205). test/frozenPolicy.routes.test.js fails on an unclassified route. P0 fix (2026-07): API Gateway stringifies authorizer context, so frozen: false arrived as the truthy string "false" and threw GroupFrozen on 18 non-frozen groups fleet-wide (triggered by the schemas 1.15.1→1.22.0 redeploy). frozenCheck.js now compares === true || === 'true'.
checkCdnUsageLimit in trackApiUsage.js no longer hard-402s groups over their CDN cap, it falls through to allowed: true. Vivreal absorbs the overage and meters it via cdnUsage.totalBytes; customer sites never go down for CDN usage, and availability is bounded by the infra kill-switch, not this gate. API-quota exhaustion no longer 402s either (W12 step-3, resolved 2026-07): over-quota without overage enrollment falls through to allowed: true in src/scripts/trackApiUsage.js, still metered via apiUsage.totalCalls. Driver: the W6 package-authoritative flip dropped two free-tier groups' effective quota below accumulated usage and both customer sites served empty pages for days. There are no 402s left at all as of 2026-09-20: both if (!usageCheck.allowed) branches were deleted from src/api/handlers.js, and a tripped spending cap keeps serving and raises an alert instead. The only request block on the tenant path is frozenCheck, plus IP rate limiting (429) in checkRateLimit.js (Client CLAUDE.md, Usage Metering). Quota reads are package-authoritative (W6, tier-quotas (read the pin from package.json)): getApiQuota/getCdnQuota/agent spending-cap read getTierQuotas(tier), the doc-first arms and six self-heal/mirror writes (with their redundant socket broadcasts) are gone.
VR_Client_API is SAM (sam-template.yaml) with one explicit API Gateway event per route, there is no catch-all {proxy+} integration (the only greedy event is OPTIONS-only, for CORS preflight). Adding the Express route is not enough: if the gateway has no event for the path, the request never reaches Express and is rejected at the edge (it falls through to the default IAM-protected resource). Always add the matching per-route event to the SAM template when you add a route. VR_Client_Auth (the API-key authorizer) is Serverless Framework (serverless.yml) and only changes when the authorizer logic does, not for new content routes. (The same miss bites CMS as a 403, where the route belongs in base.yaml's route list rather than an event, and Secure as a 502: vivreal-lambda deploy reference + vivreal-auth-architecture.)
targetField.name pattern silently no-op'd on arrays; the bug lived in 5 duplicate copies (3 inline + 2 helpers). Galleries never signed despite appearing to work. Now one shared impl. Watch for regressions in media-signing helpers; looksLikeMediaItem requires mimeType. (Full bug class: vivreal-media-cdn.)amplifyapp.com domain (c5dd6e0, 2026-09-27). Over-cap NEVER 402s (see "Quota gates, BOTH neutralized").basic/ + ecommerce/ alternate-deploy dirs are DELETED, one deploy config now.SENTRY_TRACES_SAMPLE_RATE, from the SentryTracesSampleRate template parameter (default 1.0, no CI override; read sam-template.yaml), and filter GET /health. (aws-xray-sdk in package.json is vestigial, zero code refs.)useDb views of ONE shared client (src/scripts/mongo.js), 4 sockets typical and 6 at most per container whatever the tenant count (Client CLAUDE.md, Multi-Tenant Database). Saturating Atlas conns here can 500 the whole platform, it's the one capped via reserved concurrency. See vivreal-atlas-topology + vivreal-lambda.getCollectionObjects was silently dropping requested filter keys when a collection had >50 items or a sparse field, sampling now falls back correctly. Filter fan-out is bounded server-side: validator caps filters at 12 keys, existence checks sliced to 5.mediaFields registry now get page/hero/cta/chrome media signed too, closed gaps in the cta subtree (band-variant art[]), the two wordmark seats (hero.wordmark.image, footer.wordmark.imageKey), hero.collage[]/hero.overlays[], and per-binding sectionConfig media.src/**, not a hand-enumerated allowlist).Vivreal_Portal_Mobile/docs/projects/portal-frontend-testing-strategy/prod-bugs-found.md.subscribed with consentSource: 'capture' and gets no confirmation email (src/services/tenant/createDefinedCollectionObject.js, createSubscriber and newSignUpStatus). Only the two platform suppression reasons that are facts about the ADDRESS block: hard_bounce saves the row bounced, complaint saves it complained, each with suppressedAt (BLOCKING_STATUS_BY_REASON). unsubscribe_link, list_unsubscribe_header and manual are opt-outs from Vivreal's own mail and do not block a business's list. A suppression list that cannot be read fails closed to pending.pending person who signs up again moves to subscribed, consentSource: 'capture', in one conditional write that skips a suppressed row (subscribePendingSignUp; confirmedAt is not written, nobody clicked a link). An unsubscribed person is never resubscribed here: they are sent a rejoin email (askUnsubscribedToRejoin, claim first then send, at most one per REJOIN_COOLDOWN_MS of 7 days, never to a row with suppressedAt), and only their click on VR_Main_API's confirm link puts them back. REJOIN_COOLDOWN_MS (src/shared/subscribeConfirmToken.js) must equal Main's OWNER_RESEND_COOLDOWN_MS.201 { _id: null, accepted: true } (SIGNUP_ACCEPTED) held to a 1,000 ms floor on every arm (SIGNUP_RESPONSE_FLOOR_MS), so the answer never tells a stranger whether an address was on the list. A refused payload is a silent accept that writes nothing.src/scripts/redactSensitive.js replaces any address inside any string with [REDACTED_EMAIL], because a sign-up stores the address under whatever key the owner's list uses, so no key list can find it (the error handler once logged it in full). src/scripts/sentry.js applies it in beforeSend and in beforeSendLog, the one hook every Sentry log line passes. Never log a request body around it.getSiteDetails serves siteDetails.values.timezone as the business zone (groups.timezone), falling back to the site's own stored value (src/shared/siteTimeZone.js). Both go through canonicalTimeZone, the rule VR_Secure_API stores a zone with: a link or another case becomes the canonical IANA name, UTC is accepted, a fixed offset is refused. Templates spreads the value into siteData.timezone, the zone every renderer date falls back to; a zone a page or section sets still wins on that page./sites/:siteId/feeds/schedule.ics emits one event per occurrence of a repeating stop, decided by the renderer's own readStopTiming, stopOccurrences and scheduleTimezone from @hillbombcreations/site-renderer/bindings (src/api/site/feeds/_helpers/feedOccurrences.js), so the feed and the Schedule page agree by construction. Zone chain (generateScheduleIcs.js, resolveTimezone): the schedule toolbar's zone, the page labels' zone, the business zone, then UTC. Window: 90 days back, 26 weeks ahead, capped at MAX_STOP_OCCURRENCES with upcoming occurrences kept first. A repeating stop's end date means "repeat until that date". One-off stops keep the UID they always had. The feed therefore moves with THIS repo's renderer pin, which need not equal Templates': read both lockfiles before comparing page and feed.origin/stable 221675b)/tenant/siteDetails, /tenant/collectionObjects, /tenant/integrationObjects) send public, s-maxage=60, max-age=0, stale-if-error=86400, so client.vivreal.io answers the last good response through a real Client API outage (origin 5xx or timeout).isDbUnavailable only (usage.meter_skipped, and the CDN meter and usage track are skipped for that request), any other error still throws; connectTenantDb retries once after up to 1 s of jitter, only on isDbUnavailable and only with at least 16000 ms of Lambda time left, so a request makes at most two connect attempts; Sentry fingerprints DbUnavailableError as one issue.purchasable; notForSaleVariants appears only when a size is archived; saleState is stripped. One rule, assessSellability in purchasability.js, whose truth table is a byte copy of VR_CMS_API's test/fixtures/sellability-truth-table.json under a parity test. The Site MCP initiatePurchase reads purchasable. Same PR: siteDetails.indexNowKey (an HMAC of the site id under INDEXNOW_KEY_SECRET), real page dates and the business block for llms.txt.Prod serves stable, never main. The shared model (dispatched cut and promote, the weekly crons retired 2026-11-04, backport as a patch, rollback needing a manual lambda_api.yml run) is in vivreal-infra:vivreal-lambda references/deploy.md; this repo's runbook is docs/RELEASE.md. VR_Client_Auth is not on the train: it deploys straight off a push to main.
Load vivreal-workflow:verification-discipline: a zero is only evidence once the same query returns a known hit. Two of its worked examples are this stack's own surfaces: an aws s3api head-object against a bucket that does not exist in the account (a 404 that meant "no such bucket"), and a 403 from media.vivreal.io, which enforces TrustedKeyGroups, so EVERY unsigned request is 403 whether or not the object exists. Name the bucket, ref or collection you queried and prove it can return a known hit.
client-stack expert agent, 2026-10-20)The expert agents are retired (2026-10-28), so the review checklist they used to carry lives
here. Query rules (tenant scoping, the mainDb _id
lookup, the publishDate and archived filters) live in vivreal-knowledge:vivreal-db, and
packaging and limits in vivreal-infra:vivreal-lambda; they are not repeated here.
vivreal-hq/docs/projects/atlas-connection-fixes-2026-09-15/spec.md); the ConcurrentExecutions alarm was recalibrated to the new ceiling in the same change, so read both from sam-template.yaml. Alarms on Throttles, ConcurrentExecutions and Duration p95 exist behind the optional AlarmNotificationArn param, plus a MonitoringSubscription (CacheHitRate) + CloudWatch dashboard for the edge cache and a locked-down ClientApiCloudFrontLogsBucket (SSE, 90d expiry).database context. Same dbKey routing as CMS API.POST /tenant/definedCollectionObject: sign-ups, reviews and the other site forms; the contact store) and the sign-up bookkeeping above (the pending flip, the rejoin claim). Each is a conditional write scoped by groupID and the list's collectionObj.refID.groupID + publishDate + archived compound index for collection objects.local is fine for content; consider majority if there's read-after-write coupling with CMS API writes.buildMediaUrl.js now returns a stable link to this API's own GET /media route (MEDIA_REDIRECT_BASE_URL, on client.vivreal.io), which signs fresh on every request and 302-redirects to the signed media.vivreal.io object, so an ISR page cached longer than a signature's TTL no longer serves dead images. Exception, on purpose: richTextImageUrls.js still signs inline rich-text images immediately, because the renderer's sanitiser drops any inline <img> whose src does not start with the media host, and those signed links DO expire inside cached HTML. So "a picture went blank on a cached page" is a rich-text inline image until proven otherwise. A media key with an unpaired surrogate or a parenthesis used to 500 or blank; both fixed 2026-09-30.{ 'objectValue.order': 1, _id: 1 } (DEFAULT_COLLECTION_OBJECT_SORT, src/services/tenant/HelpFunctions/collectionObjectOrder.js, shared by the composed read and the SSR door so they cannot drift; fixed v2.8.1, #79, after eleven months of index-scan order). The second key makes it a total order: without it a plan-cache eviction could reorder every list on every site with no content edit. Where no item carries an order, the result is insertion order, which is what Studio's "Original order" promises. A requested sort=order:asc is prefixed to objectValue.order and carries an _id tiebreak.find sort and the aggregation rewrite was judged not worth it.createdAt, deliberately: getIntegrationObjects.js here, and getCollectionGroups.js + getIntegrationObjects.js in VR_CMS_API.client.vivreal.io; read its id with aws cloudfront list-distributions --query "DistributionList.Items[?Aliases.Items[?@=='client.vivreal.io']].Id" --output text), which holds each content read for its s-maxage window (read it off the controller); invalidating only the site distribution leaves this API serving the old body. For a SITE-RECORD change: write the record, invalidate that distribution, wait past that window, then let the site regenerate (or redeploy its Amplify branch).vivreal-templates-knowledge). vivreal.io also has a THIRD layer: CloudFront <vivreal-io-distribution-id> (real id in vivreal-hq docs/dev-docs/05-reference/aws-estate.md) in front of Amplify's own, honouring stale-while-revalidate, so the first visitor after an origin refresh can still get the old copy once.fetch failed from a Templates site is not necessarily this API failing. Amplify compute freezes each site's process between requests, so the first request after an idle gap could reuse a dead keep-alive socket and fail before TLS without ever reaching VR_Client_API (Templates #158 retries such reads on a fresh connection; look for [clientFetch] connection failed ... retry n in the site's compute log). Check that log before blaming this stack; this API's own logs show nothing for those requests.www is a hit. Re-request one at a time before filing.git show <line>:package.json for a service version, the consumer lockfile for a package pin, the release JSON endpoint (more than once) for the portal, and the registry for a published package. Every version this file used to name went stale inside two weeks, and a stale version reads exactly like a current one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub hillbombcreations/vivreal-skills --plugin vivreal-knowledge27 skills in this plugin
/sentry-tracerUse when investigating what happened during a Vivreal user action across the stack, tracing an error end-to-end, validating a deploy, or doing tenant-scoped triage with Sentry. Teaches WHEN to trace cross-stack (frontend spans ↔ backend logs ↔ WebSocket events) and HOW (trace-ID propagation, the standard tag set, request_id fallback, service.* breadcrumbs). Triggers on: "what happened when I did X", "why did this error", trace this request, Sentry issue, deploy validation, "everything's broken for this group", crash, error timeline. For the full investigation agent with Sentry MCP tools wired in, dispatch the `sentry` agent / `/sentry-trace` (both in the `vivreal-sentry` plugin); this skill is the passively-loaded knowledge layer. Also covers the step from a Sentry error to the AWS and Atlas metric that confirms an infrastructure cause (502 with no backend event, Lambda timeout, Mongo connect-hang, throttling, OOM, stalled deploy)./vivreal-accounts-and-writesUse before filming, walking or capturing anything in the Vivreal portal or on vivreal.io, and before any write a capture or walk makes. Carries which login to use for which business (the demo account, the QA scratch owner, the owner session), the eight-step owner-approved write protocol (named approval, snapshot, write through the UI, fresh-process read-back, restore, manifest entry), the never-list (Post, Publish, Schedule, Connect and the rest), and the rules for stills that fill vivreal.io marketing slots (pair by what the slot says, no demo site has its own web address, mask comped plan figures). Shared by footage-recorder, tutorial-maker, help-page-producer, qa-walker and marketing-auditor. Triggers on: which login, demo account, QA scratch-2, test account, switch business, owner-approved write, write protocol, snapshot and restore, mutations, marketing still, screenshot swap, vivreal.io slot, walk harness, write guard, POST allow list, PRO badge./vivreal-admin-app-knowledgeUse when working on, walking, deploying or reasoning about the internal admin app (vivreal-hq packages/admin-app), the invite-only, sign-in-only staff hub that holds every staff surface since v7 (outreach CRM, sign-ups, monitoring, errors, tickets, flags, audit, usage, economics, deployed sites, team, staff push), covering where it lives, its own identity pool and session, how it calls the fleet with no active_ctx, the deploy by fast-forwarding deploy/admin-app, its two ops Lambdas, what each page reads, including the dark navy restyle and the Releases, Database, Marketing and Inbound pages. Source of truth: `vivreal-hq` `packages/admin-app/CLAUDE.md` (and the docs it links) at `origin/deploy/admin-app`./vivreal-agent-knowledgeUse when working on, writing about, or debugging Vivreal AI. The AI offering is connecting an AI agent through the Vivreal MCP server (VR-MCP-Server, plan flag mcpAccess, metered in mcpToolCalls), and nothing else: the in-app assistant is RETIRED (owner 2026-10-07, agentActions 0 on every tier; the global FAB, drawer and /agent page were deleted 2026-09-24) and only dead code survives in the portal (Studio AiRail, EditPlan) and VR_Secure_API's agent Lambda. Covers the copy rule ("AI agent", never assistant or a model name), the real gates, and the retired surface's archaeology. Triggers on: AI agent, MCP, connect an AI agent, AI assistant, AI assistant not showing, agentActions, aiActionsEnabled, aiSiteEditing, aiComponentGen, mcpAccess, mcpToolCalls, AiRail, useAgentAccess, EditPlan, proposeSiteEdits, agent/execute, agentProgress. Sources: VR-MCP-Server, Vivreal-Tier-Quotas src/tierQuotas.ts./vivreal-analytics-knowledgeUse when working on Vivreal's first-party analytics, VR_Analytics_API (the collect→store→rollup pipeline), the Templates SiteBeacon, or the per-site traffic dashboard (VR_Secure_API read route + portal AnalyticsPanel). Covers the CloudFront+WAF → Lambda Function URL ingest chain (X-Origin-Verify, bot filter, Joi, per-IP rate limit, daily-salt visitor hash), the analytics_rollup DynamoDB design, the daily rollup cron into mainDb.site_traffic_daily, the LIVE auto-deploy status (GitHub Actions → CloudFormation) plus the W4 CDN egress meter (runs unconditionally), and where increment 2 lives. Triggers on: analytics, site traffic, beacon, SiteBeacon, visitor stats, page views, unique visitors, analytics_rollup, site_traffic_daily, first-party analytics, per-site dashboard, collect.vivreal.io, visitor hash, rollup cron, CDN egress meter, VR_Analytics_API. Source of truth: `VR_Analytics_API` `CLAUDE.md` (and the docs it links) at `origin/main`./vivreal-blender-knowledgeUse when scripting or rendering in Blender for Vivreal, above all the Vivreal duck mascot in vivreal-hq/brand/mascot/model. Covers headless renders (blender -b -P script.py -- args, --factory-startup, --python-exit-code), bpy data versus ops, bmesh, depsgraph evaluated_get and new_from_object, mathutils transform gotchas, flat toon and NPR rendering in EEVEE (Emission plus the Standard view transform, exact sRGB hex, dither, filter size, transparent film, orthographic framing), outline methods compared (Freestyle, Grease Pencil Line Art, inverted hull, ID-pass edge inking), and the 4.2 to 5.2 API changes that break scripts (EEVEE engine id, blend_method, use_nodes, Grease Pencil v3). Triggers on: Blender, bpy, bmesh, headless render, background render, EEVEE, Workbench, Cycles, toon, cel, NPR, outline, inverted hull, Freestyle, Line Art, Grease Pencil, view transform, AgX, Filmic, mascot, the duck, duck.py, render.py, mascot-artist.