Repository navigation
how to contribute development workflow
Work from a fresh default branch, validate the complete change and treat Sych's current-head review as another required input to the pull request. The mandatory agent policy is AGENTS.md; the self-review trust model is explained in docs/SERVER.md.
- Inspect local changes and preserve work that is not yours.
- Start your own branch from fresh
origin/main. Direct pushes to protectedmainare not the change path. - Locate the owning crate, application or review capability. Read its focused guide before changing orchestration.
- Keep the patch scoped and include regression tests for the behavior, refusal or recovery path. Follow Patterns and conventions.
Use Conventional Commit messages as described in README.md. A documentation-only task is not implicit authorization to mutate Git, publish a branch, deploy or upload files.
From the repository root:
just checkThe current justfile defines check: lint test web-check. That means Rust formatting, dependency hygiene, Clippy, the custom style checker, workspace tests, API-client generation, frontend lint/format/types/tests and a Vite build. Do not use the README's shortened description to omit the web checks.
Run the separate disposable PostgreSQL suite for persistence/server work, and the site tests/build for published documentation changes. Schema changes require regeneration and a review of the generated diff. See Testing for the exact matrix and Tooling for fix/generation commands.
After an authorized push, open a pull request against main:
gh pr create --base main --fill
scripts/wait-sychAGENTS.md requires scripts/wait-sych after every push, including a fix to an existing PR. The script accepts an explicit PR argument when it cannot infer the current branch's PR. It requires an authenticated GitHub CLI; its source is scripts/wait-sych.
The wait script:
- rereads the current
headRefOidon each pass, so a push during the wait changes what it waits for; - selects the configured bot's summary marker and matching 12-character head identifier;
- prints that summary and current-head inline comments;
- polls every 20 seconds and exits after
SYCH_WAIT_SECONDS, 1800 seconds by default; - returns 0 when it prints a matching review, or 1 when none arrives in time.
The default bot login is sych-reviewer[bot]; SYCH_BOT_LOGIN overrides the lookup. This is an operational lookup setting, not a way to substitute a trusted production reviewer.
An inline may have been posted on an earlier head and moved by GitHub. The current summary, not the mere presence of an old comment, determines whether a finding remains reported.
| Review input | Required response |
|---|---|
| Real defect | Fix it, rerun checks, push and wait again for the new head |
UNKNOWN |
Investigate the missing evidence or limitation; fix what is real and disclose what remains unresolved |
| False positive or noise | Reply in the PR with a short evidence-based explanation; do not distort correct code to appease the reviewer |
| Partial coverage or listed gaps | Include the gaps in the handoff/report; never summarize them as “no problems” |
| No current-head review before timeout | Stop and report the PR and exact head SHA; do not bypass the requirement |
False positives are defects in Sych itself and should appear in the contributor's report as such. A bot review is advisory rather than approval, and a completed execution is not necessarily complete coverage. The distinctions are in Review analysis.
Do not merge without green CI and a Sych review of the current head. Do not issue /sych rerun or /sych deep without a concrete reason: they incur model cost.
.github/workflows/image.yml builds the reviewer image from main only. Production pins its digest and matching reviewer_commit in a separate deployment repository. crates/sych-app/src/server/build.rs checks the trusted build identity, and repository review policy normally comes from the target tip rather than the proposed head.
Changing prompts, models, budgets or rules in a PR to force a clean self-review is prohibited by AGENTS.md and does not replace the already pinned production build. Update reviewer behavior for a verified product reason and test it honestly.
.github/workflows/ci.yml runs just check and just test-postgres as separate steps. Both are allowed to finish so the workflow can always upload sych-reports, containing:
-
clippy.json: compiler/Clippy JSON; -
outcomes.json: exit outcomes for the two check recipes; -
sych-ci.json: checkout commit, workflow job, toolchain, target and features.
The final step fails the job if either check failed. The artifact retention is seven days; the evidence is not proof that a different commit was tested. The server CI path explains how trusted reports are bound to a review.
These are instructions for future code contributions. No Git mutation, push, PR creation, self-review or merge was executed while writing this wiki.
AGENTS.md, README.md, justfile, scripts/wait-sych, .github/workflows/ci.yml, .github/workflows/image.yml, docs/SERVER.md, crates/sych-app/src/server/build.rs.