# How Sypnia uses it

> Sypnia's own code lives in Sypnia Git, with a read-only mirror on GitHub, and Telemetry, the pilot, shows how.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://git.docs.sypnia.com/start/how-sypnia-uses-it/

For agents: Dogfooding: every Sypnia product's code lives in Sypnia Git, organization sypnia, each repository with a read-only mirror on GitHub, one way (the GitHub copy is where people outside find the open source; changes, contributions included, are made in Sypnia Git, and nothing comes back from GitHub). Telemetry (the pilot): repositories sypnia/telemetry (engine and console), sypnia/sypnia-js (SDKs), sypnia/sypnia-docs (these docs); every commit carries a Case: trailer (e.g. Case: send-alert); main protected (2 reviews for the engine, no force-push, signed commits, push protection for secrets); required checks sypnia-run/preview, sypnia-cases/check and tests; Sypnia Agent works on agent/<case> branches and opens pull requests, a person merges; Telemetry's fixes open pull requests in Sypnia Git with no app to install; merges to main deploy with Run (production approved in App); issues linked to cases, new requests become Cases proposals; history read by case. SSH host keys of ssh.git.sypnia.com as DNSSEC-signed SSHFP records in the sypnia.com zone in Domains. Nightly bundles to S3 as for any customer.

Telemetry is the pilot of the Sypnia suite: it is built on Sypnia from end to end and uses every Sypnia product. This is how it uses Sypnia Git.

## Where Sypnia's code lives

Every product of the suite has its repositories in Sypnia Git, in the organization `sypnia`. Each one has a **read-only mirror on GitHub**, updated on every push: the GitHub copy is where people outside find the open source. All work, contributions from outside included, happens in Sypnia Git, where pull requests are reviewed with the same rules for everyone; nothing comes back from GitHub ([Mirroring](https://git.docs.sypnia.com/migrate/mirroring)).

## How Telemetry uses Sypnia Git

| Repository           | What it holds                               |
| -------------------- | ------------------------------------------- |
| `sypnia/telemetry`   | the engine, in Rust, and the console        |
| `sypnia/sypnia-js`   | the SDKs, `@sypnia/telemetry` and its paths |
| `sypnia/sypnia-docs` | these docs, and the docs of every product   |

- **Every commit names its case.** `Case: send-alert` in the message, so the map in Cases shows the code behind each of Telemetry's cases, and «`send-alert` changed twice this week» is one view ([The history of a case](https://git.docs.sypnia.com/repos/issues-and-cases#the-history-of-a-case)).
- **`main` is protected.** Two reviews for the engine, no force-push, signed commits, and push protection for secrets.
- **Required checks.** `sypnia-run/preview` (the preview built by Run), `sypnia-cases/check` (nothing off the map) and the tests must pass before a merge ([CI and Run](https://git.docs.sypnia.com/automation/ci-and-run)).
- **Agents propose, people merge.** Sypnia Agent works on its own branches and opens pull requests; a person reviews and merges. When Telemetry itself finds a problem in Telemetry, its fix arrives as a pull request here, with no app to install.
- **Issues are linked to cases.** A bug names the case it is about; a request for something new becomes a proposal on Telemetry's map before any code ([Issues and use cases](https://git.docs.sypnia.com/repos/issues-and-cases)).
- **A merge deploys.** Merging into `main` deploys with [Sypnia Run](https://run.docs.sypnia.com/); production waits for a person's approval.
- **The server is verifiable.** The host keys of `ssh.git.sypnia.com` are SSHFP records in the `sypnia.com` zone, signed with DNSSEC by [Sypnia Domains](https://domains.docs.sypnia.com/) ([SSH keys](https://git.docs.sypnia.com/access/ssh-keys#check-the-server-the-first-time)).
- **Backed up like anyone's.** Nightly bundles of every repository, with their issues and pull requests, go to storage in a second region, as for every customer.

## The rest of the suite

| Product                                   | What it does with Sypnia Git                                                                 |
| ----------------------------------------- | -------------------------------------------------------------------------------------------- |
| [Cases](https://cases.docs.sypnia.com/)   | reads the `Case:` trailers and the `cases/` folder; runs `cases check` on every pull request |
| [Agent](https://agent.docs.sypnia.com/)   | opens branches and pull requests for every task                                              |
| [Run](https://run.docs.sypnia.com/)       | builds a preview on every push and deploys on merge                                          |
| [Design](https://design.docs.sypnia.com/) | writes every approved change to a guide as a pull request                                    |
| [Skills](https://skills.docs.sypnia.com/) | publishes skills from their repositories by trusted publishing                               |
| [Learn](https://learn.docs.sypnia.com/)   | puts each exercise on a branch of the learner's repository                                   |

## What it proves

All of Sypnia's work goes through Sypnia Git every day: people, agents, mirrors and deploys. If a push is slow, a rule lets something through or a mirror drops a commit, Sypnia's own team is the first to feel it.
