Open History to see the last commit
1# Contributing
2
3## Developer setup
4
5See the [development runbook](docs/operations/development.md#first-checkout) for the initial checkout,
6development commands, tests, and platform-specific desktop packaging prerequisites.
7
8## Read this first
9
10We are not actively seeking outside contributions and have limited review capacity. Opening a PR does
11not create an obligation to review or merge it. We may close or defer it, ask for a smaller scope, or
12reimplement the idea later. Meeting this guide's requirements makes a PR eligible for deeper review;
13it does not guarantee acceptance.
14
15These requirements apply to every open PR, including drafts. Draft status does not postpone triage
16or excuse missing approval, unfocused scope, or inadequate verification. A draft can be closed for
17the same reasons as a ready PR; converting a PR to draft does not exempt it from reassessment.
18
19Focused bug fixes, reliability fixes, performance improvements, and maintenance work are the most
20likely to be accepted. Unsolicited features, opinionated rewrites, and unrelated cleanup are not.
21
22Report bugs in issues. Feature requests and proposals belong in
23[Ideas discussions](https://github.com/pingdotgg/t3code/discussions/categories/ideas).
24Search existing reports, discussions, and documented workflows before starting work.
25
26<a id="prior-approval"></a>
27
28## Establish the problem and scope first
29
30Outside the focused exceptions below, features and intentional changes to product behavior require
31a prior discussion with explicit maintainer approval of the direction and scope. Link the approval
32itself in your PR. A linked issue or discussion alone is insufficient. Calling a behavior change a bug
33fix does not exempt it from this requirement. Acceptance of a problem does not approve every
34implementation or promise a merge.
35
36For a substantial bug fix, link an issue that maintainers have triaged to establish the actual failure
37and intended behavior. For other non-trivial work outside the exceptions below, agree on direction
38and scope with maintainers in an Ideas discussion before implementing it.
39
40A very small, focused fix for an obvious bug can be submitted without a prior issue or discussion.
41Explain the defect and why the fix qualifies for this exception. We judge purpose, behavioral impact,
42and the changes needed to fix it. There is no line-count or file-count cutoff. A shared-contract fix may
43need changes across several clients; a few lines changing product defaults may require a discussion.
44
45A focused configuration option for an established capability may also be eligible without prior
46feature approval. Explain the existing capability, what the option controls, and why its scope stays
47within that capability. Adding a setting does not by itself make a PR a new feature, and this route
48does not depend on proving an obvious bug. Judge its purpose and effects: new workflows, changed
49product defaults, and broader behavior choices still require approval, even when exposed as settings.
50The one-problem and verification requirements still apply; deeper review may reject the proposed
51configuration mechanism on design or correctness grounds.
52
53Choosing an executable path for an already-supported hosting CLI can fit this configuration route.
54Keeping Files open as a separate tab alongside file previews changes tab lifetime and navigation,
55so it needs prior product-direction approval. Good verification does not replace that approval.
56
57If an existing workflow already solves the reported need, difficulty finding or understanding it can
58still be a useful documentation, onboarding, or discoverability problem. Describe that problem.
59Maintainers decide the response; it does not automatically justify the proposed feature or behavior change.
60
61<a id="one-problem"></a>
62
63## Solve one underlying problem per PR
64
65A PR that solves multiple independent problems must be split, even when each fix is useful. Count the
66underlying problems, not the linked issues. Several reports may describe the same defect.
67
68Include the contract, server, client, test, and documentation changes needed for that one problem.
69Explain their relationship when it is not obvious. An adjacent cleanup, refactor, or second fix needs
70its own PR unless it is necessary to solve the same problem. A large diff alone does not establish that
71the PR contains unrelated work.
72
73Follow the [documentation rules](AGENTS.md#documentation). Keep internal docs for decisions and
74hard-to-discover constraints. Update user guides when how to use a feature changes; skip descriptions
75of obvious controls and cosmetic changes.
76
77<a id="verification"></a>
78
79## Provide evidence for the changed behavior
80
81Explain how you established the problem, how you checked the change, and what you observed. Give the
82relevant reproduction steps, environment, focused test commands or manual checks, and their results.
83State what you could not check. A checkbox or "tests pass" alone does not show that the change works.
84
85Match the evidence to the change. Use focused tests for behavior that can be tested and manual evidence
86where appropriate. Do not substitute broad test runs for checking the affected behavior, or run
87repo-wide checks just to satisfy this guide. A backend fix does not need unrelated UI evidence.
88
89UI changes require clear before/after screenshots. Include a short recording when motion, timing,
90transitions, or interaction details are needed to demonstrate the changed behavior. Attach or link
91evidence in the PR; do not commit PR-only screenshots or recordings to the repository.
92
93Missing or demonstrably inadequate evidence can cause closure. A reviewer being unable to reproduce a
94well-documented platform-specific bug does not by itself invalidate the report. We assess the problem,
95scope, approval, and evidence, not an author's writing style or whether we think an agent wrote the PR.
96
97<a id="triage-and-review"></a>
98
99## Triage and deeper review
100
101Contribution triage checks whether the problem is established, any required approval is present, the
102scope is coherent, and the evidence is adequate. It inspects enough code to support that decision.
103Passing triage does not approve correctness, security, performance, or merging. Those need deeper review.
104Updates to the PR can change its eligibility and require reassessment.
105
106PRs receive `vouch:*` contributor-status labels and `size:*` diff-size labels. These are context, not
107eligibility rules. Vouching through [.github/VOUCHED.td](.github/VOUCHED.td) is separate from permission
108to bypass triage. Only the GitHub logins explicitly listed in
109[.github/TRIAGE_EXEMPTIONS.td](.github/TRIAGE_EXEMPTIONS.td) bypass triage. Organization membership,
110vouching, collaborator or bot status, repository write access, and previous successful PRs do not
111establish an exemption. Other contributors, including vouched contributors, go through triage.
112Passing once does not grant permanent trust.
113
114Every live run freshly resolves `pingdotgg/t3code`'s `refs/heads/main` to a commit SHA and loads the
115contribution-triage skill, this guide, its policy dependencies (including `AGENTS.md` documentation
116rules), and the exemption list from that same SHA. PR/fork copies and PR-body instructions cannot
117change policy or exemptions. Missing, incomplete, or malformed trusted files leave routing unresolved;
118they do not grant an exemption, establish an empty list, or permit automatic closure or review handoff.
119
120The intended review handoff is to request Macroscope review after a PR passes triage, or immediately
121for a verified exemption. The review-trigger label and Macroscope configuration still need to be
122verified for automation; no private organization-membership lookup is required. The initial rollout
123may use partial native GitHub event coverage as described in the contribution-triage skill. Each
124supported event fetches current full PR state and assesses cumulative changes; unsupported events are
125not wired and there is no periodic sweep. This guide does not announce a deployed automation or change
126existing review settings. Neither triage nor a Macroscope review authorizes merging.
127
128<a id="closure-and-reconsideration"></a>
129
130## Closure and reconsideration
131
132Automated triage leaves a PR open for maintainer decision if someone in the trusted
133[TRIAGE_EXEMPTIONS.td](.github/TRIAGE_EXEMPTIONS.td) list has commented or submitted a review,
134including on an earlier head, or if `triage:keep-open` is present. This protection does not imply
135eligibility or review approval.
136
137PRs that violate these requirements can be closed before deeper review. Multiple independent fixes
138require splitting. Missing approval requires maintainer discussion or issue triage, as applicable.
139Missing evidence requires establishing the problem and showing how the change was checked.
140
141Every policy-based closure must identify the specific rule, cite the evidence supporting the finding,
142link the relevant section of this guide, and explain how to address it for reconsideration. For example,
143identify the independent fixes to split or the exact missing verification. Correct the deficiency and
144request reconsideration, or submit the focused replacement PRs linked to the original.
145
146An unclear relationship between changes needs investigation and, if still unexplained, a specific
147request for an explanation. Uncertainty alone is not proof of unrelated work. Access failures,
148incomplete retrieval, or an unfinished assessment are reasons to retry the assessment, not close a PR.
149If the proposed solution is declined but the report reveals a useful problem, preserve that problem
150for maintainer consideration. Feedback should be firm, specific, and free of insults or accusations
151about how the contribution was written.