Repository navigation
Open
Description
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.tssays a ledger outlives upstream's soft project delete. - A search of
apps/server/src/j5for 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.
- 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?
- 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? - 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?
- Machine participants. They belong to one project and have no lifecycle events yet.
- Peer servers. Agents in the project that a peer server can address, and Exchanges open with a peer.
- Artifacts and playbooks. The project's artifact directory under the state dir, and playbook runs in progress.
- The ledger row itself. Whether anything lists or reads a ledger whose project is gone, for example
j5_list_participantsand the Fleet page.
Outcomes
- Fix what is broken for the person's delete in the app.
- Then either admit
t3_project_deleteto agents inapps/server/src/j5/a2a/mcp/upstreamCatalog.ts, or record in register D2 the reason J5 keeps it hidden.
Related
- Evaluate J5's agent tools against upstream's: keep, converge, retire or give back #519, where this was split out.
- Retire Squadrons and fold their J5 behavior into projects (decided) #412, the ledger re-key to projects.
- Register D2 in
docs/j5/product/upstream.md.
Metadata
Metadata
Assignees
Labels
No labels
Activity