Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions config/reliability-gates.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3333,7 +3333,7 @@
"durationSeconds": 1.5,
"summary": "175/175 at the relocated paths on the unified tool authority, replacing the 2026-08-27 record of the same command at 174/174. That run killed twelve of fourteen mutants as sole deltas — dropping the document branch from the one authority door, removing either browsing-registration refusal or the mint-side refusal that is its converse, deleting the registration notification or widening it to the worktree-wide and any-tab waits, disposing revoked state by grant instead of by page, dropping the hosting-renderer or destroyed-contents check, rebuilding the renderer tool target from the grant, and deleting the teardown identity check under a re-mint — and reported two as ill-posed rather than as kills. The relocation changed no file it names except their directory."
},
{
{
"date": "2026-08-27",
"runner": "local",
"platform": "macos",
Expand Down Expand Up @@ -3378,7 +3378,7 @@
"durationSeconds": 0.17,
"summary": "22/22 on the candidate that stops a previewed document writing into this desktop's Downloads folder. The hole was read out of the shipping path, not guessed: the preview partition took the shared browser partition policies whole, including will-download, and a preview guest joins no browser-page registry, so handleGuestWillDownload resolved no owner context, routeBrowserClientDownload answered local for a non-client-hosted contents, and the item got a reserved Downloads name with no prompt and no tab to attribute it to. Downloads are now the one policy the preview partition does not inherit. Red-green with each mutant as the sole delta: making the installer ignore the deny option routes the preview partition's download to the router again, and making the preview protocol installer stop asking for the deny leaves the option unset. The absence half is paired with a presence precondition in the same run — an ordinary browsing partition installed beside the preview one in one test still reaches the download router, so a deny that fenced everything, or a download path that had been removed entirely, would fail rather than pass quietly."
},
{
{
"date": "2026-08-27",
"runner": "local",
"platform": "macos",
Expand Down Expand Up @@ -3441,7 +3441,7 @@
"durationSeconds": 0.36,
"summary": "The four surfaces the trusted-click route is built from passed 63/63: the preload's click policy over a real document, including an untrusted dispatched click, an untrusted middle click, an SVG animated href resolved against the document so a relative, rooted or fragment SVG link behaves exactly like the identical HTML anchor, fragment and percent-encoded fragment targets and a trusted middle click; the guest policy's deny-only sinks, its refusal of a navigation that arrives before a document has bound the guest to a grant, and its report gate for an unfocused guest, an unregistered sender, a missing or revoked grant and non-web URLs; will-attach-webview pinning the preview preload in both directions; and the click channel handing main its own sender without a trusted-renderer check."
},
{
{
"date": "2026-08-26",
"runner": "local",
"platform": "macos",
Expand All @@ -3468,7 +3468,7 @@
"durationSeconds": 66,
"summary": "The journey passed 3/3 again under --repeat-each=3 on the candidate that clears grants on every fresh shell document and gates the mint channel on the trusted renderer, so neither change disturbs a live preview: the document still rendered, both browser counts held at baseline, and the target=_blank press still routed out as an Orca browser tab."
},
{
{
"date": "2026-08-26",
"runner": "local",
"platform": "macos",
Expand Down
3 changes: 2 additions & 1 deletion src/main/ipc/pty-controller-ownership-routing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ describe('registerPtyHandlers', () => {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down
10 changes: 6 additions & 4 deletions src/main/ipc/pty-daemon-controller-teardown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ describe('registerPtyHandlers', () => {
getProfiles: vi.fn()
} as never)
const shutdown = vi.fn(async () => undefined)
const store = { markSshRemotePtyLease: vi.fn() }
const store = { markSshRemotePtyLease: vi.fn(), clearSshRemotePtyKillIntent: vi.fn() }
const runtime = {
setPtyController: vi.fn(),
onPtyExit: vi.fn()
Expand Down Expand Up @@ -357,7 +357,7 @@ describe('registerPtyHandlers', () => {
getDefaultShell: vi.fn(),
getProfiles: vi.fn()
} as never)
const store = { markSshRemotePtyLease: vi.fn() }
const store = { markSshRemotePtyLease: vi.fn(), clearSshRemotePtyKillIntent: vi.fn() }
const runtime = {
setPtyController: vi.fn(),
onPtyExit: vi.fn()
Expand Down Expand Up @@ -385,7 +385,8 @@ describe('registerPtyHandlers', () => {
})
it('marks a detached SSH lease terminated when runtime controller kill has no provider', async () => {
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down Expand Up @@ -417,7 +418,8 @@ describe('registerPtyHandlers', () => {
it('keeps a rejected SSH PTY unverifiable after kill shutdown fails transiently', async () => {
const warnSpy = vi.spyOn(console, 'warn').mockImplementation(() => {})
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down
6 changes: 4 additions & 2 deletions src/main/ipc/pty-daemon-spawn-session-identity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ describe('registerPtyHandlers', () => {
throw new Error('SSH_SESSION_EXPIRED: remote-pty')
})
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
registerSshPtyProvider('ssh-1', {
spawn: sshSpawn,
Expand Down Expand Up @@ -514,7 +515,8 @@ describe('registerPtyHandlers', () => {
throw new Error('SSH_SESSION_EXPIRED: remote-pty')
})
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
registerSshPtyProvider('ssh-1', {
spawn: sshSpawn,
Expand Down
12 changes: 8 additions & 4 deletions src/main/ipc/pty-daemon-ssh-lease-lifecycle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ describe('registerPtyHandlers', () => {
)
})
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
registerSshPtyProvider('ssh-1', {
spawn: sshSpawn,
Expand Down Expand Up @@ -136,7 +137,8 @@ describe('registerPtyHandlers', () => {
})
it('does not tombstone an SSH lease when explicit kill shutdown fails transiently', async () => {
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
registerSshPtyProvider('ssh-1', {
spawn: vi.fn(),
Expand Down Expand Up @@ -188,7 +190,8 @@ describe('registerPtyHandlers', () => {
it('marks an SSH lease terminated after runtime controller kill succeeds', async () => {
const shutdown = vi.fn(async () => undefined)
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down Expand Up @@ -408,7 +411,8 @@ describe('registerPtyHandlers', () => {
vi.useFakeTimers()
const shutdown = vi.fn(async () => undefined)
const store = {
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down
6 changes: 4 additions & 2 deletions src/main/ipc/pty-pane-reservation-settlement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ describe('registerPtyHandlers', () => {
persistPtyBinding: vi.fn(),
upsertSshRemotePtyLease: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const runtime = {
setPtyController: vi.fn(),
Expand Down Expand Up @@ -477,7 +478,8 @@ describe('registerPtyHandlers', () => {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
let controller: RuntimeSpawnController | null = null
const runtime = {
Expand Down
9 changes: 6 additions & 3 deletions src/main/ipc/pty-runtime-ssh-binding-persistence.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ describe('registerPtyHandlers', () => {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
let controller: RuntimeSpawnController | null = null
const runtime = {
Expand Down Expand Up @@ -373,7 +374,8 @@ describe('registerPtyHandlers', () => {
throw new Error('disk full')
}),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
let controller: RuntimeSpawnController | null = null
const runtime = {
Expand Down Expand Up @@ -469,7 +471,8 @@ describe('registerPtyHandlers', () => {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
let controller: RuntimeSpawnController | null = null
const runtime = {
Expand Down
6 changes: 4 additions & 2 deletions src/main/ipc/pty-serializer-settlement-mapping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ describe('registerPtyHandlers', () => {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
let controller: RuntimeSpawnController | null = null
const runtime = {
Expand Down Expand Up @@ -215,7 +216,8 @@ describe('registerPtyHandlers', () => {
throw new Error('disk full')
}),
removeSshRemotePtyLease: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}

try {
Expand Down
7 changes: 4 additions & 3 deletions src/main/ipc/pty-session-liveness-and-ownership.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ describe('registerPtyHandlers', () => {
getProfiles: vi.fn()
} as never)
const sshShutdown = vi.fn(async () => undefined)
const store = { markSshRemotePtyLease: vi.fn() }
const store = { markSshRemotePtyLease: vi.fn(), clearSshRemotePtyKillIntent: vi.fn() }
registerSshPtyProvider('ssh-1', {
spawn: vi.fn(),
write: vi.fn(),
Expand Down Expand Up @@ -367,7 +367,7 @@ describe('registerPtyHandlers', () => {
getDefaultShell: vi.fn(),
getProfiles: vi.fn()
} as never)
const store = { markSshRemotePtyLease: vi.fn() }
const store = { markSshRemotePtyLease: vi.fn(), clearSshRemotePtyKillIntent: vi.fn() }
registerPtyHandlers(
mainWindow as never,
undefined,
Expand All @@ -386,7 +386,8 @@ describe('registerPtyHandlers', () => {
const store = {
upsertSshRemotePtyLease: vi.fn(),
persistPtyBinding: vi.fn(),
markSshRemotePtyLease: vi.fn()
markSshRemotePtyLease: vi.fn(),
clearSshRemotePtyKillIntent: vi.fn()
}
const provider = {
spawn: vi.fn(async () => ({ id: 'remote-pty' })),
Expand Down
Loading