From 53cf8acccbab7e25915799a99c1bdb65e34e1257 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 07:18:23 +0000 Subject: [PATCH 1/2] docs: add contributor guide, issue templates and security policy Adds CONTRIBUTING.md with setup and test commands checked on a clean clone, the maintainer response times, SECURITY.md, issue forms, and a PR template where the Brain update section is maintainer-owned for outside contributors. Links the guide from the README. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CpycUXAmswkJchiPMSi3ot --- .github/ISSUE_TEMPLATE/bug_report.yml | 34 +++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 ++ .github/ISSUE_TEMPLATE/proposal.yml | 35 ++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 12 +++-- CONTRIBUTING.md | 69 +++++++++++++++++++++++++++ README.md | 10 ++-- SECURITY.md | 7 +++ 7 files changed, 164 insertions(+), 8 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/proposal.yml create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..688b82c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,34 @@ +name: Bug report +description: Something doesn't work as documented. +labels: ["bug"] +body: + - type: markdown + attributes: + value: Thanks for the report. Please use synthetic data only, and never paste API keys, card numbers or customer data. Security problems go to hello@halvorai.com instead. + - type: textarea + id: what + attributes: + label: What happened + description: What you did, what you expected, and what happened instead. + validations: + required: true + - type: textarea + id: repro + attributes: + label: How to reproduce + description: The smallest code, command or event that shows the problem. + render: python + validations: + required: true + - type: input + id: version + attributes: + label: Version + description: The `halvorai-ingest` version, from `pip show halvorai-ingest`. + validations: + required: true + - type: textarea + id: env + attributes: + label: Environment + description: Operating system and runtime version, if relevant. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..0c1b6da --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,5 @@ +blank_issues_enabled: true +contact_links: + - name: Report a security vulnerability + url: https://github.com/halvorAI/ingest-python/blob/main/SECURITY.md + about: Please report vulnerabilities privately by email, not in a public issue. diff --git a/.github/ISSUE_TEMPLATE/proposal.yml b/.github/ISSUE_TEMPLATE/proposal.yml new file mode 100644 index 0000000..f860cdb --- /dev/null +++ b/.github/ISSUE_TEMPLATE/proposal.yml @@ -0,0 +1,35 @@ +name: Feature proposal +description: Suggest an adapter, an example or an API change. +labels: ["proposal"] +body: + - type: markdown + attributes: + value: For anything bigger than a small fix, agreeing on scope here first saves you work. Use synthetic data only. + - type: textarea + id: problem + attributes: + label: What problem does this solve + description: Who needs it, and what they can't do today. + validations: + required: true + - type: textarea + id: proposal + attributes: + label: Proposal + description: What would you add or change? Show the API you have in mind if it's a code change. + validations: + required: true + - type: textarea + id: alternatives + attributes: + label: Alternatives you considered + - type: dropdown + id: help + attributes: + label: Would you like to work on this? + options: + - Yes, I'd like to open the pull request + - I could help with review or testing + - No, just suggesting it + validations: + required: true diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index c30924d..b052f93 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,16 +1,18 @@ - + ## Summary - + ## Tests and verification - + ## Brain update - - What changed: @@ -20,5 +22,5 @@ Replace the prompts with accurate information. Do not claim deployment unless ve - Deployment status (merged code is not necessarily deployed): - Known limitations and follow-up: - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..977d65b --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,69 @@ +# Contributing to halvorai-ingest + +`halvorai-ingest` is the Python SDK for the open APE schema. It signs and sends events, works fully offline with your own `sink`, and has adapters for x402 (httpx) and Stripe webhooks. + +## What we welcome + +- **Bug fixes** with a test that fails before the fix. +- **Conformance and adapter tests**, especially for cases the TypeScript SDK covers and this one doesn't. +- **Runnable examples** that work offline, with no account or API key. +- **Documentation** in the README where something is unclear or wrong. + +## Out of scope for now + +- Anything that puts the SDK in the payment path. Adapters only observe: they must never change, delay or block a payment. +- Changes to the event format itself. Those start in [`ape-schema`](https://github.com/halvorAI/ape-schema). +- New runtime dependencies without an issue first. + +## Set up and run the checks + +Requirements: Python 3.10 or later and [uv](https://docs.astral.sh/uv/). No account or API key is needed. + +```bash +git clone https://github.com/halvorAI/ingest-python.git +cd ingest-python +uv sync --locked --extra dev +uv run mypy +uv run pytest -q +``` + +These are the commands CI runs on every pull request. CI also runs the tests on Python 3.10, the oldest version we support: `uv run --isolated --python 3.10 --extra dev pytest -q`. + +## Your first contribution + +Look for issues labeled [`good first issue`](https://github.com/halvorAI/ingest-python/labels/good%20first%20issue) or [`help wanted`](https://github.com/halvorAI/ingest-python/labels/help%20wanted). + +1. **Comment on the issue** to say you're taking it, so two people don't do the same work. For anything not covered by an issue, open one first and say what you plan to change. +2. **Fork the repository** and create a branch. +3. **Keep the pull request small**: one change, with its tests or examples. +4. **Run the checks above** before you push. +5. **Open the pull request** and fill in the template. Leave the "Brain update" section empty; a maintainer fills it in. + +## Tests, fixtures and docs + +- Use synthetic data only: no real API keys, card numbers, customer data or wallet keys. +- Fixtures live in `tests/fixtures/`. The files in `tests/fixtures/conformance/` are copies from [`ape-schema`](https://github.com/halvorAI/ape-schema/tree/main/conformance); change them there first. +- Add or update a test with every behavior change. `mypy` runs in strict mode. +- Update the README when you change public behavior, and add a line to `CHANGELOG.md`. + +## How we respond + +The maintainers are [@hedge-waleed](https://github.com/hedge-waleed) (reviewer) and [@hedge-usama](https://github.com/hedge-usama) (backup reviewer). In business days, we aim to: + +| What you open | First response | +| --- | --- | +| An issue | Acknowledged within 1 business day | +| An issue | Triaged within 2 business days: accepted, needs more information, needs design discussion, or out of scope | +| A pull request | A substantive first review within 3 business days | + +We won't promise a merge date before a review and a green CI run. If we miss these times, a polite ping on the issue or pull request is welcome. + +Questions are welcome as issues too. You don't need to email us or know anyone at HalvorAI to contribute. + +## Security + +Please don't report vulnerabilities in public issues. Email **hello@halvorai.com** with the details instead, and we'll reply privately. See [SECURITY.md](SECURITY.md). + +## License + +By contributing, you agree that your contribution is licensed under the Apache License 2.0, the same license as this repository. diff --git a/README.md b/README.md index 47621dc..8c0b698 100644 --- a/README.md +++ b/README.md @@ -140,14 +140,18 @@ MPP and MCP adapters are in the Node.js SDK, [`@halvorai/ingest`](https://github ## Develop ```bash -uv sync --extra dev -uv run pytest +uv sync --locked --extra dev uv run mypy +uv run pytest -q ``` +## Contributing + +Bug fixes, tests, offline examples and doc fixes are welcome. [CONTRIBUTING.md](CONTRIBUTING.md) has the setup, the checks CI runs and how quickly we respond. Starter tasks are labeled [`good first issue`](https://github.com/halvorAI/ingest-python/labels/good%20first%20issue). + ## Security -Report vulnerabilities privately to hello@halvorai.com. +Report vulnerabilities privately to hello@halvorai.com, not in public issues. See [SECURITY.md](SECURITY.md). ## License diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..e0af1a6 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security policy + +Please report a vulnerability privately to **hello@halvorai.com**, not in a public issue or pull request. + +Include what you found, how to reproduce it, and which version or commit you tested. We'll acknowledge your report within 2 business days and keep you updated while we work on a fix. Please give us a reasonable time to fix it before you disclose it publicly. + +Never include real API keys, card numbers or personal data in a report. Synthetic examples are enough. From e8d47c7a90333b32a91538217e65c10d50328868 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Nov 2026 07:31:42 +0000 Subject: [PATCH 2/2] docs: backup reviewer is hedge-urk Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01CpycUXAmswkJchiPMSi3ot --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 977d65b..7f5490d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -48,7 +48,7 @@ Look for issues labeled [`good first issue`](https://github.com/halvorAI/ingest- ## How we respond -The maintainers are [@hedge-waleed](https://github.com/hedge-waleed) (reviewer) and [@hedge-usama](https://github.com/hedge-usama) (backup reviewer). In business days, we aim to: +The maintainers are [@hedge-waleed](https://github.com/hedge-waleed) (reviewer) and [@hedge-urk](https://github.com/hedge-urk) (backup reviewer). In business days, we aim to: | What you open | First response | | --- | --- |