standards-sync 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: 2026 Sebastien Rousseau
2
+ # SPDX-License-Identifier: Apache-2.0 OR MIT
3
+
4
+ .DS_Store
5
+ *.swp
6
+ *.swo
7
+ *~
8
+
9
+ # Tooling output
10
+ .coverage
11
+ .venv/
12
+ .hypothesis/
13
+ .pytest_cache/
14
+ .ruff_cache/
15
+ __pycache__/
16
+ build/
17
+ dist/
18
+ site/
19
+ .complexipy_cache/
@@ -0,0 +1,203 @@
1
+ <!-- SPDX-FileCopyrightText: 2026 Sebastien Rousseau -->
2
+ <!-- SPDX-License-Identifier: Apache-2.0 OR MIT -->
3
+
4
+ # Changelog
5
+
6
+ All notable changes to Standards are recorded here, in the form of
7
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Versions follow
8
+ [AGENTS.md](AGENTS.md) section 3.
9
+
10
+ ## [0.0.8] - 2026-11-25
11
+
12
+ ### Added
13
+
14
+ - The release workflow uploads the wheel and sdist to PyPI as
15
+ `standards-sync`, by trusted publishing (OpenID Connect, no stored
16
+ token), after the GitHub release is published.
17
+ - CI tests on Python 3.16, the next release, while it is a pre-release.
18
+ The job warns without blocking a merge.
19
+
20
+ ## [0.0.7] - 2026-11-25
21
+
22
+ ### Added
23
+
24
+ - The README and the assurance case link the project's OpenSSF Best
25
+ Practices passing badge, where every criterion's evidence is recorded.
26
+
27
+ ### Fixed
28
+
29
+ - A `STANDARDS_TARGETS` entry that is blank only once `Path` normalises
30
+ it, such as `./ /` (a directory named by one space), is now ignored
31
+ like any other blank entry instead of becoming a target. Found by the
32
+ Atheris fuzzer on pull request #12; the input joins the corpus and
33
+ the Hypothesis examples.
34
+
35
+ ## [0.0.6] - 2026-11-25
36
+
37
+ ### Added
38
+
39
+ - `ROADMAP.md`: what the project plans, and does not plan, through 2027.
40
+ - `docs/ASSURANCE.md`: the security assurance case (requirements, threat
41
+ model, trust boundaries, secure design, common weaknesses countered).
42
+ - `CONTRIBUTING.md` names the coding standards, requires tests for new
43
+ functionality and a regression test for each fix, and sets out what a
44
+ review checks.
45
+ - `GOVERNANCE.md` lists the roles and their responsibilities, and states
46
+ the continuity gap: one maintainer, bus factor 1.
47
+
48
+ ## [0.0.5] - 2026-11-25
49
+
50
+ ### Added
51
+
52
+ - Every release carries its signature and provenance as assets, where the
53
+ OpenSSF Scorecard's Signed-Releases check looks for them: the workflow
54
+ attaches the build provenance bundle as
55
+ `standards-sync-<version>.intoto.jsonl` and signs `SHA256SUMS` with
56
+ Sigstore (`SHA256SUMS.sigstore.json`). Releases 0.0.1 to 0.0.4 gained
57
+ `SHA256SUMS.sig`, signed with the maintainer's SSH key, and 0.0.3 and
58
+ 0.0.4 their original provenance bundles. `docs/VERIFYING.md` shows how
59
+ to check each.
60
+
61
+ ### Changed
62
+
63
+ - `KEYS.asc` allows its keys in the `file` namespace as well as `git`,
64
+ so `ssh-keygen -Y verify` accepts the release checksum signatures.
65
+
66
+ ## [0.0.4] - 2026-11-25
67
+
68
+ ### Added
69
+
70
+ - Coverage-guided fuzzing with Atheris (`fuzz/fuzz_atheris.py`, seeded
71
+ from `fuzz/corpus/`), run in CI's new `fuzz` job and by
72
+ `make fuzz-atheris` on Linux x86-64. It checks the STANDARDS_TARGETS
73
+ parser, `blob_of` and the drift check against a byte comparison. The
74
+ OpenSSF Scorecard recognises Atheris, not Hypothesis, so its first run
75
+ on `main` reported the project as not fuzzed.
76
+
77
+ ### Changed
78
+
79
+ - The dev tools declare their own floor, Python 3.10
80
+ (`[tool.uv.dependency-groups]`), so `uv.lock` no longer resolves them for
81
+ 3.9. Dependabot's `uv` update had failed there: griffe 2.3 needs 3.10.
82
+ `standards-sync` keeps its 3.9 floor, checked by `tests/smoke.py`.
83
+ - Dependencies: `astral-sh/setup-uv` 10.3.3 to 10.4.0, `ossf/scorecard-action`
84
+ to its latest release, and the dev container's Node feature 1.7.1 to
85
+ 2.1.2 (Dependabot #6 and #7); `uv lock --upgrade` for the dev tools.
86
+
87
+ ## [0.0.3] - 2026-11-25
88
+
89
+ ### Added
90
+
91
+ - `standards-sync` installs as a command: `uv tool install` from the
92
+ repository, or `make install` (with `PREFIX` and `DESTDIR`), which also
93
+ installs a manpage and bash, zsh and fish completions generated from the
94
+ argument parser. `--help` now documents the environment variables and
95
+ the exit status.
96
+ - One gate, `make check`: ruff lint and format, the complexity ceilings of
97
+ `AGENTS.md` section 0 for every function (`scripts/check_complexity.py`,
98
+ with an empty baseline that may only shrink), codespell, REUSE 3.3,
99
+ markdownlint, actionlint, tests at 95 percent branch coverage or more
100
+ (99 now), property-based fuzzing with a regression corpus, a strict
101
+ manual build, an API breakage check against the last release,
102
+ pip-audit, and a byte-for-byte reproducible build.
103
+ - `scripts/check_docs.py` holds this README to `README-TEMPLATE.md`'s
104
+ heading order with no unresolved tokens, the GitHub PR template to
105
+ `PR-TEMPLATE.md`, the version carriers to one version, every document
106
+ to `gh`'s real `name` field, and every manual page to the author link.
107
+ - CI on Linux and macOS with Python 3.10 and 3.15 and a 3.9 smoke test, plus the README Quick
108
+ Start run as written, a staged install, the dev container, a link
109
+ check, dependency review, and a `validate` job that requires them all.
110
+ - A manual built with Zensical and deployed to GitHub Pages by Actions,
111
+ with architecture, policies, migration, packaging and verification
112
+ pages, five decision records, and an API reference generated from the
113
+ docstrings by mkdocstrings; ruff's D1 rules require a docstring on
114
+ every public function.
115
+ - A release workflow: blocking preflight (signed annotated tag, message,
116
+ on `main`, versions), assets with SHA-256 sums, a CycloneDX SBOM and
117
+ SLSA provenance, notes in the section order of `AGENTS.md` section 3,
118
+ and an audit of the published release. `workflow_dispatch` runs it dry.
119
+ - `KEYS.asc` (the SSH signing keys), `DEVELOPMENT.md`, `GOVERNANCE.md`,
120
+ `SUPPORT.md`, issue and PR templates, `CODEOWNERS`, Dependabot for
121
+ Actions, uv and the dev container, the OpenSSF Scorecard,
122
+ `.editorconfig`, a pre-commit config, a dev container, a VHS demo and a
123
+ logo.
124
+
125
+ ### Changed
126
+
127
+ - `AGENTS.md`, `GEMINI.md`, `PR-TEMPLATE.md` and `REPO-STANDARD.md` catch up
128
+ with the workspace. They had been edited in `~/Code` and in the dotfiles
129
+ copy since October (the zero-open rule, GitHub Pages by Actions, the latest
130
+ ssg, the release-title field), so this repository, the canonical source,
131
+ was the oldest copy. `AGENTS.md` section 8 also names the audit tool's
132
+ real path, `Public/Python/code-portfolio-compliance`.
133
+ - The README follows `README-TEMPLATE.md`.
134
+ - `CONTRIBUTING.md` sends work to the `feat/v<next-version>` branch, as
135
+ `AGENTS.md` section 3 requires, instead of a branch from `main`.
136
+ - `SECURITY.md` states response times, the supported version and the scope.
137
+ - The `sync.py` functions over the complexity ceilings (`check_sync`,
138
+ `find_canonical_source`, `get_target_dirs`, `check_target_file`) are
139
+ split into private helpers, with no change in behaviour. The usage line
140
+ names the installed command, `standards-sync`.
141
+
142
+ ### Fixed
143
+
144
+ - `REPO-STANDARD.md` told agents to run `gh release view --json` with a
145
+ `title` field, which `gh` does not have; it is `name`, as `AGENTS.md`
146
+ already said.
147
+ - `sync.py` passes ruff: three blind `except Exception` and a silent
148
+ `try`/`except`/`pass` now catch the errors they mean.
149
+ - `sync.py --push` no longer overwrites a file edited in place. The post-merge
150
+ hook pushed this repository's October files over newer copies in `~/Code`
151
+ and both dotfiles copies. A target is now overwritten only when it matches
152
+ the source or holds a version this repository once committed; any other is
153
+ kept and reported, and `--push --force` overwrites it on purpose.
154
+ - `sync.py --push` and `--pull` leave a target that links to the source
155
+ alone and report it `[LINKED]`. Copying a file onto itself failed with
156
+ `[ERROR] ... are the same file` for every file, so `~/Code` could not
157
+ link its standards to this repository. The per-file step of `--push`
158
+ moves to `push_file`, which brings `push_sync` under the complexity
159
+ ceilings (cyclomatic 10 to 6, cognitive 17 to 7).
160
+ - The dev tools can no longer resolve a `filelock` affected by
161
+ GHSA-v4x8-3wr5-3wq8 and the other advisories fixed in 4.2.1: a uv
162
+ constraint requires `filelock>=4.2.1` in every environment, and
163
+ `pip-audit`, which pulls it in, installs only on Python 3.11 or later,
164
+ as no fixed release supports older versions. pip-audit now queries OSV.
165
+ - Likewise `pytest>=9.0.3` (GHSA-6w46-j5rx-g56g). The fixed pytest needs
166
+ Python 3.10, so the suite runs on 3.10 and 3.15, and the 3.9 floor is
167
+ checked end to end by `tests/smoke.py`, which needs only the standard
168
+ library. An OSV query over every version in `uv.lock` finds nothing else.
169
+ - Markdown lint findings across the standards: list spacing, a fenced
170
+ block without a language, a table style, a code span with a trailing
171
+ space.
172
+
173
+ ## [0.0.2] - 2026-10-11
174
+
175
+ ### Added
176
+
177
+ - Multi-target synchronization utility (`scripts/sync.py`) for workspace root
178
+ and chezmoi dotfiles distribution.
179
+ - Git hooks installer for automated post-commit and post-merge synchronization.
180
+
181
+ ### Changed
182
+
183
+ - Advanced version carriers for the 0.0.2 release iteration cycle.
184
+
185
+ ## [0.0.1] - 2026-10-11
186
+
187
+ ### Added
188
+
189
+ - Initial release of the global code standards and specifications repository.
190
+ - Master Code Repositories Standard (`AGENTS.md`).
191
+ - Global Standard and Conventions (`GEMINI.md`).
192
+ - Pull Request Specification (`PR-TEMPLATE.md`).
193
+ - Canonical README Standard (`README-TEMPLATE.md`).
194
+ - Repository Gold Standard (`REPO-STANDARD.md`).
195
+
196
+ [0.0.8]: https://github.com/sebastienrousseau/standards/compare/v0.0.7...v0.0.8
197
+ [0.0.7]: https://github.com/sebastienrousseau/standards/compare/v0.0.6...v0.0.7
198
+ [0.0.6]: https://github.com/sebastienrousseau/standards/compare/v0.0.5...v0.0.6
199
+ [0.0.5]: https://github.com/sebastienrousseau/standards/compare/v0.0.4...v0.0.5
200
+ [0.0.4]: https://github.com/sebastienrousseau/standards/compare/v0.0.3...v0.0.4
201
+ [0.0.3]: https://github.com/sebastienrousseau/standards/compare/v0.0.2...v0.0.3
202
+ [0.0.2]: https://github.com/sebastienrousseau/standards/compare/v0.0.1...v0.0.2
203
+ [0.0.1]: https://github.com/sebastienrousseau/standards/releases/tag/v0.0.1
@@ -0,0 +1,190 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to the Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2026 Sebastien Rousseau
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sebastien Rousseau
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.