Repository navigation
org: removal finishes when the host returns; no plain-HTTP warning behind a proxy - #2916
Merged
Merged
Conversation
…proxy in front codeaf factory serve warned "serving plain HTTP on ..." at every start, even when the operator listed the reverse proxy that serves HTTPS in front of it, as the Compose and Railway stacks do. A listed trusted proxy is the operator saying HTTPS ends before this process, so the warning stays quiet then, and prints as before when none is listed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s why it stays otherwise deploy/org/README.md called the warning expected behind a proxy; it now says the server stays quiet when CODEAF_TRUSTED_PROXIES lists the proxy and warns only when none is listed. The manual's factory page says the same of trusted_proxies. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…shed A removed person's chats are deleted on the chats' host, which can be down at that moment. The mark records when the person was removed, survives a restart, and is cleared only for the removal that was finished, so a newer removal that re-marked in between is not lost. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… it confirms Removing a person while the sessionhost was down closed their chats and ended their model access, but nothing ever retried the delete of their folders and Linux users: only a second manual removal finished it. Removal now writes a durable mark first, enumerates the chats from the registry (and the host's list for chats from before the registry), and the server retries by itself with a backoff from five seconds to five minutes, across restarts, until the host confirms. It logs on the first failed pass and on every power of ten after, and stops scheduling once done. It only deletes what existed when the person was removed, so a chat made later by someone who joined again is left alone. A removal with the host up is unchanged and leaves nothing pending. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…limit no longer says to repeat it The operator README, docs/organizations.md and the manual's hosted-chats page said removal never retries and the operator repeats it once the machine answers. The server now keeps the deletion owed and retries, so they say that, with the waits, the restart behaviour and the one thing it leaves alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…HTTP warning behind a proxy Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Two small fixes on the hosted organisation line, into
org/main(notdev).Fix 1: a removal the chats' host could not finish is retried
Removing a person while the sessionhost was down closed their chats and refused waking and model bearers, but nothing ever retried the delete of their chat folders and Linux users; only a second manual removal finished it. Now removal writes a durable mark first (
hosted-removals.jsonin the store), enumerates the chats from the registry (plus the host's list, for chats from before the registry), and the server retries by itself: 5 s, doubling to a 5 min ceiling, resumed after a restart, stopping once the host confirms every delete. It only deletes what existed when the person was removed.Fix 2: no plain-HTTP warning behind a trusted proxy
warning: serving plain HTTP on ...is no longer printed whentrusted_proxiesis set. Without it the warning is unchanged.Validation contract and the tests that prove it
TestARemovalTheHostCouldNotFinishIsFinishedWhenItReturnsTestARemovalTheHostCouldNotFinishSurvivesARestartassertClosedinside tests 1 and 2;TestAGuestCannotWakeARemovedPersonsChatThatTheHostCouldNotDelete(existing)TestARemovalWithTheHostUpLeavesNothingPendingTestTheRemovalRetryBacksOffLogsLittleAndStopsWhenDoneTestPlainHTTPWarningIsQuietOnlyBehindATrustedProxyTestThePendingCleanupLeavesAChatMadeAfterTheRemovalThe store mark has its own unit tests (
internal/factory/store/hosted_removals_test.go). The tests use a fake host that can go away and return and a fake timer, so nothing sleeps. Each of items 2, 5, 6 and 7 was seen to fail with its piece of the code disabled.The operator README,
docs/organizations.mdand the manual's hosted-chats page no longer say removal "never retries on its own".Gates run
make pr-ready BASE=origin/org/mainlocally: build, vet (alsoGOOS=windows), packed manual, the laws, and the touchedinternal/factory/serveandinternal/factory/storelegs passed in full. Itscmd/codeafleg hit the 15-minute shard ceiling under box load (shards cut, no assertion failed), so the touchedcmd/codeaftests were rerun focused: all passed exceptTestFactoryPersonStopInFlightWakeAndPersonChat/queued_person, a load-timing failure in the app's person-stop path that passes alone in about a second.go test -raceon the new serve tests.touched codeaf,touched rest,light gate,windows native testsand the organization image builds and scans.Not run here: the Compose stack with a real sessionhost (the host in the tests is a fake).
🤖 Generated with Claude Code