Skip to content

Decide what deleting a project does to J5's state, then admit t3_project_delete #552

Open

Description

@Jacksondr5

Why

Deciding #519 on 2026-10-11, Jackson admitted upstream's t3_project_create and t3_project_update to agents and held t3_project_delete back, because deleting a project almost certainly clashes with state J5 keeps per project. This issue is that work, split out of #519 to keep its scope down.

The gap is not only the agent tool. A person can already delete a project from the app through the same upstream lifecycle, so whatever is wrong here is wrong today for that path too.

What is known

  • Upstream's delete is a soft delete of the project. A project with threads needs force=true. It does not delete the repository directory.
  • J5's ledger is keyed by project, and a comment in apps/server/src/j5/a2a/migrations/031_LedgerRekeysToProjects.ts says a ledger outlives upstream's soft project delete.
  • A search of apps/server/src/j5 for a project-deleted event or handler found nothing. J5's lifecycle reactor handles thread archive, unarchive and delete, not project delete.

What to check

Each of these is unverified. Check it against the code and a seeded database before deciding.

  1. Participants. Do the project's threads get per-thread delete events that J5's lifecycle reactor sees, so memberships, placements and open Exchanges close as they do for a single thread delete?
  2. Crews. A Crew seat can't be deleted on its own (crewSeatArchiveGuard.ts), and that guard sits on the client door and the organize tool. Does a forced project delete go around it, and what state is a Crew left in when its Captain and seats are deleted this way?
  3. People. Open asks to a person from agents in the project: do their Inbox rows end with a notice, or stay open with nobody to answer to?
  4. Machine participants. They belong to one project and have no lifecycle events yet.
  5. Peer servers. Agents in the project that a peer server can address, and Exchanges open with a peer.
  6. Artifacts and playbooks. The project's artifact directory under the state dir, and playbook runs in progress.
  7. The ledger row itself. Whether anything lists or reads a ledger whose project is gone, for example j5_list_participants and the Fleet page.

Outcomes

  • Fix what is broken for the person's delete in the app.
  • Then either admit t3_project_delete to agents in apps/server/src/j5/a2a/mcp/upstreamCatalog.ts, or record in register D2 the reason J5 keeps it hidden.

Related

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