oficina / equipo Public
Project placement
Paul approved the four product rules on 2026-11-15. This spec changes the coordinator's placement decision and lets people correct a task's project. It supersedes the current instruction to choose a repository without asking.
Decide, or ask
Use the project the person names, or the project whose work they clearly continue. Otherwise ask when several projects fit, or when this could be a new project rather than a feature. Never create a repository without a placement card answered by the person, unless their current request explicitly asks for a new project. A tool argument claiming permission is not permission.
Keep the coordinator instruction short:
> Use the named project or the clear continuation. If placement is ambiguous, > ask with a placement card, best guess first. Always confirm a new repository > unless the person explicitly requested one. Wait for the answer before > recording or starting work. Learn from project corrections in your notebook.
add_project continues to attach an existing repository. record_task is called once placement is settled, before investigation; start_task retains its existing role. ask_person gains structured placement data: an ordered list of reachable repositories and, optionally, the proposed new repository. The runner must preserve this data. Ordinary questions cannot authorise repository creation. create_project checks a matching answered placement card or explicit words in the current person's message before returning the runner's create permission. The permission is bound to the person, lane, answer turn and exact repository; replay cannot widen it.
The question is “Where should this go?” Choices read “Add to <project>”, “New project”, and the other candidates, best guess first, at most six. Store stable repository choices separately from their labels, plus card ID, revision, person, turn and lane. The new choice names one proposed repository. new_first puts it first when it is the best guess. A tap records the answer and resumes the coordinator with the original request. Do not create a repository merely to show this card. Revalidate repository access when answering and when executing. Duplicate taps cannot create twice; stale revisions, altered choices and another person's answer are refused.
Set aside hides the card using Roster's existing control. It does not answer, select the first choice, create a task or repository, or start Engineering. The unresolved request stays available to restore and answer. A later ordinary message does not silently authorise the pending repository.
Correct a task
Every task project chip, including Roster reports and task lists, opens “Wrong project?” with two choices: “Move to another project” and “Make it a new project”. The first opens a destination chooser; the second explicitly asks for a new repository and its name. Show the destination before submitting. The task ID stays stable, so links, reports and sub-chat threads keep working.
| Current state | Result | | --- | --- | | Noted or investigated; nothing dispatched | Move at once, keep the brief; do not start work that was not started. | | Queued locally, never dispatched | Withdraw the queued step and move; restart if Engineering was requested. | | Running, even without a push | “Move and restart”; stop dispatched work and wait for termination proof. | | Pushed, failed, in checks or review | “Move and restart”; wait for all dispatched attempts to terminate, then start fresh Engineering. | | Ready to merge | Withdraw the old merge choice and watcher; fresh Engineering in the destination. | | Merging or merge outcome unknown | Refuse. The hub must settle the outcome first. | | Merged or done | Refuse. A separate request may create a new task; never reinterpret the old merge. | | Cancelled or folded | Refuse; the person can make a separate request. |
An authenticated merge notification arriving during the stop refuses the pending move and leaves the completed task in its original project.
Before a push, a move is instant only if no process can still act on the old repository. Elapsed time, an offline runner, cancellation acknowledgement, or a terminal state alone is not termination proof. Keep the move pending until the assigned runner proves termination of the exact attempt. Undispatched steps can be withdrawn locally. Block dispatch, retry, publication and merge while a move is pending. A crash/reconnect resumes this durable state. Recheck the requesting owner's membership and destination access at completion; if either was revoked, retain the hold instead of restarting.
Preserve title, brief, notes, findings, completed Research with its original sources, task creator, priority and deadlines, conversation lane, card threads, and specialist questions and answers. An open specialist question must finish before a move can start; its saved answer stays on the task. Old repository paths remain labelled with their source repository. Retire old specialist sessions for new questions. Do not move branches, commits, checks, copy acceptance, review judgements, preview sessions, repository-specific revert instructions or merge permission. Retain old steps as history, excluded from current progress and success. Fresh Engineering uses a new branch name and the destination's base, policy and runner placement. Returning to a previous repository must also use a fresh branch.
Never delete, rename, force-push, merge or otherwise modify the old branch as part of a move. Stop the old watcher. Record its repository and branch on the task so the person can inspect it. Late reports from retired attempts cannot restore old evidence or trigger further work. An already committed external push remains historical; it is never transplanted into the destination.
Authority, audit and learning
Use the verified session and check the current roster inside each write transaction. The coordinator cannot call the move operation on its own. Destination repositories must be available to the task creator's runner; moving does not grant repository or namespace access. Owner changes must not transfer a task to the owner's credentials.
Decision for Paul: may a non-owner task creator move their own task? Recommendation: keep owner-only writes in this release, matching the explicit non-owner refusal guard in this brief and existing Engineering authority. Allow any current owner to correct a task, preserving its creator. Extending this to creators later needs a deliberate change to the write policy.
The same transaction records move requested/completed, actor, task ID, source and destination, old branch, revision, and whether a restart was needed. No credentials or source contents enter the audit. Completion writes a short correction into the creator's existing coordinator notebook, attributed as a system-observed fact rather than a quoted personal preference. Deliver it to the runner's notebook too, including after reconnect. Corrections are reference, not authority. Preserve the notebook's bounds; permanent move history stays on the task even when old notebook entries age out.
Storage and protocol
Use additive migration 0087 after main's 0086. Persist structured placement card data, pending destination/actor, move history, and retired step markers. Backfill existing rows as unchanged. Preserve history and task identity. Use protocol 25 after main's 24 for placement metadata and notebook correction delivery. Older runners may read existing tasks but cannot start this workflow or receive a restart requiring the new contract. Validate and bound all new fields. Never use a submitted boolean as proof of explicit permission.
Interface and verification
Reuse Roster's project monogram, compact chip, native details menu, hairline borders and theme tokens. Keep the shared chip in its own template partial; change Roster's byline only at that call site to reduce conflict with roster-report-actions. On phones the chooser is a normal single-column page, with labelled fields and full-width tap targets. Desktop uses the same flow. Native links and POST forms work without JavaScript; server responses enforce CSRF, authority and revision checks. Pending moves show that Equipo is stopping work; unresolved termination never looks like a completed move.
Write failing tests first. Cover clear-context prompts, ordered ambiguous choices, new-project confirmation and explicit-request exception; forged, stale, replayed, cross-person and set-aside answers; roster revocation; every state in the table; rollback and concurrent moves; destination permissions; termination delayed or missing; late reports; old branch unchanged; fresh branch on return; all preserved context; historical evidence excluded; notebook delivery; protocol compatibility and migration from main. Break each guard, observe its test fail, restore it and record the command/result.
Browser checks at 1280 and 390 pixels in light and dark cover task and Roster chips, keyboard access, destination selection, confirmation, set aside and the pending state. Save screenshots in ../shots/. Run targeted Go tests, make budget, python3 scripts/runner-dead-references.py, make lanes-check and make copy-release-check; then push and poll branch CI to green. New UI copy gets the delegated acceptance record requested in the brief. No merge or deployment is part of this work.