feat(daemon): add nonpersistent worker mode - #54
Open
rynfar wants to merge 15 commits into
Open
Conversation
… it (PrimeIntellect-ai#2038) `npm run build` in packages/ai ran `generate-models` on every build, fetching the live model catalog and rewriting `src/models.generated.ts` in place. When an upstream source drops a model that the repo still references (currently claude-sonnet-4.5, 28 references), every CI run fails `Build and check` and `Test (ai)` regardless of the PR's content, and release builds (build-binaries.yml) ship a catalog nobody reviewed. Build now compiles the committed catalog only. Refreshing the catalog stays an explicit, reviewed step: `npm run generate-models`. The generated file is the script's only output and is committed, so clean checkouts build and test without network access to the catalog sources. Linear: RES-1269 (cherry picked from commit 0894de1)
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.
Closes #20
Cross-links:
Summary
Add the capability-negotiated
nonpersistent_daemon_worker_v1mode for fresh client-owned daemon workers.The mode requires an exact create contract (
workerRecovery:"disabled",noSession:true, no tools, no extensions, and no autonomous gates), returns a generation- and owner-transport-bound create proof, accepts only a narrow correlated text command surface, and retires rather than recovers or adopts the worker after transport loss.The final process fixture explicitly selects an isolated custom model against a reserved-then-closed loopback endpoint. This removes host Prime CLI auth and live API dependence from the nonpersistent correlated lifecycle regression.
This PR also imports upstream commit
0894de1ded368f175b41baeb16ba3a58ec66f828with-xprovenance. That upstream fix makespackages/aibuild the committed reviewed model catalog instead of refetching mutable live catalogs. GitHub CI required it after live catalog drift removed identifiers still referenced by the base tests. The explicitgenerate-modelsrefresh command and Pylonbuild:offlineremain.Safety properties
Ordinary workers keep their existing recovery, replay, command-journal, summary, and attach behavior.
Public contract
protocol-7-schema-31-8a52a7010c1fnonpersistent_daemon_worker_v1DaemonClient.request()owns envelope IDsExact validation
Frozen source:
68603ed89bb597cd715fd6a77bc1c39d7e110298fc28e5604d104a0fafcda5f1766ec846caf2f363ad8dcdbda8bba834ff8b55d62314627e6856cc69eac94201d77bc7e6326748c8fd3228e817a6a4c52e861f704e2af8ec27771d09Results:
npm run build— passed without changingmodels.generated.ts(fd3c13075f0a24e4f1fddae294c6a9000f31aeae5dbf7f6f8ead2a3d84419cbcbefore and after);npm run check— passed;npm run test:pylon-release— 10/10 passed;npm run test:ci— 341 files and 4,820 tests passed, 57 skipped;npm run test:process— 23 passed, 9 skipped;git diff --check— passed.Two clean detached worktrees independently built, verified, installed, and smoke-tested the release with Node 22.23.2 / npm 11.10.1. All outputs were byte-identical:
pylon-prime-agent-0.8.1.tgz8dec2de0a527e7b9e7a0d0dd0bbce8ddd708686ab9c051ba01c3e23a1a369d01pylon-prime-agent-ai-0.8.1.tgzb2b6f9edf964349ea731743964055e7aeb54eb18ce1aae7f40202ebc01f26660pylon-prime-agent-core-0.8.1.tgz77f4a8a4e6a1b5a7d20135bece341c6261528fc5247de7deae8d4913f0e22e8apylon-prime-agent-tui-0.8.1.tgzfb0522478b059820dbdee0350d00eb7e4999b50d86ce70cbc368898792c1687bpylon-prime-agent-release-v1.jsona2241d02bf851d35dcb5bc724f309f611816e12102fd4efb27073a2dc9be5168Local validation receipt SHA-256:
c3298680951edba9c72e79c4b975ed62f89f5849008a33c23d3b8adf7803ab84.Merge order
Prime #20 first. Then Comet #7 must consume and revalidate this exact contract/artifact before its correlated text-turn PR can merge. No Pylon provider contract is changed in this PR.