Skip to content

Small contribution proposals

These are scoped task drafts for discussion, not already-created or assigned GitHub issues. Check the current code and existing issues before starting: a later change may already cover a proposal. The owner areas below identify where review belongs; they do not assign work to a particular person. None requires access to the private Desktop repository.

1. Demonstrate the document ranker's language limit

Owner area: bundled examples and evaluation documentation. Scope: small example/test change, no Core execution changes.

The current tokenizer in src/optpilot/_starter/document_search/bm25.py uses [a-z0-9]+. Add a separate, small multilingual retrieval fixture that makes this limitation observable, alongside an explicitly described Unicode-aware baseline. Keep the original six articles and five-question tutorial unchanged.

Acceptance: the fixture includes attributed or newly authored text and relevance labels; both programs return valid rankings; a test demonstrates the current English tokenizer's limitation and the new baseline's intended behavior; the README states the supported languages and makes no broad multilingual quality claim. Any tokenizer dependency must remain example-specific. Do not silently replace the frozen starter's scoring behavior.

2. Cover idle and unavailable actions in Asteria policies

Owner area: catalog/asteria_factory/tests/test_policies.py. Scope: focused policy contracts, with a policy fix only if a test exposes a defect.

The current tests cover legal integer actions, differing assignment objectives, low-battery charging and urgency ordering. Extend coverage for an idle factory, no dispatchable task, unavailable charging, and an action mask that permits only holding. Use compact authored observations rather than a full simulation run.

Acceptance: each policy returns a Python integer permitted by the mask, avoids mutating the observation, and handles the documented empty-task cases. Run the existing policy suite with the example's locked environment. Keep the three policy objectives and simulator random streams unchanged unless a separately reviewed bug fix requires it.

3. Explain omitted feedback in the optional Optuna example

Owner area: optional generator adapter and docs/optuna.md. Scope: a small diagnostic extension; discuss the output contract before implementation.

The adapter currently omits incomplete or unusable candidate observations. Add a bounded diagnostic summary that distinguishes missing coverage, absent or nonfinite metrics, and incompatible parameter values, without exposing private inputs or changing the one-candidate return protocol. Prefer generator logs or a documented helper over a second result store.

Acceptance: real optional-dependency tests verify every reason, zero remains a valid score, diagnostic size is bounded, and the same valid context still gives the same proposal. Do not invent failure penalties or infer hidden scores.

4. Add a Chinese entry page for the Optuna tutorial

Owner area: public website localization and documentation. Scope: paired English/Chinese website content and links, no Desktop source changes.

Introduce the optional search example in the website's English and Chinese docs, linking to the technical adapter guide and its synthetic inventory example. Use the website's current locale conventions and label the English-only technical reference clearly.

Acceptance: both locale routes build; installation commands use the optional extra and identify development-only features; the copy distinguishes training selection from holdout evaluation and does not promise an improvement. Check navigation and links in both languages. Machine translation alone is not proof that technical meaning stayed aligned.

5. Verify a first run from a Windows path containing spaces

Owner area: installation documentation and platform verification. Scope: one reproducible Windows walkthrough and a focused regression if it finds a bug.

Use a clean supported Python environment and a project directory containing spaces. Follow the public checkout installation, demo, detail and report instructions. Existing CI exercises an installed wheel; this task checks the human instructions and shell quoting on a real Windows machine.

Acceptance: record the Windows, Python and shell versions, exact commands, success/failure states and a redacted error when relevant. Confirm ten successful document-search trials and that the exported HTML opens offline. Record any help needed. Do not label a scripted check as an independent user study or claim that untested Windows configurations work.

Prepare a reviewable contribution

Open a focused discussion or issue yourself if one is needed; these drafts have not contacted anyone or reserved an assignment. Include the concrete problem, scope and acceptance criteria in the proposal. Follow the development guide, run the checks relevant to the change and state what was actually tested. Never attach credentials, user datasets, local experiment stores or unrelated private source.