Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a967296
feat(hub): add agent connection storage
nshki Nov 30, 2026
6677043
feat(hub): complete the Learning agent experience
nshki Nov 30, 2026
8363f54
fix(hub): suppress MCP payload logging
nshki Nov 30, 2026
2f9f656
docs(hub): map agent learning routes in Storybook
nshki Nov 30, 2026
1661ec7
fix(infrastructure): clarify learning consent state
nshki Nov 30, 2026
3826fec
fix(hub): add timestamps to agent tables
nshki Nov 30, 2026
687b81b
fix(hub): harden Learning MCP inputs and errors
nshki Nov 30, 2026
682ce62
fix(hub): bind agent access and isolate note processing
nshki Nov 30, 2026
576ed72
fix(hub): make Learning consent explicit and settings recoverable
nshki Nov 30, 2026
4432c64
fix(hub): retain separate scheduling history for notes and comments
nshki Nov 30, 2026
0409f7b
chore(learning): sync layer 5 with its reviewed parent
nshki Nov 30, 2026
f78425d
test(hub): use the stable theme provider for agent connections
nshki Nov 30, 2026
d03524a
fix(hub): keep MCP diagnostics out of agent output and logs
nshki Nov 30, 2026
2d557d1
chore(learning): sync worker authorization fixes from the parent layer
nshki Nov 30, 2026
81f38c0
fix(hub): protect OAuth request logs and type notes-only MCP inputs
nshki Nov 30, 2026
8e509d9
test(azure): cover Learning consent post-setup and recovery
nshki Nov 30, 2026
2bbe077
fix(azure): link directly to the deployed Hub after consent setup
nshki Nov 30, 2026
a836bc6
fix(hub): confirm learning consent and refresh agent approvals
nshki Nov 30, 2026
79b50c3
fix(hub): import Pick & Polish notes in retry-safe batches
nshki Nov 30, 2026
3381157
fix(hub): enforce current consent throughout learning runs
nshki Nov 30, 2026
453de74
chore(learning): integrate reviewed Solo, history and consent layers
nshki Nov 30, 2026
d50efdb
chore(learning): sync safe evidence lookup into the Hub experience
nshki Nov 30, 2026
668cc20
chore(learning): sync historical database upgrade coverage
nshki Nov 30, 2026
9d06cb3
fix(azure): retain the verified Hub URL after restart
nshki Nov 30, 2026
8369c2b
fix(learning): recover decisions against the original local store
nshki Dec 1, 2026
f31a1c4
fix(hub): reconnect Learning activity, sharing, and evaluation data
nshki Dec 1, 2026
3c6c947
fix(hub): restore the approved Learnings review experience
nshki Dec 1, 2026
271d46b
fix(hub): preserve newly eligible learning score requests
nshki Dec 1, 2026
62c5a20
fix(learning): bound publication by the next eligibility change
nshki Dec 1, 2026
3dec8e0
fix(hub): recheck consent before disclosing learning data
nshki Dec 1, 2026
4ed46c5
fix(hub): keep Learning settings in the repository header
nshki Dec 1, 2026
90ba0f0
fix(hub): remove the recent runs list from Learnings
nshki Dec 1, 2026
4cb7646
refactor(hub): separate learning helper and repository type ownership
nshki Dec 1, 2026
b9593f4
refactor(hub): record daily learning activity with Prisma
nshki Dec 1, 2026
af5fba6
fix(hub): recheck screenshot consent when sending learning history
nshki Dec 1, 2026
a53e9ea
fix(hub): reserve agent capacity for approved clients
nshki Dec 1, 2026
35420e6
refactor(hub): compose client registration in the connection domain
nshki Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions hub/client/application/hub-application/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,11 @@ export function HubApplication({ canvasReturnTo }: { canvasReturnTo?: string } =
: null,
badge: "Collaborative prototyping",
badgeAlternate: "Built for feedback",
description: canvasReturnTo
? "Sign in to continue to your Replica canvas connection."
: "Sign in with an active Replica Hub membership.",
description: canvasReturnTo?.startsWith("/agents/")
? "Sign in to connect your coding agent to Replica Hub."
: canvasReturnTo
? "Sign in to continue to your Replica canvas connection."
: "Sign in with an active Replica Hub membership.",
footerNote: "\u00a9 2026 GitHub, Inc.",
heading: "Build and review prototypes with your team.",
notice: null,
Expand Down
29 changes: 29 additions & 0 deletions hub/client/application/hub/agent-connections/contract.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { z } from "zod"

export const agentAuthorizationSchema = z
.object({
agent: z.string().min(1),
redirectUri: z.url(),
session: z.string().min(1).max(255),
signedInAs: z.string().min(1),
expiresAt: z.iso.datetime(),
})
.strict()

export const agentDecisionSchema = z.object({ redirectUrl: z.url() }).strict()

export const agentConnectionsSchema = z
.object({
connections: z.array(
z
.object({
id: z.uuid(),
agent: z.string().min(1),
createdAt: z.iso.datetime(),
lastUsedAt: z.iso.datetime().nullable(),
inactiveAt: z.iso.datetime(),
})
.strict(),
),
})
.strict()
24 changes: 23 additions & 1 deletion hub/client/application/hub/learnings-contracts/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,24 @@ describe("Learnings contracts", () => {
automaticRunsEnabled: false,
solo: false,
localLearningSetupNeeded: false,
activity: [],
activity: [
{
date: "2026-11-10",
runs: 2,
commentsAnalyzed: 4,
commentsTagged: 2,
suggestions: 1,
lastRun: {
state: "failed",
startedAt: "2026-11-10T12:00:00.000Z",
startedBy: { type: "user", login: "mona" },
},
},
],
today: "2026-11-10",
usageCredits: "0.0735",
runAvailable: true,
firstRunNeeded: false,
loadError: null,
identityReviewCount: 1,
suggestions: [
Expand Down Expand Up @@ -120,6 +134,12 @@ describe("Learnings contracts", () => {
}

expect(learningsResponseSchema.parse(response)).toEqual(response)
expect(
learningsResponseSchema.safeParse({
...response,
capabilities: { administerHub: true, administerRepository: false },
}).success,
).toBe(false)

const soloActivity = {
...response,
Expand All @@ -142,6 +162,7 @@ describe("Learnings contracts", () => {
}

expect(learningsResponseSchema.parse(soloActivity)).toEqual(soloActivity)
expect(learningsResponseSchema.safeParse({ ...soloActivity, solo: false }).success).toBe(false)
})

it.each([false, true])(
Expand Down Expand Up @@ -221,6 +242,7 @@ describe("Learnings contracts", () => {
usageCredits: "0",
runAvailable: false,
loadError: null,
firstRunNeeded: false,
identityReviewCount: 0,
suggestions: [
{
Expand Down
Loading
Loading