Skip to content

chore: add contributor/agent harness#286

Merged
fschlz merged 2 commits into
masterfrom
fschlz/contributor-harness
Jun 29, 2026
Merged

chore: add contributor/agent harness#286
fschlz merged 2 commits into
masterfrom
fschlz/contributor-harness

Conversation

@fschlz

@fschlz fschlz commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

What

Adds a contributor + AI-agent harness so new examples land in a consistent, documented shape.

  • .claude/settings.json — agent guardrails: deny destructive git (reset --hard, rebase, merge, branch -D), gh pr merge/close/review, and .env reads.
  • AGENTS.md / CONTRIBUTING.md — conventions for agents and humans: the comet_ml.login() + start() idiom, env-var credentials, optional offline mode, the house README structure, kebab-case naming, and how to wire an example into CI.
  • templates/integration-example/ — a minimal, runnable comet_ml example (uv + pyproject.toml) to start new examples from.
  • .claude/skills/scaffold-example/ — a skill + generator that stamps the template into the right directory and renames it.
  • readme.md — adds repository-structure and contributing sections; fixes stale tutorial links to the current integrations/model-training/... paths.
  • .gitignore — adds .ruff_cache/, .tmp/, *-workspace/.

Conventions

  • New examples are uv projects: dependencies in pyproject.toml, run with uv run. Existing requirements.txt examples are legacy and stay as they are.
  • Credentials from environment variables only; offline mode (COMET_MODE=offline) documented as the no-account path.
  • Example folders are kebab-case under integrations/<category>/<framework>/.
  • CI (test-examples.yml) still installs via pip install -r requirements.txt, so a new uv example that wants CI coverage also ships a requirements.txt (uv export).

Verification

  • Scaffolder round-trips: scaffold.py keras-amp-demo --description "..." → correct folder/file/project rename, description written to pyproject.toml, no leftover sentinels.
  • Template + scaffold parse; settings.json valid JSON; pyproject.toml valid TOML.
  • All referenced integrations/... paths exist; pre-commit (ruff-format) clean.

Adapt the opik-examples harness to this repo: agent guardrails, Comet-accurate
conventions, a starter template, and a scaffolder. Tailored to this repo's reality
(comet_ml, requirements.txt + Poetry, kebab-case folders, the CI matrix) rather than
copied verbatim.

- .claude/settings.json: deny destructive git, gh pr merge/close/review, .env reads
- AGENTS.md / CONTRIBUTING.md: Comet SDK idiom, env creds, optional offline mode,
  README house structure, CI-matrix instructions
- templates/integration-example: minimal runnable comet_ml example
- .claude/skills/scaffold-example: stamps the template, renames sentinels
- readme.md: repository structure + contributing sections; fix stale tutorial links
@fschlz fschlz self-assigned this Jun 29, 2026
New examples are uv projects with a pyproject.toml; existing requirements.txt
examples are legacy and stay as they are. Update the template, the scaffolder,
and the AGENTS/CONTRIBUTING conventions to match, and note that the pip-based CI
matrix still needs a requirements.txt for a uv example to be covered.
@fschlz fschlz merged commit f5b0ddd into master Jun 29, 2026
33 of 51 checks passed
@fschlz fschlz deleted the fschlz/contributor-harness branch June 29, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant