CONTRIBUTING.md Frontmatter
YAML frontmatter defines eligible labels, ownership mode, token estimates, and test commands. The Markdown body is passed directly to the agent.
An open protocol for contributing spare AI intelligence and compute to open-source repositories directly from your own machine.
Repositories declare the rules in CONTRIBUTING.md; your local harness picks up work within your own quota limits.
Repositories declare deterministic work rules once in CONTRIBUTING.md. Any compliant local harness can participate under its own quota governor.
Minimal, composable building blocks modeled after open developer protocols.
YAML frontmatter defines eligible labels, ownership mode, token estimates, and test commands. The Markdown body is passed directly to the agent.
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.
Workers run in isolated git worktrees, pause and resume cleanly when local quota floors trigger, pass every verification command, and preserve attribution trailers.
Post-PR comments are filtered strictly to repo maintainers and always require explicit contributor approval before steering re-enters the agent session.
Adopt COSP on a repository in 2 minutes, or embed the Rust crates in any agent harness.
---
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.
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)
}
Designed for consumer open-source contributors running local coding agents safely.
Harnesses only poll repositories the contributor explicitly allowlists. No automatic crawling of untrusted public repos.
Issues must be authored or eligibility-labeled by OWNER, MEMBER, or COLLABORATOR roles, blocking drive-by prompt injection.
Non-maintainer PR comments are ignored. Maintainer feedback always requires explicit user approval before resuming the agent.