Repository navigation
feat(studio): L14a publish pointer and POST /agents/:id/publish - #1080
Merged
Merged
Conversation
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
LinuxDevil
force-pushed
the
fb-l14a-publish-pointer
branch
from
November 12, 2026 05:21
4d4aaa5 to
3889928
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
server/lifecycle/publish.ts:publishAgent(pinsmeta.publishedVersionunderwithAgentLock; captures akind:'publish'version of the working copy, skipped when its spec hash already equals the latest version's),readPublishedSpec,publishStateOf,PublishError, andregisterPublishRoutes(POST /agents/:id/publish).GET /agents/:idrecords now carrypublishState(version,matchesWorkingCopy,publishedAt);AgentRecord.publishState+PublishStateadded toshared/wireTypes.ts.runtimeClient.publish(agentId, version?)for the L14b publish UI.Test plan
server/lifecycle/__tests__/publish.test.ts— 11 tests: pin-without-write, publish-version capture, explicit pin + idempotent repin, one event per pointer move, concurrent publishes, 404s,readPublishedSpecsnapshot vs drifted working copy,publishStateOfdriftserver/__tests__/publishRoute.test.ts— 9 tests: route shapes, publishState drift flip-flop, 400/404 errors, unpublished null stateidleVersionstiming flake, passes alone); client suite 3981 greentscserver + client clean;fallow dead-codeclean; no new complexity findingsGenerated with Devin