Open Standard · Serverless · Harness-Agnostic

Contributor Open Source Protocol

An open, forge-native standard connecting open-source repositories with local AI coding agents. Contribute spare compute, never credentials — with zero central coordinator and zero AI negotiation.

Two-sided open contract

Repositories declare deterministic work rules once in CONTRIBUTING.md. Any compliant local harness can participate under its own quota governor.

REPOSITORY CONTRIBUTING.md YAML frontmatter (cosp: "0.1") GitHub / Linear Forge Optional Rule-of-3 Action COSP v0.1 1. Manifest (YAML + Markdown) 2. Claims (Draft PR + Tie-break) 3. Handoffs (Checks + Trailer) 4. Steering (Human-Approved) ANY LOCAL HARNESS Contributor Worker Kolossos (Reference Client) Claude Code · Codex · OpenCode Local Quota Floor & Worktree

The four primitives

Minimal, composable building blocks modeled after open developer protocols.

01 / MANIFEST

CONTRIBUTING.md Frontmatter

Deterministic YAML declares eligible labels, ownership mode, token/complexity bands, and test commands — while the Markdown body guides the agent.

02 / CLAIMS

Serverless Draft-PR Leases

External contributors open an initial Draft PR with a structured <!-- cosp ... --> trailer. Lowest PR number breaks ties; optional GitHub Action syncs labels and Rule-of-3 reputation.

03 / HANDOFFS

Verified Ready PRs

Workers run in isolated git worktrees, pause and resume cleanly when local quota floors trigger, pass every verification command, and preserve attribution trailers.

04 / STEERING

Human-Approved Reviews

Post-PR comments are filtered strictly to repo maintainers and always require explicit contributor approval before steering re-enters the agent session.

Quick Start

Adopt COSP on a repository in 2 minutes, or embed the Rust crates in any agent harness.

CONTRIBUTING.md
---
cosp: "0.1"

eligibility:
  required_labels: ["agent-ready"]
  excluded_labels: ["blocked", "wontfix", "needs-design"]
  require_maintainer_gate: true
  allowed_gate_roles: ["OWNER", "MEMBER", "COLLABORATOR"]

ownership:
  mode: "exclusive" # exclusive | competitive | capped
  claim_method: "draft_pr"
  lease_ttl_hours: 24

reputation:
  trusted_merged_prs_threshold: 3 # Rule of 3

estimates:
  label_map:
    "size:xs": { tokens_est: 30000,  capability: "coding-fast" }
    "size:s":  { tokens_est: 100000, capability: "coding-standard" }
    "size:m":  { tokens_est: 250000, capability: "coding-standard" }
  token_label_pattern: "^tokens:([0-9]+)k$"

verification:
  commands: ["cargo fmt --check", "cargo test"]
---

# Contributing
Keep pull requests focused on the linked issue and include regression tests.
Rust — cosp-core + cosp-github
use cosp_core::{BudgetAdvisor, RepoId, SteeringApprover, WorkForge};
use cosp_github::{GitHubConfig, GitHubForge};

// 1. Connect to a forge (GitHub in v0.1; Linear / Forgejo via WorkForge)
let forge = GitHubForge::new(GitHubConfig::from_env("ArtluxDM"));
let repo = RepoId::github("arkt-browser", "arkt");

// 2. Fetch CONTRIBUTING.md frontmatter + Markdown body deterministically
let doc = forge.fetch_document(&repo).await?;

// 3. List maintainer-gated eligible issues and match with your BudgetAdvisor
let issues = forge.list_eligible_items(&repo, &doc.manifest.eligibility).await?;
for issue in issues {
    let estimate = doc.manifest.resolve_estimate(&issue.labels);
    // Pass `estimate` to your local quota governor (e.g. kolossos-meter)
}

Security & trust model

Designed for consumer open-source contributors running local coding agents safely.

Explicit repo allowlist

Harnesses only poll repositories the contributor explicitly allowlists. No automatic crawling of untrusted public repos.

Maintainer-gated issues

Issues must be authored or eligibility-labeled by OWNER, MEMBER, or COLLABORATOR roles, blocking drive-by prompt injection.

Human-gated PR steering

Non-maintainer PR comments are ignored. Maintainer feedback always requires explicit user approval before resuming the agent.