oficina / equipo Public

S4: the sidebar's Usage in the rail tests; budget lines

The rail tests list Usage after Needs you; Settings still has no usage
section. The wire budget reason fits in 200 bytes, and the headless
line counts the Usage browser test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev bddfc04169880d61e162fe27fdb6ea71ab004d18 parent badd7f9
4 files changed, +10 −8
  • .rastrillo/budgets.txt +2 −2
  • internal/equipotest/pages_test.go +4 −3
  • internal/thintest/pages_test.go +1 −1
  • internal/thintest/settings_pages_test.go +3 −2

CI failed — run details

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 9cfb85f0..c1a62b29 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -15,7 +15,7 @@ time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial re
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
size internal/equipo 19056 - The instance web layer: pages, handlers, templates and copy for every screen, the Usage page included. Measured 19056 source lines.
-size internal/wire 5242 - The runner and person API protocol: every frame, resource and its downgrade up to protocol 15 (readings with their time; usage and advice), one package so Encode sees every type. Measured 5242 source lines.
+size internal/wire 5242 - The runner and person API protocol: every frame, resource and its downgrade up to protocol 15, one package so Encode sees every type. Measured 5242 source lines.
size internal/equipotest - 13400 Task 21 repairs historical migration and conversation fixtures after Plan 3. Measured 13024 test lines; the 300s time ceiling is unchanged.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -65,6 +65,6 @@ perf GET /api/v1/tasks/{id}/files/{file} skip Research kept images: bearer-only
perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one image, shown on the task page; a file, not a screen.
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
-size internal/headless - 9766 End-to-end scenarios through a real runner and instance, plus browser drives. Measured 9766 test lines.
+size internal/headless - 9847 End-to-end scenarios through a real runner and instance, plus browser drives. Measured 9847 test lines.
size internal/thintest - 20295 Thin v1 contract and page tests; one package keeps one instance harness. Measured 20295 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
diff --git a/internal/equipotest/pages_test.go b/internal/equipotest/pages_test.go
index 0de1ac6e..0d1268ce 100644
--- a/internal/equipotest/pages_test.go
+++ b/internal/equipotest/pages_test.go
@@ -24,9 +24,10 @@ var railPaths = []string{"/teams", "/conversation", "/tasks", "/needs-you", "/jo
// railLinks are the thin v1 sidebar's links (slice 4, reordered in UX1:
// Projects above Tasks): the pages above that the thin core does not
-// back are still served, but not linked.
-var railLinks = []string{"/conversation", "/projects", "/tasks", "/tasks?needs=you", "/people", "/conversation/settings"}
-var railLinkNames = []string{"Conversation", "Projects", "Tasks", "Needs you", "People", "Settings"}
+// back are still served, but not linked. Usage (connectors spec S4)
+// sits after Needs you.
+var railLinks = []string{"/conversation", "/projects", "/tasks", "/tasks?needs=you", "/usage", "/people", "/conversation/settings"}
+var railLinkNames = []string{"Conversation", "Projects", "Tasks", "Needs you", "Usage", "People", "Settings"}
func newPageFixture(t *testing.T) authFixture {
t.Helper()
diff --git a/internal/thintest/pages_test.go b/internal/thintest/pages_test.go
index c1c23977..ce51007b 100644
--- a/internal/thintest/pages_test.go
+++ b/internal/thintest/pages_test.go
@@ -320,7 +320,7 @@ var hrefs = regexp.MustCompile(`href="([^"]*)"`)
func TestPagesRail(t *testing.T) {
r := newToolRig(t)
owner := r.inst.Cookie()
- allowed := regexp.MustCompile(`^/(conversation|conversation/settings|tasks|projects|people|work|tasks\?needs=you|tasks/tk[a-z0-9]+|team/(engineering|review|checks))$`)
+ allowed := regexp.MustCompile(`^/(conversation|conversation/settings|tasks|projects|people|work|usage|tasks\?needs=you|tasks/tk[a-z0-9]+|team/(engineering|review|checks))$`)
for _, path := range []string{"/conversation", "/tasks", "/projects", "/people", "/tasks?needs=you"} {
rail := railOf(t, r.get(owner, path, 200))
for _, m := range hrefs.FindAllStringSubmatch(rail, -1) {
diff --git a/internal/thintest/settings_pages_test.go b/internal/thintest/settings_pages_test.go
index 27a3166c..db48c988 100644
--- a/internal/thintest/settings_pages_test.go
+++ b/internal/thintest/settings_pages_test.go
@@ -39,8 +39,9 @@ func TestPagesSettingsSections(t *testing.T) {
t.Fatalf("%s: no way back to Settings", tc.path)
}
}
- // Usage is not a section yet.
- if strings.Contains(r.get(owner, "/conversation/settings", 200), "usage") {
+ // Usage is a page of the app's sidebar (connectors spec S4), not a
+ // Settings section.
+ if strings.Contains(r.get(owner, "/conversation/settings", 200), `data-settings-link="usage"`) {
t.Fatal("a usage section appeared")
}
noFollow := &http.Client{CheckRedirect: func(*http.Request, []*http.Request) error { return http.ErrUseLastResponse }}