Repository navigation
Conversation
Add the persistence and initial user-facing connection page needed for authenticated learning agents. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Connect authenticated agents to repository learnings, add consent controls for review comments and Pick & Polish notes, and expose deployed setup through the Azure wizard. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Mark MCP routes private before parsing request bodies. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
List the new agent management and approval screens beside their stories. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Explain how disabling and re-enabling deployment-wide learning consent affects the saved administrator grant. Make the lifecycle visible in the Azure setup prompt and operator guidance. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Keep the new agent tables consistent with Hub schema conventions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical privacy and authorization flaws allow surrounding chat to reach Hub, record deployment-wide learning consent without explicit acknowledgement, and leave agent tokens usable after sign-out.
21 open issues
Tie agent token validity to the approving session lifecycle · New Disclose and confirm deployment-wide review-comment consent · New Bound and reclaim abandoned OAuth client registrations · New Use notes-only instructions and submission schema for hosted MCP · New Default the consent selector to the current setting · New Forward MCP and OAuth endpoints in Vite dev and preview · New Avoid nesting a main landmark inside RepositoryWorkspace · New Use Prisma-generated names for overlong database identifiers · New Make due-marker updates recoverable after note import · New Return learning metadata at the top level · New Adopt legacy repository grants before requiring new grants · New Process permitted notes when review-comment consent is absent · New Read the protected Hub session cookie in agent routes · New Preserve safe Hub recovery guidance in MCP tool errors · New Map settings lock conflicts to a retryable 409 · New Audit initial learning settings access denials · New Use the shared responder for repository authority errors · New Include repository in successful settings PATCH responses · New Include learning_settings.denied in actorFor matching cases · New Reject secret-backed consent before writing a plain value · New
And 1 more that still need to be addressed.
1 file not reviewed
hub/package-lock.json: Generated file
What changed in this PR
Extends Hub’s Learning v2 with OAuth-connected coding agents and administrator-controlled evidence consent, while retaining Solo for local repositories.
Changes:
- Adds agent approval, token refresh and revocation, and repository MCP endpoints for guidance, usage reports, and note submissions.
- Adds separate review-comment and Pick & Polish consent settings, persistence, scheduling, and audit support.
- Adds Azure consent configuration, frontend routes, Storybook states, and focused tests.
| File | Description |
|---|---|
infrastructure/README.md |
Documents deployment consent setup and lifecycle. |
infrastructure/installer/types.ts |
Adds the Learning post-setup action. |
infrastructure/installer/entry/index.ts |
Adds Learning consent to the menu. |
infrastructure/installer/entry/index.test.ts |
Covers the new menu action. |
infrastructure/azure/post/progress/index.ts |
Persists Learning consent answers for recovery. |
infrastructure/azure/post/index.ts |
Applies consent-only deployment updates. |
infrastructure/azure/post/configure/index.ts |
Prompts for deployment-wide consent. |
infrastructure/azure/post/configure/index.test.ts |
Covers consent choices. |
hub/server/start-server-processes/index.ts |
Accepts agent connection dependencies. |
hub/server/run-api/index.ts |
Passes agent dependencies into the app. |
hub/server/routes/types.ts |
Extends shared route dependencies. |
hub/server/routes/index.ts |
Registers agent and Learning settings routes. |
hub/server/routes/api/security-audits/present-security-audit/index.ts |
Presents new connection and settings audit events. |
hub/server/routes/api/learnings/types.ts |
Defines settings operations and audit contracts. |
hub/server/routes/api/learnings/settings/patch/index.ts |
Adds administrator-authorized settings updates. |
hub/server/routes/api/learnings/settings/get/index.ts |
Adds authorized settings retrieval. |
hub/server/routes/api/learnings/index.test.ts |
Adds settings dependency fixtures. |
hub/server/routes/api/learnings/create-learnings-route-dependencies/repository-authority.db.test.ts |
Covers authority loss before consent changes. |
hub/server/routes/api/learnings/create-learnings-route-dependencies/index.ts |
Implements consent reads and guarded changes. |
hub/server/routes/api/copilot-connection/create-copilot-connection-route-dependencies/index.ts |
Passes deployment consent into Copilot connection. |
hub/server/routes/agent-connections/types.ts |
Defines agent route configuration. |
hub/server/routes/agent-connections/index.ts |
Implements browser management and repository MCP access. |
hub/server/routes/agent-connections/index.db.test.ts |
Covers OAuth approval, rotation, and revocation. |
hub/server/repositories/security-audits/parse-security-audit-event/index.ts |
Accepts Learning settings denial events. |
hub/server/repositories/security-audits/create-security-audit/types.ts |
Extends typed denial audit operations. |
hub/server/repositories/learning-settings/save-repository-learning-setting/index.ts |
Saves repository consent settings. |
hub/server/repositories/learning-settings/record-pick-and-polish-notes-received/index.ts |
Marks incoming notes for learning discovery. |
hub/server/repositories/learning-settings/get-review-comment-consent/index.ts |
Resolves repository and deployment consent. |
hub/server/repositories/learning-settings/get-repository-learning-setting/index.ts |
Reads settings with change attribution. |
hub/server/repositories/learning-runs/list-due-learning-repositories/index.ts |
Accounts for consent changes and incoming notes. |
hub/server/repositories/learning-runs/list-due-learning-repositories/index.db.test.ts |
Covers scheduling after deployment consent changes. |
hub/server/repositories/copilot-connections/replace-copilot-connection/index.ts |
Accepts the consent timestamp. |
hub/server/repositories/agent-connections/touch-agent-connection/index.ts |
Validates access tokens and updates activity. |
hub/server/repositories/agent-connections/rotate-agent-connection/index.ts |
Rotates access and refresh tokens. |
hub/server/repositories/agent-connections/revoke-agent-connection/index.ts |
Revokes connections by token or owner. |
hub/server/repositories/agent-connections/record-agent-connection-audit/index.ts |
Records approval and revocation audits. |
hub/server/repositories/agent-connections/list-agent-connections/index.ts |
Lists current owner-bound connections. |
hub/server/repositories/agent-connections/find-agent-repository/index.ts |
Restricts agent access to connected GitHub repositories. |
hub/server/repositories/agent-connections/create-agent-connection/index.ts |
Persists agent credentials and authority references. |
hub/server/repositories/agent-clients/find-agent-client/index.ts |
Retrieves registered OAuth clients. |
hub/server/repositories/agent-clients/create-agent-client/index.ts |
Persists OAuth client registrations. |
hub/server/repositories/agent-authorizations/find-pending-agent-authorization/index.ts |
Retrieves pending approval requests. |
hub/server/repositories/agent-authorizations/find-agent-authorization-challenge/index.ts |
Retrieves valid PKCE challenges. |
hub/server/repositories/agent-authorizations/decide-agent-authorization/index.ts |
Settles approval requests once. |
hub/server/repositories/agent-authorizations/create-agent-authorization/index.ts |
Creates requests and removes expired ones. |
hub/server/repositories/agent-authorizations/claim-agent-authorization/index.ts |
Consumes approved authorization codes atomically. |
hub/server/integrations/mcp/require-agent-token/index.ts |
Enforces bearer authentication with OAuth discovery. |
hub/server/integrations/mcp/handle-mcp-request/index.ts |
Serves stateless MCP requests. |
hub/server/integrations/mcp/handle-mcp-request/index.test.ts |
Covers already-parsed MCP request bodies. |
hub/server/integrations/mcp/create-agent-auth-router/index.ts |
Configures OAuth discovery and endpoints. |
hub/server/integrations/mcp/agent-oauth-provider/types.ts |
Defines the OAuth service interface. |
hub/server/integrations/mcp/agent-oauth-provider/index.ts |
Adapts agent connections to the MCP SDK. |
hub/server/integrations/learning/load-learning-mcp/index.ts |
Loads shared Learning MCP tools lazily. |
hub/server/integrations/learning/load-learning-mcp/index.test.ts |
Covers shared tool loading. |
hub/server/integrations/express/canvas-sign-in-return/index.ts |
Allows returning to agent approval after sign-in. |
hub/server/index.ts |
Configures agent services at startup. |
hub/server/domains/learning/read-review-comment-consent/index.ts |
Parses deployment consent configuration. |
hub/server/domains/learning/read-review-comment-consent/index.test.ts |
Covers the default consent setting. |
hub/server/domains/learning/read-learning-configuration/index.ts |
Includes consent in Learning configuration. |
hub/server/domains/learning/read-learning-configuration/index.test.ts |
Covers consent defaults and invalid values. |
hub/server/domains/learning/process-learning-run/index.ts |
Applies review-comment consent during runs. |
hub/server/domains/learning/process-learning-run/index.test.ts |
Covers grant selection and disabled imports. |
hub/server/domains/learning/create-learning-job-processors/index.ts |
Connects consent storage to workers and scheduling. |
hub/server/domains/learning/change-pick-and-polish-consent/index.ts |
Creates or withdraws note-learning grants. |
hub/server/domains/copilot-connection/types.ts |
Extends connection persistence contracts. |
hub/server/domains/copilot-connection/connect-copilot/index.ts |
Records deployment consent on connection. |
hub/server/domains/copilot-connection/connect-copilot/index.test.ts |
Checks consent timestamp persistence. |
hub/server/domains/agent-connections/create-learning-mcp-backend/index.ts |
Implements hosted guidance, usage, and note operations. |
hub/server/domains/agent-connections/create-learning-mcp-backend/index.test.ts |
Covers access checks, privacy filtering, and errors. |
hub/server/domains/agent-connections/create-agent-connections/index.ts |
Implements the OAuth connection lifecycle. |
hub/server/create-app/index.ts |
Wires agent routes and sensitive-request protections. |
hub/server/create-app/index.test.ts |
Covers exclusion of MCP bodies from logs. |
hub/schema/repository.prisma |
Links repositories to Learning settings. |
hub/schema/repository-learning-setting.prisma |
Models consent, attribution, and note receipt. |
hub/schema/migrations/20261224120000_repository_learning_settings/migration.sql |
Adds consent storage and relations. |
hub/schema/migrations/20261223170000_agent_connections/migration.sql |
Creates OAuth client, authorization, and connection tables. |
hub/schema/membership.prisma |
Adds connection and consent-attribution relations. |
hub/schema/hub-session.prisma |
Links sessions to agent authorizations. |
hub/schema/external-identity.prisma |
Links identities to agent connections. |
hub/schema/copilot-connection.prisma |
Stores deployment consent time. |
hub/schema/authentication-provider-revision.prisma |
Links provider revisions to agent connections. |
hub/schema/agent-connection.prisma |
Models token digests and connection authority. |
hub/schema/agent-client.prisma |
Models registered OAuth clients. |
hub/schema/agent-authorization.prisma |
Models approval requests and one-time codes. |
hub/package.json |
Adds the MCP SDK dependency. |
hub/package-lock.json |
Locks the MCP SDK dependency tree. |
hub/docs/storybook.md |
Adds links to agent and settings stories. |
hub/client/storybook/fixtures/learnings.ts |
Replaces the evaluation link with settings. |
hub/client/pages/learnings-page/types.ts |
Renames the settings navigation property. |
hub/client/pages/learnings-page/styles.css |
Styles header actions. |
hub/client/pages/learnings-page/stories.tsx |
Updates settings-link fixtures. |
hub/client/pages/learnings-page/index.tsx |
Links to Learning settings. |
hub/client/pages/learning-settings-page/types.ts |
Defines settings presentation data. |
hub/client/pages/learning-settings-page/styles.css |
Styles consent controls. |
hub/client/pages/learning-settings-page/stories.tsx |
Adds settings save and error states. |
hub/client/pages/learning-settings-page/index.tsx |
Presents separate evidence-consent switches. |
hub/client/pages/agent-connections-page/types.ts |
Defines approval and connection-list data. |
hub/client/pages/agent-connections-page/styles.css |
Styles agent setup and approval views. |
hub/client/pages/agent-connections-page/stories.tsx |
Adds approval, listing, and revocation states. |
hub/client/pages/agent-connections-page/index.tsx |
Presents setup, approval, and revocation controls. |
hub/client/pages/agent-connections-page/index.test.tsx |
Covers configuration copying and revoke confirmation. |
hub/client/application/hub/view-models/settings-learnings/index.ts |
Gates Learning settings navigation by repository authority. |
hub/client/application/hub/routes/real-workspace-navigation.test.tsx |
Covers approval return paths through sign-in. |
hub/client/application/hub/routes/product-routes.ts |
Registers repository agent and settings pages. |
hub/client/application/hub/routes/learning-settings/index.tsx |
Loads settings and submits consent changes. |
hub/client/application/hub/routes/learning-agents/index.tsx |
Loads connections and handles revocation. |
hub/client/application/hub/routes/agent-approval/index.tsx |
Loads requests and submits approval decisions. |
hub/client/application/hub/routes.ts |
Registers standalone agent approval. |
hub/client/application/hub/learnings-contracts/types.ts |
Defines settings request and response types. |
hub/client/application/hub/learnings-contracts/index.ts |
Adds settings validation schemas. |
hub/client/application/hub/agent-connections/contract.ts |
Validates agent API responses. |
hub/client/application/hub-application/index.tsx |
Adds agent-specific sign-in copy. |
Review effort: Max (adaptive)
Tie agent tokens to the approving session and bound OAuth registrations. Accept only Pick & Polish notes through Hub MCP and keep their scheduled work separate from review-comment consent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Keep deployment consent off by default, describe what connecting Copilot permits, and leave the first manual run available. Return the updated settings and report denied or busy requests consistently. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
The standalone agent page uses Primer components, not Hub theme state. Its test no longer depends on the location of Hub’s theme provider on the stack base. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Return fixed host recovery messages by error code. Do not log request errors or let their text become instructions for the agent. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
There was a problem hiding this comment.
🟡 Changes recommended
Unresolved critical flaws can expose OAuth credentials, allow learning evidence to be processed without valid consent, and permit fabricated reviewer attribution.
16 open issues
Exclude OAuth token requests from request-body logging · New Bind unverified note authors to the authenticated submitter · New Filter evidence processing by current consent grants · New Recheck administrator authority before using deployment consent · New Make note-consent grant handoff durable and retry-safe · New Reload approval state after a 409 account conflict · New Add frontend coverage for consent switches and save states · New Disclose and confirm review consent in first-run flow · New Show note submission among the actions granted on approval · New Checkpoint review comments only after successful import · New Track pending note work independently of review-comment consent · New Make combined consent updates atomic or reject them · New Cover Learning consent and recovery in post-setup tests · New Give notes-only submissions a distinct backend input type · New Chunk hosted note submissions within import limits · New Test that notes-only submissions reject conversation fields · New
21 resolved since last review
Default the consent selector to the current setting Use notes-only instructions and submission schema for hosted MCP Bound and reclaim abandoned OAuth client registrations Disclose and confirm deployment-wide review-comment consent Tie agent token validity to the approving session lifecycle Provide a first-run path to establish comment consent Reject secret-backed consent before writing a plain value Include learning_settings.denied in actorFor matching cases Include repository in successful settings PATCH responses Use the shared responder for repository authority errors Audit initial learning settings access denials Map settings lock conflicts to a retryable 409 Preserve safe Hub recovery guidance in MCP tool errors Read the protected Hub session cookie in agent routes Process permitted notes when review-comment consent is absent Adopt legacy repository grants before requiring new grants Return learning metadata at the top level Make due-marker updates recoverable after note import Use Prisma-generated names for overlong database identifiers Avoid nesting a main landmark inside RepositoryWorkspace
And 1 more resolved.
1 file not reviewed
hub/package-lock.json: Generated file
Review effort: Max (adaptive)
Exclude OAuth payloads before parsing and ensure a transcript-only backend cannot be paired with the hosted notes schema. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Explain ongoing repository comment imports before a manual run and the note storage allowed by agent approval. After an account switch, show the current approval session without replaying the decision. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Use committed note and reply event versions as receipts so retries can finish marking learning work without rescheduling unchanged evidence. Split large batches without renumbering replies and attribute human feedback to the authenticated submitter. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Limit processing to permitted grants and reconcile note consent after interrupted saves. Keep review checkpoints tied to real imports and let unfinished notes continue independently. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Preserve the Hub-specific agent and settings destinations and first-run confirmation, alongside the restored administrator history, expanded evidence, and Solo store identity safeguards. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Show the Hub origin after a restart, the Copilot page after Learning setup, and GitHub setup after sign-in changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Resolve suggested-update dismissals from their operation receipts and keep store-bound reads and decisions pinned to the original checkout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Restore the reviewed data paths behind the Learning UI. Keep private run details, shared versions, and screenshot evidence behind their current authority and consent checks. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Bring back the sticky repository bar, activity grid, guidance history, and Build and settings flows from the accepted design. Drive Storybook from the live pages and retain the consent and access boundaries added by the stack. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Recheck the request revision, last report time and matching successful Build in the delete so cleanup cannot discard renewed work. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Tell hosts when a publication projection must be discarded even if no writer has changed the store. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Fence cross-repository publication, read screenshot permission inside the serialized recall, and withhold repository settings from budget-only administrators. Keep the final denial audit and repository-scoped lookups. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Keep the title and back link visible above each repository settings view. Render only the budget for budget-only administrators, and keep standalone agent approval separate. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Keep run feedback in the selected activity day rather than showing a separate list and credit breakdown above the library. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
There was a problem hiding this comment.
🟡 Changes recommended
Unused anonymous registrations can monopolize client capacity, and consent withdrawals during asynchronous checks can leave screenshot-derived text in responses.
5 open issues
Separate pending registrations from the long-lived client quota · New Revalidate screenshot consent immediately before sending · New Move consentedScreenshot into its own function directory · New Avoid importing another repository’s authority type · New Use Prisma operations for daily run aggregation · New
16 resolved since last review
Make note-consent grant handoff durable and retry-safe Recheck administrator authority before using deployment consent Filter evidence processing by current consent grants Bind unverified note authors to the authenticated submitter Exclude OAuth token requests from request-body logging Test that notes-only submissions reject conversation fields Chunk hosted note submissions within import limits Give notes-only submissions a distinct backend input type Cover Learning consent and recovery in post-setup tests Make combined consent updates atomic or reject them Track pending note work independently of review-comment consent Checkpoint review comments only after successful import Show note submission among the actions granted on approval Disclose and confirm review consent in first-run flow Add frontend coverage for consent switches and save states Reload approval state after a 409 account conflict
Review effort: Balanced (adaptive)
Each screenshot projection now has its own function directory. The agent connection query describes its owner without importing another repository. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Keep the run completion and atomic increments in one transaction. Normalize the transaction timezone before reading stored run timestamps. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Resolve history after the last reader-access check so withdrawn images cannot expose derived reasoning or suggested wording. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Bound pending registrations separately and reclaim unused entries without interrupting active approvals, exchanges or connections. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352
Hold the lifecycle lock and perform the capacity checks on one transaction. Share the pending-registration predicate and cutoff without coupling separate repositories. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 459b160c-a7ab-4c14-8a06-098ca9096352



Why
People using Hub need to give coding agents access to accepted repository learnings without sharing chat history. Repository administrators need to control review-comment and Pick & Polish evidence separately, while deployment administrators need a clear consent setup path.
What changes
People can connect or revoke a coding agent from the Learnings page. Before approval, Hub shows where access will go and what it allows: agents can read accepted guidance, report what they used, and submit Pick & Polish notes. Hub stores those notes only for repositories that allow it, never the surrounding chat. Local Hub repositories continue to use the checkout’s MCP server in local learning mode.
Repository administrators control review comments and notes separately in Learning settings. Requesting a manual run shows which repository’s comments Hub can import for this and future runs. Confirming does not turn imports back on if they are off. Allowed notes can still be processed when review comments are not allowed.
Azure’s post-setup menu now includes learning consent. When deployment-wide review-comment consent is enabled, the Copilot connection screen explains that connecting or checking Copilot records consent across repositories. Repository administrators can opt out for their repository.
Learnings uses the sticky repository header on the index, detail, settings and connected-agent pages. Members can browse the year’s activity, inspect evidence and read decision history. Administrators can compare suggested wording and manage eligible shared guidance. The selected Build shows what agents report using. A Hub administrator without repository administration sees only the shared evaluation budget, not the repository’s consent settings.
The activity grid shows the selected day’s run status without a separate recent-runs list. The standalone Recent Runs story was removed; Failed Learning Run now shows the selected day in the grid.
Storybook screenshots
Captured from
90ba0f01d.Hub/Pages/Security/Copilot — 5 stories
Hub/Features/Settings form boundary — 2 stories
Hub/Pages/Learnings/Detail — 18 stories
Hub/Pages/Learnings/Index — 16 stories
Hub/Pages/Learnings/Settings/Agent connections — 7 stories
Hub/Pages/Learnings/Settings/Learning settings — 8 stories
Hub/Pages/Prototype Review — 2 stories