Skip to content

Contribution workflow ​

First contribution ​

  1. Browse open issues or report a bug or request a feature. Comment on the issue with what you would change so a maintainer can confirm the scope and release before you start.
  2. Clone the repository. With Node.js 22.12+ and pnpm 11+, run pnpm install. Use pnpm docs:dev to preview the docs or pnpm dev to open the playground. Read AGENTS.md and the standards relevant to the change.
  3. Follow existing patterns, update the relevant tests and docs, and run the focused local checks. Add component usage samples in examples/ using the executable example convention.
  4. Open a pull request using the template. Link the issue, describe the change, and report which checks ran.

For a component guide change, run pnpm examples:lead origin/master from the checkout to compare with the current target. With no argument, the check uses the merge base of the branch and origin/master. The PR static check uses the pull request's target commit. A new guide with a themed recipe, or a guide that changes its lead, must lead with a themed runnable example. An existing headless lead can remain while the guide migration is in progress. See the themed-first standard.

Review requirements ​

  • Adding or promoting a component requires the component gate, including an approved spec, tests, docs, and a manifest.
  • Add a Changeset when a publishable package's consumer-visible behavior changes. Use the no-changeset PR label for internal-only changes inside publishable packages.
  • Comment non-obvious decisions and review the diff for API, accessibility, reactivity, SSR, cleanup, security, dependency, and licensing concerns.

The hourly PR sweep checks for overlapping edits in shared files on PRs that target the same branch. An overlap advisory in the run report names the affected PRs, file, and change, and suggests a merge order. After the first PR lands, check whether the second needs to reconcile the shared edit.

Issue tracking ​

Use GitHub Issues to report problems with GhostVue and discuss new public behavior. Maintainers track implementation, tooling, and release work separately.

  • Report a problem: use the bug report for incorrect behavior.
  • Propose public behavior: use the feature proposal to describe what consumers need.
  • Triage: apply priority:* labels and check the release, ownership, and readiness before starting work.
  • Pull requests for a public issue: name the branch issue-<n>-<short-slug> and include Fixes #<n> in the body so the issue closes on merge.
  • Pull requests tracked privately: use a descriptive branch name and link the PR from the issue's Development sidebar. Keep private issue identifiers and discussion in the private tracker.
  • Legacy GHO-n keys: locate the GitHub issue whose title begins with GHO-n: (for example GHO-17: …). Open GHO issues were migrated as #306–#320.

Issue readiness ​

Apply triaged when an issue meets these criteria, including work planned for a future release.

  • The issue describes the problem, intended outcome, and scope clearly enough to start work.
  • The acceptance criteria describe how to verify the outcome.
  • Any decisions, approvals, and prerequisites required for the scoped work are in place, and the work can start now.

Remove triaged when the scope or approvals need review. For open dependencies add blocked and record Blocked by: #123, #456 in the issue. Reassess the issue when a blocker closes. Keep its planned release.

The release-scope policy selects one exact board option for the public issue queue. In enforcement mode the repository owns ready. It adds the label to triaged Todo issues in the active release and withdraws it for open dependencies, holds, assignees, or work already underway. Public issue pickup, including dependency closure and spec drafting under a human account, must claim before starting:

sh
node scripts/release-scope.mjs claim 123

The command dispatches to master and waits for that specific workflow run. Only a successful claim authorizes starting work. A dispatch timeout, cancellation, or denied claim requires checking the run and issue timeline. The workflow sets in-progress and records the claimant and run URL on the issue. To release abandoned or interrupted work, clear in-progress, any assignee and the board's In Progress status after confirming the worker has stopped.

For privately tracked work, a maintainer confirms the release and records ownership on the private issue and execution board. Release Scope currently evaluates public issues. Keep it in report mode while active-release work can be tracked in either repository.

PRs targeting master require an active-release work item. For a public issue, use GitHub closing links or put Work item #123 on its own line for each partial work item. Include the branch's issue if using an issue-<n>- branch. For a private issue, use the Development link described above. Verified Dependabot updates on the repository's Dependabot branches follow their own review path.

Dependency-gated implementations ​

The implementationGates entries in .github/release-scope.json authorize automatic triage for specific implementation issues. Under an implementation number, map each prerequisite issue to acceptable spec filenames (slugs under docs/components/*-spec.md). An empty list means the prerequisite is an implementation PR that must land on master. For example, #419 requires both the approved submenu spec from #413 and the first host from #418. Update the entry in the spec PR if the approved design uses a different filename.

The sweep checks native GitHub dependencies and every local Blocked by: reference. For a configured prerequisite it verifies a completed issue and a linked PR merged into this repository's master branch. For specs, the PR must change an approved spec with approval evidence, and that file must still be approved on master with its blocking questions resolved.

Issue close/reopen, spec merges and the scheduled sweep reconcile the labels. Reopening a prerequisite restores blocked and withdraws ready, including on already assigned work. Clearing the last hold allows automatic triage and readiness for unowned Todo implementations in the active release. Human, design and deferred holds still prevent pickup. The protected policy entry delegates this decision for the listed issues; use human-required for a separate maintainer hold. Both workflow modes reconcile these designated issues. The local report is always read-only, and claims and PR commit-status writes still require enforcement mode.

Rollout and operation ​

The sweep accepts the existing readiness and triage labels during the rename. After the compatible sweep lands on master, pause pickup and disable the Release scope workflow. Wait for active runs to finish, rename agent:triaged to triaged and agent:ready to ready in place, then re-enable the workflow and dispatch a sweep. Confirm the queue and update any label-based pickup runners before resuming pickup. Renaming in place preserves issue labels.

  1. Configure an Actions secret named RELEASE_PROJECT_TOKEN with read access to the user-owned project and its issue content. The repository workflow token handles issue and commit-status writes. Create the triaged label and review existing candidates against the criteria above.
  2. While the policy is in report mode, run node scripts/release-scope.mjs report with an authenticated, project-readable GitHub CLI, or dispatch the Release scope workflow with the claim field empty. Review the queue changes and each open PR with the maintainers. In report mode only the designated implementation gates reconcile labels. Assignees and commit statuses are preserved, and claims are disabled.
  3. Connect every runner to the claim command and confirm it waits for success. Coordinate the switch with pickup paused. Merge a policy PR selecting enforce, confirm the first sweep and claim behavior, require the release-scope commit status from GitHub Actions in the master ruleset, then resume pickup. Issue/PR events and policy changes run a full sweep. A scheduled sweep every 15 minutes catches board-only edits. Claims always read the live board. An unreadable board stops pickup, preserves labels, and marks open PR heads with an error. Restore access and dispatch a fresh sweep.
  4. After the release gate and approval of the next board option, the release planner runs node scripts/release-scope.mjs report <next-release> with the approved option, such as 0.4.0. Open a PR changing only activeRelease, link the current-release rollover issue, and paste the before/after report and unfinished issue list. Maintainer merge activates the next queue. Retarget carryovers only after an explicit decision. Publication requires its own authorization.

Release routing and branching ​

  • Next release. Develop on short-lived issue branches from master and target PRs at master. Read activeRelease from the policy on master and check the issue's Target release on the execution board before picking it up. Future-release, unassigned, and patch issues stay out of automatic pickup, even if they still carry an old ready label.
  • Report mode. Some pickup paths still use ready as a signal. Recheck the target, status, holds, and ownership before acting on that label. Use the release-scope report to preview the queue. In enforcement mode follow the claim command above.
  • Maintenance. Keep each published line, such as 0.2.x, on the board for compatible fixes. Start work only when a maintainer selects the issue for a patch. Cut release/X.Y.x from vX.Y.0 when the first patch for that line is needed. Target a separate patch issue branch and PR at release/X.Y.x. Backport a focused fix from master when it already exists: label its PR backport:X.Y.x to open the backport PR (see Backport a fix for the label convention and recovery after a conflict). Otherwise carry the fix forward to master in a separate PR. Keep branch-specific version and changelog commits on their original branch.

Keep one active development target throughout a maintenance release. See the release runbook for the maintenance branch setup and publication steps.

Release planning ​

The release roadmap shows major deliverables and release gates. The execution board groups tracked issues by status and target release. Both views require project access.

  • GitHub adds new open issues and updates card status when issues close or reopen. Triage reconciles missing cards and the intake group. Set Target release when an issue or approved plan names a release. Set Roadmap to Show for major deliverables and release gates.
  • Preserve existing project field choices unless a maintainer decision or a documented release change calls for an update. Leave ambiguous work in the unassigned release group. Apply the roadmap:manual issue label to keep its planning fields under manual control.
  • Use issue and linked PR activity as evidence for execution status. Release readiness and publication are separate gates. Follow the release authorization rules before treating either as complete.

Split a roadmap item into issues ​

An approved roadmap card often needs a spec, one or more implementations, and a release check. Give each piece its own issue so that a single owner and PR can finish it.

  1. Start with the work that needs no approval. A docs-only spec PR under the component gate can begin as a draft. Say in the issue that anyone can draft it and that the maintainer approves the API.
  2. Name the proof that releases each implementation. For a component, the proof is the merged spec on master with specStatus: approved and approval evidence. Closing the spec issue alone does not clear the hold. Later hosts can also require an earlier implementation PR to merge.
  3. Record every dependency. Add blocked and a Blocked by: line, and add an implementation gate entry in the spec PR for an implementation issue. The automation from #337 reconciles those issues. Reassess any other blocked issue by hand when a blocker closes.
  4. Recheck before pickup. The execution board holds each issue's target release, status, and ownership. Read mode and activeRelease from the policy on master, and run node scripts/release-scope.mjs report to preview the queue. Follow release routing for that mode.
  5. Split overlapping files and new work. If two issues would change the same shared files, make one issue own them and the other wait for its merge. When review finds a problem outside the current acceptance criteria, record it on an existing issue or open a new one with its own owner and PR.

Example: 0.2.0 nested menus ​

The Motion and nested menus roadmap group splits nested menus into four issues.

IssueRoleReleased by
#413Shared submenu specNothing. Anyone could draft it immediately.
#418First host, DropdownMenuThe approved submenu or dropdown-menu spec from #413 on master
#419ContextMenu and MenubarThe approved spec from #413 and the merged #418 implementation
#4230.2.0 release-candidate evidence recordEvery implementation in its Blocked by: list, or a recorded maintainer decision that moves a feature out of the release

The implementationGates entries for 418 and 419 in the policy expressed the first three rows, and were removed once both issues closed. The empty list under 419 → 418 required an implementation PR merged into master rather than a spec. Issue #423 had no gate entry, so a planner rechecked it by hand as its blockers closed.

The steps run in this order:

  1. Draft. Only #413 was ready. #418, #419 and #423 each listed open blockers.
  2. Approve. PR #511 merged docs/components/submenu-spec.md with specStatus: approved and a link to the maintainer's sign-off. That released #418. #419 stayed blocked on #418.
  3. First host. PR #535 implements #418. #419 becomes eligible only after that PR merges into master.
  4. Remaining hosts and release. #419 adds the ContextMenu and Menubar browser cases. If review limits the release to DropdownMenu, #419 records the decision and is triaged again. #423 waits for its full blocker list.

Shared-file collision. PR #535 changes use-ghost-menu-collection.ts, use-dismissable-layer.ts and dismissable-layer-stack.ts, and adds the shared GhostSubmenu parts. If #419 had started in parallel, two PRs would rewrite the same primitives for different hosts. In the split, #418 owns the shared primitives and the first host. #419 reuses the merged primitives, and its acceptance criteria name the ContextMenu and Menubar browser specs. Both PRs edit only their own row in docs/roadmap.md.

Follow-ups. While drafting #413, PR #511 found that File → Export PDF in the Menubar preview is a leaf item. The PR recorded the gap and pointed to #419 instead of growing the spec PR. PR #535 also lists manual NVDA and VoiceOver traversal as a release check, which stays outside the first-host PR.

Historical case: themed DataTable ​

Issues #316 and #333 split the 0.1.0 themed DataTable into a spec and an implementation. The split predates the #337 automation, so it relied on Blocked by: lines and manual reassessment.

  1. Hold. #316 was blocked by multi-column sort (#317). Ready: none of the DataTable work.
  2. Decouple. The 2026-11-25 roadmap review shipped the themed table on the single-sort contract and moved #317 to its own 0.3.0 track. #316 became ready for the docs(spec) PR only. #333 was opened for the implementation, with Blocked by: #316, #330. The token recalibration in #330 was its own issue. Ready: #316 and #330.
  3. Tokens land. PR #376 closed #330. #333 stayed blocked while PR #374 was in review. Ready: none of the DataTable work.
  4. Spec approved. PR #374 merged the approved addendum to docs/components/data-table-spec.md and closed #316. Ready: #333, which PR #404 implemented.

Today the planner would add 333 to implementationGates, mapping 316 to data-table and 330 to an empty list, so the sweep handles steps 3 and 4.

When editing the component catalog in roadmap.md, change only the row for the component you are working on.

Commits should be logical and readable. Conventional-style subjects such as feat:, fix:, docs:, test:, and chore: are encouraged because they make history scannable, but automated semantic-release behavior does not depend on them. Do not split changes into ceremonial commits that cannot be reviewed or reverted meaningfully.

AI-generated code is allowed and expected. The contributor remains accountable for correctness, tests, accessibility, security, documentation, comments, licensing, and the right to contribute the submitted material.