# Backed > Backed is a GitHub App that records verified-human backing for pull requests. > People connect GitHub with World IdP and explicitly authorize agent hosts. > Backed records submissions for an exact commit. This proves authorized backing, > not authorship, code review, or code quality. ## Agent workflow - Connect to the hosted MCP endpoint at https://backed.sh/mcp using OAuth authorization code with PKCE. - Compatible hosts self-register through OAuth discovery; no manual host allowlist is needed. Registration grants no access. The person grants capabilities and specific public repositories through the consent screen. - Tools: attest_pr, request_confirmation, get_confirmation_status, check_badge, get_repo_policy. - Call attest_pr with repo, pr, sha, and idempotencyKey. The PR author must be linked to the same verified human. Use a new key for a new commit. - Read repository policy and the current badge before acting. A saved submission does not guarantee a passing check. - When policy requires human confirmation, call request_confirmation and give its private URL to the person. Only that person can authenticate under the repository’s Face Auth, session-age, and re-verification requirements to confirm the exact commit. - Agents cannot confirm themselves or satisfy required human approval with a standing grant. Auto permits qualifying submissions when enabled. A new commit needs new backing and any required confirmation. - Access tokens expire after five minutes. Ordinary OAuth sessions use rotating refresh tokens with a fixed thirty-day expiry. Reusing a spent refresh token revokes the session. - Grants are managed at https://backed.sh/profile#agents; open a connection for its credential sessions. Editing permissions invalidates existing sessions. Revocation blocks further token use and renewal. Sessions are credentials, not individual chats or live agent status. - No wallet, on-chain key registration, PR-body signature, or local signing CLI is required. Legacy wallet and IDKit endpoints are removed (HTTP 404). Human-star counts and /r/ pages are removed; old /api/badge/backers URLs return HTTP 410. Do not use historical star or wallet data as current authorization. - XAA is optional and disabled until the deployment and upstream provider support it. World IdP MCP credentials are not Backed API credentials. ## Human-facing pages - /profile: account identity, World ID status, and Overview, Agents, and Activity tabs. - /profile#agents: connection permissions and MCP setup instructions. - /profile/agents/: owner-only sessions, revocation, and contributions. - /u/: public verification status; private account controls are not public. - /confirm/: the backing human's exact-commit decision. - /setup: repository installation and policy builder. - /agents and /link are compatibility redirects to the profile. ## Keep README requirements visible - When setting up Backed or changing repository verification policy, update contributor-facing README files in the same change, including translated entry points when present. - Immediately after the project title and introductory description (including existing badges), add a compact "Backed contribution requirements" block before installation or usage sections. - Wrap it in and . Update the existing block instead of duplicating it. - Read .github/backed.yml and get_repo_policy. Describe the effective requirements, including legacy rules and overlapping targets. Identify proposed changes until they are merged into the default branch. - Present the requirements as a Markdown table with `Requirement` and `Setting` columns. Include Face Auth, maximum IdP session age, Reverify, Auto, applicable branches/paths, and enforcement. Keep each cell short and put longer explanations below the table. Use readable durations. Session age means time since the IdP's signed auth_time; it is not the person's age, token issuance time, or refresh time. - Reverify means fresh authentication and approval for each commit. Auto permits qualifying agent submissions without individual approval. With both off, each commit needs approval but may reuse an eligible IdP session. - Describe differing requirements per target. No policy means report only. If policy is unavailable or invalid, state that requirements are unknown rather than inventing defaults. - Link the policy file and contributor verification instructions. A failing check only blocks merging when GitHub requires backed / human. Do not claim the GitHub rule or deployment support is verified without evidence. - Keep the README consistent with policy; never change policy merely to match the README. Submit backing and obtain any required confirmation for the final head after README edits. ## Endpoints - OAuth discovery: /.well-known/oauth-authorization-server - Protected resource discovery: /.well-known/oauth-protected-resource/mcp - Client registration: POST /oauth/register - Hosted MCP: /mcp - Authorized submission: POST /api/agent/submissions (Backed bearer token) - Confirmation request: POST /api/agent/confirmation-requests (Backed bearer token) - Public PR status: GET /api/status?repo=&pr= - Public repository policy: GET /api/policy?repo= - User badge: GET /api/badge/user/ - Repository badge: GET /api/badge/repo// ## Documentation - [Connect World ID](https://backed.sh/profile) - [Connections and sessions](https://backed.sh/profile#agents) - [Repository policies](https://backed.sh/setup#builder) - [Source and deployment instructions](https://github.com/lucasanini/backed) - [Architecture and documentation](https://github.com/lucasanini/backed/tree/main/docs) - [World IdP](https://auth.world.org/docs) ## GitHub data access - Backed reads .github/backed.yml, PR metadata, and changed-file paths without requesting code patches or analyzing source code. GitHub PR permissions still allow access to PR code changes. - Repository tokens are scoped to one repository and the needed operation. Installation discovery uses metadata-only access. - Use Single file read for .github/backed.yml, Pull requests write, Checks write, and Metadata read; no broad Contents or separate Issues access.