<- all articles

Durable Workflows and Secure Identity Management

Explores how GitHub Copilot's canvases enable persistent, structured workflows and secure OAuth practices.

What Changed Operationally

Operational workflows involving autonomous agents have traditionally suffered from a lack of persistence, making it difficult to track progress or intervene when necessary. The introduction of canvases in GitHub Copilot fundamentally changes this dynamic by providing a durable, shared surface where developers and agents can interact. This shift moves the execution of complex tasks from a transient chat stream to a structured, inspectable environment. By giving workflows a "home," the platform addresses the limitations of chat-only interfaces, where intent is captured well but durable execution is often lost in the scroll. This capability is not merely a visual upgrade but a structural change that allows teams to define workflow states clearly, surface critical decisions, and persist progress immediately, ensuring that complex agentic work remains visible and steerable throughout its lifecycle.

The Architecture of Durable Workflows

How The Capability Fits Together

The mechanism behind this improvement relies on a specific architectural pattern designed to separate intent from execution. Chat interfaces excel at capturing high-level intent but are inherently weak at maintaining state over time. As a conversation progresses, context can drift, and the history of actions taken can become difficult to reconstruct. Canvases solve this by decoupling the conversational layer from the execution layer. They provide a persistent space where the state of a project or workflow is explicitly maintained. This allows developers to step back and review the work completed by an agent, inspect the decisions made at various stages, and understand the current state of the project without relying on memory or re-prompting. This separation ensures that the workflow is not just a series of messages but a structured entity that can be navigated, audited, and managed.

Design Patterns for Cost and Efficiency

Implementing these canvases requires a deliberate design pattern that balances automation with human oversight. The most effective canvases follow a repeatable structure: they define workflow states clearly, surface the decisions that matter most to the user, and maintain explicit human approval points. This approach is critical for managing the cost and efficiency of AI-assisted development. While creating a canvas requires an initial investment of time to design and shape, the long-term benefits are significant. By reducing repeated prompting, minimizing context loss, and preventing unnecessary back-and-forth, canvases drastically lower the cost of rework. For example, specific implementations like the Java Modernization Studio and Site Studio demonstrate that while the upfront effort is non-trivial—often requiring thousands of AI credits—the durable nature of the canvas prevents the inefficiencies associated with fragmented chat sessions. This makes canvases a practical investment for any workflow that requires more than a simple, one-off interaction.

Operational Impact

Architectural Implications for OAuth and Access Management

The introduction of multiple redirect URIs and wildcard matching fundamentally alters the security posture of OAuth applications. Previously, developers were often forced to register a single, specific URL for the callback, which could create fragility during development or when deploying to multiple environments. The new capability to register up to 10 redirect URIs allows administrators to map specific environments—such as staging, production, and internal CI/CD pipelines—to a single application registration. This granular control reduces the risk of misconfiguration, ensuring that the application only accepts callbacks from trusted, pre-validated endpoints.

However, the addition of wildcard matching introduces a significant architectural consideration. While enabling wildcard matching is convenient for apps with a single redirect URI, it requires a rigorous review of the application's route control. If the application receiving the redirect does not have strict route control, malicious actors could potentially exploit the wildcard to intercept tokens intended for other paths. Consequently, administrators must audit the backend infrastructure to ensure that the application handling the callback validates the redirect_uri parameter against a strict whitelist rather than relying on simple prefix matching. This necessitates a shift from a passive acceptance of the callback to an active, validated handshake.

Evaluating and Implementing Token Refresh Strategies

Rollout And Governance Decisions

The opt-in capability for expiring access tokens and refresh tokens represents a critical evolution in identity management, moving away from long-lived credentials toward a more secure, rotation-based model. For administrators, this change requires a comprehensive audit of existing client applications to determine which can safely transition to this new lifecycle. Not all legacy clients may support the complexity of managing refresh tokens, so a phased rollout is often necessary to avoid breaking existing integrations. The six-month validity period for refresh tokens, combined with the ability to request short-lived access tokens during the authentication flow, offers a robust balance between security and usability.

To implement this effectively, organizations should treat the refresh token flow as a mandatory upgrade for any application handling sensitive data. This involves updating the authentication logic to handle the refresh_token grant type and implementing logic to gracefully handle token expiration without interrupting the user experience. While the initial implementation requires engineering effort to handle the additional round-trip for token refreshing, the reduction in the attack surface area for compromised credentials provides a substantial security benefit. This approach ensures that even if an access token is intercepted, its usefulness is limited by its short lifespan, forcing attackers to constantly re-authenticate.

Designing Durable Workflows with Canvases

The shift from chat-only interactions to durable, shared surfaces, known as canvases, offers a pragmatic solution for managing complex, multi-step workflows. In a traditional chat interface, the context of a long-running task can be lost in the scroll, leading to context loss and rework. Canvases solve this by providing a persistent workspace where the state of the workflow is explicitly defined and visible. For administrators and engineers, this means that the "handshake" between the human and the agent is no longer ephemeral but is instead a tangible artifact that can be inspected, modified, and reverted.

The practical application of this technology involves selecting a repetitive, high-value workflow and designing it around a canvas pattern. This pattern includes defining clear workflow states, surfacing critical decisions for human approval, and persisting progress immediately to prevent data loss. While the initial design of a canvas requires an investment of time and AI credits, the long-term efficiency gains are significant. By reducing the need for repeated prompting and minimizing context loss, canvases streamline the development process. For organizations looking to adopt this, the recommended approach is to identify a specific pain point in the current workflow and build a minimal canvas around it using the /create-canvas command, using the examples available in awesome-copilot as a template for success.

Failure Modes And Limits

Failure Modes and Architectural Limitations

While the introduction of canvases offers a robust framework for managing agentic workflows, the approach is not without potential failure modes. The most significant risk lies in the complexity of state management. If developers fail to define workflow states clearly or surface the critical decisions that matter, the canvas can become a repository of unstructured data rather than a steerable tool. This lack of clarity can lead to "drift," where the agent's output diverges from the user's intent, rendering the durable surface ineffective. Furthermore, the reliance on a shared surface introduces a dependency on the stability of that specific environment; if the canvas context is lost or corrupted, the entire workflow history may be inaccessible, forcing a restart from a previous state.

Security And Privacy Considerations

Architectural limitations also present challenges, particularly regarding the integration of existing workflows. The research notes indicate that old clients may need to be updated to support refresh token flows, a necessary step for maintaining security but one that complicates deployment. Similarly, while wildcard matching for redirect URIs is a powerful feature, it introduces a security surface area. If the application logic on the redirected site does not have strong route control, wildcard matching can be abused, allowing unauthorized access to the application's state. Developers must therefore rigorously review their app architecture before enabling these features, ensuring that the benefits of flexibility do not come at the cost of security vulnerabilities.

Unanswered Questions and Verification

Despite the detailed documentation provided by GitHub, several unanswered questions remain for practitioners looking to implement these features at scale. The specific cost implications of using canvases are difficult to generalize; while one developer reported spending approximately 2,000 AI credits on a Site Studio build and 3,000 on a Java Modernization Studio, these figures are anecdotal. It is unclear how these costs scale with the complexity of the workflow or the duration of the agent's execution. Additionally, the article focuses exclusively on GitHub Copilot, leaving users of other AI-driven development platforms without guidance on how to achieve similar durability and visibility.

Open Questions

Finally, the security implications of rotating access tokens and refresh tokens require deeper scrutiny. While the ability to opt in to expiring tokens is a positive step, the mechanism for handling token refresh failures in a canvas environment is not fully detailed. If a token expires during a long-running agent task, how does the system handle the interruption without losing the progress saved on the canvas? Readers must verify the specific behavior of token refresh mechanisms within their chosen environment before relying on these features for production-grade applications.

Environment Checklist

Before deploying these workflows to a production environment, ensure the following actions are completed:

Environment Checklist

  • Review Redirect URI Security: Audit all configured redirect URIs to ensure wildcard matching is only enabled where strong route control is guaranteed.
  • Update Client Dependencies: Verify that all client applications are updated to support the new refresh token flow requirements.
  • Define Workflow States: Explicitly map out all states within the canvas to prevent workflow drift and ensure the agent remains steerable.
  • Test Token Rotation: Simulate token expiration scenarios to confirm that refresh tokens are handled correctly without disrupting the workflow.
  • Assess Cost Models: Evaluate the estimated AI credit usage for your specific workflow complexity to ensure the investment aligns with project budgets.

Verification Statement

This article was not lab-tested. The claims regarding costs, specific token behaviors, and architectural limitations are synthesized from published changelogs and blog posts. Readers must verify all technical specifications and security configurations directly with the official documentation and their own infrastructure before implementing these features in a production environment.

// source record

Sources

  1. https://github.blog/changelog/2026-08-14-multiple-redirect-uris-and-token-refresh-for-oauth-apps github.blog · checked 18 Aug 2026
  2. https://github.blog/ai-and-ml/github-copilot/how-canvases-make-agentic-workflows-visible-steerable-and-cost-efficient/ github.blog · checked 18 Aug 2026