Repository navigation
Conversation
…WE-AF and PR-AF Each image runs a pinned artifact: codeaf from a published dev release checked against its sha256, the AgentField control plane from its published image (built with sqlite_fts5) pinned by digest, SWE-AF and PR-AF built from pinned commits of their public repositories. The containers start as root only long enough to give a platform volume to the service's user, then run as that user. The runner is the engine host that registers the factory on AgentField. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Railway's builder rejects a cache mount that has no id, and an id has to be spelled with the service it belongs to, which no portable Dockerfile can know. The two Go reasoners build in about a minute without the cache, so they build the same way under Compose and on Railway. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
One `docker compose up` runs the organization server, the AgentField control plane, the factory runner, SWE-AF and PR-AF, each with a volume for its state, a health check, and a published port only where a person has to reach it (on 127.0.0.1 unless the operator opens it). The scripted stub model is an optional profile for a keyless smoke test. setup.sh writes .env with fresh random secrets and never overwrites one; .env, the model keys and the organization token never enter an image. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The control plane's health check used a glibc busybox that the distroless base is too old to run, so it is now the static musl one. The reasoner images now name the user they run as, so a platform volume is handed to the right user and git finds its home (PR-AF was looking in SWE-AF's). The node entrypoint can make a throwaway repository for the keyless smoke test to plan against. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
smoke.sh starts the stack against the scripted stub model and checks, section by section, that the nodes are registered, the operator link claims the organization, a second person joins by invite, a factory job reaches SWE-AF through AgentField with strict run-owner proofs and its plan question is answered by the owner, and that a restart of every service keeps the people, the runs and the registrations. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ec into it Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…point and never uses a fixed password Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…away, then runs unprivileged The published image is distroless and runs as uid 65532, so a root-owned platform volume left it unable to write its database, and the only way round was to run it as root. It now gets the same hand-off as the other images, done with the one busybox binary it already carries for its health check. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…uns as Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nt the Railway services A link is only accepted with exactly the address the server names itself by, so rewriting the host in the printed link broke it. The README now says what that address is on a laptop, and lists the variables each Railway service takes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ontainer stub, not a send path deploy/org/modelstub answers /chat/completions on purpose so the keyless smoke test spends nothing; like test/remote/stub it is built into its own image and the product never runs it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This was referenced Nov 24, 2026
Collaborator
Author
|
Consolidated into #2903, the |
AbirAbbas
added a commit
that referenced
this pull request
Nov 25, 2026
…ack (#2903) The hosted organisation line: a team-mode org server deciding every request through one access model (verbs, roles, grants and policy in SQLite), hosted chats run by the sessionhost under a per-chat uid inside a Landlock fence with minted model bearers, sealed keys and a git helper, shared chats acting through verbs, bots owned by their creator, the Hosting and chats policy settings, and a self-hosting stack (deploy/org Docker Compose, published images behind a leak gate, a Railway path). Consolidates #2894 #2895 #2896 #2898 #2899 #2900 and the follow-ups #2904 #2905 #2907 #2908 #2910 #2911 #2912 #2913 #2915 #2916 #2918 #2927 #2936 #2944. Proven by the full suite, a keyless Compose smoke, a hostile wire client, sandbox escape probes, a real-model run and a production-style install from the published images. Co-Authored-By: Santosh kumar <[email protected]> Co-Authored-By: ZeroPoint95 <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
What
deploy/org/: a Docker Compose that anyone can run to host a codeaf organization themselves. Onedocker compose upbrings up the organization server (codeaf factory serve, team mode), the AgentField control plane, a factory runner that registers the factory on AgentField, SWE-AF and PR-AF. Each service has a volume for its state and a health check, and runs as a non-root user (the container starts as root only to hand a freshly mounted volume to that user, then drops to it). Nothing secret is baked into an image: keys come from.envor the environment. Pins: the codeaf dev release (sha256-checked), SWE-AF and PR-AF commits, the AgentField control-plane image by digest.The README is a walkthrough a stranger can follow:
./setup.sh,docker compose up -d --build,./operator-link.sh, claiming the organization, inviting a second person, HTTPS for other people, backups, upgrading the pins, and how the same Dockerfiles run as a Railway project.Besides
deploy/org/, one line ininternal/provider/funnel_law_test.goexemptsdeploy/org/modelstub, the scripted model server of the keyless smoke test, the waytest/is exempt (it answers/chat/completionson purpose and the product never runs it).Validation contract
docker compose upon a clean machine brings every service to healthy../operator-link.shprints it from the log. The link claims the organization once.docker compose restart.Evidence
./smoke.shruns all of the above keylessly against a scripted stub model. On a cleandown -v, with the five images built from this branch: every section passed (control, organization, factory job, restart of every service, organization after the restart); strict countersproven +845, none refused. The same Dockerfiles were also deployed as a Railway project (remote builders, one volume per service, private networking, a public domain oncodeafonly); there the runner ran the control and job sections on itself (RUNNER_SELFTEST=1,proven +817), the organization section ran over the public HTTPS name, and the restart sections passed after restartingcodeafandagentfield.Known limits (also in the README)
codeaf factory servedoes not itself register the factory on AgentField.CODEAF_PUBLIC_DOMAINits links sayhttp://[::]:8787; a link is only accepted with exactly the address the server gave it. Fine on the same Linux or macOS machine, not for Windows or other machines; a real deployment serves HTTPS on a name.CODEAF_TRUSTED_PROXIES=100.64.0.0/10is required, or every password sign-in is refused as plain HTTP.canvasprogram in the stack).Draft: not for merge until the lead has looked.
🤖 Generated with Claude Code