Skip to content

test(j5): cover A2A for a thread in upstream's No project project - #976

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/no-project-thread-coverage
Nov 9, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5code/no-project-thread-coverage

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

Problem

No J5 test covered a thread in upstream's "No project" project (ensureScratchProject), so registration, the address book, sending and delivery for one had been checked only by reading code. Part of #539. The issue's design questions are still open.

What changed

One integration test in DeliveryTransport.integration.test.ts. It makes the project with upstream's real ManagedProjectFolders, gives each thread its own folder with folderForThread, and runs J5's real ledger, lifecycle, send service and delivery worker against it. The Git probe is faked so the test home counts as outside a checkout. The test checks:

  • Registration: the creation path (lifecycle replay) and ensureRegistered both place a No project thread in that project's ledger.
  • Address book: the ledger is named "No project". Listing from a No project thread and from an ordinary thread shows both No project agents, and either can open an Exchange.
  • Sending and delivery: a No project thread sends to another No project thread (an ask) and to an ordinary thread, and receives from an ordinary thread (an ask). All three are delivered and linked to the thread that sent them.
  • Envelope: a No project sender's header reads in project <id> (No project). This pins today's wording. Whether it should change is still open in A2A is untested for threads in upstream's "No project" project, and envelopes would name it as a project #539.

It found no bug. Spawning from or into No project is covered already in spawnWorkspace.test.ts. Re-homing after Turn into project is not built, so it is not tested here.

Checklist

  • One concern: the description has no "also"
  • Tests cover the changed behavior (backend changes ship with focused tests)
  • UI changes: before/after screenshots above, and a video for motion or interaction (no UI change)
  • Live testing: the section above says what ran live and what did not (test-only, nothing to run live)
  • Upstream-owned files: each one is recorded in FORK.md (case text and file-table row) in this PR (no upstream file edited)
  • Upstream product: any change to what upstream's product does has a human decision linked above and a register entry in docs/j5/product/upstream.md (no product change)
  • Surfaces: server-only test; no entry point, client, provider or contract changes
  • Docs: definitions under docs/j5/product/ and user docs rewritten where this changes them (no docs affected)

Claude Opus 5.5 in Claude Code, running in J5 Code.

🤖 Generated with Claude Code

…ds and receives

Covers #539's registration, listing, sending and delivery, and pins the
envelope's current wording for a No project sender.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
j5-code Ready Ready Preview Nov 9, 2026 4:05am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Or wait 11 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 5 included reviews currently available. Your 28 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 067d732 and 11763b7.

Files selected for processing: 1

  • apps/server/src/j5/a2a/DeliveryTransport.integration.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Nov 9, 2026
@Jacksondr5
Jacksondr5 merged commit 3504684 into j5/main Nov 9, 2026
31 checks passed
@Jacksondr5
Jacksondr5 deleted the j5code/no-project-thread-coverage branch November 9, 2026 04:29

This branch was successfully deployed

1 active deployment
Preview — 11763b74 Deployed Nov 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant