-
Notifications
You must be signed in to change notification settings - Fork 0
refactor!: rename the guarded maintenance system to autorelease #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
340ab17
refactor!: rename the guarded maintenance system to autorelease
loadinglucian 1a9ab65
fix: fall back to the pre-rename php-bin invariants path
loadinglucian 7cd8b65
fix(ci): bind agent-supplied action key through env before shell use
loadinglucian b6b7e74
fix(ci): distinguish an absent operator control from an API failure
loadinglucian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.github/codex/maintenance/shared.md → .github/codex/autorelease/shared.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
342 changes: 176 additions & 166 deletions
342
.github/workflows/maintenance-consumer.yml → .github/workflows/autorelease-consumer.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| .DS_Store | ||
| __pycache__/ | ||
| *.py[cod] | ||
| maintenance-run/ | ||
| autorelease-run/ | ||
| .test-tmp/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| # Autorelease | ||
|
|
||
| How this repository consumes the accepted `php-bin` support policy, | ||
| prepares bounded repository work, and records the exact-commit readiness | ||
| that `php-bin` requires before it may publish a new branch. | ||
|
|
||
| The scheduled `php-bin policy consumer` captures the accepted public | ||
| `support-policy.json` and compares only its digest and incomplete-event state | ||
| with `support-snapshot.json`. It does not fetch or classify upstream PHP | ||
| lifecycle data. When the exact policy changes, the repository-scoped pinned | ||
| Codex Action produces an evidence-bound plan. Any implementation runs offline, | ||
| without a GitHub write credential, and only against admitted paths. | ||
|
|
||
| ```mermaid | ||
| flowchart TD | ||
| policy["Accepted php-bin policy commit and digest"] --> compare{"Snapshot differs?"} | ||
| compare -- "No" --> quiet["Quiet: no model call or mutation"] | ||
| compare -- "Yes" --> plan["Offline repository-scoped Codex plan"] | ||
| plan --> admit["Deterministic admission"] | ||
| admit --> patch["Offline admitted implementation"] | ||
| patch --> seal["Seal paths and digests"] | ||
| seal --> test["Clean macOS arm64 plugin tests"] | ||
| test --> ready["Commit exact mise_ready record"] | ||
| ready --> release["php-bin verifies both readiness records"] | ||
| ``` | ||
|
|
||
| Only maintained branches appear in `mise ls-remote` or resolve from a branch | ||
| shorthand. An exact historical stable version may still install when its | ||
| immutable `php-bin` release and checksum assets exist. New branch publication | ||
| waits for matching `php_bin_ready` and `mise_ready` records at exact commits. | ||
|
|
||
| Failures and lifecycle transitions use one deduplicated GitHub issue per action | ||
| key, assigned through `AUTORELEASE_OWNER`. Comments are added only for meaningful | ||
| changes, and GitHub Actions failure email remains an independent fallback. | ||
|
|
||
| ```mermaid | ||
| flowchart TD | ||
| phase["Consumer, agent, sealing, test, or readiness phase"] --> result{"Result"} | ||
| result -- "Passed" --> state["Record exact evidence and state"] | ||
| result -- "Retryable" --> bounded["Bounded repair"] | ||
| result -- "Critical, repeated, or exhausted" --> stop["Stop mutation"] | ||
| bounded --> result | ||
| stop --> issue["Assigned autorelease issue"] | ||
| issue --> email["GitHub issue email"] | ||
| stop --> actions["Actions failure email"] | ||
| ``` | ||
|
|
||
| Pause unattended mutation in the reviewed | ||
| `php-bin/.github/autorelease-operator.json` control. Read-only capture and | ||
| investigation remain available while paused. Resume through a reviewed change; | ||
| partial events continue only through the deterministic next transition. | ||
|
|
||
| From a checkout containing both repositories: | ||
|
|
||
| ```bash | ||
| (cd php-bin && ./scripts/test.sh) | ||
| (cd mise-php && ./scripts/test.sh) | ||
|
|
||
| ./php-bin/scripts/verify-autorelease-system \ | ||
| --mise-repo ./mise-php \ | ||
| --php-bin-sha <exact-php-bin-sha> \ | ||
| --mise-php-sha <exact-mise-php-sha> \ | ||
| --output ./verification-results | ||
| ``` | ||
|
|
||
| Each repository's `scripts/test.sh` also validates every pinned Codex Action | ||
| invocation, exact CLI version, and canonical `config.toml` loading against the | ||
| reviewed offline contract in `.github/codex-action-contract.json` before | ||
| exercising autorelease behavior. | ||
|
|
||
| Inspect `support-snapshot.json`, `autorelease-events/`, `readiness/`, retained | ||
| workflow artifacts, and the event's GitHub issue. Recovery corrects the cause | ||
| and reruns the normal admitted path; it never disables checksum, policy, | ||
| sealing, exact-SHA, or publication gates. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
maintenance/protected-paths.json → autorelease/protected-paths.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
| set -euo pipefail | ||
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | ||
| exec python3 "$ROOT/maintenance/admission.py" verify-merge "$@" | ||
| exec python3 "$ROOT/autorelease/admission.py" verify-merge "$@" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.