You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project-scoped DedicatedMachine machine-pairing system is superseded by the account-scoped Machine daemon. With the account-level Machines page now live (#143, PR #499), the legacy project machines page should be removed — but the PendingQuestion (machine ask/answer) capability is preserved by re-homing it onto the new Machine.
Remove the DedicatedMachine model + enum + Project.dedicatedMachines back-relation, the project-scoped machines list/CRUD routes, companion/pair, the project machines page + src/components/machines/*.
Keep + re-home PendingQuestion: repoint its FK from DedicatedMachine → the account-scoped Machine; add account-scoped ping/questions/answer routes under /api/v1/me/machines/[id]/.... (The PM-bridge Sessions question flow is untouched.)
Data loss accepted (days-old superseded feature; DROP migration may drop rows).
Problem
The project-scoped
DedicatedMachinemachine-pairing system is superseded by the account-scopedMachinedaemon. With the account-level Machines page now live (#143, PR #499), the legacy project machines page should be removed — but thePendingQuestion(machine ask/answer) capability is preserved by re-homing it onto the newMachine.Task: #144 (
remove-legacy-dedicatedmachine-project-machines-implementati)Confirmed decisions
DedicatedMachinemodel + enum +Project.dedicatedMachinesback-relation, the project-scoped machines list/CRUD routes,companion/pair, the project machines page +src/components/machines/*.PendingQuestion: repoint its FK fromDedicatedMachine→ the account-scopedMachine; add account-scoped ping/questions/answer routes under/api/v1/me/machines/[id]/.... (The PM-bridge Sessions question flow is untouched.)/machinespage (feat: peter-current-working-branch-2 #143). NoteNoMachineBanneralready points there.Acceptance criteria
DedicatedMachinemodel +DedicatedMachineStatusenum +Project.dedicatedMachinesremoved;prisma validate+ typecheck pass.PendingQuestionpreserved,machineIdnow →Machine(newMachine.pendingQuestions);PendingQuestionStatuskept./api/v1/me/machines/[id]/...; old project-scoped equivalents gone.companion/pair, project machines page, andsrc/components/machines/*deleted.npm run buildsucceeds./api/v1/me/machines,docker/agent/*),/agentrooms, and the feat: peter-current-working-branch-2 #143 page remain green;CompanionToken/ProjectSyncToken.machineFingerprintuntouched.Notes for the implementer
main— the removal targets (…/machines/page.tsx,machines-page-client.tsx,components/machines/*) now include T113's additions and get removed wholesale.Security
Account-scoped question routes must use
authorizeDaemonOrSession+userId(test non-owner rejection); zod-validate question/answer bodies. DROP migration destroysdedicated_machines+pending_questionsrows (accepted).Rollback
Revert PR; re-run the original migration to recreate the (empty) tables.
Full spec:
.tasks/.data/tasks/remove-legacy-dedicatedmachine-project-machines-implementati.md