okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
6ff75059a
main
Contributing to Strata
AI assistance is welcome. The contributor is responsible for understanding the change and supplying real evidence.
These rules apply to issues, pull requests, benchmark reports, and the agents helping prepare them. You should be able to explain every changed line and answer review questions about it.
Before starting
- Search issues and pull requests, including closed discussions. Add new evidence to an existing thread when it covers your problem.
- Read AGENTS.md and the documentation for the component you want to change.
- Get maintainer agreement on scope before substantial features, refactors, architecture changes, or changes to defaults. Describe the user problem, proposed behavior, and tradeoffs in an issue first. Agreement on scope does not guarantee a merge. Focused fixes and benchmark reports can go straight to a PR.
- Keep one problem per PR. Update that PR after feedback; do not open competing attempts for the same change.
Do not resubmit a declined proposal under a different title or through another agent. If new evidence changes the situation, bring it to the original discussion and let a maintainer decide whether to reopen it.
Report a problem people can investigate
Use the matching issue form. A bug report should include:
- The smallest steps or command that reproduce the problem, and the expected and actual behavior.
- Strata version or commit, OS, GPU and VRAM, and relevant model, quantization, and configuration.
- The exact error and relevant logs, with credentials and private content removed.
- Whether you reproduced it yourself. Label a finding based only on reading code or a scanner as unconfirmed static analysis, and explain the suspected path without presenting it as an observed failure.
Do not invent reproduction steps, errors, affected hardware, or severity. If you cannot reproduce something, say what you inspected and what would verify the hypothesis. Feature requests should explain a concrete user need and the current workaround. Questions should say what you tried and where you got stuck.
Example structure, with placeholders to replace with actual observations:
Problem: <one observed behavior> Environment: <commit, OS, GPU/VRAM, model/quant, relevant settings> Reproduce: <exact command or short sequence> Expected: <documented or intended behavior> Actual: <observed behavior and exact error> Evidence: <sanitized log attachment> Reproduction status: <reproduced locally OR unconfirmed static analysis>
Titles
Every issue and pull request title starts with its area in square brackets, then a short description: [Engine], [GUI], [TUI],
[Benchmark], [Docs] or [Other]. For example [Engine] fix decode stop on long prompts or [GUI] keep the model list after a tab switch. The issue forms ask for the area and a check on the title fails when the prefix is missing.
Prepare a focused pull request
Lead with the problem and resulting behavior. Explain why the approach is needed, the important limits, and any compatibility effects. Link the issue and scope agreement when applicable. A file-by-file narration or an AI-generated summary of the diff is not a substitute for this explanation.
- Keep unrelated formatting, cleanup, dependency changes, and speculative abstractions out of the PR.
- Add documentation where it changes what a user or developer needs to know. Avoid repeated summaries, speculative roadmaps, and generated documentation with no actionable information.
- Preserve existing behavior outside the intended change. New features are opt-in; follow the default-path and performance requirements in AGENTS.md.
- Read the complete diff, including generated files, before submitting. Remove debugging output, secrets, private paths, and accidental files.
- Prefer a small relevant regression check over tests that only restate the implementation. Documentation-only changes need link, example, and consistency checks; they do not require GPU builds.
Show the validation you actually performed
List exact commands, the revision and environment tested, and observed outcomes. Keep passed, failed, and not run separate. Include relevant output or a log attachment. A command you suggest running is not evidence that it passed; a CI run on a different revision is not validation of the submitted code.
Build every backend a code change touches, including CUDA, HIP, and SYCL where applicable, before requesting review. For changes that need hardware execution, report that execution separately from compilation. A mock, static check, or successful build does not establish hardware correctness. If you lack a required environment, keep the PR as a draft, identify the missing checks, and ask for targeted help in the same thread. Do not claim compatibility you have not tested.
Performance claims need before/after runs on the same hardware and workload, with every changed setting identified. Preserve the individual runs, failures, and variability. Follow the community measurement guide; standard submissions will use the benchmark protocol once it is activated. One fast run does not justify changing a default or claiming a speedup for other machines.
Example PR body; placeholders are not test results:
Problem and result: <trigger; behavior before and after the change> Related discussion: <issue URL and scope agreement, when required> Approach: <why this fix; relevant compatibility effects> Validation: Passed: <exact command, revision/environment, observed result, log> Failed: <exact command and failure, or none observed> Not run: <check, reason, and what remains unverified> Limits: <known limitations or remaining work>
Rules for AI-assisted work
Use agents to help investigate, implement, and explain work that you can review. Before submitting, verify their claims against the source, actual command output, or a cited primary reference.
Never submit fabricated measurements, invented test results, fake logs, or copied claims you have not checked. Do not turn a repository scan into a batch of speculative issues or PRs. Consolidate related findings, establish their effect, and submit the useful evidence. Do not present an agent's confidence or another model's approval as validation. Keep review replies concise and address the requested change or evidence directly.
Maintainers may request a smaller change, return a PR to draft, or close a submission that lacks evidence, duplicates existing work, or ignores agreed scope. A smaller, understandable contribution with honest limits is easier to review and maintain.
Share a benchmark
A results-only PR should contain the human report, raw measurements, sanitized configuration, and supporting logs. Keep it separate from engine changes and include poor results and failed requests.
The current community benchmark guide remains available for measurements made with today's tools. The new protocol defines the draft standard and future approval workflow. Its draft status must remain visible: existing reports are not automatically standard or approved.
1# Contributing to Strata 2 3**AI assistance is welcome. The contributor is responsible for understanding the change and supplying real evidence.** 4 5These rules apply to issues, pull requests, benchmark reports, and the agents helping prepare them. 6You should be able to explain every changed line and answer review questions about it. 7 8## Before starting 9 101. Search [issues](https://github.com/Niko1221/Strata/issues) and 11[pull requests](https://github.com/Niko1221/Strata/pulls), including closed discussions. Add new evidence to an 12 existing thread when it covers your problem. 13 2. Read [AGENTS.md](AGENTS.md) and the documentation for the component you want to change. 143. Get maintainer agreement on scope before substantial features, refactors, architecture changes, or changes to 15defaults. Describe the user problem, proposed behavior, and tradeoffs in an issue first. Agreement on scope 16 does not guarantee a merge. Focused fixes and benchmark reports can go straight to a PR. 17 4. Keep one problem per PR. Update that PR after feedback; do not open competing attempts for the same change. 18 19Do not resubmit a declined proposal under a different title or through another agent. If new evidence changes 20the situation, bring it to the original discussion and let a maintainer decide whether to reopen it. 21 22## Report a problem people can investigate 23 24Use the matching [issue form](https://github.com/Niko1221/Strata/issues/new/choose). A bug report should include: 25 26- The smallest steps or command that reproduce the problem, and the expected and actual behavior. 27- Strata version or commit, OS, GPU and VRAM, and relevant model, quantization, and configuration. 28- The exact error and relevant logs, with credentials and private content removed. 29- Whether you reproduced it yourself. Label a finding based only on reading code or a scanner as 30**unconfirmed static analysis**, and explain the suspected path without presenting it as an observed failure. 31 32Do not invent reproduction steps, errors, affected hardware, or severity. If you cannot reproduce something, 33say what you inspected and what would verify the hypothesis. Feature requests should explain a concrete user 34need and the current workaround. Questions should say what you tried and where you got stuck. 35 36Example structure, with placeholders to replace with actual observations: 37 38``` text 39Problem: <one observed behavior> 40Environment: <commit, OS, GPU/VRAM, model/quant, relevant settings> 41Reproduce: <exact command or short sequence> 42Expected: <documented or intended behavior> 43Actual: <observed behavior and exact error> 44Evidence: <sanitized log attachment> 45Reproduction status: <reproduced locally OR unconfirmed static analysis> 46``` 47 48## Titles 49 50Every issue and pull request title starts with its area in square brackets, then a short description: `[Engine]`, `[GUI]`, `[TUI]`, 51`[Benchmark]`, `[Docs]` or `[Other]`. For example `[Engine] fix decode stop on long prompts` or `[GUI] keep the model list after a tab 52switch`. The issue forms ask for the area and a check on the title fails when the prefix is missing. 53 54## Prepare a focused pull request 55 56Lead with the problem and resulting behavior. Explain why the approach is needed, the important limits, and 57any compatibility effects. Link the issue and scope agreement when applicable. A file-by-file narration or 58an AI-generated summary of the diff is not a substitute for this explanation. 59 60- Keep unrelated formatting, cleanup, dependency changes, and speculative abstractions out of the PR. 61- Add documentation where it changes what a user or developer needs to know. Avoid repeated summaries, 62speculative roadmaps, and generated documentation with no actionable information. 63- Preserve existing behavior outside the intended change. New features are opt-in; follow the default-path 64and performance requirements in [AGENTS.md](AGENTS.md). 65- Read the complete diff, including generated files, before submitting. Remove debugging output, secrets, 66private paths, and accidental files. 67- Prefer a small relevant regression check over tests that only restate the implementation. Documentation-only 68changes need link, example, and consistency checks; they do not require GPU builds. 69 70## Show the validation you actually performed 71 72List exact commands, the revision and environment tested, and observed outcomes. Keep **passed**, **failed**, 73and **not run** separate. Include relevant output or a log attachment. A command you suggest running is not 74evidence that it passed; a CI run on a different revision is not validation of the submitted code. 75 76Build every backend a code change touches, including CUDA, HIP, and SYCL where applicable, before requesting 77review. For changes that need hardware execution, report that execution separately from compilation. A mock, 78static check, or successful build does not establish hardware correctness. If you lack a required environment, 79keep the PR as a draft, identify the missing checks, and ask for targeted help in the same thread. Do not claim 80compatibility you have not tested. 81 82Performance claims need before/after runs on the same hardware and workload, with every changed setting 83identified. Preserve the individual runs, failures, and variability. Follow the 84[community measurement guide](docs/COMMUNITY_BENCHMARKS.md); standard submissions will use the 85[benchmark protocol](docs/BENCHMARK_PROTOCOL.md) once it is activated. One fast run does not justify changing a 86default or claiming a speedup for other machines. 87 88Example PR body; placeholders are not test results: 89 90``` text 91Problem and result: <trigger; behavior before and after the change> 92Related discussion: <issue URL and scope agreement, when required> 93Approach: <why this fix; relevant compatibility effects> 94Validation: 95Passed: <exact command, revision/environment, observed result, log> 96Failed: <exact command and failure, or none observed> 97Not run: <check, reason, and what remains unverified> 98Limits: <known limitations or remaining work> 99``` 100 101## Rules for AI-assisted work 102 103Use agents to help investigate, implement, and explain work that you can review. Before submitting, verify 104their claims against the source, actual command output, or a cited primary reference. 105 106Never submit fabricated measurements, invented test results, fake logs, or copied claims you have not checked. 107Do not turn a repository scan into a batch of speculative issues or PRs. Consolidate related findings, establish 108their effect, and submit the useful evidence. Do not present an agent's confidence or another model's approval 109as validation. Keep review replies concise and address the requested change or evidence directly. 110 111Maintainers may request a smaller change, return a PR to draft, or close a submission that lacks evidence, 112duplicates existing work, or ignores agreed scope. A smaller, understandable contribution with honest limits 113is easier to review and maintain. 114 115## Share a benchmark 116 117A results-only PR should contain the human report, raw measurements, sanitized configuration, and supporting 118logs. Keep it separate from engine changes and include poor results and failed requests. 119 120The [current community benchmark guide](docs/COMMUNITY_BENCHMARKS.md) remains available for measurements made 121with today's tools. The [new protocol](docs/BENCHMARK_PROTOCOL.md) defines the draft standard and future approval 122workflow. Its draft status must remain visible: existing reports are not automatically standard or approved.