Skip to main content

standards logo

standards

The rules every repository by Sebastien Rousseau follows, and the command that keeps every copy of them identical.

Build Registry Docs OpenSSF Scorecard License: Apache-2.0 OR MIT Python 3.9 or later

standards-sync pushing the five standards to a target, keeping a file edited there instead of overwriting it, and showing the drift with --check


Contents

Getting started

  • Install: from PyPI, make install, or the dotfiles
  • Requirements: toolchain floor, platforms
  • Quick Start: push the standards to a scratch directory and check them

The standards ecosystem

Library reference

Operational


Install

As a Python library

uv tool install standards-sync      # or: pipx install standards-sync

This installs the standards-sync command from PyPI; its functions are importable as standards_sync. The upload is made by trusted publishing and carries build provenance (Verifying releases).

From a clone, with the manpage and bash, zsh and fish completions:

make PREFIX="$HOME/.local" install

With Homebrew, or from the AUR on Arch:

brew install sebastienrousseau/tap/standards-sync
yay -S standards-sync               # or any AUR helper

Each release also carries a .deb and a .rpm, and the recipes for Arch (AUR), Homebrew and Nix; docs/packaging.md lists them.

The dotfiles also install it as ~/.local/bin/standards-sync, and link ~/Code's standards to a clone of this repository.


Requirements

Requirement Version Why
Python 3.9 or later the minimum toolchain is the macOS system python3; see the policy in docs/POLICIES.md
git any to tell a published version of a file from an edit
OS macOS, Linux tested on both in CI

Quick Start

make PREFIX="$HOME/.local" install
export PATH="$HOME/.local/bin:$PATH"
export STANDARDS_REPO="$PWD" STANDARDS_TARGETS="$PWD/build/quickstart"
standards-sync --push     # copy the five standards to the scratch directory
standards-sync --check    # every file [OK]

Run from a clone, this installs the command and tries it on a scratch directory, leaving ~/Code and the dotfiles alone. Unset STANDARDS_TARGETS to work on the real targets. CI runs this block as written.


The standards ecosystem

The standards are edited here, carried to every machine by the dotfiles, and measured across the portfolio by the compliance audit.

Component Purpose Use case
AGENTS.md Invariants for AI-assisted and human work Read before changing any repository
GEMINI.md Pointer file for Gemini and other agents Loaded at the start of an agent session
REPO-STANDARD.md The eight-category scorecard and its phases Rating and raising a repository
README-TEMPLATE.md The layout of every primary README Writing or checking a README
PR-TEMPLATE.md The shape of every pull request description Opening a pull request
standards-sync Keeps every copy identical without losing an edit ~/Code and dotfiles upkeep
dotfiles Installs the command, links ~/Code here A new machine

Capabilities at a glance

Area Capability Status
Standards Five canonical files, released together Stable
Sync Drift check with diffs Stable
Sync Push that keeps edits made in place Stable
Sync Pull that adopts a ~/Code edit Stable
Sync Git hooks that push on commit and merge Stable
Tooling Manpage and completions from the parser Stable

Ecosystem comparison

This section does not apply: the repository is one portfolio's governance, not a product with alternatives, and no comparison is claimed.


Benchmarks

This section does not apply: standards-sync hashes and copies five small text files, and no performance claim is made.


Features

  • One source. A rule changes here, in a pull request, and nowhere else.
  • Safe push. A target file is overwritten only if it is missing, identical, or a version this repository committed. An edit made in place is kept and named, and the push exits 1.
  • Links respected. A target that links to the source is left alone.
  • Pull. An edit made in ~/Code is adopted, then pushed to the dotfiles copies.
  • Checks that bind this repository too. CI holds the README to README-TEMPLATE.md, the GitHub PR template to PR-TEMPLATE.md, and every function to the complexity ceilings of AGENTS.md.

Configuration

Variable Effect
STANDARDS_REPO The source directory; when set, the only one, and an error if it does not hold the standards
STANDARDS_TARGETS Target directories, separated by :, replacing the defaults

Without them, the source is found from the script's location or under ~/Code, and the targets are ~/Code and the dotfiles copies that exist. docs/ARCHITECTURE.md lists the exact order.


Examples

standards-sync --check          # what differs, with diffs; changes nothing
standards-sync --check -q       # one warning line, or silence
standards-sync --push           # bring every copy up to date
standards-sync --push --force   # also overwrite files edited in place
standards-sync --pull           # adopt an edit made in ~/Code
standards-sync --install-hooks  # push after every commit and merge here

When not to use standards

  • The default targets are one workspace's layout (~/Code, chezmoi dotfiles). Elsewhere, set STANDARDS_TARGETS.
  • It syncs exactly five files. It is not a general file synchroniser.
  • The rules are opinionated (0.0.x versioning, one release pull request, signed-off commits). Adopt them knowingly.
  • Windows is not tested.

Development

uv sync --frozen
make check        # every gate CI runs
make help         # every task

make check runs ruff, the complexity ceilings, codespell, REUSE, markdownlint, actionlint, the tests at 95 percent branch coverage, the property-based fuzz corpus, the strict manual build, the API breakage check, pip-audit and a reproducible-build comparison. See DEVELOPMENT.md.


Security

standards-sync writes only the five standard files, into the targets it lists, and git hooks into this checkout. Commits and tags are signed (KEYS.asc), every Action is pinned by SHA, dependencies are locked and audited on every push, and releases carry checksums, an SBOM and build provenance. CodeQL, secret scanning and the OpenSSF Scorecard run on main.

The project holds the OpenSSF Best Practices passing badge.

Report vulnerabilities according to SECURITY.md.


Documentation


Stability guarantees

Versions rise by 0.0.1 per release (AGENTS.md section 3). For standards-sync, the options, exit status, status words and environment variables are the contract, and a push never overwrites an edit made in place without --force: changing any of these is breaking, even with no option renamed. The public Python API is checked against the last release in CI. The minimum toolchain is Python 3.9 and rises only with the macOS system Python. Details in docs/POLICIES.md.


License

Dual-licensed under either:

at your option.

Copyright © 2026 Sebastien Rousseau.

Metadata

Release files for standards-sync 0.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for standards-sync 0.0.14
File Size Uploaded Provenance Actions
standards_sync-0.0.14.tar.gz 41.4 kB With provenance Details for standards_sync-0.0.14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for standards-sync 0.0.14
File Interpreter ABI Platform Actions
standards_sync-0.0.14-py3-none-any.whl Python 3 none any Details for standards_sync-0.0.14-py3-none-any.whl

Total release size: 58.1 kB

Release files / standards_sync-0.0.14.tar.gz

Download URL standards_sync-0.0.14.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
af8f4faeab30f26233bdefd1cfc895fb94b89e118afbe1443161256e6609ffd0
BLAKE2b-256 checksum
How to use checksums
57517ee691731466f078a3cd4610eeafc9a40bc9590b7a53b740ba3094f9ca27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / standards_sync-0.0.14-py3-none-any.whl

Download URL standards_sync-0.0.14-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6ba93d7f2d7d8ae643046aa62825a940ccffb5f3bc2fb732fef49e537816353
BLAKE2b-256 checksum
How to use checksums
c6e8e599414286de6f8b99e0f922ccb251b5d6c740e5505f43262eaa75e7f3bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for standards-sync 0.0.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for standards_sync-0.0.14.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page