oficina / equipo Public

Update placement browser and release gate expectations

codex agent, operated by paul@keymail.dev pushed by paul@keymail.dev 7bd30b2c19c6436e75134c874e4871bf98595e15 parent 4041087
3 files changed, +19 −8
  • .rastrillo/budgets.txt +4 −4
  • internal/plan3test/plan3_release_test.go +2 −1
  • internal/thintest/project_placement_browser_test.go +13 −3

CI passed — run details

diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 1f6e69cf..ee502561 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
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 21028 - Shared web rendering: project correction chips and destination forms beside Roster; the Oficina connection routes, store and Base-driven consent. Abandoned moves reuse the stopping line. Measured 21028 source lines.
-size internal/wire 6448 - Shared protocol types and Encode; 25 adds placement choices and notebook corrections. Task views add the optional stopping flag, with no runner frame change. Measured 6448 source lines.
+size internal/equipo 21028 - Shared web views, Oficina connection routes and consent, and the stopping display for abandoned moves. Measured 21028 source lines.
+size internal/wire 6448 - Shared protocol types, placement metadata and optional task stopping flag. No runner frame change. Measured 6448 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).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 30325 - Transactional authority and dispatch stay together; confirmation, fenced moves, notebook learning, Oficina connect and job stops. Abandon waits for proof and retains late reports in the same transaction. Measured 30325 source lines.
+size internal/equipo/chat 30325 - Transactional authority, dispatch, placement and job stops; abandonment proof and historical reports share the transaction. Measured 30325 source lines.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
@@ -71,7 +71,7 @@ perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one im
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 - 11062 End-to-end scenarios through a real runner and instance: Copy setting, the Assistant's job threads, streamed replies, warm start, glance. Measured 11062 test lines.
-size internal/thintest - 30800 Shared instance harness: placement consent, restart proof, preserved context, settled job states, responsive browser and Oficina connection contracts. Abandon API checks stopping and late push history. Measured 30800 test lines.
+size internal/thintest - 30810 Shared instance and browser harness for placement, job states and Oficina connections; abandon proof and late push history. Measured 30810 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}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
perf GET /api/v1/advice skip Thin v1 person API: bearer-only JSON for devices; the browser reads advice through /usage and /conversation.
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 823733bc..422bc8c5 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -181,9 +181,10 @@ func plan3CopyInventory(t *testing.T) {
approvedOficina := strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY APPROVED (Paul, 2026-11-16, copy-review arfnqquz6wks4vdyxptv6ditju, unchanged)")
acceptedRoster := strings.HasPrefix(key, "roster.") && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-14)")
acceptedPlacement := strings.HasPrefix(key, "placement.") && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-15)")
+ acceptedPlacementEdges := slices.Contains([]string{"placement.late_push", "placement.late_report"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-17)")
acceptedReportActions := slices.Contains([]string{"roster.talk", "roster.round_busy", "roster.round_done", "roster.merge_busy", "roster.merge_done"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Astra, 2026-11-15)")
acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key])
- if !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina {
+ if !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina {
t.Fatal("entry has no copy review status or applicable acceptance", key)
}
}
diff --git a/internal/thintest/project_placement_browser_test.go b/internal/thintest/project_placement_browser_test.go
index 1c818f69..bd4db602 100644
--- a/internal/thintest/project_placement_browser_test.go
+++ b/internal/thintest/project_placement_browser_test.go
@@ -71,7 +71,7 @@ func TestBrowserPlacementQuestionAndPending(t *testing.T) {
r := newToolRigAt(t, wire.ProtocolCurrent)
id := r.shopTask("pending-placement")
r.begin("pending-start", id)
- r.nextDispatch()
+ old := r.nextDispatch()
if res := r.call("placement-card", wire.ToolAskPerson, map[string]any{"question": "Where?", "placement": wire.Placement{Repos: []string{"oficina/sample", "oficina/equipo"}, NewRepo: "oficina/calendar"}}); res.Code != "asked" {
t.Fatal(res)
}
@@ -115,8 +115,18 @@ func TestBrowserPlacementQuestionAndPending(t *testing.T) {
p.shot(fmt.Sprintf("placement-review-held-%d-%s", width, scheme))
p.click(`[equipo-placement] button[name=abandon]`)
p.wait(`document.body.textContent.includes('Move abandoned.')`, "abandoned note")
- if task := r.task(id); task.Moving || task.Stage != wire.StageCancelled || task.Repo != "amadan.net/oficina/sample" {
- t.Fatal("abandon restarted or moved", task)
+ p.wait(`document.querySelector('[data-stage-line]').textContent==='Stopping…'`, "abandon waits for proof")
+ if task := r.task(id); task.Moving || !task.Stopping || wire.FinalStage(task.Stage) || task.Repo != "amadan.net/oficina/sample" {
+ t.Fatal("abandon ended without proof or moved", task)
+ }
+ p.fits("abandoned move stopping")
+ r.step("abandoned-push", wire.StepReport{TaskID: id, StepID: old.StepID, Attempt: old.Attempt, State: wire.StepDone, Pushed: true, BaseSHA: baseX, CandidateSHA: candX})
+ p.wait(`document.body.textContent.includes('after the move was abandoned.')`, "late push history")
+ p.check(`document.querySelector('[data-stage-line]').textContent==='Stopping…'`, "push is not termination proof")
+ r.step("abandoned-proof", wire.StepReport{TaskID: id, StepID: old.StepID, Attempt: old.Attempt, State: wire.StepCancelled, Termination: true})
+ p.wait(`document.querySelector('[data-stage-line]').textContent==='Cancelled.'`, "cancelled after proof")
+ if task := r.task(id); task.Stopping || task.Stage != wire.StageCancelled || task.CandidateSHA != "" {
+ t.Fatal("proof did not settle history-only task", task)
}
p.shot(fmt.Sprintf("placement-review-abandoned-%d-%s", width, scheme))
})