tisonkun opened a new issue, #377:
URL: https://github.com/apache/datasketches-rust/issues/377

   ## Context
   
   `AGENTS.md` directs coding agents to read `CONTRIBUTING.md` in full before 
planning or modifying the repository, so `CONTRIBUTING.md` serves both human 
contributor onboarding and always-loaded repository context.
   
   Appending detailed per-PR method inventories or type-by-type catalogs to 
`CONTRIBUTING.md` adds low-signal context to unrelated tasks and encourages 
mechanical over-compliance, whereas leaving cross-sketch conventions implicit 
makes API evolution harder to keep consistent.
   
   This issue tracks a holistic pass over `CONTRIBUTING.md` to review its scope 
and structure, trim or relocate subsystem-specific details, and distill concise 
principle-level conventions (such as naming) where justified.
   
   ## Current `CONTRIBUTING.md` Contents
   
   - **Onboarding and workflow** (`Your First Contribution`, `Setup`, `Build 
and Test`, `Manual workflow (without xtask)`, `Code of Conduct`): covers 
`rustup`, nightly `rustfmt`/`clippy`, `cargo x` entrypoints, and the underlying 
`clippy`/`fmt`/`taplo`/`typos`/`hawkeye` commands. `Build and Test` currently 
embeds ~30 lines of benchmark methodology (`Fixed workloads and timing`) and 
repeats `cargo x prepare-testdata` from `Serialization snapshots`.
   - **API, visibility, and release rules** (`Public API documentation`, `Query 
semantics`, `Visibility`, `Changelog`): short, principle-level bullets (2–7 
bullets per section) covering rustdoc conventions, empty-sketch vs 
`InvalidArgument` query behavior, module-bounded `pub` visibility, and 
user-facing `CHANGELOG.md` discipline.
   - **Tests and fixtures** (`Integration test layout`, `Serialization 
snapshots`): documents `tests-integration/tests/<sketch>_test/main.rs`, 
`serde_tests.rs`, and `apache/datasketches-tck` snapshot syncing (`examples` 
moved to a standalone workspace crate in #374 and is not yet mentioned 
alongside `benchmarks` and `tests-integration`).
   
   ## Candidate Topics to Revisit
   
   - **Naming conventions**: consider a dedicated, concise naming section 
capturing cross-sketch principles settled in recent API cleanups (#370, #375) 
without enumerating every type — such as `total_weight` for accumulated stream 
weight, `num_retained` for retained sketch entries/centroids vs 
`len`/`is_empty` on slice-like snapshot views, `update` vs 
`update_with_weight`, `min_item`/`max_item` (`Option<&T>`) vs 
`min_value`/`max_value` (`Option<f64>`), and `new`/`Default` vs `builder()`.
   - **Mutation, error, and trait boundaries**: decide whether `Query 
semantics` should remain query-only or pair briefly with high-level principles 
from #370 and #376 (returning `Result<(), Error>` with `InvalidArgument` and 
unchanged `self` on validated runtime mutations/merges/weights vs `# Panics` on 
unit-weight streaming overflow; avoiding routine `#[must_use]` on getters and 
omitting `PartialEq`/`Eq` on probabilistic sketches without a domain equality 
contract).
   - **Structure and scoping**: evaluate whether subsystem-specific guidance 
such as `Fixed workloads and timing` belongs in `benchmarks/` (similar to 
`examples/AGENTS.md`) rather than root `CONTRIBUTING.md`, and whether 
duplicated command sections (`prepare-testdata`, manual non-`xtask` lint 
commands) can be tightened.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to