// Package web is Alta's pages (team-provisioning-app.md §11): plain GETs // and form POSTs, no live updates, estilo's chrome, scriptless except // estilo's busy.js. Only one person ref, ALTA_OPERATOR_SUBJECT, sees any // page; any other signed-in identity gets the 404 an unknown page gets. package web import ( "context" "errors" "log/slog" "net/http" "net/mail" "net/url" "slices" "strconv" "strings" "sync" "time" "amadan.net/oficina/alta/homeop" "amadan.net/oficina/alta/provision" "amadan.net/oficina/home/connect" "amadan.net/oficina/home/handoff" "amadan.net/oficina/home/handoff/seal" "amadan.net/rastrillo/rastrillo/assertion" "amadan.net/rastrillo/rastrillo/csrf" "amadan.net/rastrillo/rastrillo/migrate" "amadan.net/rastrillo/rastrillo/sessions" "github.com/go-chi/chi/v5" ) // Session lifetimes (§2): idle 30 minutes, absolute 12 hours. const ( IdleLifetime = 30 * time.Minute AbsoluteLifetime = 12 * time.Hour ) // Extra is the migration sets Alta's database carries beside its own: // sessions and the Home hand-off. var Extra = []*migrate.Set{sessions.Schema, migrate.MustFromFS(handoff.Migrations, "oficina_handoff")} // Config is the app's wiring. type Config struct { Origin string OperatorSubject string Home *connect.DecodedCredentials Engine *provision.Engine Store *provision.Store // HomeDirectory and HomeCredential are the two confirm origins. HomeDirectory, HomeCredential string Account string Logger *slog.Logger Now func() time.Time // Tick is how often live runs are advanced in the background; zero // disables (tests drive the engine themselves). Tick time.Duration } // App is Alta's HTTP handler. type App struct { cfg Config sess *sessions.Sessions consumer *handoff.Consumer mux http.Handler mu sync.Mutex running map[int64]bool done chan struct{} stopOnce sync.Once } // New builds the app. Home sign-in is required: Alta has no other. func New(cfg Config) (*App, error) { if cfg.Home == nil || cfg.OperatorSubject == "" || cfg.Engine == nil || cfg.Store == nil || cfg.Origin == "" { return nil, errors.New("web: Home sign-in, the operator subject, the engine and the origin are required") } if !homeop.PersonRef(cfg.OperatorSubject) { return nil, errors.New("web: ALTA_OPERATOR_SUBJECT is not a person ref") } if cfg.Logger == nil { cfg.Logger = slog.Default() } if cfg.Now == nil { cfg.Now = time.Now } db := cfg.Store.DB() sess, err := sessions.New(sessions.Config{DB: db, Origin: cfg.Origin, TTL: AbsoluteLifetime, SigninPath: handoff.StartPath, Logger: cfg.Logger, Now: cfg.Now}) if err != nil { return nil, err } sealer, err := seal.New(cfg.Home.DEK, "oficina/alta/handoff") if err != nil { return nil, err } store, err := handoff.NewStore(db, sealer, cfg.Home.Issuer, cfg.Origin, cfg.Home.Keys) if err != nil { return nil, err } a := &App{cfg: cfg, sess: sess, running: map[int64]bool{}, done: make(chan struct{})} a.consumer, err = handoff.NewConsumer(handoff.ConsumerConfig{Store: store, ConsumerID: cfg.Home.ConsumerID, Now: cfg.Now, CurrentSubject: func(r *http.Request) string { if s, ok := sess.From(r); ok { return s.Subject } return "" }, Complete: func(w http.ResponseWriter, r *http.Request, c assertion.Claims) error { // Any Home identity gets a session; only the operator gets a // page. Refusing the session instead would loop the sign-in. return sess.SignIn(w, r, sessions.Session{Subject: c.Subject, Method: "home", AuthTime: time.Unix(c.AuthTime, 0)}) }, Fail: func(w http.ResponseWriter, r *http.Request, status int) { a.plain(w, status, "Unable to sign in. Start again.") }}) if err != nil { return nil, err } a.mux = a.routes() if cfg.Tick > 0 { go a.tick(cfg.Tick) } return a, nil } // Close stops the background ticker. func (a *App) Close() { a.stopOnce.Do(func() { close(a.done) }) } func (a *App) ServeHTTP(w http.ResponseWriter, r *http.Request) { a.mux.ServeHTTP(w, r) } func (a *App) routes() http.Handler { r := chi.NewRouter() r.Handle(assetPrefix+"*", assetHandler()) // The assertion callback is the one route outside CSRF: Home's page // posts it cross-origin with its exact Origin. r.Post(handoff.CallbackPath, a.consumer.Callback) r.Group(func(r chi.Router) { r.Use(csrf.Protect(a.cfg.Origin)) r.Use(a.sess.Middleware) r.Get(handoff.StartPath, a.consumer.Start) r.Get(handoff.FinishPath, a.consumer.Finish) r.Post("/signout", a.signout) r.Group(func(r chi.Router) { r.Use(a.operatorOnly) r.Get("/", a.index) r.Get("/initialize", a.initializeForm) r.Post("/initialize", a.initialize) r.Get("/teams/new", a.newTeamForm) r.Post("/teams", a.createTeam) r.Get("/teams/{label}", a.team) r.Post("/teams/{label}/apps", a.addApps) r.Post("/teams/{label}/owner", a.retypeOwner) r.Post("/teams/{label}/audit", a.audit) r.Get("/teams/{label}/retire", a.retireForm) r.Post("/teams/{label}/retire", a.retire) r.Get("/runs/{id}", a.run) r.Post("/runs/{id}/advance", a.advance) r.Post("/runs/{id}/plan", a.resubmit) }) }) r.NotFound(func(w http.ResponseWriter, r *http.Request) { a.notFound(w, r) }) return r } // operatorOnly sends a signed-out browser to Home's sign-in and answers // any identity but the operator's with the unknown page's 404. It also // keeps the idle clock. func (a *App) operatorOnly(next http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { s, ok := sessions.Current(r) if !ok { if r.Method == http.MethodGet || r.Method == http.MethodHead { http.Redirect(w, r, handoff.StartPath+"?return_to="+url.QueryEscape(r.URL.RequestURI()), http.StatusSeeOther) return } a.notFound(w, r) return } if c, err := r.Cookie(a.sess.CookieName()); err == nil { expired, err := a.cfg.Store.Seen(r.Context(), sessions.HashToken(c.Value), IdleLifetime) if err != nil { a.plain(w, http.StatusServiceUnavailable, "Try again.") return } if expired { a.sess.SignOut(w, r) http.Redirect(w, r, handoff.StartPath+"?return_to="+url.QueryEscape(returnPath(r)), http.StatusSeeOther) return } } if s.Subject != a.cfg.OperatorSubject { a.notFound(w, r) return } w.Header().Set("Cache-Control", "no-store") next.ServeHTTP(w, r) }) } func returnPath(r *http.Request) string { if r.Method == http.MethodGet { return r.URL.RequestURI() } return "/" } func (a *App) signout(w http.ResponseWriter, r *http.Request) { a.sess.SignOut(w, r) a.render(w, r, http.StatusOK, "signedout", page{Title: "Signed out", Bare: true}) } // ---- background advancing ---- // kick advances run in the background, once at a time per run. func (a *App) kick(id int64) { a.mu.Lock() if a.running[id] { a.mu.Unlock() return } a.running[id] = true a.mu.Unlock() go func() { defer func() { a.mu.Lock() delete(a.running, id) a.mu.Unlock() }() ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) defer cancel() _ = a.cfg.Engine.Advance(ctx, id) }() } func (a *App) tick(every time.Duration) { t := time.NewTicker(every) defer t.Stop() for { select { case <-a.done: return case <-t.C: runs, err := a.cfg.Store.LiveRuns(context.Background()) if err != nil { continue } for _, r := range runs { a.kick(r.ID) } a.cfg.Store.SweepSeen(context.Background(), AbsoluteLifetime) } } } // ---- forms ---- func errorCode(err error) string { var fl *provision.Fail var pk *provision.Park switch { case errors.As(err, &fl): return fl.Code case errors.As(err, &pk): return pk.Code } return "transient" } func (a *App) index(w http.ResponseWriter, r *http.Request) { ctx := r.Context() teams, err := a.cfg.Store.Teams(ctx) if err != nil { a.plain(w, http.StatusServiceUnavailable, "Try again.") return } var rows []teamRow for _, t := range teams { rows = append(rows, a.teamRow(ctx, t)) } _, initialized, _ := a.cfg.Store.Done(ctx, "", "", "initialize") inits, _ := a.cfg.Store.Runs(ctx, "") a.render(w, r, http.StatusOK, "index", page{Title: "Teams", Data: map[string]any{"Teams": rows, "Initialized": initialized, "InitRuns": inits}}) } type teamRow struct { Label, Name string Apps, Live int Pending int Retired int RunID int64 RunState string RunWords string } func (a *App) teamRow(ctx context.Context, t provision.Team) teamRow { row := teamRow{Label: t.Label, Name: t.Name} for app, st := range t.Apps { if st == "retired" { row.Retired++ continue } row.Apps++ if _, ok, _ := a.cfg.Store.Done(ctx, t.Label, app, provision.StepAudit); ok { if spec, _ := provision.AppBySlug(app); spec.Roster { row.Live++ continue } } row.Pending++ } if runs, _ := a.cfg.Store.Runs(ctx, t.Label); len(runs) > 0 { row.RunID, row.RunState, row.RunWords = runs[0].ID, runs[0].State, describe(runs[0].Code) } return row } func (a *App) newTeamForm(w http.ResponseWriter, r *http.Request) { a.render(w, r, http.StatusOK, "team_new", page{Title: "New team", Data: map[string]any{"Apps": provision.ProvisioningApps(), "Checked": map[string]bool{}, "Form": map[string]string{}, "Options": optionsView(provision.RunOptions{Profile: provision.ProfileOutside})}}) } // formOptions is a run form's profile and samples choice. A form without // a profile field (Continue) answers the zero value: the engine continues // with the team's last choice. func formOptions(r *http.Request) provision.RunOptions { return provision.RunOptions{Profile: provision.Profile(r.PostForm.Get("profile")), Samples: r.PostForm.Get("samples") == "1"} } // profileWords is each profile as the run form and the plan say it. var profileWords = map[provision.Profile]struct{ Name, Says string }{ provision.ProfileOutside: {"Outside", "Someone else's team. Calls' quality reports off, dashboards blank, Memoria AI off."}, provision.ProfileOwn: {"Own", "One of your own teams. Calls' quality reports on, each dashboard app names the team, and Memoria AI may be turned on after the run with your TensorX key."}, } // profileChoice is one radio on a run form. type profileChoice struct { Value, Name, Says string Checked bool } // optionsView is a run's options for the form and the plan. func optionsView(o provision.RunOptions) map[string]any { var choices []profileChoice for _, p := range provision.Profiles { w := profileWords[p] choices = append(choices, profileChoice{Value: string(p), Name: w.Name, Says: w.Says, Checked: o.Profile == p}) } w := profileWords[o.Profile] return map[string]any{"Profile": string(o.Profile), "Name": w.Name, "Says": w.Says, "Samples": o.Samples, "Choices": choices} } func (a *App) createTeam(w http.ResponseWriter, r *http.Request) { if err := r.ParseForm(); err != nil { a.plain(w, http.StatusBadRequest, "Bad form.") return } in := provision.NewTeam{Label: strings.TrimSpace(r.PostForm.Get("label")), Name: strings.TrimSpace(r.PostForm.Get("name")), Owner: strings.TrimSpace(r.PostForm.Get("owner")), Apps: r.PostForm["app"], Forked: r.PostForm.Get("forked") == "1", Options: formOptions(r)} // no profile posted: outside, the default if addr, err := mail.ParseAddress(in.Owner); err == nil && addr.Name == "" { in.Owner = addr.Address } id, err := a.cfg.Engine.CreateTeam(r.Context(), in) if err != nil && strings.HasPrefix(errorCode(err), "plan-refused-") { // The label is recorded (never reused) and Home refused the plan: // the team page is where the owner is corrected and a new plan // submitted. http.Redirect(w, r, "/teams/"+in.Label+"?audit="+url.QueryEscape(errorCode(err)), http.StatusSeeOther) return } if err != nil { checked := map[string]bool{} for _, s := range in.Apps { checked[s] = true } // The owner's address is echoed back into the form it came from, // never logged or stored on a refusal. a.render(w, r, http.StatusUnprocessableEntity, "team_new", page{Title: "New team", Error: describe(errorCode(err)), Data: map[string]any{"Apps": provision.ProvisioningApps(), "Checked": checked, "Form": map[string]string{"label": in.Label, "name": in.Name, "owner": in.Owner}, "Forked": in.Forked, "Options": optionsView(in.Options)}}) return } http.Redirect(w, r, "/runs/"+strconv.FormatInt(id, 10), http.StatusSeeOther) } func (a *App) initializeForm(w http.ResponseWriter, r *http.Request) { a.render(w, r, http.StatusOK, "initialize", page{Title: "Initialize Home's directory", Data: map[string]any{"Sentence": provision.InitializeAttestation}}) } func (a *App) initialize(w http.ResponseWriter, r *http.Request) { _ = r.ParseForm() id, err := a.cfg.Engine.StartInitialize(r.Context(), r.PostForm.Get("attestation")) if err != nil { a.render(w, r, http.StatusUnprocessableEntity, "initialize", page{Title: "Initialize Home's directory", Error: describe(errorCode(err)), Data: map[string]any{"Sentence": provision.InitializeAttestation}}) return } http.Redirect(w, r, "/runs/"+strconv.FormatInt(id, 10), http.StatusSeeOther) } func (a *App) teamFor(w http.ResponseWriter, r *http.Request) (provision.Team, bool) { t, err := a.cfg.Store.Team(r.Context(), chi.URLParam(r, "label")) if err != nil { a.notFound(w, r) return t, false } return t, true } // appView is one app's row on the team and run pages. type appView struct { Slug, Name, Host, State string Steps []stepView Pending bool // Written is the profile (and samples) the app's environment was // written with, from step 7's record; "" until step 7 is done. Written string } type stepView struct { Name, State, Words string } func (a *App) appViews(ctx context.Context, t provision.Team, apps []string) []appView { steps, _ := a.cfg.Store.Steps(ctx, t.Label) by := map[string]provision.Step{} for _, s := range steps { by[s.App+"/"+s.Name] = s } var out []appView for _, slug := range provision.SortApps(apps) { spec, _ := provision.AppBySlug(slug) v := appView{Slug: slug, Name: spec.Name, Host: provision.PublicHost(t.Label, slug), State: t.Apps[slug], Pending: !spec.Roster} if opt, ok, _ := a.cfg.Store.WrittenOptions(ctx, t.Label, slug); ok { v.Written = profileWords[opt.Profile].Name if opt.Samples { v.Written += ", samples" } } names := provision.AppSteps(spec) if t.Apps[slug] == "retired" { names = provision.RetireSteps } for _, n := range names { s, ok := by[slug+"/"+n] sv := stepView{Name: n, State: "todo"} if ok { sv.State, sv.Words = s.State, describe(s.Code) } v.Steps = append(v.Steps, sv) } out = append(out, v) } return out } func (a *App) team(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } ctx := r.Context() var apps, addable []string // An own-only app (Equipo, Base) is offered only to a team whose // written apps are all under profile own, and never on the adoption // label (team-bundle spec §5.1 rule 3). Add-apps refuses it as well // (ownOnlyFits). own := t.Label != provision.AdoptionLabel for s := range t.Apps { if opt, written, _ := a.cfg.Store.WrittenOptions(ctx, t.Label, s); written && opt.Profile != provision.ProfileOwn { own = false } } for _, s := range provision.Slugs() { if _, in := t.Apps[s]; in { apps = append(apps, s) } else if spec, _ := provision.AppBySlug(s); !spec.AdoptionOnly && (!spec.OwnOnly || own) { addable = append(addable, s) } } runs, _ := a.cfg.Store.Runs(ctx, t.Label) audit, _ := a.cfg.Store.AuditLog(ctx, t.Label, 40) _, holdsOwner, _ := a.cfg.Store.Owner(ctx, t.Label) // An app whose recipe still writes the owner (a stopgap allowlist) is // the only reason to ask for the address again once the team is at // Home. With every app in roster mode there is none. needsOwner := provision.RetypeAllowed(t.Apps) notice := "" if code := r.URL.Query().Get("audit"); knownCode(code) { notice = describe(code) if app := r.URL.Query().Get("app"); app != "" { if spec, ok := provision.AppBySlug(app); ok { notice += " (" + spec.Name + ")" } } } // What Continue would do: the unfinished apps, each under its own // choice, or the refusal it would meet. cont, finished, _ := a.cfg.Engine.ContinueApps(ctx, t.Label) var contNames []string for _, s := range cont { spec, _ := provision.AppBySlug(s) contNames = append(contNames, spec.Name) } contWords := "" contOpt, err := a.cfg.Engine.ContinuedOptions(ctx, t.Label, cont) if err != nil { contWords = describe(errorCode(err)) contOpt, _ = a.cfg.Store.LastOptions(ctx, t.Label) } a.render(w, r, http.StatusOK, "team", page{Title: t.Name, Context: t.Label, Notice: notice, Data: map[string]any{"Team": t, "Apps": a.appViews(ctx, t, apps), "Addable": addable, "Runs": runs, "Audit": audit, "HoldsOwner": holdsOwner, "NeedsOwner": needsOwner, "Seeded": t.TeamSQID != "", "Options": optionsView(contOpt), "Continue": strings.Join(contNames, ", "), "ContinueRefused": contWords, // Every app finished, under choices that disagree: nothing to // continue, and no one choice to continue it under. "NothingToContinue": finished && contWords != ""}}) } func (a *App) addApps(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } _ = r.ParseForm() apps := r.PostForm["app"] if len(apps) == 0 { // "Continue": the apps with steps still to do, under the choice // the form posts (defaulted to each app's own; an app already // written refuses any other), under a new plan. var err error if apps, _, err = a.cfg.Engine.ContinueApps(r.Context(), t.Label); err != nil { http.Redirect(w, r, "/teams/"+t.Label+"?audit="+url.QueryEscape(errorCode(err)), http.StatusSeeOther) return } } id, err := a.cfg.Engine.AddApps(r.Context(), t.Label, apps, formOptions(r)) if err != nil { http.Redirect(w, r, "/teams/"+t.Label+"?audit="+url.QueryEscape(errorCode(err)), http.StatusSeeOther) return } http.Redirect(w, r, "/runs/"+strconv.FormatInt(id, 10), http.StatusSeeOther) } func (a *App) retypeOwner(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } _ = r.ParseForm() addr := strings.TrimSpace(r.PostForm.Get("owner")) // Before the seed, a retyped owner goes back through Home's credential // confirm on the resumed create-team; after it, only a stopgap // allowlist may take one (RetypeAllowed). if t.TeamSQID != "" && !provision.RetypeAllowed(t.Apps) { http.Redirect(w, r, "/teams/"+t.Label+"?audit=owner-retype-refused", http.StatusSeeOther) return } if !homeop.OwnerAddress(addr) { http.Redirect(w, r, "/teams/"+t.Label+"?audit=owner-shape", http.StatusSeeOther) return } if err := a.cfg.Store.SetOwner(r.Context(), t.Label, addr); err != nil { a.plain(w, http.StatusServiceUnavailable, "Try again.") return } a.cfg.Store.Audit(r.Context(), 0, t.Label, "", "owner-retyped", "") http.Redirect(w, r, "/teams/"+t.Label, http.StatusSeeOther) } func (a *App) audit(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } code, failed := "audit-ok", "" for _, app := range provision.Slugs() { if t.Apps[app] != "active" { continue } spec, _ := provision.AppBySlug(app) if err := a.cfg.Engine.AuditEnvironment(r.Context(), t.Label, spec); err != nil { code, failed = errorCode(err), app break } } a.cfg.Store.Audit(r.Context(), 0, t.Label, failed, "audit", code) http.Redirect(w, r, "/teams/"+t.Label+"?audit="+url.QueryEscape(code)+"&app="+url.QueryEscape(failed), http.StatusSeeOther) } func (a *App) retireForm(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } var active []string for _, s := range provision.Slugs() { if t.Apps[s] == "active" { active = append(active, s) } } a.render(w, r, http.StatusOK, "retire", page{Title: "Retire apps", Context: t.Label, Data: map[string]any{"Team": t, "Apps": a.appViews(r.Context(), t, active)}}) } func (a *App) retire(w http.ResponseWriter, r *http.Request) { t, ok := a.teamFor(w, r) if !ok { return } _ = r.ParseForm() id, err := a.cfg.Engine.RetireApps(r.Context(), t.Label, r.PostForm["app"], strings.TrimSpace(r.PostForm.Get("label"))) if err != nil { var active []string for _, s := range provision.Slugs() { if t.Apps[s] == "active" { active = append(active, s) } } a.render(w, r, http.StatusUnprocessableEntity, "retire", page{Title: "Retire apps", Context: t.Label, Error: describe(errorCode(err)), Data: map[string]any{"Team": t, "Apps": a.appViews(r.Context(), t, active)}}) return } http.Redirect(w, r, "/runs/"+strconv.FormatInt(id, 10), http.StatusSeeOther) } func (a *App) runFor(w http.ResponseWriter, r *http.Request) (provision.Run, bool) { id, err := strconv.ParseInt(chi.URLParam(r, "id"), 10, 64) if err != nil { a.notFound(w, r) return provision.Run{}, false } run, err := a.cfg.Store.Run(r.Context(), id) if err != nil { a.notFound(w, r) return provision.Run{}, false } return run, true } // roleView is one role's line in the plan section. type roleView struct { Role, Confirm, Words, State string Until time.Time } func (a *App) run(w http.ResponseWriter, r *http.Request) { run, ok := a.runFor(w, r) if !ok { return } ctx := r.Context() plans, _ := a.cfg.Store.Plans(ctx, run.PlanID) var roles []roleView for _, role := range []string{homeop.Directory, homeop.Credential} { p, ok := plans[role] if !ok { continue } v := roleView{Role: role, State: p.State} switch role { case homeop.Directory: v.Confirm, v.Words = a.cfg.HomeDirectory+"/operator/confirm", "Check the label, name and apps" case homeop.Credential: v.Confirm, v.Words = a.cfg.HomeCredential+"/operator/confirm", "Retype the owner's address" if run.Kind != homeop.KindCreateTeam { v.Words = "Check the apps" } } if p.Window > 0 { v.Until = time.Unix(p.Window, 0) } roles = append(roles, v) } data := map[string]any{"Run": run, "Roles": roles, "Prefix": homeop.PlanPrefix(run.PlanID), "Words": describe(run.Code), "PlanExpires": time.Unix(run.PlanExpires, 0), "Live": run.State == "planned" || run.State == "running" || run.State == "parked"} if run.Kind == homeop.KindCreateTeam || run.Kind == homeop.KindAddApps { data["Options"] = optionsView(run.Options) data["HasDocs"] = slices.Contains(run.Apps, "docs") if run.Options.Profile == provision.ProfileOwn && slices.Contains(run.Apps, "memoria") { data["MemoriaAI"] = true } } title := "Initialize" if run.Label != "" { t, err := a.cfg.Store.Team(ctx, run.Label) if err == nil { data["Team"] = t data["Apps"] = a.appViews(ctx, t, run.Apps) title = t.Name } } a.render(w, r, http.StatusOK, "run", page{Title: title, Context: run.Label, Data: data}) } func (a *App) advance(w http.ResponseWriter, r *http.Request) { run, ok := a.runFor(w, r) if !ok { return } a.kick(run.ID) http.Redirect(w, r, "/runs/"+strconv.FormatInt(run.ID, 10), http.StatusSeeOther) } func (a *App) resubmit(w http.ResponseWriter, r *http.Request) { run, ok := a.runFor(w, r) if !ok { return } if err := a.cfg.Engine.Resubmit(r.Context(), run.ID); err != nil { var fl *provision.Fail if errors.As(err, &fl) && fl.Code == "use-add-apps" && run.Label != "" { http.Redirect(w, r, "/teams/"+run.Label, http.StatusSeeOther) return } } http.Redirect(w, r, "/runs/"+strconv.FormatInt(run.ID, 10), http.StatusSeeOther) }