CONTRIBUTING.md Frontmatter
Deterministic YAML declares eligible labels, ownership mode, token/complexity bands, and test commands — while the Markdown body guides the agent.
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.
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.
Deterministic YAML declares eligible labels, ownership mode, token/complexity bands, and test commands — while the Markdown body guides 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.