Skip to content

MCP profiles: follow-ups from #716 reviews #719

Closed

Description

@scuttletoby

Follow-ups from the round-2 reviews of #716 (both SAFE): lens A #716 (comment) and lens B #716 (comment) . None opens a way to a wider run.

  • Bind during a save (left from round 1, lens A minor 2): a bind that lands during a save (COALESCE(excluded.thread_id, scheduled_tasks.thread_id) in ScheduledTaskService.ts) is not checked; closing it needs another upstream line.
  • Owner-made task changed by a narrowed thread (left, round-1 lens A minor 3): a dropped entry for an owner-made task that a narrowed thread later changed still runs as the owner's.
  • Linked save to a bound task is not checked against the bound thread (scheduledTaskMcpProfile.ts:352); only an older T3 on the other machine would forward it from a narrowed thread. At least one README sentence.
  • Bound continue task after the project widens keeps running in its thread (matches "runs into a bound thread keep that thread's profile"); one README clause.
  • Webhook delivery that waited for a slot is re-checked on its pre-wait copy of the task (agentSlotRoutes.ts:480): a save during the wait (even the owner's) fails it with a misleading "Save the task again" and that delivery is lost. Re-read the task before the re-check.
  • Record written before the row (kept on purpose, fails safe); an unreadable record file logs its warning on every pass; cron schedules are not tested.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions