Skip to content

Repository Governance ​

This document is the authoritative ownership, review, branch-protection, and emergency-maintenance policy for easyeda-mcp-pro. The machine-readable baseline is config/repository-governance.json, and .github/CODEOWNERS must stay consistent with it.

Governance model ​

easyeda-mcp-pro currently uses a solo-maintainer governance model. The project owner and lead maintainer is Osman Aslan (@oaslananka). The lead maintainer has final decision authority for roadmap scope, issue triage, merge decisions, release timing, security response, and OpenSSF BadgeApp self-certification.

Public collaboration happens through GitHub issues, pull requests, discussions, and private GitHub Security Advisories. Changes are merged only through pull requests after the applicable automated gates and review requirements pass.

RoleCurrent holderResponsibilities
Lead maintainerOsman Aslan (@oaslananka)Final project decisions, issue triage, PR merge decisions, repository settings, and governance evidence.
Release managerOsman Aslan (@oaslananka)Release Please review, GitHub Releases, npm/GHCR publication, bridge artifacts, provenance, and rollback.
Security contactOsman Aslan (@oaslananka)Private vulnerability intake, triage, credential rotation, coordinated disclosure, advisory publication, and reporter credit.
ContributorAny GitHub contributorSubmit focused issues and PRs, sign off non-trivial commits, add tests, and provide review evidence.

Critical-path ownership ​

The following paths have a higher review burden than ordinary documentation or isolated tests. .github/CODEOWNERS names @oaslananka explicitly for every listed pattern; the JSON policy test prevents those entries from silently drifting.

Critical areaCovered pathsOwner
Security and automationGitHub workflows, CODEOWNERS, dependency allowlist, Renovate, Mergify, Gitleaks, Semgrep, security policy, governance, security architecture, assurance case@oaslananka
ReleaseRelease Please configuration, release channel policy, release policy/process/verification, and release CI runbook@oaslananka
Remote transport and bridgesrc/remote, HTTP/OAuth transports, and src/bridge@oaslananka
Mutation and transaction codeServer transaction/write tools plus extension dispatcher, remote client, connection policy, PCB mutation/write, and schematic transaction operations@oaslananka

A change is critical-path work when it modifies one of the policy patterns, changes workflow permissions or secret access, changes authentication/authorization, changes release publication, or changes a design-mutation boundary.

Independent human review ​

Independent human review is required for critical-path changes whenever an eligible reviewer exists. An eligible reviewer is a human other than the PR author who has repository review access and enough domain context to evaluate the affected risk. Bot approval, agent output, and the author's own self-review are not independent approval.

Current solo-maintainer enforcement limitation ​

The repository currently has one write-capable maintainer. GitHub cannot require one independent approval or a code-owner approval without deadlocking every owner-authored maintenance PR. The live main-standard repository ruleset therefore records zero required approvals and does not yet enforce code-owner approval. This solo-maintainer enforcement limitation is public and must not be represented as independent review.

Until a second eligible maintainer is added, a critical-path PR must include:

  1. a high-risk classification and rollback plan;
  2. exact local and CI evidence;
  3. an author self-review covering permissions, secrets, fork behavior, native mutation behavior, and release impact as applicable;
  4. disposition of every bot, agent, and human finding; and
  5. external review when a suitable reviewer is practically available, especially before a stable release.

When a second eligible maintainer is granted review access, the independent-review activation runbook below becomes mandatory. The activation target is already recorded in config/repository-governance.json; it must not be weakened merely to make an owner-authored pull request mergeable. If an eligible independent reviewer is added, explicitly reassess and remove the owner PR-bypass exception before claiming independently enforced approval.

Independent-review activation runbook ​

The trigger is satisfied only when a second human has maintain, write, or otherwise sufficient review access and has accepted responsibility for the critical paths they review. A nominal account, bot, inactive invite, or external opinion without repository review access does not satisfy it.

Within two business days of the trigger, @oaslananka must:

  1. verify the collaborator's live permission and accepted invitation;
  2. update the main-standard repository ruleset to one required approval, required code-owner review, dismissal of stale approvals, and approval after the latest push;
  3. remove the existing owner PR-only bypass actor and verify the live ruleset has zero bypass actors before claiming independent reviewer enforcement;
  4. preserve every existing required status check and administrator enforcement setting;
  5. open an owner-authored test pull request touching a critical path and prove that the second maintainer can review it while the author cannot self-satisfy the approval requirement;
  6. update liveStateVerifiedAt, the current protection evidence snapshot, and the current governance tracking issue with the verification URL and date; and
  7. revert access or protection immediately if the test exposes a bypass, deadlock, or privilege mismatch, then document the exact blocker publicly.

The target state is machine-checked by the governance policy test even while the live repository truthfully remains in solo-maintainer mode. This prevents the activation requirements from being invented or weakened only after a reviewer appears.

Bot and agent findings ​

Bot and agent findings are evidence, not automatic approval. Before merge:

  • resolve every actionable inline review thread;
  • fix valid findings and rerun the affected checks;
  • explicitly disposition false positives, accepted risks, and non-applicable suggestions with a technical rationale and evidence link;
  • inspect top-level comments from SonarQube Cloud, Codecov, DeepScan, Socket, Semgrep, CodeQL, Trivy, dependency review, and any coding agent even when the check conclusion is green; and
  • do not merge while a finding is unexplained, a review thread is unresolved, or a required check refers to an older head SHA.

The pull request must contain a compact disposition table when automated systems report findings. “Check passed” is not a substitute for reviewing the check's annotations or comment body.

Main protection ruleset baseline ​

The live main protection and merge settings must match this table and the machine-readable policy. The main-standard repository ruleset is the canonical enforcement mechanism for main. It targets ~DEFAULT_BRANCH and replaces the former classic branch-protection rule after an overlap-first migration proved the required checks and merge restrictions were equivalent.

The current live ruleset contains one explicit, PR-only bypass actor, the repository owner @oaslananka (User ID 285490571, bypass_mode=pull_request). An account-wide oaslananka-ops[bot] ruleset update at 2026-10-05 18:00 TRT added this exception and renamed the ruleset; the earlier 03:41 TRT snapshot documents the former no-bypass state. This is a factual description of an existing exception, not approval to use it. GitHub's pull_request bypass mode can bypass rules on a pull request, not by unrestricted direct pushes. Routine merges must satisfy all required checks, resolved review threads, and the allowed squash method. Any actual bypass requires the documented emergency exception, public rationale, accountable owner, and follow-up review; never present a green check or owner status as authorization to bypass. The current configuration and independently identified drift are tracked in #730.

SettingRequired state
Pull request requiredEnabled
Required approvals0 only while the documented solo-maintainer limitation exists
Code-owner reviewDisabled only while required approvals would deadlock the sole owner
Dismiss stale approvalsDisabled while approvals are zero; enable with independent review enforcement
Require approval after latest pushDisabled while approvals are zero; enable with independent review enforcement
Required checksquality (24), codeql, semgrep, Socket Security: Project Report, dependency-review
Strict/up-to-date status checksEnabled
Conversation resolutionEnabled
Apply protection to administratorsEnabled
Linear historyEnabled; repository merge settings permit squash merge only
Force pushes and branch deletionDisabled
Automatic branch deletion after mergeEnabled
Owner ruleset bypassExisting @oaslananka PR-only exception; emergency-only use, with documented audit evidence

A required-check name is a public interface. Renaming, replacing, adding, or removing one requires updating the workflow, repository ruleset, JSON policy, documentation, and repository-policy tests together. The setting change must be verified against the live GitHub API after merge.

Mergify merge controls ​

Mergify is optional queue automation only; it does not replace or itself bypass the required-check boundary of the GitHub main-standard ruleset. The repository-owned .mergify.yml keeps the merge queue in conservative in-place mode with one pull request per check (batch_size: 1, max_parallel_checks: 1), serial scheduling, and squash merges. It deliberately omits Merge Protections, separate merge_conditions, automatic merge conditions, queue retries, and deprecated autoqueue/allow_inplace_checks settings.

A maintainer may request the queue through Mergify's pull-request queue control or the @mergifyio queue command. Queueing never grants a ruleset bypass: GitHub's five required checks, strict up-to-date requirement, conversation resolution, and squash-only ruleset policy remain authoritative. Mergify is not a required status check and receives no ruleset bypass actor. The owner's separate PR-only exception is not a permission granted to Mergify.

Emergency exception ​

An Emergency exception exists only for an active security incident, data-loss or unsafe-mutation risk, broken stable installation, or repository/release-system outage that prevents the normal protected-PR path. Time pressure alone is not an emergency.

Use the normal pull-request path whenever it remains technically possible. If an administrator must temporarily change or bypass a governance control, the maintainer must create a public rationale before the change or as soon as disclosure is safe. The evidence must record:

  • incident and user impact;
  • exact control changed or bypassed and why no safer path worked;
  • author, approver or solo-maintainer limitation, and accountable owner;
  • all automated gates that ran and every gate that could not run;
  • known-good rollback target and restoration command or setting; and
  • a follow-up review owner and deadline within two business days.

Restore normal protection immediately after the emergency action. Every waived review or non-automated check requires a follow-up issue. Security-sensitive details may start in a private advisory, but the eventual public record must explain the exception without exposing exploitable secrets.

Release-specific emergency publication additionally follows RELEASE_POLICY.md.

Dependency management ​

Renovate is the configured sole automated dependency-update PR source for npm packages and GitHub Actions. Platform Dependabot alerts and security updates remain enabled for vulnerability detection. The hosted provider is an account-level prerequisite: the Mend Renovate App must have repository access and run the repository in Interactive mode. .github/renovate.json alone does not prove the provider is active; a Renovate-created Dependency Dashboard or Renovate-authored update activity is the operational evidence.

  • Patch/minor devDependency updates may auto-merge only after all required checks pass.
  • Lockfile maintenance may auto-merge only after all required checks pass.
  • Runtime dependencies, GitHub Actions, pre-commit hooks, and major-version updates require manual maintainer review.
  • Vulnerability remediation is not delayed by a release-age timer.
  • Lockfile maintenance runs on the documented schedule.
  • Dependency exceptions require a repository-tracked allowlist entry with owner, review date, and expiry.

The detailed rationale is recorded in docs/adr/0002-dependency-management.md.

GitHub Actions security model ​

  1. Actions are pinned to full 40-character commit SHAs.
  2. Workflows default to contents: read; elevated permissions are job-scoped and justified.
  3. Untrusted fork code does not receive repository secrets or privileged upload credentials.
  4. Release publication uses environment/channel guards and OIDC/provenance where supported.
  5. Workflow changes are critical-path changes and require the review evidence described above.

Token governance ​

Repository and environment secrets must be least-privilege, narrowly scoped, and rotated when ownership or exposure changes. Never hardcode or log a credential. Release credentials are available only to trusted repository events. Codecov coverage uses CODECOV_TOKEN only on trusted events and a tokenless public-repository upload on fork and Dependabot pull requests. SonarQube Cloud uses provider-owned GitHub App automatic analysis and requires no repository workflow secret. Its GitHub check is advisory rather than required; local Vitest thresholds/report validation are the blocking coverage authority, while Codecov is advisory telemetry. See QUALITY_GATES.md.

Credential incident handling is defined in Security Policy, while secret-scanning configuration and false-positive policy are tracked separately.

Issue closure and evidence ​

The public issue process is documented in ISSUE_TRIAGE.md. Roadmap issues close only when their acceptance criteria are implemented, the live settings are verified, required checks pass on the merge SHA, and a closing evidence comment links the relevant PR and settings evidence.

Continuity ​

Maintainer continuity is documented in MAINTAINER_CONTINUITY.md, and executable recovery procedures are in SOLO_MAINTAINER_RECOVERY.md. The current bus factor is one and is not hidden. The repository therefore relies on enforced automated gates, an offline encrypted recovery record, immutable release evidence, and a six-month non-destructive recovery exercise. A backup maintainer must have enough access and documented recovery context to triage issues, merge fixes, publish emergency releases, rotate credentials, and update security advisories before the project claims a stronger bus-factor posture.

OpenSSF evidence maintenance ​

OpenSSF evidence is tracked in OPENSSF_BEST_PRACTICES.md. Governance, review, release, security, or continuity changes must update the relevant public evidence and policy tests in the same pull request.

Release workflow separation ​

The Release Please PR workflow may maintain release pull requests but cannot publish packages or immutable releases. The Publish Release workflow owns pre-tag compatibility and quality gates, immutable release creation, attestations, npm, MCP Registry, and GHCR publication. Publication concurrency is serialized per release channel (stable and prerelease) and never cancels an active release, preventing races on moving channel state such as npm/GHCR latest or next.

Open source under AGPL-3.0-only. Review the safety contract before enabling writes.