Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The broken .gitignore pattern no longer excludes .env, allowing local B2 credentials to be accidentally staged and committed.
2 open issues
What changed in this PR
1 Important, 2 Nits, 0 Pre-existing. Checked the supplied changes and relevant implementation for #634; no tests or live-B2 checks were run.
This PR establishes contributor and coding-agent workflows for b2sdk without changing library code. Repository-setting changes remain proposals for maintainers.
Changes:
- Adds agent guidance, review standards, reusable skills, and intent/spec/plan templates.
- Documents release and security processes and adds contributor-facing templates and policies.
- Configures a Claude Ruff hook and editor settings.
| File | Description |
|---|---|
SECURITY.md |
Defines security reporting, support, and handling guidance. |
REVIEW.md |
Defines review passes, evidence, and resolution rules. |
RELEASE.md |
Documents release preparation and publishing. |
README.release.md |
Removes the superseded release instructions. |
intent/review-process/intent.md |
Proposes risk-based review and repository settings. |
intent/README.md |
Provides intent, specification, and plan templates. |
docs/review-lessons.md |
Collects recurring review lessons. |
CONTRIBUTING.md |
Adds agent workflow and local verification guidance. |
CODE_OF_CONDUCT.md |
Establishes community conduct and reporting policies. |
CLAUDE.md |
Points Claude to shared repository guidance. |
changelog.d/+ai-native-sdlc.infrastructure.md |
Records the tooling and policy additions. |
AGENTS.md |
Maps architecture, commands, and contributor conventions. |
.gitignore |
Changes local-file ignore patterns. |
.github/pull_request_template.md |
Prompts for testing, risk, and rollback details. |
.github/ISSUE_TEMPLATE/task.yml |
Adds a maintenance task form. |
.github/ISSUE_TEMPLATE/feature_request.yml |
Adds a feature request form. |
.github/ISSUE_TEMPLATE/config.yml |
Routes security and service reports. |
.github/ISSUE_TEMPLATE/bug_report.yml |
Collects versions, reproductions, and sanitized logs. |
.editorconfig |
Defines shared whitespace and encoding settings. |
.claude/skills/sdlc-subagents/SKILL.md |
Guides parallel sessions and scoped helpers. |
.claude/skills/sdlc-spec/SKILL.md |
Guides requirements and design drafting. |
.claude/skills/sdlc-pr-review/SKILL.md |
Guides structured reviews and comment resolution. |
.claude/skills/sdlc-policy-skill/SKILL.md |
Guides policy skills and automated enforcement. |
.claude/skills/sdlc-plan/SKILL.md |
Defines implementation planning and verification evidence. |
.claude/skills/sdlc-intent/SKILL.md |
Guides problem and constraint capture. |
.claude/skills/sdlc-feedback-loop/SKILL.md |
Defines test-first verification practices. |
.claude/skills/sdlc-claude-md/SKILL.md |
Guides repository-context maintenance. |
.claude/skills/ai-native-sdlc/SKILL.md |
Routes changes through workflow stages. |
.claude/settings.json |
Registers the post-edit Ruff hook. |
.claude/hooks/ruff.sh |
Checks edited Python files with Ruff. |
Review effort: Balanced
|
Copilot overview finding (broken |
There was a problem hiding this comment.
🟡 Changes recommended
Critical workflow flaws can let later commits pass without security analysis or suppress new vulnerability findings, while review metrics omit human replies and mishandle post-merge or pending reviews.
4 open issues
2 resolved since last review
Review effort: Balanced



Summary: adopt the AI-native SDLC playbook in b2-sdk-python, with agent and review guidance built from this repo's own review history and the standard repository policy files.
Motivation
Closes #634.
More PRs here are written with coding agents, and the rules reviewers apply live only in past threads. A review of the last 80 PRs (#514 to #633) found the same problems over and over. Changelog fragments were missing, and tests did not fail when the fix was reverted. Uploads were retried in the HTTP layer, apiver exports were missing, and
raw_simulator.pydrifted fromraw_api.py. PRs were also duplicated or split across several branches. 27 of 61 merged PRs had no review from anyone but the author.Changes
AGENTS.mdcovers the codebase map, local CI commands, conventions and 13 recurring review findings with their PR numbers.CLAUDE.mdpoints to it.docs/review-lessons.mdgroups the same lessons by theme.REVIEW.mdsets out the passes (Bugs, Wire, Security, Compatibility across apiver layers, Compliance) with Important / Nit / Pre-existing severities,file:lineevidence and convergence rules.intent/README.mdhas the intent/spec/plan templates..claude/: the playbook skills (ai-native-sdlcroutes between them) and aPostToolUsehook that runsruff format --checkandruff checkon every Python file Claude edits. It exits 2 with a fix message and skips if neitherruffnoruvxis available.-changeloglabel are now documented in CONTRIBUTING and AGENTS.RELEASE.mdreplaces the one-lineREADME.release.mdand is based onmake_release_commit,cd.ymland the 2.13.x release commits. Also added:SECURITY.md,CODE_OF_CONDUCT.md, issue forms (bug, feature, task) with a private security link, a PR template with Risk and How to revert sections,.editorconfig, and.gitignoreentries for.DS_Storeand.claude/settings.local.json. CONTRIBUTING gains Before you start, Coding agents and Local CI sections.intent/review-process/intent.md: a draft proposal for the maintainers covering risk tiers by path, re-approval after new commits, required conversation resolution, automated AI and security review, release commits through a PR, a green baseline (Credentialed encryption integration expects SSE-B2 but live account returns NONE #614, andnox -s lintrunningruff formatin write mode), reviewer evals built from past bugs, and metrics.No library code changes.
Testing
All run locally on Python 3.14 (macOS arm64):
nox -s lint: success. It reformatsnoxfile.pyin place, which is a pre-existing problem noted in the intent; that change was reverted and is not part of this PR.nox -s towncrier_check: success.nox -s unit-3.14: success. v3 893 passed, v2 900 passed, v1 975 passed, v0 816 passed.coveralso passed.nox -s build: success.nox -s docanddoc_cover: success, with graphviz and plantuml from a conda env.Integration tests were not run (no live-B2 credentials used).
Risk
None for library users; only docs, templates and Claude config change. The PR template and issue forms change what contributors see. The ruff hook only affects Claude Code sessions in this repo.
How to revert
Revert the commit.
Follow-ups needing repo settings
SECURITY.mdand the issue form's security link).master.master.intent/review-process/intent.mdand accept, reshape or close it.Checklist
+ai-native-sdlc.infrastructure.md).🤖 Generated with Claude Code