Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
94 changes: 87 additions & 7 deletions .agents/ci/ci-status.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,107 @@
{
"timestamp": "2026-11-13T09:28:37Z",
"commit": "e466fe7b6138bd95fe4fdf03acb8e1a2878cfabb",
"branch": "fix/merge-501",
"timestamp": "2026-11-13T12:19:16Z",
"commit": "229f1bb8e941e0e2e934a7dd062cc255c2a2205e",
"branch": "main",
"checks": [
{
"name": "LOC Limits",
"status": "success",
"message": "Passed in 13.459809ms"
},
{
"name": "Rust Format",
"status": "success",
"message": "Passed in 263.828114ms"
},
{
"name": "Rust Clippy",
"status": "success",
"message": "Passed in 25.533928089s"
"message": "Passed in 246.556177ms"
},
{
"name": "Rust Build",
"status": "success",
"message": "Passed in 233.850967ms"
},
{
"name": "Rust Tests",
"status": "success",
"message": "Passed in 46.713389592s"
"message": "Passed in 2.507640466s"
},
{
"name": "Rust Doc Tests",
"status": "success",
"message": "Passed in 1.307035338s"
"message": "Passed in 843.018955ms"
},
{
"name": "Rust Doc Build",
"status": "success",
"message": "Passed in 5.663775426s"
"message": "Passed in 1.33208963s"
},
{
"name": "Rust Security Audit",
"status": "success",
"message": "Passed in 1.314891612s"
},
{
"name": "Rust Dependency Policy (Deny)",
"status": "success",
"message": "Passed in 1.223196563s"
},
{
"name": "Rust Unused Dependencies (Machete)",
"status": "success",
"message": "Passed in 2.527879003s"
},
{
"name": "Rust MSRV Audit",
"status": "success",
"message": "Passed in 495.353066ms"
},
{
"name": "Shell Script Lint (ShellCheck)",
"status": "success",
"message": "Passed in 2.834859167s"
},
{
"name": "Markdown Lint (markdownlint-cli2)",
"status": "success",
"message": "Passed in 1.773575423s"
},
{
"name": "YAML Lint (yamllint)",
"status": "success",
"message": "Passed in 595.325259ms"
},
{
"name": "Skill Validation",
"status": "success",
"message": "Passed in 470.358676ms"
},
{
"name": "Skill Evaluations",
"status": "success",
"message": "Passed in 1.908522667s"
},
{
"name": "Privacy Check (No emails)",
"status": "success",
"message": "Passed in 44.677277ms"
},
{
"name": "Secret Scan",
"status": "success",
"message": "Passed in 97.281217ms"
},
{
"name": "GitHub Actions Workflow Validation",
"status": "success",
"message": "Passed in 7.264424363s"
},
{
"name": "GitHub Actions Semantic Check (actionlint)",
"status": "success",
"message": "Passed in 15.524301ms"
}
],
"overall": "success"
Expand Down
30 changes: 23 additions & 7 deletions .agents/ci/ci-summary.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
# Quality Gate Run Summary

**Timestamp:** 2026-11-13T09:28:37Z
**Commit:** e466fe7b6138bd95fe4fdf03acb8e1a2878cfabb
**Branch:** fix/merge-501
**Timestamp:** 2026-11-13T12:19:16Z
**Commit:** 229f1bb8e941e0e2e934a7dd062cc255c2a2205e
**Branch:** main

| Check | Status | Details |
|---|---|---|
| Rust Clippy | ✅ success | Passed in 25.533928089s |
| Rust Tests | ✅ success | Passed in 46.713389592s |
| Rust Doc Tests | ✅ success | Passed in 1.307035338s |
| Rust Doc Build | ✅ success | Passed in 5.663775426s |
| LOC Limits | ✅ success | Passed in 13.459809ms |
| Rust Format | ✅ success | Passed in 263.828114ms |
| Rust Clippy | ✅ success | Passed in 246.556177ms |
| Rust Build | ✅ success | Passed in 233.850967ms |
| Rust Tests | ✅ success | Passed in 2.507640466s |
| Rust Doc Tests | ✅ success | Passed in 843.018955ms |
| Rust Doc Build | ✅ success | Passed in 1.33208963s |
| Rust Security Audit | ✅ success | Passed in 1.314891612s |
| Rust Dependency Policy (Deny) | ✅ success | Passed in 1.223196563s |
| Rust Unused Dependencies (Machete) | ✅ success | Passed in 2.527879003s |
| Rust MSRV Audit | ✅ success | Passed in 495.353066ms |
| Shell Script Lint (ShellCheck) | ✅ success | Passed in 2.834859167s |
| Markdown Lint (markdownlint-cli2) | ✅ success | Passed in 1.773575423s |
| YAML Lint (yamllint) | ✅ success | Passed in 595.325259ms |
| Skill Validation | ✅ success | Passed in 470.358676ms |
| Skill Evaluations | ✅ success | Passed in 1.908522667s |
| Privacy Check (No emails) | ✅ success | Passed in 44.677277ms |
| Secret Scan | ✅ success | Passed in 97.281217ms |
| GitHub Actions Workflow Validation | ✅ success | Passed in 7.264424363s |
| GitHub Actions Semantic Check (actionlint) | ✅ success | Passed in 15.524301ms |

## Overall: **SUCCESS**
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"timestamp": "2026-11-13T12:00:00Z",
"agent": "opencode",
"skill": "release-rust",
"task_description": "Dogfood the crates.io trusted-publishing path in production: publish checkpoint-template 0.1.0, then verify README, metadata, packaging, docs.rs, and registry consumption against the live service",
"issues": [],
"success": true,
"human_interventions": 0,
"tokens_used": 0,
"published": {
"crate": "checkpoint-template",
"version": "0.1.0",
"trusted_publisher_id": 33687,
"identity": "d-oit/rust-2026-template workflow=release.yml environment=release"
},
"defects_found_and_fixed": [
"No crate shipped a LICENSE file though every Cargo.toml listed one in include; packages silently dropped their license",
"Workspace metadata carried Your Name / your-org/your-repo / docs.rs placeholder values that would be permanent on crates.io; template_init rewrites them, so real baseline values preserve portability",
"The release contract test demanded exit 0 from release-publish without a token, which only passed because the allowlist was empty; it now asserts the invocation parses while keeping zero-exit for config-only commands",
"mcp-server-template is already owned by another publisher on crates.io and is left publish=false"
],
"verification": [
"crates.io API: max_version 0.1.0, license MIT, repository correct, publisher d-oit",
"trustpub.sh verify --package checkpoint-template: verified",
"docs.rs/checkpoint-template/0.1.0: HTTP 200, renders",
"README renders on crates.io and packaged .crate contains LICENSE",
"External consumer crate resolved checkpoint-template 0.1.0 from the registry; README quick-start compiled and round-tripped state",
"release-publish is idempotent: skips the live version and exits 0",
"./scripts/quality-gates.sh: 20/20 checks pass",
"contract test non-vacuity proven by reverting the workflow to the broken --root ordering (exit 2)"
],
"notes": "Publishing from a dirty tree is correctly refused by cargo; the change was committed before upload so the artifact corresponds to a commit. The crates.io web frontend returns 404 for every crate in this sandbox (serde included), so page-level verification used the API, docs.rs, and the downloaded .crate instead. The `release` environment still requires a repository administrator to create, so the OIDC publish job remains gated on that manual step."
}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added the first published crate: `checkpoint-template` 0.1.0 is the canary entry in the `config/trusted-publishing.json` allowlist and is published to crates.io by `scripts/trustpub.sh bootstrap` from a committed tree. This dogfoods the trusted-publishing lifecycle in production, so the release workflow's OIDC `publish_crates` job now has a concrete package to release. Every other workspace member keeps `publish = false`.
- Added a `LICENSE` file to every crate directory. Each `Cargo.toml` already listed `LICENSE` in `include`, but no crate shipped the file, so every package silently omitted its license; the packaged `.crate` now contains it.
- Added opt-in crates.io Trusted Publishing. `config/trusted-publishing.json` holds the explicit package allowlist and OIDC identity; `scripts/trustpub.sh` manages `plan`, `list`, `configure`, `verify`, `remove`, `bootstrap`, and enforcement; `release.yml` gains a validation-only `publish_plan` job and an OIDC `publish_crates` job that stores no long-lived registry secret. Offline contract and CLI tests run in CI and the release quality tier, and `docs/src/releasing/crates-io-trusted-publishing.md` documents the full lifecycle.
- Added a fail-closed generated-maintenance fast path for report-only pull requests. `config/maintenance-pr.json` centralizes a literal DORA artifact allowlist, the trusted automation identities, and the status-check identities; `scripts/classify-maintenance-pr.py` grants the fast path only when the PR targets `main`, comes from a recognized first-party automation actor and branch, every changed file matches the allowlist, and the complete changed-file list was retrieved. PR titles, bodies, and labels are never inputs, and globs or `..` segments in the allowlist are rejected. `scripts/validate-dora-artifacts.py` replaces the full tier for such PRs and cross-checks the report, manifest, and history artifacts so drifting one artifact fails the required check. The required context stays `Quality Gate (pull-request)`.
- Added `PR Merge Policy Gate` (`pr-merge-policy.yml`, `scripts/pr-merge-policy.py`), a repository-owned required check that replaces the unconditional Codacy context with a conditional policy: allowlisted maintenance PRs need the maintenance validators instead of Codacy, while every other PR needs a `success` check run named `Codacy Static Code Analysis` from Codacy app ID `56611` on the exact current head SHA. It paginates the full changed-file list, fails closed on truncation, API errors, wrong app IDs, pending or stale runs, and timeouts, and never trusts user-controlled metadata. `docs/ci/required-checks.md` documents the policy, the ruleset migration sequence, and the rollback procedure.
Expand Down
11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ version = "0.0.0"
edition = "2024"
rust-version = "1.88"
license = "MIT"
# TODO: Replace these with your actual project metadata
authors = ["Your Name"]
repository = "https://github.com/your-org/your-repo"
homepage = "https://github.com/your-org/your-repo"
documentation = "https://docs.rs/your-crate"
# Template baseline metadata. `scripts/init-template.sh` rewrites authors,
# repository, and homepage from the adopter's answers, so these values describe
# the upstream template rather than any single generated project.
authors = ["Dominik Oswald (d-oit)"]
repository = "https://github.com/d-oit/rust-2026-template"
homepage = "https://github.com/d-oit/rust-2026-template"
readme = "README.md"
include = [
"/src",
Expand Down
2 changes: 1 addition & 1 deletion config/trusted-publishing.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"repository_name": "rust-2026-template",
"workflow_filename": "release.yml",
"environment": "release",
"packages": []
"packages": ["checkpoint-template"]
}
21 changes: 21 additions & 0 deletions crates/actor-runtime-template/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 5 additions & 2 deletions crates/checkpoint-template/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[package]
name = "checkpoint-template"
version.workspace = true
# Standalone version: this is the first publicly published crate, so it carries
# its own semver instead of the workspace `0.0.0` placeholder. See
# docs/src/releasing/crates-io-trusted-publishing.md.
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
Expand All @@ -9,7 +12,7 @@ repository.workspace = true
description = "Secure and high-performance checkpointing template for state-intensive applications"
readme = "README.md"
include = ["/src", "README.md", "LICENSE"]
publish = false
publish = true

[lints]
workspace = true
Expand Down
21 changes: 21 additions & 0 deletions crates/checkpoint-template/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 0 additions & 1 deletion crates/example-crate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
readme = "README.md"
description = "Example crate in the rust-2026-template workspace"
include = ["/src", "README.md", "LICENSE"]
Expand Down
21 changes: 21 additions & 0 deletions crates/example-crate/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions crates/example-registry-pattern/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions crates/example-storage-pattern/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions crates/hybrid-storage-template/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Dominik Oswald (d.o.)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading