Skip to content

Latest commit

 

History

History
458 lines (379 loc) · 28.6 KB

GOVERNANCE.md

File metadata and controls

458 lines (379 loc) · 28.6 KB

LoopX Project Governance

This document defines the public project roles and decision process for LoopX. It governs the repository and its releases. It is separate from LoopX runtime concepts such as agent peers, todo claims, quota, gates, and write scopes.

Current Maintainer

Person Role Since Public evidence
@huangruiteng Creator and lead maintainer 2026-05-31 Initial public commit

The lead maintainer is currently the final decision maker for releases, maintainer appointments, security-sensitive handling, and changes to this governance model. That tie-break role should be revisited when the active maintainer group grows.

Path-scoped subsystem appointments and preferred review assignments are recorded below. A subsystem appointment does not by itself grant repository-wide maintainer authority.

Maintainer And Review Roster

This is the public list of everyone who can satisfy a review requirement on main, and the paths they answer for. It records appointments through 2026-10-19; the matching routes live in CODEOWNERS and a change to either file changes both in one pull request.

Account Role Scope CODEOWNERS route Since
@huangruiteng Lead maintainer Whole repository; governance, CI, releases, security handling, cross-subsystem decisions Every path, including .github/, scripts/ci/, release policy and technical directions 2026-05-31
@steven-kid Subsystem maintainer Lark integration Lark extension, its CLI delegates, Lark docs and focused tests 2026-08-16 (#3236)
@maxliux5 Code owner Frontend source under apps/presentation/dashboard/ and chat bundle delivery Dashboard source, loopx/presentation/chat_bundle.py, scripts/chat_bundle* 2026-09-08 (#4071)
@loopx-agent Automated technical code owner Whole repository; evidence-backed technical review, including governance, CI and release changes Every route, including the * fallback and later subsystem overrides 2026-10-04
@songoow Technical code owner Whole repository; technical review across subsystems, including governance, CI and release-policy changes Every route, including the * fallback and later subsystem overrides 2026-10-19

@loopx-agent and @songoow share code ownership on every path with the existing owners. This includes paths introduced later through the * fallback; every narrower route retains both accounts so GitHub's last-match rule cannot erase either one. Subsystem maintainers and the lead maintainer retain their responsibilities. Code ownership qualifies a technical approval for the protected-branch review requirement; it does not grant release, appointment, security-handling or admin-bypass merge authority. First-review contacts in the table below still do not satisfy code-owner review.

The automated account accepts this repository-wide technical review scope through the pull request adding this appointment. Its recent cross-author, exact-head reviews include #5533, #5538, #5540 and #5541. These records name the reviewed head, contract, validation and remaining gaps. They count as one account's reviews; multiple agent sessions do not create independent GitHub reviewers. Author-owned pull requests still need another eligible reviewer because GitHub does not accept self-approval.

The lead maintainer explicitly expands @songoow's existing reliability review responsibility to repository-wide technical code ownership. The earlier accepted diagnostics scope is historical evidence of that responsibility, not acceptance of a broader availability commitment. Current repository access is Maintain (including Write). Recent substantive cross-author reviews include complete-snapshot transport in #6828, workspace navigation in #6834, and desktop update lifecycle in #6835. Each names its reviewed head, invariants and independently performed validation; the two change requests also preserve concrete unresolved findings. These records support broader technical routing without treating review volume or approval as proof of maintainer authority. Best-effort availability and all separate release, appointment, security-handling and bypass boundaries remain.

An APPROVED review and GitHub's aggregate review decision are separate facts. Required code-owner approval uses CODEOWNERS on the pull request's base branch. An account's repository admin permission alone does not satisfy that requirement when the account is absent from the matching route. After an appointment reaches main, read back the target pull request's review decision; do not report it as approved solely from the submitted review. See GitHub's code-owner rules.

Code Owner Eligibility

The @songoow scope expansion above is an explicit lead-maintainer appointment; the general eligibility process below otherwise remains unchanged.

GitHub only honours code owners with repository write access, and a code-owner approval satisfies the code-owner review requirement on its paths. A route is therefore added only when all of the following hold, and the pull request adding it links the evidence:

  1. the account has repository write access;
  2. the account has publicly accepted a cohesive path scope, in issue #4069 or on the pull request that adds the route;
  3. the account has completed at least three substantive cross-author reviews touching that scope in the preceding eight weeks, each naming the exact head, the governing invariant and the validation performed; and
  4. the scope is a coherent set of paths, not every file the account has touched.

Authored-PR counts inform the choice of scope but never satisfy (3) on their own. A code owner who gives no review in scope for eight weeks is asked whether to keep, narrow or pause the route; the outcome is recorded here through a pull request rather than inferred from activity. Contributors who meet (2) and (3) without write access are recorded as first-review contacts and may be proposed for write access.

Review Service Levels

These are the review targets the maintainers commit to for pull requests from contributors. They were set just below the response times actually observed over the 90 days before 2026-09-26, so that they hold with the current number of reviewers rather than describing a best week.

Business days are Monday to Friday in UTC+8, excluding public holidays there. The clock starts when a pull request is opened or leaves draft, so a pull request that sat as a draft before it was ready is measured from the moment it left draft.

A "response" means a review, comment or merge by an account on the roster above — the accounts that can satisfy a review requirement. Comments from anyone else are real conversation, but they do not satisfy this target, and neither do GitHub Bot actors. @loopx-agent is an automated account represented by GitHub as a User; its qualifying responses count in the current roster, without treating its sessions as separate reviewers. These facts come from GitHub's typed actor data rather than from login names.

Event Target Observed 2026-06-28 → 2026-09-26
First maintainer response: review, routing comment, or close with a reason Within 2 business days 90% within 2 business days; median about 1.5 hours, p90 about 13 hours (728 contributor pull requests)
Re-review after the author pushes and re-requests review Within 2 business days Not separately measured yet
Decision (approve, request changes, or close with rationale) once required checks pass and no review thread is open Within 5 business days Merge measured from the review clock: median about 6 hours, p90 about 2 business days
Security report acknowledgement Within 5 business days, per SECURITY.md Unchanged
  • A code owner or first-review contact who cannot respond within the first-response target hands the pull request to the lead maintainer, who is the fallback reviewer for every path.
  • A pull request missing DCO sign-off or failing required checks still gets a first response pointing at the fix; the decision clock starts once checks pass.
  • A pull request whose requested changes see no author activity for 14 days may be closed with a note. Reopening it, or opening a fresh one, is always welcome.
  • These are targets, not a guarantee. They cover pull-request review only; support requests remain best effort, as described in SUPPORT.md.

python3 scripts/review_sla_report.py --since YYYY-MM-DD reproduces the observed column and the cross-author review counts used for code-owner eligibility. Its --responder option defaults to this page's roster. The report reads one page of review and comment history per pull request and prints how many records exceeded that page, so a truncated period is disclosed instead of being read as "no response". Those cross-author counts are raw public activity; they inform a scope but never qualify an account on their own. Revisit the targets and the roster together, at least every eight weeks.

Repository Developers With Write Access

The following access snapshot was audited on 2026-10-10. Write access supports day-to-day pull-request and branch work within the repository rules. It does not appoint a maintainer or authorize release, security, or governance decisions under project policy. GitHub's standard Write role includes some release operations; project policy and platform permissions are distinct. Formal release tags are protected separately as described below.

Organization membership grants no default repository permission. The loopx-developers team grants Write only on loopx-project/loopx; membership does not confer access to other organization repositories. Existing direct Write grants remain active. Organization invitations below include this team and take effect when accepted.

GitHub account Repository role Access status
@wujc12 Write Active
@ZaynJarvis Write Active
@Hoey041 Write Active
@maxliux5 Write Active
@JackyCSer Write Active
@steven-kid Write Active
@liubf21 Write Active
@wchwawa Write Active
@now-ing Write Active
@cocolord Write Active
@liuyizhe Write Active
@Wanli-Lee Write Active
@Duang777 Write Active
@songoow Write Active
@hhyykk Write Organization + team invitation pending
@LIHUA919 Write Organization + team invitation pending
@NIU-123370 Write Organization + team invitation pending
@xyx2002OvO Write Organization + team invitation pending
@jackie-cqz Write Organization + team invitation pending
@Jim-jimu Write Organization + team invitation pending
@BigDataDZ Write Organization + team invitation pending
@mikamikasuki Write External collaborator invitation pending; initial review around 2026-11-07

@maxliux5 also has an organization Member invitation pending; existing Write and frontend code ownership continue. The initial collaboration review for @mikamikasuki is a manual review date, not an automatic expiration or restricted version of Write. Consider review responses, regression follow-up, scope and availability before proposing organization membership.

GitHub's repository settings are the operational source of truth for access. This public snapshot should be updated through a pull request when a write-role invitation is accepted, expires, or is revoked. Maintainer appointments remain subject to the process below.

The 2026-10-10 scope update asks @yuefengw and @xiaods to confirm continued interest before Member + Write invitations, and @karenchuu, @kokokoXUY, @YZJF and @zyaiire to confirm community Member interest without automatic Write. @AronSwan and @JunZ-Leo are invited to accept issue reproduction, duplicate detection and label responsibilities before Triage is granted. These are proposals, not active grants. Existing Write is retained while contributors confirm their preferred responsibilities; activity alone does not revoke access.

Subsystem Maintainers

A subsystem maintainer is accountable for review quality and contract coherence inside a named surface. The appointment does not grant authority over unrelated subsystems, releases, security handling, repository settings, or admin-bypass merges.

Lark Integration

Role Account Scope
Subsystem maintainer @steven-kid Bundled Lark extension, its direct CLI delegates, Lark capability and integration documentation, and focused Lark validation
Lead maintainer and fallback reviewer @huangruiteng Repository governance, cross-subsystem decisions, and review of changes authored by the subsystem maintainer

The Lark integration maintainer is expected to:

  • provide the first substantive response and design review for Lark pull requests;
  • keep extension implementation, direct CLI delegates, public documentation, and focused validation consistent;
  • protect authority, readback, owner-private receipt, retry, idempotency, and cross-platform boundaries;
  • submit approval or change-request reviews on pull requests authored by other contributors; and
  • escalate changes that alter shared extension lifecycle, status, quota, todo, release, security, or repository-governance contracts.

The appointment does not authorize the subsystem maintainer to approve their own pull requests. A non-author reviewer must still approve those changes under the repository rules. Merge, release, security, repository-settings, and admin-bypass authority remain governed by this document and the lead maintainer.

The matching paths are recorded in CODEOWNERS. The main ruleset requires code-owner approval for owned paths. When a pattern lists multiple owners, GitHub accepts approval from any one of them, not all of them. Cross-subsystem decisions still require the lead maintainer's judgment.

Shared Host Integration Seams

@steven-kid is a preferred reviewer, not the sole code owner, for the shared host integration seams currently centered on:

  • loopx/host_loop_activation.py;
  • loopx/host_mode_planner.py;
  • loopx/cli_commands/host_mode_plan.py; and
  • docs/integrations/runtime-connector-catalog.md.

Host integration spans Codex, Claude Code, OpenCode, DeepSeek Harness, and other runtime providers. Provider-specific implementation remains with the relevant contributors and repository maintainers, while shared status, quota, todo, scheduler, and Turn contracts remain outside the Lark appointment. These host paths are therefore not assigned to @steven-kid in CODEOWNERS at this stage.

Changing A Subsystem Appointment

Adding, expanding, narrowing, or retiring a subsystem appointment requires a public pull request that updates this document and any matching CODEOWNERS routes. Contribution count alone is not sufficient evidence. The decision should consider sustained technical judgment, cross-author review quality, boundary discipline, responsiveness, and whether the proposed path scope is cohesive.

First-Review Responsibilities

Scope invitations and contributor confirmations are tracked in issue #4069.

These assignments route the first technical response; they do not appoint a repository-wide maintainer or transfer release, security, or bypass authority. The lead maintainer remains the fallback. Contributor availability is voluntary: anyone may decline, narrow, pause, or hand back a scope without losing attribution for their work. Silence is not acceptance or approval.

Status reflects the public record in #4069 as of 2026-10-10. The last column says what still separates each contact from a CODEOWNERS route under the eligibility rule.

Surface Contact Responsibility / status Path to a code-owner route
Chat/runtime session lifecycle @Duang777 Accepted 2026-09-08: managed-session resume/submit/close, request idempotency, focused regressions and follow-up fixes. Shared goal, quota, lease and permission contracts remain outside this assignment. Has write access and an accepted scope; needs three qualifying in-scope cross-author reviews.
Shared goal authority qualification @wchwawa Accepted 2026-09-08: implementation review, writer/cursor recovery evidence and bounded qualification. Canonical-authority promotion, provider activation and shared-state policy require separate lead-maintainer review. Has write access and an accepted scope; needs three in-scope cross-author reviews.
Usage and host usage ingestion @liubf21 Invited to coordinate usage correctness and historical-data compatibility review; no acceptance recorded. Pricing policy and unrelated host/session authority remain outside this scope. Has write access; needs scope acceptance and in-scope reviews.
Post-writeback hooks and reporting @now-ing Write access active; invited to select post-writeback hooks or periodic reporting as one cohesive initial scope and record conclusions as exact-head GitHub reviews. Substantive cross-author review comments exist on claim, lease and settlement changes. Needs accepted scope and three qualifying in-scope cross-author reviews.
Quota admission and action projection @cocolord Proposed first-review scope 2026-10-10; acceptance pending. Shared goal authority, provider activation and release policy remain separately reviewed. Has write and substantive review history; needs accepted cohesive scope and mapping of three qualifying in-scope reviews.
TypeScript transaction migration @hhyykk Proposed paired review of complete transaction cutovers and Python/TypeScript parity; scope confirmation and organization + Write invitation acceptance pending. Needs scope and access acceptance, and three qualifying in-scope reviews.
Task leases and scheduler boundaries @yuefengw Proposed paired review of lease lifecycle and boundary regressions; scope confirmation pending. Needs scope acceptance, write access and in-scope reviews.
DSH integration @wujc12 Designated by the lead maintainer 2026-09-07 as first-review contact for the DSH plugin, installation and host-integration regressions; no acceptance recorded. Shared replan and lifecycle contracts stay separately reviewed. Has write access; needs scope acceptance and in-scope reviews.

Start by linking a real cross-author PR, not by creating a quota of new implementation work. A review should state the exact head, the governing invariant, validation actually performed, and any unresolved boundary. Let the author address findings before a maintainer takes over; record a necessary takeover and preserve repair attribution.

Review the arrangement after roughly four weeks of participation or three to five completed cross-author review cycles. Existing substantive reviews count; there is no requirement to manufacture findings. Consider independent closure, regression follow-up, scope control and sustainable availability, not PR count. Accepted broader appointments and CODEOWNERS additions require a separate PR. Review comments from contributors without Write are valuable technical input, but do not replace the approval required from an eligible GitHub reviewer.

Main Branch Merge Gates

The live main ruleset is the operational authority. It requires a pull request, one approving review, code-owner approval where applicable, dismissal of stale approvals, approval of the last push by another reviewer, resolved review threads, and required status checks against an up-to-date base.

The required-check contract is Sign-off plus merge-gate, both bound to the GitHub Actions app. merge-gate in python-tests.yml aggregates core qualification. During initial rollout, activate that second check only after the workflow is merged and both a code change and a documentation-only change have produced the intended results. It must fail for missing, failed, cancelled or unexpectedly skipped core jobs; only an explicitly classified documentation-only change may skip those jobs. See the live ruleset for the currently activated checks, rather than inferring activation from this file.

@huangruiteng retains the existing always bypass entry, and the maintainer-authorized automation account @loopx-agent retains its existing pull_request bypass entry. This access rollout does not change those entries. Write invitations do not grant bypass. A bypass is an exception, not a validation substitute: record the exact head, reason, completed checks, known failures and recovery plan in the PR. Existing restrictions on which changes may be self-merged still apply.

The release-tag ruleset protects v* and dsh-loopx-plugin-v* creation, update and deletion. Both @huangruiteng and @loopx-agent are authorized bypass actors for these tags. The existing automation account retains organization Owner and repository Admin permissions for maintainer-authorized operations. These are explicit delegations, not permissions derived from code ownership or contributor Write. Existing release validation and publication workflows continue without an additional human approval gate; the pypi environment retains its v* tag policy and has no required reviewers. No publication workflow or trusted publisher identity is changed by this access rollout.

CODEOWNERS routes review, not directory-level write permissions. Unassigned paths fall back to the repository-wide technical owners; workflow, governance and release-policy paths retain the lead maintainer alongside those owners. Do not share owner credentials with contributors or give automated reviewers broader credentials than necessary.

Project Roles

Maintainers

Maintainers may review and merge pull requests, publish releases, triage security reports, and make repository governance decisions. They are expected to protect compatibility, the public/private boundary, contributor trust, and the quality of LoopX's control-plane contracts.

Maintainer authority is explicit: it comes from this document and repository permissions, not from commit count, a runtime todo claim, or an agent role.

Contributors

Anyone who improves code, tests, documentation, design, issues, or reviews is a contributor. Accepted commits and co-authored commits are credited through the public Git history and GitHub contributor views. Contribution does not by itself grant merge, release, or governance authority.

Agents And Automation

Agents and automation may prepare changes, run validation, or appear in commit provenance. They do not become human maintainers and cannot grant themselves repository authority. A human maintainer remains accountable for merges, releases, and boundary decisions.

How Decisions Are Made

  • Routine changes use pull-request review, focused validation, and maintainer judgment. Silence is not approval when a change requires an explicit gate.
  • Changes to persisted state, public contracts, defaults, permissions, evidence policy, or compatibility should explain the behavioral impact and include proportionate regression coverage.
  • Significant product or governance changes should be discussed in a public issue or pull request before they are finalized.
  • Security reports, credentials, private evidence, and other sensitive matters must not be posted in a public issue. Ask a maintainer for a private contact path without including the sensitive details.
  • Releases are cut by a maintainer after the documented release checks pass. Exceptions and known skips should be recorded in the release or pull request.
  • When consensus is not reached, the lead maintainer records the decision and rationale in the relevant issue or pull request.

Technical Direction Governance

The versioned Current Technical Directions page is the canonical map of active strategic programs, maturity, contribution routes, and promotion gates. The pinned GitHub Discussion is its community-facing projection; an issue, Discussion, RFC, or integration branch does not override merged runtime and stable reference contracts.

Each strategic direction has one long-lived tracking issue. Trackers record outcomes, boundaries, implementation leads, material decisions, and links to bounded work. They are not themselves blanket implementation authorization. A claimable change should have a separate issue or public task-board row with an explicit smallest slice, base branch, non-goals, and validation plan.

A material change to a direction's stage, scope, implementation lead, integration branch, or promotion gate requires a pull request updating the canonical map. The RFC index and contributor task board should change in the same pull request when their routing changes. Maintainers update the pinned Discussion after merge and should not maintain an independent roadmap body there.

The direction/* labels route discovery and review. They do not grant authority, promise delivery, or imply that a Draft or Research item is ready for implementation. Recognition as an implementation lead records current public work; it is separate from repository write access, subsystem maintainer appointment, and repository-wide maintainer authority.

Becoming A Maintainer

Maintainers are selected from contributors who have shown sustained technical judgment, reliable review, respect for project boundaries, and care for other contributors. An active maintainer nominates the candidate; the active maintainers approve the appointment; and the change is recorded here through a pull request.

A maintainer may step down at any time. Inactive or emeritus status, when needed, should likewise be recorded in this file rather than inferred from recent commit activity.

Accountability And Scope

Important decisions should leave durable public rationale in an issue, pull request, release, or stable project document. Private incident details and raw agent trajectories do not belong in that public record.

This charter does not create a legal entity, employment relationship, copyright assignment, or trademark registration. See Authors and Contributors for attribution, Name and Marks for name and mark usage, and CONTRIBUTING.md for the contribution workflow.