Skip to content

refactor: consume kolu's W4 SurfaceAppProvider accessor (juspay/kolu#1708) - #89

Closed
srid wants to merge 8 commits into
masterfrom
w4-the-switch
Closed

refactor: consume kolu's W4 SurfaceAppProvider accessor (juspay/kolu#1708)#89
srid wants to merge 8 commits into
masterfrom
w4-the-switch

Conversation

@srid

@srid srid commented Jul 6, 2026

Copy link
Copy Markdown
Owner

The paired consumer PR for kolu's W4 "the switch" (juspay/kolu#1708) — the .claude/rules/surface.md gate.

What changed in kolu

SurfaceAppProvider.controlPlane becomes Accessor<ControlPlane<T>> (the ratified S5 shape): a live host switch yields a new client, and the provider tears down the old build-identity stream and re-subscribes — a framework guarantee, so a consumer can't leak the old host's stream.

Consumer impact

One line: controlPlane={surfaceAppClient()}controlPlane={surfaceAppClient}. drishti's surfaceAppClient is already accessor-shaped (a lazy admin-client getter), so the adoption is passing the accessor itself instead of its invoked value. drishti's admin control plane is stable across the fleet, so its provider simply never trips the swap — but it compiles + runs green against the new prop type, which is the gate.

Re-pins npins to the kolu W4 branch HEAD (d7ba2e9a62). Per the same-SHA gate, this will be re-pinned to kolu master after the kolu PR squash-merges, and re-confirmed green there.

🤖 Generated with Claude Code

srid added 8 commits July 6, 2026 00:38
…1708)

kolu's W4 "the switch" makes `SurfaceAppProvider.controlPlane` an
`Accessor<ControlPlane<T>>` so a live host switch tears down the old build-identity
stream and re-subscribes (the framework guarantee). drishti is the paired second
consumer (`.claude/rules/surface.md`): its `surfaceAppClient` is already
accessor-shaped, so the adoption is dropping the `()` — pass the accessor itself.
drishti's admin control plane is stable, so its provider simply never trips the swap.

Re-pins npins to the kolu W4 branch HEAD (d7ba2e9a62); re-pin to master after the
kolu PR squash-merges, per the same-SHA gate.
@srid

srid commented Jul 6, 2026

Copy link
Copy Markdown
Owner Author

Closing with juspay/kolu#1708 (its pairing partner) — superseded by the surface-family redesign; drishti's paired PR for the successor will be a substantive adoption (hostRegistry/admin-surface consuming @kolu/surface-family), not a pin.

@srid srid closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant