oficina / equipo Public

Add project rename control and ship the update

Owners can rename projects through the coordinator or project page without changing repository links, attachments or task history. Added validation, stale-edit protection, replay handling and tests; the UI rendering test passed, but dependency access blocked the broader checks. Documented the supported release steps and matching runner update requirements. Nothing is deployed: checks, review, approved merge, staging and live version verification remain required.

Equipo task tkataquuxfrw, Engineering step attempt 1.
Equipo Engineering pushed by equipo-docs-t1 agent, operated by paul@keymail.dev 812d0b90d286d5a4034ff234d24c9d89a5af752e parent a069080
14 files changed, +343 −16
  • docs/project-rename-delivery.md +56 −0
  • internal/equipo/app.go +1 −0
  • internal/equipo/chat/projects.go +4 −1
  • internal/equipo/chat/rename.go +70 −0
  • internal/equipo/chat/rename_test.go +97 −0
  • internal/equipo/chat/tools.go +31 −2
  • internal/equipo/chat_page.go +23 −1
  • internal/equipo/copy.go +9 −5
  • internal/equipo/project_rename_test.go +41 −0
  • internal/equipo/templates/work_project.html +1 −0
  • internal/runner/provider/actions.go +1 −1
  • internal/runner/provider/claude/launcher.go +1 −1
  • internal/runner/thin/mcp.go +1 −0
  • internal/wire/frames.go +7 −5

CI failed — run details

diff --git a/docs/project-rename-delivery.md b/docs/project-rename-delivery.md
new file mode 100644
index 00000000..c5b25d9b
--- /dev/null
+++ b/docs/project-rename-delivery.md
@@ -0,0 +1,56 @@
+# Project display-name rename delivery
+
+The existing `/projects/{id}/edit` form edits legacy numeric setup projects,
+not the chat project's stable string ID. This change adds an owner-only form
+on the current project detail page and `rename_project` for the coordinator.
+Both use Title, retain ID/Repo, and refuse stale revisions. No schema change,
+repository move, task reassignment or attachment rewrite is involved. Status
+now supplies the project ID, title and revision alongside the repository name.
+The existing call-ID/argument binding and cross-attempt mutation ledger cover
+tool retries. A direct form retry with an old revision is a conflict, not a
+second mutation.
+
+## Checks and delivery status
+
+Go formatting completed. The isolated actual-template rendering test passed
+(`go test project_rename_test.go` from the instance package), covering owner-only
+visibility, revision binding and title escaping. Targeted package Go tests were attempted for chat, thin runner,
+instance and wire. Dependency downloads were blocked by sandbox network access;
+the escalation request was rejected. The package suites have not passed in this environment.
+Store tests cover persistence, card updates, member refusal, validation, stale
+writes, no-op revisions, project events and cross-attempt ledger lookup.
+Browser/form integration and the full normal CI suite still need to run.
+New UI copy also needs the normal copy review. No release was built or deployed.
+
+## Required handoff after review
+
+1. Run targeted tests, the normal CI/review gates and copy acceptance. Review
+ both coordinator tool registration and UI authorization. Merge only with the
+ person's approval through the normal process, not from this task branch.
+2. From the approved clean commit, use `make release` with the confirmed target
+ architecture. The Makefile's isolated release builds matching server, runners
+ and tool proxy, records provenance and enforces copy/direct-release checks.
+ Do not use the older unversioned artifact examples in README as proof of the
+ current artifact name; use the generated release manifest.
+3. Exercise that exact release in staging and record its green suite for those
+ bytes. `make staged-check` must pass before production delivery. Deploy the
+ generated server artifact through CARLOS for app equipo, account oficina,
+ channel edge, following the operator's normal deployment procedure. Use
+ `--swap hold` if execution is enabled. Never deploy this unreviewed branch.
+4. Deliver the matching runner using the supported runner installer/update
+ workflow. The server dispatch, wire tool sets, MCP schema and provider
+ allowlists all change together. An old runner cannot advertise rename;
+ a new runner against an old server will get unknown-tool refusal. The bridge
+ forwards rename without any clone or forge operation. No wire version or
+ persisted schema change is needed, but mixed versions are not feature-ready.
+5. Verify `/api/version` reports the approved stamped commit, not just a router
+ header, and verify server health and runner connectivity/version. As owner,
+ rename a staging project, refresh and restart, and confirm title on list,
+ detail, conversation card and coordinator status. Verify repository URL,
+ attachments and existing task history stay unchanged. Check a stale form
+ fails and a member cannot rename. Repeat a tool call ID without a second
+ event. Confirm live behavior before saying shipped.
+
+Remaining delivery step: an authorized operator must complete checks, review,
+merge, staged release and production rollout with matching runner verification.
+This task has no approved merged release or live version/health evidence.
diff --git a/internal/equipo/app.go b/internal/equipo/app.go
index 5cbdba01..511614bf 100644
--- a/internal/equipo/app.go
+++ b/internal/equipo/app.go
@@ -248,6 +248,7 @@ func RouterWithStore(d *db.DB, cfg Config, mailer mail.Sender, logger *slog.Logg
r.Get("/conversation/attachments/{id}/preview", a.chatAttachment(true))
r.Post("/conversation/cards/{id}/answer", a.chatCardAnswer)
r.Post("/conversation/projects/{id}/remove", a.chatProjectRemove)
+ r.Post("/projects/{id}/rename", a.chatProjectRename)
r.Get("/conversation/notebook", movedTo("/conversation/settings/notebook"))
r.Get("/conversation/settings/notebook", a.chatNotebook)
r.Get("/housekeeping", a.housekeepingPage)
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index beb473be..782d3197 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -243,7 +243,10 @@ func (t *txn) cardView(c cardRecord) (wire.Card, error) {
if err := t.db.Where("id = ?", c.ProjectID).First(&p).Error; err != nil {
return v, err
}
- v.Name = ProjectName(p.Repo)
+ v.Name = p.Title
+ if v.Name == "" {
+ v.Name = ProjectTitle(p.Repo, nil)
+ }
}
if c.Kind == wire.CardHome {
v.Name = c.Choice
diff --git a/internal/equipo/chat/rename.go b/internal/equipo/chat/rename.go
new file mode 100644
index 00000000..ec43a025
--- /dev/null
+++ b/internal/equipo/chat/rename.go
@@ -0,0 +1,70 @@
+package chat
+
+import (
+ "context"
+ "errors"
+ "strings"
+ "unicode"
+ "unicode/utf8"
+
+ "amadan.net/oficina/equipo/internal/wire"
+ "gorm.io/gorm"
+)
+
+// RenameProject changes only the display title, never repository identity.
+func (s *Store) RenameProject(ctx context.Context, person, id, title string, revision int64) (out wire.Project, err error) {
+ err = s.tx(ctx, func(t *txn) error {
+ if err := s.authority.CurrentPerson(ctx, t.db); err != nil {
+ return err
+ }
+ out, err = t.renameProject(person, id, title, revision)
+ return err
+ })
+ return
+}
+
+func (t *txn) renameProject(person, id, title string, revision int64) (wire.Project, error) {
+ if err := t.hkForbid("rename"); err != nil {
+ return wire.Project{}, err
+ }
+ if err := t.isOwner(person); err != nil {
+ return wire.Project{}, err
+ }
+ title = strings.TrimSpace(title)
+ if title == "" || len(title) > 200 || !utf8.ValidString(title) || strings.ContainsFunc(title, unicode.IsControl) || revision < 1 {
+ return wire.Project{}, ErrInvalid
+ }
+ var p projectRecord
+ if err := t.db.Where("id = ? AND state = ?", id, wire.ProjectActive).First(&p).Error; errors.Is(err, gorm.ErrRecordNotFound) {
+ return wire.Project{}, ErrNotFound
+ } else if err != nil {
+ return wire.Project{}, err
+ }
+ if p.Revision != revision {
+ return wire.Project{}, ErrCardConflict
+ }
+ if p.Title == title {
+ return t.projectView(p)
+ }
+ p.Title, p.Revision, p.UpdatedAt = title, p.Revision+1, t.now()
+ result := t.db.Model(&projectRecord{}).Where("id = ? AND revision = ?", id, revision).Select("title", "revision", "updated_at").Updates(&p)
+ if result.Error != nil {
+ return wire.Project{}, result.Error
+ }
+ if result.RowsAffected != 1 {
+ return wire.Project{}, ErrCardConflict
+ }
+ if err := t.projectEvent(p); err != nil {
+ return wire.Project{}, err
+ }
+ var cards []cardRecord
+ if err := t.db.Where("project_id = ? AND kind = ?", id, wire.CardProject).Find(&cards).Error; err != nil {
+ return wire.Project{}, err
+ }
+ for i := range cards {
+ if err := t.saveCard(&cards[i]); err != nil {
+ return wire.Project{}, err
+ }
+ }
+ return t.projectView(p)
+}
diff --git a/internal/equipo/chat/rename_test.go b/internal/equipo/chat/rename_test.go
new file mode 100644
index 00000000..03aca13e
--- /dev/null
+++ b/internal/equipo/chat/rename_test.go
@@ -0,0 +1,97 @@
+package chat
+
+import (
+ "encoding/json"
+ "errors"
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+ "gorm.io/gorm"
+)
+
+func TestRenameProject(t *testing.T) {
+ r := newHKRig(t)
+ r.project("p_barber", "amadan.net/oficina/threatmin")
+ r.must(r.tx(func(tx *txn) error {
+ return tx.db.Create(&cardRecord{ID: "c_name", Person: hkOwner, ProjectID: "p_barber", Kind: wire.CardProject, State: wire.CardAdded, Revision: 1}).Error
+ }))
+ p, err := r.s.RenameProject(r.ctx, hkOwner, "p_barber", " Barber shop ", 1)
+ r.must(err)
+ if p.Title != "Barber shop" || p.Repo != "amadan.net/oficina/threatmin" || p.ID != "p_barber" || p.Revision != 2 {
+ t.Fatalf("renamed: %+v", p)
+ }
+ r.must(r.tx(func(tx *txn) error {
+ var events []eventRecord
+ if err := tx.db.Where("type = ?", wire.EventProject).Find(&events).Error; err != nil {
+ return err
+ }
+ if len(events) != 2 {
+ t.Fatalf("project events: %d", len(events))
+ }
+ for _, e := range events {
+ if !strings.Contains(e.Body, "Barber shop") {
+ t.Fatalf("event: %s", e.Body)
+ }
+ }
+ var saved projectRecord
+ if err := tx.db.First(&saved, "id = ?", p.ID).Error; err != nil {
+ return err
+ }
+ if saved.Title != p.Title || saved.Repo != p.Repo {
+ t.Fatalf("persisted: %+v", saved)
+ }
+ var c cardRecord
+ if err := tx.db.First(&c, "id = ?", "c_name").Error; err != nil {
+ return err
+ }
+ v, err := tx.cardView(c)
+ if v.Name != p.Title || v.Revision != 2 {
+ t.Fatalf("card: %+v", v)
+ }
+ return err
+ }))
+ _, err = r.s.RenameProject(r.ctx, hkOwner, p.ID, "Old edit", 1)
+ if !errors.Is(err, ErrCardConflict) {
+ t.Fatalf("stale: %v", err)
+ }
+ same, err := r.s.RenameProject(r.ctx, hkOwner, p.ID, p.Title, 2)
+ r.must(err)
+ if same.Revision != 2 {
+ t.Fatal("no-op changed revision")
+ }
+ for _, title := range []string{"", " ", "a\nb", strings.Repeat("x", 201), string([]byte{255})} {
+ _, err := r.s.RenameProject(r.ctx, hkOwner, p.ID, title, 2)
+ if !errors.Is(err, ErrInvalid) {
+ t.Fatalf("invalid %q: %v", title, err)
+ }
+ }
+ r.s.authority.Me = func(*gorm.DB, string) (wire.Me, error) { return wire.Me{Role: "member"}, nil }
+ _, err = r.s.RenameProject(r.ctx, hkMember, p.ID, "Denied", 2)
+ if !errors.Is(err, ErrForbidden) {
+ t.Fatalf("member: %v", err)
+ }
+}
+
+func TestRenameMutationReplayLedger(t *testing.T) {
+ r := newHKRig(t)
+ r.must(r.tx(func(tx *txn) error {
+ call := &wire.ToolCall{Name: wire.ToolRenameProject, TurnID: "turn", Attempt: 2, Args: json.RawMessage(`{"project":"p_barber","title":"Barber","revision":1}`)}
+ op, err := tx.mutationOp(hkOwner, call)
+ if err != nil {
+ return err
+ }
+ if op != "rename:p_barber" || !mutated(call.Name, "renamed") {
+ t.Fatalf("ledger: %q", op)
+ }
+ prior := toolCallRecord{CallID: "rename1", Person: hkOwner, TurnID: call.TurnID, Attempt: 1, Name: call.Name, Op: op, Result: `{"code":"renamed"}`}
+ if err := tx.db.Create(&prior).Error; err != nil {
+ return err
+ }
+ got, err := tx.earlierOp(hkOwner, call, op)
+ if got.CallID != prior.CallID {
+ t.Fatalf("replay: %+v", got)
+ }
+ return err
+ }))
+}
diff --git a/internal/equipo/chat/tools.go b/internal/equipo/chat/tools.go
index 92749e1c..ed3fbbd0 100644
--- a/internal/equipo/chat/tools.go
+++ b/internal/equipo/chat/tools.go
@@ -143,6 +143,8 @@ func (t *txn) mutationOp(person string, v *wire.ToolCall) (string, error) {
switch kind {
case "ask", "task_record":
return kind, nil
+ case "rename":
+ return kind + ":" + a.Project, nil
case "home":
return kind + ":" + strings.ToLower(strings.TrimSpace(a.Namespace)), nil
case "star":
@@ -299,6 +301,7 @@ var madeCodes = map[string][]string{
wire.ToolAskPerson: {"asked"},
wire.ToolAddFinding: {"finding"},
wire.ToolCreateProject: {"create"},
+ wire.ToolRenameProject: {"renamed"},
wire.ToolAddProject: {"added", "exists"},
wire.ToolStarProject: {"starred", "unstarred"},
}
@@ -378,6 +381,29 @@ func (t *txn) runTool(l Lease, v *wire.ToolCall) (wire.ToolResult, error) {
return refused("invalid", toolBadInput), nil
}
return wire.ToolResult{Code: "notes"}, nil
+ case wire.ToolRenameProject:
+ var in struct {
+ Project string `json:"project"`
+ Title string `json:"title"`
+ Revision int64 `json:"revision"`
+ }
+ if wire.Strict(v.Args, &in) != nil {
+ return refused("invalid", toolBadInput), nil
+ }
+ p, err := t.renameProject(r.Person, in.Project, in.Title, in.Revision)
+ switch {
+ case errors.Is(err, ErrForbidden):
+ return refused("forbidden", "Only an owner can rename a project."), nil
+ case errors.Is(err, ErrInvalid):
+ return refused("invalid", toolBadInput), nil
+ case errors.Is(err, ErrNotFound):
+ return refused("not_found", toolUnknownProject), nil
+ case errors.Is(err, ErrCardConflict):
+ return refused("conflict", "Project changed. Read status before trying again."), nil
+ case err != nil:
+ return wire.ToolResult{}, err
+ }
+ return wire.ToolResult{Code: "renamed", Text: "Project display name is now " + p.Title + ". Repository and tasks are unchanged."}, nil
case wire.ToolAddProject:
var in struct {
Repo string `json:"repo"`
@@ -486,7 +512,10 @@ func (t *txn) status(l Lease) (wire.ToolResult, error) {
State string `json:"state"`
}
type project struct {
- Name string `json:"name"`
+ Name string `json:"name"`
+ ID string `json:"id"`
+ Title string `json:"title"`
+ Revision int64 `json:"revision"`
}
out := struct {
Runner map[string]any `json:"runner"`
@@ -519,7 +548,7 @@ func (t *txn) status(l Lease) (wire.ToolResult, error) {
return wire.ToolResult{}, err
}
for _, p := range projects {
- out.Projects = append(out.Projects, project{Name: p.Name})
+ out.Projects = append(out.Projects, project{Name: p.Name, ID: p.ID, Title: p.Title, Revision: p.Revision})
}
allowed, err := t.allowed(l.Runner.Person)
if err != nil {
diff --git a/internal/equipo/chat_page.go b/internal/equipo/chat_page.go
index cd60d43c..f4e3fafd 100644
--- a/internal/equipo/chat_page.go
+++ b/internal/equipo/chat_page.go
@@ -446,10 +446,32 @@ func (a *application) chatNotebookReset(w http.ResponseWriter, r *http.Request)
}
func chatError(err error) error {
- for from, to := range map[error]error{chat.ErrBusy: ErrConflict, chat.ErrInvalid: ErrInvalid, chat.ErrConflict: ErrConflict, chat.ErrNotFound: ErrNotFound, chat.ErrForbidden: ErrForbidden, chat.ErrNotAllowed: ErrInvalid, chat.ErrTaskEnded: ErrConflict, chat.ErrNotRetryable: ErrConflict, chat.ErrMerging: ErrConflict, chat.ErrNotMergeable: ErrConflict, chat.ErrNotAskable: ErrConflict} {
+ for from, to := range map[error]error{chat.ErrCardConflict: ErrConflict, chat.ErrBusy: ErrConflict, chat.ErrInvalid: ErrInvalid, chat.ErrConflict: ErrConflict, chat.ErrNotFound: ErrNotFound, chat.ErrForbidden: ErrForbidden, chat.ErrNotAllowed: ErrInvalid, chat.ErrTaskEnded: ErrConflict, chat.ErrNotRetryable: ErrConflict, chat.ErrMerging: ErrConflict, chat.ErrNotMergeable: ErrConflict, chat.ErrNotAskable: ErrConflict} {
if errors.Is(err, from) {
return to
}
}
return err
}
+
+func (a *application) chatProjectRename(w http.ResponseWriter, r *http.Request) {
+ actor, err := a.writeForm(w, r, "title", "revision")
+ if err != nil {
+ a.failure(w, r, err)
+ return
+ }
+ revision, err := number(r, "revision")
+ if err == nil {
+ ctx, _, ok := sessionContext(r)
+ if !ok {
+ a.failure(w, r, ErrForbidden)
+ return
+ }
+ _, err = a.store.Chat().RenameProject(ctx, actor.Address, chi.URLParam(r, "id"), r.PostFormValue("title"), revision)
+ }
+ if err != nil {
+ a.failure(w, r, chatError(err))
+ return
+ }
+ http.Redirect(w, r, "/projects/"+chi.URLParam(r, "id"), http.StatusSeeOther)
+}
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 38f4da37..f97fe49b 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -526,11 +526,15 @@ var pageCopy = map[string]string{
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context): conversation.title
// COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"conversation.thinking": "Thinking",
- "chat.offline": "Your runner is offline. Messages wait here until it is back.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.failed": "The coordinator could not answer this message.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.cancelled": "Stopped.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.thinking": "Thinking", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
- "chat.activity.status": "Checking your projects…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.offline": "Your runner is offline. Messages wait here until it is back.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.failed": "The coordinator could not answer this message.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.cancelled": "Stopped.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.thinking": "Thinking", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.activity.status": "Checking your projects…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "work.project.rename": "Rename project",
+ "work.project.display_name": "Display name",
+ "work.project.rename_hint": "Only the display name changes. Repository and task history stay the same.",
+ "chat.activity.rename_project": "Renaming a project…",
"chat.activity.add_project": "Adding a project…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.activity.ask_person": "Writing you a question…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.activity.other": "Working…", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
diff --git a/internal/equipo/project_rename_test.go b/internal/equipo/project_rename_test.go
new file mode 100644
index 00000000..8bbc998b
--- /dev/null
+++ b/internal/equipo/project_rename_test.go
@@ -0,0 +1,41 @@
+package equipo
+
+import (
+ "bytes"
+ "html/template"
+ "os"
+ "strings"
+ "testing"
+)
+
+// Render the actual detail template for both roles. The editable name must be
+// escaped and the optimistic revision must come from the displayed project.
+func TestProjectRenameForm(t *testing.T) {
+ raw, err := os.ReadFile("templates/work_project.html")
+ if err != nil {
+ t.Fatal(err)
+ }
+ tmpl, err := template.New("detail").Funcs(template.FuncMap{
+ "copy": func(s string) string { return s },
+ "icon": func(string) string { return "" },
+ "dict": func(...any) map[string]any { return nil },
+ "agoData": func(...any) string { return "" },
+ }).Parse(string(raw) + `{{define "mono-l"}}{{end}}{{define "star-toggle"}}{{end}}{{define "project-facts"}}{{end}}{{define "av-l"}}{{end}}{{define "work-groups"}}{{end}}`)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, owner := range []bool{true, false} {
+ var out bytes.Buffer
+ data := map[string]any{"Owner": owner, "Thin": map[string]any{"Project": map[string]any{"ID": "p_barber", "Title": `<Barber>`, "Revision": 7}}}
+ if err := tmpl.ExecuteTemplate(&out, "content", data); err != nil {
+ t.Fatal(err)
+ }
+ html := out.String()
+ if strings.Contains(html, `/projects/p_barber/rename`) != owner {
+ t.Fatalf("owner=%t: %s", owner, html)
+ }
+ if owner && (!strings.Contains(html, `name="revision" value="7"`) || !strings.Contains(html, `value="&lt;Barber&gt;"`)) {
+ t.Fatal(html)
+ }
+ }
+}
diff --git a/internal/equipo/templates/work_project.html b/internal/equipo/templates/work_project.html
index 3030c68b..830ff808 100644
--- a/internal/equipo/templates/work_project.html
+++ b/internal/equipo/templates/work_project.html
@@ -7,6 +7,7 @@
<div><div equipo-p-title><h1>{{.Title}}</h1>{{template "star-toggle" (dict "P" . "From" "project")}}</div>{{with .DescLine}}<p>{{.}}</p>{{end}}<p equipo-facts>{{template "project-facts" .}}</p></div>
{{if .People}}<div equipo-people><span equipo-avs>{{range .People}}{{template "av-l" .}}{{end}}</span><span>{{range $i, $p := .People}}{{if $i}}, {{end}}{{if $p.You}}{{copy "work.you"}}{{else}}{{$p.Name}}{{end}}{{end}}</span></div>{{end}}
</header>
+{{if $.Owner}}<details><summary>{{copy "work.project.rename"}}</summary><form method="post" action="/projects/{{.ID}}/rename"><input type="hidden" name="revision" value="{{.Revision}}"><label>{{copy "work.project.display_name"}} <input name="title" value="{{.Title}}" required maxlength="200"></label><p>{{copy "work.project.rename_hint"}}</p><button type="submit">{{copy "work.project.rename"}}</button></form></details>{{end}}
<div equipo-p-cols>
<section equipo-p-section><h2>{{copy "nav.tasks"}} {{with .Words}}<span equipo-quiet>{{.}}</span>{{end}}</h2>{{if $.Thin.Groups}}{{template "work-groups" $.Thin.Groups}}{{else}}<p equipo-empty data-empty-state="work.tasks_empty">{{copy "work.tasks_empty"}}</p>{{end}}</section>
<aside>
diff --git a/internal/runner/provider/actions.go b/internal/runner/provider/actions.go
index df96beb7..3368b5c1 100644
--- a/internal/runner/provider/actions.go
+++ b/internal/runner/provider/actions.go
@@ -79,7 +79,7 @@ func CoordinatorAction(action string) bool { return action == "coordinate" || ac
// ConverseTools is the thin coordinator's tool set (wire.ConverseTools
// plus create_project, which the runner carries out itself).
func ConverseTools() []string {
- return []string{"status", "find", "search_code", "read_file", "add_project", "create_project", "set_project_home", "star_project", "ask_person", "write_note", "read_notes", "record_task", "add_finding", "start_task", "read_task", "cancel_task", "add_report"}
+ return []string{"status", "find", "search_code", "read_file", "rename_project", "add_project", "create_project", "set_project_home", "star_project", "ask_person", "write_note", "read_notes", "record_task", "add_finding", "start_task", "read_task", "cancel_task", "add_report"}
}
// AnswerTools are an answering session's Equipo tools: read-only git
diff --git a/internal/runner/provider/claude/launcher.go b/internal/runner/provider/claude/launcher.go
index 6d6b0e02..53d8f015 100644
--- a/internal/runner/provider/claude/launcher.go
+++ b/internal/runner/provider/claude/launcher.go
@@ -132,7 +132,7 @@ func PolicyInputs(b provider.Binding, in provider.PolicyInputs, specialist, mode
}
tools := append(append([]string{}, native...), "mcp__equipo__permission")
for _, tool := range in.Tools {
- converse := in.Action == "converse" && slices.Contains([]string{"mcp__equipo__status", "mcp__equipo__find", "mcp__equipo__search_code", "mcp__equipo__read_file", "mcp__equipo__add_project", "mcp__equipo__create_project", "mcp__equipo__set_project_home", "mcp__equipo__star_project", "mcp__equipo__write_note", "mcp__equipo__read_notes", "mcp__equipo__record_task", "mcp__equipo__add_finding", "mcp__equipo__start_task", "mcp__equipo__read_task", "mcp__equipo__cancel_task", "mcp__equipo__add_report"}, tool)
+ converse := in.Action == "converse" && slices.Contains([]string{"mcp__equipo__status", "mcp__equipo__find", "mcp__equipo__search_code", "mcp__equipo__read_file", "mcp__equipo__rename_project", "mcp__equipo__add_project", "mcp__equipo__create_project", "mcp__equipo__set_project_home", "mcp__equipo__star_project", "mcp__equipo__write_note", "mcp__equipo__read_notes", "mcp__equipo__record_task", "mcp__equipo__add_finding", "mcp__equipo__start_task", "mcp__equipo__read_task", "mcp__equipo__cancel_task", "mcp__equipo__add_report"}, tool)
answer := in.Action == "answer" && slices.Contains([]string{"mcp__equipo__git_log", "mcp__equipo__git_diff", "mcp__equipo__git_show"}, tool)
if in.Action != "coordinate" && !converse && !answer && !slices.Contains([]string{"mcp__equipo__ask_person", "mcp__equipo__submit_candidate", "mcp__equipo__submit_review", "mcp__equipo__submit_reproduction", "mcp__equipo__submit_acceptance", "mcp__equipo__submit_answer", "mcp__equipo__submit_render"}, tool) {
return in, provider.ErrPolicy
diff --git a/internal/runner/thin/mcp.go b/internal/runner/thin/mcp.go
index bf6605ec..9361733d 100644
--- a/internal/runner/thin/mcp.go
+++ b/internal/runner/thin/mcp.go
@@ -152,6 +152,7 @@ var converseTools = []any{
map[string]any{"name": "find", "description": "Read-only: find which repository an app, product or feature lives in, by name, alias or keyword (for example Woodstar). Returns candidates with reasons, or says nothing Equipo's agent can reach matches.", "inputSchema": toolSchema(map[string]any{"query": str}, "query")},
map[string]any{"name": "search_code", "description": "Read-only: search a repository's default branch for a fixed string, case insensitive. Returns path:line: text, bounded.", "inputSchema": toolSchema(map[string]any{"repo": str, "query": str}, "repo", "query")},
map[string]any{"name": "read_file", "description": "Read-only: read a file from a repository's default branch with line numbers (up to 300 lines from start), or list a directory (empty path is the root). For a file the person attached, repo is \"attachments\" and path is the one given with their message.", "inputSchema": toolSchema(map[string]any{"repo": str, "path": str, "start": map[string]string{"type": "integer"}}, "repo", "path")},
+ map[string]any{"name": "rename_project", "description": "Rename only a project display title when the owner asks. Use project id and current revision from status. Never moves repositories or tasks.", "inputSchema": toolSchema(map[string]any{"project": str, "title": str, "revision": map[string]any{"type": "integer"}}, "project", "title", "revision")},
map[string]any{"name": "add_project", "description": "Work in an existing repository from can_add, for example oficina/equipo. Choose the one that clearly fits yourself; never ask the person. The person sees the project with Change and Remove, so do not ask them to confirm.", "inputSchema": toolSchema(map[string]any{"repo": str}, "repo")},
map[string]any{"name": "create_project", "description": "Create a new private repository for new work that fits no existing repository, in a namespace from create_in: the related namespace when it is obvious, otherwise home (the team's setting for new projects). name is lower case letters, digits, dots and dashes. The person sees it with Move and Remove.", "inputSchema": toolSchema(map[string]any{"namespace": str, "name": str}, "namespace", "name")},
map[string]any{"name": "set_project_home", "description": "Set where the team's new projects go: a namespace from create_in, or empty to clear it. Only when the person asks for it.", "inputSchema": toolSchema(map[string]any{"namespace": str}, "namespace")},
diff --git a/internal/wire/frames.go b/internal/wire/frames.go
index bf1f5a3c..475e23f8 100644
--- a/internal/wire/frames.go
+++ b/internal/wire/frames.go
@@ -451,9 +451,10 @@ type Reply struct {
// Coordinator tools. The runner's tool server lists exactly these for a
// conversation; the instance authorises each call for the turn's person.
const (
- ToolStatus = "status"
- ToolAddProject = "add_project"
- ToolAskPerson = "ask_person"
+ ToolStatus = "status"
+ ToolRenameProject = "rename_project"
+ ToolAddProject = "add_project"
+ ToolAskPerson = "ask_person"
// ToolCreateProject is authorised by the instance, carried out by the
// runner (which holds the forge credential), then confirmed with
// ToolProjectCreated, which the model never sees.
@@ -481,7 +482,7 @@ const (
)
// ConverseTools is the coordinator's tool set in a conversation.
-var ConverseTools = []string{ToolStatus, ToolFind, ToolSearchCode, ToolReadFile, ToolAddProject, ToolCreateProject, ToolSetProjectHome, ToolStarProject, ToolAskPerson, ToolWriteNote, ToolReadNotes, ToolRecordTask, ToolAddFinding, ToolStartTask, ToolReadTask, ToolCancelTask, ToolAddReport}
+var ConverseTools = []string{ToolStatus, ToolFind, ToolSearchCode, ToolReadFile, ToolRenameProject, ToolAddProject, ToolCreateProject, ToolSetProjectHome, ToolStarProject, ToolAskPerson, ToolWriteNote, ToolReadNotes, ToolRecordTask, ToolAddFinding, ToolStartTask, ToolReadTask, ToolCancelTask, ToolAddReport}
// MoveInTools are the tools a move_in or explore turn may use: it looks
// around and takes notes, and never acts for the person.
@@ -559,6 +560,7 @@ type ToolResult struct {
// them in the turn's mutation ledger and holds any later call of the
// turn to them, whatever its wording; every other tool runs fresh.
var MutationKinds = map[string]string{
+ ToolRenameProject: "rename",
ToolAddProject: "project",
ToolCreateProject: "project_create",
ToolSetProjectHome: "home",
@@ -573,7 +575,7 @@ var MutationKinds = map[string]string{
// WriteTools change something outside the coordinator's session: the
// runner replays an exact repeat of one in a later attempt from its own
// record.
-var WriteTools = []string{ToolAddProject, ToolCreateProject, ToolSetProjectHome, ToolStarProject, ToolAskPerson, ToolWriteNote, ToolRecordTask, ToolAddFinding, ToolStartTask, ToolCancelTask, ToolAddReport, ToolProjectCreated}
+var WriteTools = []string{ToolRenameProject, ToolAddProject, ToolCreateProject, ToolSetProjectHome, ToolStarProject, ToolAskPerson, ToolWriteNote, ToolRecordTask, ToolAddFinding, ToolStartTask, ToolCancelTask, ToolAddReport, ToolProjectCreated}
// ActivityReport is what the coordinator started doing: thinking, or a
// tool by name. Sent once, never acked, like a delta.