review-change
Review a change in this repository against its invariants, specifications, tests, and documentation contract.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- review-change
- description
- Review a change in this repository against its invariants, specifications, tests, and documentation contract.
03 SKILL.md 正文
Review a change
- Read
AGENTS.md,crates/alliumpy/python/alliumpy/_alliumpy.pyiand upstream's behaviour at the pin for the value in question. Review the whole diff. - Check the nine invariants in
AGENTS.mdone at a time:- Upstream decides behaviour: command stdout and exit-code parity over the corpus; Python results converted, never reinterpreted.
alliumpydepends onalliumpy-core, which depends onallium-parser; never the reverse, with pyo3 only incrates/alliumpy.- Public core types are
Send + Sync + 'static,CloneandDebug; public enums and structs are#[non_exhaustive]; errors have stableDisplaytext. #![forbid(unsafe_code)]in every crate, through the core's inherited workspace table and the bindings crate's own table.- Clippy pedantic with the lint tables;
#[expect(lint, reason = "...")]only, with the documented pyo3 macro-output exception confined to the bindings table. - Coverage stays at or above 90% over
crates/alliumpy-core/src/**; pytest, stubtest and wheel smoke exercise the bindings throughjust check. Cargo.lockis the pin; fullx.y.zcaret ranges except the exact parser pin; cargo gates use--lockedand maturin haslocked = true. Snapshot recipes check locks first and run offline; cargo shear cannot accept the flag (T05's known gap).- No dependency is added without the decision-0004 note.
- One version: stripping
.postNfrom the wheel version gives both crate versions, the parser pin and the command version.just version-checkrejects a bare pin bump.
- Check the change against upstream at the pin: a reinterpreted diagnostic, reordered
field or different exit code is a finding unless a decision record authorises it.
Check command changes with
just parity. - Check evidence: a core unit test asserts the converted upstream value; a pytest case exercises an exposed item; stubtest covers a stub change. A test that only asserts a function was called is insufficient. A public core item without an asserting doctest is a finding.
- Check invariant 2's boundaries and that no public core type lost
#[non_exhaustive]orClone. A change to_alliumpy.pyiwithout the matching Rust and pytest change is a finding. The bindings crate carries no Rust tests. - Check documentation ownership: add durable facts to the page owning their topic in
docs/manifest.yml. - Check scope: unrelated refactors, new dependencies and speculative abstractions are findings in themselves.
- Report findings by severity with
file:line, what breaks and the smallest fix. Runjust checkbefore concluding.
04 同仓库更多 Skills
rust-change
Implement or review a change to the core or the bindings crate with the layering, tests and documentation evidence the invariants require.
review-docs
Add or revise a handbook page so it satisfies the documentation contract and stays reachable.
review-change
Review a change in this repository against its invariants, specifications, tests, and documentation contract.
python-change
Implement or review a change to the Python package, its stub, its tests or the console script with the stubtest, pytest and wheel-smoke evidence the invariants require.
project-check
Bring a workspace to a state where the full gate runs, and interpret what it reports.
plan-change
Plan a change when the scope, affected specifications, risks, or validation need evidence before any code is written.