Semantic diff at the pull-request level: initial concepts
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Active
- Tech stack
- javascript
- Domain
- developer-experience
Research direction
Start by reading the existing Semantic Diff page and the commit records described in #8908, then review the proposed versioned PR record in #8882. The issue outlines aggregation, diff facts, verification, PR-level text, and archival, but leaves key behavior and design questions open. Done means agreeing on those choices and defining the PR-level concepts before implementation.
Written by the indexing model from the issue text.
Description
Commit records (#8908) give each commit a message that describes its change in the change's own form: a parse tree, Lambda, generated JavaScript, a diagnostic, a typing rule or a clause matrix. The Semantic Diff page draws those forms. This issue collects the initial concepts for the pull-request level. They will be refined, and details added, as the commit level is used.
Concepts
- A PR's page is its commits' cards. This works today: the page linked on each PR draws every commit in the PR's range.
- Aggregation. One view of the PR as a whole: for each object its commits change, the form at the PR's base and at its head, merged from the commits' blocks. A reviewer reads the net change; the per-commit cards remain one click away.
- Facts from the PR's diff. Areas touched, tests added or changed, committed generated JavaScript, magic-number bumps for marshaled types, v0 PPX bridge fixtures, and changelog fragments with their validity. These are computed from the whole diff and shown beside the aggregated view, kept apart from what authors write.
- Verification. CI can regenerate a declared form from builds of the base and the head and compare it with the form written in the message, flagging a form that no longer matches the code. The head is already built by CI, and the base build can come from
master's CI artifacts. - Text written once per PR. The PR's purpose and its review answers have no commit of their own. Candidates: the PR description, or a versioned file in the diff such as the
changes/<name>.record(or YAML) proposed in #8882. - What reaches
master. The repository squash-merges, and the squash message concatenates the commit messages, so the forms reach history. The page stays archived atcdn.rescript-lang.org/semantic-diff/pr-<N>/.
Open questions
- Which of these the page shows by default, and which on demand.
- Whether verification (4) is a warning or a required check.
- Where PR-level text lives (5), and whether changelog entries move into it.
- How a stack is drawn: each PR against the PR below it, or the whole stack.
🤖 Generated with Claude Code
- Dominant language
- ReScript
- Stars
- 7.5k
- Forks
- 483
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 164
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rescript-lang/rescript
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
rescript-lang/rescript#8938 ·
Maintainers usually reply within 1 day
-
discussion enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
rescript-lang/rescript#8934 · 1 reaction ·
Maintainers usually reply within 1 day
-
Partial application moves its arguments into the generated closurePossibly taken @cknitt claimed this today. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
rescript-lang/rescript#8932 ·
Maintainers usually reply within 1 day
-
Nested JSX components under React Server Components: derive flat exports from the signaturePossibly taken @cknitt claimed this 3 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
rescript-lang/rescript#8901 ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
rescript-lang/rescript#8897 ·
Maintainers usually reply within 1 day
All issues in rescript-lang/rescript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
PHP-CS-Fixer/PHP-CS-Fixer#9899 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melgarafael/DeskcommCRM#3160 ·
Maintainers usually reply within 1 day
-
fix: presentation.go with mcp-table.go: the message for each MCP server comes backPossibly taken @mge1512 claimed this today. Openbug
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
mark3labs/kit#242 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
kunchenguid/firstmate#7604 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ehmpathy/rhachet-roles-ehmpathy#1032 ·
Maintainers usually reply within 1 day