Skip to content

Clarify headless app request guidance - #789

Merged
timkelty merged 12 commits into
mainfrom
timkelty/clarify-headless-app-guidance
Sep 18, 2026
Merged

timkelty merged 12 commits into
mainfrom
timkelty/clarify-headless-app-guidance

Conversation

@timkelty

Copy link
Copy Markdown
Contributor

Summary

  • clarify where request signing should be applied
  • explain why automated retries and origin rate limits are necessary
  • recommend slowing build request bursts and using cacheable GraphQL GET requests
  • simplify retry guidance around Retry-After and read-only queries

Validation

  • git diff --check origin/main...HEAD

@timkelty
timkelty requested a review from a team as a code owner September 18, 2026 12:48
@netlify

netlify Bot commented Sep 18, 2026

Copy link
Copy Markdown

Deploy Preview for craft-docs ready!

Name Link
🔨 Latest commit 328a48f
🔍 Latest deploy log https://app.netlify.com/projects/craft-docs/deploys/6aad3b7091c0cf0008cbc697
😎 Deploy Preview https://deploy-preview-789--craft-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 18, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-18T13:15:56.117002Z 0db0258 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca0c57badd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/cloud/headless-apps.md
@timkelty

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4c7f3df189

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/cloud/headless-apps.md Outdated
@timkelty

Copy link
Copy Markdown
Contributor Author

@codex review

@timkelty

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 0db0258bc5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Five unresolved findings remain, including one critical signing-scope issue and four moderate caching/retry issues.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Clarifies Craft Cloud headless-app guidance for signing, throttling, caching, and retries.

Changes:

  • Refines request-signing and rate-limit guidance.
  • Recommends throttling build bursts and using cacheable GraphQL GET requests.
  • Updates Ky retry examples and framework guidance.
File summaries
File Summary
docs/cloud/headless-apps.md Critical (1 vote): Explicitly scope signing to trusted server-side/build code and retain key-secrecy guidance. Moderate: Correct the cache description for GraphQL JSON responses (1 vote); align Retry-After wording with configured statuses (2 votes); enable GET retries across snippets (2 votes); replace unsupported totalTimeout with a real deadline mechanism (1 vote).
Review details

Suppressed comments (2)

docs/cloud/headless-apps.md:29

  • The Cloud static-caching guide says this cache is for cacheable HTML responses, while a GraphQL GET returns JSON. This claim therefore misleads readers into expecting these responses to use Cloud’s static page cache; point instead to the hosting/CDN cache (or Craft’s GraphQL cache) and state any required cache configuration.
  - When possible, send GraphQL queries with
    [`GET` requests](/5.x/development/graphql.html#sending-requests-manually) so
    successful responses can be served from Cloud’s static cache.

docs/cloud/headless-apps.md:81

  • This retry count is paired with totalTimeout: 30_000, but totalTimeout is not a Ky option, so it does not impose an overall deadline. With timeout: false, ten exponential-backoff retries can run past the five-minute signature lifetime and leave builds waiting much longer than documented; replace that option with a real overall abort signal or another supported timeout mechanism.
        limit: 10,
  • Files reviewed: 1/1 changed files
  • Comments generated: 3
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/cloud/headless-apps.md Outdated
Comment thread docs/cloud/headless-apps.md Outdated
Comment thread docs/cloud/headless-apps.md Outdated
@timkelty
timkelty merged commit 921d647 into main Sep 18, 2026
5 checks passed
@timkelty
timkelty deleted the timkelty/clarify-headless-app-guidance branch September 18, 2026 13:25
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.

2 participants