Define contributor governance, owner-only merges and Agent task fit

Open
#267 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
git, github, github-actions, python

Research direction

This is a maintainer-level governance issue, not a first task. The payload points to scripts/tasks.py for claim handling, AGENTS.md and docs/engineering.md for parallel-work rules, and the GitHub rulesets and CI checks listed in the body. Do not start implementation; the owner must confirm scope first. Any step here needs an independent second GitHub identity to verify, which the issue says is still open.

Written by the indexing model from the issue text.

Description

area:docs difficulty:d4 priority:p1 status:ready type:chore

Task difficulty and Agent fit

  • D4 · 12/15 for the remaining rollout. Scope 3, uncertainty 1, impact 3, verification 2, dependencies 3. Independent contributor fork/claim/CI/owner merge rehearsal and #24 license decision remain. #153 is the prepared newcomer candidate.
  • Recommended configuration for implementation or review. Codex / GPT-6.2 Astra / high, 52 and $2.37 per benchmark task. Floor 52 in the Artificial Analysis Coding Agent Index v2.1. Trellin snapshot checked 2026-11-22.
  • Required skills and verification. GitHub Rulesets, signed-off commits, independent identity and evidence readback. A real independent contributor and maintainer decision are required for the permission trial.
  • Scored baseline. fc47b7c on main. Confirm implementation scope with the maintainer before claiming. Independent verification is required.
Roadmap task

none. Contributor governance for the Trellin repository before onboarding additional developers and Agents.

Goal

Let a first-time contributor pick and finish a task from repository evidence, with a model and skills suited to the work. Reserve the authority to merge upstream PRs to the owner using the owner account directly. The owner can merge their own PR once the same required gates pass.

Rollout status
  • PR #314 merged as 10db34552508bf4974c580a97418d45c98dfa783 (1.0.115) after 12 required checks. The task tool validates readiness and new claim fit, recovers from partial writes, and records verified PR completion. Two live finish calls for #314 produced one receipt. The independent contributor rehearsal and license decision remain open.

  • GitHub's named-user Owner-only updates rule is active on main. Protect main still requires all 12 checks and has no bypass actors. Pilot PR #268 verified owner direct-update denial, pending and failing CI denial, and the green owner self-merge. The second-identity rehearsal remains open.

  • The first repository rollout PR #278 merged to main at 1e57abdf62e6ef5a261b90ab3854a5c069027170 after all 12 checks passed on 42e4362e0424938b0c0b801b3fea8d58a5822f66. It implements fork claim verification, difficulty labels, score routing, and scheduled new-catalog-ID registration. The first default-branch model catalog run passed.

  • The generic merge state can show BLOCKED with the PR-only actor rule even after green CI. Pilot PR #279 reproduced that state and verified a successful owner squash via the standard merge endpoint on the exact tested head. The active owner identity can bypass only the update restriction through a PR. GitHub reports never for bypass on Protect main. GitHub CLI behavior

  • #275 is prepared as an unassigned first contribution with the verified source baseline, scoped files, D2 rubric, fixture steps and evidence format. The real independent-account walkthrough and the license decision in #24 are open.

  • PR #281 merged at b1909cfbcb22f3f1ee72d13c2e6356ec22e4cda0 after all 12 checks passed on 3404831da2a6f02b202e9a7847beb6fe7251381d. The owner preflight checks the live claim, reviewed SHA, expected version and all required check sources from a clean upstream checkout. It rejected pending checks on real PRs #280 and #281, then passed the exact green heads. The two-candidate fixture verified that a stale second version is rejected and an updated base and patch pass.

  • GitHub's Protect main now requires current main as the base. Readback confirmed 12 required checks and zero bypass actors. The owner-only ruleset is unchanged. The owner uses the protected checkout preflight to verify claim metadata at merge time, so an issue handoff cannot rely on an old green Task Link result.

  • #275 is ready and unassigned. The clean-checkout dry run passed 29 browser baseline tests. The independent-account trial and maintainer license confirmation in #24 still need real participants.

Verified baseline
  • On main at 06c43e70d41663d8cbbc1376b5ce9f64e6d0651f, the public personal repository lists SAFuDarren as its sole collaborator and administrator. Active Protect main requires a PR and 12 GitHub Actions checks, including DCO and Task link. It blocks force pushes and deletion, has no bypass actors, and has no actor-specific update restriction. Auto-merge is disabled. Under that baseline policy, SAFuDarren authored and merged PR #266 after all 12 checks passed on fc04419fcfdf79e54df18bd774257ca0845a047c. The default Actions token is read-only and Actions cannot approve PRs. Audit effective App, bot, token and workflow permissions as part of rollout.
  • AGENTS.md and Parallel work assume a shared account. tasks.py interprets comment markers without author binding, writes an upstream label during claim, and checks a bare head branch name. An outside contributor needs a claim path that works without upstream write access.
  • The task form and board have urgency and workflow status. Difficulty, fit evidence, required skills, and a self-contained context packet are missing.
1. Merge authority and fork intake
  • Start with a fork-to-PR workflow. Contributors and Agents use their own identities and can implement, propose changes, and give review feedback. Keep upstream write and administrative access with the owner. Keep bot permissions limited to their documented function, with no merge or direct-push capability. Keep owner credentials out of contributor and Agent runtimes. GitHub treats requests made with a shared credential as the same identity.
  • The owner reviews external PRs and can squash-merge a green PR they authored. Recheck the reviewed head, current base, unresolved requests, version preflight and all mandatory checks immediately before merge. Keep CI, DCO and trusted check provenance for owner-authored PRs too. Keep auto-merge off and avoid a universal approval rule that would require the owner to approve their own PR.
  • Enforce merge authority through GitHub repository access and native branch rulesets. Keep fork-to-PR access for contributors with no upstream Write, Maintain or Admin grants. On a pilot branch, validate an independent Owner-only updates branch ruleset using Restrict updates, update_allows_fetch_and_merge: false, and a single bypass actor { actor_type: 'User', actor_id: 264734974, bypass_mode: 'pull_request' } for SAFuDarren. The GitHub REST API version 2026-03-10 documents that actor type. GitHub accepted and enforced the exact named-user rule on a disposable target in pilot PR #268. The owner could merge their own PR only after the separate required check went green, and direct updates were denied. Owner-only updates is now active on main. Keep contributors on forks and complete the independent contributor path before granting any additional upstream write access. The existing Protect main ruleset continues to require PRs and all 12 CI checks, with an empty bypass list. Verify rule readback and record how to disable the new rule independently if it blocks valid merges. Keep contributors on forks if native enforcement cannot be verified. Ruleset API · Rule layering · Personal repository permissions
  • Extend the existing claim tool and board. Let a fork contributor request a claim and let the owner or a narrowly scoped triage tool confirm it and manage labels. Bind the authoritative record to GitHub-authenticated requester, issue, source repository, branch and Agent/configuration. Retain one active claim, expiry review and explicit handoff with the last tested SHA and open work. Validate claim identity using protected policy code. Run fork code in unprivileged CI without repository secrets. GitHub fork workflow security
2. Difficulty and model fit

Score change scope, uncertainty, impact, verification effort and dependencies independently from 0 to 3. Mark the total and one difficulty:d1–difficulty:d4 label. Cross-layer persisted-state work and tasks requiring Mac acceptance or real Lean replay are at least D3. Merge authority, CI trust, protected migrations and irreversible research evidence changes are D4. This issue scores 13/15.

Difficulty Issue points Initial AA score floor First Codex configuration
D1 0–3 30 GPT-6.2 Sol low (37)
D2 4–7 45 GPT-6.2 Sol medium (45)
D3 8–11 50 GPT-6.2 Sol xhigh (50) or GPT-6.2 Astra high (52)
D4 12–15 52 GPT-6.2 Astra high (52), with independent verification

Use the Artificial Analysis Coding Agent Index v2.1 as an approximate starting point for routing. Use the exact model, runner, reasoning effort and fallback from the source. The registry records a date, source, score and benchmark cost. Use the lowest-cost suitable configuration with the skills and test environment for the issue. The PR must include task-specific evidence. D3/D4 require owner confirmation, and D4 requires independent verification. A new or unlisted configuration can be considered individually if the owner records equivalent evidence. Measurements for one configuration do not transfer to another. AA model rows

Track official releases for OpenAI, Anthropic and Google. Open a pending model-score task when a new configuration arrives, cite the official release, and update the score registry through an owner-merged PR when the matching AA row is available. Keep a manual intake path for announcements absent from the catalogs, fallback changes, new snapshots and score revisions. Remove retired configurations from recommendations and recheck assignments when evidence changes. Automated AA ingestion requires the authorized Coding Agents API. No per-model paid Trellin eval suite is a prerequisite for the first rollout.

3. Context and skills contributors can actually access

Update CONTRIBUTING.md, AGENTS.md, the bilingual engineering guide, the issue/PR templates and the claim/board path. Give each ready issue a context packet with goal and exclusions, baseline SHA, dependency links and decision references, exact files or entry points, synthetic fixture or reproduction steps, required environment, acceptance checks and expected evidence, plus stop/escalation conditions. The issue and repository must be enough for a clean session.

Provide portable setup and verification instructions with these recommended skill profiles:

  • Web UI — React/TypeScript, keyboard and responsive interaction, Playwright, light/dark screenshots where relevant. Link an optional frontend-design skill and the equivalent repository guidance. Reuse #230 for acceptance evidence.
  • Backend and storage — Python/pytest, PostgreSQL on a disposable workspace, Alembic and contract compatibility when applicable. Link the maintained test lanes and relevant interface decisions.
  • Lean and proof — Lean/Lake and the pinned project/toolchain, proof/evidence boundaries and replay through the actual verifier. Use a model for implementation and a verifier for acceptance.
  • Mac and release — Swift/WKWebView and an available Mac, packaging and installed-app evidence where required. Use a disposable project and database for acceptance.
  • Repository governance — GitHub fork/PR permissions, Rulesets, DCO, Actions trust boundaries and reproducible CI. Include the policy test matrix and evidence requirements.

For each profile, name the exact commands or portable skill path, how to check that the capability is available, and the fallback when a tool is missing. Use repository-accessible evidence and fixtures. Keep private chats, home-directory skills, real project data and credentials outside required context.

Acceptance criteria
  • Use separate owner and contributor identities on a disposable pilot. A contributor opens a fork PR and runs the required checks. An otherwise green contributor cannot merge upstream or directly update the target. The owner can merge a green contributor PR and their own green PR. Pending/failed required checks and direct/force pushes remain blocked under the ordinary owner path. Verify the relevant denials in the GitHub UI and via API or CLI, then read back production permissions. Coordinate the first outside merge with #24.

  • A fork contributor can request, hand off and close out a claim through the documented workflow. Regressions cover two people claiming at once, identical branch names in different forks, untrusted claim/release messages, stale claims, and trusted PR validation.

  • The issue template and board expose task difficulty and point contributors to the dated model and skills guidance. Verify score routing for D1–D4, a configuration at the floor, and a model or tool that is ineligible for the task. Keep permission and review requirements independent of model score.

  • Enforce issue-local Agent fit when the maintainer marks work Ready or confirms a new implementation claim. Verify one difficulty label, the five dimensions and scope, model plus exact effort or a human acceptance path, benchmark source/date, and required skills, tools and verification. Check the submitted configuration against the registry and require the existing owner confirmation for D3/D4. Add a read-only audit for missing or conflicting records. Test missing fit, below-floor fit, explicit owner exceptions, and handoff from an earlier claim. Bug reports can enter triage before scoring. Existing claims and GitHub merge rules retain their current authority.

  • A new contributor with no prior project chats completes one small issue from the public documentation, including environment setup, scoped branch, DCO, verification and a reviewable PR. The PR records exact tested SHA, evidence per criterion, scope and known limits. It stays draft/blocked if required evidence is missing.

  • Define one active task per worker and a task-specific time/token or attempt budget. Reproduce and retry an identified failure within that budget. Hand off with evidence when scope, model fit or an approval changes. For the pilot, record review effort, CI retries and rework to calibrate routing without adding telemetry.

  • Replay a supported-provider catalog update and show one pending score request per new ID. Show the manual route for launches or score changes absent from the catalogs, the proposed registry change, and how to remove a retired configuration without losing the history.

Decisions and contracts

Repository development governance. Keep research Agent behavior and workspace data contracts separate. Follow E6 for documentation and E9 for sign-off. Protected workflow and GitHub settings changes go through an explicit maintainer rollout and documented rollback. Reuse #230 for web evidence, #228 for API verification and #24 for outside-contributor onboarding.

Dominant language
Python
Stars
2
Forks
0
Avg merge
56m
Merged PRs (30d)
190

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAFuDarren/Trellin

All issues in SAFuDarren/Trellin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.