Skip to content

test(mobile): guard every J5 seam in upstream mobile files - #373

Merged
Jacksondr5 merged 1 commit into
j5/mainfrom
j5/mobile-seam-tests
Sep 30, 2026
Merged

Jacksondr5 merged 1 commit into
j5/mainfrom
j5/mobile-seam-tests

Conversation

@Jacksondr5

Copy link
Copy Markdown
Owner

J5 edits 32 upstream mobile files, but only 3 of the 205 mobile test files are J5's. An upstream advance that rewrites one of those files can quietly drop a J5 call, such as the persona picker, the playbook board, or the draft-as-agent carrier. There's no type error, and J5 behavior just disappears.

What this adds. apps/mobile/src/j5/upstreamSeams.test.ts is one table covering all 15 places an upstream mobile file reaches J5 code. Each row gives:

  • the upstream file
  • the J5 module it must import
  • the calls, renders or route registrations that must remain
  • the FORK.md or BRANDING.md record that owns the edit

If a seam disappears, the failing test's name tells the rebaser which record to re-apply. This is the per-seam test the FORK.md mobile section (#370) requires; new mobile seams add a row. Existing behavior tests stay where they are (projectThreadStartTurn, the outbox, the composer command menu).

It reads upstream sources as text, following web's ArtifactsPage.test.ts precedent. For component seams, that's the only cheap way to make a dropped call fail loudly.

Verification

  • vp test run src/j5/upstreamSeams.test.ts: 15 passed.
  • Mutation check: replacing <PlaybookBoard in ThreadDetailScreen.tsx fails the "case 45: native playbook board" row. Restored afterwards.
  • Mobile typecheck, lint and format are clean.

Closes #368

🤖 Generated with Claude Code. Claude Opus 5.5 in J5 Code.

A rebase that rewrites an upstream mobile file can drop the J5 call
without a type error. One table-driven test lists each seam, the J5 code
it must reach and the FORK/BRANDING record that owns it, and fails with
that record's name when a seam disappears.

Closes #368

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 29, 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 47 minutes for your next included review.

Check out review usage here.

View limit details

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: Jacksondr5/j5code/.coderabbit.yaml

Review profile: CHILL

Plan: Essentials

Run ID: 2fbd8fb6-d6a8-4e0e-b270-430db7592493

📥 Commits

Reviewing files that changed from the base of the PR and between 1615d24 and 7c01553.

📒 Files selected for processing (1)
  • apps/mobile/src/j5/upstreamSeams.test.ts

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added 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. labels Sep 29, 2026
@Jacksondr5
Jacksondr5 merged commit 02857ac into j5/main Sep 30, 2026
29 checks passed
@Jacksondr5
Jacksondr5 deleted the j5/mobile-seam-tests branch September 30, 2026 00:24
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.

Seam tests for existing J5 edits in upstream mobile files

1 participant