Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Merge release branch and renumber passkey decision record

justrache475f7a62824
diff --cc apps/native/electron/main.cjs
index c5917854,b879c00a..bd0279be
--- a/apps/native/electron/main.cjs
+++ b/apps/native/electron/main.cjs
@@@ -67,8 -67,8 +67,9 @@@ process.on('SIGTERM', () => app.quit())
process.on('SIGINT', () => app.quit());
app.whenReady().then(async () => {
+ await require('./shell-path.cjs').restoreShellPath();
app.setAccessibilitySupportEnabled(true);
+ const passkeysConfigured = require('./webauthn.cjs').configureWebAuthn(app, resources);
const token = randomBytes(32).toString('hex');
win = createWindow({ width: 1440, height: 920, minWidth: 900, minHeight: 600,
title: 'Codegraff', titleBarStyle: 'hiddenInset', trafficLightPosition: { x: 14, y: 11 }, backgroundColor: '#fafaf9', show: false,
diff --cc docs/adr/0115-desktop-passkeys-use-signed-device-credentials.md
index a6d9e563,00000000..f9b4c466
mode 100644,000000..100644
--- a/docs/adr/0115-desktop-passkeys-use-signed-device-credentials.md
+++ b/docs/adr/0115-desktop-passkeys-use-signed-device-credentials.md
@@@ -1,46 -1,0 +1,46 @@@
- # 0111. Desktop passkeys use signed device credentials
++# 0115. Desktop passkeys use signed device credentials
+
+Status: accepted
+
+## Context
+
+The embedded browser did not configure Electron's macOS WebAuthn authenticator.
+Platform requests therefore had no Touch ID integration, and signing supplied
+no credential keychain group. The pinned Electron API supports Secure Enclave
+credentials, not access to existing iCloud Keychain passkeys. Configuring it is
+not sufficient evidence that every stalled sign-in is fixed.
+
+## Decision
+
+The distribution signer derives one credential group from the signing team and
+actual bundle identifier, puts it in the main application's keychain entitlement,
+and writes the identical value to a signed resource. Startup configures Touch ID
+from that resource before browser creation. Development builds without it leave
+the authenticator disabled rather than inventing a signing identity.
+
+The signer requires and embeds a macOS provisioning profile authorizing the
+team, application identifier, and credential group, and includes the authorized
+application identifier in the main app's entitlements. A stale embedded profile
+is replaced, not silently retained. Supplying a keychain entitlement alone can
+pass `codesign --verify` while macOS refuses launch for lack of a matching
+profile; the build must not mistake signature integrity for authorization.
+
+The persistent browser session handles account selection through a parented
+native dialog. Only the visible owned browser page can prompt; cancellation,
+navigation, hiding, and destruction fail closed. No credential is silently chosen.
+The existing sandbox and general permission denial remain unchanged.
+
+An explicit Tools menu action explains device-bound credentials and offers to
+open the active web page in the default browser. It never automatically forwards
+a failed authentication request or implies that external login transfers a
+session back to Codegraff. We do not enable a different provider API or claim
+third-party iCloud credentials are accessible.
+
+## Consequences
+
+Signing team, bundle identifier, and browser partition must remain stable to
+retain credential access. Unsupported credentials still need another sign-in
+method. Automated virtual-authenticator checks establish request dispatch and
+selection behavior, not biometric or keychain access. Release support requires
+registration, persistence, authentication, and cancellation validation in the
+Developer ID-signed application on supported hardware.
diff --cc docs/adr/README.md
index 4a344bd1,5f46f4a9..018215b1
--- a/docs/adr/README.md
+++ b/docs/adr/README.md
@@@ -121,7 -121,10 +121,11 @@@ record only when you need the evidence
| [0108](0108-browser-events-outrank-pending-snapshots.md) | Browser page-info events invalidate older pending IPC snapshots; a loaded page must not revert to loading. |
| [0109](0109-resume-retains-catalog-and-layout-snapshots.md) | Resume restores loaded tool selections and the same-workspace layout snapshot, without freezing current instructions or granting permissions. |
| [0110](0110-project-mcp-listing-opts-in-optional-servers.md) | Project MCP entries opt in optional servers; inherited extras still require opt-in, and startup consent applies to both. |
- | [0111](0111-desktop-passkeys-use-signed-device-credentials.md) | Desktop Touch ID uses matching signed keychain configuration; account choice is explicit and existing iCloud credentials need a fallback. |
++| [0115](0115-desktop-passkeys-use-signed-device-credentials.md) | Desktop Touch ID uses matching signed keychain configuration; account choice is explicit and existing iCloud credentials need a fallback. |
+ | [0111](0111-peer-inbox-retains-bodies-and-reports-loss.md) | Peer inbox owns complete bodies, reports and persists loss, and clears only after a complete read result is allocated. |
+ | [0112](0112-mcp-wire-names-preserve-raw-routing.md) | MCP wire names are escaped and bounded; raw server/tool identities control policy and dispatch. |
+ | [0113](0113-clipboard-errors-need-evidence.md) | Direct AppKit clipboard failures need typed evidence; generic helper failures never imply Automation permission. |
+ | [0114](0114-live-citations-are-terminal-presentation.md) | Live terminal citations use per-stream display filters with independent reasoning state; structured JSON/ACP output stays unchanged. |
## When to write one