The agent can wire both sides.
Cloudflare Turnstile has a browser side and a server side. The browser widget produces a token. The backend sends that token to Siteverify before application logic accepts the result. Cloudflare says Turnstile Spin can create the widget, find the relevant frontend and backend code, propose a plan, wait for approval, and then make both changes through the coding agent already working in the repository.[1]
Cloudflare also says Spin can repair a widget that has no server-side validation and can replace another CAPTCHA provider. The application code is not sent to Cloudflare for remote editing. The local coding agent applies the approved patch.[1]
Plan approval authorizes a change. It does not prove who is present when a later sensitive action fires.
A valid session can outlive the decision.
GitHub's new Proof of Presence preview sends an enterprise member back to the identity provider before protected actions. GitHub lists token creation, webhook edits, security-setting changes, and recovery-code access as examples. The identity provider can require a new sign-in, multi-factor authentication, device policy, or another configured check.[2]
The preview is narrow. It covers managed-user enterprises on GitHub Enterprise Cloud and GHEC-DR that use Microsoft Entra ID. After a successful challenge, GitHub says the same browser session can perform protected actions for two hours under the sudo-mode session model. Pull-request merge support is not part of the initial release.[2]
That two-hour detail matters. Presence is not a permanent property of an authenticated browser. It is evidence with a clock and a scope. The useful policy question is not "Was somebody authenticated?" It is "Which action did the fresh challenge authorize, for how long, and what record did it leave?"
Build two gates, not one.
The first gate governs the agent's patch. It should name the files, intended behavior, test plan, and rollback. The second gate governs the sensitive action created or affected by that patch. It should name the action class, identity challenge, lease, and receipt.
GitHub's documentation makes another boundary clear. Proof of Presence adds an identity-provider challenge to protected actions. Its assurance depends on the identity provider policy that the enterprise configures.[3] A redirect is transport. Password, biometric, device compliance, and phishing-resistant authentication are different levels of proof.
Keep the human moment small and exact.
Do not interrupt every low-risk command. Classify the action first:
- Routine actions stay inside a narrow, reversible work envelope.
- Sensitive actions require fresh identity proof and a short lease.
- Irreversible actions require fresh proof, exact target review, and a second accountable approval where policy demands it.
- Every completed action records who authorized it, what target changed, when the lease began, when it expired, and where the result can be reviewed.
The bench below writes a policy template. It does not authenticate anyone, inspect identity-provider claims, constrain an agent, or execute an action.