Skip to content

org: fixes from the production run-through (removal of link joiners, Railway script, backup recipe) - #2944

Merged
AbirAbbas merged 7 commits into
org/mainfrom
org/prod-run-fixes
Nov 25, 2026
Merged

AbirAbbas merged 7 commits into
org/mainfrom
org/prod-run-fixes

Conversation

@AbirAbbas

Copy link
Copy Markdown
Collaborator

Fixes from the production run-through of the hosted org line, the last fix wave before org/main merges into dev. Defaults are unchanged.

Validation contract

  • Removal ends the place and the grants (F8). Removing a person who joined by an anonymous access link takes them out of People and ends every grant they hold, on every join door. Joining again with a new link brings no old grant back. Removing a person who came by a named invite behaves as it did.
  • A shared link stays honest. Removing one joiner of a multi-use link leaves the others, and their grants, alone, and the link keeps the use the removed person spent.
  • The person's empty folder goes with their last chat (F7). When the last chat of a removed person is deleted on the chats' host, their empty /chats/people/p_<hash> folder is removed. A folder with anything else in it is left as it is.
  • The Railway template script runs on the current CLI (F1, F3). On Railway CLI 5.71.0 volumes are added with the service's ID after the service exists, and the three environment edits carry --message, so a terminal run no longer waits at a prompt. An older CLI whose volume add takes --service still gets that form.
  • The docs say what was and was not done. Volume size (50 GB default, no CLI flag) and the resize step (F2), what to do with the template draft (F4), a Railway backup recipe, and two plain known limits: the chat sandbox's tools (F5) and factory spend outside the model door (F10). The manual says the same, in the same change.

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)
  • TestDeletingAPersonsLastChatRemovesTheirEmptyFolder and TestAPersonFolderWithSomethingElseInItIsNotRemoved (sessionhost)
  • Six make-template 6 rows in deploy/org/railway/railway_scripts_test.sh, against a recording stub railway: the apply runs to the end, volumes by ID after add and never volume add --service, --message on the limits edit and on all three edits, the older CLI style, and no service ID stops before any volume.
  • Five probes in internal/manual/chat_test.go for the new manual sections.

Limits of the proof

  • The script is proven here against a recording stub CLI only; I did not run it against Railway. Not tested: the dashboard resize, what templates create leaves in the draft, a restore of the backup onto a Railway volume, and Railway's own volume backups.
  • Empty person folders left by removals made before this change are not cleaned up.

Issues filed from the same run-through

On the org/main feature line (#2903).

🤖 Generated with Claude Code

AbirAbbas and others added 7 commits November 25, 2026 13:57
…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
AbirAbbas merged commit f65b78d into org/main Nov 25, 2026
22 checks passed
@AbirAbbas
AbirAbbas deleted the org/prod-run-fixes branch November 25, 2026 19:44
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>
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