| 1 | {{define "content"}} |
| 2 | {{$run := .Data.Run}} |
| 3 | {{template "page-header" dict "Title" (printf "Run %d · %s" $run.ID $run.Kind) "Sub" (printf "%s%s" $run.State (or (and .Data.Words (printf " · %s" .Data.Words)) ""))}} |
| 4 | {{if .Data.Roles}} |
| 5 | <section class="alta-box"> |
| 6 | <h2>Plan {{.Data.Prefix}} — confirm on Home</h2> |
| 7 | <p>Open each page in order, sign in afresh, and check that both show plan <strong class="alta-label">{{.Data.Prefix}}</strong>. Home shows its own copy of the plan; confirm only what Home shows.</p> |
| 8 | <ol class="alta-roles"> |
| 9 | {{range .Data.Roles}} |
| 10 | <li><a href="{{.Confirm}}" rel="noreferrer">{{.Confirm}}</a> — {{.Words}} |
| 11 | {{if eq .State "open"}}{{template "status-pill" dict "Label" (printf "open until %s" (when .Until)) "Tone" "positive"}}{{else if eq .State "pending"}}{{template "status-pill" dict "Label" "waiting" "Tone" "warning"}}{{else if eq .State "closed"}}{{template "status-pill" dict "Label" "closed"}}{{else}}{{template "status-pill" dict "Label" "not yet with Home" "Tone" "warning"}}{{end}}</li> |
| 12 | {{end}} |
| 13 | </ol> |
| 14 | <p class="alta-quiet">The plan expires {{when .Data.PlanExpires}} unless confirmed; a window lasts 15 minutes and is never extended.</p> |
| 15 | {{with .Data.Options}}<p>Profile <strong>{{.Name}}</strong>: {{.Says}}{{if $.Data.HasDocs}} Docs sample documents {{if .Samples}}<strong>on</strong>{{else}}off{{end}}.{{end}} <small class="alta-quiet">Alta's own record: Home's copy of the plan does not carry it.</small></p>{{end}} |
| 16 | </section> |
| 17 | {{end}} |
| 18 | {{if .Data.MemoriaAI}} |
| 19 | <section class="alta-box"> |
| 20 | <h2>After the run: Memoria AI</h2> |
| 21 | <p>Alta never holds your TensorX key, so Memoria starts with AI off. To turn it on, set the secret <span class="alta-label">MEMORIA_TENSORX_KEY</span> and the variable <span class="alta-label">MEMORIA_AI=on</span> in environment <span class="alta-label">{{with .Data.Team}}{{.Environment}}{{end}}</span> (<span class="alta-label">carlos secrets set</span> and <span class="alta-label">carlos env set</span>, each with <span class="alta-label">--environment</span>), then restart the instance.</p> |
| 22 | <p class="alta-quiet">The audit accepts the two together and refuses either alone; memoria refuses to start with one alone.</p> |
| 23 | </section> |
| 24 | {{end}} |
| 25 | {{with .Data.Apps}} |
| 26 | <section> |
| 27 | <h2>Apps</h2> |
| 28 | <table class="alta-grid"> |
| 29 | <thead><tr><th scope="col">App</th><th scope="col">Steps</th></tr></thead> |
| 30 | <tbody> |
| 31 | {{range .}} |
| 32 | <tr><th scope="row">{{.Name}}<br><small class="alta-quiet">{{.Host}}</small></th> |
| 33 | <td><ul class="alta-steps">{{range .Steps}}<li class="alta-step" data-state="{{.State}}"><span>{{if eq .State "done"}}✓{{else if eq .State "parked"}}◷{{else if eq .State "failed"}}✕{{else}}·{{end}} {{.Name}}</span>{{with .Words}} <small>{{.}}</small>{{end}}</li>{{end}}</ul> |
| 34 | {{if .Pending}}<small class="alta-quiet">No roster mode yet: stays pending in Home's chooser.</small>{{end}}</td></tr> |
| 35 | {{end}} |
| 36 | </tbody> |
| 37 | </table> |
| 38 | </section> |
| 39 | {{end}} |
| 40 | <section class="alta-actions"> |
| 41 | {{if .Data.Live}} |
| 42 | <form method="post" action="/runs/{{$run.ID}}/advance"><button type="submit" rst-btn="primary">Resume</button></form> |
| 43 | {{end}} |
| 44 | {{if or (eq $run.Code "plan-expired") (eq $run.Code "plan-refused-credential") (eq $run.Code "plan-refused-directory")}}<form method="post" action="/runs/{{$run.ID}}/plan"><button type="submit" rst-btn>Submit a new plan</button></form>{{end}} |
| 45 | {{if .Data.Live}} |
| 46 | {{if and .Data.Team (or (eq $run.Code "window-expired") (eq $run.Code "window-closed"))}}<a rst-btn href="/teams/{{$run.Label}}#continue">Continue under a new plan…</a>{{end}} |
| 47 | {{end}} |
| 48 | {{with .Data.Team}}<a rst-btn href="/teams/{{.Label}}">Team</a>{{end}} |
| 49 | <p class="alta-quiet">Refresh to see progress.</p> |
| 50 | </section> |
| 51 | {{end}} |
| 52 | |