Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
145 changes: 0 additions & 145 deletions .github/workflows/sync-world-id-auth.yml

This file was deleted.

25 changes: 15 additions & 10 deletions .mintlify/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@

## IDP

Keep Agent Pass in `docs.json` as a tab with `hidden: true` and `searchable: true` during MCP testing. Preserve its complete groups and page list so direct links retain the internal sidebar. Keep the scoped Agent Pass tab rules in `tailwind.css`: Mintlify otherwise reveals the hidden tab when it is active. Keep the generated `agent-pass/` pages, their URLs, agent-only homepage link, and `seo.indexing: "all"` so they remain available to search and AI tools. Do not make the tab or promotional cards visible until the public launch is requested. Read [IDP maintenance](world-id-auth-maintenance.md) before changing generated pages. Use the manifest, source lock, and compatibility contract for current coverage and provenance.
Keep Agent Pass in `docs.json` as a tab with `hidden: true` and `searchable: true` during MCP testing. Preserve its complete groups and page list so direct links retain the internal sidebar. Keep the scoped Agent Pass tab rules in `tailwind.css`: Mintlify otherwise reveals the hidden tab when it is active. Keep the `agent-pass/` pages, their URLs, agent-only homepage link, and `seo.indexing: "all"` so they remain available to search and AI tools. Do not make the tab or promotional cards visible until the public launch is requested. Read [IDP maintenance](world-id-auth-maintenance.md) before changing pages. The manifest maps the original guides to documentation routes; the compatibility contract records Auth boundaries.

- Keep `worldcoin/temporal-apps/apps/idpapi/mcp/guides/*.md` as the canonical guide text shared by the Auth browser documentation, MCP, and the generated Mintlify pages. Make content changes in those Markdown files, then regenerate. The landing page in `apps/idpportal/docs.html` is excluded from this migration.
- Do not edit generated `agent-pass/*.mdx` bodies directly. Keep publishing metadata and approved adaptations in `.mintlify/world-id-auth-pages.json` and `scripts/sync-world-id-auth.mjs`. Record the source commit in `.mintlify/world-id-auth-source.json` through the generator.
- Read relevant source diffs and the complete canonical guides. Preserve all sections, tables, examples, limitations, errors, and instructions when converting them to MDX. If code, canonical text, and generated pages disagree, identify the conflict for review and correct the source or converter.
- Keep the complete `coding-agent-setup.md` content, including `Agent instructions` and all sections after it. The Auth HTML renderer hides those sections; copying only rendered HTML loses content.
- `worldcoin/temporal-apps` implementation and merged PRs provide evidence for product behavior. Its `apps/idpapi/mcp/guides/*.md` files remain the canonical guides consumed by Auth's browser documentation and MCP. Read both when maintaining the corresponding Mintlify pages. The landing page in `apps/idpportal/docs.html` is excluded from this migration.
- Mintlify Autopilot may directly create and edit `agent-pass/*.mdx` and open review PRs. Running `scripts/sync-world-id-auth.mjs`, Node.js, or merging an Auth-guide correction first is not a prerequisite for a documentation PR. Preserve approved publishing adaptations and use the manifest for existing source-to-page mappings.
- Read relevant source diffs and complete affected guides. Preserve all human-facing sections, tables, examples, limitations, errors, and setup instructions. Classify the audience before adding content from a merged PR. When code and Auth's guides disagree, explain the discrepancy and include the exact corresponding Auth-guide patch and source path in the documentation PR if source writes are unavailable. Mark that follow-up pending instead of silently claiming both publications agree.
- Match `temporal-apps/apps/idpportal/vite.config.ts` function `humanGuideMarkdown`: the human `coding-agent-setup` page ends immediately before the single `## Agent instructions` heading. Exclude that heading and every later section from Mintlify, including portal tool workflows and agent feedback instructions. Keep the human setup prefix. Agent prompts and instruction links must target the full `/docs/guides/coding-agent-setup.md` on the matching Auth host; Mintlify's Markdown export contains only the human page.
- Read and preserve the full canonical agent guide for context, but keep its agent-only tail on Auth's raw Markdown and MCP surfaces. Do not delete it from `temporal-apps` or copy it into other public pages, collapsed blocks, metadata, examples, or snippets. A merged agent-tool change alone does not require human docs. Follow the source repository's durable-product/public-contract rule; skip implementation walkthroughs, PR history, fix internals, and agent orchestration instructions.
- Public adaptation of `world-id-users.md` as `use-world-id-with-your-agent.mdx` is approved for this migration. Adapt its authenticated-reader introduction for public readers. Keep the original MCP guide's access controls and the authentication requirements of account tools unchanged.
- Rewrite documentation links to the new routes. Keep issuer, discovery, authorization, token, portal, MCP, consent, connection-management, and resource-metadata URLs on the correct Auth host. Moving documentation does not move an API endpoint.
- Publish the generated guides under `agent-pass/`. Preserve the former `/world-id-auth/` documentation URLs through the redirects in `docs.json`; keep internal `world-id-auth` configuration and script filenames unchanged.
- Maintain pages under `agent-pass/`. Preserve the former `/world-id-auth/` documentation URLs through the redirects in `docs.json`; keep internal `world-id-auth` configuration and script filenames unchanged.
- Keep production, sandbox, staging, and local behavior separate. A source merge does not prove a production release. Use matching issuer, discovery, registration, and credentials for each environment; flag unclear release status.
- Preserve IDs, claims, scopes, method names, errors, example payloads, and existing section anchors. Flag legacy URLs that need redirects. Do not imply that Auth redirects or a documentation cutover have been deployed.
- Preserve dual publication using [the compatibility contract](world-id-auth-compatibility.json). Keep Auth's landing page, full raw agent Markdown, `llms.txt`, `mcp-oauth` alias, MCP endpoints, and discovery routes available on their existing environment hosts. The contract is not deployed routing configuration; do not replace these paths with blanket redirects.
Expand All @@ -39,10 +40,14 @@ Include the source PR and relevant source files in documentation PRs. Leave page

## Maintenance configuration

Use `.github/workflows/sync-world-id-auth.yml` for one-way publishing from `temporal-apps`. It polls hourly and supports manual dispatch, regenerating the allowlisted pages. Scheduled and manual `main` publications use `codex/sync-world-id-auth`; manual non-main sources use `codex/sync-world-id-auth-manual-<resolved-source-SHA>` to keep their reviews separate. `refs/heads/main` also uses the main publishing branch. Keep the source commit visible in the PR. Do not merge automatically or change global `docs.json` during synchronization.
Mintlify Autopilot owns Agent Pass maintenance and publishing review PRs using its existing GitHub integration with `developer-docs` and `temporal-apps`. Do not restore the retired hourly GitHub publishing workflow or require `IDP_DOCS_APP_ID` or `IDP_DOCS_APP_PRIVATE_KEY`. Leave unrelated product maintenance enabled and avoid overlapping Agent Pass automations.

Use the latest commit changing `apps/idpapi/mcp/guides` at the selected checkout for generated provenance and the PR's source link. Unrelated source commits must not churn open publishing PRs. Keep manual branch isolation based on the selected checkout's HEAD, and stop publishing if guide provenance cannot be resolved.
On each run, inspect new merged `temporal-apps` PRs since the last successfully reviewed boundary. Read actual diffs and relevant implementation context, not just PR titles. Update affected MDX directly and open a concise review PR citing the source PRs, commits, files, and developer-facing effects. Skip changes without a documentation impact, group related changes, and check existing open documentation PRs to avoid duplication. Do not merge automatically. Register new pages within the existing hidden Agent Pass navigation only when needed.

The workflow requires a scoped GitHub App and the configuration in [IDP maintenance](world-id-auth-maintenance.md). Merging this workflow to `main` and configuring its credentials are activation steps. Do not describe automatic publishing as active until they are complete and a run succeeds.
Keep Auth-guide follow-ups explicit. Missing source-write permission or a pending canonical-guide patch does not block proposing a supported `developer-docs` update. Include the exact Markdown patch in the PR description when the Auth guide needs the same correction. Auth deployment and its embedded MCP refresh are separate work; never describe them as completed by merging a Mintlify PR.

Mintlify Autopilot may propose IDP content corrections in the canonical Markdown and continue maintaining other product areas. Publishing transports that reviewed source. Do not independently rewrite generated IDP pages, since regeneration overwrites those edits. Change the converter when a publishing adaptation needs correction. This workflow does not deploy Auth or its MCP services.
Verify freshness with current repository tools and merged-PR history. Do not treat a stale cached checkout as current `main`. If one relevant change cannot be read, identify that gap and leave it unreviewed while proceeding with unrelated changes that have adequate evidence. Do not advance the review boundary over unreviewed changes.

The converter is an optional reconciliation tool, not the publishing owner or an automation gate. It can overwrite native edits, so review its output separately before applying it. `.mintlify/world-id-auth-source.json` records the last converter snapshot only; it is not provenance for subsequent native edits. Leave its hashes unchanged during native maintenance and cite current evidence in the PR instead. Never fabricate hashes or discard human-facing setup instructions. Optional imports must enforce the same audience boundary as native edits.

Treat saved Autopilot instructions, an actual documentation PR, a Mintlify deployment, and a refreshed World Docs MCP response as separate evidence. Do not describe a configured job as a completed run. Publishing here does not deploy Auth or update its embedded MCP guides; track pending guide corrections and Auth release evidence separately.
20 changes: 16 additions & 4 deletions .mintlify/world-id-auth-compatibility.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,22 @@
"futureRedirectHost": "auth.world.org",
"preserveSandboxRouting": true
},
"markdownEquivalent": {
"authPath": "/docs/guides/coding-agent-setup.md",
"docsPath": "/agent-pass/build-with-a-coding-agent.md",
"action": "keep-serving-environment-specific-markdown-on-auth"
"codingAgentPublication": {
"humanContent": "before-agent-instructions-heading",
"excludedHeading": "Agent instructions",
"docsPath": "/agent-pass/build-with-a-coding-agent",
"fullInstructionsPath": "/docs/guides/coding-agent-setup.md",
"fullInstructionsHosts": [
"https://auth.world.org",
"https://sandbox.auth.world.org"
],
"ruleSource": {
"repository": "worldcoin/temporal-apps",
"commit": "26ba0eedaed1f92815219bacf8667fc8fe59d826",
"path": "apps/idpportal/vite.config.ts",
"function": "humanGuideMarkdown"
},
"policy": "Keep the human setup prefix in Mintlify; keep the complete raw guide and MCP content on Auth. The Mintlify Markdown export is not equivalent to the full agent guide."
},
"guideResources": [
{ "id": "getting-started", "audience": "developer", "requiresAuth": false },
Expand Down
Loading
Loading