Skip to content

Latest commit

 

History

History
92 lines (73 loc) · 4.79 KB

CONTRIBUTING.md

File metadata and controls

92 lines (73 loc) · 4.79 KB

Contributing

This applies to every repository in the organization that has no contributing guide of its own. Each repository's AGENTS.md adds what is particular to it — its gates, its changelog, the traps it sets — and wins where the two differ.

Filing an issue

Issues here are read by a machine before they are read by a person, and the machine reproduces a report from what the report says. So what makes an issue actionable is the same four things, whoever reads it:

  • Context — the command, the directory it ran in, and the version or commit. Enough that someone else can run it.
  • What happened — the exact message or output, not a paraphrase of it.
  • What should have happened — what the tool should have done instead. A report that only says something felt wrong cannot be acted on.
  • Cost and workaround, when there is something to say.

The issue forms ask for exactly these and apply the kind's label for you:

Kind Label What it means
Bug bug the tool does not do what it is supposed to do
Feature enhancement the tool lacks something it would clearly benefit from
Usability usability the tool led you the wrong way: wrong output, wrong message, a default or a name that means something other than what it says
Tokens tokens the tool burned tokens or wall-clock it did not need to: output read only to be discarded, a forced re-read, a retry loop, an oversized dump

Report the tool, not the caller. A tool that did exactly what it documents is not a defect, however much trouble it caused: a check that fails because your citation is wrong, a plan refused because it is invalid. The one thing that crosses over is a tool that was right but said so in a way that sent you looking in the wrong place. That is a real usability report, about the message.

What happens to an issue

An issue walks a state machine, and its labels say where it stands:

  • state:* is the phase — triage, validating, deciding, planning, implementing, shipping. One at a time, moved by the machine on every transition.
  • path:* is the route the work takes: path:simple goes straight to a spec-first fix, path:planned gets a written proposal discussed on the issue, path:foundational gets a cross-model discussion and a human ruling first.
  • high-priority and priority are the two rungs triage assigns. They mean this is what should be fixed next, and no repository here releases while one is open.

Please do not set state:, path: or priority labels by hand; the machine reads them to know where to resume, and a label it did not write sends it to the wrong place. One exception: a maintainer who sets a path: label before the path is decided has decided it.

A bug, a misleading message or a waste of tokens is established by a reproducer that runs — a script that fails while the defect stands and passes once it is fixed — which then becomes the failing test the fix must satisfy. A feature is established by its fit against the repository's goals and spec.

When the machine needs something from you it asks on the issue: questions each carry the assumption the work would otherwise proceed under, so a +1 is a complete answer, and a proposal is approved the same way.

Working on an issue

The assignee is the claim. Several machines and several people work against these repositories, and nothing local to one of them can see what another has picked up. To work an issue, assign yourself first. Every machine respects that for as long as the work moves, and for as long as a pull request that closes the issue is open; removing the assignee frees it. A claim that goes three days with nothing moving and no pull request is stale, and is taken over with a note on the issue.

Making a change

Spec first. Every repository here is grounded with grund: each goal, spec point and decision has a stable ID, and the code that realizes one cites it. For a change in behavior or design, write or update the most specific spec point before the code, and cite it where the behavior is made. A pull request opens with the spec change and the failing test; the implementation follows behind them.

The gates are the tools. grund check gates every repository, and fissile check most of them. Both run in the pre-commit hooks and in CI, at versions each repository pins, so install the hooks the repository's AGENTS.md names and let them run. When fissile flags a file it has only measured it: how to split the file is your call, and "about one thing" is the target rather than a line count.

Keep the pull request about one thing, say what it changes and why in the description, and link the issue it closes so the claim above holds while it is open.