Repository navigation
org: fixes from the production run-through (removal of link joiners, Railway script, backup recipe) - #2944
Merged
Conversation
…y hold A person who joined through an anonymous access link and was then removed stayed in People as "away" and kept the grants others had given them on their chats. closeInvitesOf found invites by the handle they admitted, and an anonymous link carries none. Removal now marks the person's own use on every link that admitted them as removed (the use stays spent, so the link never reopens for anyone else), and deletes every grant that names them, whichever door they came in by. A named invite is removed exactly as before. Joining again, by a new link or by the old one, brings no old grants back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Removing a person left an empty /chats/people/p_<hash> folder on the volume. Deleting a chat now also tries to remove the person's folder, and rmdir only succeeds when nothing else is in it, so another chat of theirs stays put. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The production run found two calls that stopped the script on Railway CLI 5.71.0. `railway volume add --service <name>` is now `railway volume --service <service ID> add`, with the ID read from the JSON `railway add` prints (a name panics the CLI); an older CLI whose `volume add` still lists --service gets the old form. The sessionhost limits edit had no --message, so a terminal run waited forever at "Apply changes now?". railway_scripts_test.sh now runs --apply against a stub CLI that records its arguments and refuses what the real one refuses, so the exact volume and edit calls are pinned, along with the older CLI and the fail-fast when no service ID comes back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecipe, two known limits From the production run-through of the hosted organization: - Railway volumes come out at 50 GB and the CLI has no size option; the README says so and gives the resize step (what was done, and what was not tried). - `railway templates create` makes a draft; the README says what to do with it, and the script's closing note says the volumes need resizing. - A backup recipe for Railway (`railway ssh` plus tar), with what the run checked on the restored scratch copy and what it did not do. - Known limits: the chat sandbox has python3, git and curl but no pip, pytest, go, node, make or gcc; and SWE-AF, PR-AF and the runner call the model provider directly, so their spend is not in the spend table or any limit. - The README and docs/organizations.md now say removal also drops a person from People and ends every share they hold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…emoval ends The manual law, for the same change: organization-hosted-sessions gets a section on what a hosted chat's machine has (and lacks) and one on why SWE-AF, PR-AF and the runner are not in the spend or the limits; inviting-people says removal works the same for an anonymous link and ends every share. Five probes pin that the questions reach those pages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cipe Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ays satisfied The worker law reads the word "swe" in any manual page as a removed worker, and SWE-AF tripped it. The page now names the factory's code-writing service, its pull-request review service and the runner, and the probe asks about a factory job. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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 <29346072+santoshkumarradha@users.noreply.github.com> Co-Authored-By: ZeroPoint95 <329227198+ZeroPoint95@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes from the production run-through of the hosted org line, the last fix wave before
org/mainmerges intodev. Defaults are unchanged.Validation contract
/chats/people/p_<hash>folder is removed. A folder with anything else in it is left as it is.--message, so a terminal run no longer waits at a prompt. An older CLI whosevolume addtakes--servicestill gets that form.Tests, by contract item
TestRemovingAJoinerEndsTheirPlaceAndEveryGrantWhicheverDoorTheyUsed(serve): real handlers and a real store, on both join doors; fails on the old code.TestRemovingOneJoinerOfAMultiUseLinkLeavesTheOthersAndTheirGrants(serve)TestARemovedGitHubJoinerDoesNotComeBackWithTheirGrants(serve)TestARemovedGitHubJoinerUsingTheOldLinkIsBackInPeopleWithoutGrants(serve)TestEndingAMemberKeepsTheirUseSpent(tokens)TestDeletingAPersonsLastChatRemovesTheirEmptyFolderandTestAPersonFolderWithSomethingElseInItIsNotRemoved(sessionhost)make-template 6rows indeploy/org/railway/railway_scripts_test.sh, against a recording stubrailway: the apply runs to the end, volumes by ID after add and nevervolume add --service,--messageon the limits edit and on all three edits, the older CLI style, and no service ID stops before any volume.internal/manual/chat_test.gofor the new manual sections.Limits of the proof
templates createleaves in the draft, a restore of the backup onto a Railway volume, and Railway's own volume backups.Issues filed from the same run-through
On the
org/mainfeature line (#2903).🤖 Generated with Claude Code