diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..40a1ad5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,52 @@ +name: Bug report +description: Something in Summit does not work as it should +labels: ["bug"] +body: + - type: markdown + attributes: + value: | + Thanks for reporting. Do not paste API keys, login files, or private test cases. If a script printed a secret, report it through the Security tab instead. + - type: textarea + id: what-happened + attributes: + label: What happened + description: What did you do, what did you expect, and what happened instead? + validations: + required: true + - type: textarea + id: steps + attributes: + label: Steps to reproduce + description: The prompt or script you ran, and the command line. + placeholder: | + 1. Ran prompts/... in ... + 2. Ran python3 scripts/... with ... + 3. ... + validations: + required: true + - type: dropdown + id: mode + attributes: + label: Billing mode + options: + - API + - ChatGPT subscription (codex exec) + - Not applicable + validations: + required: true + - type: input + id: env + attributes: + label: OS, Python version, and Codex version + description: Run `python3 --version` and `codex --version`. + placeholder: "macOS 26.5, Python 3.12, codex 0.x" + - type: input + id: agent + attributes: + label: Which coding agent were you using? + placeholder: "Codex, Claude Code, ..." + - type: textarea + id: extra + attributes: + label: Anything else + description: Logs (with secrets removed) or notes. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..2b7ee3e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: false +contact_links: + - name: Report a security problem + url: https://github.com/tszaks/summit/security/advisories/new + about: Please report security problems privately, not in a public issue. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..75d1100 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,25 @@ +name: Feature request +description: Suggest an improvement +labels: ["enhancement"] +body: + - type: markdown + attributes: + value: | + Summit aims to stay small: method files, prompts, plain Python scripts, and templates. Requests that keep it that way are the easiest to accept. + - type: textarea + id: problem + attributes: + label: What are you trying to do? + description: Describe the problem first. The solution can come after. + validations: + required: true + - type: textarea + id: idea + attributes: + label: What would you like Summit to do? + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: What do you do today instead? diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..c59e7ee --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,11 @@ +## What and why + + + +## Checklist + +- [ ] Every script compiles and runs with `--help` (see CONTRIBUTING.md) +- [ ] The change is small and focused +- [ ] Skills, prompts, `AGENTS.md`, and `judges.md` still agree with each other +- [ ] No Claude subscription path, no secret in output, dollar cap still enforced in code +- [ ] User-visible change: added a line under `[Unreleased]` in CHANGELOG.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f4816b1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + scripts: + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Compile every script + run: python -m py_compile scripts/*.py + + - name: Run every script with --help + run: | + for f in scripts/*.py; do + echo "== $f" + python "$f" --help > /dev/null + done diff --git a/AGENTS.md b/AGENTS.md index 713ea59..c2c63ff 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -57,7 +57,24 @@ The rule depends on the company that makes the judge model. It does not depend o - Do not deploy, merge, or write to production. Leave that to your user. - Do not put private cases or answer keys where the optimizer can read them. -## Layout +## Commands +There is no build and no test suite. CI compiles every script and runs each with `--help`: +```sh +for f in scripts/*.py; do python3 -m py_compile "$f" && python3 "$f" --help > /dev/null || echo "FAIL $f"; done +``` +Scripts use only the Python standard library. Do not add dependencies. + +## Code map - `skills/` method, billing-neutral. `judges.md` the two billing modes. - `scripts/` shared code. `templates/` contract, schema, controls, macOS sandbox policy. - `prompts/` the six copy-paste prompts. `SOURCES.md` references. +- `scripts/budget.py` dollar cap with reserve and settle. `scripts/classify.py` sorts attempts into pass, product failure, infrastructure failure, ungraded. +- `scripts/two_judges.py` template for two API judges. `scripts/grade_with_codex.py` one judge call through `codex exec`. `scripts/calibrate.py` calibration gate. +- `scripts/isolation_check.py` canary check for the grader. `scripts/allowlist_proxy.py` host allowlist proxy for the macOS sandbox. + +## Conventions when editing this repo +- Match the surrounding code and wording. Short, plain sentences. No em dashes. +- Keep skills, prompts, `AGENTS.md`, and `judges.md` consistent with each other. If a rule changes in one, change it in all. +- Add a line under `[Unreleased]` in `CHANGELOG.md` for user-visible changes. +- Do not weaken a hard rule above. Do not add a path that drives a Claude subscription. +- See `CONTRIBUTING.md` for the pull request checklist. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ac283cb --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,21 @@ +# Changelog + +All notable changes to Summit are listed here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Summit has no tagged releases yet, so entries are dated, not versioned. + +## [Unreleased] + +### Added +- House documentation: `CONTRIBUTING.md`, `SECURITY.md`, `CODE_OF_CONDUCT.md`, this changelog, issue and pull request templates, and a CI workflow that compiles every script and runs each with `--help`. + +### Changed +- `README.md` and `AGENTS.md` restructured. All existing content and rules are kept. + +## 2026-10-10 + +### Changed +- Claude judges run on an Anthropic API key only, never a Claude subscription. Stated in the README, `AGENTS.md`, and `judges.md`, and enforced in `scripts/two_judges.py` and `scripts/grade_with_codex.py` (#1). + +## 2026-10-07 + +### Added +- First commit. Three skills (`build-eval`, `hillclimb`, `red-team`), six prompts for API and ChatGPT-subscription billing, `judges.md`, seven scripts, templates, and `SOURCES.md`. MIT license. diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..84187a5 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,133 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall + community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or advances of + any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email address, + without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement by opening a +private security advisory on this repository, or by email at +tyler@szakacsmedia.com. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. + +For answers to common questions about this code of conduct, see the FAQ at +[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at +[https://www.contributor-covenant.org/translations][translations]. + +[homepage]: https://www.contributor-covenant.org +[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html +[Mozilla CoC]: https://github.com/mozilla/diversity +[FAQ]: https://www.contributor-covenant.org/faq +[translations]: https://www.contributor-covenant.org/translations diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..8d4d75e --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,62 @@ +# Contributing to Summit + +Thanks for helping. Summit is a small kit of method files, prompts, scripts, and templates. The bar for changes: does it keep the method honest, and does it keep the money and the keys safe? + +By taking part you agree to follow the [Code of Conduct](CODE_OF_CONDUCT.md). + +## Before you start + +- For bugs or unclear instructions, open an issue with the template. +- For new features or methods, open an issue first and describe the problem you want to solve. +- Small fixes (typos, clear bugs) can go straight to a pull request. +- Security problems go through [SECURITY.md](SECURITY.md), not a public issue. + +## Setup + +You need Python 3. There is nothing to install. + +```sh +git clone https://github.com/tszaks/summit.git +cd summit +``` + +## Check your change + +There is no test suite. CI compiles every script and runs each one with `--help`. Run the same checks locally: + +```sh +for f in scripts/*.py; do python3 -m py_compile "$f" && python3 "$f" --help > /dev/null || echo "FAIL $f"; done +``` + +Remove the `scripts/__pycache__` folder afterward if it appears. It is git-ignored. + +If you change `grade_with_codex.py`, `isolation_check.py`, or the macOS sandbox template, say in the pull request which Codex version and OS you tested on. Those depend on Codex flags that change between versions. + +## Code style + +- **Match the surrounding code.** Same naming, same comment density, same idiom as the file you are editing. +- Scripts use only the Python standard library. No new dependencies without discussion. +- Docs use short, plain sentences. American English. No em dashes, no emoji in headings. + +## Safety rules + +- **Claude judges run on an Anthropic API key only.** Never add a path that drives a Claude subscription (`claude -p`, Claude Code, the Claude app). See [judges.md](judges.md). +- The dollar cap lives in runner code (`scripts/budget.py`), not in a prompt. +- Never print, log, or commit a key or login file. Check a variable with `[ -n "$VAR" ]`, never by echoing it. +- Do not weaken a rule in `AGENTS.md` or a skill to make a change pass. If a rule is wrong, say why in the pull request. + +## Pull request checklist + +- [ ] Every script still compiles and runs with `--help`. +- [ ] The change is small and focused. Unrelated cleanups go in their own pull request. +- [ ] The code and docs match the surrounding style and add no dependency. +- [ ] Skills, prompts, `AGENTS.md`, and `judges.md` still agree with each other. +- [ ] A line added under `[Unreleased]` in [CHANGELOG.md](CHANGELOG.md) for anything a user would notice. + +## Using AI agents to contribute + +Fine, as long as you read and understand what you submit and the checklist above is true. [AGENTS.md](AGENTS.md) tells agents how this repository works. + +## License + +By contributing you agree that your contribution is licensed under the [MIT License](LICENSE). diff --git a/README.md b/README.md index ab4fdf1..6cb15c7 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,56 @@ -# Summit +
+ Climb until your AI stops being confidently wrong.
+ Agent skills to build an eval, hillclimb it, and red-team it.
+