<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeremy Jessup on Medium]]></title>
        <description><![CDATA[Stories by Jeremy Jessup on Medium]]></description>
        <link>https://medium.com/@jeremy_jessup?source=rss-7f5e7cc1cc0b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fTgwmF_RKSBRC8vIuhm_bg.jpeg</url>
            <title>Stories by Jeremy Jessup on Medium</title>
            <link>https://medium.com/@jeremy_jessup?source=rss-7f5e7cc1cc0b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:50:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeremy_jessup/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Two Planes: How a Reactive Data Layer Completes the Capability Event Bus]]></title>
            <link>https://medium.com/@jeremy_jessup/two-planes-how-a-reactive-data-layer-completes-the-capability-event-bus-c107fed6fcc3?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/c107fed6fcc3</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 00:31:01 GMT</pubDate>
            <atom:updated>2026-11-14T00:31:01.704Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why an agentic, capability-driven app needs a command plane and a state plane, and how they stay decoupled from each other.</em></p><h3>Picking up where we left off</h3><p>Two earlier ideas set this up:</p><ul><li>The <strong>capability-driven contract</strong>: one opaque envelope, one event bus, self-registering capabilities, and a host app decoupled from feature internals. An event arrives, the bus routes it, a capability handles it and produces a view.</li><li>The <strong>reactive data layer</strong>: a shared, encrypted store where features read and write state through a uniform Repository API, subscribe to changes with watch, and share state by name without importing each other.</li></ul><p>The event bus is great at one thing: routing a message to whoever can handle it, right now. But a lot of what an app needs isn’t a message; it’s state that persists and that other features want to observe. “The user just tapped refresh” is an event. “The refund estimate is currently $2,412” is state. Trying to model the second as a stream of the first is where event-bus architectures usually go wrong.</p><p>So this article is about the division of labor:</p><ul><li>The <strong>event bus</strong> is the command/intent plane: ephemeral, “do this now,” routed by identifier, fire-and-forget.</li><li>The <strong>data layer</strong> is the state plane: durable, namespaced, reactive, “here is the current truth.”</li></ul><p>Get the boundary right and capabilities stay decoupled not just from the host, but from each other, even when one produces data another consumes.</p><h3>Why two planes</h3><h3>The anti-pattern: a second event bus</h3><p>The tempting shortcut is to push everything through the bus. A capability fetches new data, then publishes a dataChanged event so others can react. Now the bus carries both intents (&quot;open the refund widget&quot;) and state deltas (&quot;refund is now $2,412&quot;), and every consumer has to reconstruct current state by replaying a message history it may have missed.</p><p>The data layer’s design takes an explicit position on this with its <em>notify-without-write</em> signal: notify marks a state-relevance change on an identifier the repository already owns, and <strong>it must not become a second event bus</strong>. Ephemeral fire-and-forget signals belong on the event bus.</p><p>The two planes differ in five ways.</p><ul><li><strong>Lifetime.</strong> A bus message is ephemeral: it’s handled once, then gone. Data in the state plane is durable and persists until it expires.</li><li><strong>The question each answers.</strong> The bus answers “What should happen now?” The data layer answers “What is currently true?”</li><li><strong>Late subscribers.</strong> A subscriber that arrives after a bus message missed it. A subscriber that calls watch on the data layer gets the current value immediately.</li><li><strong>Routing.</strong> The bus routes by the envelope’s identifier. The data layer routes by repository name plus a scoped key.</li><li><strong>Payload.</strong> The bus carries an opaque Envelope. The data layer holds a typed value, or an OpaqueValue for readers that don&#39;t know the type.</li></ul><p>A capability that receives an intent on the bus and needs to <em>remember</em> the result writes it to the data layer. A capability that needs to <em>react</em> to that result watches the data layer. The bus never carries the state.</p><h3>Two capabilities that never meet</h3><p>Here’s the pattern in practice: a producer and a consumer that never reference each other.</p><ul><li>EventEmitterCapability handles the intent envelope demo/emit-event@v1. On receipt, it writes a DemoEvent into a shared events namespace with a short TTL, and publishes nothing back on the bus. The result of handling the event is <em>state</em>, not another event.</li><li>EventConsumerCapability holds no reference to the host and no reference to the emitter. Its view watches the same events key and reflects whatever the data layer currently says is true.</li></ul><p>Here’s what each side looks like:</p><pre>// Emitter: handle an intent → write state (no bus republish)<br>func handle(_ envelope: Envelope) async throws {<br>    let event = DemoEvent(kind: kind, amount: amount, emittedAt: Date())<br>    try await repository.store(<br>        event,<br>        forKey: AgenticContextKey.latestEvent,<br>        lifetime: .expires(Date().addingTimeInterval(ttlSeconds))<br>    )<br><br>    // A TTL elapsing does NOT by itself notify watchers; the value simply<br>    // reads as not-found on the next query. To drive a *reactive* expiry, <br>    // the emitter schedules an explicit remove; that mutation is what makes <br>    // the consumer&#39;s watch stream re-yield.<br>    pendingExpiry = Task {<br>        try? await Task.sleep(nanoseconds: UInt64(ttlSeconds * 1_000_000_000))<br>        try? await repository.remove(forKey: AgenticContextKey.latestEvent)<br>    }<br>}<br><br>// Consumer: watch state → update UI (no reference to the emitter)<br>for await value in eventsRepository.watch(DemoEvent.self, <br>                                          forKey: .latestEvent) {<br>    // nil when the remove fires<br>    await MainActor.run { self.latestEvent = value } <br>}</pre><p>The emitter and consumer are connected only by a shared namespace and key. Either can be added, removed, or replaced independently. That is the same decoupling the event bus provides for messaging, now applied to shared state.</p><h3>Keeping storage out of the capability contract</h3><p>The first article in this series made a point of it: the host never imports feature modules, and capabilities depend only on contracts. The data layer follows the identical discipline: the package that defines the capability contract has no dependency on any concrete storage library.</p><h3>A storage contract the capability package owns</h3><p>The capability package defines a storage <em>contract</em> in its own vocabulary:</p><pre>public protocol CapabilityRepositoryFactory: AnyObject, Sendable {<br>    func makeRepository(namespace: String) -&gt; any CapabilityRepository<br>}<br><br>public protocol CapabilityRepository: AnyObject, Sendable {<br>    func store&lt;T: Codable &amp; Sendable&gt;(_ value: T, forKey key: String, lifetime: CapabilityDataLifetime) async throws<br>    func retrieve&lt;T: Codable &amp; Sendable&gt;(_ type: T.Type, forKey key: String) async throws -&gt; T?<br>    func remove(forKey key: String) async throws<br>    func watch&lt;T: Codable &amp; Sendable&gt;(_ type: T.Type, forKey key: String) -&gt; AsyncStream&lt;T?&gt;<br>}</pre><p>CapabilityDataLifetime mirrors the data layer&#39;s TTL model (.forever / .expires(Date) / .days(Int)) without dragging the storage library&#39;s types into the contract. A capability depends on CapabilityRepository, and nothing else, for persistence.</p><h3>The host owns the adapter</h3><p>The concrete storage library appears exactly once, in the host, behind an adapter:</p><pre>// Host startup<br>let repository = RepositoryFactory.makePublic(named: &quot;agentic-events&quot;, backend: .keyValue())<br>let repositoryFactory = DataLayerRepositoryAdapter(repository: repository)<br>orchestrator.container.register(repositoryFactory, as: CapabilityRepositoryFactory.self)</pre><p>The adapter is thin. It wraps a shared Repository and, per namespace, vends a CapabilityRepository backed by a ScopedDataLayerDelegate that prefixes every key with the namespace, so one capability can never read or clobber another&#39;s keys:</p><pre>final class DataLayerRepositoryAdapter: CapabilityRepositoryFactory {<br>    private let repository: any Repository<br><br>    func makeRepository(namespace: String) -&gt; any CapabilityRepository {<br>        ScopedRepository(<br>            delegate: ScopedDataLayerDelegate(namespace: namespace, repository: repository)<br>        )<br>    }<br>}</pre><p>Inside ScopedRepository, the mapping is mechanical: store → delegate.update, retrieve → delegate.query (collapsing the three-case result to an optional), watch → delegate.watch (collapsing .dataNotFound and .failure to nil), and CapabilityDataLifetime → RepositoryDataLifetime. The capability sees a clean, typed, namespaced surface. It has no idea the concrete store, CryptoKit, or a Keychain-managed key exist.</p><p>The symmetry with the messaging side is the point: <strong>capabilities depend on contracts; the host binds contracts to concrete libraries.</strong> Swap the concrete store for another and only the adapter changes; no capability moves.</p><h3>Decoupled state sharing at scale</h3><p>The producer/consumer demo uses a shared namespace directly. As the number of capabilities grows, two data-layer features make the shared state plane governable without reintroducing coupling.</p><h3>Opaque reads: sharing data without sharing types</h3><p>If a consumer had to import the producer’s Codable type to read its data, you&#39;d have traded a bus dependency for a type dependency. OpaqueValue closes that gap: a recursive enum (string, integer, double, boolean, dictionary, array, null) that decodes any stored JSON blob without the original type:</p><pre>for await result in repository.watchOpaque(identifier: &quot;com.example.app.refund.estimate&quot;) {<br>    if case .retrieved(let value, _) = result,<br>       let amount = value?.value[&quot;amount&quot;]?.doubleValue {<br>        update(amount)<br>    }<br>}</pre><p>This is deliberately the same shape as the event bus’s WrappedValue. The two types are structurally identical and share the same Codable encoding, so a value can cross from the state plane to the command plane (or back) through a mechanical, lossless conversion. By design, that conversion lives in the consumer, not in either library.</p><h3>Manifests: discovery without import coupling</h3><p>The capability architecture lets the host <em>discover</em> features that self-register rather than hard-coding them. RepositoryManifest brings the same idea to data identifiers: each module declares the identifiers it owns, and a registry catches duplicate registrations as they happen instead of letting two features silently overwrite the same key.</p><pre>RepositoryManifestRegistry.shared.register(RefundDataManifest(), forRepository: &quot;capability-data&quot;)<br>let entries = RepositoryManifestRegistry.shared.entries(forRepository: &quot;capability-data&quot;)</pre><p>A consumer can now enumerate the identifiers available in a repository and read them via watchOpaque, discovering shared state at runtime without importing a single producer module.</p><h3>What the two planes unlock together</h3><p>With the boundary drawn cleanly, richer flows compose without new infrastructure:</p><ol><li>A chat agent emits an intent envelope, demo/emit-event@v1, onto the event bus.</li><li>The bus routes it to the producer capability, which handles it and writes the result into the data layer with a TTL. It publishes nothing back on the bus.</li><li>A consumer capability’s view, already watching that namespace, re-renders with the new value. When the emitter&#39;s scheduled remove fires, it re-renders again to its empty state.</li></ol><figure><img alt="sequence diagram" src="https://cdn-images-1.medium.com/max/825/1*OXE0q062tIQYLFyhVPH9DQ.png" /></figure><p>The intent flowed through the command plane. The truth settled in the state plane. The consumer reacted to state, never to the intent, and never learned the producer exists. Every seam is a contract the host binds, so any piece is swappable.</p><h3>Could a data change become an event?</h3><p>Could a data change <em>itself</em> flow back onto the bus: a DataChangeEvent republished as an Envelope, so capabilities can handle state changes the same way they handle intents? The data layer is built to allow it: ScopedDataLayerDelegate exposes a changes stream, and notify(for:) lets a capability signal relevance without a write.</p><p>But that adapter is deliberately the host’s job, and deliberately not part of the data layer: it’s an integration option the design leaves open, not a shipped mechanism. The reason traces back to the anti-pattern above. The moment data changes routinely fan back onto the bus, the state plane starts becoming a second event bus, and the distinction that keeps the system decoupled erodes. When a specific consumer genuinely needs event-style delivery of a state change, the recommended path is the direct one: watchOpaque(identifier:), an in-process, typed stream that never touches the bus.</p><h3>When this architecture earns its complexity</h3><p>Two planes, two contracts, an adapter layer, manifests, opaque values: this is more machinery than a small app needs. Direct calls and a single store are simpler when one team owns everything.</p><p>The separation pays off when:</p><ul><li>Multiple teams ship capabilities independently and must share state without importing each other’s modules.</li><li>State outlives events: late subscribers must see current truth immediately, not miss a message and wait for the next one.</li><li>AI-driven UX turns model tool calls into intents on the command plane, whose durable results belong on the state plane where any surface can observe them.</li><li>Presentation is reactive: a view should reflect whatever the shared state currently says, regardless of what triggered the change or when the view subscribed.</li></ul><p>The event bus routes intent. The data layer holds truth. Keeping them distinct, one ephemeral and one durable, is what lets a capability-driven app stay decoupled all the way down.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c107fed6fcc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Decoupled, Reactive Data Layer]]></title>
            <link>https://medium.com/@jeremy_jessup/a-decoupled-reactive-data-layer-0ff0ce986616?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ff0ce986616</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[decoupled-architecture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Fri, 16 Oct 2026 18:48:26 GMT</pubDate>
            <atom:updated>2026-10-16T18:48:26.872Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A shared data layer built on three ideas: state share without coupling, reads that behave like a subscription, and a dynamic type system that provides strong typing to the owner and opacity to consumers.</em></p><h3>The Problem</h3><p>The first two articles in this series built a capability-driven contract: one opaque Envelope, one event bus, and features that self-register, so the host app routes messages and composes UI without knowing what any feature does. That solved the messaging half of decoupling. This article is about the half that quietly creeps back in afterward: state.</p><p>Every mobile app needs to keep state around: a cached refund estimate, the user’s profile, a feature flag, a draft form, the last thing a screen showed. Individually, none of this is hard. But as your app grows and multiple teams ship features into it, you’ll notice the same three problems keep coming back. None of them is really about where the bytes live.</p><p>The first is that sharing state means coupling. When feature B needs data that feature A owns, the easy path is to import A’s module and call into it, or worse, reach into A’s storage format:</p><pre>import RefundFeature   // B now depends on all of A, for one number<br><br>// A&#39;s concrete type, A&#39;s storage<br>let estimate = RefundFeature.Cache.shared.currentEstimate   </pre><p>Now B can’t compile without A, and A can’t change its model without breaking B.</p><p>The second is that reading fresh data means polling. A view that wants to reflect the latest value has no way to be told when it changes, so it re-fetches on viewWillAppear, on a timer, or never, and shows stale numbers.</p><p>The third is that every reader needs the writer’s exact type. Even when a feature is willing to share, consumers must import its Codable types to decode anything. The type becomes a shared dependency, and evolving it becomes a cross-team negotiation.</p><p>The result is a web of module dependencies, stale screens, and shared model types that no one can change safely, long before anyone has thought about disks or databases.</p><h3>Three ideas, one layer</h3><p>What if a shared data layer solved those three problems directly? That’s the design:</p><ol><li><strong>Decoupled data.</strong> Features share state by name, not by import. Two modules that ask for the same data get the same value, with no dependency edge between them.</li><li><strong>Pub/sub reads.</strong> Reading is a subscription. Ask once; get the current value immediately and every change after, with no polling.</li><li><strong>Dynamic type support.</strong> A value is strongly typed for the feature that owns it, and readable type-opaquely by anyone else, so sharing data never means sharing types.</li></ol><p>Persistence and encryption exist underneath (values are encrypted at rest with AES-GCM, under a Keychain-managed key), but features don’t reason about them. One choice does sit with you: each repository picks its storage backend at creation, and everything in this article uses a key-value store. Let’s take the three ideas one at a time.</p><h3>Sharing state by name</h3><p>The Repository is the shared store. You never construct one: you ask a factory for it by name, and the name is the entire coupling contract:</p><pre>// Any module that asks for this name gets the same underlying store.<br>let repository = RepositoryFactory.make(<br>                      named: &quot;refund-data&quot;, <br>                      format: .keyValue())</pre><p>Two modules that call make(named:) with the same name receive the same store, with no import relationship between them. A producer writes; an unrelated consumer reads; neither knows the other&#39;s type or module exists.</p><p>If a name is the entire contract, though, what stops two features from accidentally choosing the same one? To keep shared identifiers discoverable, modules can declare a RepositoryManifest listing the identifiers they own. A registry surfaces those entries at runtime and catches duplicate registrations the moment they happen (loudly in debug builds, as a logged warning in release), so discovery never requires importing the producer. The registry can only see what modules declare, so treat the manifest as part of publishing shared state rather than an optional nicety.</p><p>Ownership matters for writes, too. The layer stores values; it doesn’t merge them. So the working convention is one producer per identifier, with everyone else reading, and the manifest is where that ownership gets written down.</p><h3>Reads that behave like a subscription</h3><p>Reading is a subscription, not a one-shot fetch. watch returns an AsyncStream that yields the current value immediately, then re-yields on every update, delete, or invalidation:</p><pre>for await result in repository.watch(dataIdentifier: estimateId, <br>                                     query: RefundEstimate.query()) {<br>    switch result {<br>    case .retrieved(let estimate, _): updateUI(with: estimate)<br>    case .dataNotFound:               showEmptyState()<br>    case .failure(let error):         handle(error)<br>    }<br>}</pre><p>Every read resolves to one of three cases (.retrieved, .dataNotFound, .failure), so &quot;nothing stored yet&quot; can’t be confused with &quot;storage failed.&quot; The stream is bound to a SwiftUI .task { } and the subscription lives exactly as long as the view; it completes when the enclosing Task is canceled.</p><p>This is the pub/sub core. A producer calls update, delete, or invalidate, and every subscriber watching that identifier re-yields, including subscribers in an app extension when the repository is created against an App Group container. No need to have a feature polls or creating a notification map for a feature to notify another.</p><p>A write also carries a lifetime (.days(n), .expires(date), .forever), so shared state ages out on its own instead of accumulating stale entries. One nuance: expiry is lazy. An aged-out value reads as .dataNotFound on the next query, but the passage of time alone never wakes a watcher; only an explicit update, delete, or invalidate does. Still, the reactive contract is the point: <strong>the current value is always one subscription away.</strong></p><h3>Sharing data without sharing types</h3><p>This is what lets the first two ideas coexist without forcing every reader to import the writer’s type. The layer is built on a dynamic type system (and Swift macros) with two faces of the same value.</p><p>The feature that owns a piece of data works with its real Swift type. Any Codable &amp; Sendable type is storable through CodableValue&lt;T&gt;, bound to a typed identifier:</p><pre>struct RefundEstimate: Codable, Sendable {<br>    var amount: Double<br>    var currencyCode: String<br>}<br><br>let estimateId = CodableDataIdentifier&lt;RefundEstimate&gt;(<br>    identifier: &quot;com.example.app.refund.estimate&quot;,<br>    storageStrategy: .persist<br>)<br><br>let value = CodableValue&lt;RefundEstimate&gt;.update(estimate)<br>try await repository.update(for: estimateId, <br>                            update: value, <br>                            lifetime: .days(30))</pre><p>CodableValue covers most cases: encode a type, store it, done. But some data wants to be queried rather than just fetched whole, filtered by a property, sorted, looked up by a subset of its fields. For that, a type can opt into a fuller object model with a macro that generates the lookup machinery for you. @DynamicReference(hashedBy:) is the common case: it takes the property names that make a record unique, here just id, and synthesizes the code that indexes, filters, and sorts by any property, not only the hashed ones:</p><pre>@DynamicReference(hashedBy: [&quot;id&quot;])<br>struct Topic {<br>    static var dynamicName: String { &quot;Topic&quot; }<br>    var id: Int?<br>    var title: String?<br>    var isComplete: Bool?<br>}</pre><p>@DynamicValue does the same for a type with no natural identity to hash by, and @DynamicSingleton for a type where exactly one instance ever exists, an app-wide settings object, say. All three exist to save you from hand-writing the same boilerplate for each shape of record; which one you reach for depends only on whether your data has an identity, and how many of it there are. This is a deeper path than most features need: if you&#39;re only ever fetching a value whole, CodableValue is simpler and enough.</p><p>Everyone else reads the same value without its original type. OpaqueValue is a recursive enum (string, integer, double, boolean, dictionary, array, null) that decodes any stored blob and offers typed accessors:</p><pre>let identifer = &quot;com.example.app.refund.estimate&quot;<br>for await result in repository.watchOpaque(identifier: identifer) {<br>    if case .retrieved(let value, _) = result,<br>       let amount = value?.value[&quot;amount&quot;]?.doubleValue {<br>         // read a producer&#39;s data, without importing its type<br>         update(amount)   <br>    }<br>}</pre><p>That last snippet is the linchpin. A consumer subscribes to a producer’s data and reads exactly the fields it needs, while the producer evolves its concrete Swift type without coordinating a migration across readers.</p><p>Two caveats keep that promise realistic. Evolution means additive change: adding an optional field is free, while a breaking change to the stored shape wipes the stale value, and readers see .dataNotFound until the producer writes again. And opaque readers address fields by name: rename amount and every observer quietly reads nil. The coupling hasn&#39;t vanished; it has moved from the type system into the field names, which is why they deserve the same care as a public API.</p><p>Strong types where you own the data; dynamic, type-opaque access where you only observe it.</p><h3>The whole flow, end to end</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P816Z4m2qu0M4Lu0mKAMNA.png" /></figure><h3>What this unlocks</h3><p>To recap what each idea buys us: features share state by name with no dependency edge; manifests keep identifiers discoverable and catch duplicate registrations as they happen; watch replaces polling; owners keep strong types while observers read opaquely; and encryption, expiry, threading, and cross-extension sharing live in the layer rather than in every feature.</p><p>Each idea is useful on its own. Together they become the <strong>state substrate</strong> for a decoupled, capability-based app architecture:</p><ul><li>Features publish state into a shared store and others react to it, without importing each other, forming a cross-capability data plane. The manifest catches naming collisions before they corrupt data.</li><li>Because consumers read through OpaqueValue, a producer can grow its model without a coordinated migration across every reader. State sharing survives additive type evolution.</li><li>A feature can signal that an identifier’s context has changed, prompting subscribers to re-query, without mutating storage, keeping “something happened” (an event) distinct from “the value changed” (state).</li></ul><p>Notice the shape of that list: it’s the same decoupling story the event bus told, applied to state instead of messages. That combination, a durable and reactive state plane sitting alongside the ephemeral command plane the earlier articles built, is what lets an agentic, capability-driven app stay decoupled end to end. The next article draws the boundary between the two planes.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ff0ce986616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capability-Driven Contracts: Composition and Agentic Orchestration]]></title>
            <link>https://medium.com/@jeremy_jessup/capability-driven-contracts-composition-and-agentic-orchestration-8db6608af08c?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8db6608af08c</guid>
            <category><![CDATA[compositional-layout]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ai-orchestration]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Wed, 16 Sep 2026 16:52:24 GMT</pubDate>
            <atom:updated>2026-09-16T16:52:24.551Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How a capability-driven contract becomes the execution layer for LLM tool calls and compositional UI.</em></p><h3><strong>Picking Up Where We Left Off</strong></h3><p>The <a href="https://medium.com/@jeremy_jessup/capability-driven-contracts-decoupling-features-from-the-host-app-064b0ac26f86">previous article</a> introduced a <strong>capability-driven contract</strong>: one envelope type, one event bus, self-registering capabilities, and a host app that is decoupled from feature internals. That pattern solves reactive dispatch where an event arrives, the bus finds a handler, and the handler produces a view.</p><p>But two questions remain:</p><p>1. <strong>How do features contribute UI to places they don’t own?</strong> A bookmark capability shouldn’t know about the settings screen, yet settings should show a bookmarks section if the capability is registered.</p><p>2. <strong>How does an LLM trigger capability UI?</strong> If a chat agent decides the user needs to see their refund status, how does that intent become a rendered view without the LLM knowing anything about UI?</p><p>This article covers both. The answers turn out to be the same architecture, applied in two directions.</p><h3><strong>Part 1: Compositional Views</strong></h3><p><strong>The Problem Reactive Dispatch Doesn’t Solve</strong></p><p>Reactive dispatch is event-driven: something happens, the bus routes it, a capability responds. But not all UI is triggered by events. Consider:</p><ul><li>A <strong>settings screen</strong> that should show sections contributed by different capabilities</li><li>A <strong>toolbar</strong> that should show actions from whatever capabilities are active</li><li>An <strong>inline experience embed</strong> inside the UI of capability that comes from a different capability</li></ul><p>These are <strong>host-defined slots. </strong>The host (or a capability) declares “I have space here for views that match this pattern.” Capabilities fill those slots without either side importing the other.</p><p><strong>CompositionRequest and CompositionalView</strong></p><p>The composition system mirrors the reactive pattern but inverts the trigger. Instead of “an event arrived, who handles it?” the host asks “what views can fulfill this slot?”</p><pre>struct CompositionRequest {<br>    let namespace: String       // &quot;settings&quot;, &quot;inline&quot;, &quot;toolbar&quot;<br>    let identifier: String      // &quot;bookmarks&quot;<br>    let context: [String: WrappedValue]<br><br>    var fullIdentifier: String { &quot;\(namespace).\(identifier)&quot; }<br>}<br><br>protocol CompositionalView {<br>    var id: String { get }<br>    var priority: Int { get }<br>    func createView() -&gt; AnyView<br>    var layoutHints: LayoutHints? { get }<br>}</pre><p>A capability declares the patterns it supports:</p><pre>class BookmarkCapability: Capability {<br>    var supportedCompositionPatterns: [String] {<br>        [&quot;inline.*&quot;, &quot;settings.bookmarks&quot;, &quot;toolbar.actions&quot;]<br>    }<br><br>    func getCompositionalView(for request: CompositionRequest) -&gt; CompositionalView? {<br>        switch request.fullIdentifier {<br>        case let id where id.hasPrefix(&quot;inline.&quot;):<br>            return InlineBookmarkView(capability: self)<br>        case &quot;settings.bookmarks&quot;:<br>            return BookmarkSettingsView(capability: self)<br>        case &quot;toolbar.actions&quot;:<br>            return BookmarkToolbarView(capability: self)<br>        default:<br>            return nil<br>        }<br>    }<br>}</pre><p>The host queries through the same bus:</p><pre>let request = CompositionRequest(namespace: &quot;settings&quot;, <br>                                 identifier: &quot;bookmarks&quot;)<br><br>let views = compositionalViewProvider.findCompositionalViews(for: request)<br>    .sorted { $0.priority &gt; $1.priority }<br><br>ForEach(views, id: \.id) { view in<br>    view.createView()<br>}</pre><p>The settings screen renders bookmark UI without importing <em>BookmarkCapability</em>. If the capability isn’t registered, the slot is empty. If three capabilities match the pattern, all three contribute views, sorted by priority.</p><p><strong>Wildcard Patterns</strong></p><p>The <em>inline</em>.* pattern is particularly useful. It means “I can contribute a view to any inline slot.” A generic form view can create <em>CompositionRequest(namespace: “inline”, identifier: “settings”)</em>, and any capability that supports <em>inline.*</em> can inject a contextual action — a bookmark button, a help link, a share action — without the parent view knowing those features exist.</p><p><strong>Capability-to-Capability Embedding</strong></p><p>The composition system also enables capabilities to embed views from other capabilities. A <em>GenericAgentCapability</em> can embed the bookmark capability’s inline view using the same discovery mechanism:</p><pre>// Inside BookmarkCapability view<br>@Environment(\.compositionalViewProvider) var provider<br><br>var body: some View {<br>    VStack {<br>        // GenericAgentCapability&#39;s own content<br>        AgentOnboardingView()<br><br>        // Discover and embed BookmarkCapability&#39;s inline view<br>        let request = CompositionRequest(namespace: &quot;inline&quot;, identifier: &quot;generic-agent&quot;)<br>        let views = provider?.findCompositionalViews(for: request) ?? []<br>        ForEach(views, id: \.id) { view in<br>            view.createView()<br>        }<br>    }<br>}</pre><p>Neither capability imports the other. The <em>CompositionalViewProvider</em>` (injected via SwiftUI environment by the host) mediates the discovery at runtime.</p><h3><strong>Part 2: Agentic LLM Orchestration</strong></h3><p><strong>The Insight</strong></p><p>An LLM that supports tool calling already produces structured output: a tool name and arguments. If those tool names map to capability identifiers and those arguments map to envelope payloads, the entire capability system becomes the LLM’s execution layer with no new infrastructure.</p><p>The architecture needs three thin adapters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U3l7MD6V_VhEDH8hEeeJGw.png" /></figure><p><strong>Adapter 1: ConversationService</strong></p><p>The conversation service abstracts the LLM. It takes message history and returns a reply plus zero or more tool calls expressed as domain intents.</p><pre>protocol ConversationService {<br>    func respond(<br>        messages: [ContextMessage],<br>        userMessage: String,<br>        returnContext: String?<br>    ) async -&gt; (reply: String, toolCalls: [Intent])<br>}</pre><p>The protocol is provider-agnostic. This allows the app to mix multiple providers: an on-device model (Apple Foundation Models with streaming), a backend LLM service, and a fallback intent classifier. The capability system doesn’t know or care which one is active.</p><p><strong>Adapter 2: EnvelopeMapper</strong></p><p>The mapper converts an intent into an envelope. Every envelope gets <em>displayProperties.container = “inline”</em> so capabilities render in chat context rather than as sheets or modals.</p><pre>struct EnvelopeMapper {<br>    func envelope(for intent: TaxIntent, utterance: String?) -&gt; Envelope {<br>        var payload: [String: WrappedValue] = [<br>            &quot;displayProperties&quot;: .dictionary([&quot;container&quot;: .string(&quot;inline&quot;)]),<br>            &quot;utterance&quot;: .string(utterance ?? &quot;&quot;)<br>        ]<br><br>        switch intent {<br>        case .refundStatus:<br>            return Envelope(<br>                identifier: &quot;refund/status@v1&quot;,<br>                envelopeType: &quot;widget&quot;,<br>                payload: payload<br>            )<br>        case .addDoc:<br>            payload[&quot;entryMode&quot;] = .string(&quot;manual&quot;)<br>            return Envelope(<br>                identifier: &quot;add-doc/manual@v1&quot;,<br>                envelopeType: &quot;widget&quot;,<br>                payload: payload<br>            )<br>        // ... other intents<br>        }<br>    }<br>}</pre><p><strong>Adapter 3: ChatHost</strong></p><p>The chat host is a thin orchestrator. It runs the event bus, collects views from successful handlers, and returns them for embedding in the assistant message.</p><pre>final class ChatHost {<br>    private let eventBus: EventBusProtocol<br><br>    func handleInChat(envelope: Envelope) async -&gt; (assistantText: String, views: [AnyView]) {<br>        let result = await eventBus.receiveEvent(envelope)<br>        let providers = result.successfulHandlers<br>            .flatMap { $0.getViewProviders(for: envelope) }<br>            .filter { $0.canProvideView(for: envelope) }<br>            .sorted { $0.priority &gt; $1.priority }<br>        let views = providers.map { $0.createView(for: envelope) }<br>        return (&quot;&quot;, views)<br>    }<br>}</pre><p><strong>The Key Property: Capabilities Don’t Change</strong></p><p><em>BookmarkCapability</em> is identical whether triggered by a backend event, a user tap, or an LLM tool call. It receives an envelope, checks <em>canHandle</em>, runs <em>handle</em>, and returns view providers. The capability has no concept of how it was triggered. The <em>displayProperties.container</em> field in the envelope is what tells the host to render inline (or in chat) versus as a sheet or modal which is a presentation decision, not a capability decision.</p><p>This means every existing capability is automatically available as an LLM tool. The <em>CapabilityToolBridge</em> exposes registered capability identifiers as tool names for model registration:</p><pre>final class CapabilityToolBridge {<br>    func execute(intent: TaxIntent, utterance: String?) async -&gt; String {<br>        let envelope = envelopeMapper.envelope(for: intent, utterance: utterance)<br>        let result = await eventBus.receiveEvent(envelope)<br>        return result.wasHandled ? summary(for: intent) : &quot;No handler found.&quot;<br>    }<br><br>    static var supportedToolNames: [String] {<br>        RefundIntent.allCases.filter { $0 != .unknown }.map(\.rawValue)<br>    }<br>}</pre><p>The summary string returned to the model closes the loop so the LLM knows whether its tool call succeeded and can adapt its next response.</p><h3><strong>How the Two Patterns Combine</strong></h3><p>Composition and agentic orchestration converge naturally. Consider this scenario:</p><ol><li>User asks the chat agent: “Help me with my refund”</li><li>The LLM returns tool call <em>.refundAgent</em></li></ol><p>3. <em>EnvelopeMapper</em> creates an envelope for <em>RefundAgentCapability</em></p><p>4. <em>RefundAgentCapability</em> renders its onboarding view <strong>inline in the chat message</strong></p><p>5. That view uses the <strong>composition system</strong> to discover and embed <em>BookmarkCapability</em>’s inline action</p><p>6. The user sees the agent’s deduction guidance with a contextual bookmark button — all rendered from two independent capabilities, triggered by a single LLM tool call</p><p>The LLM triggered the flow. The reactive contract routed it. The composition system assembled the UI. No component knew about the others.</p><h3><strong>Where this architecture merits the complexity</strong></h3><p>This is not a simple pattern. It has overhead: protocols, registries, envelope types, composition requests, a mapper layer. For a single-team app with a few features, direct calls are simpler and clearer.</p><p>The architecture pays off when:</p><ul><li><strong>Multiple teams</strong> ship features independently and the host app can’t change for each one</li><li><strong>AI-driven UX</strong> is a goal. The capability system gives the LLM a structured, safe execution layer</li><li><strong>Feature composition</strong> is needed. Capabilities must contribute UI to contexts they don’t own</li><li><strong>Presentation varies by context. </strong>The same capability renders as a sheet from a tap, inline from a chat agent, or embedded from another capability</li></ul><p>The contract provides the indirection. The bus provides the routing. The composition system provides the discovery. And the LLM gets a structured way to drive features without knowing anything about UI.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8db6608af08c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capability-Driven Contracts: Decoupling Features from the Host App]]></title>
            <link>https://medium.com/@jeremy_jessup/capability-driven-contracts-decoupling-features-from-the-host-app-064b0ac26f86?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/064b0ac26f86</guid>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 20:09:20 GMT</pubDate>
            <atom:updated>2026-08-15T20:09:20.615Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A reference architecture for orchestrating apps with an event bus, capability protocol, and opaque messaging envelopes.</em></p><h3><strong>The Problem</strong></h3><p>As mobile app’s grow in complexity, it’s common to see a pattern where the host app is responsible for orchestrating data or presenting views from different components. As the number of sources grows, the host app becomes increasingly coupled to the details of each component. Two painful patterns usually emerge:</p><ol><li><strong>Tight coupling to payloads.</strong> The host app decodes concrete types and branches on <em>widgetId</em> or <em>type</em>:</li></ol><pre>switch payload[&quot;widgetId&quot;] as? String {<br>  case &quot;user-status&quot;: showUserView(payload)<br>  case &quot;document-import&quot;: showImportView(payload)<br>  case &quot;help&quot;: showHelpView(payload)<br>  default: break<br>}</pre><p>Every new widget or event requires app code changes and a new release. The host becomes a giant switch statement.</p><p><strong>2. Tight coupling to features.</strong> The app imports specific SDKs and calls them directly:</p><pre>import TransactionSDK<br>import DocumentImportSDK<br>import HelpSDK<br><br>// In the host…<br>TransactionSDK.showStatus(payload)<br>DocumentImportSDK.startImport(payload)</pre><p>Adding or removing a feature means editing the host’s wiring, its imports, and possibly its UI. The host ends up knowing too much about every feature.</p><p>The result: a brittle app that changes constantly and has is slower to change. Because no one team owns the end-to-end functionality, careful coordination is needed to align on contracts, synchronize changes, and adequately test edge scenarios.</p><h3><strong>A Different Approach: The Capability-Driven Contract</strong></h3><p>What if the host app could stay <strong>stable and decoupled</strong> while integrating many dynamic, pluggable features? This would require a different approach to how the host app interacts with different components. Rather than being the place that centralizes knowledge of all the different components, the host would become an orchestrator that simply routes messages to the appropriate component and presents the result. Meanwhile, the capabilities would need to be self-declarative and self-contained so the host could remain unaware of the details of each component.</p><p>The key insight: <strong>the host should never own payload schemas or feature routing.</strong> Instead, it should:</p><p>1. Receive a <strong>single, generic message type</strong> (an opaque envelope)</p><p>2. Dispatch to a <strong>central event bus</strong> that finds handlers</p><p>3. Let <strong>features self-register</strong> and declare what they can handle</p><p>4. Collect results (e.g., views) and present them based on metadata — not on feature-specific logic</p><p>This is the core of the <strong>capability-driven contract</strong>: one envelope type, one entry point, capability-based dispatch, and composition by contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqfd9mcBW-DA4bbJ2hOkLg.png" /><figcaption>High-level System Design</figcaption></figure><h3><strong>The Building Blocks</strong></h3><p><strong>1. Opaque Envelope</strong></p><p>The envelope is the only message shape the host ever sees. It has an <strong>identifier</strong> (routing key) and an <strong>opaque payload</strong> (key-value structure). The host never decodes domain-specific fields.</p><pre>struct Envelope {<br>   let identifier: String                // e.g. &quot;payment/status@v1&quot;<br>   let envelopeType: String?             // optional classification<br>   let version: Int                      // schema version (default 1)<br>   let payload: [String: WrappedValue]   // flexible key-value; capabilities interpret<br>   let metadata: [String: WrappedValue]? // routing hints, trace flags, etc.<br>   let timestamp: Date                   // ISO 8601 creation time<br>   let correlationId: String             // auto-generated UUID for tracing<br>}</pre><p><em>WrappedValue</em> is a sum type (string, int, double, bool, dictionary, array, null) so the host can carry and forward data without decoding to concrete types. Using <em>WrappedValue</em> for both <em>payload</em> and <em>metadata</em> means metadata can carry structured data (arrays, nested dictionaries) the same way payloads do. <strong>The host never pattern-matches on payload structure.</strong> It passes the envelope through; only capabilities interpret the payload.</p><p><strong>2. Event Bus</strong></p><p>The event bus is a central dispatcher. It receives an envelope, finds capabilities that <em>canHandle</em> it, runs their handlers, and returns an <strong>event result</strong> with per-handler outcomes.</p><pre>protocol EventBusProtocol {<br>   func receiveEvent(_ envelope: Envelope) async -&gt; EventResult<br>}<br><br>struct EventResult {<br>   let envelope: Envelope<br>   let outcomes: [HandlerOutcome]<br>   let metrics: [HandlerMetrics]<br>   var successfulHandlers: [Capability] { /* derived from outcomes */ }<br>   var failedOutcomes: [HandlerOutcome] { /* derived from outcomes */ }<br>   var wasHandled: Bool { !outcomes.isEmpty }<br>}</pre><p>The bus is <strong>UI-free</strong>: no SwiftUI, no presentation. It only routes and runs handlers. The host injects it (e.g. for tests) and uses the result to decide what to show.</p><p><strong>3. Capability Protocol</strong></p><p>Features implement a single protocol and <strong>self-register</strong>. The host does not know what each capability does or what payloads it expects.</p><pre>protocol Capability {<br>   var id: String { get }<br>   func canHandle(_ envelope: Envelope) -&gt; Bool<br>   func handle(_ envelope: Envelope) async throws<br>   func getViewProviders(for envelope: Envelope) -&gt; [ViewProvider]<br>}</pre><p>The host calls <em>eventBus.receiveEvent(envelope)</em>, gets back <em>successfulHandlers</em>, and for each one calls <em>getViewProviders(for: envelope)</em>. It collects views and presents them. <strong>The host never imports feature modules.</strong></p><p><strong>4. Host as Coordinator</strong></p><p>The host’s job is narrow:</p><ol><li>Own the envelope entry point</li><li>Call the event bus</li><li>Read presentation hints from the envelope</li><li>Collect views from successful handlers</li><li>Update UI state (sheet, modal, etc)</li></ol><p>It does <strong>not</strong> implement business logic or decode payloads.</p><h3><strong>Simplified Flow</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3kVHynP3HzmgzA63eKTQLw.png" /><figcaption>Sequence Diagram of Event Bus Architecture</figcaption></figure><h3><strong>Example: A Minimal Capability</strong></h3><p>Here’s what a feature looks like from the capability author’s perspective:</p><pre>@MainActor<br>class MyCapability: Capability {<br>  let id = &quot;my-capability&quot;<br>  func canHandle(_ envelope: Envelope) -&gt; Bool {<br>     envelope.identifier.contains(&quot;my-capability&quot;)<br>   }<br><br>  func handle(_ envelope: Envelope) async throws {<br>    // Side effects: analytics, logging<br>  }<br><br>  func getViewProviders(for envelope: Envelope) -&gt; [ViewProvider] {<br>    guard canHandle(envelope) else { return [] }<br>    return [MyCapabilityViewProvider()]<br>  }<br>}<br><br>struct MyCapabilityViewProvider: ViewProvider {<br>  func canProvideView(for envelope: Envelope) -&gt; Bool {<br>    envelope.identifier.contains(&quot;my-capability-view&quot;)<br>  }<br><br>  func createView(for envelope: Envelope) -&gt; AnyView {<br>    AnyView(MyCapabilityView(payload: envelope.payload))<br>  }<br><br>  var priority: Int { 50 }<br>}</pre><p>The capability reads what it needs from <em>envelope.payload</em>. The host never touches that. To add a new feature: implement the protocol, register at startup. No host code needs to change to handle the routing.</p><h3><strong>Benefits at a Glance</strong></h3><ol><li><strong>Single entry poin</strong>t: One method receives the envelope. No giant <em>switch widgetId</em> in app code.</li><li><strong>No payload schema ownership: </strong>The host does not decode domain-specific fields. New widgets don’t require host routing changes.</li><li><strong>Pluggable features:</strong> Features register as capabilities. Adding/removing an SDK is registration at startup.</li><li><strong>Data-driven presentation:</strong> Container type (drawer, modal) comes from the envelope. The host maps that to UI without knowing the feature.</li><li><strong>Testability:</strong> Inject a mock <em>EventBus</em>; test capabilities in isolation.</li></ol><h3><strong>What This Unlocks</strong></h3><p>The reactive pattern — envelope in, capability handles, views out — solves the coupling problem. And, it also creates a foundation you can build on:</p><ol><li><strong>Compositional UI.</strong> Capabilities can contribute views to host-defined slots (a settings section, a toolbar action, an inline embed) without the host importing feature modules. The host asks “what goes here?” and renders whatever the bus returns.</li><li><strong>LLM-driven orchestration.</strong> An agent or chat service can emit tool calls that map directly to envelopes. The capability system handles them the same way it handles any other event — the LLM doesn’t need to know about UI, and capabilities don’t need to know they were triggered by a model.</li><li><strong>Cross-capability embedding.</strong> One capability can discover and embed views from another through the same composition mechanism, enabling features to collaborate without depending on each other.</li></ol><p>These extensions are covered in a follow-up article. The reactive contract described here is the prerequisite — get this right and the rest follows.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=064b0ac26f86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI-generated interview questions: leaning into and complementing AI in software development]]></title>
            <link>https://medium.com/intuit-engineering/ai-generated-interview-questions-leaning-into-and-complementing-ai-in-software-development-66da27d31620?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/66da27d31620</guid>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 18:14:25 GMT</pubDate>
            <atom:updated>2026-06-22T18:14:25.104Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This blog post is co-authored by </em><a href="https://www.linkedin.com/in/jeremy-jessup/"><em>Jeremy Jessup</em></a><em>, Sr Staff Software Engineer in the Intuit Consumer Group, and </em><a href="https://www.linkedin.com/in/brian-schick-20202/"><em>Brian Schick</em></a><em>, Staff Software Engineer in the Intuit Foresight team.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpb_7GsgB-qc9A2j66GrOg.png" /></figure><h3>The hiring paradox of the AI era</h3><p>Software development has changed. Engineers now routinely use AI-powered tools to write code, debug, and explore unfamiliar APIs. Yet many technical interviews still treat candidates as if they’re coding in isolation — no AI, no documentation lookup, no pair programming. This can lead to a mismatch, in which we find ourselves assessing skill sets that don’t match how work actually now gets done.</p><p>At the same time, we face a new challenge: Creating and maintaining diverse, reliable interview exercises is time-consuming. Content creators have traditionally spent hours crafting problems that are appropriately scoped, fair, and aligned with real-world work. Now, however, as AI changes how we build software, it can similarly transform how we create the exercises that assess that work.</p><p>This post explores how AI-generated interview questions can lean into the rise of AI-assisted development and complement it while staying true to the human-centric hiring philosophy we’ve championed at Intuit.</p><h3>Building on “Assessing for Awesome”</h3><p>In “ <a href="https://www.google.com/url?q=https://medium.com/intuit-engineering/how-to-make-tech-talent-hiring-better-df898451bb8a&amp;sa=D&amp;source=editors&amp;ust=1781125124627670&amp;usg=AOvVaw2f7mOg7pHGrvYqwnXqi8Cm">How to make tech talent hiring better</a> ,” we described an approach to technical hiring that treats the interview as a collaborative, real-world experience. Key principles included:</p><ul><li><strong>Real-world context</strong>. Candidates work with boilerplate code and user stories, mirroring how engineers actually operate.</li><li><strong>Multiple valid solutions</strong>. We’re interested in how candidates think, not whether they find the “right” answer.</li><li><strong>Communication over completion</strong>. Think-aloud, discussion, and collaboration matter as much as the final code.</li><li><strong>Transparency.</strong> Clear expectations, no gotchas, and no surprises.</li><li><strong>Humanization.</strong> The interview should reflect the kind of people and culture candidates would join.</li></ul><p>Those principles don’t change with AI. If anything, they’re becoming more important. The question is: how do we design interviews that reflect a world where AI is part of the toolkit?</p><h3>Leaning in: AI exercises that embrace the tool</h3><p>The most direct way to lean into AI is simply to let candidates use it. And so we’ve recently developed a parallel track of AI-native exercises where candidates are explicitly asked to use AI-powered tools to solve open-ended problems.</p><h4>What AI exercises look like</h4><p>Candidates receive a word problem — no starter code, no prescribed language — and are invited to build a solution with their AI tool of choice. For example:</p><p>“Space enthusiasts love exploring Mars through a space agency’s rover photos, but navigating thousands of images is overwhelming. Create a working web app that helps users discover Mars rover photos. Use an AI-powered development tool to explore the API and build your solution. Add filtering or discovery features if you have time.”</p><p>The exercise is intentionally open-ended. Candidates choose their language, their approach, and how far they take the enhancements. What we’re evaluating isn’t “did they finish everything?” but:</p><ul><li><strong>Prompt creation and iteration.</strong> Can they effectively communicate what they need to AI?</li><li><strong>Understanding AI output.</strong> Do they inspect, verify, and improve generated code?</li><li><strong>Problem-solving with a partner.</strong> How do they collaborate with assessors and tools when they hit ambiguity?</li><li><strong>Communication.</strong> Can they explain their choices and tradeoffs to the assessor?</li><li><strong>Customer obsession.</strong> Do they go beyond raw solutions to implement meaningful, satisfying solutions?</li></ul><p>This mirrors real work. Engineers don’t code in a vacuum; they prompt, iterate, validate, and refine. Assessing that flow is assessing the real work done every day.</p><h4>Why this matters for new graduates</h4><p>For associate-level candidates, AI tools can level the playing field — they can explore unfamiliar APIs, get scaffolding quickly, and focus on higher-order thinking. But using AI well requires judgment: knowing when to trust output, when to verify it, and when to push back. Our AI exercises surface that judgment in a supportive, conversational setting.</p><h3>Complementing: the dual-track approach</h3><p>Because leaning into AI doesn’t mean abandoning traditional skills, we run two tracks in parallel:</p><ol><li><strong>AI exercises</strong>. Language-agnostic, open-ended, and AI tools expected. Assess prompt engineering, iteration, and understanding of AI-generated code.</li><li><strong>Coding exercises.</strong> JavaScript and Python, pre-written code with deliberate bugs. Assess debugging, logic, and fundamentals. No AI tools are allowed here. Candidates work through the problem themselves.</li></ol><p>Together, they give a fuller picture. A candidate might excel at leveraging AI for rapid prototyping but struggle with a logic error in existing code. Another might be methodical with fundamentals but hesitant to use AI. Both skill sets matter; the dual track lets us see both.</p><p>The coding track also preserves what we’ve learned from years of craft exercises: boilerplate code, user stories, and time-boxed challenges that get to the “interesting” part quickly. Same philosophy, fresh focus.</p><h3>Creating AI-generated questions: scale without sacrifice</h3><p>Here’s where it gets meta: We use AI to generate the exercises themselves!</p><p>A content creator can say, “Create a new AI exercise about comparing baseball team statistics,” and receive a complete exercise — candidate instructions, assessor guide, and metadata in minutes that’s tailored to our exact specifications.</p><p>The same for coding exercises: “Create a coding exercise about email validation” yields JavaScript and Python versions with test cases and deliberate bugs, once again meeting our precise requirements, so that our growing library of exercises is highly consistent.</p><p>And for every exercise, a complementary Assessor Guide is generated to our exact specs to ensure assessors always have deep, consistent support with exercise overviews, solutions, followup questions, and further role guidance.</p><h4>How it works</h4><p>The system relies on deep and comprehensive agentic rules. Dozens of documents specifying exercise structure, candidate and role characteristics, quality guidelines, API categories, and assessment philosophy define the exact shape expected for all new interview materials. When an AI assistant generates an exercise, it follows these rules, and as a result, new exercises aren’t random, but are constrained by:</p><ul><li><strong>Exercise recipes.</strong> A variety of problem problem types (Data Retrieval, Comparative Analysis, Iterative Development, etc.) and coding types (Debug Challenge, Feature Implementation, etc.).</li><li><strong>Quality guidelines</strong>. Time scoping (30–45 min), candidate rubrics, inclusive language, and no tricks or gotchas.</li><li><strong>Core values.</strong> Assessing for Awesome (A4A) alignment, transparency, open-endedness, communication-friendliness, and fairness.</li></ul><p>Newly-generated exercises go into a pending folder. Humans must review the AI output before approval. No exercise reaches candidates without a human gate. AI handles scale and variety; humans ensure quality and appropriateness.</p><h4>Complementarity benefits</h4><p>AI-generated questions complement AI-assisted development in a few ways:</p><ul><li><strong>Volume and variety.</strong> We’ve maintained dozens of exercises across both tracks, with rotation that prioritizes least-recently-used. Candidates rarely see the same exercise twice.</li><li><strong>Consistency.</strong> The rules enforce guidelines. Exercises don’t drift toward trick questions or inappropriate difficulty.</li><li><strong>Democratization.</strong> Non-technical content creators can generate exercises via natural language. They don’t need to write code or understand API details.</li><li><strong>Evolution.</strong> As we learn what works, we update the rules. The next generated exercise reflects that learning.</li></ul><h3>Philosophy in practice</h3><p>Here’s how our traditional values are expressed in this new system:</p><p>These exercises are designed for AI-assisted work. Candidates are expected and encouraged to use AI. What we’re evaluating is the quality of their judgment, not their ability to work without it.</p><h3>What we’ve learned</h3><p>A few observations from running this system:</p><ul><li><strong>Candidates appreciate honesty.</strong> When we tell them they’ll use AI tools in the interview, it signals that we’re understanding how real-world work is done now. No pretending.</li><li><strong>Assessors need different muscles for AI exercises.</strong> The focus shifts from “Did they get the right answer?” to “How did they collaborate with the tool? Did they verify the output? Did they iterate thoughtfully?” Our assessor guides emphasize supporting candidates at different levels and observing the process, not just the final product.</li><li><strong>Human review is non-negotiable.</strong> AI-generated exercises can be good, but they can also hallucinate, make unrealistic choices or miss nuance, for example, with problems that are too easy or narrow, language that’s not welcoming, or enhancements that don’t give advanced candidates enough room. The mandatory human approval workflow catches these kinds of issues</li><li><strong>The dual track reduces anxiety.</strong> Candidates know what to expect: One exercise where AI is expected, one where it isn’t. There’s no ambiguity about using AI tools because we tell them clearly right at the start.</li></ul><h3>A path forward</h3><p>Technical hiring will continue to evolve as AI tools mature. The principles that made A4A (Assess for Awesome) effective: real-world context, humanization, transparency, and multiple valid paths still remain. What changes is how we operationalize them.</p><p>AI-generated interview questions let us:</p><ul><li>Lean into AI by assessing how candidates use it, in exercises designed for that purpose.</li><li>Complement AI by maintaining a coding track that assesses fundamentals.</li><li>Scale content creation without sacrificing quality through guidelines and human review.</li><li>Stay true to values that make hiring fair, inclusive, and meaningful for both candidates and companies.</li></ul><p>The goal isn’t to replace judgment with automation. It’s to use automation where it helps by generating variety, enforcing consistency, and reducing busywork so humans can focus on what matters: designing assessments that reflect real work and evaluating candidates as whole people.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66da27d31620" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intuit-engineering/ai-generated-interview-questions-leaning-into-and-complementing-ai-in-software-development-66da27d31620">AI-generated interview questions: leaning into and complementing AI in software development</a> was originally published in <a href="https://medium.com/intuit-engineering">Intuit Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Make Tech Talent Hiring Better]]></title>
            <link>https://medium.com/intuit-engineering/how-to-make-tech-talent-hiring-better-df898451bb8a?source=rss-7f5e7cc1cc0b------2</link>
            <guid isPermaLink="false">https://medium.com/p/df898451bb8a</guid>
            <category><![CDATA[diversity-in-tech]]></category>
            <category><![CDATA[inclusion]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Jeremy Jessup]]></dc:creator>
            <pubDate>Mon, 24 Jan 2022 18:41:02 GMT</pubDate>
            <atom:updated>2022-01-24T18:52:20.605Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to Make Tech Talent Hiring Better (for candidates &amp; companies)!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FJB8nATTkanAftwwwUeZGQ.jpeg" /></figure><p><em>This blog post is co-authored by </em><a href="https://www.linkedin.com/in/jeremy-jessup/"><em>Jeremy Jessup</em></a><em>, Staff Software Engineer in the Intuit Consumer Group, and </em><a href="https://www.linkedin.com/in/brian-schick-20202/"><em>Brian Schick</em></a><em>, Staff Software Engineer in the Intuit Identity Platform Team.</em></p><p>Intuit’s ability to drive innovation, achieve technological excellence, and fulfill our mission to our customers is rooted in our global engineering culture. That makes hiring one of the most important things we do.</p><p>As with product development, <strong>we continuously tune Intuit’s approach to “assessing for awesome” (A4A) </strong>to help us make more informed decisions about candidates — and help them make informed decisions about us. In addition to offering candidates an opportunity to fully showcase their unique talents and abilities, we want them to come away with a firsthand understanding of who we are and how we work together. That’s why we’ve designed an interview experience that reflects the actual working environment a candidate would experience if they joined our team.</p><p>As engineers, <strong>we’re always looking for interesting problems to solve</strong>, and solutions that can make a difference. Having gone through the Intuit hiring process as both candidates and interviewers, a few of us saw an opportunity to make the experience more meaningful for both candidates and the employees assessing them.</p><p>After all, <strong>hiring is a two-way street</strong>. In a competitive talent market, we know that the quality of the experience can make all the difference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*95PtanPWeR4gzVPQ" /><figcaption>The Team!</figcaption></figure><p>In this blog, you’ll learn about the key principles behind a refreshed hiring process developed as an experiment with a small team in the Intuit Consumer Group for iOS developer hiring. What began as a passion project with talent acquisition is now being adopted within other organizations by:</p><ul><li>Applying engineering principles and Intuit’s <a href="https://blogs.intuit.com/blog/2019/07/23/design-for-delight-how-to-fall-in-love-with-your-customers-problems-and-not-the-solution/">Design for Delight (D4D)</a> methodology.</li><li>Making the process an authentic reflection of our culture and values.</li><li>Enhancing our ability to evaluate each candidate as a whole person, as well as their ability to evaluate the opportunity at hand and the team vibe.</li></ul><h3>Approaching the interview as an engineering problem</h3><p>At the outset, we approached the project as an engineering challenge. In this case, our problem-solving wasn’t about technology or functionality, but humanization. That is, <strong>bringing our culture and values into the interview experience</strong>.</p><p>As with any Intuit engineering project, we proceeded according to the principles of our company’s <a href="https://blogs.intuit.com/blog/2019/07/23/design-for-delight-how-to-fall-in-love-with-your-customers-problems-and-not-the-solution/">Design for Delight (D4D)</a> and <a href="http://www.intuitlabs.com/customer-driven-innovation">Customer-Driven Innovation (CDI)</a> methodologies:</p><ul><li>Deep customer empathy — focusing on the personas and needs of prospective talent.</li><li>Go broad to go narrow — exploring a variety of potential solutions before zeroing in on bold solutions with the highest likelihood to address those needs.</li><li>Rapid experimentation — testing our solutions with prospective talent to learn quickly what works and what doesn’t.</li></ul><p>After experimenting for a few months in mid-2020, we threw ourselves fully into the project during<a href="https://www.intuit.com/blog/innovation/engineering-community/"> Intuit Global Engineering Days</a> (GED) in April 2021. A favorite program for Intuit technologists, GED is a <strong>week-long, biannual event </strong>in which engineers throughout our organization are encouraged to <strong>put their regular work aside and focus on a passion project</strong>. This could mean fixing a bug, improving a flow, adding a feature, integrating a tool, whatever fires their imagination. It’s a great chance to explore new things as well as to work across sites with people on other teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*PBJFn2vWNW4wLU7Y" /><figcaption>Intuit Global Engineering Days 2021 — Choose your adventure — and your avatar!</figcaption></figure><p>For our team, the goal wasn’t as much to ship code as to reinvent an organizational process — but it was an engineering task nonetheless, and one with exciting potential for Intuit.</p><p>One of the best parts of GED is that it offers windows to connect with senior leaders who can give feedback, help make connections, and give guidance. We were fortunate to have met with <a href="https://www.linkedin.com/in/mariannatessel/">Intuit CTO, Marianna Tessel, </a>and <a href="https://www.linkedin.com/in/alexgbalazs/">Chief Architect, Alex Balazs</a> during the week to get buy-in, and their enthusiastic support gave a welcome boost to our efforts.</p><h3>Assessing for Awesome (A4A)</h3><p>As a baseline, we built on established Intuit hiring practices, such as:</p><ul><li>Team interviewing</li><li>Pool hiring</li><li>Real-world craft assessment</li></ul><p>The hiring teams at Intuit are composed of employees who have been nominated to represent Intuit’s core values and trained in the hiring process. Our A4A process is designed to create a collaborative experience. Our aim is to <strong>give the candidate a sense of the kind of people they’d be spending their days with, and vice versa</strong>.</p><p>For the past several years, Intuit has also used “pool hiring” to help us acquire top talent more efficiently. With this approach, <strong>candidates apply for composite job postings encompassing multiple similar roles</strong>, and are interviewed by diverse teams across Intuit. This helps us ensure a uniform evaluation standard to maximize hiring opportunities and reduce implicit bias. Considering candidates with a wider lens for a variety of roles fosters internal job mobility, which in turn supports continued development and growth.</p><p>Within the interview process, <strong>A4A serves as a central stage</strong> that consists of several small group meetings spanning a few hours in total, typically on a single day. In the first meeting, candidates participate in a craft exercise. Here, they demonstrate their proficiency in a target role by writing an application and then presenting it to the entire team. In subsequent meetings, candidates meet with smaller groups of engineers and people managers in a more traditional and conversational format.</p><h3>Evaluating candidate skills in a real-world context</h3><p>Originally, the craft exercise was a self-paced take-home activity for candidates to complete ahead of their A4A meeting, in which they would present their solution to the interview team. A key advantage of this approach was that candidates had a blank slate and unlimited time to craft a solution in any way they’d like. While this led to a broad range of solutions, their diversity made it difficult to fairly compare and contrast competing candidates. Many candidates also pushed back against being assigned “homework.” In response, we<strong> integrated the craft exercise into the A4A interview process </strong>itself.</p><p>This gave us the ability to time-box and normalize the candidates’ work. However, the exercise used as a take-home wasn’t suitable for this reduced timeframe, with most of the session spent creating basic scaffolding code rather than exploring the problem’s nuances and challenges. In short, we weren’t able to get the same depth we had before. So, we began exploring ways we could get directly to the core challenges presented by the problem. We soon focused our efforts on:</p><ul><li>Realigning the craft exercise with Intuit’s hiring rubric.</li><li>Providing boilerplate code for basic infrastructure.</li><li>Creating user stories to enable an Agile approach.</li></ul><p><strong>Applying the hiring rubric</strong></p><p>Stepping back, the fundamental goal of A4A is to<strong> assess each candidate holistically</strong> in as close to a <strong>“real- world” context</strong> as possible. At the end of each interview, the hiring team is asked to evaluate the candidate against a standard rubric, which includes a variety of categories like programming fundamentals, design and architecture, communication, and operational excellence. We refreshed our process to help us answer these questions.</p><p>Although there are occasionally new projects, our engineers often work in an existing codebase on products like <a href="https://turbotax.intuit.com/">TurboTax</a>, <a href="https://mint.intuit.com/">Mint</a>, or <a href="https://quickbooks.intuit.com/">QuickBooks</a>. For the craft exercise, we wanted to consider approaches that more closely reflected the job role.</p><p>Often, we’re looking to explore common computer science concepts in the craft exercise without any expectation that there’s a singular solution. Rather, we want candidates to have creative flexibility to arrive at a variety of possible solutions, as with the original take-home version. All too frequently, these types of exercises function as a “test” of the candidate’s ability to come up with the “right” answer. Here at Intuit, we’re just as interested in the way they think, work, and interact in a collaborative atmosphere to simulate a team environment.</p><p><strong>Providing boilerplate code</strong></p><p>Understanding that candidates need to create similar boilerplate code to provide basic infrastructure, we experimented with giving the candidates a template application that included basic networking functionality and a simple set of views to display the retrieved data. While this approach showed promise, it raised several new challenges related to working in a new codebase: style and scalability.</p><p>To help orient the candidate, we wanted to make sure the pre-provided code was easy to understand and adapt. We added a design doc and comments to key sections of the project, and minimized the use of class abstractions so the template classes were self-sufficient. We also wanted to <strong>allow the candidate to own the final solution</strong> so while the initial code was adequate, there were also opportunities for improvement.</p><p>We started experimenting with this approach in interviews, using candidates’ responses to help us refine the craft exercise. Some would happily accept the classes and methods provided, while others would refactor it to be more generic or want to step through it to make sure it was working as expected. We found that it saved candidates time and allowed them to extend the app more than before. Even better, we found that this gave us another opportunity to talk to candidates about the tradeoffs of different approaches and what they might do differently with the given code.</p><p><strong>Applying Agile</strong></p><p>For candidates who are already feeling the pressure of an interview, being presented with a completely unstructured problem can be overwhelming. Intuit teams typically work in an Agile environment leveraging product owners and user stories to drive work priorities.</p><p>To help ease candidate anxiety and provide some structure, we developed user stories to describe how the pre-provided code might be extended or enhanced. The user stories were intentionally simple to avoid dictating a technical approach while encouraging a dialog between the candidate and the interview team: “As a user, when I select an item from the table view, I would like to see more details about it.”</p><p>In practice, <strong>user stories provided a great framework for both candidates and the interview team</strong>. By supplying a “menu” of possible user stories, candidates were given the freedom to determine which stories to address in their craft exercise. Simply written, they prompted candidates to communicate interactively with interviewers to mutually determine the “definition of done.” This allowed us to scale the user stories relative to each candidate’s target role and gave us critical insight into that candidate’s communication skills.</p><p>As we further refined user stories, we <strong>mapped each story directly to our rubric</strong> to ensure we applied consistent, standards-based evaluations to each candidate interview. Last, candidates were asked to commit their work for each selected user story to a specific <a href="https://git-scm.com/">.git</a> commit. Practically, this aligned with the same development process we follow and allowed the interview team to easily review the code changes as a pull request.</p><p>Crafting clear and concise user stories that meshed with template application code was challenging. We often had to either tune our template code to ensure that it could be extended as described in each user story or improve the clarity and conciseness of a user story so it better matched template code and could be meaningfully completed within the allotted time. User stories offer a much wider refined lens into each candidate’s real-world skill set, allow us to evaluate a wider range of tasks, and best of all, enhance the level of freedom and self-determination for all our candidates.</p><h3>Going live — and remote</h3><p>When the Covid-19 pandemic erupted, like most tech companies Intuit pivoted to a fully remote, work-from-home workplace in March 2020. Rather than delaying scheduled candidate interviews, the Intuit mobile group proceeded as planned, using our new process in a remote hiring context. Our <strong>methodologies proved to be ideally suited for remote hiring</strong>, making the project especially timely and valuable.</p><h3>Building both talent and culture</h3><p>The most recent iteration of our A4A hiring process for mobile technologists has enabled us to more satisfyingly humanize our interview process to enable candidates meaningful and tangible choices in presenting themselves, while at the same time offering us significant enhancements to our ability to evaluate each candidate as a whole person.</p><p>The evolution of the craft exercise took place over dozens of interviews and involved carefully captured feedback from the candidates, hiring managers, and interview team on what was (and wasn’t) working with the process. The results have been outstanding:</p><ul><li>Candidates report <strong>enjoying the craft exercise</strong> and especially the opportunity to demonstrate their skills together with the interview team. They’re delighted to learn that the process will not involve automated testing, and that there will be no need to prep on LeetCode. Rather, they’ll simply showcase their ability to think and create as engineers.</li><li>Hiring managers have been pleased to see candidates in a comparable work environment and to have tangible data captured against the evaluation rubric. They’re able to get a better sense of each candidate’s ability to build beautiful apps, and to <strong>get to the heart of the evaluation more quickly</strong> without the need for preliminary candidate prep and testing.</li><li>And most importantly, intuit has been able to identify and <strong>grow our team with higher quality new hires</strong>. In fact, one candidate hired through our new process, iOS developer <a href="https://www.linkedin.com/in/ajith-antony-04057019/">Ajith Antony</a>, is now sitting on the other side of the table as an Intuit Senior Software Engineer using the process to interview new candidates, and has joined the GED team to help iterate it further.</li></ul><p>Since our work during Intuit Global Engineering Days in April 2021, we’ve evangelized our revised hiring process to additional platforms and groups within Intuit around the world. Originally used to hire iOS engineers, we have extended the process to Android hiring, and are evaluating how best to adapt it to other disciplines, such as full-stack engineers. We continue to collaborate on the process, at least monthly throughout the year, using each biannual GED to drive progress.</p><p>As members of the Intuit global engineering community, <strong>we’re excited to be able to play a role in growing and fostering this culture across the globe</strong>. We’re also happy to share our work with others in the industry to promote <strong>a more human, candidate-centric experience</strong> that leads to better hiring and retention, stronger teams, and more successful technology organizations.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df898451bb8a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intuit-engineering/how-to-make-tech-talent-hiring-better-df898451bb8a">How to Make Tech Talent Hiring Better</a> was originally published in <a href="https://medium.com/intuit-engineering">Intuit Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>