Phase 13, part 9: running at scale, and the proof

The multi-tenant edition starts. compose.multi.yaml runs several copies
behind Caddy, with the managed Postgres and Garage outside. A test walks
every page and fragment, with ids filled in, and every MCP tool, as one
team, and none shows another team's data or changes it; another has three
copies share six teams' work, each team's turn once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:46:01 -07:00
co-authored by Claude Opus 5.5
parent b8a64e258a
commit f4c31c9fa3
13 changed files with 453 additions and 14 deletions
+2
View File
@@ -94,6 +94,7 @@ type state struct {
runner *jobs.Runner
setupDone atomic.Bool // the team has its owner (server edition)
rotation atomic.Uint64 // which team's turn comes first (eachTeam)
patterns []string // every route's pattern
mu sync.Mutex
copies map[int64]*Server // each team's Server
@@ -574,6 +575,7 @@ func (s *Server) Handler() (http.Handler, error) {
if err := mux.err(); err != nil {
return nil, err
}
s.st().patterns = mux.patterns
return s.guard(s.csrf(s.sessions(mux.mux))), nil
}